@rpcbase/ui 0.287.0 → 0.289.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/assets/sha256.worker-DNtOSCbM.js.map +1 -0
- package/dist/components/FilesUploadField/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index10.js.map +1 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js.map +1 -1
- package/dist/index102.js.map +1 -1
- package/dist/index103.js.map +1 -1
- package/dist/index104.js.map +1 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js.map +1 -1
- package/dist/index107.js.map +1 -1
- package/dist/index108.js.map +1 -1
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +96 -17
- package/dist/index11.js.map +1 -1
- package/dist/index110.js.map +1 -1
- package/dist/index111.js.map +1 -1
- package/dist/index112.js.map +1 -1
- package/dist/index113.js.map +1 -1
- package/dist/index114.js.map +1 -1
- package/dist/index115.js.map +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js.map +1 -1
- package/dist/index119.js.map +1 -1
- package/dist/index12.js.map +1 -1
- package/dist/index120.js.map +1 -1
- package/dist/index121.js.map +1 -1
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +1 -1
- package/dist/index123.js.map +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js.map +1 -1
- package/dist/index126.js.map +1 -1
- package/dist/index127.js.map +1 -1
- package/dist/index128.js.map +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index13.js.map +1 -1
- package/dist/index130.js.map +1 -1
- package/dist/index131.js.map +1 -1
- package/dist/index132.js.map +1 -1
- package/dist/index133.js.map +1 -1
- package/dist/index134.js.map +1 -1
- package/dist/index135.js.map +1 -1
- package/dist/index136.js.map +1 -1
- package/dist/index137.js.map +1 -1
- package/dist/index138.js.map +1 -1
- package/dist/index139.js.map +1 -1
- package/dist/index14.js.map +1 -1
- package/dist/index140.js.map +1 -1
- package/dist/index141.js.map +1 -1
- package/dist/index142.js.map +1 -1
- package/dist/index143.js.map +1 -1
- package/dist/index144.js.map +1 -1
- package/dist/index145.js.map +1 -1
- package/dist/index146.js.map +1 -1
- package/dist/index147.js.map +1 -1
- package/dist/index148.js.map +1 -1
- package/dist/index149.js.map +1 -1
- package/dist/index15.js.map +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index151.js.map +1 -1
- package/dist/index152.js.map +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +4 -4
- package/dist/index154.js.map +1 -1
- package/dist/index155.js.map +1 -1
- package/dist/index156.js.map +1 -1
- package/dist/index157.js.map +1 -1
- package/dist/index158.js.map +1 -1
- package/dist/index159.js.map +1 -1
- package/dist/index16.js.map +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js.map +1 -1
- package/dist/index162.js.map +1 -1
- package/dist/index163.js.map +1 -1
- package/dist/index164.js.map +1 -1
- package/dist/index165.js.map +1 -1
- package/dist/index166.js.map +1 -1
- package/dist/index167.js.map +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js.map +1 -1
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +18 -12
- package/dist/index170.js.map +1 -1
- package/dist/index171.js.map +1 -1
- package/dist/index172.js.map +1 -1
- package/dist/index173.js.map +1 -1
- package/dist/index174.js.map +1 -1
- package/dist/index175.js.map +1 -1
- package/dist/index176.js.map +1 -1
- package/dist/index177.js.map +1 -1
- package/dist/index178.js.map +1 -1
- package/dist/index179.js.map +1 -1
- package/dist/index18.js.map +1 -1
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +1 -1
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +3 -3
- package/dist/index182.js.map +1 -1
- package/dist/index183.js.map +1 -1
- package/dist/index184.js.map +1 -1
- package/dist/index185.js.map +1 -1
- package/dist/index186.js.map +1 -1
- package/dist/index187.js.map +1 -1
- package/dist/index188.js.map +1 -1
- package/dist/index189.js.map +1 -1
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +9 -7
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +4 -4
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +4 -15
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +13 -3
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +2 -2
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +4 -85
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +79 -54
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +68 -7
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +3 -23
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +6 -28
- package/dist/index199.js.map +1 -1
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +4 -97
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +3 -4
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +23 -24
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +28 -10
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +97 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +4 -12
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +22 -19
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +4 -6
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +4 -15
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +10 -102
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +21 -3
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -23
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +15 -28
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +101 -17
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +3 -7
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +24 -15
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +27 -7
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +17 -24
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +6 -22
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +15 -6
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +8 -5
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +27 -4
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +23 -4
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +6 -24
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +5 -3
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +4 -24
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +4 -23
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +23 -6
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +22 -8
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +3 -19
- package/dist/index229.js.map +1 -1
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +22 -50
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +7 -20
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +9 -27
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +17 -97
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +50 -33
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +20 -119
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +28 -13
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +98 -4
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +33 -15
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +116 -62
- package/dist/index239.js.map +1 -1
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +13 -10
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +4 -109
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +14 -14
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +64 -12
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +10 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +104 -318
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +14 -66
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +12 -232
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +4 -270
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +313 -309
- package/dist/index249.js.map +1 -1
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +60 -171
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +252 -8
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +268 -41
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +316 -47
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +179 -9
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +6 -50
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +41 -51
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +50 -7
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +9 -10
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +51 -61
- package/dist/index259.js.map +1 -1
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +53 -42
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +9 -97
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +31 -47
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +61 -36
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +43 -47
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +92 -46
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +48 -20
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +33 -176
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +49 -48
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +68 -15
- package/dist/index269.js.map +1 -1
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +20 -65
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +202 -9
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +48 -40
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +60 -91
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +9 -278
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +38 -55
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +91 -10
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +278 -12
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +58 -11
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +11 -64
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +5 -5
- package/dist/index28.js.map +1 -1
- package/dist/index280.js +12 -6
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +3 -25
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +3 -25
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +12 -126
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +63 -51
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +5 -60
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +24 -48
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +24 -6
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +125 -14
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +51 -16
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +5 -7
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +56 -11
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +47 -24
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +7 -51
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +15 -6
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +18 -148
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +12 -59
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +25 -120
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +54 -15
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +5 -866
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +148 -28
- package/dist/index299.js.map +1 -1
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +6 -8
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +55 -512
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +111 -794
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +14 -7436
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +862 -6
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +28 -12
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +515 -5
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +803 -5
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +7426 -468
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +6 -37
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +12 -19
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +5 -11
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +5 -30
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +5 -4
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +461 -51
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +36 -10
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +19 -5
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +29 -8
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +4 -12
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +60 -3
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +10 -15
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +5 -25
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +5 -5
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +9 -41
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +11 -4
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +3 -26
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +15 -18
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +22 -31
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +41 -5
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +4 -8
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +25 -8
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +19 -9
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +34 -10
- package/dist/index329.js.map +1 -1
- package/dist/index33.js +9 -6
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +5 -7
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +9 -75
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +8 -162
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +9 -114
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +10 -14
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +7 -80
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +68 -39
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +160 -11
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +113 -15
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +13 -100
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +6 -6
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +73 -49
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +34 -96
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +12 -70
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +14 -111
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +94 -48
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +50 -37
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +89 -125
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +52 -123
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +54 -197
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +44 -229
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +9 -9
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +42 -308
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +144 -5
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +142 -6
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +257 -7
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +241 -6
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +309 -6
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +5 -21
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +6 -10
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +7 -128
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +6 -42
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +12 -7
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +6 -68
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +20 -116
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +10 -490
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +128 -7
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +42 -13
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +67 -3
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +115 -45
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +490 -11
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +8 -26
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +12 -41
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +13 -5
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +4 -36
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +45 -15
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +24 -41
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +3 -12
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +27 -11
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +40 -50
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +37 -40
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +12 -10
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +40 -4
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +7 -4
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +5 -5
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +29 -8
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +9 -303
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +57 -4
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +40 -22
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +15 -105
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +5 -22
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +10 -22
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +289 -16
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +4 -12
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +20 -112
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +6 -10
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +3 -9
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +104 -27
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +20 -9
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +20 -6
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +14 -253
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +12 -10
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +117 -11
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +8 -6
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +32 -22
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +9 -23
- package/dist/index399.js.map +1 -1
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +8 -11
- package/dist/index40.js.map +1 -1
- package/dist/index400.js +6 -105
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +3 -15
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +251 -10
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +9 -7
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +11 -239
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +7 -28
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +21 -37
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +21 -10
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +97 -117
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +15 -40
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +6 -7
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +11 -25
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +7 -9
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +3 -24
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +226 -15
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +24 -11
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +38 -4
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +11 -324
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +119 -62
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +42 -4
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +25 -28
- package/dist/index419.js.map +1 -1
- package/dist/index42.js +6 -4
- package/dist/index42.js.map +1 -1
- package/dist/index420.js +11 -470
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +23 -268
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +24 -0
- package/dist/index422.js.map +1 -0
- package/dist/index423.js +17 -0
- package/dist/index423.js.map +1 -0
- package/dist/index424.js +8 -0
- package/dist/index424.js.map +1 -0
- package/dist/index425.js +328 -0
- package/dist/index425.js.map +1 -0
- package/dist/index426.js +66 -0
- package/dist/index426.js.map +1 -0
- package/dist/index427.js +7 -0
- package/dist/index427.js.map +1 -0
- package/dist/index428.js +31 -0
- package/dist/index428.js.map +1 -0
- package/dist/index429.js +474 -0
- package/dist/index429.js.map +1 -0
- package/dist/index43.js +68 -7
- package/dist/index43.js.map +1 -1
- package/dist/index430.js +272 -0
- package/dist/index430.js.map +1 -0
- package/dist/index44.js +7 -6
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +31 -7
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +10 -10
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +15 -13
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +201 -7
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +20 -6
- package/dist/index49.js.map +1 -1
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +16 -6
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +123 -14
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +19 -8
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +5 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +9 -68
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +7 -7
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +9 -31
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +13 -10
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +8 -15
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +10 -201
- package/dist/index59.js.map +1 -1
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +13 -20
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +9 -16
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +10 -123
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +5 -19
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +42 -9
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +387 -9
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +37 -14
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +21 -9
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +4 -9
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +6 -4
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +3 -3
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +57 -41
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +5 -387
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +6 -37
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +5 -21
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +4 -56
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +7 -7
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +6 -5
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +6 -5
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +11 -5
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +11 -5
- package/dist/index79.js.map +1 -1
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +7 -6
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +10 -6
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +5 -8
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +6 -7
- package/dist/index83.js.map +1 -1
- package/dist/index84.js.map +1 -1
- package/dist/index85.js.map +1 -1
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +2 -2
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +31 -31
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js.map +1 -1
- package/dist/index90.js.map +1 -1
- package/dist/index91.js.map +1 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js.map +1 -1
- package/dist/index94.js.map +1 -1
- package/dist/index95.js.map +1 -1
- package/dist/index96.js.map +1 -1
- package/dist/index97.js.map +1 -1
- package/dist/index98.js.map +1 -1
- package/dist/index99.js.map +1 -1
- package/package.json +13 -13
- package/dist/assets/sha256.worker-BEf4_Y9w.js.map +0 -1
package/dist/index53.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index53.js","names":[],"sources":["../../../node_modules/date-fns/
|
|
1
|
+
{"version":3,"file":"index53.js","names":["toDate","startOfYear","date_","date","options"],"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"],"ignoreList":[0],"mappings":";;AA4BA,SAAgBC,EAAY,GAAM,GAAS;CACzC,IAAMC,IAAQF,EAAOG,GAAMC,GAAS,EAAE;CAGtC,OAFAF,EAAM,YAAYA,EAAM,YAAY,GAAG,GAAG,CAAC,GAC3CA,EAAM,SAAS,GAAG,GAAG,GAAG,CAAC,GAClBA;AACT"}
|
package/dist/index54.js
CHANGED
|
@@ -1,71 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
other: "{{count}} seconds"
|
|
10
|
-
},
|
|
11
|
-
halfAMinute: "half a minute",
|
|
12
|
-
lessThanXMinutes: {
|
|
13
|
-
one: "less than a minute",
|
|
14
|
-
other: "less than {{count}} minutes"
|
|
15
|
-
},
|
|
16
|
-
xMinutes: {
|
|
17
|
-
one: "1 minute",
|
|
18
|
-
other: "{{count}} minutes"
|
|
19
|
-
},
|
|
20
|
-
aboutXHours: {
|
|
21
|
-
one: "about 1 hour",
|
|
22
|
-
other: "about {{count}} hours"
|
|
23
|
-
},
|
|
24
|
-
xHours: {
|
|
25
|
-
one: "1 hour",
|
|
26
|
-
other: "{{count}} hours"
|
|
27
|
-
},
|
|
28
|
-
xDays: {
|
|
29
|
-
one: "1 day",
|
|
30
|
-
other: "{{count}} days"
|
|
31
|
-
},
|
|
32
|
-
aboutXWeeks: {
|
|
33
|
-
one: "about 1 week",
|
|
34
|
-
other: "about {{count}} weeks"
|
|
35
|
-
},
|
|
36
|
-
xWeeks: {
|
|
37
|
-
one: "1 week",
|
|
38
|
-
other: "{{count}} weeks"
|
|
39
|
-
},
|
|
40
|
-
aboutXMonths: {
|
|
41
|
-
one: "about 1 month",
|
|
42
|
-
other: "about {{count}} months"
|
|
43
|
-
},
|
|
44
|
-
xMonths: {
|
|
45
|
-
one: "1 month",
|
|
46
|
-
other: "{{count}} months"
|
|
47
|
-
},
|
|
48
|
-
aboutXYears: {
|
|
49
|
-
one: "about 1 year",
|
|
50
|
-
other: "about {{count}} years"
|
|
51
|
-
},
|
|
52
|
-
xYears: {
|
|
53
|
-
one: "1 year",
|
|
54
|
-
other: "{{count}} years"
|
|
55
|
-
},
|
|
56
|
-
overXYears: {
|
|
57
|
-
one: "over 1 year",
|
|
58
|
-
other: "over {{count}} years"
|
|
59
|
-
},
|
|
60
|
-
almostXYears: {
|
|
61
|
-
one: "almost 1 year",
|
|
62
|
-
other: "almost {{count}} years"
|
|
63
|
-
}
|
|
64
|
-
}, t = (t, n, r) => {
|
|
65
|
-
let i, a = e[t];
|
|
66
|
-
return i = typeof a == "string" ? a : n === 1 ? a.one : a.other.replace("{{count}}", n.toString()), r?.addSuffix ? r.comparison && r.comparison > 0 ? "in " + i : i + " ago" : i;
|
|
67
|
-
};
|
|
1
|
+
import e from "./index25.js";
|
|
2
|
+
import t from "./index33.js";
|
|
3
|
+
import n from "./index53.js";
|
|
4
|
+
//#region ../../node_modules/date-fns/getDayOfYear.js
|
|
5
|
+
function r(r, i) {
|
|
6
|
+
let a = e(r, i?.in);
|
|
7
|
+
return t(a, n(a)) + 1;
|
|
8
|
+
}
|
|
68
9
|
//#endregion
|
|
69
|
-
export {
|
|
10
|
+
export { r as default, r as getDayOfYear };
|
|
70
11
|
|
|
71
12
|
//# sourceMappingURL=index54.js.map
|
package/dist/index54.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index54.js","names":[],"sources":["../../../node_modules/date-fns/
|
|
1
|
+
{"version":3,"file":"index54.js","names":["toDate","differenceInCalendarDays","startOfYear","getDayOfYear","_date","date","options"],"sources":["../../../node_modules/date-fns/getDayOfYear.js"],"sourcesContent":["import { differenceInCalendarDays } from \"./differenceInCalendarDays.js\";\nimport { startOfYear } from \"./startOfYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDayOfYear} function options.\n */\n\n/**\n * @name getDayOfYear\n * @category Day Helpers\n * @summary Get the day of the year of the given date.\n *\n * @description\n * Get the day of the year of the given date.\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The day of year\n *\n * @example\n * // Which day of the year is 2 July 2014?\n * const result = getDayOfYear(new Date(2014, 6, 2))\n * //=> 183\n */\nexport function getDayOfYear(date, options) {\n const _date = toDate(date, options?.in);\n const diff = differenceInCalendarDays(_date, startOfYear(_date));\n const dayOfYear = diff + 1;\n return dayOfYear;\n}\n\n// Fallback for modularized imports:\nexport default getDayOfYear;\n"],"ignoreList":[0],"mappings":";;;;AA0BA,SAAgBG,EAAa,GAAM,GAAS;CAC1C,IAAMC,IAAQJ,EAAOK,GAAMC,GAAS,EAAE;CAGtC,OAFaL,EAAyBG,GAAOF,EAAYE,CAAK,CACzC,IAAI;AAE3B"}
|
package/dist/index55.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import e from "./index25.js";
|
|
2
|
+
import { getDefaultOptions as t } from "./index38.js";
|
|
3
|
+
//#region ../../node_modules/date-fns/startOfWeek.js
|
|
4
|
+
function n(n, r) {
|
|
5
|
+
let i = t(), a = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, o = e(n, r?.in), s = o.getDay(), c = (s < a ? 7 : 0) + s - a;
|
|
6
|
+
return o.setDate(o.getDate() - c), o.setHours(0, 0, 0, 0), o;
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
|
-
export {
|
|
9
|
+
export { n as default, n as startOfWeek };
|
|
10
10
|
|
|
11
11
|
//# sourceMappingURL=index55.js.map
|
package/dist/index55.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index55.js","names":[],"sources":["../../../node_modules/date-fns/
|
|
1
|
+
{"version":3,"file":"index55.js","names":["toDate","startOfWeek","defaultOptions","getDefaultOptions","weekStartsOn","options","_date","date","day","diff"],"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"],"ignoreList":[0],"mappings":";;;AAkCA,SAAgBC,EAAY,GAAM,GAAS;CACzC,IAAMC,IAAiBC,EAAkB,GACnCC,IACJC,GAAS,gBACTA,GAAS,QAAQ,SAAS,gBAC1BH,EAAe,gBACfA,EAAe,QAAQ,SAAS,gBAChC,GAEII,IAAQN,EAAOO,GAAMF,GAAS,EAAE,GAChCG,IAAMF,EAAM,OAAO,GACnBG,KAAQD,IAAMJ,IAAe,IAAI,KAAKI,IAAMJ;CAIlD,OAFAE,EAAM,QAAQA,EAAM,QAAQ,IAAIG,CAAI,GACpCH,EAAM,SAAS,GAAG,GAAG,GAAG,CAAC,GAClBA;AACT"}
|
package/dist/index56.js
CHANGED
|
@@ -1,34 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
defaultWidth: "full"
|
|
11
|
-
}),
|
|
12
|
-
time: e({
|
|
13
|
-
formats: {
|
|
14
|
-
full: "h:mm:ss a zzzz",
|
|
15
|
-
long: "h:mm:ss a z",
|
|
16
|
-
medium: "h:mm:ss a",
|
|
17
|
-
short: "h:mm a"
|
|
18
|
-
},
|
|
19
|
-
defaultWidth: "full"
|
|
20
|
-
}),
|
|
21
|
-
dateTime: e({
|
|
22
|
-
formats: {
|
|
23
|
-
full: "{{date}} 'at' {{time}}",
|
|
24
|
-
long: "{{date}} 'at' {{time}}",
|
|
25
|
-
medium: "{{date}}, {{time}}",
|
|
26
|
-
short: "{{date}}, {{time}}"
|
|
27
|
-
},
|
|
28
|
-
defaultWidth: "full"
|
|
29
|
-
})
|
|
30
|
-
};
|
|
1
|
+
import e from "./index55.js";
|
|
2
|
+
//#region ../../node_modules/date-fns/startOfISOWeek.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
return e(t, {
|
|
5
|
+
...n,
|
|
6
|
+
weekStartsOn: 1
|
|
7
|
+
});
|
|
8
|
+
}
|
|
31
9
|
//#endregion
|
|
32
|
-
export { t as
|
|
10
|
+
export { t as default, t as startOfISOWeek };
|
|
33
11
|
|
|
34
12
|
//# sourceMappingURL=index56.js.map
|
package/dist/index56.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index56.js","names":[],"sources":["../../../node_modules/date-fns/
|
|
1
|
+
{"version":3,"file":"index56.js","names":["startOfWeek","startOfISOWeek","date","options"],"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"],"ignoreList":[0],"mappings":";;AA8BA,SAAgBC,EAAe,GAAM,GAAS;CAC5C,OAAOD,EAAYE,GAAM;EAAE,GAAGC;EAAS,cAAc;CAAE,CAAC;AAC1D"}
|
package/dist/index57.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { constructFrom as e } from "./index24.js";
|
|
2
|
+
import t from "./index25.js";
|
|
3
|
+
import n from "./index56.js";
|
|
4
|
+
//#region ../../node_modules/date-fns/getISOWeekYear.js
|
|
5
|
+
function r(r, i) {
|
|
6
|
+
let a = t(r, i?.in), o = a.getFullYear(), s = e(a, 0);
|
|
7
|
+
s.setFullYear(o + 1, 0, 4), s.setHours(0, 0, 0, 0);
|
|
8
|
+
let c = n(s), l = e(a, 0);
|
|
9
|
+
l.setFullYear(o, 0, 4), l.setHours(0, 0, 0, 0);
|
|
10
|
+
let u = n(l);
|
|
11
|
+
return a.getTime() >= c.getTime() ? o + 1 : a.getTime() >= u.getTime() ? o : o - 1;
|
|
12
|
+
}
|
|
10
13
|
//#endregion
|
|
11
|
-
export {
|
|
14
|
+
export { r as default, r as getISOWeekYear };
|
|
12
15
|
|
|
13
16
|
//# sourceMappingURL=index57.js.map
|
package/dist/index57.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index57.js","names":[],"sources":["../../../node_modules/date-fns/
|
|
1
|
+
{"version":3,"file":"index57.js","names":["toDate","startOfISOWeek","getISOWeekYear","_date","date","options","year","fourthOfJanuaryOfNextYear","constructFrom","startOfNextYear","fourthOfJanuaryOfThisYear","startOfThisYear"],"sources":["../../../node_modules/date-fns/getISOWeekYear.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeekYear} function options.\n */\n\n/**\n * @name getISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the ISO week-numbering year of the given date.\n *\n * @description\n * Get the ISO week-numbering year of the given date,\n * which always starts 3 days before the year's first Thursday.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n *\n * @returns The ISO week-numbering year\n *\n * @example\n * // Which ISO-week numbering year is 2 January 2005?\n * const result = getISOWeekYear(new Date(2005, 0, 2))\n * //=> 2004\n */\nexport function getISOWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);\n\n const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);\n fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);\n\n if (_date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (_date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getISOWeekYear;\n"],"ignoreList":[0],"mappings":";;;;AA4BA,SAAgBE,EAAe,GAAM,GAAS;CAC5C,IAAMC,IAAQH,EAAOI,GAAMC,GAAS,EAAE,GAChCC,IAAOH,EAAM,YAAY,GAEzBI,IAA4BC,EAAcL,GAAO,CAAC;CAExD,AADAI,EAA0B,YAAYD,IAAO,GAAG,GAAG,CAAC,GACpDC,EAA0B,SAAS,GAAG,GAAG,GAAG,CAAC;CAC7C,IAAME,IAAkBR,EAAeM,CAAyB,GAE1DG,IAA4BF,EAAcL,GAAO,CAAC;CAExD,AADAO,EAA0B,YAAYJ,GAAM,GAAG,CAAC,GAChDI,EAA0B,SAAS,GAAG,GAAG,GAAG,CAAC;CAC7C,IAAMC,IAAkBV,EAAeS,CAAyB;CAO9D,OALEP,EAAM,QAAQ,KAAKM,EAAgB,QAAQ,IACtCH,IAAO,IACLH,EAAM,QAAQ,KAAKQ,EAAgB,QAAQ,IAC7CL,IAEAA,IAAO;AAElB"}
|
package/dist/index58.js
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} else {
|
|
9
|
-
let t = e.defaultWidth, r = n?.width ? String(n.width) : e.defaultWidth;
|
|
10
|
-
i = e.values[r] || e.values[t];
|
|
11
|
-
}
|
|
12
|
-
let a = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
13
|
-
return i[a];
|
|
14
|
-
};
|
|
1
|
+
import { constructFrom as e } from "./index24.js";
|
|
2
|
+
import t from "./index56.js";
|
|
3
|
+
import n from "./index57.js";
|
|
4
|
+
//#region ../../node_modules/date-fns/startOfISOWeekYear.js
|
|
5
|
+
function r(r, i) {
|
|
6
|
+
let a = n(r, i), o = e(i?.in || r, 0);
|
|
7
|
+
return o.setFullYear(a, 0, 4), o.setHours(0, 0, 0, 0), t(o);
|
|
15
8
|
}
|
|
16
9
|
//#endregion
|
|
17
|
-
export {
|
|
10
|
+
export { r as default, r as startOfISOWeekYear };
|
|
18
11
|
|
|
19
12
|
//# sourceMappingURL=index58.js.map
|
package/dist/index58.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index58.js","names":[],"sources":["../../../node_modules/date-fns/
|
|
1
|
+
{"version":3,"file":"index58.js","names":["startOfISOWeek","getISOWeekYear","startOfISOWeekYear","year","date","options","fourthOfJanuary","constructFrom"],"sources":["../../../node_modules/date-fns/startOfISOWeekYear.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { getISOWeekYear } from \"./getISOWeekYear.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\n\n/**\n * The {@link startOfISOWeekYear} function options.\n */\n\n/**\n * @name startOfISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Return the start of an ISO week-numbering year for the given date.\n *\n * @description\n * Return the start of an ISO week-numbering year,\n * which always starts 3 days before the year's first Thursday.\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-numbering year\n *\n * @example\n * // The start of an ISO week-numbering year for 2 July 2005:\n * const result = startOfISOWeekYear(new Date(2005, 6, 2))\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfISOWeekYear(date, options) {\n const year = getISOWeekYear(date, options);\n const fourthOfJanuary = constructFrom(options?.in || date, 0);\n fourthOfJanuary.setFullYear(year, 0, 4);\n fourthOfJanuary.setHours(0, 0, 0, 0);\n return startOfISOWeek(fourthOfJanuary);\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeekYear;\n"],"ignoreList":[0],"mappings":";;;;AAiCA,SAAgBE,EAAmB,GAAM,GAAS;CAChD,IAAMC,IAAOF,EAAeG,GAAMC,CAAO,GACnCC,IAAkBC,EAAcF,GAAS,MAAMD,GAAM,CAAC;CAG5D,OAFAE,EAAgB,YAAYH,GAAM,GAAG,CAAC,GACtCG,EAAgB,SAAS,GAAG,GAAG,GAAG,CAAC,GAC5BN,EAAeM,CAAe;AACvC"}
|
package/dist/index59.js
CHANGED
|
@@ -1,204 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return n + "th";
|
|
11
|
-
},
|
|
12
|
-
era: e({
|
|
13
|
-
values: {
|
|
14
|
-
narrow: ["B", "A"],
|
|
15
|
-
abbreviated: ["BC", "AD"],
|
|
16
|
-
wide: ["Before Christ", "Anno Domini"]
|
|
17
|
-
},
|
|
18
|
-
defaultWidth: "wide"
|
|
19
|
-
}),
|
|
20
|
-
quarter: e({
|
|
21
|
-
values: {
|
|
22
|
-
narrow: [
|
|
23
|
-
"1",
|
|
24
|
-
"2",
|
|
25
|
-
"3",
|
|
26
|
-
"4"
|
|
27
|
-
],
|
|
28
|
-
abbreviated: [
|
|
29
|
-
"Q1",
|
|
30
|
-
"Q2",
|
|
31
|
-
"Q3",
|
|
32
|
-
"Q4"
|
|
33
|
-
],
|
|
34
|
-
wide: [
|
|
35
|
-
"1st quarter",
|
|
36
|
-
"2nd quarter",
|
|
37
|
-
"3rd quarter",
|
|
38
|
-
"4th quarter"
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
defaultWidth: "wide",
|
|
42
|
-
argumentCallback: (e) => e - 1
|
|
43
|
-
}),
|
|
44
|
-
month: e({
|
|
45
|
-
values: {
|
|
46
|
-
narrow: [
|
|
47
|
-
"J",
|
|
48
|
-
"F",
|
|
49
|
-
"M",
|
|
50
|
-
"A",
|
|
51
|
-
"M",
|
|
52
|
-
"J",
|
|
53
|
-
"J",
|
|
54
|
-
"A",
|
|
55
|
-
"S",
|
|
56
|
-
"O",
|
|
57
|
-
"N",
|
|
58
|
-
"D"
|
|
59
|
-
],
|
|
60
|
-
abbreviated: [
|
|
61
|
-
"Jan",
|
|
62
|
-
"Feb",
|
|
63
|
-
"Mar",
|
|
64
|
-
"Apr",
|
|
65
|
-
"May",
|
|
66
|
-
"Jun",
|
|
67
|
-
"Jul",
|
|
68
|
-
"Aug",
|
|
69
|
-
"Sep",
|
|
70
|
-
"Oct",
|
|
71
|
-
"Nov",
|
|
72
|
-
"Dec"
|
|
73
|
-
],
|
|
74
|
-
wide: [
|
|
75
|
-
"January",
|
|
76
|
-
"February",
|
|
77
|
-
"March",
|
|
78
|
-
"April",
|
|
79
|
-
"May",
|
|
80
|
-
"June",
|
|
81
|
-
"July",
|
|
82
|
-
"August",
|
|
83
|
-
"September",
|
|
84
|
-
"October",
|
|
85
|
-
"November",
|
|
86
|
-
"December"
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
defaultWidth: "wide"
|
|
90
|
-
}),
|
|
91
|
-
day: e({
|
|
92
|
-
values: {
|
|
93
|
-
narrow: [
|
|
94
|
-
"S",
|
|
95
|
-
"M",
|
|
96
|
-
"T",
|
|
97
|
-
"W",
|
|
98
|
-
"T",
|
|
99
|
-
"F",
|
|
100
|
-
"S"
|
|
101
|
-
],
|
|
102
|
-
short: [
|
|
103
|
-
"Su",
|
|
104
|
-
"Mo",
|
|
105
|
-
"Tu",
|
|
106
|
-
"We",
|
|
107
|
-
"Th",
|
|
108
|
-
"Fr",
|
|
109
|
-
"Sa"
|
|
110
|
-
],
|
|
111
|
-
abbreviated: [
|
|
112
|
-
"Sun",
|
|
113
|
-
"Mon",
|
|
114
|
-
"Tue",
|
|
115
|
-
"Wed",
|
|
116
|
-
"Thu",
|
|
117
|
-
"Fri",
|
|
118
|
-
"Sat"
|
|
119
|
-
],
|
|
120
|
-
wide: [
|
|
121
|
-
"Sunday",
|
|
122
|
-
"Monday",
|
|
123
|
-
"Tuesday",
|
|
124
|
-
"Wednesday",
|
|
125
|
-
"Thursday",
|
|
126
|
-
"Friday",
|
|
127
|
-
"Saturday"
|
|
128
|
-
]
|
|
129
|
-
},
|
|
130
|
-
defaultWidth: "wide"
|
|
131
|
-
}),
|
|
132
|
-
dayPeriod: e({
|
|
133
|
-
values: {
|
|
134
|
-
narrow: {
|
|
135
|
-
am: "a",
|
|
136
|
-
pm: "p",
|
|
137
|
-
midnight: "mi",
|
|
138
|
-
noon: "n",
|
|
139
|
-
morning: "morning",
|
|
140
|
-
afternoon: "afternoon",
|
|
141
|
-
evening: "evening",
|
|
142
|
-
night: "night"
|
|
143
|
-
},
|
|
144
|
-
abbreviated: {
|
|
145
|
-
am: "AM",
|
|
146
|
-
pm: "PM",
|
|
147
|
-
midnight: "midnight",
|
|
148
|
-
noon: "noon",
|
|
149
|
-
morning: "morning",
|
|
150
|
-
afternoon: "afternoon",
|
|
151
|
-
evening: "evening",
|
|
152
|
-
night: "night"
|
|
153
|
-
},
|
|
154
|
-
wide: {
|
|
155
|
-
am: "a.m.",
|
|
156
|
-
pm: "p.m.",
|
|
157
|
-
midnight: "midnight",
|
|
158
|
-
noon: "noon",
|
|
159
|
-
morning: "morning",
|
|
160
|
-
afternoon: "afternoon",
|
|
161
|
-
evening: "evening",
|
|
162
|
-
night: "night"
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
defaultWidth: "wide",
|
|
166
|
-
formattingValues: {
|
|
167
|
-
narrow: {
|
|
168
|
-
am: "a",
|
|
169
|
-
pm: "p",
|
|
170
|
-
midnight: "mi",
|
|
171
|
-
noon: "n",
|
|
172
|
-
morning: "in the morning",
|
|
173
|
-
afternoon: "in the afternoon",
|
|
174
|
-
evening: "in the evening",
|
|
175
|
-
night: "at night"
|
|
176
|
-
},
|
|
177
|
-
abbreviated: {
|
|
178
|
-
am: "AM",
|
|
179
|
-
pm: "PM",
|
|
180
|
-
midnight: "midnight",
|
|
181
|
-
noon: "noon",
|
|
182
|
-
morning: "in the morning",
|
|
183
|
-
afternoon: "in the afternoon",
|
|
184
|
-
evening: "in the evening",
|
|
185
|
-
night: "at night"
|
|
186
|
-
},
|
|
187
|
-
wide: {
|
|
188
|
-
am: "a.m.",
|
|
189
|
-
pm: "p.m.",
|
|
190
|
-
midnight: "midnight",
|
|
191
|
-
noon: "noon",
|
|
192
|
-
morning: "in the morning",
|
|
193
|
-
afternoon: "in the afternoon",
|
|
194
|
-
evening: "in the evening",
|
|
195
|
-
night: "at night"
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
defaultFormattingWidth: "wide"
|
|
199
|
-
})
|
|
200
|
-
};
|
|
1
|
+
import { millisecondsInWeek as e } from "./index23.js";
|
|
2
|
+
import t from "./index25.js";
|
|
3
|
+
import n from "./index56.js";
|
|
4
|
+
import r from "./index58.js";
|
|
5
|
+
//#region ../../node_modules/date-fns/getISOWeek.js
|
|
6
|
+
function i(i, a) {
|
|
7
|
+
let o = t(i, a?.in), s = +n(o) - r(o);
|
|
8
|
+
return Math.round(s / e) + 1;
|
|
9
|
+
}
|
|
201
10
|
//#endregion
|
|
202
|
-
export {
|
|
11
|
+
export { i as default, i as getISOWeek };
|
|
203
12
|
|
|
204
13
|
//# sourceMappingURL=index59.js.map
|
package/dist/index59.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index59.js","names":[],"sources":["../../../node_modules/date-fns/
|
|
1
|
+
{"version":3,"file":"index59.js","names":["toDate","startOfISOWeek","startOfISOWeekYear","getISOWeek","_date","date","options","diff","millisecondsInWeek"],"sources":["../../../node_modules/date-fns/getISOWeek.js"],"sourcesContent":["import { millisecondsInWeek } from \"./constants.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { startOfISOWeekYear } from \"./startOfISOWeekYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeek} function options.\n */\n\n/**\n * @name getISOWeek\n * @category ISO Week Helpers\n * @summary Get the ISO week of the given date.\n *\n * @description\n * Get the ISO week of the given date.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The ISO week\n *\n * @example\n * // Which week of the ISO-week numbering year is 2 January 2005?\n * const result = getISOWeek(new Date(2005, 0, 2))\n * //=> 53\n */\nexport function getISOWeek(date, options) {\n const _date = toDate(date, options?.in);\n const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getISOWeek;\n"],"ignoreList":[0],"mappings":";;;;;AA6BA,SAAgBG,EAAW,GAAM,GAAS;CACxC,IAAMC,IAAQJ,EAAOK,GAAMC,GAAS,EAAE,GAChCC,IAAO,CAACN,EAAeG,CAAK,IAAKF,EAAmBE,CAAK;CAK/D,OAAO,KAAK,MAAMG,IAAOC,CAAkB,IAAI;AACjD"}
|
package/dist/index6.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index6.js","names":["() => {\n if (typeof window === \"undefined\") {\n return\n }\n\n let cancelled = false\n\n loadLibrary(library, apiKey)\n .then(loadedModule => {\n if (!cancelled) {\n setModule(loadedModule)\n }\n })\n .catch(error => {\n if (!cancelled) {\n console.error(`useMapsLibrary: failed to load ${String(library)} library`, error)\n setModule(null)\n }\n })\n\n return () => {\n cancelled = true\n }\n }","[library, apiKey]"],"sources":["../src/helpers/useMapsLibrary.ts"],"sourcesContent":["/// <reference types=\"google.maps\" />\n\nimport { useEffect, useState } from \"react\"\nimport { setOptions, importLibrary } from \"@googlemaps/js-api-loader\"\n\n\ntype GoogleMapsLibraryName =\n | \"core\"\n | \"maps\"\n | \"maps3d\"\n | \"routes\"\n | \"geometry\"\n | \"elevation\"\n | \"streetView\"\n | \"journeySharing\"\n | \"drawing\"\n | \"visualization\"\n | \"marker\"\n | \"places\"\n | \"geocoding\"\n | (string & {})\n\ntype GoogleMapsLibraryModule<T extends GoogleMapsLibraryName> =\n T extends \"core\" ? google.maps.CoreLibrary\n : T extends \"maps\" ? google.maps.MapsLibrary\n : T extends \"maps3d\" ? google.maps.Maps3DLibrary\n : T extends \"routes\" ? google.maps.RoutesLibrary\n : T extends \"geometry\" ? google.maps.GeometryLibrary\n : T extends \"elevation\" ? google.maps.ElevationLibrary\n : T extends \"streetView\" ? google.maps.StreetViewLibrary\n : T extends \"journeySharing\" ? google.maps.JourneySharingLibrary\n : T extends \"drawing\" ? google.maps.DrawingLibrary\n : T extends \"visualization\" ? google.maps.VisualizationLibrary\n : T extends \"marker\" ? google.maps.MarkerLibrary\n : T extends \"places\" ? google.maps.PlacesLibrary\n : T extends \"geocoding\" ? google.maps.GeocodingLibrary\n : unknown\n\n\nlet initPromise: Promise<void> | null = null\nlet configuredKey: string | null = null\n\nconst libraryPromises = new Map<string, Promise<unknown>>()\n\nconst ensureGoogle = (apiKey?: string) => {\n if (!apiKey) {\n const error = new Error(\"useMapsLibrary: missing Google Maps API key\")\n console.error(error.message)\n return Promise.reject(error)\n }\n\n if (!initPromise) {\n configuredKey = apiKey\n setOptions({\n key: apiKey,\n v: \"weekly\",\n })\n initPromise = importLibrary(\"core\")\n .then(() => {})\n .catch(error => {\n initPromise = null\n throw error\n })\n } else if (configuredKey !== apiKey) {\n console.warn(\n \"useMapsLibrary: ignoring attempt to re-initialize Google Maps with a different API key than the one already in use.\"\n )\n }\n\n return initPromise\n}\n\nconst loadLibrary = <T extends GoogleMapsLibraryName>(\n library: T,\n apiKey?: string\n) => {\n const cacheKey = String(library)\n const cached = libraryPromises.get(cacheKey)\n if (cached) {\n return cached as Promise<GoogleMapsLibraryModule<T>>\n }\n\n const promise = ensureGoogle(apiKey)\n .then(() => {\n if (typeof window === \"undefined\" || !window.google?.maps?.importLibrary) {\n throw new Error(\"useMapsLibrary: google.maps.importLibrary is not available.\")\n }\n return window.google.maps.importLibrary(cacheKey)\n })\n .then(module => module as GoogleMapsLibraryModule<T>)\n .catch(error => {\n libraryPromises.delete(cacheKey)\n throw error\n })\n\n libraryPromises.set(cacheKey, promise as Promise<unknown>)\n return promise\n}\n\nexport const useMapsLibrary = <T extends GoogleMapsLibraryName>(\n library: T,\n apiKey?: string\n) => {\n const [module, setModule] =\n useState<GoogleMapsLibraryModule<T> | null>(null)\n\n useEffect(() => {\n if (typeof window === \"undefined\") {\n return\n }\n\n let cancelled = false\n\n loadLibrary(library, apiKey)\n .then(loadedModule => {\n if (!cancelled) {\n setModule(loadedModule)\n }\n })\n .catch(error => {\n if (!cancelled) {\n console.error(`useMapsLibrary: failed to load ${String(library)} library`, error)\n setModule(null)\n }\n })\n\n return () => {\n cancelled = true\n }\n }, [library, apiKey])\n\n return module\n}\n\nexport type { GoogleMapsLibraryName, GoogleMapsLibraryModule }\n"],"mappings":";;;;AAuCA,
|
|
1
|
+
{"version":3,"file":"index6.js","names":["() => {\n if (typeof window === \"undefined\") {\n return\n }\n\n let cancelled = false\n\n loadLibrary(library, apiKey)\n .then(loadedModule => {\n if (!cancelled) {\n setModule(loadedModule)\n }\n })\n .catch(error => {\n if (!cancelled) {\n console.error(`useMapsLibrary: failed to load ${String(library)} library`, error)\n setModule(null)\n }\n })\n\n return () => {\n cancelled = true\n }\n }","[library, apiKey]","_c","initPromise","configuredKey","libraryPromises","ensureGoogle","apiKey","error","setOptions","importLibrary","loadLibrary","cacheKey","library","cached","promise","module","useMapsLibrary","$","c","setModule","useState","t0","t1","cancelled","loadedModule","useEffect"],"sources":["../src/helpers/useMapsLibrary.ts"],"sourcesContent":["/// <reference types=\"google.maps\" />\n\nimport { useEffect, useState } from \"react\"\nimport { setOptions, importLibrary } from \"@googlemaps/js-api-loader\"\n\n\ntype GoogleMapsLibraryName =\n | \"core\"\n | \"maps\"\n | \"maps3d\"\n | \"routes\"\n | \"geometry\"\n | \"elevation\"\n | \"streetView\"\n | \"journeySharing\"\n | \"drawing\"\n | \"visualization\"\n | \"marker\"\n | \"places\"\n | \"geocoding\"\n | (string & {})\n\ntype GoogleMapsLibraryModule<T extends GoogleMapsLibraryName> =\n T extends \"core\" ? google.maps.CoreLibrary\n : T extends \"maps\" ? google.maps.MapsLibrary\n : T extends \"maps3d\" ? google.maps.Maps3DLibrary\n : T extends \"routes\" ? google.maps.RoutesLibrary\n : T extends \"geometry\" ? google.maps.GeometryLibrary\n : T extends \"elevation\" ? google.maps.ElevationLibrary\n : T extends \"streetView\" ? google.maps.StreetViewLibrary\n : T extends \"journeySharing\" ? google.maps.JourneySharingLibrary\n : T extends \"drawing\" ? google.maps.DrawingLibrary\n : T extends \"visualization\" ? google.maps.VisualizationLibrary\n : T extends \"marker\" ? google.maps.MarkerLibrary\n : T extends \"places\" ? google.maps.PlacesLibrary\n : T extends \"geocoding\" ? google.maps.GeocodingLibrary\n : unknown\n\n\nlet initPromise: Promise<void> | null = null\nlet configuredKey: string | null = null\n\nconst libraryPromises = new Map<string, Promise<unknown>>()\n\nconst ensureGoogle = (apiKey?: string) => {\n if (!apiKey) {\n const error = new Error(\"useMapsLibrary: missing Google Maps API key\")\n console.error(error.message)\n return Promise.reject(error)\n }\n\n if (!initPromise) {\n configuredKey = apiKey\n setOptions({\n key: apiKey,\n v: \"weekly\",\n })\n initPromise = importLibrary(\"core\")\n .then(() => {})\n .catch(error => {\n initPromise = null\n throw error\n })\n } else if (configuredKey !== apiKey) {\n console.warn(\n \"useMapsLibrary: ignoring attempt to re-initialize Google Maps with a different API key than the one already in use.\"\n )\n }\n\n return initPromise\n}\n\nconst loadLibrary = <T extends GoogleMapsLibraryName>(\n library: T,\n apiKey?: string\n) => {\n const cacheKey = String(library)\n const cached = libraryPromises.get(cacheKey)\n if (cached) {\n return cached as Promise<GoogleMapsLibraryModule<T>>\n }\n\n const promise = ensureGoogle(apiKey)\n .then(() => {\n if (typeof window === \"undefined\" || !window.google?.maps?.importLibrary) {\n throw new Error(\"useMapsLibrary: google.maps.importLibrary is not available.\")\n }\n return window.google.maps.importLibrary(cacheKey)\n })\n .then(module => module as GoogleMapsLibraryModule<T>)\n .catch(error => {\n libraryPromises.delete(cacheKey)\n throw error\n })\n\n libraryPromises.set(cacheKey, promise as Promise<unknown>)\n return promise\n}\n\nexport const useMapsLibrary = <T extends GoogleMapsLibraryName>(\n library: T,\n apiKey?: string\n) => {\n const [module, setModule] =\n useState<GoogleMapsLibraryModule<T> | null>(null)\n\n useEffect(() => {\n if (typeof window === \"undefined\") {\n return\n }\n\n let cancelled = false\n\n loadLibrary(library, apiKey)\n .then(loadedModule => {\n if (!cancelled) {\n setModule(loadedModule)\n }\n })\n .catch(error => {\n if (!cancelled) {\n console.error(`useMapsLibrary: failed to load ${String(library)} library`, error)\n setModule(null)\n }\n })\n\n return () => {\n cancelled = true\n }\n }, [library, apiKey])\n\n return module\n}\n\nexport type { GoogleMapsLibraryName, GoogleMapsLibraryModule }\n"],"mappings":";;;;AAuCA,IAAIG,IAAoC,MACpCC,IAA+B,MAE7BC,oBAAkB,IAAI,IAA8B,GAEpDC,KAAgB,MAAoB;CACxC,IAAI,CAACC,GAAQ;EACX,IAAMC,IAAQ,gBAAI,MAAM,6CAA6C;EAErE,OADA,QAAQ,MAAMA,EAAM,OAAO,GACpB,QAAQ,OAAOA,CAAK;CAC7B;CAoBA,OAlBKL,IAYMC,MAAkBG,KAC3B,QAAQ,KACN,qHACF,KAdA,IAAgBA,GAChBE,EAAW;EACT,KAAKF;EACL,GAAG;CACL,CAAC,GACD,IAAcG,EAAc,MAAM,CAAC,CAChC,WAAW,CAAC,CAAC,CAAC,CACd,OAAM,MAAS;EAEd,MADA,IAAc,MACRF;CACR,CAAC,IAOEL;AACT,GAEMQ,KACJ,GACA,MACG;CACH,IAAMC,IAAW,OAAOC,CAAO,GACzBC,IAAST,EAAgB,IAAIO,CAAQ;CAC3C,IAAIE,GACF,OAAOA;CAGT,IAAMC,IAAUT,EAAaC,CAAM,CAAC,CACjC,WAAW;EACV,IAAI,OAAO,SAAW,OAAe,CAAC,OAAO,QAAQ,MAAM,eACzD,MAAU,MAAM,6DAA6D;EAE/E,OAAO,OAAO,OAAO,KAAK,cAAcK,CAAQ;CAClD,CAAC,CAAC,CACD,MAAK,MAAUI,CAAoC,CAAC,CACpD,OAAM,MAAS;EAEd,MADAX,EAAgB,OAAOO,CAAQ,GACzBJ;CACR,CAAC;CAGH,OADAH,EAAgB,IAAIO,GAAUG,CAA2B,GAClDA;AACT,GAEaE,KACX,GACA,MACG;eACG,CAACD,GAAQI,KACbC,EAA4C,IAAI,GAExCrB,GAuBPC;CAEH,OAlBuBiB,EAAA,OAAAX,KAAAW,EAAA,OAATL,KAPJ,UAAM;EACd,IAAI,OAAO,SAAW,KACpB;EAGF,IAAIW,IAAY;EAehB,OAbAb,EAAYE,GAASN,CAAM,CAAC,CACzB,MAAK,MAAgB;GACpB,AAAKiB,KACHJ,EAAUK,CAAY;EAE1B,CAAC,CAAC,CACD,OAAM,MAAS;GACd,AAAKD,MACH,QAAQ,MAAM,kCAAkC,OAAOX,CAAO,EAAE,WAAWL,CAAK,GAChFY,EAAU,IAAI;EAElB,CAAC,SAEU;GACX,IAAY;EACd;CACF,GAAG,IAAA,CAACP,GAASN,CAAM,GAhBI,EAAA,KAAAA,GAAT,EAAA,KAAAM,+CAPda,EAAU1B,GAuBPC,CAAiB,GAEbe;AACT"}
|
package/dist/index60.js
CHANGED
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
function t(e, t) {
|
|
16
|
-
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
17
|
-
}
|
|
18
|
-
function n(e, t) {
|
|
19
|
-
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
1
|
+
import { constructFrom as e } from "./index24.js";
|
|
2
|
+
import t from "./index25.js";
|
|
3
|
+
import { getDefaultOptions as n } from "./index38.js";
|
|
4
|
+
import r from "./index55.js";
|
|
5
|
+
//#region ../../node_modules/date-fns/getWeekYear.js
|
|
6
|
+
function i(i, a) {
|
|
7
|
+
let o = t(i, a?.in), s = o.getFullYear(), c = n(), l = a?.firstWeekContainsDate ?? a?.locale?.options?.firstWeekContainsDate ?? c.firstWeekContainsDate ?? c.locale?.options?.firstWeekContainsDate ?? 1, u = e(a?.in || i, 0);
|
|
8
|
+
u.setFullYear(s + 1, 0, l), u.setHours(0, 0, 0, 0);
|
|
9
|
+
let d = r(u, a), f = e(a?.in || i, 0);
|
|
10
|
+
f.setFullYear(s, 0, l), f.setHours(0, 0, 0, 0);
|
|
11
|
+
let p = r(f, a);
|
|
12
|
+
return +o >= +d ? s + 1 : +o >= +p ? s : s - 1;
|
|
20
13
|
}
|
|
21
14
|
//#endregion
|
|
22
|
-
export {
|
|
15
|
+
export { i as default, i as getWeekYear };
|
|
23
16
|
|
|
24
17
|
//# sourceMappingURL=index60.js.map
|