@rpcbase/ui 0.245.0 → 0.247.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/index10.js +2 -2
- package/dist/index105.js +36 -36
- package/dist/index106.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index117.js +6 -6
- package/dist/index12.js +3 -3
- package/dist/index120.js +10 -10
- package/dist/index122.js +2 -2
- package/dist/index123.js +3 -3
- package/dist/index124.js +1 -1
- package/dist/index126.js +2 -2
- package/dist/index128.js +2 -2
- package/dist/index13.js +2 -2
- package/dist/index14.js +2 -2
- package/dist/index149.js +5 -14
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +2 -2
- package/dist/index150.js +63 -63
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +2 -38
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +385 -13
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +261 -23
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +58 -109
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +47 -13
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +169 -4
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +110 -4
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +25 -5
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +8 -12
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +8 -8
- package/dist/index160.js +4 -19
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +6 -11
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +4 -176
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +476 -268
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +189 -4
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +14 -28
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +105 -124
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +262 -63
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +6 -8
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +40 -15
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +1 -1
- package/dist/index170.js +4 -30
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +58 -69
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +8 -5
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +80 -61
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +20 -2
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +14 -383
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +4 -260
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +4 -59
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +6 -46
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +4 -169
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +7 -7
- package/dist/index180.js +6 -109
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +16 -24
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +5 -8
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +4 -4
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +12 -5
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +9 -4
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +13 -487
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +13 -189
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +4 -13
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +5 -107
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +16 -16
- package/dist/index190.js +6 -262
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +5 -6
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +53 -39
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +8 -4
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +4 -58
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +4 -8
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +8 -87
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +4 -19
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +4 -16
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +3 -5
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +10 -5
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +9 -6
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +9 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +10 -6
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +10 -16
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +9 -4
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +6 -4
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +5 -12
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +4 -9
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +5 -13
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -1
- package/dist/index210.js +6 -13
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -4
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +16 -5
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +7 -6
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +10 -5
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +10 -54
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +21 -8
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +8 -4
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +9 -4
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +9 -8
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +2 -2
- package/dist/index220.js +4 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +5 -4
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +16 -3
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +9 -10
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +18 -9
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +20 -9
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +12 -10
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +29 -10
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +12 -9
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +25 -6
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +5 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +14 -4
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +68 -5
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +38 -7
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +14 -6
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +23 -16
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +111 -7
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +13 -11
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +4 -10
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +4 -22
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +5 -9
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +11 -9
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +19 -9
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +11 -5
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +176 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +278 -15
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +4 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +28 -19
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +124 -18
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +63 -12
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +1 -1
- package/dist/index250.js +8 -29
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +15 -12
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +30 -25
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +69 -5
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +146 -58
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +32 -8
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +11 -11
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +48 -7
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +9 -5
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +11 -13
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +43 -3
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +97 -3
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +74 -87
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +104 -16
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +50 -27
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +11 -51
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +4 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +37 -5
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +8 -61
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +3 -66
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +9 -133
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +134 -7
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +18 -5
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +16 -4
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +36 -11
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +20 -21
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +8 -16
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +24 -11
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +29 -8
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +14 -142
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.js +19 -79
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +65 -60
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +7 -15
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +6 -20
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +11 -6
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +3 -11
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +50 -3
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +4 -51
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +25 -12
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +14 -19
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +56 -3
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +5 -53
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +21 -20
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +53 -41
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +19 -38
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +42 -46
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +38 -19
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +46 -71
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +20 -17
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +70 -3
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +16 -12
- package/dist/index299.js.map +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.js +3 -242
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +3 -18
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +11 -36
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +12 -238
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +15 -249
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +35 -67
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +233 -77
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +252 -3
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +68 -29
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +99 -16
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +82 -33
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +239 -21
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +3 -17
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +29 -3
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +16 -26
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +34 -28
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +18 -4
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +3 -78
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +23 -269
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +27 -10
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +4 -11
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +77 -24
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +23 -4
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +271 -15
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +11 -125
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +10 -5
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +24 -64
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +17 -14
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +125 -7
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +5 -5
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +65 -3
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +13 -10
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +7 -7
- package/dist/index329.js.map +1 -1
- package/dist/index33.js +3 -6
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +5 -399
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +4 -5
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +10 -52
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +6 -10
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +128 -22
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +399 -11
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +5 -155
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +51 -31
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +11 -11
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +23 -45
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +8 -38
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +11 -9
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +4 -11
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +17 -43
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +12 -97
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +8 -86
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +11 -105
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +7 -51
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +12 -10
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +3 -4
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +3 -37
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +35 -74
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +17 -8
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +5 -135
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +51 -17
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +60 -14
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +66 -3
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +7 -35
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +5 -21
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +11 -9
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +21 -8
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +14 -22
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +74 -20
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +8 -29
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +142 -14
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +79 -4
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +61 -17
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +15 -13
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +4 -8
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +21 -27
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +4 -138
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +5 -12
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +3 -47
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +18 -33
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +11 -3
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +19 -20
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +44 -75
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +17 -11
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +5 -4
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +197 -70
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +70 -197
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +118 -66
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +4 -35
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +5 -7
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +36 -26
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +4 -16
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +15 -123
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +9 -4
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +5 -11
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +4 -5
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +546 -3
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +46 -20
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +18 -45
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +6 -18
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +8 -5
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +26 -21
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +6 -4
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +7 -20
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +11 -4
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +8 -4
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +13 -4
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +8 -15
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +27 -9
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +137 -5
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +12 -4
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +44 -543
- package/dist/index399.js.map +1 -1
- package/dist/index4.js +2 -2
- package/dist/index40.js +20 -56
- package/dist/index40.js.map +1 -1
- package/dist/index400.js +4 -47
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +21 -17
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +75 -5
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +12 -8
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +3 -6
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +71 -7
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +35 -11
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +7 -9
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +15 -12
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +3 -3
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +59 -51
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +3 -15
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +4 -491
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +56 -3
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +68 -3
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +31 -5
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +9 -56
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +146 -61
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +103 -26
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +15 -9
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +3 -153
- package/dist/index419.js.map +1 -1
- package/dist/index42.js +50 -21
- package/dist/index42.js.map +1 -1
- package/dist/index420.js +490 -106
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +7 -32
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +2 -8
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +44 -2
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +52 -40
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +7 -55
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +2 -8
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +55 -2
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +53 -52
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +32 -55
- package/dist/index429.js.map +1 -1
- package/dist/index43.js +18 -127
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +122 -39
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +42 -85
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +87 -123
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +126 -5
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +5 -332
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +321 -246
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +2 -2
- package/dist/index50.js +254 -23
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +25 -129
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +129 -24
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +22 -19
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +19 -134
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +133 -30
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +30 -24
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +26 -38
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +39 -19
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +18 -133
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +4 -4
- package/dist/index60.js +134 -49
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +48 -25
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +28 -57
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +57 -56
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +5 -5
- package/dist/index64.js.map +1 -1
- package/dist/index66.js +10 -22
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +17 -232
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +5 -5
- package/dist/index68.js.map +1 -1
- package/dist/index7.js +11 -11
- package/dist/index70.js +22 -10
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +232 -17
- package/dist/index71.js.map +1 -1
- package/dist/index76.js +1 -1
- package/dist/index77.js +2 -2
- package/dist/index78.js +2 -2
- package/dist/index8.js +2 -2
- package/dist/index9.js +1 -1
- package/package.json +1 -1
package/dist/index376.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index376.js","sources":["../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, autoPlacement as autoPlacement$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar isClient = typeof document !== 'undefined';\n\nvar noop = function noop() {};\nvar index = isClient ? useLayoutEffect : noop;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => {\n const result = offset$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => {\n const result = shift$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => {\n const result = limitShift$1(options);\n return {\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => {\n const result = flip$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => {\n const result = size$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => {\n const result = autoPlacement$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => {\n const result = hide$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => {\n const result = inline$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => {\n const result = arrow$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["isClient","noop","index","useLayoutEffect","deepEqual","a","b","length","i","keys","key","getDPR","element","roundByDPR","value","dpr","useLatestRef","ref","React","useFloating","options","placement","strategy","middleware","platform","externalReference","externalFloating","transform","whileElementsMounted","open","data","setData","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","update","config","computePosition","fullData","isMountedRef","ReactDOM","refs","elements","floatingStyles","initialStyles","x","y","offset","deps","result","offset$1","shift","shift$1","limitShift","limitShift$1","flip","flip$1","size","size$1","hide","hide$1"],"mappings":";;;;;AAMA,IAAIA,IAAW,OAAO,WAAa,KAE/BC,IAAO,WAAgB;AAAC,GACxBC,IAAQF,IAAWG,IAAkBF;AAIzC,SAASG,EAAUC,GAAGC,GAAG;AACvB,MAAID,MAAMC;AACR,WAAO;AAET,MAAI,OAAOD,KAAM,OAAOC;AACtB,WAAO;AAET,MAAI,OAAOD,KAAM,cAAcA,EAAE,eAAeC,EAAE;AAChD,WAAO;AAET,MAAIC,GACAC,GACAC;AACJ,MAAIJ,KAAKC,KAAK,OAAOD,KAAM,UAAU;AACnC,QAAI,MAAM,QAAQA,CAAC,GAAG;AAEpB,UADAE,IAASF,EAAE,QACPE,MAAWD,EAAE,OAAQ,QAAO;AAChC,WAAKE,IAAID,GAAQC,QAAQ;AACvB,YAAI,CAACJ,EAAUC,EAAEG,CAAC,GAAGF,EAAEE,CAAC,CAAC;AACvB,iBAAO;AAGX,aAAO;AAAA,IACT;AAGA,QAFAC,IAAO,OAAO,KAAKJ,CAAC,GACpBE,IAASE,EAAK,QACVF,MAAW,OAAO,KAAKD,CAAC,EAAE;AAC5B,aAAO;AAET,SAAKE,IAAID,GAAQC,QAAQ;AACvB,UAAI,CAAC,CAAA,EAAG,eAAe,KAAKF,GAAGG,EAAKD,CAAC,CAAC;AACpC,eAAO;AAGX,SAAKA,IAAID,GAAQC,QAAQ,KAAI;AAC3B,YAAME,IAAMD,EAAKD,CAAC;AAClB,UAAI,EAAAE,MAAQ,YAAYL,EAAE,aAGtB,CAACD,EAAUC,EAAEK,CAAG,GAAGJ,EAAEI,CAAG,CAAC;AAC3B,eAAO;AAAA,IAEX;AACA,WAAO;AAAA,EACT;AACA,SAAOL,MAAMA,KAAKC,MAAMA;AAC1B;AAEA,SAASK,EAAOC,GAAS;AACvB,SA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EAAOvD,CAAO;AAC7B,SAAO;AAAA,IACL,MAAM4C,EAAO;AAAA,IACb,IAAIA,EAAO;AAAA,IACX,SAAS,CAAC5C,GAAS2C,CAAI;AAAA,EAC3B;AACA;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index376.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/hooks/useFloating.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useFloating as usePosition } from '@floating-ui/react-dom';\nimport { isElement } from '@floating-ui/utils/dom';\nimport { useFloatingTree } from \"../components/FloatingTree.mjs\";\nimport { useFloatingRootContext } from \"./useFloatingRootContext.mjs\";\n\n/**\n * Provides data to position a floating element and context to add interactions.\n * @see https://floating-ui.com/docs/useFloating\n */\nexport function useFloating(options = {}) {\n const {\n nodeId,\n externalTree\n } = options;\n const internalStore = useFloatingRootContext(options);\n const store = options.rootContext || internalStore;\n const referenceElement = store.useState('referenceElement');\n const floatingElement = store.useState('floatingElement');\n const domReferenceElement = store.useState('domReferenceElement');\n const open = store.useState('open');\n const floatingId = store.useState('floatingId');\n const [positionReference, setPositionReferenceRaw] = React.useState(null);\n const [localDomReference, setLocalDomReference] = React.useState(undefined);\n const [localFloatingElement, setLocalFloatingElement] = React.useState(undefined);\n const domReferenceRef = React.useRef(null);\n const tree = useFloatingTree(externalTree);\n const storeElements = React.useMemo(() => ({\n reference: referenceElement,\n floating: floatingElement,\n domReference: domReferenceElement\n }), [referenceElement, floatingElement, domReferenceElement]);\n const position = usePosition({\n ...options,\n elements: {\n ...storeElements,\n ...(positionReference && {\n reference: positionReference\n })\n }\n });\n const localDomReferenceElement = isElement(localDomReference) ? localDomReference : null;\n const syncedFloatingElement = localFloatingElement === undefined ? store.state.floatingElement : localFloatingElement;\n store.useSyncedValue('referenceElement', localDomReference ?? null);\n store.useSyncedValue('domReferenceElement', localDomReference === undefined ? domReferenceElement : localDomReferenceElement);\n store.useSyncedValue('floatingElement', syncedFloatingElement);\n const setPositionReference = React.useCallback(node => {\n const computedPositionReference = isElement(node) ? {\n getBoundingClientRect: () => node.getBoundingClientRect(),\n getClientRects: () => node.getClientRects(),\n contextElement: node\n } : node;\n // Store the positionReference in state if the DOM reference is specified externally via the\n // `elements.reference` option. This ensures that it won't be overridden on future renders.\n setPositionReferenceRaw(computedPositionReference);\n position.refs.setReference(computedPositionReference);\n }, [position.refs]);\n const setReference = React.useCallback(node => {\n if (isElement(node) || node === null) {\n domReferenceRef.current = node;\n setLocalDomReference(node);\n }\n\n // Backwards-compatibility for passing a virtual element to `reference`\n // after it has set the DOM reference.\n if (isElement(position.refs.reference.current) || position.refs.reference.current === null ||\n // Don't allow setting virtual elements using the old technique back to\n // `null` to support `positionReference` + an unstable `reference`\n // callback ref.\n node !== null && !isElement(node)) {\n position.refs.setReference(node);\n }\n }, [position.refs, setLocalDomReference]);\n const setFloating = React.useCallback(node => {\n setLocalFloatingElement(node);\n position.refs.setFloating(node);\n }, [position.refs]);\n const refs = React.useMemo(() => ({\n ...position.refs,\n setReference,\n setFloating,\n setPositionReference,\n domReference: domReferenceRef\n }), [position.refs, setReference, setFloating, setPositionReference]);\n const elements = React.useMemo(() => ({\n ...position.elements,\n domReference: domReferenceElement\n }), [position.elements, domReferenceElement]);\n const context = React.useMemo(() => ({\n ...position,\n dataRef: store.context.dataRef,\n open,\n onOpenChange: store.setOpen,\n events: store.context.events,\n floatingId,\n refs,\n elements,\n nodeId,\n rootStore: store\n }), [position, refs, elements, nodeId, store, open, floatingId]);\n useIsoLayoutEffect(() => {\n if (domReferenceElement) {\n domReferenceRef.current = domReferenceElement;\n }\n }, [domReferenceElement]);\n useIsoLayoutEffect(() => {\n store.context.dataRef.current.floatingContext = context;\n const node = tree?.nodesRef.current.find(n => n.id === nodeId);\n if (node) {\n node.context = context;\n }\n });\n return React.useMemo(() => ({\n ...position,\n context,\n refs,\n elements,\n rootStore: store\n }), [position, refs, elements, context, store]);\n}"],"names":["useFloating","options","nodeId","externalTree","internalStore","useFloatingRootContext","store","referenceElement","floatingElement","domReferenceElement","open","floatingId","positionReference","setPositionReferenceRaw","React","localDomReference","setLocalDomReference","localFloatingElement","setLocalFloatingElement","domReferenceRef","tree","useFloatingTree","storeElements","position","usePosition","localDomReferenceElement","isElement","syncedFloatingElement","setPositionReference","node","computedPositionReference","setReference","setFloating","refs","elements","context","useIsoLayoutEffect","n"],"mappings":";;;;;;AAaO,SAASA,EAAYC,IAAU,IAAI;AACxC,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,cAAAC;AAAA,EACJ,IAAMF,GACEG,IAAgBC,EAAuBJ,CAAO,GAC9CK,IAAQL,EAAQ,eAAeG,GAC/BG,IAAmBD,EAAM,SAAS,kBAAkB,GACpDE,IAAkBF,EAAM,SAAS,iBAAiB,GAClDG,IAAsBH,EAAM,SAAS,qBAAqB,GAC1DI,IAAOJ,EAAM,SAAS,MAAM,GAC5BK,IAAaL,EAAM,SAAS,YAAY,GACxC,CAACM,GAAmBC,CAAuB,IAAIC,EAAM,SAAS,IAAI,GAClE,CAACC,GAAmBC,CAAoB,IAAIF,EAAM,SAAS,MAAS,GACpE,CAACG,GAAsBC,CAAuB,IAAIJ,EAAM,SAAS,MAAS,GAC1EK,IAAkBL,EAAM,OAAO,IAAI,GACnCM,IAAOC,EAAgBlB,CAAY,GACnCmB,IAAgBR,EAAM,QAAQ,OAAO;AAAA,IACzC,WAAWP;AAAA,IACX,UAAUC;AAAA,IACV,cAAcC;AAAA,EAClB,IAAM,CAACF,GAAkBC,GAAiBC,CAAmB,CAAC,GACtDc,IAAWC,EAAY;AAAA,IAC3B,GAAGvB;AAAA,IACH,UAAU;AAAA,MACR,GAAGqB;AAAA,MACH,GAAIV,KAAqB;AAAA,QACvB,WAAWA;AAAA,MACnB;AAAA,IACA;AAAA,EACA,CAAG,GACKa,IAA2BC,EAAUX,CAAiB,IAAIA,IAAoB,MAC9EY,IAAwBV,MAAyB,SAAYX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
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
events: a(),
|
|
32
|
-
nested: r,
|
|
33
|
-
triggerElements: c
|
|
34
|
-
}, l), this.syncOnly = e;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Syncs the event used by hover logic to distinguish hover-open from click-like interaction.
|
|
38
|
-
*/
|
|
39
|
-
syncOpenEvent = (n, e) => {
|
|
40
|
-
(!n || !this.state.open || // Prevent a pending hover-open from overwriting a click-open event, while allowing
|
|
41
|
-
// click events to upgrade a hover-open.
|
|
42
|
-
e != null && f(e)) && (this.context.dataRef.current.openEvent = n ? e : void 0);
|
|
1
|
+
import { getWindow as d, isOverflowElement as m } from "./index334.js";
|
|
2
|
+
import { addEventListener as T } from "./index326.js";
|
|
3
|
+
import { ownerDocument as a } from "./index310.js";
|
|
4
|
+
import { useIsoLayoutEffect as E } from "./index287.js";
|
|
5
|
+
import { Timeout as k } from "./index311.js";
|
|
6
|
+
import { AnimationFrame as H } from "./index327.js";
|
|
7
|
+
import { NOOP as z } from "./index290.js";
|
|
8
|
+
import { ios as j } from "./index360.js";
|
|
9
|
+
import { webkit as F } from "./index336.js";
|
|
10
|
+
let Y = {}, C = {}, L = "";
|
|
11
|
+
function R(s) {
|
|
12
|
+
if (typeof document > "u")
|
|
13
|
+
return !1;
|
|
14
|
+
const e = a(s);
|
|
15
|
+
return d(e).innerWidth - e.documentElement.clientWidth > 0;
|
|
16
|
+
}
|
|
17
|
+
function V(s) {
|
|
18
|
+
if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u")
|
|
19
|
+
return !1;
|
|
20
|
+
const t = a(s), o = t.documentElement, l = t.body, r = m(o) ? o : l, i = r.style.overflowY, c = o.style.scrollbarGutter;
|
|
21
|
+
o.style.scrollbarGutter = "stable", r.style.overflowY = "scroll";
|
|
22
|
+
const u = r.offsetWidth;
|
|
23
|
+
r.style.overflowY = "hidden";
|
|
24
|
+
const f = r.offsetWidth;
|
|
25
|
+
return r.style.overflowY = i, o.style.scrollbarGutter = c, u === f;
|
|
26
|
+
}
|
|
27
|
+
function q(s) {
|
|
28
|
+
const e = a(s), t = e.documentElement, o = e.body, l = m(t) ? t : o, r = {
|
|
29
|
+
overflowY: l.style.overflowY,
|
|
30
|
+
overflowX: l.style.overflowX
|
|
43
31
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const r = {
|
|
50
|
-
open: n,
|
|
51
|
-
reason: e.reason,
|
|
52
|
-
nativeEvent: e.event,
|
|
53
|
-
nested: this.context.nested,
|
|
54
|
-
triggerElement: e.trigger
|
|
55
|
-
};
|
|
56
|
-
this.context.events.emit("openchange", r);
|
|
32
|
+
return Object.assign(l.style, {
|
|
33
|
+
overflowY: "hidden",
|
|
34
|
+
overflowX: "hidden"
|
|
35
|
+
}), () => {
|
|
36
|
+
Object.assign(l.style, r);
|
|
57
37
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
38
|
+
}
|
|
39
|
+
function A(s) {
|
|
40
|
+
const e = a(s), t = e.documentElement, o = e.body, l = d(t);
|
|
41
|
+
let r = 0, i = 0, c = !1;
|
|
42
|
+
const u = H.create();
|
|
43
|
+
if (F && (l.visualViewport?.scale ?? 1) !== 1)
|
|
44
|
+
return () => {
|
|
45
|
+
};
|
|
46
|
+
function f() {
|
|
47
|
+
const h = l.getComputedStyle(t), n = l.getComputedStyle(o), v = (h.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
|
|
48
|
+
r = t.scrollTop, i = t.scrollLeft, Y = {
|
|
49
|
+
scrollbarGutter: t.style.scrollbarGutter,
|
|
50
|
+
overflowY: t.style.overflowY,
|
|
51
|
+
overflowX: t.style.overflowX
|
|
52
|
+
}, L = t.style.scrollBehavior, C = {
|
|
53
|
+
position: o.style.position,
|
|
54
|
+
height: o.style.height,
|
|
55
|
+
width: o.style.width,
|
|
56
|
+
boxSizing: o.style.boxSizing,
|
|
57
|
+
overflowY: o.style.overflowY,
|
|
58
|
+
overflowX: o.style.overflowX,
|
|
59
|
+
scrollBehavior: o.style.scrollBehavior
|
|
60
|
+
};
|
|
61
|
+
const G = t.scrollHeight > t.clientHeight, B = t.scrollWidth > t.clientWidth, W = h.overflowY === "scroll" || n.overflowY === "scroll", x = h.overflowX === "scroll" || n.overflowX === "scroll", b = Math.max(0, l.innerWidth - o.clientWidth), w = Math.max(0, l.innerHeight - o.clientHeight), p = parseFloat(n.marginTop) + parseFloat(n.marginBottom), g = parseFloat(n.marginLeft) + parseFloat(n.marginRight), S = m(t) ? t : o;
|
|
62
|
+
if (c = V(s), c) {
|
|
63
|
+
t.style.scrollbarGutter = v, S.style.overflowY = "hidden", S.style.overflowX = "hidden";
|
|
67
64
|
return;
|
|
68
65
|
}
|
|
69
|
-
|
|
66
|
+
Object.assign(t.style, {
|
|
67
|
+
scrollbarGutter: v,
|
|
68
|
+
overflowY: "hidden",
|
|
69
|
+
overflowX: "hidden"
|
|
70
|
+
}), (G || W) && (t.style.overflowY = "scroll"), (B || x) && (t.style.overflowX = "scroll"), Object.assign(o.style, {
|
|
71
|
+
position: "relative",
|
|
72
|
+
height: p || w ? `calc(100dvh - ${p + w}px)` : "100dvh",
|
|
73
|
+
width: g || b ? `calc(100vw - ${g + b}px)` : "100vw",
|
|
74
|
+
boxSizing: "border-box",
|
|
75
|
+
overflow: "hidden",
|
|
76
|
+
scrollBehavior: "unset"
|
|
77
|
+
}), o.scrollTop = r, o.scrollLeft = i, t.setAttribute("data-base-ui-scroll-locked", ""), t.style.scrollBehavior = "unset";
|
|
78
|
+
}
|
|
79
|
+
function y() {
|
|
80
|
+
Object.assign(t.style, Y), Object.assign(o.style, C), c || (t.scrollTop = r, t.scrollLeft = i, t.removeAttribute("data-base-ui-scroll-locked"), t.style.scrollBehavior = L);
|
|
81
|
+
}
|
|
82
|
+
function O() {
|
|
83
|
+
y(), u.request(f);
|
|
84
|
+
}
|
|
85
|
+
f();
|
|
86
|
+
const X = T(l, "resize", O);
|
|
87
|
+
return () => {
|
|
88
|
+
u.cancel(), y(), typeof l.removeEventListener == "function" && X();
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
class I {
|
|
92
|
+
lockCount = 0;
|
|
93
|
+
restore = null;
|
|
94
|
+
timeoutLock = k.create();
|
|
95
|
+
timeoutUnlock = k.create();
|
|
96
|
+
acquire(e) {
|
|
97
|
+
return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(e)), this.release;
|
|
98
|
+
}
|
|
99
|
+
release = () => {
|
|
100
|
+
this.lockCount -= 1, this.lockCount === 0 && this.restore && this.timeoutUnlock.start(0, this.unlock);
|
|
101
|
+
};
|
|
102
|
+
unlock = () => {
|
|
103
|
+
this.lockCount === 0 && this.restore && (this.restore?.(), this.restore = null);
|
|
70
104
|
};
|
|
105
|
+
lock(e) {
|
|
106
|
+
if (this.lockCount === 0 || this.restore !== null)
|
|
107
|
+
return;
|
|
108
|
+
const o = a(e).documentElement, l = d(o).getComputedStyle(o).overflowY;
|
|
109
|
+
if (l === "hidden" || l === "clip") {
|
|
110
|
+
this.restore = z;
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const r = j || !R(e);
|
|
114
|
+
this.restore = r ? q(e) : A(e);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
const M = new I();
|
|
118
|
+
function ot(s = !0, e = null) {
|
|
119
|
+
E(() => {
|
|
120
|
+
if (s)
|
|
121
|
+
return M.acquire(e);
|
|
122
|
+
}, [s, e]);
|
|
71
123
|
}
|
|
72
124
|
export {
|
|
73
|
-
|
|
125
|
+
ot as useScrollLock
|
|
74
126
|
};
|
|
75
127
|
//# sourceMappingURL=index377.js.map
|
package/dist/index377.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index377.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/components/FloatingRootStore.mjs"],"sourcesContent":["import { createSelector, ReactStore } from '@base-ui/utils/store';\nimport { createEventEmitter } from \"../utils/createEventEmitter.mjs\";\nimport { isClickLikeEvent } from \"../utils.mjs\";\nconst selectors = {\n open: createSelector(state => state.open),\n transitionStatus: createSelector(state => state.transitionStatus),\n domReferenceElement: createSelector(state => state.domReferenceElement),\n referenceElement: createSelector(state => state.positionReference ?? state.referenceElement),\n floatingElement: createSelector(state => state.floatingElement),\n floatingId: createSelector(state => state.floatingId)\n};\nexport class FloatingRootStore extends ReactStore {\n constructor(options) {\n const {\n syncOnly,\n nested,\n onOpenChange,\n triggerElements,\n ...initialState\n } = options;\n super({\n ...initialState,\n positionReference: initialState.referenceElement,\n domReferenceElement: initialState.referenceElement\n }, {\n onOpenChange,\n dataRef: {\n current: {}\n },\n events: createEventEmitter(),\n nested,\n triggerElements\n }, selectors);\n this.syncOnly = syncOnly;\n }\n\n /**\n * Syncs the event used by hover logic to distinguish hover-open from click-like interaction.\n */\n syncOpenEvent = (newOpen, event) => {\n if (!newOpen || !this.state.open ||\n // Prevent a pending hover-open from overwriting a click-open event, while allowing\n // click events to upgrade a hover-open.\n event != null && isClickLikeEvent(event)) {\n this.context.dataRef.current.openEvent = newOpen ? event : undefined;\n }\n };\n\n /**\n * Runs the root-owned side effects for an open state change.\n */\n dispatchOpenChange = (newOpen, eventDetails) => {\n this.syncOpenEvent(newOpen, eventDetails.event);\n const details = {\n open: newOpen,\n reason: eventDetails.reason,\n nativeEvent: eventDetails.event,\n nested: this.context.nested,\n triggerElement: eventDetails.trigger\n };\n this.context.events.emit('openchange', details);\n };\n\n /**\n * Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.\n *\n * @param newOpen The new open state.\n * @param eventDetails Details about the event that triggered the open state change.\n */\n setOpen = (newOpen, eventDetails) => {\n if (this.syncOnly) {\n this.context.onOpenChange?.(newOpen, eventDetails);\n return;\n }\n this.dispatchOpenChange(newOpen, eventDetails);\n this.context.onOpenChange?.(newOpen, eventDetails);\n };\n}"],"names":["selectors","createSelector","state","FloatingRootStore","ReactStore","options","syncOnly","nested","onOpenChange","triggerElements","initialState","createEventEmitter","newOpen","event","isClickLikeEvent","eventDetails","details"],"mappings":";;;;AAGA,MAAMA,IAAY;AAAA,EAChB,MAAMC,EAAe,CAAAC,MAASA,EAAM,IAAI;AAAA,EACxC,kBAAkBD,EAAe,CAAAC,MAASA,EAAM,gBAAgB;AAAA,EAChE,qBAAqBD,EAAe,CAAAC,MAASA,EAAM,mBAAmB;AAAA,EACtE,kBAAkBD,EAAe,CAAAC,MAASA,EAAM,qBAAqBA,EAAM,gBAAgB;AAAA,EAC3F,iBAAiBD,EAAe,CAAAC,MAASA,EAAM,eAAe;AAAA,EAC9D,YAAYD,EAAe,CAAAC,MAASA,EAAM,UAAU;AACtD;AACO,MAAMC,UAA0BC,EAAW;AAAA,EAChD,YAAYC,GAAS;AACnB,UAAM;AAAA,MACJ,UAAAC;AAAA,MACA,QAAAC;AAAA,MACA,cAAAC;AAAA,MACA,iBAAAC;AAAA,MACA,GAAGC;AAAA,IACT,IAAQL;AACJ,UAAM;AAAA,MACJ,GAAGK;AAAA,MACH,mBAAmBA,EAAa;AAAA,MAChC,qBAAqBA,EAAa;AAAA,IACxC,GAAO;AAAA,MACD,cAAAF;AAAA,MACA,SAAS;AAAA,QACP,SAAS,CAAA;AAAA,MACjB;AAAA,MACM,QAAQG,EAAkB;AAAA,MAC1B,QAAAJ;AAAA,MACA,iBAAAE;AAAA,IACN,GAAOT,CAAS,GACZ,KAAK,WAAWM;AAAA,EAClB;AAAA;AAAA;AAAA;AAAA,EAKA,gBAAgB,CAACM,GAASC,MAAU;AAClC,KAAI,CAACD,KAAW,CAAC,KAAK,MAAM;AAAA;AAAA,IAG5BC,KAAS,QAAQC,EAAiBD,CAAK,OACrC,KAAK,QAAQ,QAAQ,QAAQ,YAAYD,IAAUC,IAAQ;AAAA,EAE/D;AAAA;AAAA;AAAA;AAAA,EAKA,qBAAqB,CAACD,GAASG,MAAiB;AAC9C,SAAK,cAAcH,GAASG,EAAa,KAAK;AAC9C,UAAMC,IAAU;AAAA,MACd,MAAMJ;AAAA,MACN,QAAQG,EAAa;AAAA,MACrB,aAAaA,EAAa;AAAA,MAC1B,QAAQ,KAAK,QAAQ;AAAA,MACrB,gBAAgBA,EAAa;AAAA,IACnC;AACI,SAAK,QAAQ,OAAO,KAAK,cAAcC,CAAO;AAAA,EAChD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,UAAU,CAACJ,GAASG,MAAiB;AACnC,QAAI,KAAK,UAAU;AACjB,WAAK,QAAQ,eAAeH,GAASG,CAAY;AACjD;AAAA,IACF;AACA,SAAK,mBAAmBH,GAASG,CAAY,GAC7C,KAAK,QAAQ,eAAeH,GAASG,CAAY;AAAA,EACnD;AACF;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index377.js","sources":["../../../node_modules/@base-ui/utils/useScrollLock.mjs"],"sourcesContent":["'use client';\n\nimport { isOverflowElement } from '@floating-ui/utils/dom';\nimport { addEventListener } from \"./addEventListener.mjs\";\nimport { platform } from \"./platform/index.mjs\";\nimport { ownerDocument, ownerWindow } from \"./owner.mjs\";\nimport { useIsoLayoutEffect } from \"./useIsoLayoutEffect.mjs\";\nimport { Timeout } from \"./useTimeout.mjs\";\nimport { AnimationFrame } from \"./useAnimationFrame.mjs\";\nimport { NOOP } from \"./empty.mjs\";\nlet originalHtmlStyles = {};\nlet originalBodyStyles = {};\nlet originalHtmlScrollBehavior = '';\nfunction hasInsetScrollbars(referenceElement) {\n if (typeof document === 'undefined') {\n return false;\n }\n const doc = ownerDocument(referenceElement);\n const win = ownerWindow(doc);\n return win.innerWidth - doc.documentElement.clientWidth > 0;\n}\nfunction supportsStableScrollbarGutter(referenceElement) {\n const supported = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('scrollbar-gutter', 'stable');\n if (!supported || typeof document === 'undefined') {\n return false;\n }\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n const scrollContainer = isOverflowElement(html) ? html : body;\n const originalScrollContainerOverflowY = scrollContainer.style.overflowY;\n const originalHtmlStyleGutter = html.style.scrollbarGutter;\n html.style.scrollbarGutter = 'stable';\n scrollContainer.style.overflowY = 'scroll';\n const before = scrollContainer.offsetWidth;\n scrollContainer.style.overflowY = 'hidden';\n const after = scrollContainer.offsetWidth;\n scrollContainer.style.overflowY = originalScrollContainerOverflowY;\n html.style.scrollbarGutter = originalHtmlStyleGutter;\n return before === after;\n}\nfunction preventScrollOverlayScrollbars(referenceElement) {\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n\n // If an `overflow` style is present on <html>, we need to lock it, because a lock on <body>\n // won't have any effect.\n // But if <body> has an `overflow` style (like `overflow-x: hidden`), we need to lock it\n // instead, as sticky elements shift otherwise.\n const elementToLock = isOverflowElement(html) ? html : body;\n const originalElementToLockStyles = {\n overflowY: elementToLock.style.overflowY,\n overflowX: elementToLock.style.overflowX\n };\n Object.assign(elementToLock.style, {\n overflowY: 'hidden',\n overflowX: 'hidden'\n });\n return () => {\n Object.assign(elementToLock.style, originalElementToLockStyles);\n };\n}\nfunction preventScrollInsetScrollbars(referenceElement) {\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n const win = ownerWindow(html);\n let scrollTop = 0;\n let scrollLeft = 0;\n let updateGutterOnly = false;\n const resizeFrame = AnimationFrame.create();\n\n // Pinch-zoom in Safari causes a shift. Just don't lock scroll if there's any pinch-zoom.\n if (platform.engine.webkit && (win.visualViewport?.scale ?? 1) !== 1) {\n return () => {};\n }\n function lockScroll() {\n /* DOM reads: */\n\n const htmlStyles = win.getComputedStyle(html);\n const bodyStyles = win.getComputedStyle(body);\n const htmlScrollbarGutterValue = htmlStyles.scrollbarGutter || '';\n const hasBothEdges = htmlScrollbarGutterValue.includes('both-edges');\n const scrollbarGutterValue = hasBothEdges ? 'stable both-edges' : 'stable';\n scrollTop = html.scrollTop;\n scrollLeft = html.scrollLeft;\n originalHtmlStyles = {\n scrollbarGutter: html.style.scrollbarGutter,\n overflowY: html.style.overflowY,\n overflowX: html.style.overflowX\n };\n originalHtmlScrollBehavior = html.style.scrollBehavior;\n originalBodyStyles = {\n position: body.style.position,\n height: body.style.height,\n width: body.style.width,\n boxSizing: body.style.boxSizing,\n overflowY: body.style.overflowY,\n overflowX: body.style.overflowX,\n scrollBehavior: body.style.scrollBehavior\n };\n const isScrollableY = html.scrollHeight > html.clientHeight;\n const isScrollableX = html.scrollWidth > html.clientWidth;\n const hasConstantOverflowY = htmlStyles.overflowY === 'scroll' || bodyStyles.overflowY === 'scroll';\n const hasConstantOverflowX = htmlStyles.overflowX === 'scroll' || bodyStyles.overflowX === 'scroll';\n\n // Values can be negative in Firefox\n const scrollbarWidth = Math.max(0, win.innerWidth - body.clientWidth);\n const scrollbarHeight = Math.max(0, win.innerHeight - body.clientHeight);\n\n // Avoid shift due to the default <body> margin. This does cause elements to be clipped\n // with whitespace. Warn if <body> has margins?\n const marginY = parseFloat(bodyStyles.marginTop) + parseFloat(bodyStyles.marginBottom);\n const marginX = parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight);\n const elementToLock = isOverflowElement(html) ? html : body;\n updateGutterOnly = supportsStableScrollbarGutter(referenceElement);\n\n /*\n * DOM writes:\n * Do not read the DOM past this point!\n */\n\n if (updateGutterOnly) {\n html.style.scrollbarGutter = scrollbarGutterValue;\n elementToLock.style.overflowY = 'hidden';\n elementToLock.style.overflowX = 'hidden';\n return;\n }\n Object.assign(html.style, {\n scrollbarGutter: scrollbarGutterValue,\n overflowY: 'hidden',\n overflowX: 'hidden'\n });\n if (isScrollableY || hasConstantOverflowY) {\n html.style.overflowY = 'scroll';\n }\n if (isScrollableX || hasConstantOverflowX) {\n html.style.overflowX = 'scroll';\n }\n Object.assign(body.style, {\n position: 'relative',\n height: marginY || scrollbarHeight ? `calc(100dvh - ${marginY + scrollbarHeight}px)` : '100dvh',\n width: marginX || scrollbarWidth ? `calc(100vw - ${marginX + scrollbarWidth}px)` : '100vw',\n boxSizing: 'border-box',\n overflow: 'hidden',\n scrollBehavior: 'unset'\n });\n body.scrollTop = scrollTop;\n body.scrollLeft = scrollLeft;\n html.setAttribute('data-base-ui-scroll-locked', '');\n html.style.scrollBehavior = 'unset';\n }\n function cleanup() {\n Object.assign(html.style, originalHtmlStyles);\n Object.assign(body.style, originalBodyStyles);\n if (!updateGutterOnly) {\n html.scrollTop = scrollTop;\n html.scrollLeft = scrollLeft;\n html.removeAttribute('data-base-ui-scroll-locked');\n html.style.scrollBehavior = originalHtmlScrollBehavior;\n }\n }\n function handleResize() {\n cleanup();\n resizeFrame.request(lockScroll);\n }\n lockScroll();\n const unsubscribeResize = addEventListener(win, 'resize', handleResize);\n return () => {\n resizeFrame.cancel();\n cleanup();\n // Sometimes this cleanup can run after test teardown because it is called\n // in a `setTimeout(fn, 0)`. Guard the returned cleanup to avoid calling\n // `removeEventListener` when it is no longer available in tests.\n if (typeof win.removeEventListener === 'function') {\n unsubscribeResize();\n }\n };\n}\nclass ScrollLocker {\n lockCount = 0;\n restore = null;\n timeoutLock = Timeout.create();\n timeoutUnlock = Timeout.create();\n acquire(referenceElement) {\n this.lockCount += 1;\n if (this.lockCount === 1 && this.restore === null) {\n this.timeoutLock.start(0, () => this.lock(referenceElement));\n }\n return this.release;\n }\n release = () => {\n this.lockCount -= 1;\n if (this.lockCount === 0 && this.restore) {\n this.timeoutUnlock.start(0, this.unlock);\n }\n };\n unlock = () => {\n if (this.lockCount === 0 && this.restore) {\n this.restore?.();\n this.restore = null;\n }\n };\n lock(referenceElement) {\n if (this.lockCount === 0 || this.restore !== null) {\n return;\n }\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const htmlOverflowY = ownerWindow(html).getComputedStyle(html).overflowY;\n\n // If the site author already hid overflow on <html>, respect it and bail out.\n if (htmlOverflowY === 'hidden' || htmlOverflowY === 'clip') {\n this.restore = NOOP;\n return;\n }\n const hasOverlayScrollbars = platform.os.ios || !hasInsetScrollbars(referenceElement);\n\n // On iOS, scroll locking does not work if the navbar is collapsed. Due to numerous\n // side effects and bugs that arise on iOS, it must be researched extensively before\n // being enabled to ensure it doesn't cause the following issues:\n // - Textboxes must scroll into view when focused, nor cause a glitchy scroll animation.\n // - The navbar must not force itself into view and cause layout shift.\n // - Scroll containers must not flicker upon closing a popup when it has an exit animation.\n this.restore = hasOverlayScrollbars ? preventScrollOverlayScrollbars(referenceElement) : preventScrollInsetScrollbars(referenceElement);\n }\n}\nconst SCROLL_LOCKER = new ScrollLocker();\n\n/**\n * Locks the scroll of the document when enabled.\n *\n * @param enabled - Whether to enable the scroll lock.\n * @param referenceElement - Element to use as a reference for lock calculations.\n */\nexport function useScrollLock(enabled = true, referenceElement = null) {\n useIsoLayoutEffect(() => {\n if (!enabled) {\n return undefined;\n }\n return SCROLL_LOCKER.acquire(referenceElement);\n }, [enabled, referenceElement]);\n}"],"names":["originalHtmlStyles","originalBodyStyles","originalHtmlScrollBehavior","hasInsetScrollbars","referenceElement","doc","ownerDocument","ownerWindow","supportsStableScrollbarGutter","html","body","scrollContainer","isOverflowElement","originalScrollContainerOverflowY","originalHtmlStyleGutter","before","after","preventScrollOverlayScrollbars","elementToLock","originalElementToLockStyles","preventScrollInsetScrollbars","win","scrollTop","scrollLeft","updateGutterOnly","resizeFrame","AnimationFrame","platform.engine.webkit","lockScroll","htmlStyles","bodyStyles","scrollbarGutterValue","isScrollableY","isScrollableX","hasConstantOverflowY","hasConstantOverflowX","scrollbarWidth","scrollbarHeight","marginY","marginX","cleanup","handleResize","unsubscribeResize","addEventListener","ScrollLocker","Timeout","htmlOverflowY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D,GAAShD,CAAgB,CAAC;AAChC;","x_google_ignoreList":[0]}
|
package/dist/index378.js
CHANGED
|
@@ -1,39 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { FloatingRootStore as S } from "./index377.js";
|
|
5
|
-
function h(u) {
|
|
6
|
-
const {
|
|
7
|
-
popupStore: n,
|
|
8
|
-
treatPopupAsFloatingElement: p = !1,
|
|
9
|
-
floatingRootContext: l,
|
|
10
|
-
floatingId: o,
|
|
11
|
-
nested: c,
|
|
12
|
-
onOpenChange: m
|
|
13
|
-
} = u, r = n.useState("open"), t = n.useState("activeTriggerElement"), s = n.useState(p ? "popupElement" : "positionerElement"), g = n.context.triggerElements, f = m, i = d.useRef(null);
|
|
14
|
-
l === void 0 && i.current === null && (i.current = new S({
|
|
15
|
-
open: r,
|
|
16
|
-
transitionStatus: void 0,
|
|
17
|
-
referenceElement: t,
|
|
18
|
-
floatingElement: s,
|
|
19
|
-
triggerElements: g,
|
|
20
|
-
onOpenChange: f,
|
|
21
|
-
floatingId: o,
|
|
22
|
-
syncOnly: !0,
|
|
23
|
-
nested: c
|
|
24
|
-
}));
|
|
25
|
-
const e = l ?? i.current;
|
|
26
|
-
return n.useSyncedValue("floatingId", o), E(() => {
|
|
27
|
-
const a = {
|
|
28
|
-
open: r,
|
|
29
|
-
floatingId: o,
|
|
30
|
-
referenceElement: t,
|
|
31
|
-
floatingElement: s
|
|
32
|
-
};
|
|
33
|
-
R(t) && (a.domReferenceElement = t), e.state.positionReference === e.state.referenceElement && (a.positionReference = t), e.update(a);
|
|
34
|
-
}, [r, o, t, s, e]), e.context.onOpenChange = f, e.context.nested = c, e;
|
|
1
|
+
import { constructFromSymbol as o } from "./index380.js";
|
|
2
|
+
function c(r, n) {
|
|
3
|
+
return typeof r == "function" ? r(n) : r && typeof r == "object" && o in r ? r[o](n) : r instanceof Date ? new r.constructor(n) : new Date(n);
|
|
35
4
|
}
|
|
36
5
|
export {
|
|
37
|
-
|
|
6
|
+
c as constructFrom
|
|
38
7
|
};
|
|
39
8
|
//# sourceMappingURL=index378.js.map
|
package/dist/index378.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index378.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index378.js","sources":["../../../node_modules/date-fns/constructFrom.js"],"sourcesContent":["import { constructFromSymbol } from \"./constants.js\";\n\n/**\n * @name constructFrom\n * @category Generic Helpers\n * @summary Constructs a date using the reference date and the value\n *\n * @description\n * The function constructs a new date using the constructor from the reference\n * date and the given value. It helps to build generic functions that accept\n * date extensions.\n *\n * It defaults to `Date` if the passed reference date is a number or a string.\n *\n * Starting from v3.7.0, it allows to construct a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\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 *\n * @param date - The reference date to take constructor from\n * @param value - The value to create the date\n *\n * @returns Date initialized using the given date and value\n *\n * @example\n * import { constructFrom } from \"./constructFrom/date-fns\";\n *\n * // A function that clones a date preserving the original type\n * function cloneDate<DateType extends Date>(date: DateType): DateType {\n * return constructFrom(\n * date, // Use constructor from the given date\n * date.getTime() // Use the date value to create a new date\n * );\n * }\n */\nexport function constructFrom(date, value) {\n if (typeof date === \"function\") return date(value);\n\n if (date && typeof date === \"object\" && constructFromSymbol in date)\n return date[constructFromSymbol](value);\n\n if (date instanceof Date) return new date.constructor(value);\n\n return new Date(value);\n}\n\n// Fallback for modularized imports:\nexport default constructFrom;\n"],"names":["constructFrom","date","value","constructFromSymbol"],"mappings":";AAqCO,SAASA,EAAcC,GAAMC,GAAO;AACzC,SAAI,OAAOD,KAAS,aAAmBA,EAAKC,CAAK,IAE7CD,KAAQ,OAAOA,KAAS,YAAYE,KAAuBF,IACtDA,EAAKE,CAAmB,EAAED,CAAK,IAEpCD,aAAgB,OAAa,IAAIA,EAAK,YAAYC,CAAK,IAEpD,IAAI,KAAKA,CAAK;AACvB;","x_google_ignoreList":[0]}
|
package/dist/index379.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { constructFrom as r } from "./index378.js";
|
|
2
|
+
function n(o, t) {
|
|
3
|
+
return r(t || o, o);
|
|
4
|
+
}
|
|
2
5
|
export {
|
|
3
|
-
|
|
4
|
-
e as ARROW_LEFT,
|
|
5
|
-
n as ARROW_RIGHT,
|
|
6
|
-
R as ARROW_UP,
|
|
7
|
-
t as FOCUSABLE_ATTRIBUTE,
|
|
8
|
-
o as TYPEABLE_SELECTOR
|
|
6
|
+
n as toDate
|
|
9
7
|
};
|
|
10
8
|
//# sourceMappingURL=index379.js.map
|
package/dist/index379.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index379.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index379.js","sources":["../../../node_modules/date-fns/toDate.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * Starting from v3.7.0, it clones a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\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 argument - The value to convert\n *\n * @returns The parsed date in the local time zone\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport function toDate(argument, context) {\n // [TODO] Get rid of `toDate` or `constructFrom`?\n return constructFrom(context || argument, argument);\n}\n\n// Fallback for modularized imports:\nexport default toDate;\n"],"names":["toDate","argument","context","constructFrom"],"mappings":";AAwCO,SAASA,EAAOC,GAAUC,GAAS;AAExC,SAAOC,EAAcD,KAAWD,GAAUA,CAAQ;AACpD;","x_google_ignoreList":[0]}
|
package/dist/index38.js
CHANGED
|
@@ -1,31 +1,41 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import { useDialogRootContext as d } from "./index231.js";
|
|
3
|
+
import { useRenderElement as u } from "./index232.js";
|
|
4
|
+
import { popupStateMapping as l } from "./index233.js";
|
|
5
|
+
import { transitionStatusMapping as m } from "./index234.js";
|
|
6
|
+
const f = {
|
|
7
|
+
...l,
|
|
8
|
+
...m
|
|
9
|
+
}, S = /* @__PURE__ */ c.forwardRef(function(e, o) {
|
|
9
10
|
const {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
render: R,
|
|
12
|
+
className: k,
|
|
13
|
+
style: D,
|
|
14
|
+
forceRender: n = !1,
|
|
15
|
+
...s
|
|
16
|
+
} = e, {
|
|
17
|
+
store: t
|
|
18
|
+
} = d(), r = t.useState("open"), a = t.useState("nested"), i = t.useState("mounted"), p = t.useState("transitionStatus");
|
|
19
|
+
return u("div", e, {
|
|
20
|
+
state: {
|
|
21
|
+
open: r,
|
|
22
|
+
transitionStatus: p
|
|
23
|
+
},
|
|
24
|
+
ref: [t.context.backdropRef, o],
|
|
25
|
+
stateAttributesMapping: f,
|
|
26
|
+
props: [{
|
|
27
|
+
role: "presentation",
|
|
28
|
+
hidden: !i,
|
|
29
|
+
style: {
|
|
30
|
+
userSelect: "none",
|
|
31
|
+
WebkitUserSelect: "none"
|
|
32
|
+
}
|
|
33
|
+
}, s],
|
|
34
|
+
enabled: n || !a
|
|
35
|
+
});
|
|
26
36
|
});
|
|
27
|
-
process.env.NODE_ENV !== "production" && (
|
|
37
|
+
process.env.NODE_ENV !== "production" && (S.displayName = "DialogBackdrop");
|
|
28
38
|
export {
|
|
29
|
-
|
|
39
|
+
S as DialogBackdrop
|
|
30
40
|
};
|
|
31
41
|
//# sourceMappingURL=index38.js.map
|
package/dist/index38.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index38.js","sources":["../../../node_modules/@base-ui/react/dialog/
|
|
1
|
+
{"version":3,"file":"index38.js","sources":["../../../node_modules/@base-ui/react/dialog/backdrop/DialogBackdrop.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useDialogRootContext } from \"../root/DialogRootContext.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { popupStateMapping as baseMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { transitionStatusMapping } from \"../../internals/stateAttributesMapping.mjs\";\nconst stateAttributesMapping = {\n ...baseMapping,\n ...transitionStatusMapping\n};\n\n/**\n * An overlay displayed beneath the popup.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)\n */\nexport const DialogBackdrop = /*#__PURE__*/React.forwardRef(function DialogBackdrop(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n forceRender = false,\n ...elementProps\n } = componentProps;\n const {\n store\n } = useDialogRootContext();\n const open = store.useState('open');\n const nested = store.useState('nested');\n const mounted = store.useState('mounted');\n const transitionStatus = store.useState('transitionStatus');\n const state = {\n open,\n transitionStatus\n };\n return useRenderElement('div', componentProps, {\n state,\n ref: [store.context.backdropRef, forwardedRef],\n stateAttributesMapping,\n props: [{\n role: 'presentation',\n hidden: !mounted,\n style: {\n userSelect: 'none',\n WebkitUserSelect: 'none'\n }\n }, elementProps],\n enabled: forceRender || !nested\n });\n});\nif (process.env.NODE_ENV !== \"production\") DialogBackdrop.displayName = \"DialogBackdrop\";"],"names":["stateAttributesMapping","baseMapping","transitionStatusMapping","DialogBackdrop","React","componentProps","forwardedRef","render","className","style","forceRender","elementProps","store","useDialogRootContext","open","nested","mounted","transitionStatus","useRenderElement"],"mappings":";;;;;AAOA,MAAMA,IAAyB;AAAA,EAC7B,GAAGC;AAAAA,EACH,GAAGC;AACL,GAQaC,IAA8B,gBAAAC,EAAM,WAAW,SAAwBC,GAAgBC,GAAc;AAChH,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,GAAGC;AAAA,EACP,IAAMN,GACE;AAAA,IACJ,OAAAO;AAAA,EACJ,IAAMC,EAAoB,GAClBC,IAAOF,EAAM,SAAS,MAAM,GAC5BG,IAASH,EAAM,SAAS,QAAQ,GAChCI,IAAUJ,EAAM,SAAS,SAAS,GAClCK,IAAmBL,EAAM,SAAS,kBAAkB;AAK1D,SAAOM,EAAiB,OAAOb,GAAgB;AAAA,IAC7C,OALY;AAAA,MACZ,MAAAS;AAAA,MACA,kBAAAG;AAAA,IACJ;AAAA,IAGI,KAAK,CAACL,EAAM,QAAQ,aAAaN,CAAY;AAAA,IAC7C,wBAAAN;AAAA,IACA,OAAO,CAAC;AAAA,MACN,MAAM;AAAA,MACN,QAAQ,CAACgB;AAAA,MACT,OAAO;AAAA,QACL,YAAY;AAAA,QACZ,kBAAkB;AAAA,MAC1B;AAAA,IACA,GAAOL,CAAY;AAAA,IACf,SAASD,KAAe,CAACK;AAAA,EAC7B,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcZ,EAAe,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index380.js
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { PopupTriggerMap as n } from "./index281.js";
|
|
3
|
-
function r() {
|
|
4
|
-
return new e({
|
|
5
|
-
open: !1,
|
|
6
|
-
transitionStatus: void 0,
|
|
7
|
-
floatingElement: null,
|
|
8
|
-
referenceElement: null,
|
|
9
|
-
triggerElements: new n(),
|
|
10
|
-
floatingId: void 0,
|
|
11
|
-
syncOnly: !1,
|
|
12
|
-
nested: !1,
|
|
13
|
-
onOpenChange: void 0
|
|
14
|
-
});
|
|
15
|
-
}
|
|
1
|
+
const o = 6048e5, c = 864e5, n = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
16
2
|
export {
|
|
17
|
-
|
|
3
|
+
n as constructFromSymbol,
|
|
4
|
+
c as millisecondsInDay,
|
|
5
|
+
o as millisecondsInWeek
|
|
18
6
|
};
|
|
19
7
|
//# sourceMappingURL=index380.js.map
|
package/dist/index380.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index380.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index380.js","sources":["../../../node_modules/date-fns/constants.js"],"sourcesContent":["/**\n * @module constants\n * @summary Useful constants\n * @description\n * Collection of useful date constants.\n *\n * The constants could be imported from `date-fns/constants`:\n *\n * ```ts\n * import { maxTime, minTime } from \"./constants/date-fns/constants\";\n *\n * function isAllowedTime(time) {\n * return time <= maxTime && time >= minTime;\n * }\n * ```\n */\n\n/**\n * @constant\n * @name daysInWeek\n * @summary Days in 1 week.\n */\nexport const daysInWeek = 7;\n\n/**\n * @constant\n * @name daysInYear\n * @summary Days in 1 year.\n *\n * @description\n * How many days in a year.\n *\n * One years equals 365.2425 days according to the formula:\n *\n * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400.\n * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days\n */\nexport const daysInYear = 365.2425;\n\n/**\n * @constant\n * @name maxTime\n * @summary Maximum allowed time.\n *\n * @example\n * import { maxTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = 8640000000000001 <= maxTime;\n * //=> false\n *\n * new Date(8640000000000001);\n * //=> Invalid Date\n */\nexport const maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;\n\n/**\n * @constant\n * @name minTime\n * @summary Minimum allowed time.\n *\n * @example\n * import { minTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = -8640000000000001 >= minTime;\n * //=> false\n *\n * new Date(-8640000000000001)\n * //=> Invalid Date\n */\nexport const minTime = -maxTime;\n\n/**\n * @constant\n * @name millisecondsInWeek\n * @summary Milliseconds in 1 week.\n */\nexport const millisecondsInWeek = 604800000;\n\n/**\n * @constant\n * @name millisecondsInDay\n * @summary Milliseconds in 1 day.\n */\nexport const millisecondsInDay = 86400000;\n\n/**\n * @constant\n * @name millisecondsInMinute\n * @summary Milliseconds in 1 minute\n */\nexport const millisecondsInMinute = 60000;\n\n/**\n * @constant\n * @name millisecondsInHour\n * @summary Milliseconds in 1 hour\n */\nexport const millisecondsInHour = 3600000;\n\n/**\n * @constant\n * @name millisecondsInSecond\n * @summary Milliseconds in 1 second\n */\nexport const millisecondsInSecond = 1000;\n\n/**\n * @constant\n * @name minutesInYear\n * @summary Minutes in 1 year.\n */\nexport const minutesInYear = 525600;\n\n/**\n * @constant\n * @name minutesInMonth\n * @summary Minutes in 1 month.\n */\nexport const minutesInMonth = 43200;\n\n/**\n * @constant\n * @name minutesInDay\n * @summary Minutes in 1 day.\n */\nexport const minutesInDay = 1440;\n\n/**\n * @constant\n * @name minutesInHour\n * @summary Minutes in 1 hour.\n */\nexport const minutesInHour = 60;\n\n/**\n * @constant\n * @name monthsInQuarter\n * @summary Months in 1 quarter.\n */\nexport const monthsInQuarter = 3;\n\n/**\n * @constant\n * @name monthsInYear\n * @summary Months in 1 year.\n */\nexport const monthsInYear = 12;\n\n/**\n * @constant\n * @name quartersInYear\n * @summary Quarters in 1 year\n */\nexport const quartersInYear = 4;\n\n/**\n * @constant\n * @name secondsInHour\n * @summary Seconds in 1 hour.\n */\nexport const secondsInHour = 3600;\n\n/**\n * @constant\n * @name secondsInMinute\n * @summary Seconds in 1 minute.\n */\nexport const secondsInMinute = 60;\n\n/**\n * @constant\n * @name secondsInDay\n * @summary Seconds in 1 day.\n */\nexport const secondsInDay = secondsInHour * 24;\n\n/**\n * @constant\n * @name secondsInWeek\n * @summary Seconds in 1 week.\n */\nexport const secondsInWeek = secondsInDay * 7;\n\n/**\n * @constant\n * @name secondsInYear\n * @summary Seconds in 1 year.\n */\nexport const secondsInYear = secondsInDay * daysInYear;\n\n/**\n * @constant\n * @name secondsInMonth\n * @summary Seconds in 1 month\n */\nexport const secondsInMonth = secondsInYear / 12;\n\n/**\n * @constant\n * @name secondsInQuarter\n * @summary Seconds in 1 quarter.\n */\nexport const secondsInQuarter = secondsInMonth * 3;\n\n/**\n * @constant\n * @name constructFromSymbol\n * @summary Symbol enabling Date extensions to inherit properties from the reference date.\n *\n * The symbol is used to enable the `constructFrom` function to construct a date\n * using a reference date and a value. It allows to transfer extra properties\n * from the reference date to the new date. It's useful for extensions like\n * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as\n * a constructor argument.\n */\nexport const constructFromSymbol = Symbol.for(\"constructDateFrom\");\n"],"names":["millisecondsInWeek","millisecondsInDay","constructFromSymbol"],"mappings":"AA4EY,MAACA,IAAqB,QAOrBC,IAAoB,OAoIpBC,IAAsB,uBAAO,IAAI,mBAAmB;","x_google_ignoreList":[0]}
|