@performant-software/core-data 2.2.21-beta.15 → 2.2.21-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs120.js +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs126.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs131.js +1 -1
- package/dist/index.cjs135.js +1 -1
- package/dist/index.cjs136.js +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs138.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs143.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs147.js +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs154.js +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs161.js +1 -1
- package/dist/index.cjs162.js +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs164.js +1 -1
- package/dist/index.cjs179.js.map +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs180.js.map +1 -1
- package/dist/index.cjs181.js +1 -1
- package/dist/index.cjs181.js.map +1 -1
- package/dist/index.cjs182.js +1 -1
- package/dist/index.cjs182.js.map +1 -1
- package/dist/index.cjs183.js +1 -1
- package/dist/index.cjs183.js.map +1 -1
- package/dist/index.cjs184.js +1 -1
- package/dist/index.cjs184.js.map +1 -1
- package/dist/index.cjs185.js +1 -1
- package/dist/index.cjs185.js.map +1 -1
- package/dist/index.cjs186.js +1 -1
- package/dist/index.cjs186.js.map +1 -1
- package/dist/index.cjs187.js +1 -1
- package/dist/index.cjs187.js.map +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs188.js.map +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs189.js.map +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs190.js.map +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs191.js.map +1 -1
- package/dist/index.cjs192.js +1 -1
- package/dist/index.cjs192.js.map +1 -1
- package/dist/index.cjs193.js +6 -1
- package/dist/index.cjs193.js.map +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs194.js.map +1 -1
- package/dist/index.cjs195.js +2 -1
- package/dist/index.cjs195.js.map +1 -1
- package/dist/index.cjs196.js +3 -1
- package/dist/index.cjs196.js.map +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs197.js.map +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs198.js.map +1 -1
- package/dist/index.cjs199.js +8 -1
- package/dist/index.cjs199.js.map +1 -1
- package/dist/index.cjs200.js +13 -1
- package/dist/index.cjs200.js.map +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs201.js.map +1 -1
- package/dist/index.cjs202.js +17 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs203.js.map +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs204.js.map +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs205.js.map +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs206.js.map +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs207.js.map +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs208.js.map +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs209.js.map +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs210.js.map +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs211.js.map +1 -1
- package/dist/index.cjs212.js +1 -1
- package/dist/index.cjs212.js.map +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs213.js.map +1 -1
- package/dist/index.cjs214.js +1 -1
- package/dist/index.cjs214.js.map +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs215.js.map +1 -1
- package/dist/index.cjs216.js +1 -1
- package/dist/index.cjs216.js.map +1 -1
- package/dist/index.cjs217.js +1 -1
- package/dist/index.cjs217.js.map +1 -1
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs218.js.map +1 -1
- package/dist/index.cjs219.js +1 -1
- package/dist/index.cjs219.js.map +1 -1
- package/dist/index.cjs220.js +1 -6
- package/dist/index.cjs220.js.map +1 -1
- package/dist/index.cjs221.js +1 -1
- package/dist/index.cjs221.js.map +1 -1
- package/dist/index.cjs222.js +1 -2
- package/dist/index.cjs222.js.map +1 -1
- package/dist/index.cjs223.js +1 -3
- package/dist/index.cjs223.js.map +1 -1
- package/dist/index.cjs224.js +1 -1
- package/dist/index.cjs224.js.map +1 -1
- package/dist/index.cjs225.js +1 -1
- package/dist/index.cjs225.js.map +1 -1
- package/dist/index.cjs226.js +1 -8
- package/dist/index.cjs226.js.map +1 -1
- package/dist/index.cjs227.js +1 -13
- package/dist/index.cjs227.js.map +1 -1
- package/dist/index.cjs228.js +1 -1
- package/dist/index.cjs228.js.map +1 -1
- package/dist/index.cjs229.js +1 -17
- package/dist/index.cjs229.js.map +1 -1
- package/dist/index.cjs230.js +1 -1
- package/dist/index.cjs230.js.map +1 -1
- package/dist/index.cjs231.js +1 -1
- package/dist/index.cjs231.js.map +1 -1
- package/dist/index.cjs232.js +1 -1
- package/dist/index.cjs232.js.map +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs233.js.map +1 -1
- package/dist/index.cjs234.js +1 -1
- package/dist/index.cjs234.js.map +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs235.js.map +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs236.js.map +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs237.js.map +1 -1
- package/dist/index.cjs242.js +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs244.js.map +1 -1
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs245.js.map +1 -1
- package/dist/index.cjs246.js +1 -1
- package/dist/index.cjs246.js.map +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs247.js.map +1 -1
- package/dist/index.cjs248.js +1 -1
- package/dist/index.cjs248.js.map +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs249.js.map +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs250.js.map +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs251.js.map +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs253.js.map +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs254.js.map +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs255.js.map +1 -1
- package/dist/index.cjs256.js +1 -1
- package/dist/index.cjs256.js.map +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs257.js.map +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs260.js +1 -1
- package/dist/index.cjs260.js.map +1 -1
- package/dist/index.cjs261.js +1 -1
- package/dist/index.cjs261.js.map +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs262.js.map +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs263.js.map +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs264.js.map +1 -1
- package/dist/index.cjs265.js +1 -1
- package/dist/index.cjs265.js.map +1 -1
- package/dist/index.cjs266.js +1 -1
- package/dist/index.cjs266.js.map +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs267.js.map +1 -1
- package/dist/index.cjs268.js +1 -1
- package/dist/index.cjs268.js.map +1 -1
- package/dist/index.cjs269.js +1 -1
- package/dist/index.cjs269.js.map +1 -1
- package/dist/index.cjs270.js +1 -1
- package/dist/index.cjs270.js.map +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs271.js.map +1 -1
- package/dist/index.cjs272.js +1 -1
- package/dist/index.cjs272.js.map +1 -1
- package/dist/index.cjs273.js +1 -1
- package/dist/index.cjs273.js.map +1 -1
- package/dist/index.cjs274.js +1 -1
- package/dist/index.cjs274.js.map +1 -1
- package/dist/index.cjs275.js +1 -1
- package/dist/index.cjs275.js.map +1 -1
- package/dist/index.cjs276.js +1 -1
- package/dist/index.cjs276.js.map +1 -1
- package/dist/index.cjs277.js +1 -1
- package/dist/index.cjs277.js.map +1 -1
- package/dist/index.cjs278.js +1 -1
- package/dist/index.cjs278.js.map +1 -1
- package/dist/index.cjs279.js +1 -1
- package/dist/index.cjs279.js.map +1 -1
- package/dist/index.cjs280.js +1 -1
- package/dist/index.cjs280.js.map +1 -1
- package/dist/index.cjs281.js +1 -1
- package/dist/index.cjs281.js.map +1 -1
- package/dist/index.cjs282.js +1 -1
- package/dist/index.cjs282.js.map +1 -1
- package/dist/index.cjs283.js +1 -1
- package/dist/index.cjs283.js.map +1 -1
- package/dist/index.cjs284.js +1 -1
- package/dist/index.cjs284.js.map +1 -1
- package/dist/index.cjs285.js +1 -1
- package/dist/index.cjs285.js.map +1 -1
- package/dist/index.cjs286.js +1 -1
- package/dist/index.cjs286.js.map +1 -1
- package/dist/index.cjs287.js +1 -1
- package/dist/index.cjs287.js.map +1 -1
- package/dist/index.cjs288.js +1 -1
- package/dist/index.cjs288.js.map +1 -1
- package/dist/index.cjs289.js +1 -1
- package/dist/index.cjs289.js.map +1 -1
- package/dist/index.cjs290.js +1 -1
- package/dist/index.cjs290.js.map +1 -1
- package/dist/index.cjs291.js +1 -1
- package/dist/index.cjs291.js.map +1 -1
- package/dist/index.cjs292.js +1 -1
- package/dist/index.cjs292.js.map +1 -1
- package/dist/index.cjs293.js +1 -1
- package/dist/index.cjs293.js.map +1 -1
- package/dist/index.cjs294.js +1 -1
- package/dist/index.cjs294.js.map +1 -1
- package/dist/index.cjs295.js +1 -1
- package/dist/index.cjs295.js.map +1 -1
- package/dist/index.cjs296.js +1 -1
- package/dist/index.cjs296.js.map +1 -1
- package/dist/index.cjs297.js +1 -1
- package/dist/index.cjs297.js.map +1 -1
- package/dist/index.cjs298.js +1 -1
- package/dist/index.cjs298.js.map +1 -1
- package/dist/index.cjs299.js +1 -1
- package/dist/index.cjs299.js.map +1 -1
- package/dist/index.cjs300.js +13 -1
- package/dist/index.cjs300.js.map +1 -1
- package/dist/index.cjs301.js +1 -1
- package/dist/index.cjs301.js.map +1 -1
- package/dist/index.cjs302.js +1 -13
- package/dist/index.cjs302.js.map +1 -1
- package/dist/index.cjs303.js +1 -1
- package/dist/index.cjs303.js.map +1 -1
- package/dist/index.cjs304.js +1 -1
- package/dist/index.cjs304.js.map +1 -1
- package/dist/index.cjs305.js +1 -1
- package/dist/index.cjs305.js.map +1 -1
- package/dist/index.cjs306.js +1 -1
- package/dist/index.cjs306.js.map +1 -1
- package/dist/index.cjs307.js +1 -1
- package/dist/index.cjs307.js.map +1 -1
- package/dist/index.cjs308.js +1 -1
- package/dist/index.cjs308.js.map +1 -1
- package/dist/index.cjs309.js +1 -1
- package/dist/index.cjs309.js.map +1 -1
- package/dist/index.cjs310.js +1 -1
- package/dist/index.cjs310.js.map +1 -1
- package/dist/index.cjs311.js +1 -1
- package/dist/index.cjs311.js.map +1 -1
- package/dist/index.cjs312.js +1 -1
- package/dist/index.cjs312.js.map +1 -1
- package/dist/index.cjs313.js +1 -1
- package/dist/index.cjs313.js.map +1 -1
- package/dist/index.cjs314.js +1 -1
- package/dist/index.cjs314.js.map +1 -1
- package/dist/index.cjs315.js +1 -1
- package/dist/index.cjs315.js.map +1 -1
- package/dist/index.cjs316.js +1 -1
- package/dist/index.cjs316.js.map +1 -1
- package/dist/index.cjs317.js +1 -1
- package/dist/index.cjs317.js.map +1 -1
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs318.js.map +1 -1
- package/dist/index.cjs319.js +1 -1
- package/dist/index.cjs319.js.map +1 -1
- package/dist/index.cjs320.js +1 -1
- package/dist/index.cjs320.js.map +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs321.js.map +1 -1
- package/dist/index.cjs322.js +1 -1
- package/dist/index.cjs322.js.map +1 -1
- package/dist/index.cjs323.js +1 -1
- package/dist/index.cjs323.js.map +1 -1
- package/dist/index.cjs324.js +1 -1
- package/dist/index.cjs324.js.map +1 -1
- package/dist/index.cjs325.js +1 -1
- package/dist/index.cjs325.js.map +1 -1
- package/dist/index.cjs326.js +1 -1
- package/dist/index.cjs326.js.map +1 -1
- package/dist/index.cjs327.js +1 -1
- package/dist/index.cjs327.js.map +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs328.js.map +1 -1
- package/dist/index.cjs329.js +1 -1
- package/dist/index.cjs329.js.map +1 -1
- package/dist/index.cjs330.js +1 -1
- package/dist/index.cjs330.js.map +1 -1
- package/dist/index.cjs331.js +1 -1
- package/dist/index.cjs331.js.map +1 -1
- package/dist/index.cjs332.js +1 -1
- package/dist/index.cjs332.js.map +1 -1
- package/dist/index.cjs333.js +1 -1
- package/dist/index.cjs333.js.map +1 -1
- package/dist/index.cjs334.js +1 -1
- package/dist/index.cjs334.js.map +1 -1
- package/dist/index.cjs335.js +1 -1
- package/dist/index.cjs335.js.map +1 -1
- package/dist/index.cjs336.js +1 -1
- package/dist/index.cjs336.js.map +1 -1
- package/dist/index.cjs337.js +1 -1
- package/dist/index.cjs337.js.map +1 -1
- package/dist/index.cjs338.js +1 -1
- package/dist/index.cjs338.js.map +1 -1
- package/dist/index.cjs339.js +1 -1
- package/dist/index.cjs339.js.map +1 -1
- package/dist/index.cjs340.js +1 -1
- package/dist/index.cjs340.js.map +1 -1
- package/dist/index.cjs341.js +1 -1
- package/dist/index.cjs341.js.map +1 -1
- package/dist/index.cjs342.js +1 -1
- package/dist/index.cjs342.js.map +1 -1
- package/dist/index.cjs343.js +1 -1
- package/dist/index.cjs343.js.map +1 -1
- package/dist/index.cjs344.js +1 -1
- package/dist/index.cjs344.js.map +1 -1
- package/dist/index.cjs345.js +1 -1
- package/dist/index.cjs345.js.map +1 -1
- package/dist/index.cjs346.js +1 -1
- package/dist/index.cjs346.js.map +1 -1
- package/dist/index.cjs347.js +1 -1
- package/dist/index.cjs347.js.map +1 -1
- package/dist/index.cjs348.js +1 -1
- package/dist/index.cjs348.js.map +1 -1
- package/dist/index.cjs349.js +1 -1
- package/dist/index.cjs349.js.map +1 -1
- package/dist/index.cjs350.js +1 -1
- package/dist/index.cjs350.js.map +1 -1
- package/dist/index.cjs351.js +1 -1
- package/dist/index.cjs351.js.map +1 -1
- package/dist/index.cjs352.js +1 -1
- package/dist/index.cjs352.js.map +1 -1
- package/dist/index.cjs353.js +1 -1
- package/dist/index.cjs353.js.map +1 -1
- package/dist/index.cjs354.js +1 -1
- package/dist/index.cjs354.js.map +1 -1
- package/dist/index.cjs355.js +1 -1
- package/dist/index.cjs355.js.map +1 -1
- package/dist/index.cjs359.js +1 -1
- package/dist/index.cjs360.js +1 -1
- package/dist/index.cjs361.js +1 -1
- package/dist/index.cjs362.js +1 -1
- package/dist/index.cjs363.js +1 -1
- package/dist/index.cjs364.js +1 -1
- package/dist/index.cjs365.js +1 -1
- package/dist/index.cjs366.js +1 -1
- package/dist/index.cjs367.js +1 -1
- package/dist/index.cjs368.js +1 -1
- package/dist/index.cjs372.js +1 -1
- package/dist/index.cjs373.js +1 -1
- package/dist/index.cjs376.js +1 -1
- package/dist/index.cjs410.js +1 -1
- package/dist/index.cjs410.js.map +1 -1
- package/dist/index.cjs411.js +1 -1
- package/dist/index.cjs411.js.map +1 -1
- package/dist/index.cjs412.js +1 -1
- package/dist/index.cjs412.js.map +1 -1
- package/dist/index.cjs413.js +1 -1
- package/dist/index.cjs413.js.map +1 -1
- package/dist/index.cjs414.js +1 -1
- package/dist/index.cjs414.js.map +1 -1
- package/dist/index.cjs415.js +1 -1
- package/dist/index.cjs415.js.map +1 -1
- package/dist/index.cjs416.js +1 -1
- package/dist/index.cjs416.js.map +1 -1
- package/dist/index.cjs417.js +1 -1
- package/dist/index.cjs417.js.map +1 -1
- package/dist/index.cjs418.js +1 -1
- package/dist/index.cjs418.js.map +1 -1
- package/dist/index.cjs419.js +1 -1
- package/dist/index.cjs419.js.map +1 -1
- package/dist/index.cjs420.js +1 -1
- package/dist/index.cjs420.js.map +1 -1
- package/dist/index.cjs421.js +1 -1
- package/dist/index.cjs421.js.map +1 -1
- package/dist/index.cjs422.js +1 -1
- package/dist/index.cjs422.js.map +1 -1
- package/dist/index.cjs423.js +1 -1
- package/dist/index.cjs423.js.map +1 -1
- package/dist/index.cjs424.js +1 -1
- package/dist/index.cjs424.js.map +1 -1
- package/dist/index.cjs425.js +1 -1
- package/dist/index.cjs425.js.map +1 -1
- package/dist/index.cjs426.js +1 -1
- package/dist/index.cjs426.js.map +1 -1
- package/dist/index.cjs427.js +1 -1
- package/dist/index.cjs427.js.map +1 -1
- package/dist/index.cjs428.js +1 -1
- package/dist/index.cjs428.js.map +1 -1
- package/dist/index.cjs429.js +1 -1
- package/dist/index.cjs429.js.map +1 -1
- package/dist/index.cjs430.js +1 -1
- package/dist/index.cjs430.js.map +1 -1
- package/dist/index.cjs431.js +1 -1
- package/dist/index.cjs431.js.map +1 -1
- package/dist/index.cjs432.js +1 -1
- package/dist/index.cjs432.js.map +1 -1
- package/dist/index.cjs433.js +1 -1
- package/dist/index.cjs433.js.map +1 -1
- package/dist/index.cjs434.js +1 -1
- package/dist/index.cjs434.js.map +1 -1
- package/dist/index.cjs435.js +1 -1
- package/dist/index.cjs435.js.map +1 -1
- package/dist/index.cjs436.js +1 -1
- package/dist/index.cjs436.js.map +1 -1
- package/dist/index.cjs437.js +1 -1
- package/dist/index.cjs437.js.map +1 -1
- package/dist/index.cjs438.js +1 -1
- package/dist/index.cjs438.js.map +1 -1
- package/dist/index.cjs439.js +1 -1
- package/dist/index.cjs439.js.map +1 -1
- package/dist/index.cjs440.js +1 -1
- package/dist/index.cjs440.js.map +1 -1
- package/dist/index.cjs441.js +1 -1
- package/dist/index.cjs441.js.map +1 -1
- package/dist/index.cjs442.js +1 -1
- package/dist/index.cjs442.js.map +1 -1
- package/dist/index.cjs443.js +1 -1
- package/dist/index.cjs443.js.map +1 -1
- package/dist/index.cjs444.js +1 -1
- package/dist/index.cjs444.js.map +1 -1
- package/dist/index.cjs447.js +1 -1
- package/dist/index.cjs447.js.map +1 -1
- package/dist/index.cjs448.js +1 -1
- package/dist/index.cjs448.js.map +1 -1
- package/dist/index.cjs450.js +1 -1
- package/dist/index.cjs450.js.map +1 -1
- package/dist/index.cjs451.js +1 -1
- package/dist/index.cjs451.js.map +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.cjs452.js.map +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs454.js +1 -1
- package/dist/index.cjs454.js.map +1 -1
- package/dist/index.cjs455.js +1 -1
- package/dist/index.cjs455.js.map +1 -1
- package/dist/index.cjs456.js +1 -1
- package/dist/index.cjs456.js.map +1 -1
- package/dist/index.cjs457.js +1 -1
- package/dist/index.cjs457.js.map +1 -1
- package/dist/index.cjs458.js +1 -1
- package/dist/index.cjs458.js.map +1 -1
- package/dist/index.cjs459.js +1 -1
- package/dist/index.cjs459.js.map +1 -1
- package/dist/index.cjs460.js +1 -1
- package/dist/index.cjs460.js.map +1 -1
- package/dist/index.cjs461.js +1 -1
- package/dist/index.cjs461.js.map +1 -1
- package/dist/index.cjs462.js +1 -1
- package/dist/index.cjs464.js +1 -1
- package/dist/index.cjs466.js +1 -1
- package/dist/index.cjs481.js +1 -1
- package/dist/index.cjs502.js +1 -1
- package/dist/index.cjs502.js.map +1 -1
- package/dist/index.cjs503.js +1 -1
- package/dist/index.cjs503.js.map +1 -1
- package/dist/index.cjs504.js +1 -1
- package/dist/index.cjs504.js.map +1 -1
- package/dist/index.cjs505.js +1 -1
- package/dist/index.cjs505.js.map +1 -1
- package/dist/index.cjs506.js +1 -1
- package/dist/index.cjs506.js.map +1 -1
- package/dist/index.cjs507.js +1 -1
- package/dist/index.cjs507.js.map +1 -1
- package/dist/index.cjs508.js +1 -1
- package/dist/index.cjs508.js.map +1 -1
- package/dist/index.cjs510.js +1 -1
- package/dist/index.cjs510.js.map +1 -1
- package/dist/index.cjs511.js +1 -1
- package/dist/index.cjs511.js.map +1 -1
- package/dist/index.cjs513.js +1 -1
- package/dist/index.cjs514.js +1 -1
- package/dist/index.cjs515.js +1 -1
- package/dist/index.cjs516.js +1 -1
- package/dist/index.cjs517.js +1 -1
- package/dist/index.cjs518.js +1 -1
- package/dist/index.cjs519.js +1 -1
- package/dist/index.cjs520.js +1 -1
- package/dist/index.cjs521.js +1 -1
- package/dist/index.cjs522.js +1 -1
- package/dist/index.cjs523.js +1 -1
- package/dist/index.cjs524.js +1 -1
- package/dist/index.cjs525.js +1 -1
- package/dist/index.cjs526.js +1 -1
- package/dist/index.cjs527.js +1 -1
- package/dist/index.cjs528.js +1 -1
- package/dist/index.cjs530.js +1 -1
- package/dist/index.cjs532.js +1 -1
- package/dist/index.cjs533.js +1 -1
- package/dist/index.cjs534.js +1 -1
- package/dist/index.cjs535.js +1 -1
- package/dist/index.cjs536.js +1 -1
- package/dist/index.cjs537.js +1 -1
- package/dist/index.cjs538.js +1 -1
- package/dist/index.cjs539.js +1 -1
- package/dist/index.cjs540.js +1 -1
- package/dist/index.cjs541.js +1 -1
- package/dist/index.cjs545.js +1 -1
- package/dist/index.cjs546.js +1 -1
- package/dist/index.cjs547.js +1 -1
- package/dist/index.cjs548.js +1 -1
- package/dist/index.cjs550.js +1 -1
- package/dist/index.cjs551.js +1 -1
- package/dist/index.cjs552.js +1 -1
- package/dist/index.cjs560.js +1 -1
- package/dist/index.cjs565.js +1 -1
- package/dist/index.cjs566.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs570.js +1 -1
- package/dist/index.cjs573.js +1 -1
- package/dist/index.cjs576.js +1 -1
- package/dist/index.cjs576.js.map +1 -1
- package/dist/index.cjs577.js +1 -1
- package/dist/index.cjs577.js.map +1 -1
- package/dist/index.cjs578.js +1 -1
- package/dist/index.cjs578.js.map +1 -1
- package/dist/index.cjs579.js +1 -1
- package/dist/index.cjs579.js.map +1 -1
- package/dist/index.cjs580.js +1 -1
- package/dist/index.cjs580.js.map +1 -1
- package/dist/index.cjs581.js +1 -1
- package/dist/index.cjs582.js +1 -1
- package/dist/index.cjs582.js.map +1 -1
- package/dist/index.cjs584.js +1 -1
- package/dist/index.cjs584.js.map +1 -1
- package/dist/index.cjs586.js +1 -1
- package/dist/index.cjs586.js.map +1 -1
- package/dist/index.cjs587.js +1 -1
- package/dist/index.cjs588.js +1 -1
- package/dist/index.cjs588.js.map +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs590.js +1 -1
- package/dist/index.cjs591.js +7 -1
- package/dist/index.cjs591.js.map +1 -1
- package/dist/index.cjs592.js +1 -1
- package/dist/index.cjs592.js.map +1 -1
- package/dist/index.cjs593.js +1 -1
- package/dist/index.cjs593.js.map +1 -1
- package/dist/index.cjs594.js +1 -1
- package/dist/index.cjs594.js.map +1 -1
- package/dist/index.cjs595.js +1 -1
- package/dist/index.cjs595.js.map +1 -1
- package/dist/index.cjs596.js +1 -1
- package/dist/index.cjs596.js.map +1 -1
- package/dist/index.cjs597.js +1 -7
- package/dist/index.cjs597.js.map +1 -1
- package/dist/index.cjs598.js +1 -1
- package/dist/index.cjs598.js.map +1 -1
- package/dist/index.cjs599.js +1 -1
- package/dist/index.cjs599.js.map +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs600.js +1 -1
- package/dist/index.cjs600.js.map +1 -1
- package/dist/index.cjs601.js +1 -1
- package/dist/index.cjs601.js.map +1 -1
- package/dist/index.cjs602.js +1 -1
- package/dist/index.cjs602.js.map +1 -1
- package/dist/index.cjs608.js +1 -1
- package/dist/index.cjs608.js.map +1 -1
- package/dist/index.cjs609.js +1 -1
- package/dist/index.cjs609.js.map +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs610.js +1 -1
- package/dist/index.cjs611.js +1 -1
- package/dist/index.cjs612.js +1 -1
- package/dist/index.cjs612.js.map +1 -1
- package/dist/index.cjs616.js +1 -1
- package/dist/index.cjs616.js.map +1 -1
- package/dist/index.cjs617.js +1 -1
- package/dist/index.cjs617.js.map +1 -1
- package/dist/index.cjs618.js +1 -1
- package/dist/index.cjs619.js +1 -1
- package/dist/index.cjs619.js.map +1 -1
- package/dist/index.cjs621.js +1 -1
- package/dist/index.cjs621.js.map +1 -1
- package/dist/index.cjs623.js +1 -1
- package/dist/index.cjs623.js.map +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs634.js +1 -1
- package/dist/index.cjs635.js +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs641.js +1 -1
- package/dist/index.cjs641.js.map +1 -1
- package/dist/index.cjs643.js +1 -1
- package/dist/index.cjs643.js.map +1 -1
- package/dist/index.cjs644.js +1 -1
- package/dist/index.cjs646.js +1 -1
- package/dist/index.cjs647.js +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs651.js +1 -1
- package/dist/index.cjs651.js.map +1 -1
- package/dist/index.cjs652.js +1 -1
- package/dist/index.cjs652.js.map +1 -1
- package/dist/index.cjs653.js +1 -1
- package/dist/index.cjs653.js.map +1 -1
- package/dist/index.cjs654.js +1 -1
- package/dist/index.cjs654.js.map +1 -1
- package/dist/index.cjs655.js.map +1 -1
- package/dist/index.cjs656.js.map +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs83.js +1 -1
- package/dist/index.cjs84.js +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.es101.js +2 -2
- package/dist/index.es107.js +2 -2
- package/dist/index.es117.js +1 -1
- package/dist/index.es118.js +4 -4
- package/dist/index.es120.js +1 -1
- package/dist/index.es121.js +1 -1
- package/dist/index.es126.js +1 -1
- package/dist/index.es129.js +1 -1
- package/dist/index.es130.js +1 -1
- package/dist/index.es131.js +1 -1
- package/dist/index.es135.js +2 -2
- package/dist/index.es136.js +1 -1
- package/dist/index.es137.js +7 -7
- package/dist/index.es138.js +1 -1
- package/dist/index.es141.js +1 -1
- package/dist/index.es143.js +3 -3
- package/dist/index.es144.js +2 -2
- package/dist/index.es147.js +3 -3
- package/dist/index.es148.js +9 -9
- package/dist/index.es150.js +4 -4
- package/dist/index.es151.js +4 -4
- package/dist/index.es152.js +7 -7
- package/dist/index.es153.js +14 -14
- package/dist/index.es154.js +2 -2
- package/dist/index.es155.js +2 -2
- package/dist/index.es161.js +1 -1
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +12 -12
- package/dist/index.es164.js +1 -1
- package/dist/index.es179.js.map +1 -1
- package/dist/index.es180.js +12 -4
- package/dist/index.es180.js.map +1 -1
- package/dist/index.es181.js +4 -46
- package/dist/index.es181.js.map +1 -1
- package/dist/index.es182.js +179 -10
- package/dist/index.es182.js.map +1 -1
- package/dist/index.es183.js +22 -12
- package/dist/index.es183.js.map +1 -1
- package/dist/index.es184.js +25 -4
- package/dist/index.es184.js.map +1 -1
- package/dist/index.es185.js +369 -167
- package/dist/index.es185.js.map +1 -1
- package/dist/index.es186.js +516 -21
- package/dist/index.es186.js.map +1 -1
- package/dist/index.es187.js +10 -24
- package/dist/index.es187.js.map +1 -1
- package/dist/index.es188.js +3 -381
- package/dist/index.es188.js.map +1 -1
- package/dist/index.es189.js +39 -510
- package/dist/index.es189.js.map +1 -1
- package/dist/index.es190.js +27 -6
- package/dist/index.es190.js.map +1 -1
- package/dist/index.es191.js +75 -14
- package/dist/index.es191.js.map +1 -1
- package/dist/index.es192.js +6 -53
- package/dist/index.es192.js.map +1 -1
- package/dist/index.es193.js +15 -123
- package/dist/index.es193.js.map +1 -1
- package/dist/index.es194.js +70 -14
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +65 -141
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es196.js +70 -10
- package/dist/index.es196.js.map +1 -1
- package/dist/index.es197.js +2 -219
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +2 -14
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +86 -59
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es200.js +85 -32
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +39 -43
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +67 -29
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +2 -10
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +1633 -13
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +32 -48
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es206.js +264 -56
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es207.js +4 -7
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js +68 -123
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es209.js +195 -16
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es210.js +6 -185
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es211.js +33 -215
- package/dist/index.es211.js.map +1 -1
- package/dist/index.es212.js +11 -12
- package/dist/index.es212.js.map +1 -1
- package/dist/index.es213.js +123 -68
- package/dist/index.es213.js.map +1 -1
- package/dist/index.es214.js +16 -195
- package/dist/index.es214.js.map +1 -1
- package/dist/index.es215.js +185 -9
- package/dist/index.es215.js.map +1 -1
- package/dist/index.es216.js +217 -4
- package/dist/index.es216.js.map +1 -1
- package/dist/index.es217.js +49 -26
- package/dist/index.es217.js.map +1 -1
- package/dist/index.es218.js +12 -75
- package/dist/index.es218.js.map +1 -1
- package/dist/index.es219.js +4 -6
- package/dist/index.es219.js.map +1 -1
- package/dist/index.es220.js +57 -16
- package/dist/index.es220.js.map +1 -1
- package/dist/index.es221.js +12 -71
- package/dist/index.es221.js.map +1 -1
- package/dist/index.es222.js +14 -68
- package/dist/index.es222.js.map +1 -1
- package/dist/index.es223.js +20 -70
- package/dist/index.es223.js.map +1 -1
- package/dist/index.es224.js +7 -2
- package/dist/index.es224.js.map +1 -1
- package/dist/index.es225.js +12 -2
- package/dist/index.es225.js.map +1 -1
- package/dist/index.es226.js +50 -88
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es227.js +120 -81
- package/dist/index.es227.js.map +1 -1
- package/dist/index.es228.js +13 -40
- package/dist/index.es228.js.map +1 -1
- package/dist/index.es229.js +135 -59
- package/dist/index.es229.js.map +1 -1
- package/dist/index.es230.js +11 -2
- package/dist/index.es230.js.map +1 -1
- package/dist/index.es231.js +209 -1624
- package/dist/index.es231.js.map +1 -1
- package/dist/index.es232.js +14 -35
- package/dist/index.es232.js.map +1 -1
- package/dist/index.es233.js +55 -257
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es234.js +32 -34
- package/dist/index.es234.js.map +1 -1
- package/dist/index.es235.js +45 -10
- package/dist/index.es235.js.map +1 -1
- package/dist/index.es236.js +29 -3
- package/dist/index.es236.js.map +1 -1
- package/dist/index.es237.js +10 -21
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es242.js +1 -1
- package/dist/index.es244.js +22 -10
- package/dist/index.es244.js.map +1 -1
- package/dist/index.es245.js +13 -10
- package/dist/index.es245.js.map +1 -1
- package/dist/index.es246.js +17 -4
- package/dist/index.es246.js.map +1 -1
- package/dist/index.es247.js +11 -22
- package/dist/index.es247.js.map +1 -1
- package/dist/index.es248.js +11 -24
- package/dist/index.es248.js.map +1 -1
- package/dist/index.es249.js +4 -15
- package/dist/index.es249.js.map +1 -1
- package/dist/index.es250.js +22 -17
- package/dist/index.es250.js.map +1 -1
- package/dist/index.es251.js +24 -22
- package/dist/index.es251.js.map +1 -1
- package/dist/index.es252.js +273 -2
- package/dist/index.es252.js.map +1 -1
- package/dist/index.es253.js +15 -2
- package/dist/index.es253.js.map +1 -1
- package/dist/index.es254.js +19 -273
- package/dist/index.es254.js.map +1 -1
- package/dist/index.es255.js +4 -14
- package/dist/index.es255.js.map +1 -1
- package/dist/index.es256.js +3 -18
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +2 -3
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +4 -3
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +1 -1
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es260.js +3 -5
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es261.js +3 -4
- package/dist/index.es261.js.map +1 -1
- package/dist/index.es262.js +3 -3
- package/dist/index.es262.js.map +1 -1
- package/dist/index.es263.js +3 -3
- package/dist/index.es263.js.map +1 -1
- package/dist/index.es264.js +3 -3
- package/dist/index.es264.js.map +1 -1
- package/dist/index.es265.js +3 -3
- package/dist/index.es265.js.map +1 -1
- package/dist/index.es266.js +3 -3
- package/dist/index.es266.js.map +1 -1
- package/dist/index.es267.js +10 -3
- package/dist/index.es267.js.map +1 -1
- package/dist/index.es268.js +4 -3
- package/dist/index.es268.js.map +1 -1
- package/dist/index.es269.js +5 -9
- package/dist/index.es269.js.map +1 -1
- package/dist/index.es270.js +6 -4
- package/dist/index.es270.js.map +1 -1
- package/dist/index.es271.js +9 -5
- package/dist/index.es271.js.map +1 -1
- package/dist/index.es272.js +11 -5
- package/dist/index.es272.js.map +1 -1
- package/dist/index.es273.js +12 -9
- package/dist/index.es273.js.map +1 -1
- package/dist/index.es274.js +85 -11
- package/dist/index.es274.js.map +1 -1
- package/dist/index.es275.js +3 -13
- package/dist/index.es275.js.map +1 -1
- package/dist/index.es276.js +14 -85
- package/dist/index.es276.js.map +1 -1
- package/dist/index.es277.js +12 -3
- package/dist/index.es277.js.map +1 -1
- package/dist/index.es278.js +6 -14
- package/dist/index.es278.js.map +1 -1
- package/dist/index.es279.js +6 -11
- package/dist/index.es279.js.map +1 -1
- package/dist/index.es280.js +5 -5
- package/dist/index.es280.js.map +1 -1
- package/dist/index.es281.js +7 -6
- package/dist/index.es281.js.map +1 -1
- package/dist/index.es282.js +3 -6
- package/dist/index.es282.js.map +1 -1
- package/dist/index.es283.js +4 -8
- package/dist/index.es283.js.map +1 -1
- package/dist/index.es284.js +3 -3
- package/dist/index.es284.js.map +1 -1
- package/dist/index.es285.js +7 -4
- package/dist/index.es285.js.map +1 -1
- package/dist/index.es286.js +7 -4
- package/dist/index.es286.js.map +1 -1
- package/dist/index.es287.js +3 -6
- package/dist/index.es287.js.map +1 -1
- package/dist/index.es288.js +7 -6
- package/dist/index.es288.js.map +1 -1
- package/dist/index.es289.js +12 -3
- package/dist/index.es289.js.map +1 -1
- package/dist/index.es290.js +10 -7
- package/dist/index.es290.js.map +1 -1
- package/dist/index.es291.js +3 -12
- package/dist/index.es291.js.map +1 -1
- package/dist/index.es292.js +5 -10
- package/dist/index.es292.js.map +1 -1
- package/dist/index.es293.js +2 -3
- package/dist/index.es293.js.map +1 -1
- package/dist/index.es294.js +6 -4
- package/dist/index.es294.js.map +1 -1
- package/dist/index.es295.js +7 -2
- package/dist/index.es295.js.map +1 -1
- package/dist/index.es296.js +6 -6
- package/dist/index.es296.js.map +1 -1
- package/dist/index.es297.js +8 -7
- package/dist/index.es297.js.map +1 -1
- package/dist/index.es298.js +3 -7
- package/dist/index.es298.js.map +1 -1
- package/dist/index.es299.js +4 -9
- package/dist/index.es299.js.map +1 -1
- package/dist/index.es300.js +57 -3
- package/dist/index.es300.js.map +1 -1
- package/dist/index.es301.js +14 -4
- package/dist/index.es301.js.map +1 -1
- package/dist/index.es302.js +5 -57
- package/dist/index.es302.js.map +1 -1
- package/dist/index.es303.js +5 -13
- package/dist/index.es303.js.map +1 -1
- package/dist/index.es304.js +8 -5
- package/dist/index.es304.js.map +1 -1
- package/dist/index.es305.js +16 -5
- package/dist/index.es305.js.map +1 -1
- package/dist/index.es306.js +13 -8
- package/dist/index.es306.js.map +1 -1
- package/dist/index.es307.js +4 -16
- package/dist/index.es307.js.map +1 -1
- package/dist/index.es308.js +5 -13
- package/dist/index.es308.js.map +1 -1
- package/dist/index.es309.js +8 -4
- package/dist/index.es309.js.map +1 -1
- package/dist/index.es310.js +4 -3
- package/dist/index.es310.js.map +1 -1
- package/dist/index.es311.js +4 -6
- package/dist/index.es311.js.map +1 -1
- package/dist/index.es312.js +8 -6
- package/dist/index.es312.js.map +1 -1
- package/dist/index.es313.js +3 -7
- package/dist/index.es313.js.map +1 -1
- package/dist/index.es314.js +3 -9
- package/dist/index.es314.js.map +1 -1
- package/dist/index.es315.js +11 -3
- package/dist/index.es315.js.map +1 -1
- package/dist/index.es316.js +5 -3
- package/dist/index.es316.js.map +1 -1
- package/dist/index.es317.js +4 -11
- package/dist/index.es317.js.map +1 -1
- package/dist/index.es318.js +9 -5
- package/dist/index.es318.js.map +1 -1
- package/dist/index.es319.js +6 -4
- package/dist/index.es319.js.map +1 -1
- package/dist/index.es320.js +16 -8
- package/dist/index.es320.js.map +1 -1
- package/dist/index.es321.js +11 -5
- package/dist/index.es321.js.map +1 -1
- package/dist/index.es322.js +3 -17
- package/dist/index.es322.js.map +1 -1
- package/dist/index.es323.js +3 -12
- package/dist/index.es323.js.map +1 -1
- package/dist/index.es324.js +9 -3
- package/dist/index.es324.js.map +1 -1
- package/dist/index.es325.js +7 -3
- package/dist/index.es325.js.map +1 -1
- package/dist/index.es326.js +12 -8
- package/dist/index.es326.js.map +1 -1
- package/dist/index.es327.js +12 -6
- package/dist/index.es327.js.map +1 -1
- package/dist/index.es328.js +6 -12
- package/dist/index.es328.js.map +1 -1
- package/dist/index.es329.js +5 -12
- package/dist/index.es329.js.map +1 -1
- package/dist/index.es330.js +5 -6
- package/dist/index.es330.js.map +1 -1
- package/dist/index.es331.js +16 -5
- package/dist/index.es331.js.map +1 -1
- package/dist/index.es332.js +16 -5
- package/dist/index.es332.js.map +1 -1
- package/dist/index.es333.js +4 -16
- package/dist/index.es333.js.map +1 -1
- package/dist/index.es334.js +16 -16
- package/dist/index.es334.js.map +1 -1
- package/dist/index.es335.js +22 -4
- package/dist/index.es335.js.map +1 -1
- package/dist/index.es336.js +6 -17
- package/dist/index.es336.js.map +1 -1
- package/dist/index.es337.js +5 -23
- package/dist/index.es337.js.map +1 -1
- package/dist/index.es338.js +5 -5
- package/dist/index.es338.js.map +1 -1
- package/dist/index.es339.js +5 -5
- package/dist/index.es339.js.map +1 -1
- package/dist/index.es340.js +12 -6
- package/dist/index.es340.js.map +1 -1
- package/dist/index.es341.js +6 -5
- package/dist/index.es341.js.map +1 -1
- package/dist/index.es342.js +4 -11
- package/dist/index.es342.js.map +1 -1
- package/dist/index.es343.js +4 -5
- package/dist/index.es343.js.map +1 -1
- package/dist/index.es344.js +3 -3
- package/dist/index.es344.js.map +1 -1
- package/dist/index.es345.js +3 -3
- package/dist/index.es345.js.map +1 -1
- package/dist/index.es346.js +4 -4
- package/dist/index.es346.js.map +1 -1
- package/dist/index.es347.js +4 -4
- package/dist/index.es347.js.map +1 -1
- package/dist/index.es348.js +12 -4
- package/dist/index.es348.js.map +1 -1
- package/dist/index.es349.js +14 -4
- package/dist/index.es349.js.map +1 -1
- package/dist/index.es350.js +8 -12
- package/dist/index.es350.js.map +1 -1
- package/dist/index.es351.js +6 -14
- package/dist/index.es351.js.map +1 -1
- package/dist/index.es352.js +6 -8
- package/dist/index.es352.js.map +1 -1
- package/dist/index.es353.js +8 -6
- package/dist/index.es353.js.map +1 -1
- package/dist/index.es354.js +2 -7
- package/dist/index.es354.js.map +1 -1
- package/dist/index.es355.js +2 -9
- package/dist/index.es355.js.map +1 -1
- package/dist/index.es359.js +1 -1
- package/dist/index.es360.js +1 -1
- package/dist/index.es361.js +1 -1
- package/dist/index.es362.js +1 -1
- package/dist/index.es363.js +2 -2
- package/dist/index.es364.js +1 -1
- package/dist/index.es365.js +5 -5
- package/dist/index.es366.js +2 -2
- package/dist/index.es367.js +6 -6
- package/dist/index.es368.js +2 -2
- package/dist/index.es372.js +1 -1
- package/dist/index.es373.js +1 -1
- package/dist/index.es376.js +1 -1
- package/dist/index.es410.js +11 -10
- package/dist/index.es410.js.map +1 -1
- package/dist/index.es411.js +9 -5
- package/dist/index.es411.js.map +1 -1
- package/dist/index.es412.js +5 -11
- package/dist/index.es412.js.map +1 -1
- package/dist/index.es413.js +12 -10
- package/dist/index.es413.js.map +1 -1
- package/dist/index.es414.js +7 -4
- package/dist/index.es414.js.map +1 -1
- package/dist/index.es415.js +5 -12
- package/dist/index.es415.js.map +1 -1
- package/dist/index.es416.js +4 -8
- package/dist/index.es416.js.map +1 -1
- package/dist/index.es417.js +3 -5
- package/dist/index.es417.js.map +1 -1
- package/dist/index.es418.js +3 -4
- package/dist/index.es418.js.map +1 -1
- package/dist/index.es419.js +9 -3
- package/dist/index.es419.js.map +1 -1
- package/dist/index.es420.js +22 -3
- package/dist/index.es420.js.map +1 -1
- package/dist/index.es421.js +21 -8
- package/dist/index.es421.js.map +1 -1
- package/dist/index.es422.js +11 -19
- package/dist/index.es422.js.map +1 -1
- package/dist/index.es423.js +14 -19
- package/dist/index.es423.js.map +1 -1
- package/dist/index.es424.js +5 -13
- package/dist/index.es424.js.map +1 -1
- package/dist/index.es425.js +8 -16
- package/dist/index.es425.js.map +1 -1
- package/dist/index.es426.js +6 -5
- package/dist/index.es426.js.map +1 -1
- package/dist/index.es427.js +20 -7
- package/dist/index.es427.js.map +1 -1
- package/dist/index.es428.js +8 -5
- package/dist/index.es428.js.map +1 -1
- package/dist/index.es429.js +9 -22
- package/dist/index.es429.js.map +1 -1
- package/dist/index.es430.js +4 -10
- package/dist/index.es430.js.map +1 -1
- package/dist/index.es431.js +11 -9
- package/dist/index.es431.js.map +1 -1
- package/dist/index.es432.js +9 -4
- package/dist/index.es432.js.map +1 -1
- package/dist/index.es433.js +21 -9
- package/dist/index.es433.js.map +1 -1
- package/dist/index.es434.js +11 -8
- package/dist/index.es434.js.map +1 -1
- package/dist/index.es435.js +18 -22
- package/dist/index.es435.js.map +1 -1
- package/dist/index.es436.js +4 -12
- package/dist/index.es436.js.map +1 -1
- package/dist/index.es437.js +16 -17
- package/dist/index.es437.js.map +1 -1
- package/dist/index.es438.js +12 -4
- package/dist/index.es438.js.map +1 -1
- package/dist/index.es439.js +3 -17
- package/dist/index.es439.js.map +1 -1
- package/dist/index.es440.js +4 -11
- package/dist/index.es440.js.map +1 -1
- package/dist/index.es441.js +9 -3
- package/dist/index.es441.js.map +1 -1
- package/dist/index.es442.js +2 -5
- package/dist/index.es442.js.map +1 -1
- package/dist/index.es443.js +322 -2
- package/dist/index.es443.js.map +1 -1
- package/dist/index.es444.js +2 -322
- package/dist/index.es444.js.map +1 -1
- package/dist/index.es445.js +2 -2
- package/dist/index.es446.js +2 -2
- package/dist/index.es447.js +15 -2
- package/dist/index.es447.js.map +1 -1
- package/dist/index.es448.js +2 -15
- package/dist/index.es448.js.map +1 -1
- package/dist/index.es449.js +2 -2
- package/dist/index.es450.js +48 -2
- package/dist/index.es450.js.map +1 -1
- package/dist/index.es451.js +26 -36
- package/dist/index.es451.js.map +1 -1
- package/dist/index.es452.js +41 -36
- package/dist/index.es452.js.map +1 -1
- package/dist/index.es453.js +2 -43
- package/dist/index.es453.js.map +1 -1
- package/dist/index.es454.js +16 -2
- package/dist/index.es454.js.map +1 -1
- package/dist/index.es455.js +2 -16
- package/dist/index.es455.js.map +1 -1
- package/dist/index.es456.js +16 -2
- package/dist/index.es456.js.map +1 -1
- package/dist/index.es457.js +13 -13
- package/dist/index.es457.js.map +1 -1
- package/dist/index.es458.js +16 -14
- package/dist/index.es458.js.map +1 -1
- package/dist/index.es459.js +18 -16
- package/dist/index.es459.js.map +1 -1
- package/dist/index.es460.js +2 -20
- package/dist/index.es460.js.map +1 -1
- package/dist/index.es461.js +6 -2
- package/dist/index.es461.js.map +1 -1
- package/dist/index.es462.js +1 -1
- package/dist/index.es464.js +1 -1
- package/dist/index.es466.js +1 -1
- package/dist/index.es481.js +1 -1
- package/dist/index.es502.js +3 -7
- package/dist/index.es502.js.map +1 -1
- package/dist/index.es503.js +155 -5
- package/dist/index.es503.js.map +1 -1
- package/dist/index.es504.js +104 -3
- package/dist/index.es504.js.map +1 -1
- package/dist/index.es505.js +17 -8
- package/dist/index.es505.js.map +1 -1
- package/dist/index.es506.js +5 -155
- package/dist/index.es506.js.map +1 -1
- package/dist/index.es507.js +7 -103
- package/dist/index.es507.js.map +1 -1
- package/dist/index.es508.js +2 -17
- package/dist/index.es508.js.map +1 -1
- package/dist/index.es510.js +22 -2
- package/dist/index.es510.js.map +1 -1
- package/dist/index.es511.js +6 -21
- package/dist/index.es511.js.map +1 -1
- package/dist/index.es513.js +4 -4
- package/dist/index.es514.js +4 -4
- package/dist/index.es515.js +2 -2
- package/dist/index.es516.js +9 -9
- package/dist/index.es517.js +2 -2
- package/dist/index.es518.js +2 -2
- package/dist/index.es519.js +2 -2
- package/dist/index.es520.js +2 -2
- package/dist/index.es521.js +2 -2
- package/dist/index.es522.js +2 -2
- package/dist/index.es523.js +2 -2
- package/dist/index.es524.js +2 -2
- package/dist/index.es525.js +3 -3
- package/dist/index.es526.js +2 -2
- package/dist/index.es527.js +2 -2
- package/dist/index.es528.js +4 -4
- package/dist/index.es530.js +2 -2
- package/dist/index.es532.js +2 -2
- package/dist/index.es533.js +2 -2
- package/dist/index.es534.js +2 -2
- package/dist/index.es535.js +2 -2
- package/dist/index.es536.js +2 -2
- package/dist/index.es537.js +2 -2
- package/dist/index.es538.js +2 -2
- package/dist/index.es539.js +2 -2
- package/dist/index.es540.js +2 -2
- package/dist/index.es541.js +2 -2
- package/dist/index.es545.js +1 -1
- package/dist/index.es546.js +1 -1
- package/dist/index.es547.js +2 -2
- package/dist/index.es548.js +1 -1
- package/dist/index.es550.js +2 -2
- package/dist/index.es551.js +1 -1
- package/dist/index.es552.js +1 -1
- package/dist/index.es560.js +1 -1
- package/dist/index.es565.js +1 -1
- package/dist/index.es566.js +1 -1
- package/dist/index.es57.js +2 -2
- package/dist/index.es570.js +1 -1
- package/dist/index.es573.js +1 -1
- package/dist/index.es576.js +118 -9
- package/dist/index.es576.js.map +1 -1
- package/dist/index.es577.js +2 -13
- package/dist/index.es577.js.map +1 -1
- package/dist/index.es578.js +2 -118
- package/dist/index.es578.js.map +1 -1
- package/dist/index.es579.js +8 -2
- package/dist/index.es579.js.map +1 -1
- package/dist/index.es580.js +14 -2
- package/dist/index.es580.js.map +1 -1
- package/dist/index.es581.js +2 -2
- package/dist/index.es582.js +151 -2
- package/dist/index.es582.js.map +1 -1
- package/dist/index.es583.js +2 -2
- package/dist/index.es584.js +6 -2
- package/dist/index.es584.js.map +1 -1
- package/dist/index.es585.js +2 -2
- package/dist/index.es586.js +148 -2
- package/dist/index.es586.js.map +1 -1
- package/dist/index.es587.js +2 -2
- package/dist/index.es588.js +138 -2
- package/dist/index.es588.js.map +1 -1
- package/dist/index.es589.js +2 -2
- package/dist/index.es59.js +1 -1
- package/dist/index.es590.js +2 -2
- package/dist/index.es591.js +225 -2
- package/dist/index.es591.js.map +1 -1
- package/dist/index.es592.js +123 -140
- package/dist/index.es592.js.map +1 -1
- package/dist/index.es593.js +129 -2
- package/dist/index.es593.js.map +1 -1
- package/dist/index.es594.js +133 -5
- package/dist/index.es594.js.map +1 -1
- package/dist/index.es595.js +129 -2
- package/dist/index.es595.js.map +1 -1
- package/dist/index.es596.js +135 -2
- package/dist/index.es596.js.map +1 -1
- package/dist/index.es597.js +2 -225
- package/dist/index.es597.js.map +1 -1
- package/dist/index.es598.js +2 -134
- package/dist/index.es598.js.map +1 -1
- package/dist/index.es599.js +2 -129
- package/dist/index.es599.js.map +1 -1
- package/dist/index.es60.js +1 -1
- package/dist/index.es600.js +2 -134
- package/dist/index.es600.js.map +1 -1
- package/dist/index.es601.js +2 -129
- package/dist/index.es601.js.map +1 -1
- package/dist/index.es602.js +2 -135
- package/dist/index.es602.js.map +1 -1
- package/dist/index.es603.js +2 -2
- package/dist/index.es604.js +2 -2
- package/dist/index.es607.js +2 -2
- package/dist/index.es608.js +131 -2
- package/dist/index.es608.js.map +1 -1
- package/dist/index.es609.js +128 -2
- package/dist/index.es609.js.map +1 -1
- package/dist/index.es61.js +2 -2
- package/dist/index.es612.js +2 -148
- package/dist/index.es612.js.map +1 -1
- package/dist/index.es613.js +2 -2
- package/dist/index.es615.js +2 -2
- package/dist/index.es616.js +2 -131
- package/dist/index.es616.js.map +1 -1
- package/dist/index.es617.js +2 -128
- package/dist/index.es617.js.map +1 -1
- package/dist/index.es618.js +2 -2
- package/dist/index.es619.js +2 -138
- package/dist/index.es619.js.map +1 -1
- package/dist/index.es620.js +2 -2
- package/dist/index.es621.js +14 -2
- package/dist/index.es621.js.map +1 -1
- package/dist/index.es623.js +2 -14
- package/dist/index.es623.js.map +1 -1
- package/dist/index.es625.js +2 -2
- package/dist/index.es63.js +2 -2
- package/dist/index.es634.js +2 -2
- package/dist/index.es635.js +2 -2
- package/dist/index.es636.js +2 -2
- package/dist/index.es637.js +2 -2
- package/dist/index.es638.js +2 -2
- package/dist/index.es639.js +2 -2
- package/dist/index.es64.js +2 -2
- package/dist/index.es640.js +2 -2
- package/dist/index.es641.js +2 -30
- package/dist/index.es641.js.map +1 -1
- package/dist/index.es642.js +2 -2
- package/dist/index.es643.js +30 -2
- package/dist/index.es643.js.map +1 -1
- package/dist/index.es644.js +2 -2
- package/dist/index.es645.js +2 -2
- package/dist/index.es646.js +2 -2
- package/dist/index.es647.js +1 -1
- package/dist/index.es65.js +2 -2
- package/dist/index.es651.js +11 -21
- package/dist/index.es651.js.map +1 -1
- package/dist/index.es652.js +26 -11
- package/dist/index.es652.js.map +1 -1
- package/dist/index.es653.js +4 -27
- package/dist/index.es653.js.map +1 -1
- package/dist/index.es654.js +22 -4
- package/dist/index.es654.js.map +1 -1
- package/dist/index.es655.js.map +1 -1
- package/dist/index.es656.js.map +1 -1
- package/dist/index.es66.js +1 -1
- package/dist/index.es67.js +1 -1
- package/dist/index.es68.js +2 -2
- package/dist/index.es69.js +2 -2
- package/dist/index.es71.js +2 -2
- package/dist/index.es72.js +2 -2
- package/dist/index.es73.js +2 -2
- package/dist/index.es74.js +1 -1
- package/dist/index.es76.js +1 -1
- package/dist/index.es77.js +4 -4
- package/dist/index.es78.js +5 -5
- package/dist/index.es79.js +5 -5
- package/dist/index.es80.js +1 -1
- package/dist/index.es81.js +3 -3
- package/dist/index.es82.js +4 -4
- package/dist/index.es83.js +2 -2
- package/dist/index.es84.js +2 -2
- package/dist/index.es89.js +14 -14
- package/package.json +3 -3
package/dist/index.cjs205.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs205.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs205.js","sources":["../../../node_modules/typesafe-actions/dist/typesafe-actions.es.production.js"],"sourcesContent":["function n(n){return null==n}function t(n){throw new Error(\"Argument \"+n+\" is empty.\")}function r(n){return\"function\"==typeof n&&\"getType\"in n}function e(n){throw new Error(\"Argument \"+n+' is invalid, it should be an action-creator instance from \"typesafe-actions\"')}function i(n,t){if(null==n)throw new Error(\"Argument contains array with empty element at index \"+t);if(null==n.getType)throw new Error(\"Argument contains array with invalid element at index \"+t+', it should be an action-creator instance from \"typesafe-actions\"')}function o(n){return\"string\"==typeof n||\"symbol\"==typeof n}function u(n){return!o(n)}function a(n){throw new Error(\"Argument \"+n+\" is invalid, it should be an action type of type: string | symbol\")}function c(n,t){if(null==n)throw new Error(\"Argument contains array with empty element at index \"+t);if(\"string\"!=typeof n&&\"symbol\"!=typeof n)throw new Error(\"Argument contains array with invalid element at index \"+t+\", it should be of type: string | symbol\")}function f(r,i,o,a){return n(r)&&t(1),u(r)&&e(1),{type:r,payload:i,meta:o,error:a}}function s(r,e){n(r)&&t(1),u(r)&&a(1);return Object.assign((function(){var n=null!=e?e.apply(void 0,arguments):void 0;return Object.assign({type:r},n)}),{getType:function(){return r},toString:function(){return r}})}function y(r,e,i){return n(r)&&t(1),u(r)&&a(1),function(){return s(r,(function(){var n=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1];return null==e&&null==i||(n=null!=e?e.apply(void 0,arguments):void 0,t=null!=i?i.apply(void 0,arguments):void 0),Object.assign({},void 0!==n&&{payload:n},{},void 0!==t&&{meta:t})}))}}function l(n,t,r,e){return function(){var i=[n,t,r,e].map((function(n,t){return Array.isArray(n)?y(n[0],n[1],n[2])():\"string\"==typeof n||\"symbol\"==typeof n?y(n)():void(t<3&&function(n){throw new Error(\"Argument \"+n+' is invalid, it should be an action type of \"string | symbol\" or a tuple of \"[string | symbol, Function, Function?]\"')}(t))}));return{request:i[0],success:i[1],failure:i[2],cancel:i[3]}}}function p(i){return n(i)&&t(1),r(i)||e(1),i.getType()}function d(n,t){void 0===t&&(t={});var e=Object.assign({},t),i=function(t,i){var u=Array.isArray(t)?t:[t],a={};return u.map((function(n,t){return r(n)?p(n):o(n)?n:function(n){throw new Error(\"Argument \"+n+' is invalid, it should be an action-creator instance from \"typesafe-actions\" or action type of type: string | symbol')}(t+1)})).forEach((function(n){return a[n]=i})),d(n,Object.assign({},e,{},a))};return Object.assign((function(t,r){if(void 0===t&&(t=n),e.hasOwnProperty(r.type)){var i=e[r.type];if(\"function\"!=typeof i)throw Error('Reducer under \"'+r.type+'\" key is not a valid reducer');return i(t,r)}return t}),{handlers:Object.assign({},e),handleAction:i,handleType:i})}function g(r,e){n(r)&&t(1);var i=Array.isArray(r)?r:[r];i.forEach(c);var o=function(n){return i.includes(n.type)};return void 0===e?o:o(e)}function m(r,e){n(r)&&t(1);var o=Array.isArray(r)?r:[r];o.forEach(i);var u=function(n){return o.some((function(t){return n.type===t.getType()}))};return void 0===e?u:u(e)}function v(r,e){n(r)&&t(1),u(r)&&a(1);var i=null!=e?e(r):function(){return{type:r}};return Object.assign(i,{getType:function(){return r},toString:function(){return r}})}var h={createAction:function(n,t){var r=null==t?function(){return f(n)}:t(f.bind(null,n));return Object.assign(r,{getType:function(){return n},toString:function(){return n}})},createCustomAction:v,createStandardAction:function(r){return n(r)&&t(1),u(r)&&a(1),Object.assign((function(){return v(r,(function(n){return function(t,r){return{type:n,payload:t,meta:r}}}))}),{map:function(n){return v(r,(function(t){return function(r,e){return Object.assign(n(r,e),{type:t})}}))}})}};export{f as action,y as createAction,l as createAsyncAction,s as createCustomAction,d as createReducer,h as deprecated,p as getType,m as isActionOf,g as isOfType};\n//# sourceMappingURL=typesafe-actions.es.production.js.map\n"],"names":["n","t","o","u","a","r","e","y","i"],"mappings":"gFAAA,SAASA,EAAEA,EAAE,CAAC,OAAaA,GAAN,IAAO,CAAC,SAASC,EAAED,EAAE,CAAC,MAAM,IAAI,MAAM,YAAYA,EAAE,YAAY,CAAC,CAA6b,SAASE,EAAEF,EAAE,CAAC,OAAgB,OAAOA,GAAjB,UAA8B,OAAOA,GAAjB,QAAkB,CAAC,SAASG,EAAEH,EAAE,CAAO,MAAA,CAACE,EAAEF,CAAC,CAAC,CAAC,SAASI,EAAEJ,EAAE,CAAC,MAAM,IAAI,MAAM,YAAYA,EAAE,mEAAmE,CAAC,CAAyV,SAAS,EAAEK,EAAEC,EAAE,CAAGD,OAAAA,EAAAA,CAAC,GAAGJ,EAAE,CAAC,EAAEE,EAAEE,CAAC,GAAGD,EAAE,CAAC,EAAS,OAAO,OAAQ,UAAU,CAAC,IAAIJ,EAAQM,GAAN,KAAQA,EAAE,MAAM,OAAO,SAAS,EAAE,OAAO,OAAO,OAAO,OAAO,CAAC,KAAKD,CAAAA,EAAGL,CAAC,CAAA,EAAI,CAAC,QAAQ,UAAU,CAAQK,OAAAA,CAAC,EAAE,SAAS,UAAU,CAAQA,OAAAA,GAAG,CAAC,CAAC,SAASE,EAAEF,EAAEC,EAAEE,EAAE,CAAC,OAAOR,EAAEK,CAAC,GAAGJ,EAAE,CAAC,EAAEE,EAAEE,CAAC,GAAGD,EAAE,CAAC,EAAE,UAAU,CAAQ,OAAA,EAAEC,EAAG,UAAU,CAAC,IAAIL,EAAE,UAAU,QAAQ,EAAE,OAAO,UAAU,CAAC,EAAEC,EAAE,UAAU,QAAQ,EAAE,OAAO,UAAU,CAAC,EAAE,OAAaK,GAAN,MAAeE,GAAN,OAAUR,EAAQM,GAAN,KAAQA,EAAE,MAAM,OAAO,SAAS,EAAE,OAAOL,EAAQO,GAAN,KAAQA,EAAE,MAAM,OAAO,SAAS,EAAE,QAAQ,OAAO,OAAO,CAAG,EAASR,IAAT,QAAY,CAAC,QAAQA,CAAC,EAAE,CAAA,EAAYC,IAAT,QAAY,CAAC,KAAKA,EAAE,CAAA,CAAG,CAAA,CAAE","x_google_ignoreList":[0]}
|
package/dist/index.cjs206.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./index.cjs244.js");function u(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var I=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),O=function(){return Math.random().toString(36).substring(7).split("").join(".")},v={INIT:"@@redux/INIT"+O(),REPLACE:"@@redux/REPLACE"+O(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+O()}};function S(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function V(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(R(e))return"date";if(P(e))return"error";var r=A(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function A(e){return typeof e.constructor=="function"?e.constructor.name:null}function P(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function R(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function g(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=V(e)),t}function j(e,t,r){var o;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?u(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?u(1):"Expected the enhancer to be a function. Instead, received: '"+g(r)+"'");return r(j)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?u(2):"Expected the root reducer to be a function. Instead, received: '"+g(e)+"'");var i=e,c=t,a=[],s=a,f=!1;function p(){s===a&&(s=a.slice())}function E(){if(f)throw new Error(process.env.NODE_ENV==="production"?u(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function m(n){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?u(4):"Expected the listener to be a function. Instead, received: '"+g(n)+"'");if(f)throw new Error(process.env.NODE_ENV==="production"?u(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var l=!0;return p(),s.push(n),function(){if(l){if(f)throw new Error(process.env.NODE_ENV==="production"?u(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");l=!1,p();var d=s.indexOf(n);s.splice(d,1),a=null}}}function h(n){if(!S(n))throw new Error(process.env.NODE_ENV==="production"?u(7):"Actions must be plain objects. Instead, the actual type was: '"+g(n)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof n.type>"u")throw new Error(process.env.NODE_ENV==="production"?u(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(f)throw new Error(process.env.NODE_ENV==="production"?u(9):"Reducers may not dispatch actions.");try{f=!0,c=i(c,n)}finally{f=!1}for(var l=a=s,y=0;y<l.length;y++){var d=l[y];d()}return n}function N(n){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?u(10):"Expected the nextReducer to be a function. Instead, received: '"+g(n));i=n,h({type:v.REPLACE})}function b(){var n,l=m;return n={subscribe:function(d){if(typeof d!="object"||d===null)throw new Error(process.env.NODE_ENV==="production"?u(11):"Expected the observer to be an object. Instead, received: '"+g(d)+"'");function w(){d.next&&d.next(E())}w();var T=l(w);return{unsubscribe:T}}},n[I]=function(){return this},n}return h({type:v.INIT}),o={dispatch:h,subscribe:m,getState:E,replaceReducer:N},o[I]=b,o}function D(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function k(e,t,r,o){var i=Object.keys(t),c=r&&r.type===v.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!S(e))return"The "+c+' has unexpected type of "'+g(e)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var a=Object.keys(e).filter(function(s){return!t.hasOwnProperty(s)&&!o[s]});if(a.forEach(function(s){o[s]=!0}),!(r&&r.type===v.REPLACE)&&a.length>0)return"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+c+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function C(e){Object.keys(e).forEach(function(t){var r=e[t],o=r(void 0,{type:v.INIT});if(typeof o>"u")throw new Error(process.env.NODE_ENV==="production"?u(12):'The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:v.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?u(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+v.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function M(e){for(var t=Object.keys(e),r={},o=0;o<t.length;o++){var i=t[o];process.env.NODE_ENV!=="production"&&typeof e[i]>"u"&&D('No reducer provided for key "'+i+'"'),typeof e[i]=="function"&&(r[i]=e[i])}var c=Object.keys(r),a;process.env.NODE_ENV!=="production"&&(a={});var s;try{C(r)}catch(f){s=f}return function(p,E){if(p===void 0&&(p={}),s)throw s;if(process.env.NODE_ENV!=="production"){var m=k(p,r,E,a);m&&D(m)}for(var h=!1,N={},b=0;b<c.length;b++){var n=c[b],l=r[n],y=p[n],d=l(y,E);if(typeof d>"u"){var w=E&&E.type;throw new Error(process.env.NODE_ENV==="production"?u(14):"When called with an action of type "+(w?'"'+String(w)+'"':"(unknown type)")+', the slice reducer for key "'+n+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}N[n]=d,h=h||d!==y}return h=h||c.length!==Object.keys(p).length,h?N:p}}function _(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(o){return o}:t.length===1?t[0]:t.reduce(function(o,i){return function(){return o(i.apply(void 0,arguments))}})}function L(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(o){return function(){var i=o.apply(void 0,arguments),c=function(){throw new Error(process.env.NODE_ENV==="production"?u(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a={getState:i.getState,dispatch:function(){return c.apply(void 0,arguments)}},s=t.map(function(f){return f(a)});return c=_.apply(void 0,s)(i.dispatch),x(x({},i),{},{dispatch:c})}}}exports.__DO_NOT_USE__ActionTypes=v;exports.applyMiddleware=L;exports.combineReducers=M;exports.compose=_;exports.createStore=j;
|
|
2
2
|
//# sourceMappingURL=index.cjs206.js.map
|
package/dist/index.cjs206.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs206.js","sources":["../../../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["import $6vYhU$react from \"react\";\nimport {createContextScope as $6vYhU$createContextScope} from \"@radix-ui/react-context\";\nimport {useComposedRefs as $6vYhU$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {Slot as $6vYhU$Slot} from \"@radix-ui/react-slot\";\n\n\n\n\n\n// We have resorted to returning slots directly rather than exposing primitives that can then\n// be slotted like `<CollectionItem as={Slot}>…</CollectionItem>`.\n// This is because we encountered issues with generic types that cannot be statically analysed\n// due to creating them dynamically via createCollection.\nfunction $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {\n /* -----------------------------------------------------------------------------------------------\n * CollectionProvider\n * ---------------------------------------------------------------------------------------------*/ const PROVIDER_NAME = name + 'CollectionProvider';\n const [createCollectionContext, createCollectionScope] = $6vYhU$createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, {\n collectionRef: {\n current: null\n },\n itemMap: new Map()\n });\n const CollectionProvider = (props)=>{\n const { scope: scope , children: children } = props;\n const ref = $6vYhU$react.useRef(null);\n const itemMap = $6vYhU$react.useRef(new Map()).current;\n return /*#__PURE__*/ $6vYhU$react.createElement(CollectionProviderImpl, {\n scope: scope,\n itemMap: itemMap,\n collectionRef: ref\n }, children);\n };\n /*#__PURE__*/ Object.assign(CollectionProvider, {\n displayName: PROVIDER_NAME\n });\n /* -----------------------------------------------------------------------------------------------\n * CollectionSlot\n * ---------------------------------------------------------------------------------------------*/ const COLLECTION_SLOT_NAME = name + 'CollectionSlot';\n const CollectionSlot = /*#__PURE__*/ $6vYhU$react.forwardRef((props, forwardedRef)=>{\n const { scope: scope , children: children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = $6vYhU$useComposedRefs(forwardedRef, context.collectionRef);\n return /*#__PURE__*/ $6vYhU$react.createElement($6vYhU$Slot, {\n ref: composedRefs\n }, children);\n });\n /*#__PURE__*/ Object.assign(CollectionSlot, {\n displayName: COLLECTION_SLOT_NAME\n });\n /* -----------------------------------------------------------------------------------------------\n * CollectionItem\n * ---------------------------------------------------------------------------------------------*/ const ITEM_SLOT_NAME = name + 'CollectionItemSlot';\n const ITEM_DATA_ATTR = 'data-radix-collection-item';\n const CollectionItemSlot = /*#__PURE__*/ $6vYhU$react.forwardRef((props, forwardedRef)=>{\n const { scope: scope , children: children , ...itemData } = props;\n const ref = $6vYhU$react.useRef(null);\n const composedRefs = $6vYhU$useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n $6vYhU$react.useEffect(()=>{\n context.itemMap.set(ref, {\n ref: ref,\n ...itemData\n });\n return ()=>void context.itemMap.delete(ref)\n ;\n });\n return /*#__PURE__*/ $6vYhU$react.createElement($6vYhU$Slot, {\n [ITEM_DATA_ATTR]: '',\n ref: composedRefs\n }, children);\n });\n /*#__PURE__*/ Object.assign(CollectionItemSlot, {\n displayName: ITEM_SLOT_NAME\n });\n /* -----------------------------------------------------------------------------------------------\n * useCollection\n * ---------------------------------------------------------------------------------------------*/ function useCollection(scope) {\n const context = useCollectionContext(name + 'CollectionConsumer', scope);\n const getItems = $6vYhU$react.useCallback(()=>{\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort((a, b)=>orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [\n context.collectionRef,\n context.itemMap\n ]);\n return getItems;\n }\n return [\n {\n Provider: CollectionProvider,\n Slot: CollectionSlot,\n ItemSlot: CollectionItemSlot\n },\n useCollection,\n createCollectionScope\n ];\n}\n\n\n\n\nexport {$e02a7d9cb1dc128c$export$c74125a8e3af6bb2 as createCollection};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$e02a7d9cb1dc128c$export$c74125a8e3af6bb2","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","$6vYhU$createContextScope","CollectionProviderImpl","useCollectionContext","CollectionProvider","props","scope","children","ref","$6vYhU$react","itemMap","COLLECTION_SLOT_NAME","CollectionSlot","forwardedRef","context","composedRefs","$6vYhU$useComposedRefs","$6vYhU$Slot","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlot","itemData","useCollection","collectionNode","orderedNodes","a","b"],"mappings":"sMAaA,SAASA,EAA0CC,EAAM,CAG4C,MAAMC,EAAgBD,EAAO,qBACxH,CAACE,EAAyBC,CAAqB,EAAIC,EAAyB,mBAACH,CAAa,EAC1F,CAACI,EAAwBC,CAAoB,EAAIJ,EAAwBD,EAAe,CAC1F,cAAe,CACX,QAAS,I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AAiBT,EAAQ,cAAc,QAC7C,GAAI,CAACS,EAAgB,MAAO,GAC5B,MAAMC,EAAe,MAAM,KAAKD,EAAe,iBAAiB,IAAIJ,CAAc,GAAG,CAAC,EAItF,OAHc,MAAM,KAAKL,EAAQ,QAAQ,OAAM,CAAE,EACtB,KAAK,CAACW,EAAGC,IAAIF,EAAa,QAAQC,EAAE,IAAI,OAAO,EAAID,EAAa,QAAQE,EAAE,IAAI,OAAO,CAC5H,CAEA,EAAW,CACCZ,EAAQ,cACRA,EAAQ,OACpB,CAAS,CAEJ,CACD,MAAO,CACH,CACI,SAAUV,EACV,KAAMQ,EACN,SAAUQ,CACb,EACDE,EACAtB,CACR,CACA","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs206.js","sources":["../../../node_modules/redux/es/redux.js"],"sourcesContent":["import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';\n\n/**\n * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js\n *\n * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes\n * during build.\n * @param {number} code\n */\nfunction formatProdErrorMessage(code) {\n return \"Minified Redux error #\" + code + \"; visit https://redux.js.org/Errors?code=\" + code + \" for the full message or \" + 'use the non-minified dev environment for full errors. ';\n}\n\n// Inlined version of the `symbol-observable` polyfill\nvar $$observable = (function () {\n return typeof Symbol === 'function' && Symbol.observable || '@@observable';\n})();\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar randomString = function randomString() {\n return Math.random().toString(36).substring(7).split('').join('.');\n};\n\nvar ActionTypes = {\n INIT: \"@@redux/INIT\" + randomString(),\n REPLACE: \"@@redux/REPLACE\" + randomString(),\n PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {\n return \"@@redux/PROBE_UNKNOWN_ACTION\" + randomString();\n }\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if (typeof obj !== 'object' || obj === null) return false;\n var proto = obj;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(obj) === proto;\n}\n\n// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of\nfunction miniKindOf(val) {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n var type = typeof val;\n\n switch (type) {\n case 'boolean':\n case 'string':\n case 'number':\n case 'symbol':\n case 'function':\n {\n return type;\n }\n }\n\n if (Array.isArray(val)) return 'array';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n var constructorName = ctorName(val);\n\n switch (constructorName) {\n case 'Symbol':\n case 'Promise':\n case 'WeakMap':\n case 'WeakSet':\n case 'Map':\n case 'Set':\n return constructorName;\n } // other\n\n\n return type.slice(8, -1).toLowerCase().replace(/\\s/g, '');\n}\n\nfunction ctorName(val) {\n return typeof val.constructor === 'function' ? val.constructor.name : null;\n}\n\nfunction isError(val) {\n return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';\n}\n\nfunction isDate(val) {\n if (val instanceof Date) return true;\n return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';\n}\n\nfunction kindOf(val) {\n var typeOfVal = typeof val;\n\n if (process.env.NODE_ENV !== 'production') {\n typeOfVal = miniKindOf(val);\n }\n\n return typeOfVal;\n}\n\n/**\n * @deprecated\n *\n * **We recommend using the `configureStore` method\n * of the `@reduxjs/toolkit` package**, which replaces `createStore`.\n *\n * Redux Toolkit is our recommended approach for writing Redux logic today,\n * including store setup, reducers, data fetching, and more.\n *\n * **For more details, please read this Redux docs page:**\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * `configureStore` from Redux Toolkit is an improved version of `createStore` that\n * simplifies setup and helps avoid common bugs.\n *\n * You should not be using the `redux` core package by itself today, except for learning purposes.\n * The `createStore` method from the core `redux` package will not be removed, but we encourage\n * all users to migrate to using Redux Toolkit for all Redux code.\n *\n * If you want to use `createStore` without this visual deprecation warning, use\n * the `legacy_createStore` import instead:\n *\n * `import { legacy_createStore as createStore} from 'redux'`\n *\n */\n\nfunction createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(0) : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');\n }\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(1) : \"Expected the enhancer to be a function. Instead, received: '\" + kindOf(enhancer) + \"'\");\n }\n\n return enhancer(createStore)(reducer, preloadedState);\n }\n\n if (typeof reducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(2) : \"Expected the root reducer to be a function. Instead, received: '\" + kindOf(reducer) + \"'\");\n }\n\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */\n\n\n function getState() {\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(3) : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n\n return currentState;\n }\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */\n\n\n function subscribe(listener) {\n if (typeof listener !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(4) : \"Expected the listener to be a function. Instead, received: '\" + kindOf(listener) + \"'\");\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(5) : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n\n var isSubscribed = true;\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(6) : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n\n isSubscribed = false;\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n currentListeners = null;\n };\n }\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n\n\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(7) : \"Actions must be plain objects. Instead, the actual type was: '\" + kindOf(action) + \"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.\");\n }\n\n if (typeof action.type === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(8) : 'Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.');\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(9) : 'Reducers may not dispatch actions.');\n }\n\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n\n var listeners = currentListeners = nextListeners;\n\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n\n return action;\n }\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */\n\n\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(10) : \"Expected the nextReducer to be a function. Instead, received: '\" + kindOf(nextReducer));\n }\n\n currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n\n dispatch({\n type: ActionTypes.REPLACE\n });\n }\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n\n\n function observable() {\n var _ref;\n\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe: function subscribe(observer) {\n if (typeof observer !== 'object' || observer === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(11) : \"Expected the observer to be an object. Instead, received: '\" + kindOf(observer) + \"'\");\n }\n\n function observeState() {\n if (observer.next) {\n observer.next(getState());\n }\n }\n\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _ref[$$observable] = function () {\n return this;\n }, _ref;\n } // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n\n\n dispatch({\n type: ActionTypes.INIT\n });\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[$$observable] = observable, _ref2;\n}\n/**\n * Creates a Redux store that holds the state tree.\n *\n * **We recommend using `configureStore` from the\n * `@reduxjs/toolkit` package**, which replaces `createStore`:\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\n\nvar legacy_createStore = createStore;\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n\n\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n if (reducerKeys.length === 0) {\n return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n }\n\n if (!isPlainObject(inputState)) {\n return \"The \" + argumentName + \" has unexpected type of \\\"\" + kindOf(inputState) + \"\\\". Expected argument to be an object with the following \" + (\"keys: \\\"\" + reducerKeys.join('\", \"') + \"\\\"\");\n }\n\n var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n unexpectedKeys.forEach(function (key) {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === ActionTypes.REPLACE) return;\n\n if (unexpectedKeys.length > 0) {\n return \"Unexpected \" + (unexpectedKeys.length > 1 ? 'keys' : 'key') + \" \" + (\"\\\"\" + unexpectedKeys.join('\", \"') + \"\\\" found in \" + argumentName + \". \") + \"Expected to find one of the known reducer keys instead: \" + (\"\\\"\" + reducerKeys.join('\", \"') + \"\\\". Unexpected keys will be ignored.\");\n }\n}\n\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function (key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, {\n type: ActionTypes.INIT\n });\n\n if (typeof initialState === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(12) : \"The slice reducer for key \\\"\" + key + \"\\\" returned undefined during initialization. \" + \"If the state passed to the reducer is undefined, you must \" + \"explicitly return the initial state. The initial state may \" + \"not be undefined. If you don't want to set a value for this reducer, \" + \"you can use null instead of undefined.\");\n }\n\n if (typeof reducer(undefined, {\n type: ActionTypes.PROBE_UNKNOWN_ACTION()\n }) === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(13) : \"The slice reducer for key \\\"\" + key + \"\\\" returned undefined when probed with a random type. \" + (\"Don't try to handle '\" + ActionTypes.INIT + \"' or other actions in \\\"redux/*\\\" \") + \"namespace. They are considered private. Instead, you must return the \" + \"current state for any unknown actions, unless it is undefined, \" + \"in which case you must return the initial state, regardless of the \" + \"action type. The initial state may not be undefined, but can be null.\");\n }\n });\n}\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\n\n\nfunction combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n\n for (var i = 0; i < reducerKeys.length; i++) {\n var key = reducerKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof reducers[key] === 'undefined') {\n warning(\"No reducer provided for key \\\"\" + key + \"\\\"\");\n }\n }\n\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n\n var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same\n // keys multiple times.\n\n var unexpectedKeyCache;\n\n if (process.env.NODE_ENV !== 'production') {\n unexpectedKeyCache = {};\n }\n\n var shapeAssertionError;\n\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n\n return function combination(state, action) {\n if (state === void 0) {\n state = {};\n }\n\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n\n var hasChanged = false;\n var nextState = {};\n\n for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n\n if (typeof nextStateForKey === 'undefined') {\n var actionType = action && action.type;\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(14) : \"When called with an action of type \" + (actionType ? \"\\\"\" + String(actionType) + \"\\\"\" : '(unknown type)') + \", the slice reducer for key \\\"\" + _key + \"\\\" returned undefined. \" + \"To ignore an action, you must explicitly return the previous state. \" + \"If you want this reducer to hold no value, you can return null instead of undefined.\");\n }\n\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n return function () {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass an action creator as the first argument,\n * and get a dispatch wrapped function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\n\n\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === 'function') {\n return bindActionCreator(actionCreators, dispatch);\n }\n\n if (typeof actionCreators !== 'object' || actionCreators === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(16) : \"bindActionCreators expected an object or a function, but instead received: '\" + kindOf(actionCreators) + \"'. \" + \"Did you write \\\"import ActionCreators from\\\" instead of \\\"import * as ActionCreators from\\\"?\");\n }\n\n var boundActionCreators = {};\n\n for (var key in actionCreators) {\n var actionCreator = actionCreators[key];\n\n if (typeof actionCreator === 'function') {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n\n return boundActionCreators;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\nfunction compose() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(void 0, arguments));\n };\n });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\n\nfunction applyMiddleware() {\n for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {\n middlewares[_key] = arguments[_key];\n }\n\n return function (createStore) {\n return function () {\n var store = createStore.apply(void 0, arguments);\n\n var _dispatch = function dispatch() {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(15) : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n };\n\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(void 0, arguments);\n }\n };\n var chain = middlewares.map(function (middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(void 0, chain)(store.dispatch);\n return _objectSpread(_objectSpread({}, store), {}, {\n dispatch: _dispatch\n });\n };\n };\n}\n\nexport { ActionTypes as __DO_NOT_USE__ActionTypes, applyMiddleware, bindActionCreators, combineReducers, compose, createStore, legacy_createStore };\n"],"names":["formatProdErrorMessage","code","$$observable","randomString","ActionTypes","isPlainObject","obj","proto","miniKindOf","val","type","isDate","isError","constructorName","ctorName","kindOf","typeOfVal","createStore","reducer","preloadedState","enhancer","_ref2","currentReducer","currentState","currentListeners","nextListeners","isDispatching","ensureCanMutateNextListeners","getState","subscribe","listener","isSubscribed","index","dispatch","action","listeners","i","replaceReducer","nextReducer","observable","_ref","outerSubscribe","observer","observeState","unsubscribe","warning","message","getUnexpectedStateShapeWarningMessage","inputState","reducers","unexpectedKeyCache","reducerKeys","argumentName","unexpectedKeys","key","assertReducerShape","initialState","combineReducers","finalReducers","finalReducerKeys","shapeAssertionError","e","state","warningMessage","hasChanged","nextState","_i","_key","previousStateForKey","nextStateForKey","actionType","compose","_len","funcs","arg","a","b","applyMiddleware","middlewares","store","_dispatch","middlewareAPI","chain","middleware","_objectSpread"],"mappings":"qHASA,SAASA,EAAuBC,EAAM,CAC7B,MAAA,yBAA2BA,EAAO,4CAA8CA,EAAO,iFAChG,CAGA,IAAIC,EAAgB,UAAY,CAC9B,OAAO,OAAO,QAAW,YAAc,OAAO,YAAc,cAC9D,IAQIC,EAAe,UAAwB,CACzC,OAAO,KAAK,OAAA,EAAS,SAAS,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,GAAG,CACnE,EAEIC,EAAc,CAChB,KAAM,eAAiBD,EAAa,EACpC,QAAS,kBAAoBA,EAAa,EAC1C,qBAAsB,UAAgC,CACpD,MAAO,+BAAiCA,GAC1C,CACF,EAMA,SAASE,EAAcC,EAAK,CACtB,GAAA,OAAOA,GAAQ,UAAYA,IAAQ,KAAa,MAAA,GAGpD,QAFIC,EAAQD,EAEL,OAAO,eAAeC,CAAK,IAAM,MAC9BA,EAAA,OAAO,eAAeA,CAAK,EAG9B,OAAA,OAAO,eAAeD,CAAG,IAAMC,CACxC,CAGA,SAASC,EAAWC,EAAK,CACvB,GAAIA,IAAQ,OAAe,MAAA,YAC3B,GAAIA,IAAQ,KAAa,MAAA,OACzB,IAAIC,EAAO,OAAOD,EAElB,OAAQC,EAAM,CACZ,IAAK,UACL,IAAK,SACL,IAAK,SACL,IAAK,SACL,IAAK,WAEM,OAAAA,CAEb,CAEI,GAAA,MAAM,QA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EAAQJ,EAAY,IAAI,SAAUK,EAAY,CAChD,OAAOA,EAAWF,CAAa,CAAA,CAChC,EACD,OAAAD,EAAYT,EAAQ,MAAM,OAAQW,CAAK,EAAEH,EAAM,QAAQ,EAChDK,EAAcA,EAAc,GAAIL,CAAK,EAAG,CAAA,EAAI,CACjD,SAAUC,CAAA,CACX,CAAA,CACH,CAEJ","x_google_ignoreList":[0]}
|
package/dist/index.cjs207.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),o=e.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),o=globalThis!=null&&globalThis.document?e.useLayoutEffect:()=>{};exports.useLayoutEffect=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs207.js.map
|
package/dist/index.cjs207.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs207.js","sources":["../../../node_modules/@radix-ui/react-
|
|
1
|
+
{"version":3,"file":"index.cjs207.js","sources":["../../../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["import {useLayoutEffect as $dxlwH$useLayoutEffect} from \"react\";\n\n\n/**\n * On the server, React emits a warning when calling `useLayoutEffect`.\n * This is because neither `useLayoutEffect` nor `useEffect` run on the server.\n * We use this safe version which suppresses the warning by replacing it with a noop on the server.\n *\n * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect\n */ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? $dxlwH$useLayoutEffect : ()=>{};\n\n\n\n\nexport {$9f79659886946c16$export$e5c5a5f917a5871c as useLayoutEffect};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$9f79659886946c16$export$e5c5a5f917a5871c","$dxlwH$useLayoutEffect"],"mappings":"yGASUA,EAAoD,YAAe,MAAyC,WAAW,SAAYC,EAAsB,gBAAG,IAAI,CAAA","x_google_ignoreList":[0]}
|
package/dist/index.cjs208.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),O=require("react-dom"),p=require("./index.cjs159.js"),v=require("./index.cjs207.js");function E(n,t){return s.useReducer((r,o)=>{const i=t[r][o];return i??r},n)}const M=n=>{const{present:t,children:r}=n,o=T(t),i=typeof r=="function"?r({present:o.isPresent}):s.Children.only(r),c=p.useComposedRefs(o.ref,i.ref);return typeof r=="function"||o.isPresent?s.cloneElement(i,{ref:c}):null};M.displayName="Presence";function T(n){const[t,r]=s.useState(),o=s.useRef({}),i=s.useRef(n),c=s.useRef("none"),N=n?"mounted":"unmounted",[l,u]=E(N,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const e=f(o.current);c.current=l==="mounted"?e:"none"},[l]),v.useLayoutEffect(()=>{const e=o.current,a=i.current;if(a!==n){const A=c.current,m=f(e);n?u("MOUNT"):m==="none"||(e==null?void 0:e.display)==="none"?u("UNMOUNT"):u(a&&A!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,u]),v.useLayoutEffect(()=>{if(t){const e=d=>{const m=f(o.current).includes(d.animationName);d.target===t&&m&&O.flushSync(()=>u("ANIMATION_END"))},a=d=>{d.target===t&&(c.current=f(o.current))};return t.addEventListener("animationstart",a),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:s.useCallback(e=>{e&&(o.current=getComputedStyle(e)),r(e)},[])}}function f(n){return(n==null?void 0:n.animationName)||"none"}exports.Presence=M;
|
|
2
2
|
//# sourceMappingURL=index.cjs208.js.map
|
package/dist/index.cjs208.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs208.js","sources":["../../../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"],"sourcesContent":["import $kqwpH$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {createContext as $kqwpH$createContext, forwardRef as $kqwpH$forwardRef, useContext as $kqwpH$useContext, useState as $kqwpH$useState, useEffect as $kqwpH$useEffect, createElement as $kqwpH$createElement, useRef as $kqwpH$useRef} from \"react\";\nimport {composeEventHandlers as $kqwpH$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {Primitive as $kqwpH$Primitive, dispatchDiscreteCustomEvent as $kqwpH$dispatchDiscreteCustomEvent} from \"@radix-ui/react-primitive\";\nimport {useComposedRefs as $kqwpH$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {useCallbackRef as $kqwpH$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\nimport {useEscapeKeydown as $kqwpH$useEscapeKeydown} from \"@radix-ui/react-use-escape-keydown\";\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * DismissableLayer\n * -----------------------------------------------------------------------------------------------*/ const $5cb92bef7577960e$var$DISMISSABLE_LAYER_NAME = 'DismissableLayer';\nconst $5cb92bef7577960e$var$CONTEXT_UPDATE = 'dismissableLayer.update';\nconst $5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE = 'dismissableLayer.pointerDownOutside';\nconst $5cb92bef7577960e$var$FOCUS_OUTSIDE = 'dismissableLayer.focusOutside';\nlet $5cb92bef7577960e$var$originalBodyPointerEvents;\nconst $5cb92bef7577960e$var$DismissableLayerContext = /*#__PURE__*/ $kqwpH$createContext({\n layers: new Set(),\n layersWithOutsidePointerEventsDisabled: new Set(),\n branches: new Set()\n});\nconst $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ $kqwpH$forwardRef((props, forwardedRef)=>{\n var _node$ownerDocument;\n const { disableOutsidePointerEvents: disableOutsidePointerEvents = false , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , onFocusOutside: onFocusOutside , onInteractOutside: onInteractOutside , onDismiss: onDismiss , ...layerProps } = props;\n const context = $kqwpH$useContext($5cb92bef7577960e$var$DismissableLayerContext);\n const [node1, setNode] = $kqwpH$useState(null);\n const ownerDocument = (_node$ownerDocument = node1 === null || node1 === void 0 ? void 0 : node1.ownerDocument) !== null && _node$ownerDocument !== void 0 ? _node$ownerDocument : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;\n const [, force] = $kqwpH$useState({});\n const composedRefs = $kqwpH$useComposedRefs(forwardedRef, (node)=>setNode(node)\n );\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [\n ...context.layersWithOutsidePointerEventsDisabled\n ].slice(-1); // prettier-ignore\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled); // prettier-ignore\n const index = node1 ? layers.indexOf(node1) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = $5cb92bef7577960e$var$usePointerDownOutside((event)=>{\n const target = event.target;\n const isPointerDownOnBranch = [\n ...context.branches\n ].some((branch)=>branch.contains(target)\n );\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside === null || onPointerDownOutside === void 0 || onPointerDownOutside(event);\n onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);\n if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();\n }, ownerDocument);\n const focusOutside = $5cb92bef7577960e$var$useFocusOutside((event)=>{\n const target = event.target;\n const isFocusInBranch = [\n ...context.branches\n ].some((branch)=>branch.contains(target)\n );\n if (isFocusInBranch) return;\n onFocusOutside === null || onFocusOutside === void 0 || onFocusOutside(event);\n onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);\n if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();\n }, ownerDocument);\n $kqwpH$useEscapeKeydown((event)=>{\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n $kqwpH$useEffect(()=>{\n if (!node1) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n $5cb92bef7577960e$var$originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = 'none';\n }\n context.layersWithOutsidePointerEventsDisabled.add(node1);\n }\n context.layers.add(node1);\n $5cb92bef7577960e$var$dispatchUpdate();\n return ()=>{\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;\n };\n }, [\n node1,\n ownerDocument,\n disableOutsidePointerEvents,\n context\n ]);\n /**\n * We purposefully prevent combining this effect with the `disableOutsidePointerEvents` effect\n * because a change to `disableOutsidePointerEvents` would remove this layer from the stack\n * and add it to the end again so the layering order wouldn't be _creation order_.\n * We only want them to be removed from context stacks when unmounted.\n */ $kqwpH$useEffect(()=>{\n return ()=>{\n if (!node1) return;\n context.layers.delete(node1);\n context.layersWithOutsidePointerEventsDisabled.delete(node1);\n $5cb92bef7577960e$var$dispatchUpdate();\n };\n }, [\n node1,\n context\n ]);\n $kqwpH$useEffect(()=>{\n const handleUpdate = ()=>force({})\n ;\n document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);\n return ()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate)\n ;\n }, []);\n return /*#__PURE__*/ $kqwpH$createElement($kqwpH$Primitive.div, $kqwpH$babelruntimehelpersesmextends({}, layerProps, {\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? 'auto' : 'none' : undefined,\n ...props.style\n },\n onFocusCapture: $kqwpH$composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: $kqwpH$composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: $kqwpH$composeEventHandlers(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)\n }));\n});\n/*#__PURE__*/ Object.assign($5cb92bef7577960e$export$177fb62ff3ec1f22, {\n displayName: $5cb92bef7577960e$var$DISMISSABLE_LAYER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * DismissableLayerBranch\n * -----------------------------------------------------------------------------------------------*/ const $5cb92bef7577960e$var$BRANCH_NAME = 'DismissableLayerBranch';\nconst $5cb92bef7577960e$export$4d5eb2109db14228 = /*#__PURE__*/ $kqwpH$forwardRef((props, forwardedRef)=>{\n const context = $kqwpH$useContext($5cb92bef7577960e$var$DismissableLayerContext);\n const ref = $kqwpH$useRef(null);\n const composedRefs = $kqwpH$useComposedRefs(forwardedRef, ref);\n $kqwpH$useEffect(()=>{\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return ()=>{\n context.branches.delete(node);\n };\n }\n }, [\n context.branches\n ]);\n return /*#__PURE__*/ $kqwpH$createElement($kqwpH$Primitive.div, $kqwpH$babelruntimehelpersesmextends({}, props, {\n ref: composedRefs\n }));\n});\n/*#__PURE__*/ Object.assign($5cb92bef7577960e$export$4d5eb2109db14228, {\n displayName: $5cb92bef7577960e$var$BRANCH_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ /**\n * Listens for `pointerdown` outside a react subtree. We use `pointerdown` rather than `pointerup`\n * to mimic layer dismissing behaviour present in OS.\n * Returns props to pass to the node we want to check for outside events.\n */ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {\n const handlePointerDownOutside = $kqwpH$useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = $kqwpH$useRef(false);\n const handleClickRef = $kqwpH$useRef(()=>{});\n $kqwpH$useEffect(()=>{\n const handlePointerDown = (event)=>{\n if (event.target && !isPointerInsideReactTreeRef.current) {\n const eventDetail = {\n originalEvent: event\n };\n function handleAndDispatchPointerDownOutsideEvent() {\n $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, {\n discrete: true\n });\n }\n /**\n * On touch devices, we need to wait for a click event because browsers implement\n * a ~350ms delay between the time the user stops touching the display and when the\n * browser executres events. We need to ensure we don't reactivate pointer-events within\n * this timeframe otherwise the browser may execute events that should have been prevented.\n *\n * Additionally, this also lets us deal automatically with cancellations when a click event\n * isn't raised because the page was considered scrolled/drag-scrolled, long-pressed, etc.\n *\n * This is why we also continuously remove the previous listener, because we cannot be\n * certain that it was raised, and therefore cleaned-up.\n */ if (event.pointerType === 'touch') {\n ownerDocument.removeEventListener('click', handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent;\n ownerDocument.addEventListener('click', handleClickRef.current, {\n once: true\n });\n } else handleAndDispatchPointerDownOutsideEvent();\n } else // We need to remove the event listener in case the outside click has been canceled.\n // See: https://github.com/radix-ui/primitives/issues/2171\n ownerDocument.removeEventListener('click', handleClickRef.current);\n isPointerInsideReactTreeRef.current = false;\n };\n /**\n * if this hook executes in a component that mounts via a `pointerdown` event, the event\n * would bubble up to the document and trigger a `pointerDownOutside` event. We avoid\n * this by delaying the event listener registration on the document.\n * This is not React specific, but rather how the DOM works, ie:\n * ```\n * button.addEventListener('pointerdown', () => {\n * console.log('I will log');\n * document.addEventListener('pointerdown', () => {\n * console.log('I will also log');\n * })\n * });\n */ const timerId = window.setTimeout(()=>{\n ownerDocument.addEventListener('pointerdown', handlePointerDown);\n }, 0);\n return ()=>{\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener('pointerdown', handlePointerDown);\n ownerDocument.removeEventListener('click', handleClickRef.current);\n };\n }, [\n ownerDocument,\n handlePointerDownOutside\n ]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: ()=>isPointerInsideReactTreeRef.current = true\n };\n}\n/**\n * Listens for when focus happens outside a react subtree.\n * Returns props to pass to the root (node) of the subtree we want to check.\n */ function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {\n const handleFocusOutside = $kqwpH$useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = $kqwpH$useRef(false);\n $kqwpH$useEffect(()=>{\n const handleFocus = (event)=>{\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = {\n originalEvent: event\n };\n $5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener('focusin', handleFocus);\n return ()=>ownerDocument.removeEventListener('focusin', handleFocus)\n ;\n }, [\n ownerDocument,\n handleFocusOutside\n ]);\n return {\n onFocusCapture: ()=>isFocusInsideReactTreeRef.current = true\n ,\n onBlurCapture: ()=>isFocusInsideReactTreeRef.current = false\n };\n}\nfunction $5cb92bef7577960e$var$dispatchUpdate() {\n const event = new CustomEvent($5cb92bef7577960e$var$CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detail, { discrete: discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, {\n bubbles: false,\n cancelable: true,\n detail: detail\n });\n if (handler) target.addEventListener(name, handler, {\n once: true\n });\n if (discrete) $kqwpH$dispatchDiscreteCustomEvent(target, event);\n else target.dispatchEvent(event);\n}\nconst $5cb92bef7577960e$export$be92b6f5f03c0fe9 = $5cb92bef7577960e$export$177fb62ff3ec1f22;\nconst $5cb92bef7577960e$export$aecb2ddcb55c95be = $5cb92bef7577960e$export$4d5eb2109db14228;\n\n\n\n\nexport {$5cb92bef7577960e$export$177fb62ff3ec1f22 as DismissableLayer, $5cb92bef7577960e$export$4d5eb2109db14228 as DismissableLayerBranch, $5cb92bef7577960e$export$be92b6f5f03c0fe9 as Root, $5cb92bef7577960e$export$aecb2ddcb55c95be as Branch};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$5cb92bef7577960e$var$CONTEXT_UPDATE","$5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE","$5cb92bef7577960e$var$FOCUS_OUTSIDE","$5cb92bef7577960e$var$originalBodyPointerEvents","$5cb92bef7577960e$var$DismissableLayerContext","$kqwpH$createContext","$5cb92bef7577960e$export$177fb62ff3ec1f22","$kqwpH$forwardRef","props","forwardedRef","_node$ownerDocument","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","context","$kqwpH$useContext","node1","setNode","$kqwpH$useState","ownerDocument","force","composedRefs","$kqwpH$useComposedRefs","node","layers","highestLayerWithOutsidePointerEventsDisabled","highestLayerWithOutsidePointerEventsDisabledIndex","index","isBodyPointerEventsDisabled","isPointerEventsEnabled","pointerDownOutside","$5cb92bef7577960e$var$usePointerDownOutside","event","target","isPointerDownOnBranch","branch","focusOutside","$5cb92bef7577960e$var$useFocusOutside","$kqwpH$useEscapeKeydown","$kqwpH$useEffect","$5cb92bef7577960e$var$dispatchUpdate","handleUpdate","$kqwpH$createElement","$kqwpH$Primitive","$kqwpH$babelruntimehelpersesmextends","$kqwpH$composeEventHandlers","handlePointerDownOutside","$kqwpH$useCallbackRef","isPointerInsideReactTreeRef","$kqwpH$useRef","handleClickRef","handlePointerDown","handleAndDispatchPointerDownOutsideEvent","$5cb92bef7577960e$var$handleAndDispatchCustomEvent","eventDetail","timerId","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","name","handler","detail","discrete","$kqwpH$dispatchDiscreteCustomEvent"],"mappings":"mSAkBMA,EAAuC,0BACvCC,EAA6C,sCAC7CC,EAAsC,gCAC5C,IAAIC,EACJ,MAAMC,EAA8DC,EAAAA,cAAqB,CACrF,OAAQ,IAAI,IACZ,uCAAwC,IAAI,IAC5C,SAAU,IAAI,GAClB,CAAC,EACKC,EAA0DC,EAAiB,WAAC,CAACC,EAAOC,IAAe,CACrG,IAAIC,EACJ,KAAM,CAAE,4BAA6BC,EAA8B,GAAQ,gBAAiBC,EAAkB,qBAAsBC,EAAuB,eAAgBC,EAAiB,kBAAmBC,EAAoB,UAAWC,EAAY,GAAGC,CAAY,EAAGT,EACtQU,EAAUC,aAAkBf,CAA6C,EACzE,CAACgB,EAAOC,CAAO,EAAIC,EAAe,SAAC,IAAI,EACvCC,GAAiBb,EAAsBU,GAAU,KAA2B,OAASA,EAAM,iBAAmB,MAAQV,IAAwB,OAASA,EAAsB,YAAe,KAAgC,OAAS,WAAW,SAChP,EAAGc,CAAK,EAAIF,EAAe,SAAC,CAAE,CAAA,EAC9BG,EAAeC,EAAAA,gBAAuBjB,EAAekB,GAAON,EAAQM,CAAI,CAClF,EACUC,EAAS,MAAM,KAAKV,EAAQ,MAAM,EAClC,CAACW,CAA4C,EAAI,CACnD,GAAGX,EAAQ,sCACnB,EAAM,MAAM,EAAE,EACJY,EAAoDF,EAAO,QAAQC,CAA4C,EAC/GE,EAAQX,EAAQQ,EAAO,QAAQR,CAAK,EAAI,GACxCY,EAA8Bd,EAAQ,uCAAuC,KAAO,EACpFe,EAAyBF,GAASD,EAClCI,EAAqBC,EAA6CC,GAAQ,CAC5E,MAAMC,EAASD,EAAM,OACfE,EAAwB,CAC1B,GAAGpB,EAAQ,QACd,EAAC,KAAMqB,GAASA,EAAO,SAASF,CAAM,CAC/C,EACY,CAACJ,GAA0BK,IA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-presence/dist/index.mjs"],"sourcesContent":["import {Children as $iqq3r$Children, cloneElement as $iqq3r$cloneElement, useState as $iqq3r$useState, useRef as $iqq3r$useRef, useEffect as $iqq3r$useEffect, useCallback as $iqq3r$useCallback, useReducer as $iqq3r$useReducer} from \"react\";\nimport {flushSync as $iqq3r$flushSync} from \"react-dom\";\nimport {useComposedRefs as $iqq3r$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {useLayoutEffect as $iqq3r$useLayoutEffect} from \"@radix-ui/react-use-layout-effect\";\n\n\n\n\n\n\nfunction $fe963b355347cc68$export$3e6543de14f8614f(initialState, machine) {\n return $iqq3r$useReducer((state, event)=>{\n const nextState = machine[state][event];\n return nextState !== null && nextState !== void 0 ? nextState : state;\n }, initialState);\n}\n\n\nconst $921a889cee6df7e8$export$99c2b779aa4e8b8b = (props)=>{\n const { present: present , children: children } = props;\n const presence = $921a889cee6df7e8$var$usePresence(present);\n const child = typeof children === 'function' ? children({\n present: presence.isPresent\n }) : $iqq3r$Children.only(children);\n const ref = $iqq3r$useComposedRefs(presence.ref, child.ref);\n const forceMount = typeof children === 'function';\n return forceMount || presence.isPresent ? /*#__PURE__*/ $iqq3r$cloneElement(child, {\n ref: ref\n }) : null;\n};\n$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName = 'Presence';\n/* -------------------------------------------------------------------------------------------------\n * usePresence\n * -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$usePresence(present) {\n const [node1, setNode] = $iqq3r$useState();\n const stylesRef = $iqq3r$useRef({});\n const prevPresentRef = $iqq3r$useRef(present);\n const prevAnimationNameRef = $iqq3r$useRef('none');\n const initialState = present ? 'mounted' : 'unmounted';\n const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f(initialState, {\n mounted: {\n UNMOUNT: 'unmounted',\n ANIMATION_OUT: 'unmountSuspended'\n },\n unmountSuspended: {\n MOUNT: 'mounted',\n ANIMATION_END: 'unmounted'\n },\n unmounted: {\n MOUNT: 'mounted'\n }\n });\n $iqq3r$useEffect(()=>{\n const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';\n }, [\n state\n ]);\n $iqq3r$useLayoutEffect(()=>{\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(styles);\n if (present) send('MOUNT');\n else if (currentAnimationName === 'none' || (styles === null || styles === void 0 ? void 0 : styles.display) === 'none') // If there is no exit animation or the element is hidden, animations won't run\n // so we unmount instantly\n send('UNMOUNT');\n else {\n /**\n * When `present` changes to `false`, we check changes to animation-name to\n * determine whether an animation has started. We chose this approach (reading\n * computed styles) because there is no `animationrun` event and `animationstart`\n * fires after `animation-delay` has expired which would be too late.\n */ const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) send('ANIMATION_OUT');\n else send('UNMOUNT');\n }\n prevPresentRef.current = present;\n }\n }, [\n present,\n send\n ]);\n $iqq3r$useLayoutEffect(()=>{\n if (node1) {\n /**\n * Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel`\n * event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we\n * make sure we only trigger ANIMATION_END for the currently active animation.\n */ const handleAnimationEnd = (event)=>{\n const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node1 && isCurrentAnimation) // With React 18 concurrency this update is applied\n // a frame after the animation ends, creating a flash of visible content.\n // By manually flushing we ensure they sync within a frame, removing the flash.\n $iqq3r$flushSync(()=>send('ANIMATION_END')\n );\n };\n const handleAnimationStart = (event)=>{\n if (event.target === node1) // if animation occurred, store its name as the previous animation.\n prevAnimationNameRef.current = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);\n };\n node1.addEventListener('animationstart', handleAnimationStart);\n node1.addEventListener('animationcancel', handleAnimationEnd);\n node1.addEventListener('animationend', handleAnimationEnd);\n return ()=>{\n node1.removeEventListener('animationstart', handleAnimationStart);\n node1.removeEventListener('animationcancel', handleAnimationEnd);\n node1.removeEventListener('animationend', handleAnimationEnd);\n };\n } else // Transition to the unmounted state if the node is removed prematurely.\n // We avoid doing so during cleanup as the node may change but still exist.\n send('ANIMATION_END');\n }, [\n node1,\n send\n ]);\n return {\n isPresent: [\n 'mounted',\n 'unmountSuspended'\n ].includes(state),\n ref: $iqq3r$useCallback((node)=>{\n if (node) stylesRef.current = getComputedStyle(node);\n setNode(node);\n }, [])\n };\n}\n/* -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$getAnimationName(styles) {\n return (styles === null || styles === void 0 ? void 0 : styles.animationName) || 'none';\n}\n\n\n\n\nexport {$921a889cee6df7e8$export$99c2b779aa4e8b8b as Presence};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$fe963b355347cc68$export$3e6543de14f8614f","initialState","machine","$iqq3r$useReducer","state","event","nextState","$921a889cee6df7e8$export$99c2b779aa4e8b8b","props","present","children","presence","$921a889cee6df7e8$var$usePresence","child","$iqq3r$Children","ref","$iqq3r$useComposedRefs","$iqq3r$cloneElement","node1","setNode","$iqq3r$useState","stylesRef","$iqq3r$useRef","prevPresentRef","prevAnimationNameRef","send","$iqq3r$useEffect","currentAnimationName","$921a889cee6df7e8$var$getAnimationName","$iqq3r$useLayoutEffect","styles","wasPresent","prevAnimationName","handleAnimationEnd","isCurrentAnimation","$iqq3r$flushSync","handleAnimationStart","$iqq3r$useCallback","node"],"mappings":"8LAUA,SAASA,EAA0CC,EAAcC,EAAS,CACtE,OAAOC,EAAiB,WAAC,CAACC,EAAOC,IAAQ,CACrC,MAAMC,EAAYJ,EAAQE,CAAK,EAAEC,CAAK,EACtC,OAAOC,GAAyDF,CACnE,EAAEH,CAAY,CACnB,CAGK,MAACM,EAA6CC,GAAQ,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C5B,CACT,EAAO,CACCA,EACAgB,CACR,CAAK,EACDI,EAAAA,gBAAuB,IAAI,CACvB,GAAIX,EAAO,CAKT,MAAMe,EAAsB5B,GAAQ,CAE9B,MAAM6B,EADuBN,EAAuCP,EAAU,OAAO,EACrC,SAAShB,EAAM,aAAa,EACxEA,EAAM,SAAWa,GAASgB,GAG9BC,YAAiB,IAAIV,EAAK,eAAe,CACzD,CACA,EACkBW,EAAwB/B,GAAQ,CAC9BA,EAAM,SAAWa,IACrBM,EAAqB,QAAUI,EAAuCP,EAAU,OAAO,EACvG,EACY,OAAAH,EAAM,iBAAiB,iBAAkBkB,CAAoB,EAC7DlB,EAAM,iBAAiB,kBAAmBe,CAAkB,EAC5Df,EAAM,iBAAiB,eAAgBe,CAAkB,EAClD,IAAI,CACPf,EAAM,oBAAoB,iBAAkBkB,CAAoB,EAChElB,EAAM,oBAAoB,kBAAmBe,CAAkB,EAC/Df,EAAM,oBAAoB,eAAgBe,CAAkB,CAC5E,CACS,MAEDR,EAAK,eAAe,CAC5B,EAAO,CACCP,EACAO,CACR,CAAK,EACM,CACH,UAAW,CACP,UACA,kBACZ,EAAU,SAASrB,CAAK,EAChB,IAAKiC,EAAAA,YAAoBC,GAAO,CACxBA,IAAMjB,EAAU,QAAU,iBAAiBiB,CAAI,GACnDnB,EAAQmB,CAAI,CACf,EAAE,EAAE,CACb,CACA,CACqG,SAASV,EAAuCE,EAAQ,CACzJ,OAAQA,GAAW,KAA4B,OAASA,EAAO,gBAAkB,MACrF","x_google_ignoreList":[0]}
|
package/dist/index.cjs209.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./index.cjs157.js"),t=require("react"),l=require("./index.cjs158.js"),H=require("./index.cjs220.js"),K=require("./index.cjs159.js"),B=require("./index.cjs160.js"),Y=require("./index.cjs164.js"),G=require("./index.cjs162.js"),V=require("./index.cjs222.js"),j=require("./index.cjs161.js"),z=require("./index.cjs210.js"),T="rovingFocusGroup.onEntryFocus",J={bubbles:!1,cancelable:!0},_="RovingFocusGroup",[w,h,Q]=H.createCollection(_),[W,X]=B.createContextScope(_,[Q]),[Z,ee]=W(_),D=t.forwardRef((e,o)=>t.createElement(w.Provider,{scope:e.__scopeRovingFocusGroup},t.createElement(w.Slot,{scope:e.__scopeRovingFocusGroup},t.createElement(te,x({},e,{ref:o}))))),te=t.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:c,orientation:n,loop:m=!1,dir:I,currentTabStopId:F,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:b,onEntryFocus:u,...E}=e,$=t.useRef(null),p=K.useComposedRefs(o,$),v=z.useDirection(I),[s=null,f]=j.useControllableState({prop:F,defaultProp:g,onChange:b}),[R,d]=t.useState(!1),a=V.useCallbackRef(u),q=h(c),C=t.useRef(!1),[M,A]=t.useState(0);return t.useEffect(()=>{const r=$.current;if(r)return r.addEventListener(T,a),()=>r.removeEventListener(T,a)},[a]),t.createElement(Z,{scope:c,orientation:n,dir:v,loop:m,currentTabStopId:s,onItemFocus:t.useCallback(r=>f(r),[f]),onItemShiftTab:t.useCallback(()=>d(!0),[]),onFocusableItemAdd:t.useCallback(()=>A(r=>r+1),[]),onFocusableItemRemove:t.useCallback(()=>A(r=>r-1),[])},t.createElement(G.Primitive.div,x({tabIndex:R||M===0?-1:0,"data-orientation":n},E,{ref:p,style:{outline:"none",...e.style},onMouseDown:l.composeEventHandlers(e.onMouseDown,()=>{C.current=!0}),onFocus:l.composeEventHandlers(e.onFocus,r=>{const N=!C.current;if(r.target===r.currentTarget&&N&&!R){const P=new CustomEvent(T,J);if(r.currentTarget.dispatchEvent(P),!P.defaultPrevented){const S=q().filter(i=>i.focusable),k=S.find(i=>i.active),L=S.find(i=>i.id===s),U=[k,L,...S].filter(Boolean).map(i=>i.ref.current);O(U)}}C.current=!1}),onBlur:l.composeEventHandlers(e.onBlur,()=>d(!1))})))}),oe="RovingFocusGroupItem",y=t.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:c,focusable:n=!0,active:m=!1,tabStopId:I,...F}=e,g=Y.useId(),b=I||g,u=ee(oe,c),E=u.currentTabStopId===b,$=h(c),{onFocusableItemAdd:p,onFocusableItemRemove:v}=u;return t.useEffect(()=>{if(n)return p(),()=>v()},[n,p,v]),t.createElement(w.ItemSlot,{scope:c,id:b,focusable:n,active:m},t.createElement(G.Primitive.span,x({tabIndex:E?0:-1,"data-orientation":u.orientation},F,{ref:o,onMouseDown:l.composeEventHandlers(e.onMouseDown,s=>{n?u.onItemFocus(b):s.preventDefault()}),onFocus:l.composeEventHandlers(e.onFocus,()=>u.onItemFocus(b)),onKeyDown:l.composeEventHandlers(e.onKeyDown,s=>{if(s.key==="Tab"&&s.shiftKey){u.onItemShiftTab();return}if(s.target!==s.currentTarget)return;const f=ce(s,u.orientation,u.dir);if(f!==void 0){s.preventDefault();let d=$().filter(a=>a.focusable).map(a=>a.ref.current);if(f==="last")d.reverse();else if(f==="prev"||f==="next"){f==="prev"&&d.reverse();const a=d.indexOf(s.currentTarget);d=u.loop?se(d,a+1):d.slice(a+1)}setTimeout(()=>O(d))}})})))}),ne={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function re(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ce(e,o,c){const n=re(e.key,c);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return ne[n]}function O(e){const o=document.activeElement;for(const c of e)if(c===o||(c.focus(),document.activeElement!==o))return}function se(e,o){return e.map((c,n)=>e[(o+n)%e.length])}const ue=D,de=y;exports.Item=de;exports.Root=ue;exports.RovingFocusGroup=D;exports.RovingFocusGroupItem=y;exports.createRovingFocusGroupScope=X;
|
|
2
2
|
//# sourceMappingURL=index.cjs209.js.map
|
package/dist/index.cjs209.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs209.js","sources":["../../../node_modules/@radix-ui/react-focus-guards/dist/index.mjs"],"sourcesContent":["import {useEffect as $1wErz$useEffect} from \"react\";\n\n\n/** Number of components which have requested interest to have focus guards */ let $3db38b7d1fb3fe6a$var$count = 0;\nfunction $3db38b7d1fb3fe6a$export$ac5b58043b79449b(props) {\n $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c();\n return props.children;\n}\n/**\n * Injects a pair of focus guards at the edges of the whole DOM tree\n * to ensure `focusin` & `focusout` events can be caught consistently.\n */ function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c() {\n $1wErz$useEffect(()=>{\n var _edgeGuards$, _edgeGuards$2;\n const edgeGuards = document.querySelectorAll('[data-radix-focus-guard]');\n document.body.insertAdjacentElement('afterbegin', (_edgeGuards$ = edgeGuards[0]) !== null && _edgeGuards$ !== void 0 ? _edgeGuards$ : $3db38b7d1fb3fe6a$var$createFocusGuard());\n document.body.insertAdjacentElement('beforeend', (_edgeGuards$2 = edgeGuards[1]) !== null && _edgeGuards$2 !== void 0 ? _edgeGuards$2 : $3db38b7d1fb3fe6a$var$createFocusGuard());\n $3db38b7d1fb3fe6a$var$count++;\n return ()=>{\n if ($3db38b7d1fb3fe6a$var$count === 1) document.querySelectorAll('[data-radix-focus-guard]').forEach((node)=>node.remove()\n );\n $3db38b7d1fb3fe6a$var$count--;\n };\n }, []);\n}\nfunction $3db38b7d1fb3fe6a$var$createFocusGuard() {\n const element = document.createElement('span');\n element.setAttribute('data-radix-focus-guard', '');\n element.tabIndex = 0;\n element.style.cssText = 'outline: none; opacity: 0; position: fixed; pointer-events: none';\n return element;\n}\nconst $3db38b7d1fb3fe6a$export$be92b6f5f03c0fe9 = $3db38b7d1fb3fe6a$export$ac5b58043b79449b;\n\n\n\n\nexport {$3db38b7d1fb3fe6a$export$ac5b58043b79449b as FocusGuards, $3db38b7d1fb3fe6a$export$be92b6f5f03c0fe9 as Root, $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c as useFocusGuards};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$3db38b7d1fb3fe6a$var$count","$3db38b7d1fb3fe6a$export$b7ece24a22aeda8c","$1wErz$useEffect","_edgeGuards$","_edgeGuards$2","edgeGuards","$3db38b7d1fb3fe6a$var$createFocusGuard","node","element"],"mappings":"yGAG+E,IAAIA,EAA8B,EAQ7G,SAASC,GAA4C,CACrDC,EAAAA,UAAiB,IAAI,CACjB,IAAIC,EAAcC,EAClB,MAAMC,EAAa,SAAS,iBAAiB,0BAA0B,EACvE,gBAAS,KAAK,sBAAsB,cAAeF,EAAeE,EAAW,CAAC,KAAO,MAAQF,IAAiB,OAASA,EAAeG,EAAwC,CAAA,EAC9K,SAAS,KAAK,sBAAsB,aAAcF,EAAgBC,EAAW,CAAC,KAAO,MAAQD,IAAkB,OAASA,EAAgBE,EAAwC,CAAA,EAChLN,IACO,IAAI,CACHA,IAAgC,GAAG,SAAS,iBAAiB,0BAA0B,EAAE,QAASO,GAAOA,EAAK,OAAQ,CACtI,EACYP,GACZ,CACK,EAAE,CAAE,CAAA,CACT,CACA,SAASM,GAAyC,CAC9C,MAAME,EAAU,SAAS,cAAc,MAAM,EAC7C,OAAAA,EAAQ,aAAa,yBAA0B,EAAE,EACjDA,EAAQ,SAAW,EACnBA,EAAQ,MAAM,QAAU,mEACjBA,CACX","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs209.js","sources":["../../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["import $98Iye$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $98Iye$forwardRef, createElement as $98Iye$createElement, useRef as $98Iye$useRef, useState as $98Iye$useState, useEffect as $98Iye$useEffect, useCallback as $98Iye$useCallback} from \"react\";\nimport {composeEventHandlers as $98Iye$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {createCollection as $98Iye$createCollection} from \"@radix-ui/react-collection\";\nimport {useComposedRefs as $98Iye$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $98Iye$createContextScope} from \"@radix-ui/react-context\";\nimport {useId as $98Iye$useId} from \"@radix-ui/react-id\";\nimport {Primitive as $98Iye$Primitive} from \"@radix-ui/react-primitive\";\nimport {useCallbackRef as $98Iye$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\nimport {useControllableState as $98Iye$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {useDirection as $98Iye$useDirection} from \"@radix-ui/react-direction\";\n\n\n\n\n\n\n\n\n\n\n\n\nconst $d7bdfb9eb0fdf311$var$ENTRY_FOCUS = 'rovingFocusGroup.onEntryFocus';\nconst $d7bdfb9eb0fdf311$var$EVENT_OPTIONS = {\n bubbles: false,\n cancelable: true\n};\n/* -------------------------------------------------------------------------------------------------\n * RovingFocusGroup\n * -----------------------------------------------------------------------------------------------*/ const $d7bdfb9eb0fdf311$var$GROUP_NAME = 'RovingFocusGroup';\nconst [$d7bdfb9eb0fdf311$var$Collection, $d7bdfb9eb0fdf311$var$useCollection, $d7bdfb9eb0fdf311$var$createCollectionScope] = $98Iye$createCollection($d7bdfb9eb0fdf311$var$GROUP_NAME);\nconst [$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext, $d7bdfb9eb0fdf311$export$c7109489551a4f4] = $98Iye$createContextScope($d7bdfb9eb0fdf311$var$GROUP_NAME, [\n $d7bdfb9eb0fdf311$var$createCollectionScope\n]);\nconst [$d7bdfb9eb0fdf311$var$RovingFocusProvider, $d7bdfb9eb0fdf311$var$useRovingFocusContext] = $d7bdfb9eb0fdf311$var$createRovingFocusGroupContext($d7bdfb9eb0fdf311$var$GROUP_NAME);\nconst $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /*#__PURE__*/ $98Iye$forwardRef((props, forwardedRef)=>{\n return /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$Collection.Provider, {\n scope: props.__scopeRovingFocusGroup\n }, /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$Collection.Slot, {\n scope: props.__scopeRovingFocusGroup\n }, /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, $98Iye$babelruntimehelpersesmextends({}, props, {\n ref: forwardedRef\n }))));\n});\n/*#__PURE__*/ Object.assign($d7bdfb9eb0fdf311$export$8699f7c8af148338, {\n displayName: $d7bdfb9eb0fdf311$var$GROUP_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /*#__PURE__*/ $98Iye$forwardRef((props, forwardedRef)=>{\n const { __scopeRovingFocusGroup: __scopeRovingFocusGroup , orientation: orientation , loop: loop = false , dir: dir , currentTabStopId: currentTabStopIdProp , defaultCurrentTabStopId: defaultCurrentTabStopId , onCurrentTabStopIdChange: onCurrentTabStopIdChange , onEntryFocus: onEntryFocus , ...groupProps } = props;\n const ref = $98Iye$useRef(null);\n const composedRefs = $98Iye$useComposedRefs(forwardedRef, ref);\n const direction = $98Iye$useDirection(dir);\n const [currentTabStopId = null, setCurrentTabStopId] = $98Iye$useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId,\n onChange: onCurrentTabStopIdChange\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = $98Iye$useState(false);\n const handleEntryFocus = $98Iye$useCallbackRef(onEntryFocus);\n const getItems = $d7bdfb9eb0fdf311$var$useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = $98Iye$useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = $98Iye$useState(0);\n $98Iye$useEffect(()=>{\n const node = ref.current;\n if (node) {\n node.addEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS, handleEntryFocus);\n return ()=>node.removeEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS, handleEntryFocus)\n ;\n }\n }, [\n handleEntryFocus\n ]);\n return /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$RovingFocusProvider, {\n scope: __scopeRovingFocusGroup,\n orientation: orientation,\n dir: direction,\n loop: loop,\n currentTabStopId: currentTabStopId,\n onItemFocus: $98Iye$useCallback((tabStopId)=>setCurrentTabStopId(tabStopId)\n , [\n setCurrentTabStopId\n ]),\n onItemShiftTab: $98Iye$useCallback(()=>setIsTabbingBackOut(true)\n , []),\n onFocusableItemAdd: $98Iye$useCallback(()=>setFocusableItemsCount((prevCount)=>prevCount + 1\n )\n , []),\n onFocusableItemRemove: $98Iye$useCallback(()=>setFocusableItemsCount((prevCount)=>prevCount - 1\n )\n , [])\n }, /*#__PURE__*/ $98Iye$createElement($98Iye$Primitive.div, $98Iye$babelruntimehelpersesmextends({\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation\n }, groupProps, {\n ref: composedRefs,\n style: {\n outline: 'none',\n ...props.style\n },\n onMouseDown: $98Iye$composeEventHandlers(props.onMouseDown, ()=>{\n isClickFocusRef.current = true;\n }),\n onFocus: $98Iye$composeEventHandlers(props.onFocus, (event)=>{\n // We normally wouldn't need this check, because we already check\n // that the focus is on the current target and not bubbling to it.\n // We do this because Safari doesn't focus buttons when clicked, and\n // instead, the wrapper will get focused and not through a bubbling event.\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent($d7bdfb9eb0fdf311$var$ENTRY_FOCUS, $d7bdfb9eb0fdf311$var$EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item)=>item.focusable\n );\n const activeItem = items.find((item)=>item.active\n );\n const currentItem = items.find((item)=>item.id === currentTabStopId\n );\n const candidateItems = [\n activeItem,\n currentItem,\n ...items\n ].filter(Boolean);\n const candidateNodes = candidateItems.map((item)=>item.ref.current\n );\n $d7bdfb9eb0fdf311$var$focusFirst(candidateNodes);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: $98Iye$composeEventHandlers(props.onBlur, ()=>setIsTabbingBackOut(false)\n )\n })));\n});\n/* -------------------------------------------------------------------------------------------------\n * RovingFocusGroupItem\n * -----------------------------------------------------------------------------------------------*/ const $d7bdfb9eb0fdf311$var$ITEM_NAME = 'RovingFocusGroupItem';\nconst $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /*#__PURE__*/ $98Iye$forwardRef((props, forwardedRef)=>{\n const { __scopeRovingFocusGroup: __scopeRovingFocusGroup , focusable: focusable = true , active: active = false , tabStopId: tabStopId , ...itemProps } = props;\n const autoId = $98Iye$useId();\n const id = tabStopId || autoId;\n const context = $d7bdfb9eb0fdf311$var$useRovingFocusContext($d7bdfb9eb0fdf311$var$ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = $d7bdfb9eb0fdf311$var$useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd: onFocusableItemAdd , onFocusableItemRemove: onFocusableItemRemove } = context;\n $98Iye$useEffect(()=>{\n if (focusable) {\n onFocusableItemAdd();\n return ()=>onFocusableItemRemove()\n ;\n }\n }, [\n focusable,\n onFocusableItemAdd,\n onFocusableItemRemove\n ]);\n return /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$Collection.ItemSlot, {\n scope: __scopeRovingFocusGroup,\n id: id,\n focusable: focusable,\n active: active\n }, /*#__PURE__*/ $98Iye$createElement($98Iye$Primitive.span, $98Iye$babelruntimehelpersesmextends({\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation\n }, itemProps, {\n ref: forwardedRef,\n onMouseDown: $98Iye$composeEventHandlers(props.onMouseDown, (event)=>{\n // We prevent focusing non-focusable items on `mousedown`.\n // Even though the item has tabIndex={-1}, that only means take it out of the tab order.\n if (!focusable) event.preventDefault(); // Safari doesn't focus a button when clicked so we run our logic on mousedown also\n else context.onItemFocus(id);\n }),\n onFocus: $98Iye$composeEventHandlers(props.onFocus, ()=>context.onItemFocus(id)\n ),\n onKeyDown: $98Iye$composeEventHandlers(props.onKeyDown, (event)=>{\n if (event.key === 'Tab' && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = $d7bdfb9eb0fdf311$var$getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== undefined) {\n event.preventDefault();\n const items = getItems().filter((item)=>item.focusable\n );\n let candidateNodes = items.map((item)=>item.ref.current\n );\n if (focusIntent === 'last') candidateNodes.reverse();\n else if (focusIntent === 'prev' || focusIntent === 'next') {\n if (focusIntent === 'prev') candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? $d7bdfb9eb0fdf311$var$wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n /**\n * Imperative focus during keydown is risky so we prevent React's batching updates\n * to avoid potential bugs. See: https://github.com/facebook/react/issues/20332\n */ setTimeout(()=>$d7bdfb9eb0fdf311$var$focusFirst(candidateNodes)\n );\n }\n })\n })));\n});\n/*#__PURE__*/ Object.assign($d7bdfb9eb0fdf311$export$ab9df7c53fe8454, {\n displayName: $d7bdfb9eb0fdf311$var$ITEM_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ // prettier-ignore\nconst $d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: 'prev',\n ArrowUp: 'prev',\n ArrowRight: 'next',\n ArrowDown: 'next',\n PageUp: 'first',\n Home: 'first',\n PageDown: 'last',\n End: 'last'\n};\nfunction $d7bdfb9eb0fdf311$var$getDirectionAwareKey(key, dir) {\n if (dir !== 'rtl') return key;\n return key === 'ArrowLeft' ? 'ArrowRight' : key === 'ArrowRight' ? 'ArrowLeft' : key;\n}\nfunction $d7bdfb9eb0fdf311$var$getFocusIntent(event, orientation, dir) {\n const key = $d7bdfb9eb0fdf311$var$getDirectionAwareKey(event.key, dir);\n if (orientation === 'vertical' && [\n 'ArrowLeft',\n 'ArrowRight'\n ].includes(key)) return undefined;\n if (orientation === 'horizontal' && [\n 'ArrowUp',\n 'ArrowDown'\n ].includes(key)) return undefined;\n return $d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction $d7bdfb9eb0fdf311$var$focusFirst(candidates) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates){\n // if focus is already where we want to go, we don't want to keep going through the candidates\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\n/**\n * Wraps an array around itself at a given start index\n * Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`\n */ function $d7bdfb9eb0fdf311$var$wrapArray(array, startIndex) {\n return array.map((_, index)=>array[(startIndex + index) % array.length]\n );\n}\nconst $d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9 = $d7bdfb9eb0fdf311$export$8699f7c8af148338;\nconst $d7bdfb9eb0fdf311$export$6d08773d2e66f8f2 = $d7bdfb9eb0fdf311$export$ab9df7c53fe8454;\n\n\n\n\nexport {$d7bdfb9eb0fdf311$export$c7109489551a4f4 as createRovingFocusGroupScope, $d7bdfb9eb0fdf311$export$8699f7c8af148338 as RovingFocusGroup, $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 as RovingFocusGroupItem, $d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9 as Root, $d7bdfb9eb0fdf311$export$6d08773d2e66f8f2 as Item};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$d7bdfb9eb0fdf311$var$ENTRY_FOCUS","$d7bdfb9eb0fdf311$var$EVENT_OPTIONS","$d7bdfb9eb0fdf311$var$GROUP_NAME","$d7bdfb9eb0fdf311$var$Collection","$d7bdfb9eb0fdf311$var$useCollection","$d7bdfb9eb0fdf311$var$createCollectionScope","$98Iye$createCollection","$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext","$d7bdfb9eb0fdf311$export$c7109489551a4f4","$98Iye$createContextScope","$d7bdfb9eb0fdf311$var$RovingFocusProvider","$d7bdfb9eb0fdf311$var$useRovingFocusContext","$d7bdfb9eb0fdf311$export$8699f7c8af148338","$98Iye$forwardRef","props","forwardedRef","$98Iye$createElement","$d7bdfb9eb0fdf311$var$RovingFocusGroupImpl","$98Iye$babelruntimehelpersesmextends","__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","groupProps","ref","$98Iye$useRef","composedRefs","$98Iye$useComposedRefs","direction","$98Iye$useDirection","currentTabStopId","setCurrentTabStopId","$98Iye$useControllableState","isTabbingBackOut","setIsTabbingBackOut","$98Iye$useState","handleEntryFocus","$98Iye$useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","$98Iye$useEffect","node","$98Iye$useCallback","tabStopId","prevCount","$98Iye$Primitive","$98Iye$composeEventHandlers","event","isKeyboardFocus","entryFocusEvent","items","item","activeItem","currentItem","candidateNodes","$d7bdfb9eb0fdf311$var$focusFirst","$d7bdfb9eb0fdf311$var$ITEM_NAME","$d7bdfb9eb0fdf311$export$ab9df7c53fe8454","focusable","active","itemProps","autoId","$98Iye$useId","id","context","isCurrentTabStop","onFocusableItemAdd","onFocusableItemRemove","focusIntent","$d7bdfb9eb0fdf311$var$getFocusIntent","currentIndex","$d7bdfb9eb0fdf311$var$wrapArray","$d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT","$d7bdfb9eb0fdf311$var$getDirectionAwareKey","key","candidates","PREVIOUSLY_FOCUSED_ELEMENT","candidate","array","startIndex","_","index","$d7bdfb9eb0fdf311$export$be92b6f5f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F,GAA8CE,CAAG,CAC5D,CACA,SAASnB,EAAiCoB,EAAY,CAClD,MAAMC,EAA6B,SAAS,cAC5C,UAAWC,KAAaF,EAIpB,GAFIE,IAAcD,IAClBC,EAAU,MAAK,EACX,SAAS,gBAAkBD,GAA4B,MAEnE,CAII,SAASL,GAAgCO,EAAOC,EAAY,CAC5D,OAAOD,EAAM,IAAI,CAACE,EAAGC,IAAQH,GAAOC,EAAaE,GAASH,EAAM,MAAM,CAC1E,CACA,CACK,MAACI,GAA4C5E,EAC5C6E,GAA4C1B","x_google_ignoreList":[0]}
|
package/dist/index.cjs210.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),o=e.createContext(void 0);function r(t){const n=e.useContext(o);return t||n||"ltr"}exports.useDirection=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs210.js.map
|
package/dist/index.cjs210.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs210.js","sources":["../../../node_modules/@radix-ui/react-focus-scope/dist/index.mjs"],"sourcesContent":["import $45QHv$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $45QHv$forwardRef, useState as $45QHv$useState, useRef as $45QHv$useRef, useEffect as $45QHv$useEffect, useCallback as $45QHv$useCallback, createElement as $45QHv$createElement} from \"react\";\nimport {useComposedRefs as $45QHv$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {Primitive as $45QHv$Primitive} from \"@radix-ui/react-primitive\";\nimport {useCallbackRef as $45QHv$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\n\n\n\n\n\n\nconst $d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT = 'focusScope.autoFocusOnMount';\nconst $d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT = 'focusScope.autoFocusOnUnmount';\nconst $d3863c46a17e8a28$var$EVENT_OPTIONS = {\n bubbles: false,\n cancelable: true\n};\n/* -------------------------------------------------------------------------------------------------\n * FocusScope\n * -----------------------------------------------------------------------------------------------*/ const $d3863c46a17e8a28$var$FOCUS_SCOPE_NAME = 'FocusScope';\nconst $d3863c46a17e8a28$export$20e40289641fbbb6 = /*#__PURE__*/ $45QHv$forwardRef((props, forwardedRef)=>{\n const { loop: loop = false , trapped: trapped = false , onMountAutoFocus: onMountAutoFocusProp , onUnmountAutoFocus: onUnmountAutoFocusProp , ...scopeProps } = props;\n const [container1, setContainer] = $45QHv$useState(null);\n const onMountAutoFocus = $45QHv$useCallbackRef(onMountAutoFocusProp);\n const onUnmountAutoFocus = $45QHv$useCallbackRef(onUnmountAutoFocusProp);\n const lastFocusedElementRef = $45QHv$useRef(null);\n const composedRefs = $45QHv$useComposedRefs(forwardedRef, (node)=>setContainer(node)\n );\n const focusScope = $45QHv$useRef({\n paused: false,\n pause () {\n this.paused = true;\n },\n resume () {\n this.paused = false;\n }\n }).current; // Takes care of trapping focus if focus is moved outside programmatically for example\n $45QHv$useEffect(()=>{\n if (trapped) {\n function handleFocusIn(event) {\n if (focusScope.paused || !container1) return;\n const target = event.target;\n if (container1.contains(target)) lastFocusedElementRef.current = target;\n else $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {\n select: true\n });\n }\n function handleFocusOut(event) {\n if (focusScope.paused || !container1) return;\n const relatedTarget = event.relatedTarget; // A `focusout` event with a `null` `relatedTarget` will happen in at least two cases:\n //\n // 1. When the user switches app/tabs/windows/the browser itself loses focus.\n // 2. In Google Chrome, when the focused element is removed from the DOM.\n //\n // We let the browser do its thing here because:\n //\n // 1. The browser already keeps a memory of what's focused for when the page gets refocused.\n // 2. In Google Chrome, if we try to focus the deleted focused element (as per below), it\n // throws the CPU to 100%, so we avoid doing anything for this reason here too.\n if (relatedTarget === null) return; // If the focus has moved to an actual legitimate element (`relatedTarget !== null`)\n // that is outside the container, we move focus to the last valid focused element inside.\n if (!container1.contains(relatedTarget)) $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {\n select: true\n });\n } // When the focused element gets removed from the DOM, browsers move focus\n // back to the document.body. In this case, we move focus to the container\n // to keep focus trapped correctly.\n function handleMutations(mutations) {\n const focusedElement = document.activeElement;\n if (focusedElement !== document.body) return;\n for (const mutation of mutations)if (mutation.removedNodes.length > 0) $d3863c46a17e8a28$var$focus(container1);\n }\n document.addEventListener('focusin', handleFocusIn);\n document.addEventListener('focusout', handleFocusOut);\n const mutationObserver = new MutationObserver(handleMutations);\n if (container1) mutationObserver.observe(container1, {\n childList: true,\n subtree: true\n });\n return ()=>{\n document.removeEventListener('focusin', handleFocusIn);\n document.removeEventListener('focusout', handleFocusOut);\n mutationObserver.disconnect();\n };\n }\n }, [\n trapped,\n container1,\n focusScope.paused\n ]);\n $45QHv$useEffect(()=>{\n if (container1) {\n $d3863c46a17e8a28$var$focusScopesStack.add(focusScope);\n const previouslyFocusedElement = document.activeElement;\n const hasFocusedCandidate = container1.contains(previouslyFocusedElement);\n if (!hasFocusedCandidate) {\n const mountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);\n container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n container1.dispatchEvent(mountEvent);\n if (!mountEvent.defaultPrevented) {\n $d3863c46a17e8a28$var$focusFirst($d3863c46a17e8a28$var$removeLinks($d3863c46a17e8a28$var$getTabbableCandidates(container1)), {\n select: true\n });\n if (document.activeElement === previouslyFocusedElement) $d3863c46a17e8a28$var$focus(container1);\n }\n }\n return ()=>{\n container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT, onMountAutoFocus); // We hit a react bug (fixed in v17) with focusing in unmount.\n // We need to delay the focus a little to get around it for now.\n // See: https://github.com/facebook/react/issues/17894\n setTimeout(()=>{\n const unmountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);\n container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n container1.dispatchEvent(unmountEvent);\n if (!unmountEvent.defaultPrevented) $d3863c46a17e8a28$var$focus(previouslyFocusedElement !== null && previouslyFocusedElement !== void 0 ? previouslyFocusedElement : document.body, {\n select: true\n });\n // we need to remove the listener after we `dispatchEvent`\n container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n $d3863c46a17e8a28$var$focusScopesStack.remove(focusScope);\n }, 0);\n };\n }\n }, [\n container1,\n onMountAutoFocus,\n onUnmountAutoFocus,\n focusScope\n ]); // Takes care of looping focus (when tabbing whilst at the edges)\n const handleKeyDown = $45QHv$useCallback((event)=>{\n if (!loop && !trapped) return;\n if (focusScope.paused) return;\n const isTabKey = event.key === 'Tab' && !event.altKey && !event.ctrlKey && !event.metaKey;\n const focusedElement = document.activeElement;\n if (isTabKey && focusedElement) {\n const container = event.currentTarget;\n const [first, last] = $d3863c46a17e8a28$var$getTabbableEdges(container);\n const hasTabbableElementsInside = first && last; // we can only wrap focus if we have tabbable edges\n if (!hasTabbableElementsInside) {\n if (focusedElement === container) event.preventDefault();\n } else {\n if (!event.shiftKey && focusedElement === last) {\n event.preventDefault();\n if (loop) $d3863c46a17e8a28$var$focus(first, {\n select: true\n });\n } else if (event.shiftKey && focusedElement === first) {\n event.preventDefault();\n if (loop) $d3863c46a17e8a28$var$focus(last, {\n select: true\n });\n }\n }\n }\n }, [\n loop,\n trapped,\n focusScope.paused\n ]);\n return /*#__PURE__*/ $45QHv$createElement($45QHv$Primitive.div, $45QHv$babelruntimehelpersesmextends({\n tabIndex: -1\n }, scopeProps, {\n ref: composedRefs,\n onKeyDown: handleKeyDown\n }));\n});\n/*#__PURE__*/ Object.assign($d3863c46a17e8a28$export$20e40289641fbbb6, {\n displayName: $d3863c46a17e8a28$var$FOCUS_SCOPE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * Utils\n * -----------------------------------------------------------------------------------------------*/ /**\n * Attempts focusing the first element in a list of candidates.\n * Stops when focus has actually moved.\n */ function $d3863c46a17e8a28$var$focusFirst(candidates, { select: select = false } = {}) {\n const previouslyFocusedElement = document.activeElement;\n for (const candidate of candidates){\n $d3863c46a17e8a28$var$focus(candidate, {\n select: select\n });\n if (document.activeElement !== previouslyFocusedElement) return;\n }\n}\n/**\n * Returns the first and last tabbable elements inside a container.\n */ function $d3863c46a17e8a28$var$getTabbableEdges(container) {\n const candidates = $d3863c46a17e8a28$var$getTabbableCandidates(container);\n const first = $d3863c46a17e8a28$var$findVisible(candidates, container);\n const last = $d3863c46a17e8a28$var$findVisible(candidates.reverse(), container);\n return [\n first,\n last\n ];\n}\n/**\n * Returns a list of potential tabbable candidates.\n *\n * NOTE: This is only a close approximation. For example it doesn't take into account cases like when\n * elements are not visible. This cannot be worked out easily by just reading a property, but rather\n * necessitate runtime knowledge (computed styles, etc). We deal with these cases separately.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker\n * Credit: https://github.com/discord/focus-layers/blob/master/src/util/wrapFocus.tsx#L1\n */ function $d3863c46a17e8a28$var$getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node)=>{\n const isHiddenInput = node.tagName === 'INPUT' && node.type === 'hidden';\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP; // `.tabIndex` is not the same as the `tabindex` attribute. It works on the\n // runtime's understanding of tabbability, so this automatically accounts\n // for any kind of element that could be tabbed to.\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while(walker.nextNode())nodes.push(walker.currentNode); // we do not take into account the order of nodes with positive `tabIndex` as it\n // hinders accessibility to have tab order different from visual order.\n return nodes;\n}\n/**\n * Returns the first visible element in a list.\n * NOTE: Only checks visibility up to the `container`.\n */ function $d3863c46a17e8a28$var$findVisible(elements, container) {\n for (const element of elements){\n // we stop checking if it's hidden at the `container` level (excluding)\n if (!$d3863c46a17e8a28$var$isHidden(element, {\n upTo: container\n })) return element;\n }\n}\nfunction $d3863c46a17e8a28$var$isHidden(node, { upTo: upTo }) {\n if (getComputedStyle(node).visibility === 'hidden') return true;\n while(node){\n // we stop at `upTo` (excluding it)\n if (upTo !== undefined && node === upTo) return false;\n if (getComputedStyle(node).display === 'none') return true;\n node = node.parentElement;\n }\n return false;\n}\nfunction $d3863c46a17e8a28$var$isSelectableInput(element) {\n return element instanceof HTMLInputElement && 'select' in element;\n}\nfunction $d3863c46a17e8a28$var$focus(element, { select: select = false } = {}) {\n // only focus if that element is focusable\n if (element && element.focus) {\n const previouslyFocusedElement = document.activeElement; // NOTE: we prevent scrolling on focus, to minimize jarring transitions for users\n element.focus({\n preventScroll: true\n }); // only select if its not the same element, it supports selection and we need to select\n if (element !== previouslyFocusedElement && $d3863c46a17e8a28$var$isSelectableInput(element) && select) element.select();\n }\n}\n/* -------------------------------------------------------------------------------------------------\n * FocusScope stack\n * -----------------------------------------------------------------------------------------------*/ const $d3863c46a17e8a28$var$focusScopesStack = $d3863c46a17e8a28$var$createFocusScopesStack();\nfunction $d3863c46a17e8a28$var$createFocusScopesStack() {\n /** A stack of focus scopes, with the active one at the top */ let stack = [];\n return {\n add (focusScope) {\n // pause the currently active focus scope (at the top of the stack)\n const activeFocusScope = stack[0];\n if (focusScope !== activeFocusScope) activeFocusScope === null || activeFocusScope === void 0 || activeFocusScope.pause();\n // remove in case it already exists (because we'll re-add it at the top of the stack)\n stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);\n stack.unshift(focusScope);\n },\n remove (focusScope) {\n var _stack$;\n stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);\n (_stack$ = stack[0]) === null || _stack$ === void 0 || _stack$.resume();\n }\n };\n}\nfunction $d3863c46a17e8a28$var$arrayRemove(array, item) {\n const updatedArray = [\n ...array\n ];\n const index = updatedArray.indexOf(item);\n if (index !== -1) updatedArray.splice(index, 1);\n return updatedArray;\n}\nfunction $d3863c46a17e8a28$var$removeLinks(items) {\n return items.filter((item)=>item.tagName !== 'A'\n );\n}\nconst $d3863c46a17e8a28$export$be92b6f5f03c0fe9 = $d3863c46a17e8a28$export$20e40289641fbbb6;\n\n\n\n\nexport {$d3863c46a17e8a28$export$20e40289641fbbb6 as FocusScope, $d3863c46a17e8a28$export$be92b6f5f03c0fe9 as Root};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT","$d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT","$d3863c46a17e8a28$var$EVENT_OPTIONS","$d3863c46a17e8a28$export$20e40289641fbbb6","$45QHv$forwardRef","props","forwardedRef","loop","trapped","onMountAutoFocusProp","onUnmountAutoFocusProp","scopeProps","container1","setContainer","$45QHv$useState","onMountAutoFocus","$45QHv$useCallbackRef","onUnmountAutoFocus","lastFocusedElementRef","$45QHv$useRef","composedRefs","$45QHv$useComposedRefs","node","focusScope","$45QHv$useEffect","handleFocusIn","event","target","$d3863c46a17e8a28$var$focus","handleFocusOut","relatedTarget","handleMutations","mutations","mutation","mutationObserver","$d3863c46a17e8a28$var$focusScopesStack","previouslyFocusedElement","mountEvent","$d3863c46a17e8a28$var$focusFirst","$d3863c46a17e8a28$var$removeLinks","$d3863c46a17e8a28$var$getTabbableCandidates","unmountEvent","handleKeyDown","$45QHv$useCallback","isTabKey","focusedElement","container","first","last","$d3863c46a17e8a28$var$getTabbableEdges","$45QHv$createElement","$45QHv$Primitive","$45QHv$babelruntimehelpersesmextends","candidates","select","candidate","$d3863c46a17e8a28$var$findVisible","nodes","walker","isHiddenInput","elements","element","$d3863c46a17e8a28$var$isHidden","upTo","$d3863c46a17e8a28$var$isSelectableInput","$d3863c46a17e8a28$var$createFocusScopesStack","stack","activeFocusScope","$d3863c46a17e8a28$var$arrayRemove","_stack$","array","item","updatedArray","index","items"],"mappings":"qOAWMA,EAA2C,8BAC3CC,EAA6C,gCAC7CC,EAAsC,CACxC,QAAS,GACT,WAAY,EAChB,EAIMC,EAA0DC,EAAiB,WAAC,CAACC,EAAOC,IAAe,CACrG,KAAM,CAAE,KAAMC,EAAO,GAAQ,QAASC,EAAU,GAAQ,iBAAkBC,EAAuB,mBAAoBC,EAAyB,GAAGC,CAAU,EAAKN,EAC1J,CAACO,EAAYC,CAAY,EAAIC,EAAe,SAAC,IAAI,EACjDC,EAAmBC,iBAAsBP,CAAoB,EAC7DQ,EAAqBD,iBAAsBN,CAAsB,EACjEQ,EAAwBC,SAAc,IAAI,EAC1CC,EAAeC,EAAAA,gBAAuBf,EAAegB,GAAOT,EAAaS,CAAI,CACvF,EACUC,EAAaJ,EAAAA,OAAc,CAC7B,OAAQ,GACR,OAAS,CACL,KAAK,OAAS,EACjB,EACD,QAAU,CACN,KAAK,OAAS,EACjB,CACJ,CAAA,EAAE,QACHK,EAAAA,UAAiB,IAAI,CACjB,GAAIhB,EAAS,CACT,IAASiB,EAAT,SAAuBC,EAAO,CAC1B,GAAIH,EAAW,QAAU,CAACX,EAAY,OACtC,MAAMe,EAASD,EAAM,OACjBd,EAAW,SAASe,CAAM,EAAGT,EAAsB,QAAUS,EAC5DC,EAA4BV,EAAsB,QAAS,CAC5D,OAAQ,EAC5B,CAAiB,CACJ,EACQW,EAAT,SAAwBH,EAAO,CAC3B,GAAIH,EAAW,QAAU,CAACX,EAAY,OACtC,MAAMkB,EAAgBJ,EAAM,cAUxBI,IAAkB,OAEjBlB,EAAW,SAASkB,CAAa,GAAGF,EAA4BV,EAAsB,QAAS,CAChG,OAAQ,EAC5B,CAAiB,EACJ,EAGQa,EAAT,SAAyBC,EAAW,CAEhC,GADuB,SAAS,gBACT,SAAS,KAChC,UAAWC,KAAYD,EAAcC,EAAS,aA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3D2C,EAAM,QAAQ3C,CAAU,CAC3B,EACD,OAAQA,EAAY,CAChB,IAAI8C,EACJH,EAAQE,EAAkCF,EAAO3C,CAAU,GAC1D8C,EAAUH,EAAM,CAAC,KAAO,MAAQG,IAAY,QAAUA,EAAQ,QAClE,CACT,CACA,CACA,SAASD,EAAkCE,EAAOC,EAAM,CACpD,MAAMC,EAAe,CACjB,GAAGF,CACX,EACUG,EAAQD,EAAa,QAAQD,CAAI,EACvC,OAAIE,IAAU,IAAID,EAAa,OAAOC,EAAO,CAAC,EACvCD,CACX,CACA,SAASjC,EAAkCmC,EAAO,CAC9C,OAAOA,EAAM,OAAQH,GAAOA,EAAK,UAAY,GACjD,CACA","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs210.js","sources":["../../../node_modules/@radix-ui/react-direction/dist/index.mjs"],"sourcesContent":["import {createContext as $7Gjcd$createContext, createElement as $7Gjcd$createElement, useContext as $7Gjcd$useContext} from \"react\";\n\n\nconst $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ $7Gjcd$createContext(undefined);\n/* -------------------------------------------------------------------------------------------------\n * Direction\n * -----------------------------------------------------------------------------------------------*/ const $f631663db3294ace$export$c760c09fdd558351 = (props)=>{\n const { dir: dir , children: children } = props;\n return /*#__PURE__*/ $7Gjcd$createElement($f631663db3294ace$var$DirectionContext.Provider, {\n value: dir\n }, children);\n};\n/* -----------------------------------------------------------------------------------------------*/ function $f631663db3294ace$export$b39126d51d94e6f3(localDir) {\n const globalDir = $7Gjcd$useContext($f631663db3294ace$var$DirectionContext);\n return localDir || globalDir || 'ltr';\n}\nconst $f631663db3294ace$export$2881499e37b75b9a = $f631663db3294ace$export$c760c09fdd558351;\n\n\n\n\nexport {$f631663db3294ace$export$b39126d51d94e6f3 as useDirection, $f631663db3294ace$export$2881499e37b75b9a as Provider, $f631663db3294ace$export$c760c09fdd558351 as DirectionProvider};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$f631663db3294ace$var$DirectionContext","$7Gjcd$createContext","$f631663db3294ace$export$b39126d51d94e6f3","localDir","globalDir","$7Gjcd$useContext"],"mappings":"yGAGMA,EAAuDC,EAAAA,cAAqB,MAAS,EASU,SAASC,EAA0CC,EAAU,CAC9J,MAAMC,EAAYC,aAAkBL,CAAsC,EAC1E,OAAOG,GAAYC,GAAa,KACpC","x_google_ignoreList":[0]}
|
package/dist/index.cjs211.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),c=require("./index.cjs207.js");function h(e){const[f,r]=u.useState(void 0);return c.useLayoutEffect(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const b=i[0];let t,o;if("borderBoxSize"in b){const s=b.borderBoxSize,d=Array.isArray(s)?s[0]:s;t=d.inlineSize,o=d.blockSize}else t=e.offsetWidth,o=e.offsetHeight;r({width:t,height:o})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),f}exports.useSize=h;
|
|
2
2
|
//# sourceMappingURL=index.cjs211.js.map
|