@anoki/fse-ui 1.0.0-beta1.45.12 → 1.0.0-beta1.45.15
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/components/ui/CardBanner/CardBanner.css +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs11.js.map +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs125.js +1 -1
- package/dist/index.cjs126.js +1 -1
- package/dist/index.cjs127.js +1 -1
- package/dist/index.cjs128.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs134.js +1 -1
- package/dist/index.cjs135.js +1 -1
- package/dist/index.cjs136.js +1 -1
- package/dist/index.cjs136.js.map +1 -1
- package/dist/index.cjs138.js +1 -1
- package/dist/index.cjs139.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs140.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs147.js +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs154.js +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs156.js +1 -1
- package/dist/index.cjs157.js +1 -1
- package/dist/index.cjs158.js +1 -1
- package/dist/index.cjs159.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs160.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.cjs165.js +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs168.js +1 -1
- package/dist/index.cjs169.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs170.js +1 -1
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs172.js +1 -1
- package/dist/index.cjs173.js +1 -1
- package/dist/index.cjs174.js +1 -1
- package/dist/index.cjs175.js +1 -1
- package/dist/index.cjs176.js +1 -1
- package/dist/index.cjs177.js +1 -1
- package/dist/index.cjs178.js +1 -1
- package/dist/index.cjs179.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs181.js +1 -1
- package/dist/index.cjs182.js +1 -1
- package/dist/index.cjs183.js +1 -1
- package/dist/index.cjs184.js +1 -1
- package/dist/index.cjs186.js +1 -1
- package/dist/index.cjs187.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs192.js +1 -1
- package/dist/index.cjs193.js +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs212.js +1 -1
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs220.js +1 -1
- package/dist/index.cjs221.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs243.js.map +1 -1
- package/dist/index.cjs245.js +2 -0
- package/dist/index.cjs245.js.map +1 -0
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs252.js +2 -0
- package/dist/index.cjs252.js.map +1 -0
- package/dist/index.cjs253.js +6 -1
- package/dist/index.cjs253.js.map +1 -1
- package/dist/index.cjs257.js +2 -0
- package/dist/index.cjs257.js.map +1 -0
- 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.cjs26.js +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.cjs267.js → index.cjs266.js} +1 -1
- package/dist/{index.cjs267.js.map → index.cjs266.js.map} +1 -1
- package/dist/{index.cjs269.js → index.cjs268.js} +1 -1
- package/dist/{index.cjs269.js.map → index.cjs268.js.map} +1 -1
- package/dist/{index.cjs272.js → index.cjs271.js} +1 -1
- package/dist/{index.cjs272.js.map → index.cjs271.js.map} +1 -1
- package/dist/index.cjs273.js +2 -0
- package/dist/index.cjs273.js.map +1 -0
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs281.js +1 -1
- package/dist/index.cjs285.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs290.js +1 -1
- package/dist/index.cjs293.js +1 -1
- package/dist/index.cjs295.js +1 -1
- package/dist/index.cjs296.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs303.js +1 -1
- package/dist/index.cjs314.js +1 -1
- package/dist/index.cjs319.js +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs322.js +1 -1
- package/dist/index.cjs324.js +1 -1
- package/dist/index.cjs329.js +1 -1
- package/dist/index.cjs332.js +1 -1
- package/dist/index.cjs337.js +1 -1
- package/dist/index.cjs339.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs342.js +1 -1
- package/dist/index.cjs347.js +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs350.js +1 -1
- package/dist/index.cjs351.js +1 -1
- package/dist/index.cjs352.js +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs370.js +1 -1
- package/dist/index.cjs371.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs393.js +1 -1
- package/dist/index.cjs399.js +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs402.js +1 -1
- package/dist/index.cjs405.js +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs411.js +1 -1
- package/dist/index.cjs417.js +1 -1
- package/dist/index.cjs419.js +1 -1
- package/dist/index.cjs420.js +1 -1
- package/dist/index.cjs434.js +1 -1
- package/dist/index.cjs439.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs451.js +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.cjs453.js +27 -1
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs454.js +1 -1
- package/dist/index.cjs455.js +1 -1
- package/dist/index.cjs456.js +1 -27
- package/dist/index.cjs456.js.map +1 -1
- package/dist/index.cjs457.js +2 -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 -2
- package/dist/index.cjs459.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/{index.cjs484.js → index.cjs460.js} +1 -1
- package/dist/{index.cjs484.js.map → index.cjs460.js.map} +1 -1
- package/dist/index.cjs462.js +1 -1
- package/dist/index.cjs462.js.map +1 -1
- package/dist/index.cjs463.js +1 -1
- package/dist/index.cjs463.js.map +1 -1
- package/dist/index.cjs464.js +1 -1
- package/dist/index.cjs464.js.map +1 -1
- package/dist/index.cjs465.js +1 -1
- package/dist/index.cjs465.js.map +1 -1
- package/dist/index.cjs466.js +1 -1
- package/dist/index.cjs466.js.map +1 -1
- package/dist/index.cjs467.js +1 -1
- package/dist/index.cjs467.js.map +1 -1
- package/dist/index.cjs468.js +1 -1
- package/dist/index.cjs468.js.map +1 -1
- package/dist/index.cjs469.js +1 -1
- package/dist/index.cjs469.js.map +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs472.js +1 -1
- package/dist/index.cjs472.js.map +1 -1
- package/dist/index.cjs473.js +1 -1
- package/dist/index.cjs473.js.map +1 -1
- package/dist/index.cjs474.js +1 -1
- package/dist/index.cjs474.js.map +1 -1
- package/dist/index.cjs475.js +1 -1
- package/dist/index.cjs475.js.map +1 -1
- package/dist/index.cjs476.js +1 -1
- package/dist/index.cjs476.js.map +1 -1
- package/dist/index.cjs477.js +1 -1
- package/dist/index.cjs477.js.map +1 -1
- package/dist/index.cjs478.js +1 -1
- package/dist/index.cjs478.js.map +1 -1
- package/dist/index.cjs479.js +1 -1
- package/dist/index.cjs479.js.map +1 -1
- package/dist/index.cjs480.js +1 -1
- package/dist/index.cjs480.js.map +1 -1
- package/dist/index.cjs481.js +1 -1
- package/dist/index.cjs481.js.map +1 -1
- package/dist/index.cjs485.js +1 -1
- package/dist/index.cjs485.js.map +1 -1
- package/dist/index.cjs486.js +1 -1
- package/dist/index.cjs486.js.map +1 -1
- package/dist/index.cjs487.js +1 -1
- package/dist/index.cjs487.js.map +1 -1
- package/dist/index.cjs488.js +1 -1
- package/dist/index.cjs488.js.map +1 -1
- package/dist/index.cjs489.js +1 -1
- package/dist/index.cjs489.js.map +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs490.js +1 -1
- package/dist/index.cjs490.js.map +1 -1
- package/dist/index.cjs491.js +1 -1
- package/dist/index.cjs491.js.map +1 -1
- package/dist/index.cjs497.js +1 -1
- package/dist/index.cjs497.js.map +1 -1
- package/dist/{index.cjs470.js → index.cjs498.js} +2 -2
- package/dist/{index.cjs470.js.map → index.cjs498.js.map} +1 -1
- package/dist/{index.cjs471.js → index.cjs499.js} +1 -1
- package/dist/{index.cjs471.js.map → index.cjs499.js.map} +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs500.js +1 -1
- package/dist/index.cjs500.js.map +1 -1
- package/dist/index.cjs501.js +1 -1
- package/dist/index.cjs501.js.map +1 -1
- package/dist/index.cjs502.js +1 -1
- package/dist/index.cjs502.js.map +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs513.js +1 -1
- package/dist/index.cjs513.js.map +1 -1
- package/dist/index.cjs514.js +1 -1
- package/dist/index.cjs514.js.map +1 -1
- package/dist/index.cjs515.js +1 -1
- package/dist/index.cjs515.js.map +1 -1
- package/dist/index.cjs516.js +1 -1
- package/dist/index.cjs516.js.map +1 -1
- package/dist/{index.cjs494.js → index.cjs517.js} +1 -1
- package/dist/{index.cjs494.js.map → index.cjs517.js.map} +1 -1
- package/dist/{index.cjs495.js → index.cjs518.js} +2 -2
- package/dist/{index.cjs495.js.map → index.cjs518.js.map} +1 -1
- package/dist/index.cjs519.js +2 -0
- package/dist/{index.cjs496.js.map → index.cjs519.js.map} +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs520.js +2 -0
- package/dist/index.cjs520.js.map +1 -0
- package/dist/index.cjs521.js +2 -0
- package/dist/index.cjs521.js.map +1 -0
- package/dist/{index.cjs503.js → index.cjs522.js} +2 -2
- package/dist/{index.cjs503.js.map → index.cjs522.js.map} +1 -1
- package/dist/{index.cjs504.js → index.cjs523.js} +2 -2
- package/dist/{index.cjs504.js.map → index.cjs523.js.map} +1 -1
- package/dist/{index.cjs505.js → index.cjs524.js} +2 -2
- package/dist/{index.cjs505.js.map → index.cjs524.js.map} +1 -1
- package/dist/{index.cjs506.js → index.cjs525.js} +2 -2
- package/dist/{index.cjs506.js.map → index.cjs525.js.map} +1 -1
- package/dist/{index.cjs507.js → index.cjs526.js} +1 -1
- package/dist/{index.cjs507.js.map → index.cjs526.js.map} +1 -1
- package/dist/{index.cjs508.js → index.cjs527.js} +1 -1
- package/dist/{index.cjs508.js.map → index.cjs527.js.map} +1 -1
- package/dist/index.cjs528.js +2 -0
- package/dist/index.cjs528.js.map +1 -0
- package/dist/index.cjs529.js +2 -0
- package/dist/index.cjs529.js.map +1 -0
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs530.js +1 -1
- package/dist/index.cjs530.js.map +1 -1
- package/dist/index.cjs531.js +1 -1
- package/dist/index.cjs531.js.map +1 -1
- package/dist/index.cjs532.js +1 -1
- package/dist/index.cjs532.js.map +1 -1
- package/dist/index.cjs533.js +1 -1
- package/dist/index.cjs533.js.map +1 -1
- package/dist/index.cjs534.js +2 -0
- package/dist/index.cjs534.js.map +1 -0
- package/dist/index.cjs535.js +2 -0
- package/dist/index.cjs535.js.map +1 -0
- package/dist/index.cjs536.js +2 -0
- package/dist/index.cjs536.js.map +1 -0
- package/dist/index.cjs537.js +2 -0
- package/dist/index.cjs537.js.map +1 -0
- package/dist/index.cjs538.js +2 -0
- package/dist/index.cjs538.js.map +1 -0
- package/dist/index.cjs539.js +1 -1
- package/dist/index.cjs539.js.map +1 -1
- package/dist/index.cjs540.js +1 -1
- package/dist/index.cjs540.js.map +1 -1
- package/dist/index.cjs541.js +1 -1
- package/dist/index.cjs541.js.map +1 -1
- package/dist/index.cjs542.js +1 -1
- package/dist/index.cjs542.js.map +1 -1
- package/dist/index.cjs543.js +1 -1
- package/dist/index.cjs543.js.map +1 -1
- package/dist/index.cjs544.js +1 -1
- package/dist/index.cjs544.js.map +1 -1
- package/dist/index.cjs545.js +1 -1
- package/dist/index.cjs545.js.map +1 -1
- package/dist/index.cjs546.js +1 -1
- package/dist/index.cjs546.js.map +1 -1
- package/dist/index.cjs547.js +1 -1
- package/dist/index.cjs547.js.map +1 -1
- package/dist/index.cjs548.js +1 -1
- package/dist/index.cjs548.js.map +1 -1
- package/dist/index.cjs549.js +1 -1
- package/dist/index.cjs549.js.map +1 -1
- package/dist/index.cjs550.js +1 -1
- package/dist/index.cjs550.js.map +1 -1
- package/dist/index.cjs551.js +1 -1
- package/dist/index.cjs551.js.map +1 -1
- package/dist/index.cjs552.js +1 -1
- package/dist/index.cjs552.js.map +1 -1
- package/dist/index.cjs553.js +1 -1
- package/dist/index.cjs553.js.map +1 -1
- package/dist/index.cjs554.js +1 -1
- package/dist/index.cjs554.js.map +1 -1
- package/dist/index.cjs555.js +38 -1
- package/dist/index.cjs555.js.map +1 -1
- package/dist/index.cjs556.js +1 -1
- package/dist/index.cjs556.js.map +1 -1
- package/dist/index.cjs557.js +1 -1
- package/dist/index.cjs557.js.map +1 -1
- package/dist/index.cjs558.js +1 -1
- package/dist/index.cjs558.js.map +1 -1
- package/dist/index.cjs559.js +5 -1
- package/dist/index.cjs559.js.map +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs560.js +1 -1
- package/dist/index.cjs560.js.map +1 -1
- package/dist/index.cjs561.js +1 -1
- package/dist/index.cjs561.js.map +1 -1
- package/dist/index.cjs562.js +1 -1
- package/dist/index.cjs562.js.map +1 -1
- package/dist/index.cjs563.js +1 -1
- package/dist/index.cjs563.js.map +1 -1
- package/dist/index.cjs564.js +1 -1
- package/dist/index.cjs564.js.map +1 -1
- package/dist/index.cjs565.js +1 -5
- package/dist/index.cjs565.js.map +1 -1
- package/dist/index.cjs566.js +1 -1
- package/dist/index.cjs566.js.map +1 -1
- package/dist/index.cjs567.js +1 -1
- package/dist/index.cjs567.js.map +1 -1
- package/dist/index.cjs568.js +1 -1
- package/dist/index.cjs568.js.map +1 -1
- package/dist/index.cjs569.js +1 -1
- package/dist/index.cjs569.js.map +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs570.js +1 -1
- package/dist/index.cjs570.js.map +1 -1
- package/dist/index.cjs571.js +1 -1
- package/dist/index.cjs571.js.map +1 -1
- package/dist/index.cjs572.js +1 -1
- package/dist/index.cjs572.js.map +1 -1
- package/dist/index.cjs573.js +1 -1
- package/dist/index.cjs573.js.map +1 -1
- package/dist/index.cjs574.js +1 -1
- package/dist/index.cjs574.js.map +1 -1
- package/dist/index.cjs575.js +1 -1
- package/dist/index.cjs575.js.map +1 -1
- package/dist/index.cjs576.js +1 -1
- package/dist/index.cjs576.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.cjs58.js +1 -1
- package/dist/index.cjs586.js +1 -1
- package/dist/index.cjs586.js.map +1 -1
- package/dist/index.cjs587.js +2 -0
- package/dist/index.cjs587.js.map +1 -0
- package/dist/index.cjs588.js +2 -0
- package/dist/index.cjs588.js.map +1 -0
- package/dist/index.cjs589.js +2 -0
- package/dist/index.cjs589.js.map +1 -0
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs594.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs64.js +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.cjs7.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs75.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.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es10.js +3 -3
- package/dist/index.es101.js +1 -1
- package/dist/index.es103.js +1 -1
- package/dist/index.es104.js +1 -1
- package/dist/index.es106.js +1 -1
- package/dist/index.es11.js +26 -24
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es110.js +1 -1
- package/dist/index.es111.js +1 -1
- package/dist/index.es112.js +1 -1
- package/dist/index.es113.js +1 -1
- package/dist/index.es114.js +1 -1
- package/dist/index.es118.js +1 -1
- package/dist/index.es12.js +1 -1
- package/dist/index.es122.js +3 -3
- package/dist/index.es123.js +1 -1
- package/dist/index.es125.js +1 -1
- package/dist/index.es126.js +1 -1
- package/dist/index.es127.js +1 -1
- package/dist/index.es128.js +1 -1
- package/dist/index.es129.js +1 -1
- package/dist/index.es13.js +1 -1
- package/dist/index.es130.js +1 -1
- package/dist/index.es134.js +1 -1
- package/dist/index.es135.js +1 -1
- package/dist/index.es136.js +40 -16
- package/dist/index.es136.js.map +1 -1
- package/dist/index.es138.js +2 -2
- package/dist/index.es139.js +1 -1
- package/dist/index.es14.js +1 -1
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +2 -2
- package/dist/index.es142.js +1 -1
- package/dist/index.es145.js +2 -2
- package/dist/index.es147.js +1 -1
- package/dist/index.es149.js +1 -1
- package/dist/index.es15.js +1 -1
- package/dist/index.es150.js +6 -6
- package/dist/index.es151.js +1 -1
- package/dist/index.es154.js +1 -1
- package/dist/index.es155.js +1 -1
- package/dist/index.es156.js +2 -2
- package/dist/index.es157.js +2 -2
- package/dist/index.es158.js +2 -2
- package/dist/index.es159.js +2 -2
- package/dist/index.es16.js +1 -1
- package/dist/index.es160.js +2 -2
- package/dist/index.es161.js +2 -2
- package/dist/index.es162.js +2 -2
- package/dist/index.es163.js +2 -2
- package/dist/index.es164.js +2 -2
- package/dist/index.es165.js +2 -2
- package/dist/index.es166.js +2 -2
- package/dist/index.es167.js +2 -2
- package/dist/index.es168.js +2 -2
- package/dist/index.es169.js +2 -2
- package/dist/index.es17.js +1 -1
- package/dist/index.es170.js +2 -2
- package/dist/index.es171.js +2 -2
- package/dist/index.es172.js +2 -2
- package/dist/index.es173.js +2 -2
- package/dist/index.es174.js +2 -2
- package/dist/index.es175.js +2 -2
- package/dist/index.es176.js +2 -2
- package/dist/index.es177.js +2 -2
- package/dist/index.es178.js +2 -2
- package/dist/index.es179.js +1 -1
- package/dist/index.es18.js +1 -1
- package/dist/index.es180.js +1 -1
- package/dist/index.es181.js +1 -1
- package/dist/index.es182.js +2 -2
- package/dist/index.es183.js +2 -2
- package/dist/index.es184.js +2 -2
- package/dist/index.es186.js +2 -2
- package/dist/index.es187.js +2 -2
- package/dist/index.es188.js +2 -2
- package/dist/index.es189.js +2 -2
- package/dist/index.es19.js +1 -1
- package/dist/index.es190.js +2 -2
- package/dist/index.es191.js +2 -2
- package/dist/index.es192.js +2 -2
- package/dist/index.es193.js +2 -2
- package/dist/index.es194.js +2 -2
- package/dist/index.es195.js +1 -1
- package/dist/index.es196.js +2 -2
- package/dist/index.es197.js +2 -2
- package/dist/index.es198.js +2 -2
- package/dist/index.es199.js +2 -2
- package/dist/index.es20.js +1 -1
- package/dist/index.es200.js +2 -2
- package/dist/index.es201.js +2 -2
- package/dist/index.es202.js +2 -2
- package/dist/index.es203.js +1 -1
- package/dist/index.es204.js +1 -1
- package/dist/index.es205.js +2 -2
- package/dist/index.es206.js +2 -2
- package/dist/index.es207.js +2 -2
- package/dist/index.es208.js +2 -2
- package/dist/index.es209.js +2 -2
- package/dist/index.es21.js +1 -1
- package/dist/index.es210.js +2 -2
- package/dist/index.es211.js +2 -2
- package/dist/index.es212.js +2 -2
- package/dist/index.es218.js +2 -2
- package/dist/index.es220.js +2 -2
- package/dist/index.es221.js +2 -2
- package/dist/index.es24.js +2 -2
- package/dist/index.es243.js +15 -2
- package/dist/index.es243.js.map +1 -1
- package/dist/index.es245.js +6 -0
- package/dist/index.es245.js.map +1 -0
- package/dist/index.es25.js +1 -1
- package/dist/index.es252.js +8 -0
- package/dist/index.es252.js.map +1 -0
- package/dist/index.es253.js +59 -5
- package/dist/index.es253.js.map +1 -1
- package/dist/index.es257.js +12 -0
- package/dist/index.es257.js.map +1 -0
- package/dist/index.es258.js +239 -8
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +116 -231
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es26.js +1 -1
- package/dist/index.es260.js +205 -105
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es261.js +174 -210
- package/dist/index.es261.js.map +1 -1
- package/dist/{index.es267.js → index.es266.js} +1 -1
- package/dist/{index.es267.js.map → index.es266.js.map} +1 -1
- package/dist/{index.es269.js → index.es268.js} +1 -1
- package/dist/{index.es269.js.map → index.es268.js.map} +1 -1
- package/dist/{index.es272.js → index.es271.js} +1 -1
- package/dist/{index.es272.js.map → index.es271.js.map} +1 -1
- package/dist/index.es273.js +5 -0
- package/dist/index.es273.js.map +1 -0
- package/dist/index.es28.js +2 -2
- package/dist/index.es281.js +2 -2
- package/dist/index.es285.js +1 -1
- package/dist/index.es29.js +1 -1
- package/dist/index.es290.js +7 -7
- package/dist/index.es293.js +2 -2
- package/dist/index.es295.js +2 -2
- package/dist/index.es296.js +2 -2
- package/dist/index.es30.js +1 -1
- package/dist/index.es303.js +8 -8
- package/dist/index.es314.js +1 -1
- package/dist/index.es319.js +2 -2
- package/dist/index.es321.js +14 -14
- package/dist/index.es322.js +1 -1
- package/dist/index.es324.js +1 -1
- package/dist/index.es329.js +1 -1
- package/dist/index.es332.js +1 -1
- package/dist/index.es337.js +1 -1
- package/dist/index.es339.js +1 -1
- package/dist/index.es34.js +1 -1
- package/dist/index.es342.js +1 -1
- package/dist/index.es347.js +1 -1
- package/dist/index.es35.js +1 -1
- package/dist/index.es350.js +2 -2
- package/dist/index.es351.js +2 -2
- package/dist/index.es352.js +7 -7
- package/dist/index.es36.js +1 -1
- package/dist/index.es37.js +1 -1
- package/dist/index.es370.js +6 -6
- package/dist/index.es371.js +2 -2
- package/dist/index.es38.js +1 -1
- package/dist/index.es39.js +1 -1
- package/dist/index.es393.js +4 -4
- package/dist/index.es399.js +1 -1
- package/dist/index.es40.js +1 -1
- package/dist/index.es402.js +1 -1
- package/dist/index.es405.js +1 -1
- package/dist/index.es41.js +1 -1
- package/dist/index.es411.js +8 -8
- package/dist/index.es417.js +1 -1
- package/dist/index.es419.js +1 -1
- package/dist/index.es420.js +1 -1
- package/dist/index.es434.js +1 -1
- package/dist/index.es439.js +2 -2
- package/dist/index.es44.js +1 -1
- package/dist/index.es45.js +1 -1
- package/dist/index.es451.js +1 -1
- package/dist/index.es452.js +1 -1
- package/dist/index.es453.js +3675 -2
- package/dist/index.es453.js.map +1 -1
- package/dist/index.es454.js +6 -2
- package/dist/index.es454.js.map +1 -1
- package/dist/index.es455.js +2 -6
- package/dist/index.es455.js.map +1 -1
- package/dist/index.es456.js +5 -3674
- package/dist/index.es456.js.map +1 -1
- package/dist/index.es457.js +521 -2
- package/dist/index.es457.js.map +1 -1
- package/dist/index.es458.js +2031 -5
- package/dist/index.es458.js.map +1 -1
- package/dist/index.es459.js +56 -517
- package/dist/index.es459.js.map +1 -1
- package/dist/index.es46.js +1 -1
- package/dist/{index.es484.js → index.es460.js} +1 -1
- package/dist/{index.es484.js.map → index.es460.js.map} +1 -1
- package/dist/index.es462.js +5 -25
- package/dist/index.es462.js.map +1 -1
- package/dist/index.es463.js +23 -64
- package/dist/index.es463.js.map +1 -1
- package/dist/index.es464.js +65 -27
- package/dist/index.es464.js.map +1 -1
- package/dist/index.es465.js +29 -32
- package/dist/index.es465.js.map +1 -1
- package/dist/index.es466.js +31 -620
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +621 -10
- package/dist/index.es467.js.map +1 -1
- package/dist/index.es468.js +10 -10
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es469.js +15 -56
- package/dist/index.es469.js.map +1 -1
- package/dist/index.es47.js +1 -1
- package/dist/index.es472.js +5 -124
- package/dist/index.es472.js.map +1 -1
- package/dist/index.es473.js +24 -14
- package/dist/index.es473.js.map +1 -1
- package/dist/index.es474.js +60 -126
- package/dist/index.es474.js.map +1 -1
- package/dist/index.es475.js +2 -218
- package/dist/index.es475.js.map +1 -1
- package/dist/index.es476.js +2 -14
- package/dist/index.es476.js.map +1 -1
- package/dist/index.es477.js +13 -67
- package/dist/index.es477.js.map +1 -1
- package/dist/index.es478.js +128 -173
- package/dist/index.es478.js.map +1 -1
- package/dist/index.es479.js +176 -48
- package/dist/index.es479.js.map +1 -1
- package/dist/index.es480.js +10 -9
- package/dist/index.es480.js.map +1 -1
- package/dist/index.es481.js +4 -4
- package/dist/index.es481.js.map +1 -1
- package/dist/index.es485.js +123 -10
- package/dist/index.es485.js.map +1 -1
- package/dist/index.es486.js +124 -194
- package/dist/index.es486.js.map +1 -1
- package/dist/index.es487.js +13 -21
- package/dist/index.es487.js.map +1 -1
- package/dist/index.es488.js +14 -24
- package/dist/index.es488.js.map +1 -1
- package/dist/index.es489.js +9 -393
- package/dist/index.es489.js.map +1 -1
- package/dist/index.es49.js +1 -1
- package/dist/index.es490.js +50 -10
- package/dist/index.es490.js.map +1 -1
- package/dist/index.es491.js +47 -169
- package/dist/index.es491.js.map +1 -1
- package/dist/index.es497.js +11 -15
- package/dist/index.es497.js.map +1 -1
- package/dist/{index.es470.js → index.es498.js} +4 -4
- package/dist/{index.es470.js.map → index.es498.js.map} +1 -1
- package/dist/{index.es471.js → index.es499.js} +1 -1
- package/dist/{index.es471.js.map → index.es499.js.map} +1 -1
- package/dist/index.es50.js +1 -1
- package/dist/index.es500.js +217 -5
- package/dist/index.es500.js.map +1 -1
- package/dist/index.es501.js +178 -5
- package/dist/index.es501.js.map +1 -1
- package/dist/index.es502.js +4 -3
- package/dist/index.es502.js.map +1 -1
- package/dist/index.es51.js +1 -1
- package/dist/index.es513.js +11 -64
- package/dist/index.es513.js.map +1 -1
- package/dist/index.es514.js +203 -13
- package/dist/index.es514.js.map +1 -1
- package/dist/index.es515.js +22 -4
- package/dist/index.es515.js.map +1 -1
- package/dist/index.es516.js +391 -21
- package/dist/index.es516.js.map +1 -1
- package/dist/{index.es494.js → index.es517.js} +1 -1
- package/dist/{index.es494.js.map → index.es517.js.map} +1 -1
- package/dist/{index.es495.js → index.es518.js} +5 -5
- package/dist/{index.es495.js.map → index.es518.js.map} +1 -1
- package/dist/index.es519.js +8 -0
- package/dist/{index.es496.js.map → index.es519.js.map} +1 -1
- package/dist/index.es52.js +1 -1
- package/dist/index.es520.js +8 -0
- package/dist/index.es520.js.map +1 -0
- package/dist/index.es521.js +6 -0
- package/dist/index.es521.js.map +1 -0
- package/dist/{index.es503.js → index.es522.js} +3 -3
- package/dist/{index.es503.js.map → index.es522.js.map} +1 -1
- package/dist/{index.es504.js → index.es523.js} +6 -6
- package/dist/{index.es504.js.map → index.es523.js.map} +1 -1
- package/dist/{index.es505.js → index.es524.js} +2 -2
- package/dist/{index.es505.js.map → index.es524.js.map} +1 -1
- package/dist/{index.es506.js → index.es525.js} +2 -2
- package/dist/{index.es506.js.map → index.es525.js.map} +1 -1
- package/dist/{index.es507.js → index.es526.js} +1 -1
- package/dist/{index.es507.js.map → index.es526.js.map} +1 -1
- package/dist/{index.es508.js → index.es527.js} +1 -1
- package/dist/{index.es508.js.map → index.es527.js.map} +1 -1
- package/dist/index.es528.js +8 -0
- package/dist/index.es528.js.map +1 -0
- package/dist/index.es529.js +19 -0
- package/dist/index.es529.js.map +1 -0
- package/dist/index.es53.js +1 -1
- package/dist/index.es530.js +13 -23
- package/dist/index.es530.js.map +1 -1
- package/dist/index.es531.js +36 -13
- package/dist/index.es531.js.map +1 -1
- package/dist/index.es532.js +5 -28
- package/dist/index.es532.js.map +1 -1
- package/dist/index.es533.js +2 -5
- package/dist/index.es533.js.map +1 -1
- package/dist/index.es534.js +6 -0
- package/dist/index.es534.js.map +1 -0
- package/dist/index.es535.js +10 -0
- package/dist/index.es535.js.map +1 -0
- package/dist/index.es536.js +9 -0
- package/dist/index.es536.js.map +1 -0
- package/dist/index.es537.js +8 -0
- package/dist/index.es537.js.map +1 -0
- package/dist/index.es538.js +35 -0
- package/dist/index.es538.js.map +1 -0
- package/dist/index.es539.js +242 -5
- package/dist/index.es539.js.map +1 -1
- package/dist/index.es540.js +4 -16
- package/dist/index.es540.js.map +1 -1
- package/dist/index.es541.js +5 -13
- package/dist/index.es541.js.map +1 -1
- package/dist/index.es542.js +9 -35
- package/dist/index.es542.js.map +1 -1
- package/dist/index.es543.js +56 -5
- package/dist/index.es543.js.map +1 -1
- package/dist/index.es544.js +8 -2
- package/dist/index.es544.js.map +1 -1
- package/dist/index.es545.js +6 -3
- package/dist/index.es545.js.map +1 -1
- package/dist/index.es546.js +532 -6
- package/dist/index.es546.js.map +1 -1
- package/dist/index.es547.js +14 -6
- package/dist/index.es547.js.map +1 -1
- package/dist/index.es548.js +2 -5
- package/dist/index.es548.js.map +1 -1
- package/dist/index.es549.js +37 -32
- package/dist/index.es549.js.map +1 -1
- package/dist/index.es550.js +2 -242
- package/dist/index.es550.js.map +1 -1
- package/dist/index.es551.js +273 -4
- package/dist/index.es551.js.map +1 -1
- package/dist/index.es552.js +3 -5
- package/dist/index.es552.js.map +1 -1
- package/dist/index.es553.js +30 -10
- package/dist/index.es553.js.map +1 -1
- package/dist/index.es554.js +59 -50
- package/dist/index.es554.js.map +1 -1
- package/dist/index.es555.js +69 -8
- package/dist/index.es555.js.map +1 -1
- package/dist/index.es556.js +9 -6
- package/dist/index.es556.js.map +1 -1
- package/dist/index.es557.js +14 -533
- package/dist/index.es557.js.map +1 -1
- package/dist/index.es558.js +62 -14
- package/dist/index.es558.js.map +1 -1
- package/dist/index.es559.js +40 -2
- package/dist/index.es559.js.map +1 -1
- package/dist/index.es56.js +2 -2
- package/dist/index.es560.js +2 -37
- package/dist/index.es560.js.map +1 -1
- package/dist/index.es561.js +5 -2
- package/dist/index.es561.js.map +1 -1
- package/dist/index.es562.js +2 -273
- package/dist/index.es562.js.map +1 -1
- package/dist/index.es563.js +2 -3
- package/dist/index.es563.js.map +1 -1
- package/dist/index.es564.js +2 -30
- package/dist/index.es564.js.map +1 -1
- package/dist/index.es565.js +15 -39
- package/dist/index.es565.js.map +1 -1
- package/dist/index.es566.js +6 -2
- package/dist/index.es566.js.map +1 -1
- package/dist/index.es567.js +2 -5
- package/dist/index.es567.js.map +1 -1
- package/dist/index.es568.js +2 -6
- package/dist/index.es568.js.map +1 -1
- package/dist/index.es569.js +3 -16
- package/dist/index.es569.js.map +1 -1
- package/dist/index.es57.js +1 -1
- package/dist/index.es570.js +2 -2
- package/dist/index.es570.js.map +1 -1
- package/dist/index.es571.js +4 -2
- package/dist/index.es571.js.map +1 -1
- package/dist/index.es572.js +4 -2
- package/dist/index.es572.js.map +1 -1
- package/dist/index.es573.js +23 -2
- package/dist/index.es573.js.map +1 -1
- package/dist/index.es574.js +4 -2
- package/dist/index.es574.js.map +1 -1
- package/dist/index.es575.js +3 -3
- package/dist/index.es575.js.map +1 -1
- package/dist/index.es576.js +2 -2
- package/dist/index.es576.js.map +1 -1
- package/dist/index.es578.js +74 -3
- package/dist/index.es578.js.map +1 -1
- package/dist/index.es579.js +2 -2
- package/dist/index.es579.js.map +1 -1
- package/dist/index.es58.js +1 -1
- package/dist/index.es586.js +23 -2
- package/dist/index.es586.js.map +1 -1
- package/dist/index.es587.js +16 -0
- package/dist/index.es587.js.map +1 -0
- package/dist/index.es588.js +31 -0
- package/dist/index.es588.js.map +1 -0
- package/dist/index.es589.js +8 -0
- package/dist/index.es589.js.map +1 -0
- package/dist/index.es59.js +1 -1
- package/dist/index.es594.js +1 -1
- package/dist/index.es6.js +2 -2
- package/dist/index.es60.js +1 -1
- package/dist/index.es61.js +1 -1
- package/dist/index.es62.js +1 -1
- package/dist/index.es64.js +2 -2
- package/dist/index.es66.js +1 -1
- package/dist/index.es67.js +1 -1
- package/dist/index.es68.js +1 -1
- package/dist/index.es69.js +2 -2
- package/dist/index.es7.js +2 -2
- package/dist/index.es71.js +1 -1
- package/dist/index.es73.js +1 -1
- package/dist/index.es74.js +1 -1
- package/dist/index.es75.js +1 -1
- package/dist/index.es77.js +1 -1
- package/dist/index.es78.js +1 -1
- package/dist/index.es79.js +1 -1
- package/dist/index.es8.js +2 -2
- package/dist/index.es9.js +3 -3
- package/dist/index.es99.js +1 -1
- package/package.json +1 -1
- package/dist/index.cjs242.js +0 -2
- package/dist/index.cjs242.js.map +0 -1
- package/dist/index.cjs246.js +0 -2
- package/dist/index.cjs246.js.map +0 -1
- package/dist/index.cjs254.js +0 -7
- package/dist/index.cjs254.js.map +0 -1
- package/dist/index.cjs262.js +0 -2
- package/dist/index.cjs262.js.map +0 -1
- package/dist/index.cjs461.js +0 -2
- package/dist/index.cjs461.js.map +0 -1
- package/dist/index.cjs482.js +0 -2
- package/dist/index.cjs482.js.map +0 -1
- package/dist/index.cjs483.js +0 -2
- package/dist/index.cjs483.js.map +0 -1
- package/dist/index.cjs492.js +0 -2
- package/dist/index.cjs492.js.map +0 -1
- package/dist/index.cjs493.js +0 -2
- package/dist/index.cjs493.js.map +0 -1
- package/dist/index.cjs496.js +0 -2
- package/dist/index.cjs509.js +0 -39
- package/dist/index.cjs509.js.map +0 -1
- package/dist/index.cjs510.js +0 -2
- package/dist/index.cjs510.js.map +0 -1
- package/dist/index.cjs511.js +0 -2
- package/dist/index.cjs511.js.map +0 -1
- package/dist/index.cjs512.js +0 -2
- package/dist/index.cjs512.js.map +0 -1
- package/dist/index.cjs577.js +0 -2
- package/dist/index.cjs577.js.map +0 -1
- package/dist/index.cjs580.js +0 -2
- package/dist/index.cjs580.js.map +0 -1
- package/dist/index.cjs585.js +0 -2
- package/dist/index.cjs585.js.map +0 -1
- package/dist/index.es242.js +0 -18
- package/dist/index.es242.js.map +0 -1
- package/dist/index.es246.js +0 -6
- package/dist/index.es246.js.map +0 -1
- package/dist/index.es254.js +0 -62
- package/dist/index.es254.js.map +0 -1
- package/dist/index.es262.js +0 -192
- package/dist/index.es262.js.map +0 -1
- package/dist/index.es461.js +0 -10
- package/dist/index.es461.js.map +0 -1
- package/dist/index.es482.js +0 -2035
- package/dist/index.es482.js.map +0 -1
- package/dist/index.es483.js +0 -63
- package/dist/index.es483.js.map +0 -1
- package/dist/index.es492.js +0 -7
- package/dist/index.es492.js.map +0 -1
- package/dist/index.es493.js +0 -136
- package/dist/index.es493.js.map +0 -1
- package/dist/index.es496.js +0 -8
- package/dist/index.es509.js +0 -72
- package/dist/index.es509.js.map +0 -1
- package/dist/index.es510.js +0 -12
- package/dist/index.es510.js.map +0 -1
- package/dist/index.es511.js +0 -17
- package/dist/index.es511.js.map +0 -1
- package/dist/index.es512.js +0 -65
- package/dist/index.es512.js.map +0 -1
- package/dist/index.es577.js +0 -7
- package/dist/index.es577.js.map +0 -1
- package/dist/index.es580.js +0 -7
- package/dist/index.es580.js.map +0 -1
- package/dist/index.es585.js +0 -77
- package/dist/index.es585.js.map +0 -1
package/dist/index.es514.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es514.js","sources":["../node_modules/usehooks-ts/dist/index.js"],"sourcesContent":["import { useState, useCallback, useLayoutEffect, useEffect, useRef, useMemo } from 'react';\nimport debounce from 'lodash.debounce';\n\n// src/useBoolean/useBoolean.ts\nfunction useBoolean(defaultValue = false) {\n if (typeof defaultValue !== \"boolean\") {\n throw new Error(\"defaultValue must be `true` or `false`\");\n }\n const [value, setValue] = useState(defaultValue);\n const setTrue = useCallback(() => {\n setValue(true);\n }, []);\n const setFalse = useCallback(() => {\n setValue(false);\n }, []);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return { value, setValue, setTrue, setFalse, toggle };\n}\nvar useIsomorphicLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\n// src/useEventListener/useEventListener.ts\nfunction useEventListener(eventName, handler, element, options) {\n const savedHandler = useRef(handler);\n useIsomorphicLayoutEffect(() => {\n savedHandler.current = handler;\n }, [handler]);\n useEffect(() => {\n const targetElement = (element == null ? void 0 : element.current) ?? window;\n if (!(targetElement && targetElement.addEventListener))\n return;\n const listener = (event) => {\n savedHandler.current(event);\n };\n targetElement.addEventListener(eventName, listener, options);\n return () => {\n targetElement.removeEventListener(eventName, listener, options);\n };\n }, [eventName, element, options]);\n}\n\n// src/useClickAnyWhere/useClickAnyWhere.ts\nfunction useClickAnyWhere(handler) {\n useEventListener(\"click\", (event) => {\n handler(event);\n });\n}\nfunction useCopyToClipboard() {\n const [copiedText, setCopiedText] = useState(null);\n const copy = useCallback(async (text) => {\n if (!(navigator == null ? void 0 : navigator.clipboard)) {\n console.warn(\"Clipboard not supported\");\n return false;\n }\n try {\n await navigator.clipboard.writeText(text);\n setCopiedText(text);\n return true;\n } catch (error) {\n console.warn(\"Copy failed\", error);\n setCopiedText(null);\n return false;\n }\n }, []);\n return [copiedText, copy];\n}\nfunction useCounter(initialValue) {\n const [count, setCount] = useState(initialValue ?? 0);\n const increment = useCallback(() => {\n setCount((x) => x + 1);\n }, []);\n const decrement = useCallback(() => {\n setCount((x) => x - 1);\n }, []);\n const reset = useCallback(() => {\n setCount(initialValue ?? 0);\n }, [initialValue]);\n return {\n count,\n increment,\n decrement,\n reset,\n setCount\n };\n}\nfunction useInterval(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (delay === null) {\n return;\n }\n const id = setInterval(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearInterval(id);\n };\n }, [delay]);\n}\n\n// src/useCountdown/useCountdown.ts\nfunction useCountdown({\n countStart,\n countStop = 0,\n intervalMs = 1e3,\n isIncrement = false\n}) {\n const {\n count,\n increment,\n decrement,\n reset: resetCounter\n } = useCounter(countStart);\n const {\n value: isCountdownRunning,\n setTrue: startCountdown,\n setFalse: stopCountdown\n } = useBoolean(false);\n const resetCountdown = useCallback(() => {\n stopCountdown();\n resetCounter();\n }, [stopCountdown, resetCounter]);\n const countdownCallback = useCallback(() => {\n if (count === countStop) {\n stopCountdown();\n return;\n }\n if (isIncrement) {\n increment();\n } else {\n decrement();\n }\n }, [count, countStop, decrement, increment, isIncrement, stopCountdown]);\n useInterval(countdownCallback, isCountdownRunning ? intervalMs : null);\n return [count, { startCountdown, stopCountdown, resetCountdown }];\n}\nfunction useEventCallback(fn) {\n const ref = useRef(() => {\n throw new Error(\"Cannot call an event handler while rendering.\");\n });\n useIsomorphicLayoutEffect(() => {\n ref.current = fn;\n }, [fn]);\n return useCallback((...args) => {\n var _a;\n return (_a = ref.current) == null ? void 0 : _a.call(ref, ...args);\n }, [ref]);\n}\n\n// src/useLocalStorage/useLocalStorage.ts\nvar IS_SERVER = typeof window === \"undefined\";\nfunction useLocalStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER) {\n return initialValueToUse;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER) {\n console.warn(\n `Tried setting localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.localStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting localStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER) {\n console.warn(\n `Tried removing localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.localStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nvar IS_SERVER2 = typeof window === \"undefined\";\nfunction useMediaQuery(query, {\n defaultValue = false,\n initializeWithValue = true\n} = {}) {\n const getMatches = (query2) => {\n if (IS_SERVER2) {\n return defaultValue;\n }\n return window.matchMedia(query2).matches;\n };\n const [matches, setMatches] = useState(() => {\n if (initializeWithValue) {\n return getMatches(query);\n }\n return defaultValue;\n });\n function handleChange() {\n setMatches(getMatches(query));\n }\n useIsomorphicLayoutEffect(() => {\n const matchMedia = window.matchMedia(query);\n handleChange();\n if (matchMedia.addListener) {\n matchMedia.addListener(handleChange);\n } else {\n matchMedia.addEventListener(\"change\", handleChange);\n }\n return () => {\n if (matchMedia.removeListener) {\n matchMedia.removeListener(handleChange);\n } else {\n matchMedia.removeEventListener(\"change\", handleChange);\n }\n };\n }, [query]);\n return matches;\n}\n\n// src/useDarkMode/useDarkMode.ts\nvar COLOR_SCHEME_QUERY = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY = \"usehooks-ts-dark-mode\";\nfunction useDarkMode(options = {}) {\n const {\n defaultValue,\n localStorageKey = LOCAL_STORAGE_KEY,\n initializeWithValue = true\n } = options;\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY, {\n initializeWithValue,\n defaultValue\n });\n const [isDarkMode, setDarkMode] = useLocalStorage(\n localStorageKey,\n defaultValue ?? isDarkOS ?? false,\n { initializeWithValue }\n );\n useIsomorphicLayoutEffect(() => {\n if (isDarkOS !== isDarkMode) {\n setDarkMode(isDarkOS);\n }\n }, [isDarkOS]);\n return {\n isDarkMode,\n toggle: () => {\n setDarkMode((prev) => !prev);\n },\n enable: () => {\n setDarkMode(true);\n },\n disable: () => {\n setDarkMode(false);\n },\n set: (value) => {\n setDarkMode(value);\n }\n };\n}\nfunction useUnmount(func) {\n const funcRef = useRef(func);\n funcRef.current = func;\n useEffect(\n () => () => {\n funcRef.current();\n },\n []\n );\n}\n\n// src/useDebounceCallback/useDebounceCallback.ts\nfunction useDebounceCallback(func, delay = 500, options) {\n const debouncedFunc = useRef();\n useUnmount(() => {\n if (debouncedFunc.current) {\n debouncedFunc.current.cancel();\n }\n });\n const debounced = useMemo(() => {\n const debouncedFuncInstance = debounce(func, delay, options);\n const wrappedFunc = (...args) => {\n return debouncedFuncInstance(...args);\n };\n wrappedFunc.cancel = () => {\n debouncedFuncInstance.cancel();\n };\n wrappedFunc.isPending = () => {\n return !!debouncedFunc.current;\n };\n wrappedFunc.flush = () => {\n return debouncedFuncInstance.flush();\n };\n return wrappedFunc;\n }, [func, delay, options]);\n useEffect(() => {\n debouncedFunc.current = debounce(func, delay, options);\n }, [func, delay, options]);\n return debounced;\n}\nfunction useDebounceValue(initialValue, delay, options) {\n const eq = (options == null ? void 0 : options.equalityFn) ?? ((left, right) => left === right);\n const unwrappedInitialValue = initialValue instanceof Function ? initialValue() : initialValue;\n const [debouncedValue, setDebouncedValue] = useState(unwrappedInitialValue);\n const previousValueRef = useRef(unwrappedInitialValue);\n const updateDebouncedValue = useDebounceCallback(\n setDebouncedValue,\n delay,\n options\n );\n if (!eq(previousValueRef.current, unwrappedInitialValue)) {\n updateDebouncedValue(unwrappedInitialValue);\n previousValueRef.current = unwrappedInitialValue;\n }\n return [debouncedValue, updateDebouncedValue];\n}\nfunction useDocumentTitle(title, options = {}) {\n const { preserveTitleOnUnmount = true } = options;\n const defaultTitle = useRef(null);\n useIsomorphicLayoutEffect(() => {\n defaultTitle.current = window.document.title;\n }, []);\n useIsomorphicLayoutEffect(() => {\n window.document.title = title;\n }, [title]);\n useUnmount(() => {\n if (!preserveTitleOnUnmount && defaultTitle.current) {\n window.document.title = defaultTitle.current;\n }\n });\n}\nfunction useHover(elementRef) {\n const [value, setValue] = useState(false);\n const handleMouseEnter = () => {\n setValue(true);\n };\n const handleMouseLeave = () => {\n setValue(false);\n };\n useEventListener(\"mouseenter\", handleMouseEnter, elementRef);\n useEventListener(\"mouseleave\", handleMouseLeave, elementRef);\n return value;\n}\nfunction useIntersectionObserver({\n threshold = 0,\n root = null,\n rootMargin = \"0%\",\n freezeOnceVisible = false,\n initialIsIntersecting = false,\n onChange\n} = {}) {\n var _a;\n const [ref, setRef] = useState(null);\n const [state, setState] = useState(() => ({\n isIntersecting: initialIsIntersecting,\n entry: void 0\n }));\n const callbackRef = useRef();\n callbackRef.current = onChange;\n const frozen = ((_a = state.entry) == null ? void 0 : _a.isIntersecting) && freezeOnceVisible;\n useEffect(() => {\n if (!ref)\n return;\n if (!(\"IntersectionObserver\" in window))\n return;\n if (frozen)\n return;\n let unobserve;\n const observer = new IntersectionObserver(\n (entries) => {\n const thresholds = Array.isArray(observer.thresholds) ? observer.thresholds : [observer.thresholds];\n entries.forEach((entry) => {\n const isIntersecting = entry.isIntersecting && thresholds.some((threshold2) => entry.intersectionRatio >= threshold2);\n setState({ isIntersecting, entry });\n if (callbackRef.current) {\n callbackRef.current(isIntersecting, entry);\n }\n if (isIntersecting && freezeOnceVisible && unobserve) {\n unobserve();\n unobserve = void 0;\n }\n });\n },\n { threshold, root, rootMargin }\n );\n observer.observe(ref);\n return () => {\n observer.disconnect();\n };\n }, [\n ref,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n JSON.stringify(threshold),\n root,\n rootMargin,\n frozen,\n freezeOnceVisible\n ]);\n const prevRef = useRef(null);\n useEffect(() => {\n var _a2;\n if (!ref && ((_a2 = state.entry) == null ? void 0 : _a2.target) && !freezeOnceVisible && !frozen && prevRef.current !== state.entry.target) {\n prevRef.current = state.entry.target;\n setState({ isIntersecting: initialIsIntersecting, entry: void 0 });\n }\n }, [ref, state.entry, freezeOnceVisible, frozen, initialIsIntersecting]);\n const result = [\n setRef,\n !!state.isIntersecting,\n state.entry\n ];\n result.ref = result[0];\n result.isIntersecting = result[1];\n result.entry = result[2];\n return result;\n}\nfunction useIsClient() {\n const [isClient, setClient] = useState(false);\n useEffect(() => {\n setClient(true);\n }, []);\n return isClient;\n}\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return useCallback(() => isMounted.current, []);\n}\nfunction useMap(initialState = /* @__PURE__ */ new Map()) {\n const [map, setMap] = useState(new Map(initialState));\n const actions = {\n set: useCallback((key, value) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.set(key, value);\n return copy;\n });\n }, []),\n setAll: useCallback((entries) => {\n setMap(() => new Map(entries));\n }, []),\n remove: useCallback((key) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.delete(key);\n return copy;\n });\n }, []),\n reset: useCallback(() => {\n setMap(() => /* @__PURE__ */ new Map());\n }, [])\n };\n return [map, actions];\n}\n\n// src/useOnClickOutside/useOnClickOutside.ts\nfunction useOnClickOutside(ref, handler, eventType = \"mousedown\", eventListenerOptions = {}) {\n useEventListener(\n eventType,\n (event) => {\n const target = event.target;\n if (!target || !target.isConnected) {\n return;\n }\n const isOutside = Array.isArray(ref) ? ref.filter((r) => Boolean(r.current)).every((r) => r.current && !r.current.contains(target)) : ref.current && !ref.current.contains(target);\n if (isOutside) {\n handler(event);\n }\n },\n void 0,\n eventListenerOptions\n );\n}\nvar IS_SERVER3 = typeof window === \"undefined\";\nfunction useReadLocalStorage(key, options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER3) {\n initializeWithValue = false;\n }\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return null;\n }\n return parsed;\n },\n [options]\n );\n const readValue = useCallback(() => {\n if (IS_SERVER3) {\n return null;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : null;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return null;\n }\n }, [key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return void 0;\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return storedValue;\n}\nvar initialSize = {\n width: void 0,\n height: void 0\n};\nfunction useResizeObserver(options) {\n const { ref, box = \"content-box\" } = options;\n const [{ width, height }, setSize] = useState(initialSize);\n const isMounted = useIsMounted();\n const previousSize = useRef({ ...initialSize });\n const onResize = useRef(void 0);\n onResize.current = options.onResize;\n useEffect(() => {\n if (!ref.current)\n return;\n if (typeof window === \"undefined\" || !(\"ResizeObserver\" in window))\n return;\n const observer = new ResizeObserver(([entry]) => {\n const boxProp = box === \"border-box\" ? \"borderBoxSize\" : box === \"device-pixel-content-box\" ? \"devicePixelContentBoxSize\" : \"contentBoxSize\";\n const newWidth = extractSize(entry, boxProp, \"inlineSize\");\n const newHeight = extractSize(entry, boxProp, \"blockSize\");\n const hasChanged = previousSize.current.width !== newWidth || previousSize.current.height !== newHeight;\n if (hasChanged) {\n const newSize = { width: newWidth, height: newHeight };\n previousSize.current.width = newWidth;\n previousSize.current.height = newHeight;\n if (onResize.current) {\n onResize.current(newSize);\n } else {\n if (isMounted()) {\n setSize(newSize);\n }\n }\n }\n });\n observer.observe(ref.current, { box });\n return () => {\n observer.disconnect();\n };\n }, [box, ref, isMounted]);\n return { width, height };\n}\nfunction extractSize(entry, box, sizeType) {\n if (!entry[box]) {\n if (box === \"contentBoxSize\") {\n return entry.contentRect[sizeType === \"inlineSize\" ? \"width\" : \"height\"];\n }\n return void 0;\n }\n return Array.isArray(entry[box]) ? entry[box][0][sizeType] : (\n // @ts-ignore Support Firefox's non-standard behavior\n entry[box][sizeType]\n );\n}\nvar IS_SERVER4 = typeof window === \"undefined\";\nfunction useScreen(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER4) {\n initializeWithValue = false;\n }\n const readScreen = () => {\n if (IS_SERVER4) {\n return void 0;\n }\n return window.screen;\n };\n const [screen, setScreen] = useState(() => {\n if (initializeWithValue) {\n return readScreen();\n }\n return void 0;\n });\n const debouncedSetScreen = useDebounceCallback(\n setScreen,\n options.debounceDelay\n );\n function handleSize() {\n const newScreen = readScreen();\n const setSize = options.debounceDelay ? debouncedSetScreen : setScreen;\n if (newScreen) {\n const {\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n } = newScreen;\n setSize({\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n });\n }\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return screen;\n}\nvar cachedScriptStatuses = /* @__PURE__ */ new Map();\nfunction getScriptNode(src) {\n const node = document.querySelector(\n `script[src=\"${src}\"]`\n );\n const status = node == null ? void 0 : node.getAttribute(\"data-status\");\n return {\n node,\n status\n };\n}\nfunction useScript(src, options) {\n const [status, setStatus] = useState(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return \"idle\";\n }\n if (typeof window === \"undefined\") {\n return \"loading\";\n }\n return cachedScriptStatuses.get(src) ?? \"loading\";\n });\n useEffect(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return;\n }\n const cachedScriptStatus = cachedScriptStatuses.get(src);\n if (cachedScriptStatus === \"ready\" || cachedScriptStatus === \"error\") {\n setStatus(cachedScriptStatus);\n return;\n }\n const script = getScriptNode(src);\n let scriptNode = script.node;\n if (!scriptNode) {\n scriptNode = document.createElement(\"script\");\n scriptNode.src = src;\n scriptNode.async = true;\n if (options == null ? void 0 : options.id) {\n scriptNode.id = options.id;\n }\n scriptNode.setAttribute(\"data-status\", \"loading\");\n document.body.appendChild(scriptNode);\n const setAttributeFromEvent = (event) => {\n const scriptStatus = event.type === \"load\" ? \"ready\" : \"error\";\n scriptNode == null ? void 0 : scriptNode.setAttribute(\"data-status\", scriptStatus);\n };\n scriptNode.addEventListener(\"load\", setAttributeFromEvent);\n scriptNode.addEventListener(\"error\", setAttributeFromEvent);\n } else {\n setStatus(script.status ?? cachedScriptStatus ?? \"loading\");\n }\n const setStateFromEvent = (event) => {\n const newStatus = event.type === \"load\" ? \"ready\" : \"error\";\n setStatus(newStatus);\n cachedScriptStatuses.set(src, newStatus);\n };\n scriptNode.addEventListener(\"load\", setStateFromEvent);\n scriptNode.addEventListener(\"error\", setStateFromEvent);\n return () => {\n if (scriptNode) {\n scriptNode.removeEventListener(\"load\", setStateFromEvent);\n scriptNode.removeEventListener(\"error\", setStateFromEvent);\n }\n if (scriptNode && (options == null ? void 0 : options.removeOnUnmount)) {\n scriptNode.remove();\n cachedScriptStatuses.delete(src);\n }\n };\n }, [src, options == null ? void 0 : options.shouldPreventLoad, options == null ? void 0 : options.removeOnUnmount, options == null ? void 0 : options.id]);\n return status;\n}\nvar IS_SERVER5 = typeof window === \"undefined\";\nfunction useScrollLock(options = {}) {\n const { autoLock = true, lockTarget, widthReflow = true } = options;\n const [isLocked, setIsLocked] = useState(false);\n const target = useRef(null);\n const originalStyle = useRef(null);\n const lock = () => {\n if (target.current) {\n const { overflow, paddingRight } = target.current.style;\n originalStyle.current = { overflow, paddingRight };\n if (widthReflow) {\n const offsetWidth = target.current === document.body ? window.innerWidth : target.current.offsetWidth;\n const currentPaddingRight = parseInt(window.getComputedStyle(target.current).paddingRight, 10) || 0;\n const scrollbarWidth = offsetWidth - target.current.scrollWidth;\n target.current.style.paddingRight = `${scrollbarWidth + currentPaddingRight}px`;\n }\n target.current.style.overflow = \"hidden\";\n setIsLocked(true);\n }\n };\n const unlock = () => {\n if (target.current && originalStyle.current) {\n target.current.style.overflow = originalStyle.current.overflow;\n if (widthReflow) {\n target.current.style.paddingRight = originalStyle.current.paddingRight;\n }\n }\n setIsLocked(false);\n };\n useIsomorphicLayoutEffect(() => {\n if (IS_SERVER5)\n return;\n if (lockTarget) {\n target.current = typeof lockTarget === \"string\" ? document.querySelector(lockTarget) : lockTarget;\n }\n if (!target.current) {\n target.current = document.body;\n }\n if (autoLock) {\n lock();\n }\n return () => {\n unlock();\n };\n }, [autoLock, lockTarget, widthReflow]);\n return { isLocked, lock, unlock };\n}\nvar IS_SERVER6 = typeof window === \"undefined\";\nfunction useSessionStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER6) {\n return initialValueToUse;\n }\n try {\n const raw = window.sessionStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading sessionStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER6) {\n console.warn(\n `Tried setting sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.sessionStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting sessionStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER6) {\n console.warn(\n `Tried removing sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.sessionStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"session-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nfunction useStep(maxStep) {\n const [currentStep, setCurrentStep] = useState(1);\n const canGoToNextStep = currentStep + 1 <= maxStep;\n const canGoToPrevStep = currentStep - 1 > 0;\n const setStep = useCallback(\n (step) => {\n const newStep = step instanceof Function ? step(currentStep) : step;\n if (newStep >= 1 && newStep <= maxStep) {\n setCurrentStep(newStep);\n return;\n }\n throw new Error(\"Step not valid\");\n },\n [maxStep, currentStep]\n );\n const goToNextStep = useCallback(() => {\n if (canGoToNextStep) {\n setCurrentStep((step) => step + 1);\n }\n }, [canGoToNextStep]);\n const goToPrevStep = useCallback(() => {\n if (canGoToPrevStep) {\n setCurrentStep((step) => step - 1);\n }\n }, [canGoToPrevStep]);\n const reset = useCallback(() => {\n setCurrentStep(1);\n }, []);\n return [\n currentStep,\n {\n goToNextStep,\n goToPrevStep,\n canGoToNextStep,\n canGoToPrevStep,\n setStep,\n reset\n }\n ];\n}\n\n// src/useTernaryDarkMode/useTernaryDarkMode.ts\nvar COLOR_SCHEME_QUERY2 = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY2 = \"usehooks-ts-ternary-dark-mode\";\nfunction useTernaryDarkMode({\n defaultValue = \"system\",\n localStorageKey = LOCAL_STORAGE_KEY2,\n initializeWithValue = true\n} = {}) {\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY2, { initializeWithValue });\n const [mode, setMode] = useLocalStorage(localStorageKey, defaultValue, {\n initializeWithValue\n });\n const isDarkMode = mode === \"dark\" || mode === \"system\" && isDarkOS;\n const toggleTernaryDarkMode = () => {\n const modes = [\"light\", \"system\", \"dark\"];\n setMode((prevMode) => {\n const nextIndex = (modes.indexOf(prevMode) + 1) % modes.length;\n return modes[nextIndex];\n });\n };\n return {\n isDarkMode,\n ternaryDarkMode: mode,\n setTernaryDarkMode: setMode,\n toggleTernaryDarkMode\n };\n}\nfunction useTimeout(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (!delay && delay !== 0) {\n return;\n }\n const id = setTimeout(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearTimeout(id);\n };\n }, [delay]);\n}\nfunction useToggle(defaultValue) {\n const [value, setValue] = useState(!!defaultValue);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return [value, toggle, setValue];\n}\nvar IS_SERVER7 = typeof window === \"undefined\";\nfunction useWindowSize(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER7) {\n initializeWithValue = false;\n }\n const [windowSize, setWindowSize] = useState(() => {\n if (initializeWithValue) {\n return {\n width: window.innerWidth,\n height: window.innerHeight\n };\n }\n return {\n width: void 0,\n height: void 0\n };\n });\n const debouncedSetWindowSize = useDebounceCallback(\n setWindowSize,\n options.debounceDelay\n );\n function handleSize() {\n const setSize = options.debounceDelay ? debouncedSetWindowSize : setWindowSize;\n setSize({\n width: window.innerWidth,\n height: window.innerHeight\n });\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return windowSize;\n}\n\nexport { useBoolean, useClickAnyWhere, useCopyToClipboard, useCountdown, useCounter, useDarkMode, useDebounceCallback, useDebounceValue, useDocumentTitle, useEventCallback, useEventListener, useHover, useIntersectionObserver, useInterval, useIsClient, useIsMounted, useIsomorphicLayoutEffect, useLocalStorage, useMap, useMediaQuery, useOnClickOutside, useReadLocalStorage, useResizeObserver, useScreen, useScript, useScrollLock, useSessionStorage, useStep, useTernaryDarkMode, useTimeout, useToggle, useUnmount, useWindowSize };\n"],"names":["useCopyToClipboard","copiedText","setCopiedText","useState","copy","useCallback","text","error"],"mappings":";;AAgDA,SAASA,IAAqB;AAC5B,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAS,IAAI,GAC3CC,IAAOC,EAAY,OAAOC,MAAS;AACvC,QAAI,EAAE,aAAa,QAAgB,UAAU;AAC3C,qBAAQ,KAAK,yBAAyB,GAC/B;AAET,QAAI;AACF,mBAAM,UAAU,UAAU,UAAUA,CAAI,GACxCJ,EAAcI,CAAI,GACX;AAAA,IACR,SAAQC,GAAO;AACd,qBAAQ,KAAK,eAAeA,CAAK,GACjCL,EAAc,IAAI,GACX;AAAA,IACb;AAAA,EACG,GAAE,EAAE;AACL,SAAO,CAACD,GAAYG,CAAI;AAC1B;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.es514.js","sources":["../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, offset as offset$1, shift as shift$1, limitShift as limitShift$1, flip as flip$1, size as size$1, autoPlacement as autoPlacement$1, hide as hide$1, inline as inline$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect, useEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => ({\n ...offset$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => ({\n ...shift$1(options),\n options: [options, deps]\n});\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => ({\n ...limitShift$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => ({\n ...flip$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => ({\n ...size$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => ({\n ...autoPlacement$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => ({\n ...hide$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => ({\n ...inline$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => ({\n ...arrow$1(options),\n options: [options, deps]\n});\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["index","useLayoutEffect","useEffect","deepEqual","a","b","length","i","keys","key","getDPR","element","roundByDPR","value","dpr","useLatestRef","ref","React","useFloating","options","placement","strategy","middleware","platform","externalReference","externalFloating","transform","whileElementsMounted","open","data","setData","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","update","config","computePosition","fullData","isMountedRef","ReactDOM","refs","elements","floatingStyles","initialStyles","x","y","arrow$1","isRef","state","padding","arrow$2","offset","deps","offset$1","shift","shift$1","limitShift","limitShift$1","flip","flip$1","size","size$1","hide","hide$1","arrow"],"mappings":";;;;;AAMA,IAAIA,IAAQ,OAAO,WAAa,MAAcC,IAAkBC;AAIhE,SAASC,EAAUC,GAAGC,GAAG;AACvB,MAAID,MAAMC;AACR,WAAO;AAET,MAAI,OAAOD,KAAM,OAAOC;AACtB,WAAO;AAET,MAAI,OAAOD,KAAM,cAAcA,EAAE,eAAeC,EAAE;AAChD,WAAO;AAET,MAAIC,GACAC,GACAC;AACJ,MAAIJ,KAAKC,KAAK,OAAOD,KAAM,UAAU;AACnC,QAAI,MAAM,QAAQA,CAAC,GAAG;AAEpB,UADAE,IAASF,EAAE,QACPE,MAAWD,EAAE,OAAQ,QAAO;AAChC,WAAKE,IAAID,GAAQC,QAAQ;AACvB,YAAI,CAACJ,EAAUC,EAAEG,CAAC,GAAGF,EAAEE,CAAC,CAAC;AACvB,iBAAO;AAGX,aAAO;AAAA,IACb;AAGI,QAFAC,IAAO,OAAO,KAAKJ,CAAC,GACpBE,IAASE,EAAK,QACVF,MAAW,OAAO,KAAKD,CAAC,EAAE;AAC5B,aAAO;AAET,SAAKE,IAAID,GAAQC,QAAQ;AACvB,UAAI,CAAC,CAAE,EAAC,eAAe,KAAKF,GAAGG,EAAKD,CAAC,CAAC;AACpC,eAAO;AAGX,SAAKA,IAAID,GAAQC,QAAQ,KAAI;AAC3B,YAAME,IAAMD,EAAKD,CAAC;AAClB,UAAI,EAAAE,MAAQ,YAAYL,EAAE,aAGtB,CAACD,EAAUC,EAAEK,CAAG,GAAGJ,EAAEI,CAAG,CAAC;AAC3B,eAAO;AAAA,IAEf;AACI,WAAO;AAAA,EACX;AACE,SAAOL,MAAMA,KAAKC,MAAMA;AAC1B;AAEA,SAASK,EAAOC,GAAS;AACvB,SAAI,OAAO,SAAW,MACb,KAEGA,EAAQ,cAAc,eAAe,QACtC,oBAAoB;AACjC;AAEA,SAASC,EAAWD,GAASE,GAAO;AAClC,QAAMC,IAAMJ,EAAOC,CAAO;AAC1B,SAAO,KAAK,MAAME,IAAQC,CAAG,IAAIA;AACnC;AAEA,SAASC,EAAaF,GAAO;AAC3B,QAAMG,IAAMC,EAAM,OAAOJ,CAAK;AAC9B,SAAAb,EAAM,MAAM;AACV,IAAAgB,EAAI,UAAUH;AAAA,EAClB,CAAG,GACMG;AACT;AAMA,SAASE,GAAYC,GAAS;AAC5B,EAAIA,MAAY,WACdA,IAAU,CAAE;AAEd,QAAM;AAAA,IACJ,WAAAC,IAAY;AAAA,IACZ,UAAAC,IAAW;AAAA,IACX,YAAAC,IAAa,CAAE;AAAA,IACf,UAAAC;AAAA,IACA,UAAU;AAAA,MACR,WAAWC;AAAA,MACX,UAAUC;AAAA,IAChB,IAAQ,CAAE;AAAA,IACN,WAAAC,IAAY;AAAA,IACZ,sBAAAC;AAAA,IACA,MAAAC;AAAA,EACJ,IAAMT,GACE,CAACU,GAAMC,CAAO,IAAIb,EAAM,SAAS;AAAA,IACrC,GAAG;AAAA,IACH,GAAG;AAAA,IACH,UAAAI;AAAA,IACA,WAAAD;AAAA,IACA,gBAAgB,CAAE;AAAA,IAClB,cAAc;AAAA,EAClB,CAAG,GACK,CAACW,GAAkBC,CAAmB,IAAIf,EAAM,SAASK,CAAU;AACzE,EAAKnB,EAAU4B,GAAkBT,CAAU,KACzCU,EAAoBV,CAAU;AAEhC,QAAM,CAACW,GAAYC,CAAa,IAAIjB,EAAM,SAAS,IAAI,GACjD,CAACkB,GAAWC,CAAY,IAAInB,EAAM,SAAS,IAAI,GAC/CoB,IAAepB,EAAM,YAAY,CAAAqB,MAAQ;AAC7C,IAAIA,MAASC,EAAa,YACxBA,EAAa,UAAUD,GACvBJ,EAAcI,CAAI;AAAA,EAErB,GAAE,EAAE,GACCE,IAAcvB,EAAM,YAAY,CAAAqB,MAAQ;AAC5C,IAAIA,MAASG,EAAY,YACvBA,EAAY,UAAUH,GACtBF,EAAaE,CAAI;AAAA,EAEpB,GAAE,EAAE,GACCI,IAAclB,KAAqBS,GACnCU,IAAalB,KAAoBU,GACjCI,IAAetB,EAAM,OAAO,IAAI,GAChCwB,IAAcxB,EAAM,OAAO,IAAI,GAC/B2B,IAAU3B,EAAM,OAAOY,CAAI,GAC3BgB,IAA0BlB,KAAwB,MAClDmB,IAA0B/B,EAAaY,CAAoB,GAC3DoB,IAAchC,EAAaQ,CAAQ,GACnCyB,IAAUjC,EAAaa,CAAI,GAC3BqB,IAAShC,EAAM,YAAY,MAAM;AACrC,QAAI,CAACsB,EAAa,WAAW,CAACE,EAAY;AACxC;AAEF,UAAMS,IAAS;AAAA,MACb,WAAA9B;AAAA,MACA,UAAAC;AAAA,MACA,YAAYU;AAAA,IACb;AACD,IAAIgB,EAAY,YACdG,EAAO,WAAWH,EAAY,UAEhCI,EAAgBZ,EAAa,SAASE,EAAY,SAASS,CAAM,EAAE,KAAK,CAAArB,MAAQ;AAC9E,YAAMuB,IAAW;AAAA,QACf,GAAGvB;AAAA;AAAA;AAAA;AAAA;AAAA,QAKH,cAAcmB,EAAQ,YAAY;AAAA,MACnC;AACD,MAAIK,EAAa,WAAW,CAAClD,EAAUyC,EAAQ,SAASQ,CAAQ,MAC9DR,EAAQ,UAAUQ,GAClBE,EAAS,UAAU,MAAM;AACvB,QAAAxB,EAAQsB,CAAQ;AAAA,MAC1B,CAAS;AAAA,IAET,CAAK;AAAA,EACL,GAAK,CAACrB,GAAkBX,GAAWC,GAAU0B,GAAaC,CAAO,CAAC;AAChE,EAAAhD,EAAM,MAAM;AACV,IAAI4B,MAAS,MAASgB,EAAQ,QAAQ,iBACpCA,EAAQ,QAAQ,eAAe,IAC/Bd,EAAQ,CAAAD,OAAS;AAAA,MACf,GAAGA;AAAA,MACH,cAAc;AAAA,IACtB,EAAQ;AAAA,EAER,GAAK,CAACD,CAAI,CAAC;AACT,QAAMyB,IAAepC,EAAM,OAAO,EAAK;AACvC,EAAAjB,EAAM,OACJqD,EAAa,UAAU,IAChB,MAAM;AACX,IAAAA,EAAa,UAAU;AAAA,EACxB,IACA,EAAE,GACLrD,EAAM,MAAM;AAGV,QAFI0C,MAAaH,EAAa,UAAUG,IACpCC,MAAYF,EAAY,UAAUE,IAClCD,KAAeC,GAAY;AAC7B,UAAIG,EAAwB;AAC1B,eAAOA,EAAwB,QAAQJ,GAAaC,GAAYM,CAAM;AAExE,MAAAA,EAAQ;AAAA,IACd;AAAA,EACA,GAAK,CAACP,GAAaC,GAAYM,GAAQH,GAAyBD,CAAuB,CAAC;AACtF,QAAMU,IAAOtC,EAAM,QAAQ,OAAO;AAAA,IAChC,WAAWsB;AAAA,IACX,UAAUE;AAAA,IACV,cAAAJ;AAAA,IACA,aAAAG;AAAA,EACJ,IAAM,CAACH,GAAcG,CAAW,CAAC,GACzBgB,IAAWvC,EAAM,QAAQ,OAAO;AAAA,IACpC,WAAWyB;AAAA,IACX,UAAUC;AAAA,EACd,IAAM,CAACD,GAAaC,CAAU,CAAC,GACvBc,IAAiBxC,EAAM,QAAQ,MAAM;AACzC,UAAMyC,IAAgB;AAAA,MACpB,UAAUrC;AAAA,MACV,MAAM;AAAA,MACN,KAAK;AAAA,IACN;AACD,QAAI,CAACmC,EAAS;AACZ,aAAOE;AAET,UAAMC,IAAI/C,EAAW4C,EAAS,UAAU3B,EAAK,CAAC,GACxC+B,IAAIhD,EAAW4C,EAAS,UAAU3B,EAAK,CAAC;AAC9C,WAAIH,IACK;AAAA,MACL,GAAGgC;AAAA,MACH,WAAW,eAAeC,IAAI,SAASC,IAAI;AAAA,MAC3C,GAAIlD,EAAO8C,EAAS,QAAQ,KAAK,OAAO;AAAA,QACtC,YAAY;AAAA,MACb;AAAA,IACF,IAEI;AAAA,MACL,UAAUnC;AAAA,MACV,MAAMsC;AAAA,MACN,KAAKC;AAAA,IACN;AAAA,EACL,GAAK,CAACvC,GAAUK,GAAW8B,EAAS,UAAU3B,EAAK,GAAGA,EAAK,CAAC,CAAC;AAC3D,SAAOZ,EAAM,QAAQ,OAAO;AAAA,IAC1B,GAAGY;AAAA,IACH,QAAAoB;AAAA,IACA,MAAAM;AAAA,IACA,UAAAC;AAAA,IACA,gBAAAC;AAAA,EACJ,IAAM,CAAC5B,GAAMoB,GAAQM,GAAMC,GAAUC,CAAc,CAAC;AACpD;AAQA,MAAMI,KAAU,CAAA1C,MAAW;AACzB,WAAS2C,EAAMjD,GAAO;AACpB,WAAO,CAAE,EAAC,eAAe,KAAKA,GAAO,SAAS;AAAA,EAClD;AACE,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAAM;AAAA,IACA,GAAG4C,GAAO;AACR,YAAM;AAAA,QACJ,SAAApD;AAAA,QACA,SAAAqD;AAAA,MACD,IAAG,OAAO7C,KAAY,aAAaA,EAAQ4C,CAAK,IAAI5C;AACrD,aAAIR,KAAWmD,EAAMnD,CAAO,IACtBA,EAAQ,WAAW,OACdsD,EAAQ;AAAA,QACb,SAAStD,EAAQ;AAAA,QACjB,SAAAqD;AAAA,MACZ,CAAW,EAAE,GAAGD,CAAK,IAEN,CAAE,IAEPpD,IACKsD,EAAQ;AAAA,QACb,SAAAtD;AAAA,QACA,SAAAqD;AAAA,MACV,CAAS,EAAE,GAAGD,CAAK,IAEN,CAAE;AAAA,IACf;AAAA,EACG;AACH,GASMG,KAAS,CAAC/C,GAASgD,OAAU;AAAA,EACjC,GAAGC,EAASjD,CAAO;AAAA,EACnB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAOME,KAAQ,CAAClD,GAASgD,OAAU;AAAA,EAChC,GAAGG,EAAQnD,CAAO;AAAA,EAClB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAKMI,KAAa,CAACpD,GAASgD,OAAU;AAAA,EACrC,GAAGK,EAAarD,CAAO;AAAA,EACvB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAQMM,KAAO,CAACtD,GAASgD,OAAU;AAAA,EAC/B,GAAGO,EAAOvD,CAAO;AAAA,EACjB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAQMQ,KAAO,CAACxD,GAASgD,OAAU;AAAA,EAC/B,GAAGS,EAAOzD,CAAO;AAAA,EACjB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAkBMU,KAAO,CAAC1D,GAASgD,OAAU;AAAA,EAC/B,GAAGW,EAAO3D,CAAO;AAAA,EACjB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAkBMY,KAAQ,CAAC5D,GAASgD,OAAU;AAAA,EAChC,GAAGN,GAAQ1C,CAAO;AAAA,EAClB,SAAS,CAACA,GAASgD,CAAI;AACzB;","x_google_ignoreList":[0]}
|
package/dist/index.es515.js
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import { Primitive as p } from "./index.es466.js";
|
|
3
|
+
import { j as o } from "./index.es241.js";
|
|
4
|
+
var v = "Arrow", e = n.forwardRef((r, i) => {
|
|
5
|
+
const { children: t, width: s = 10, height: a = 5, ...m } = r;
|
|
6
|
+
return /* @__PURE__ */ o.jsx(
|
|
7
|
+
p.svg,
|
|
8
|
+
{
|
|
9
|
+
...m,
|
|
10
|
+
ref: i,
|
|
11
|
+
width: s,
|
|
12
|
+
height: a,
|
|
13
|
+
viewBox: "0 0 30 10",
|
|
14
|
+
preserveAspectRatio: "none",
|
|
15
|
+
children: r.asChild ? t : /* @__PURE__ */ o.jsx("polygon", { points: "0,0 30,0 15,10" })
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
});
|
|
19
|
+
e.displayName = v;
|
|
20
|
+
var h = e;
|
|
4
21
|
export {
|
|
5
|
-
|
|
22
|
+
e as Arrow,
|
|
23
|
+
h as Root
|
|
6
24
|
};
|
|
7
25
|
//# sourceMappingURL=index.es515.js.map
|
package/dist/index.es515.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es515.js","sources":["../node_modules/
|
|
1
|
+
{"version":3,"file":"index.es515.js","sources":["../node_modules/@radix-ui/react-arrow/dist/index.mjs"],"sourcesContent":["// packages/react/arrow/src/arrow.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Arrow\";\nvar Arrow = React.forwardRef((props, forwardedRef) => {\n const { children, width = 10, height = 5, ...arrowProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.svg,\n {\n ...arrowProps,\n ref: forwardedRef,\n width,\n height,\n viewBox: \"0 0 30 10\",\n preserveAspectRatio: \"none\",\n children: props.asChild ? children : /* @__PURE__ */ jsx(\"polygon\", { points: \"0,0 30,0 15,10\" })\n }\n );\n});\nArrow.displayName = NAME;\nvar Root = Arrow;\nexport {\n Arrow,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NAME","Arrow","React","props","forwardedRef","children","width","height","arrowProps","jsx","Primitive","Root"],"mappings":";;;AAIA,IAAIA,IAAO,SACPC,IAAQC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACpD,QAAM,EAAE,UAAAC,GAAU,OAAAC,IAAQ,IAAI,QAAAC,IAAS,GAAG,GAAGC,EAAU,IAAKL;AAC5D,SAAuBM,gBAAAA,EAAG;AAAA,IACxBC,EAAU;AAAA,IACV;AAAA,MACE,GAAGF;AAAA,MACH,KAAKJ;AAAA,MACL,OAAAE;AAAA,MACA,QAAAC;AAAA,MACA,SAAS;AAAA,MACT,qBAAqB;AAAA,MACrB,UAAUJ,EAAM,UAAUE,IAA2BI,gBAAAA,EAAG,IAAC,WAAW,EAAE,QAAQ,iBAAkB,CAAA;AAAA,IACtG;AAAA,EACG;AACH,CAAC;AACDR,EAAM,cAAcD;AACjB,IAACW,IAAOV;","x_google_ignoreList":[0]}
|
package/dist/index.es516.js
CHANGED
|
@@ -1,26 +1,396 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { offset as ot, shift as st, flip as rt, size as ct, hide as lt, limitShift as ft, computePosition as ut, arrow as ht } from "./index.es525.js";
|
|
2
|
+
import { createCoords as m, round as A, max as E, min as V, rectToClientRect as J, floor as D } from "./index.es526.js";
|
|
3
|
+
import { isElement as v, getDocumentElement as O, getOverflowAncestors as $, getComputedStyle as R, isHTMLElement as b, getWindow as L, isTopLayer as S, getParentNode as W, isLastTraversableNode as H, isTableElement as at, isContainingBlock as Q, getContainingBlock as dt, getNodeName as M, isOverflowElement as _, getNodeScroll as N, getFrameElement as K, isWebKit as Y } from "./index.es527.js";
|
|
4
|
+
function Z(t) {
|
|
5
|
+
const e = R(t);
|
|
6
|
+
let i = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
7
|
+
const o = b(t), r = o ? t.offsetWidth : i, s = o ? t.offsetHeight : n, c = A(i) !== r || A(n) !== s;
|
|
8
|
+
return c && (i = r, n = s), {
|
|
9
|
+
width: i,
|
|
10
|
+
height: n,
|
|
11
|
+
$: c
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function q(t) {
|
|
15
|
+
return v(t) ? t : t.contextElement;
|
|
16
|
+
}
|
|
17
|
+
function F(t) {
|
|
18
|
+
const e = q(t);
|
|
19
|
+
if (!b(e))
|
|
20
|
+
return m(1);
|
|
21
|
+
const i = e.getBoundingClientRect(), {
|
|
22
|
+
width: n,
|
|
23
|
+
height: o,
|
|
24
|
+
$: r
|
|
25
|
+
} = Z(e);
|
|
26
|
+
let s = (r ? A(i.width) : i.width) / n, c = (r ? A(i.height) : i.height) / o;
|
|
27
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
28
|
+
x: s,
|
|
29
|
+
y: c
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const gt = /* @__PURE__ */ m(0);
|
|
33
|
+
function X(t) {
|
|
34
|
+
const e = L(t);
|
|
35
|
+
return !Y() || !e.visualViewport ? gt : {
|
|
36
|
+
x: e.visualViewport.offsetLeft,
|
|
37
|
+
y: e.visualViewport.offsetTop
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function pt(t, e, i) {
|
|
41
|
+
return e === void 0 && (e = !1), !i || e && i !== L(t) ? !1 : e;
|
|
42
|
+
}
|
|
43
|
+
function T(t, e, i, n) {
|
|
44
|
+
e === void 0 && (e = !1), i === void 0 && (i = !1);
|
|
45
|
+
const o = t.getBoundingClientRect(), r = q(t);
|
|
46
|
+
let s = m(1);
|
|
47
|
+
e && (n ? v(n) && (s = F(n)) : s = F(t));
|
|
48
|
+
const c = pt(r, i, n) ? X(r) : m(0);
|
|
49
|
+
let l = (o.left + c.x) / s.x, f = (o.top + c.y) / s.y, u = o.width / s.x, h = o.height / s.y;
|
|
50
|
+
if (r) {
|
|
51
|
+
const p = L(r), a = n && v(n) ? L(n) : n;
|
|
52
|
+
let y = p, g = K(y);
|
|
53
|
+
for (; g && n && a !== y; ) {
|
|
54
|
+
const w = F(g), d = g.getBoundingClientRect(), x = R(g), C = d.left + (g.clientLeft + parseFloat(x.paddingLeft)) * w.x, B = d.top + (g.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
55
|
+
l *= w.x, f *= w.y, u *= w.x, h *= w.y, l += C, f += B, y = L(g), g = K(y);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return J({
|
|
59
|
+
width: u,
|
|
60
|
+
height: h,
|
|
61
|
+
x: l,
|
|
62
|
+
y: f
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function k(t, e) {
|
|
66
|
+
const i = N(t).scrollLeft;
|
|
67
|
+
return e ? e.left + i : T(O(t)).left + i;
|
|
68
|
+
}
|
|
69
|
+
function tt(t, e, i) {
|
|
70
|
+
i === void 0 && (i = !1);
|
|
71
|
+
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - (i ? 0 : (
|
|
72
|
+
// RTL <body> scrollbar.
|
|
73
|
+
k(t, n)
|
|
74
|
+
)), r = n.top + e.scrollTop;
|
|
75
|
+
return {
|
|
76
|
+
x: o,
|
|
77
|
+
y: r
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function wt(t) {
|
|
81
|
+
let {
|
|
82
|
+
elements: e,
|
|
83
|
+
rect: i,
|
|
84
|
+
offsetParent: n,
|
|
85
|
+
strategy: o
|
|
86
|
+
} = t;
|
|
87
|
+
const r = o === "fixed", s = O(n), c = e ? S(e.floating) : !1;
|
|
88
|
+
if (n === s || c && r)
|
|
89
|
+
return i;
|
|
90
|
+
let l = {
|
|
91
|
+
scrollLeft: 0,
|
|
92
|
+
scrollTop: 0
|
|
93
|
+
}, f = m(1);
|
|
94
|
+
const u = m(0), h = b(n);
|
|
95
|
+
if ((h || !h && !r) && ((M(n) !== "body" || _(s)) && (l = N(n)), b(n))) {
|
|
96
|
+
const a = T(n);
|
|
97
|
+
f = F(n), u.x = a.x + n.clientLeft, u.y = a.y + n.clientTop;
|
|
98
|
+
}
|
|
99
|
+
const p = s && !h && !r ? tt(s, l, !0) : m(0);
|
|
100
|
+
return {
|
|
101
|
+
width: i.width * f.x,
|
|
102
|
+
height: i.height * f.y,
|
|
103
|
+
x: i.x * f.x - l.scrollLeft * f.x + u.x + p.x,
|
|
104
|
+
y: i.y * f.y - l.scrollTop * f.y + u.y + p.y
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function mt(t) {
|
|
108
|
+
return Array.from(t.getClientRects());
|
|
109
|
+
}
|
|
110
|
+
function yt(t) {
|
|
111
|
+
const e = O(t), i = N(t), n = t.ownerDocument.body, o = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
112
|
+
let s = -i.scrollLeft + k(t);
|
|
113
|
+
const c = -i.scrollTop;
|
|
114
|
+
return R(n).direction === "rtl" && (s += E(e.clientWidth, n.clientWidth) - o), {
|
|
115
|
+
width: o,
|
|
116
|
+
height: r,
|
|
117
|
+
x: s,
|
|
118
|
+
y: c
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
function xt(t, e) {
|
|
122
|
+
const i = L(t), n = O(t), o = i.visualViewport;
|
|
123
|
+
let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
|
|
124
|
+
if (o) {
|
|
125
|
+
r = o.width, s = o.height;
|
|
126
|
+
const f = Y();
|
|
127
|
+
(!f || f && e === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
width: r,
|
|
131
|
+
height: s,
|
|
132
|
+
x: c,
|
|
133
|
+
y: l
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
function vt(t, e) {
|
|
137
|
+
const i = T(t, !0, e === "fixed"), n = i.top + t.clientTop, o = i.left + t.clientLeft, r = b(t) ? F(t) : m(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = o * r.x, f = n * r.y;
|
|
138
|
+
return {
|
|
139
|
+
width: s,
|
|
140
|
+
height: c,
|
|
141
|
+
x: l,
|
|
142
|
+
y: f
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function j(t, e, i) {
|
|
146
|
+
let n;
|
|
147
|
+
if (e === "viewport")
|
|
148
|
+
n = xt(t, i);
|
|
149
|
+
else if (e === "document")
|
|
150
|
+
n = yt(O(t));
|
|
151
|
+
else if (v(e))
|
|
152
|
+
n = vt(e, i);
|
|
153
|
+
else {
|
|
154
|
+
const o = X(t);
|
|
155
|
+
n = {
|
|
156
|
+
x: e.x - o.x,
|
|
157
|
+
y: e.y - o.y,
|
|
158
|
+
width: e.width,
|
|
159
|
+
height: e.height
|
|
19
160
|
};
|
|
20
|
-
}
|
|
21
|
-
return
|
|
161
|
+
}
|
|
162
|
+
return J(n);
|
|
163
|
+
}
|
|
164
|
+
function et(t, e) {
|
|
165
|
+
const i = W(t);
|
|
166
|
+
return i === e || !v(i) || H(i) ? !1 : R(i).position === "fixed" || et(i, e);
|
|
167
|
+
}
|
|
168
|
+
function Rt(t, e) {
|
|
169
|
+
const i = e.get(t);
|
|
170
|
+
if (i)
|
|
171
|
+
return i;
|
|
172
|
+
let n = $(t, [], !1).filter((c) => v(c) && M(c) !== "body"), o = null;
|
|
173
|
+
const r = R(t).position === "fixed";
|
|
174
|
+
let s = r ? W(t) : t;
|
|
175
|
+
for (; v(s) && !H(s); ) {
|
|
176
|
+
const c = R(s), l = Q(s);
|
|
177
|
+
!l && c.position === "fixed" && (o = null), (r ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _(s) && !l && et(t, s)) ? n = n.filter((u) => u !== s) : o = c, s = W(s);
|
|
178
|
+
}
|
|
179
|
+
return e.set(t, n), n;
|
|
22
180
|
}
|
|
181
|
+
function Ot(t) {
|
|
182
|
+
let {
|
|
183
|
+
element: e,
|
|
184
|
+
boundary: i,
|
|
185
|
+
rootBoundary: n,
|
|
186
|
+
strategy: o
|
|
187
|
+
} = t;
|
|
188
|
+
const s = [...i === "clippingAncestors" ? S(e) ? [] : Rt(e, this._c) : [].concat(i), n], c = s[0], l = s.reduce((f, u) => {
|
|
189
|
+
const h = j(e, u, o);
|
|
190
|
+
return f.top = E(h.top, f.top), f.right = V(h.right, f.right), f.bottom = V(h.bottom, f.bottom), f.left = E(h.left, f.left), f;
|
|
191
|
+
}, j(e, c, o));
|
|
192
|
+
return {
|
|
193
|
+
width: l.right - l.left,
|
|
194
|
+
height: l.bottom - l.top,
|
|
195
|
+
x: l.left,
|
|
196
|
+
y: l.top
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
function bt(t) {
|
|
200
|
+
const {
|
|
201
|
+
width: e,
|
|
202
|
+
height: i
|
|
203
|
+
} = Z(t);
|
|
204
|
+
return {
|
|
205
|
+
width: e,
|
|
206
|
+
height: i
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
function Ct(t, e, i) {
|
|
210
|
+
const n = b(e), o = O(e), r = i === "fixed", s = T(t, !0, r, e);
|
|
211
|
+
let c = {
|
|
212
|
+
scrollLeft: 0,
|
|
213
|
+
scrollTop: 0
|
|
214
|
+
};
|
|
215
|
+
const l = m(0);
|
|
216
|
+
if (n || !n && !r)
|
|
217
|
+
if ((M(e) !== "body" || _(o)) && (c = N(e)), n) {
|
|
218
|
+
const p = T(e, !0, r, e);
|
|
219
|
+
l.x = p.x + e.clientLeft, l.y = p.y + e.clientTop;
|
|
220
|
+
} else o && (l.x = k(o));
|
|
221
|
+
const f = o && !n && !r ? tt(o, c) : m(0), u = s.left + c.scrollLeft - l.x - f.x, h = s.top + c.scrollTop - l.y - f.y;
|
|
222
|
+
return {
|
|
223
|
+
x: u,
|
|
224
|
+
y: h,
|
|
225
|
+
width: s.width,
|
|
226
|
+
height: s.height
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
function I(t) {
|
|
230
|
+
return R(t).position === "static";
|
|
231
|
+
}
|
|
232
|
+
function G(t, e) {
|
|
233
|
+
if (!b(t) || R(t).position === "fixed")
|
|
234
|
+
return null;
|
|
235
|
+
if (e)
|
|
236
|
+
return e(t);
|
|
237
|
+
let i = t.offsetParent;
|
|
238
|
+
return O(t) === i && (i = i.ownerDocument.body), i;
|
|
239
|
+
}
|
|
240
|
+
function it(t, e) {
|
|
241
|
+
const i = L(t);
|
|
242
|
+
if (S(t))
|
|
243
|
+
return i;
|
|
244
|
+
if (!b(t)) {
|
|
245
|
+
let o = W(t);
|
|
246
|
+
for (; o && !H(o); ) {
|
|
247
|
+
if (v(o) && !I(o))
|
|
248
|
+
return o;
|
|
249
|
+
o = W(o);
|
|
250
|
+
}
|
|
251
|
+
return i;
|
|
252
|
+
}
|
|
253
|
+
let n = G(t, e);
|
|
254
|
+
for (; n && at(n) && I(n); )
|
|
255
|
+
n = G(n, e);
|
|
256
|
+
return n && H(n) && I(n) && !Q(n) ? i : n || dt(t) || i;
|
|
257
|
+
}
|
|
258
|
+
const Lt = async function(t) {
|
|
259
|
+
const e = this.getOffsetParent || it, i = this.getDimensions, n = await i(t.floating);
|
|
260
|
+
return {
|
|
261
|
+
reference: Ct(t.reference, await e(t.floating), t.strategy),
|
|
262
|
+
floating: {
|
|
263
|
+
x: 0,
|
|
264
|
+
y: 0,
|
|
265
|
+
width: n.width,
|
|
266
|
+
height: n.height
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
function Tt(t) {
|
|
271
|
+
return R(t).direction === "rtl";
|
|
272
|
+
}
|
|
273
|
+
const Et = {
|
|
274
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: wt,
|
|
275
|
+
getDocumentElement: O,
|
|
276
|
+
getClippingRect: Ot,
|
|
277
|
+
getOffsetParent: it,
|
|
278
|
+
getElementRects: Lt,
|
|
279
|
+
getClientRects: mt,
|
|
280
|
+
getDimensions: bt,
|
|
281
|
+
getScale: F,
|
|
282
|
+
isElement: v,
|
|
283
|
+
isRTL: Tt
|
|
284
|
+
};
|
|
285
|
+
function nt(t, e) {
|
|
286
|
+
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
287
|
+
}
|
|
288
|
+
function Ft(t, e) {
|
|
289
|
+
let i = null, n;
|
|
290
|
+
const o = O(t);
|
|
291
|
+
function r() {
|
|
292
|
+
var c;
|
|
293
|
+
clearTimeout(n), (c = i) == null || c.disconnect(), i = null;
|
|
294
|
+
}
|
|
295
|
+
function s(c, l) {
|
|
296
|
+
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
|
297
|
+
const f = t.getBoundingClientRect(), {
|
|
298
|
+
left: u,
|
|
299
|
+
top: h,
|
|
300
|
+
width: p,
|
|
301
|
+
height: a
|
|
302
|
+
} = f;
|
|
303
|
+
if (c || e(), !p || !a)
|
|
304
|
+
return;
|
|
305
|
+
const y = D(h), g = D(o.clientWidth - (u + p)), w = D(o.clientHeight - (h + a)), d = D(u), C = {
|
|
306
|
+
rootMargin: -y + "px " + -g + "px " + -w + "px " + -d + "px",
|
|
307
|
+
threshold: E(0, V(1, l)) || 1
|
|
308
|
+
};
|
|
309
|
+
let B = !0;
|
|
310
|
+
function P(U) {
|
|
311
|
+
const z = U[0].intersectionRatio;
|
|
312
|
+
if (z !== l) {
|
|
313
|
+
if (!B)
|
|
314
|
+
return s();
|
|
315
|
+
z ? s(!1, z) : n = setTimeout(() => {
|
|
316
|
+
s(!1, 1e-7);
|
|
317
|
+
}, 1e3);
|
|
318
|
+
}
|
|
319
|
+
z === 1 && !nt(f, t.getBoundingClientRect()) && s(), B = !1;
|
|
320
|
+
}
|
|
321
|
+
try {
|
|
322
|
+
i = new IntersectionObserver(P, {
|
|
323
|
+
...C,
|
|
324
|
+
// Handle <iframe>s
|
|
325
|
+
root: o.ownerDocument
|
|
326
|
+
});
|
|
327
|
+
} catch {
|
|
328
|
+
i = new IntersectionObserver(P, C);
|
|
329
|
+
}
|
|
330
|
+
i.observe(t);
|
|
331
|
+
}
|
|
332
|
+
return s(!0), r;
|
|
333
|
+
}
|
|
334
|
+
function Dt(t, e, i, n) {
|
|
335
|
+
n === void 0 && (n = {});
|
|
336
|
+
const {
|
|
337
|
+
ancestorScroll: o = !0,
|
|
338
|
+
ancestorResize: r = !0,
|
|
339
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
340
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
341
|
+
animationFrame: l = !1
|
|
342
|
+
} = n, f = q(t), u = o || r ? [...f ? $(f) : [], ...$(e)] : [];
|
|
343
|
+
u.forEach((d) => {
|
|
344
|
+
o && d.addEventListener("scroll", i, {
|
|
345
|
+
passive: !0
|
|
346
|
+
}), r && d.addEventListener("resize", i);
|
|
347
|
+
});
|
|
348
|
+
const h = f && c ? Ft(f, i) : null;
|
|
349
|
+
let p = -1, a = null;
|
|
350
|
+
s && (a = new ResizeObserver((d) => {
|
|
351
|
+
let [x] = d;
|
|
352
|
+
x && x.target === f && a && (a.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
353
|
+
var C;
|
|
354
|
+
(C = a) == null || C.observe(e);
|
|
355
|
+
})), i();
|
|
356
|
+
}), f && !l && a.observe(f), a.observe(e));
|
|
357
|
+
let y, g = l ? T(t) : null;
|
|
358
|
+
l && w();
|
|
359
|
+
function w() {
|
|
360
|
+
const d = T(t);
|
|
361
|
+
g && !nt(g, d) && i(), g = d, y = requestAnimationFrame(w);
|
|
362
|
+
}
|
|
363
|
+
return i(), () => {
|
|
364
|
+
var d;
|
|
365
|
+
u.forEach((x) => {
|
|
366
|
+
o && x.removeEventListener("scroll", i), r && x.removeEventListener("resize", i);
|
|
367
|
+
}), h == null || h(), (d = a) == null || d.disconnect(), a = null, l && cancelAnimationFrame(y);
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
const At = ot, Ht = st, Nt = rt, It = ct, Vt = lt, $t = ht, St = ft, Mt = (t, e, i) => {
|
|
371
|
+
const n = /* @__PURE__ */ new Map(), o = {
|
|
372
|
+
platform: Et,
|
|
373
|
+
...i
|
|
374
|
+
}, r = {
|
|
375
|
+
...o.platform,
|
|
376
|
+
_c: n
|
|
377
|
+
};
|
|
378
|
+
return ut(t, e, {
|
|
379
|
+
...o,
|
|
380
|
+
platform: r
|
|
381
|
+
});
|
|
382
|
+
};
|
|
23
383
|
export {
|
|
24
|
-
|
|
384
|
+
$t as arrow,
|
|
385
|
+
Dt as autoUpdate,
|
|
386
|
+
Mt as computePosition,
|
|
387
|
+
Nt as flip,
|
|
388
|
+
$ as getOverflowAncestors,
|
|
389
|
+
Vt as hide,
|
|
390
|
+
St as limitShift,
|
|
391
|
+
At as offset,
|
|
392
|
+
Et as platform,
|
|
393
|
+
Ht as shift,
|
|
394
|
+
It as size
|
|
25
395
|
};
|
|
26
396
|
//# sourceMappingURL=index.es516.js.map
|