mada-design-system 0.2.8 → 0.3.1
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/index.cjs10.js +1 -1
- package/index.cjs100.js +1 -1
- package/index.cjs101.js +1 -1
- package/index.cjs102.js +1 -1
- package/index.cjs103.js +4 -1
- package/index.cjs104.js +1 -1
- package/index.cjs105.js +1 -1
- package/index.cjs106.js +1 -1
- package/index.cjs107.js +1 -1
- package/index.cjs108.js +1 -5
- package/index.cjs109.js +1 -1
- package/index.cjs110.js +1 -1
- package/index.cjs111.js +1 -1
- package/index.cjs112.js +5 -1
- package/index.cjs113.js +1 -1
- package/index.cjs114.js +1 -1
- package/index.cjs115.js +1 -1
- package/index.cjs116.js +1 -1
- package/index.cjs117.js +1 -1
- package/index.cjs118.js +1 -1
- package/index.cjs119.js +1 -1
- package/index.cjs12.js +1 -1
- package/index.cjs120.js +1 -1
- package/index.cjs121.js +1 -1
- package/index.cjs122.js +1 -2
- package/index.cjs123.js +1 -1
- package/index.cjs124.js +1 -2
- package/index.cjs125.js +1 -1
- package/index.cjs126.js +2 -1
- package/index.cjs127.js +1 -1
- package/index.cjs128.js +2 -1
- package/index.cjs129.js +1 -1
- package/index.cjs13.js +1 -1
- package/index.cjs130.js +1 -1
- package/index.cjs131.js +1 -20
- package/index.cjs132.js +1 -1
- package/index.cjs133.js +1 -1
- package/index.cjs134.js +1 -1
- package/index.cjs135.js +20 -1
- package/index.cjs136.js +1 -1
- package/index.cjs137.js +1 -1
- package/index.cjs138.js +1 -1
- package/index.cjs139.js +1 -1
- package/index.cjs140.js +1 -1
- package/index.cjs141.js +1 -1
- package/index.cjs142.js +1 -1
- package/index.cjs143.js +1 -1
- package/index.cjs144.js +1 -1
- package/index.cjs145.js +1 -1
- package/index.cjs146.js +1 -1
- package/index.cjs147.js +1 -1
- package/index.cjs148.js +1 -1
- package/index.cjs149.js +1 -1
- package/index.cjs15.js +1 -1
- package/index.cjs150.js +1 -1
- package/index.cjs151.js +1 -1
- package/index.cjs152.js +1 -1
- package/index.cjs153.js +1 -1
- package/index.cjs154.js +1 -1
- package/index.cjs155.js +1 -1
- package/index.cjs156.js +1 -1
- package/index.cjs157.js +1 -1
- package/index.cjs158.js +1 -1
- package/index.cjs159.js +1 -1
- package/index.cjs160.js +1 -1
- package/index.cjs161.js +1 -1
- package/index.cjs162.js +1 -1
- package/index.cjs163.js +1 -1
- package/index.cjs164.js +1 -1
- package/index.cjs165.js +1 -1
- package/index.cjs166.js +1 -1
- package/index.cjs167.js +1 -1
- package/index.cjs168.js +1 -1
- package/index.cjs169.js +1 -1
- package/index.cjs17.js +1 -1
- package/index.cjs170.js +1 -1
- package/index.cjs171.js +1 -1
- package/index.cjs172.js +1 -1
- package/index.cjs173.js +1 -1
- package/index.cjs174.js +1 -1
- package/index.cjs175.js +1 -1
- package/index.cjs176.js +1 -4
- package/index.cjs177.js +4 -1
- package/index.cjs178.js +1 -1
- package/index.cjs179.js +1 -1
- package/index.cjs180.js +1 -1
- package/index.cjs181.js +1 -1
- package/index.cjs182.js +1 -1
- package/index.cjs183.js +1 -1
- package/index.cjs184.js +1 -1
- package/index.cjs185.js +1 -1
- package/index.cjs186.js +1 -1
- package/index.cjs187.js +1 -1
- package/index.cjs188.js +1 -1
- package/index.cjs189.js +1 -1
- package/index.cjs190.js +1 -1
- package/index.cjs191.js +1 -1
- package/index.cjs192.js +1 -1
- package/index.cjs193.js +1 -1
- package/index.cjs194.js +1 -1
- package/index.cjs195.js +1 -1
- package/index.cjs196.js +1 -1
- package/index.cjs197.js +1 -1
- package/index.cjs198.js +1 -1
- package/index.cjs199.js +1 -1
- package/index.cjs20.js +1 -1
- package/index.cjs200.js +1 -1
- package/index.cjs201.js +1 -1
- package/index.cjs202.js +1 -1
- package/index.cjs203.js +1 -1
- package/index.cjs204.js +1 -1
- package/index.cjs205.js +1 -3
- package/index.cjs206.js +1 -1
- package/index.cjs207.js +1 -1
- package/index.cjs208.js +1 -1
- package/index.cjs209.js +1 -1
- package/index.cjs21.js +1 -1
- package/index.cjs210.js +1 -1
- package/index.cjs211.js +1 -1
- package/index.cjs212.js +1 -1
- package/index.cjs213.js +1 -1
- package/index.cjs214.js +3 -1
- package/index.cjs215.js +1 -1
- package/index.cjs216.js +1 -1
- package/index.cjs217.js +1 -1
- package/index.cjs218.js +1 -1
- package/index.cjs219.js +1 -1
- package/index.cjs22.js +1 -1
- package/index.cjs220.js +1 -1
- package/index.cjs221.js +1 -1
- package/index.cjs222.js +1 -1
- package/index.cjs223.js +1 -1
- package/index.cjs224.js +1 -1
- package/index.cjs225.js +1 -1
- package/index.cjs226.js +1 -1
- package/index.cjs227.js +1 -1
- package/index.cjs228.js +1 -1
- package/index.cjs229.js +1 -1
- package/index.cjs23.js +1 -1
- package/index.cjs230.js +1 -1
- package/index.cjs231.js +1 -1
- package/index.cjs232.js +1 -1
- package/index.cjs233.js +1 -1
- package/index.cjs234.js +1 -1
- package/index.cjs235.js +1 -2
- package/index.cjs236.js +1 -1
- package/index.cjs237.js +1 -1
- package/index.cjs238.js +1 -1
- package/index.cjs239.js +1 -1
- package/index.cjs240.js +1 -1
- package/index.cjs241.js +1 -1
- package/index.cjs242.js +1 -1
- package/index.cjs243.js +2 -1
- package/index.cjs244.js +1 -1
- package/index.cjs245.js +1 -1
- package/index.cjs246.js +1 -1
- package/index.cjs247.js +1 -1
- package/index.cjs248.js +1 -1
- package/index.cjs249.js +1 -1
- package/index.cjs25.js +1 -1
- package/index.cjs250.js +1 -1
- package/index.cjs251.js +1 -2
- package/index.cjs252.js +1 -1
- package/index.cjs253.js +1 -1
- package/index.cjs254.js +1 -1
- package/index.cjs255.js +1 -1
- package/index.cjs256.js +1 -1
- package/index.cjs257.js +1 -1
- package/index.cjs258.js +1 -1
- package/index.cjs259.js +2 -1
- package/index.cjs260.js +1 -1
- package/index.cjs261.js +1 -1
- package/index.cjs262.js +1 -1
- package/index.cjs263.js +1 -1
- package/index.cjs264.js +15 -1
- package/index.cjs265.js +1 -1
- package/index.cjs266.js +1 -15
- package/index.cjs267.js +1 -1
- package/index.cjs268.js +1 -1
- package/index.cjs269.js +1 -1
- package/index.cjs27.js +1 -1
- package/index.cjs270.js +1 -1
- package/index.cjs271.js +1 -1
- package/index.cjs272.js +1 -1
- package/index.cjs273.js +1 -1
- package/index.cjs274.js +1 -1
- package/index.cjs275.js +1 -1
- package/index.cjs276.js +1 -1
- package/index.cjs277.js +1 -1
- package/index.cjs278.js +1 -1
- package/index.cjs279.js +1 -1
- package/index.cjs28.js +1 -1
- package/index.cjs280.js +1 -1
- package/index.cjs281.js +1 -1
- package/index.cjs282.js +1 -1
- package/index.cjs283.js +1 -1
- package/index.cjs284.js +1 -1
- package/index.cjs285.js +1 -1
- package/index.cjs286.js +1 -1
- package/index.cjs287.js +1 -1
- package/index.cjs288.js +1 -1
- package/index.cjs289.js +1 -1
- package/index.cjs29.js +1 -1
- package/index.cjs290.js +3 -1
- package/index.cjs291.js +1 -1
- package/index.cjs292.js +1 -3
- package/index.cjs293.js +1 -1
- package/index.cjs294.js +1 -1
- package/index.cjs295.js +1 -1
- package/index.cjs296.js +1 -1
- package/index.cjs297.js +1 -1
- package/index.cjs298.js +1 -1
- package/index.cjs299.js +1 -1
- package/index.cjs30.js +1 -1
- package/index.cjs300.js +1 -1
- package/index.cjs301.js +1 -1
- package/index.cjs302.js +1 -1
- package/index.cjs303.js +1 -1
- package/index.cjs304.js +1 -1
- package/index.cjs305.js +1 -1
- package/index.cjs306.js +1 -1
- package/index.cjs307.js +1 -1
- package/index.cjs308.js +1 -1
- package/index.cjs309.js +1 -1
- package/index.cjs31.js +1 -1
- package/index.cjs310.js +1 -1
- package/index.cjs311.js +1 -1
- package/index.cjs312.js +1 -1
- package/index.cjs313.js +1 -1
- package/index.cjs314.js +1 -1
- package/index.cjs315.js +1 -1
- package/index.cjs316.js +1 -1
- package/index.cjs317.js +1 -1
- package/index.cjs318.js +1 -1
- package/index.cjs319.js +1 -1
- package/index.cjs32.js +1 -1
- package/index.cjs320.js +1 -1
- package/index.cjs321.js +1 -1
- package/index.cjs322.js +1 -1
- package/index.cjs323.js +1 -1
- package/index.cjs324.js +1 -1
- package/index.cjs325.js +1 -1
- package/index.cjs326.js +1 -1
- package/index.cjs327.js +1 -1
- package/index.cjs328.js +1 -1
- package/index.cjs329.js +1 -1
- package/index.cjs33.js +1 -1
- package/index.cjs330.js +1 -1
- package/index.cjs331.js +1 -1
- package/index.cjs332.js +1 -1
- package/index.cjs333.js +1 -1
- package/index.cjs334.js +1 -1
- package/index.cjs335.js +1 -1
- package/index.cjs336.js +1 -1
- package/index.cjs337.js +1 -1
- package/index.cjs338.js +1 -1
- package/index.cjs339.js +1 -1
- package/index.cjs340.js +1 -1
- package/index.cjs341.js +1 -1
- package/index.cjs342.js +1 -1
- package/index.cjs343.js +1 -1
- package/index.cjs344.js +1 -1
- package/index.cjs345.js +1 -1
- package/index.cjs346.js +1 -1
- package/index.cjs347.js +1 -1
- package/index.cjs348.js +1 -1
- package/index.cjs349.js +1 -1
- package/index.cjs350.js +1 -1
- package/index.cjs351.js +1 -1
- package/index.cjs352.js +1 -1
- package/index.cjs353.js +1 -1
- package/index.cjs354.js +1 -1
- package/index.cjs355.js +1 -1
- package/index.cjs356.js +1 -1
- package/index.cjs357.js +1 -1
- package/index.cjs358.js +1 -1
- package/index.cjs359.js +1 -1
- package/index.cjs36.js +1 -1
- package/index.cjs360.js +1 -1
- package/index.cjs362.js +1 -1
- package/index.cjs364.js +1 -1
- package/index.cjs365.js +1 -1
- package/index.cjs369.js +1 -1
- package/index.cjs37.js +1 -1
- package/index.cjs374.js +1 -1
- package/index.cjs375.js +1 -1
- package/index.cjs376.js +1 -1
- package/index.cjs377.js +1 -1
- package/index.cjs378.js +1 -1
- package/index.cjs379.js +1 -1
- package/index.cjs38.js +1 -1
- package/index.cjs380.js +1 -1
- package/index.cjs381.js +1 -1
- package/index.cjs382.js +1 -1
- package/index.cjs383.js +1 -1
- package/index.cjs384.js +1 -1
- package/index.cjs39.js +1 -1
- package/index.cjs399.js +1 -1
- package/index.cjs4.js +1 -1
- package/index.cjs40.js +1 -1
- package/index.cjs401.js +1 -1
- package/index.cjs41.js +1 -1
- package/index.cjs42.js +1 -1
- package/index.cjs44.js +1 -1
- package/index.cjs45.js +1 -1
- package/index.cjs46.js +1 -1
- package/index.cjs47.js +1 -1
- package/index.cjs48.js +1 -1
- package/index.cjs50.js +1 -1
- package/index.cjs51.js +1 -1
- package/index.cjs52.js +1 -1
- package/index.cjs53.js +1 -1
- package/index.cjs54.js +1 -1
- package/index.cjs58.js +1 -1
- package/index.cjs60.js +1 -1
- package/index.cjs61.js +1 -1
- package/index.cjs63.js +1 -1
- package/index.cjs64.js +1 -1
- package/index.cjs69.js +1 -1
- package/index.cjs7.js +1 -1
- package/index.cjs70.js +1 -1
- package/index.cjs71.js +1 -1
- package/index.cjs72.js +1 -1
- package/index.cjs73.js +1 -1
- package/index.cjs78.js +1 -1
- package/index.cjs79.js +1 -1
- package/index.cjs8.js +1 -1
- package/index.cjs82.js +1 -1
- package/index.cjs83.js +1 -1
- package/index.cjs84.js +1 -1
- package/index.cjs85.js +1 -1
- package/index.cjs86.js +1 -1
- package/index.cjs89.js +1 -1
- package/index.cjs9.js +1 -1
- package/index.cjs93.js +1 -1
- package/index.cjs97.js +1 -1
- package/index.cjs98.js +1 -1
- package/index.cjs99.js +1 -4
- package/index.es10.js +3 -3
- package/index.es100.js +3 -2152
- package/index.es101.js +2338 -3
- package/index.es102.js +20 -10
- package/index.es103.js +2567 -9
- package/index.es104.js +2152 -88
- package/index.es105.js +10 -23
- package/index.es106.js +425 -1667
- package/index.es107.js +11 -35
- package/index.es108.js +79 -2587
- package/index.es109.js +22 -320
- package/index.es110.js +1713 -11
- package/index.es111.js +35 -11
- package/index.es112.js +2596 -11
- package/index.es113.js +322 -8
- package/index.es114.js +10 -32
- package/index.es115.js +11 -38
- package/index.es116.js +5 -5
- package/index.es117.js +7 -10
- package/index.es118.js +32 -10
- package/index.es119.js +38 -11
- package/index.es12.js +3 -3
- package/index.es120.js +5 -5
- package/index.es121.js +12 -142
- package/index.es122.js +11 -117
- package/index.es123.js +11 -137
- package/index.es124.js +11 -223
- package/index.es125.js +142 -517
- package/index.es126.js +117 -11
- package/index.es127.js +137 -11
- package/index.es128.js +223 -11
- package/index.es129.js +516 -11
- package/index.es13.js +2 -2
- package/index.es130.js +5 -5
- package/index.es131.js +11 -205
- package/index.es132.js +5 -5
- package/index.es133.js +10 -4
- package/index.es134.js +5 -5
- package/index.es135.js +205 -11
- package/index.es136.js +5 -5
- package/index.es137.js +4 -10
- package/index.es138.js +5 -5
- package/index.es139.js +5 -5
- package/index.es140.js +5 -5
- package/index.es141.js +11 -2
- package/index.es142.js +11 -2
- package/index.es143.js +11 -2
- package/index.es144.js +11 -2
- package/index.es145.js +1 -1
- package/index.es146.js +1 -1
- package/index.es147.js +2 -11
- package/index.es148.js +2 -11
- package/index.es149.js +2 -11
- package/index.es15.js +5 -5
- package/index.es150.js +2 -11
- package/index.es151.js +5 -5
- package/index.es152.js +5 -5
- package/index.es153.js +5 -5
- package/index.es154.js +4 -4
- package/index.es155.js +5 -5
- package/index.es156.js +5 -5
- package/index.es157.js +5 -5
- package/index.es158.js +5 -5
- package/index.es159.js +11 -22
- package/index.es160.js +5 -5
- package/index.es161.js +11 -22
- package/index.es162.js +5 -5
- package/index.es163.js +22 -11
- package/index.es164.js +11 -12
- package/index.es165.js +5 -5
- package/index.es166.js +5 -5
- package/index.es167.js +12 -11
- package/index.es168.js +5 -5
- package/index.es169.js +10 -470
- package/index.es17.js +1 -1
- package/index.es170.js +10 -138
- package/index.es171.js +11 -6
- package/index.es172.js +14 -50
- package/index.es173.js +10 -3
- package/index.es174.js +49 -5
- package/index.es175.js +6 -2
- package/index.es176.js +2 -2261
- package/index.es177.js +2240 -459
- package/index.es178.js +3 -6
- package/index.es179.js +480 -2
- package/index.es180.js +2 -31
- package/index.es181.js +58 -12
- package/index.es182.js +56 -12
- package/index.es183.js +12 -24
- package/index.es184.js +23 -9
- package/index.es185.js +10 -38
- package/index.es186.js +37 -1998
- package/index.es187.js +1998 -5
- package/index.es188.js +6 -71
- package/index.es189.js +71 -24
- package/index.es190.js +21 -229
- package/index.es191.js +3 -53
- package/index.es192.js +2 -39
- package/index.es193.js +232 -17
- package/index.es194.js +50 -31
- package/index.es195.js +31 -1216
- package/index.es196.js +31 -14
- package/index.es197.js +12 -8
- package/index.es198.js +2 -98
- package/index.es199.js +7 -25
- package/index.es20.js +1 -1
- package/index.es200.js +2 -39
- package/index.es201.js +96 -9
- package/index.es202.js +24 -11
- package/index.es203.js +39 -13
- package/index.es204.js +18 -106
- package/index.es205.js +35 -25
- package/index.es206.js +1222 -49
- package/index.es207.js +2 -371
- package/index.es208.js +44 -61
- package/index.es209.js +50 -46
- package/index.es21.js +3 -3
- package/index.es210.js +11 -6
- package/index.es211.js +13 -5
- package/index.es212.js +13 -47
- package/index.es213.js +105 -21
- package/index.es214.js +25 -6
- package/index.es215.js +51 -10
- package/index.es216.js +370 -10
- package/index.es217.js +61 -16
- package/index.es218.js +47 -229
- package/index.es219.js +6 -25
- package/index.es22.js +1 -1
- package/index.es220.js +5 -12
- package/index.es221.js +44 -276
- package/index.es222.js +21 -261
- package/index.es223.js +6 -17
- package/index.es224.js +10 -15
- package/index.es225.js +11 -21
- package/index.es226.js +16 -7
- package/index.es227.js +230 -5
- package/index.es228.js +25 -5
- package/index.es229.js +12 -5
- package/index.es23.js +6 -6
- package/index.es230.js +279 -2
- package/index.es231.js +261 -57
- package/index.es232.js +15 -55
- package/index.es233.js +15 -2
- package/index.es234.js +20 -7
- package/index.es235.js +7 -326
- package/index.es236.js +5 -51
- package/index.es237.js +5 -30
- package/index.es238.js +5 -34
- package/index.es239.js +2 -53
- package/index.es240.js +2 -119
- package/index.es241.js +2 -9
- package/index.es242.js +8 -163
- package/index.es243.js +324 -307
- package/index.es244.js +49 -125
- package/index.es245.js +30 -180
- package/index.es246.js +34 -26
- package/index.es247.js +53 -62
- package/index.es248.js +119 -5
- package/index.es249.js +9 -36
- package/index.es25.js +1 -1
- package/index.es250.js +163 -26
- package/index.es251.js +268 -144
- package/index.es252.js +120 -131
- package/index.es253.js +180 -2
- package/index.es254.js +25 -7
- package/index.es255.js +62 -2
- package/index.es256.js +5 -2
- package/index.es257.js +36 -69
- package/index.es258.js +25 -84
- package/index.es259.js +181 -43
- package/index.es260.js +138 -9
- package/index.es261.js +2 -5
- package/index.es262.js +56 -48
- package/index.es263.js +16 -1
- package/index.es264.js +241 -57
- package/index.es265.js +72 -15
- package/index.es266.js +4 -243
- package/index.es267.js +54 -70
- package/index.es268.js +11 -5
- package/index.es269.js +6 -57
- package/index.es27.js +1 -1
- package/index.es270.js +36 -11
- package/index.es271.js +26 -6
- package/index.es272.js +291 -36
- package/index.es273.js +88 -24
- package/index.es274.js +3 -291
- package/index.es275.js +7 -90
- package/index.es276.js +16 -3
- package/index.es277.js +146 -7
- package/index.es278.js +2 -16
- package/index.es279.js +67 -145
- package/index.es28.js +1 -1
- package/index.es280.js +85 -38
- package/index.es281.js +48 -3
- package/index.es282.js +9 -11
- package/index.es283.js +5 -120
- package/index.es284.js +51 -6
- package/index.es285.js +38 -8
- package/index.es286.js +3 -116
- package/index.es287.js +11 -7
- package/index.es288.js +7 -9
- package/index.es289.js +351 -8
- package/index.es29.js +2 -2
- package/index.es290.js +94 -7
- package/index.es291.js +10 -351
- package/index.es292.js +3 -95
- package/index.es293.js +206 -3
- package/index.es294.js +119 -205
- package/index.es295.js +6 -15
- package/index.es296.js +8 -2
- package/index.es297.js +114 -43
- package/index.es298.js +6 -51
- package/index.es299.js +8 -2
- package/index.es30.js +2 -2
- package/index.es300.js +16 -2
- package/index.es301.js +13 -5
- package/index.es302.js +143 -17
- package/index.es303.js +43 -17
- package/index.es304.js +3 -17
- package/index.es305.js +41 -17
- package/index.es306.js +8 -17
- package/index.es307.js +76 -17
- package/index.es308.js +55 -17
- package/index.es309.js +7 -12
- package/index.es31.js +3 -3
- package/index.es310.js +75 -142
- package/index.es311.js +23 -42
- package/index.es312.js +62 -3
- package/index.es313.js +4 -40
- package/index.es314.js +6 -7
- package/index.es315.js +30 -74
- package/index.es316.js +55 -51
- package/index.es317.js +12 -7
- package/index.es318.js +4 -76
- package/index.es319.js +9 -23
- package/index.es32.js +1 -1
- package/index.es320.js +53 -60
- package/index.es321.js +3 -4
- package/index.es322.js +5 -7
- package/index.es323.js +17 -32
- package/index.es324.js +17 -59
- package/index.es325.js +17 -13
- package/index.es326.js +17 -4
- package/index.es327.js +17 -10
- package/index.es328.js +17 -55
- package/index.es329.js +17 -4
- package/index.es33.js +1 -1
- package/index.es330.js +2 -6
- package/index.es331.js +2 -24
- package/index.es332.js +5 -20
- package/index.es333.js +24 -6
- package/index.es334.js +21 -3
- package/index.es335.js +6 -4
- package/index.es336.js +3 -19
- package/index.es337.js +3 -66
- package/index.es338.js +18 -15
- package/index.es339.js +65 -13
- package/index.es340.js +15 -4
- package/index.es341.js +15 -5
- package/index.es342.js +15 -6
- package/index.es343.js +7 -7
- package/index.es344.js +5 -19
- package/index.es345.js +5 -4
- package/index.es346.js +6 -5
- package/index.es347.js +19 -3
- package/index.es348.js +4 -72
- package/index.es349.js +6 -4
- package/index.es350.js +3 -16
- package/index.es351.js +71 -6
- package/index.es352.js +3 -29
- package/index.es353.js +6 -9
- package/index.es354.js +29 -7
- package/index.es355.js +9 -6
- package/index.es356.js +8 -2
- package/index.es357.js +7 -2
- package/index.es358.js +8 -10
- package/index.es359.js +10 -3
- package/index.es36.js +1 -1
- package/index.es360.js +3 -8
- package/index.es362.js +2 -2
- package/index.es364.js +2 -2
- package/index.es365.js +1 -1
- package/index.es369.js +1 -1
- package/index.es37.js +1 -1
- package/index.es374.js +2 -6
- package/index.es375.js +5 -3
- package/index.es376.js +4 -2
- package/index.es377.js +1 -1
- package/index.es378.js +7 -7
- package/index.es379.js +2 -2
- package/index.es38.js +1 -1
- package/index.es380.js +1 -1
- package/index.es381.js +1 -1
- package/index.es382.js +8 -8
- package/index.es383.js +1 -1
- package/index.es384.js +1 -1
- package/index.es39.js +2 -2
- package/index.es399.js +2 -2
- package/index.es4.js +4 -4
- package/index.es40.js +1 -1
- package/index.es401.js +2 -2
- package/index.es41.js +2 -2
- package/index.es42.js +7 -7
- package/index.es44.js +4 -4
- package/index.es45.js +4 -4
- package/index.es46.js +10 -10
- package/index.es47.js +2 -2
- package/index.es48.js +12 -12
- package/index.es50.js +1 -1
- package/index.es51.js +1 -1
- package/index.es52.js +2 -2
- package/index.es53.js +2 -2
- package/index.es54.js +3 -3
- package/index.es58.js +2 -2
- package/index.es60.js +2 -2
- package/index.es61.js +5 -5
- package/index.es63.js +7 -7
- package/index.es64.js +3 -3
- package/index.es69.js +1 -1
- package/index.es7.js +1 -1
- package/index.es70.js +1 -1
- package/index.es71.js +3 -3
- package/index.es72.js +4 -4
- package/index.es73.js +1 -1
- package/index.es78.js +1 -1
- package/index.es79.js +1 -1
- package/index.es8.js +1 -1
- package/index.es82.js +5 -5
- package/index.es83.js +1 -1
- package/index.es84.js +1 -1
- package/index.es85.js +2 -2
- package/index.es86.js +1 -1
- package/index.es89.js +1 -1
- package/index.es9.js +6 -6
- package/index.es93.js +2 -2
- package/index.es97.js +22 -2338
- package/index.es98.js +139 -21
- package/index.es99.js +6 -2569
- package/package.json +1 -1
- package/tsconfig.json +26 -8
- package/tsconfig.node.json +10 -0
package/index.cjs97.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ce=require("./index.cjs172.js");var Ue={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},b,k;exports.Log=(e=>(e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e))(exports.Log||{});(e=>{function t(){b=3,k=Ue}e.reset=t;function s(r){if(!(0<=r&&r<=4))throw new Error("Invalid log level");b=r}e.setLevel=s;function i(r){k=r}e.setLogger=i})(exports.Log||(exports.Log={}));var g=class v{constructor(t){this._name=t}debug(...t){b>=4&&k.debug(v._format(this._name,this._method),...t)}info(...t){b>=3&&k.info(v._format(this._name,this._method),...t)}warn(...t){b>=2&&k.warn(v._format(this._name,this._method),...t)}error(...t){b>=1&&k.error(v._format(this._name,this._method),...t)}throw(t){throw this.error(t),t}create(t){const s=Object.create(this);return s._method=t,s.debug("begin"),s}static createStatic(t,s){const i=new v(`${t}.${s}`);return i.debug("begin"),i}static _format(t,s){const i=`[${t}]`;return s?`${i} ${s}:`:i}static debug(t,...s){b>=4&&k.debug(v._format(t),...s)}static info(t,...s){b>=3&&k.info(v._format(t),...s)}static warn(t,...s){b>=2&&k.warn(v._format(t),...s)}static error(t,...s){b>=1&&k.error(v._format(t),...s)}};exports.Log.reset();var $=class{static decode(e){try{return Ce.jwtDecode(e)}catch(t){throw g.error("JwtUtils.decode",t),t}}static async generateSignedJwt(e,t,s){const i=f.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e))),r=f.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t))),o=`${i}.${r}`,n=await window.crypto.subtle.sign({name:"ECDSA",hash:{name:"SHA-256"}},s,new TextEncoder().encode(o)),c=f.encodeBase64Url(new Uint8Array(n));return`${o}.${c}`}},Oe="10000000-1000-4000-8000-100000000000",L=e=>btoa([...new Uint8Array(e)].map(t=>String.fromCharCode(t)).join("")),oe=class y{static _randomWord(){const t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}static generateUUIDv4(){return Oe.replace(/[018]/g,s=>(+s^y._randomWord()&15>>+s/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return y.generateUUIDv4()+y.generateUUIDv4()+y.generateUUIDv4()}static async generateCodeChallenge(t){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const i=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",i);return L(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(s){throw g.error("CryptoUtils.generateCodeChallenge",s),s}}static generateBasicAuth(t,s){const r=new TextEncoder().encode([t,s].join(":"));return L(r)}static async hash(t,s){const i=new TextEncoder().encode(s),r=await crypto.subtle.digest(t,i);return new Uint8Array(r)}static async customCalculateJwkThumbprint(t){let s;switch(t.kty){case"RSA":s={e:t.e,kty:t.kty,n:t.n};break;case"EC":s={crv:t.crv,kty:t.kty,x:t.x,y:t.y};break;case"OKP":s={crv:t.crv,kty:t.kty,x:t.x};break;case"oct":s={crv:t.k,kty:t.kty};break;default:throw new Error("Unknown jwk type")}const i=await y.hash("SHA-256",JSON.stringify(s));return y.encodeBase64Url(i)}static async generateDPoPProof({url:t,accessToken:s,httpMethod:i,keyPair:r,nonce:o}){let n,c;const a={jti:window.crypto.randomUUID(),htm:i??"GET",htu:t,iat:Math.floor(Date.now()/1e3)};s&&(n=await y.hash("SHA-256",s),c=y.encodeBase64Url(n),a.ath=c),o&&(a.nonce=o);try{const l=await crypto.subtle.exportKey("jwk",r.publicKey),d={alg:"ES256",typ:"dpop+jwt",jwk:{crv:l.crv,kty:l.kty,x:l.x,y:l.y}};return await $.generateSignedJwt(d,a,r.privateKey)}catch(l){throw l instanceof TypeError?new Error(`Error exporting dpop public key: ${l.message}`):l}}static async generateDPoPJkt(t){try{const s=await crypto.subtle.exportKey("jwk",t.publicKey);return await y.customCalculateJwkThumbprint(s)}catch(s){throw s instanceof TypeError?new Error(`Could not retrieve dpop keys from storage: ${s.message}`):s}}static async generateDPoPKeys(){return await window.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"])}};oe.encodeBase64Url=e=>L(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");var f=oe,I=class{constructor(e){this._name=e,this._callbacks=[],this._logger=new g(`Event('${this._name}')`)}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){const t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}async raise(...e){this._logger.debug("raise:",...e);for(const t of this._callbacks)await t(...e)}},se=class{static center({...e}){var t,s,i;return e.width==null&&(e.width=(t=[800,720,600,480].find(r=>r<=window.outerWidth/1.618))!=null?t:360),(s=e.left)!=null||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),e.height!=null&&((i=e.top)!=null||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,s])=>`${t}=${typeof s!="boolean"?s:s?"yes":"no"}`).join(",")}},T=class H extends I{constructor(){super(...arguments),this._logger=new g(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const t=this._expiration-H.getEpochTime();this._logger.debug("timer completes in",t),this._expiration<=H.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(t){const s=this._logger.create("init");t=Math.max(Math.floor(t),1);const i=H.getEpochTime()+t;if(this.expiration===i&&this._timerHandle){s.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),s.debug("using duration",t),this._expiration=i;const r=Math.min(t,5);this._timerHandle=setInterval(this._callback,r*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},F=class{static readParams(e,t="query"){if(!e)throw new TypeError("Invalid URL");const i=new URL(e,"http://127.0.0.1")[t==="fragment"?"hash":"search"];return new URLSearchParams(i.slice(1))}},N=";",x=class extends Error{constructor(e,t){var s,i,r;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw g.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=e.error,this.error_description=(s=e.error_description)!=null?s:null,this.error_uri=(i=e.error_uri)!=null?i:null,this.state=e.userState,this.session_state=(r=e.session_state)!=null?r:null,this.url_state=e.url_state}},K=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},ae=class{constructor(e){this._logger=new g("AccessTokenEvents"),this._expiringTimer=new T("Access token expiring"),this._expiredTimer=new T("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}async load(e){const t=this._logger.create("load");if(e.access_token&&e.expires_in!==void 0){const s=e.expires_in;if(t.debug("access token present, remaining duration:",s),s>0){let r=s-this._expiringNotificationTimeInSeconds;r<=0&&(r=1),t.debug("registering expiring timer, raising in",r,"seconds"),this._expiringTimer.init(r)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();const i=s+1;t.debug("registering expired timer, raising in",i,"seconds"),this._expiredTimer.init(i)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}async unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},ce=class{constructor(e,t,s,i,r){this._callback=e,this._client_id=t,this._intervalInSeconds=i,this._stopOnError=r,this._logger=new g("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=n=>{n.origin===this._frame_origin&&n.source===this._frame.contentWindow&&(n.data==="error"?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):n.data==="changed"?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(n.data+" message from check session op iframe"))};const o=new URL(s);this._frame_origin=o.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=o.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;const t=()=>{!this._frame.contentWindow||!this._session_state||this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,this._intervalInSeconds*1e3)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},G=class{constructor(){this._logger=new g("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},z=class extends Error{constructor(e,t){super(t),this.name="ErrorDPoPNonce",this.nonce=e}},Q=class{constructor(e=[],t=null,s={}){this._jwtHandler=t,this._extraHeaders=s,this._logger=new g("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){const{timeoutInSeconds:s,...i}=t;if(!s)return await fetch(e,i);const r=new AbortController,o=setTimeout(()=>r.abort(),s*1e3);try{return await fetch(e,{...t,signal:r.signal})}catch(n){throw n instanceof DOMException&&n.name==="AbortError"?new K("Network timed out"):n}finally{clearTimeout(o)}}async getJson(e,{token:t,credentials:s,timeoutInSeconds:i}={}){const r=this._logger.create("getJson"),o={Accept:this._contentTypes.join(", ")};t&&(r.debug("token passed, setting Authorization header"),o.Authorization="Bearer "+t),this._appendExtraHeaders(o);let n;try{r.debug("url:",e),n=await this.fetchWithTimeout(e,{method:"GET",headers:o,timeoutInSeconds:i,credentials:s})}catch(l){throw r.error("Network Error"),l}r.debug("HTTP response received, status",n.status);const c=n.headers.get("Content-Type");if(c&&!this._contentTypes.find(l=>c.startsWith(l))&&r.throw(new Error(`Invalid response Content-Type: ${c??"undefined"}, from URL: ${e}`)),n.ok&&this._jwtHandler&&(c!=null&&c.startsWith("application/jwt")))return await this._jwtHandler(await n.text());let a;try{a=await n.json()}catch(l){throw r.error("Error parsing JSON response",l),n.ok?l:new Error(`${n.statusText} (${n.status})`)}if(!n.ok)throw r.error("Error from server:",a),a.error?new x(a):new Error(`${n.statusText} (${n.status}): ${JSON.stringify(a)}`);return a}async postForm(e,{body:t,basicAuth:s,timeoutInSeconds:i,initCredentials:r,extraHeaders:o}){const n=this._logger.create("postForm"),c={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded",...o};s!==void 0&&(c.Authorization="Basic "+s),this._appendExtraHeaders(c);let a;try{n.debug("url:",e),a=await this.fetchWithTimeout(e,{method:"POST",headers:c,body:t,timeoutInSeconds:i,credentials:r})}catch(u){throw n.error("Network error"),u}n.debug("HTTP response received, status",a.status);const l=a.headers.get("Content-Type");if(l&&!this._contentTypes.find(u=>l.startsWith(u)))throw new Error(`Invalid response Content-Type: ${l??"undefined"}, from URL: ${e}`);const d=await a.text();let h={};if(d)try{h=JSON.parse(d)}catch(u){throw n.error("Error parsing JSON response",u),a.ok?u:new Error(`${a.statusText} (${a.status})`)}if(!a.ok){if(n.error("Error from server:",h),a.headers.has("dpop-nonce")){const u=a.headers.get("dpop-nonce");throw new z(u,`${JSON.stringify(h)}`)}throw h.error?new x(h,t):new Error(`${a.statusText} (${a.status}): ${JSON.stringify(h)}`)}return h}_appendExtraHeaders(e){const t=this._logger.create("appendExtraHeaders"),s=Object.keys(this._extraHeaders),i=["accept","content-type"],r=["authorization"];s.length!==0&&s.forEach(o=>{if(i.includes(o.toLocaleLowerCase())){t.warn("Protected header could not be set",o,i);return}if(r.includes(o.toLocaleLowerCase())&&Object.keys(e).includes(o)){t.warn("Header could not be overridden",o,r);return}const n=typeof this._extraHeaders[o]=="function"?this._extraHeaders[o]():this._extraHeaders[o];n&&n!==""&&(e[o]=n)})}},le=class{constructor(e){this._settings=e,this._logger=new g("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new Q(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(new Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);const t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},t,this._settings.metadataSeed),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){const s=this._logger.create(`_getMetadataProperty('${e}')`),i=await this.getMetadata();if(s.debug("resolved"),i[e]===void 0){if(t===!0){s.warn("Metadata does not contain optional property");return}s.throw(new Error("Metadata does not contain property "+e))}return i[e]}async getSigningKeys(){const e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;const t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);const s=await this._jsonService.getJson(t,{timeoutInSeconds:this._settings.requestTimeoutInSeconds});if(e.debug("got key set",s),!Array.isArray(s.keys))throw e.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=s.keys,this._signingKeys}},X=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new g("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){return this._logger.create(`get('${e}')`),e=this._prefix+e,await this._store.getItem(e)}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;const t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");const e=await this._store.length,t=[];for(let s=0;s<e;s++){const i=await this._store.key(s);i&&i.indexOf(this._prefix)===0&&t.push(i.substr(this._prefix.length))}return t}},Ae="code",qe="openid",Ne="client_secret_post",Me=60*15,J=class{constructor({authority:e,metadataUrl:t,metadata:s,signingKeys:i,metadataSeed:r,client_id:o,client_secret:n,response_type:c=Ae,scope:a=qe,redirect_uri:l,post_logout_redirect_uri:d,client_authentication:h=Ne,prompt:u,display:p,max_age:C,ui_locales:U,acr_values:O,resource:A,response_mode:R,filterProtocolClaims:P=!0,loadUserInfo:q=!1,requestTimeoutInSeconds:m,staleStateAgeInSeconds:_=Me,mergeClaimsStrategy:E={array:"replace"},disablePKCE:S=!1,stateStore:w,revokeTokenAdditionalContentTypes:j,fetchRequestCredentials:ee,refreshTokenAllowedScope:ke,extraQueryParams:Ee={},extraTokenParams:Te={},extraHeaders:Re={},dpop:Pe,omitScopeWhenRequesting:Ie=!1}){var te;if(this.authority=e,t?this.metadataUrl=t:(this.metadataUrl=e,e&&(this.metadataUrl.endsWith("/")||(this.metadataUrl+="/"),this.metadataUrl+=".well-known/openid-configuration")),this.metadata=s,this.metadataSeed=r,this.signingKeys=i,this.client_id=o,this.client_secret=n,this.response_type=c,this.scope=a,this.redirect_uri=l,this.post_logout_redirect_uri=d,this.client_authentication=h,this.prompt=u,this.display=p,this.max_age=C,this.ui_locales=U,this.acr_values=O,this.resource=A,this.response_mode=R,this.filterProtocolClaims=P??!0,this.loadUserInfo=!!q,this.staleStateAgeInSeconds=_,this.mergeClaimsStrategy=E,this.omitScopeWhenRequesting=Ie,this.disablePKCE=!!S,this.revokeTokenAdditionalContentTypes=j,this.fetchRequestCredentials=ee||"same-origin",this.requestTimeoutInSeconds=m,w)this.stateStore=w;else{const xe=typeof window<"u"?window.localStorage:new G;this.stateStore=new X({store:xe})}if(this.refreshTokenAllowedScope=ke,this.extraQueryParams=Ee,this.extraTokenParams=Te,this.extraHeaders=Re,this.dpop=Pe,this.dpop&&!((te=this.dpop)!=null&&te.store))throw new Error("A DPoPStore is required when dpop is enabled")}},je=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new g("UserInfoService"),this._getClaimsFromJwt=async s=>{const i=this._logger.create("_getClaimsFromJwt");try{const r=$.decode(s);return i.debug("JWT decoding successful"),r}catch(r){throw i.error("Error parsing JWT response"),r}},this._jsonService=new Q(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){const t=this._logger.create("getClaims");e||this._logger.throw(new Error("No token passed"));const s=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",s);const i=await this._jsonService.getJson(s,{token:e,credentials:this._settings.fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return t.debug("got claims",i),i}},de=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new g("TokenClient"),this._jsonService=new Q(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:s=this._settings.client_id,client_secret:i=this._settings.client_secret,extraHeaders:r,...o}){const n=this._logger.create("exchangeCode");s||n.throw(new Error("A client_id is required")),t||n.throw(new Error("A redirect_uri is required")),o.code||n.throw(new Error("A code is required"));const c=new URLSearchParams({grant_type:e,redirect_uri:t});for(const[h,u]of Object.entries(o))u!=null&&c.set(h,u);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(i==null)throw n.throw(new Error("A client_secret is required")),null;a=f.generateBasicAuth(s,i);break;case"client_secret_post":c.append("client_id",s),i&&c.append("client_secret",i);break}const l=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const d=await this._jsonService.postForm(l,{body:c,basicAuth:a,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:r});return n.debug("got response"),d}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,scope:i=this._settings.scope,...r}){const o=this._logger.create("exchangeCredentials");t||o.throw(new Error("A client_id is required"));const n=new URLSearchParams({grant_type:e});this._settings.omitScopeWhenRequesting||n.set("scope",i);for(const[d,h]of Object.entries(r))h!=null&&n.set(d,h);let c;switch(this._settings.client_authentication){case"client_secret_basic":if(s==null)throw o.throw(new Error("A client_secret is required")),null;c=f.generateBasicAuth(t,s);break;case"client_secret_post":n.append("client_id",t),s&&n.append("client_secret",s);break}const a=await this._metadataService.getTokenEndpoint(!1);o.debug("got token endpoint");const l=await this._jsonService.postForm(a,{body:n,basicAuth:c,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials});return o.debug("got response"),l}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:s=this._settings.client_secret,timeoutInSeconds:i,extraHeaders:r,...o}){const n=this._logger.create("exchangeRefreshToken");t||n.throw(new Error("A client_id is required")),o.refresh_token||n.throw(new Error("A refresh_token is required"));const c=new URLSearchParams({grant_type:e});for(const[h,u]of Object.entries(o))Array.isArray(u)?u.forEach(p=>c.append(h,p)):u!=null&&c.set(h,u);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(s==null)throw n.throw(new Error("A client_secret is required")),null;a=f.generateBasicAuth(t,s);break;case"client_secret_post":c.append("client_id",t),s&&c.append("client_secret",s);break}const l=await this._metadataService.getTokenEndpoint(!1);n.debug("got token endpoint");const d=await this._jsonService.postForm(l,{body:c,basicAuth:a,timeoutInSeconds:i,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:r});return n.debug("got response"),d}async revoke(e){var t;const s=this._logger.create("revoke");e.token||s.throw(new Error("A token is required"));const i=await this._metadataService.getRevocationEndpoint(!1);s.debug(`got revocation endpoint, revoking ${(t=e.token_type_hint)!=null?t:"default token type"}`);const r=new URLSearchParams;for(const[o,n]of Object.entries(e))n!=null&&r.set(o,n);r.set("client_id",this._settings.client_id),this._settings.client_secret&&r.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(i,{body:r,timeoutInSeconds:this._settings.requestTimeoutInSeconds}),s.debug("got response")}},He=class{constructor(e,t,s){this._settings=e,this._metadataService=t,this._claimsService=s,this._logger=new g("ResponseValidator"),this._userInfoService=new je(this._settings,this._metadataService),this._tokenClient=new de(this._settings,this._metadataService)}async validateSigninResponse(e,t,s){const i=this._logger.create("validateSigninResponse");this._processSigninState(e,t),i.debug("state processed"),await this._processCode(e,t,s),i.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e),i.debug("tokens validated"),await this._processClaims(e,t==null?void 0:t.skipUserInfo,e.isOpenId),i.debug("claims processed")}async validateCredentialsResponse(e,t){const s=this._logger.create("validateCredentialsResponse");e.isOpenId&&e.id_token&&this._validateIdTokenAttributes(e),s.debug("tokens validated"),await this._processClaims(e,t,e.isOpenId),s.debug("claims processed")}async validateRefreshResponse(e,t){var s,i;const r=this._logger.create("validateRefreshResponse");e.userState=t.data,(s=e.session_state)!=null||(e.session_state=t.session_state),(i=e.scope)!=null||(e.scope=t.scope),e.isOpenId&&e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),r.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);const o=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,o),r.debug("claims processed")}validateSignoutResponse(e,t){const s=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&s.throw(new Error("State does not match")),s.debug("state validated"),e.userState=t.data,e.error)throw s.warn("Response was error",e.error),new x(e)}_processSigninState(e,t){var s;const i=this._logger.create("_processSigninState");if(t.id!==e.state&&i.throw(new Error("State does not match")),t.client_id||i.throw(new Error("No client_id on state")),t.authority||i.throw(new Error("No authority on state")),this._settings.authority!==t.authority&&i.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&i.throw(new Error("client_id mismatch on settings vs. signin state")),i.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,(s=e.scope)!=null||(e.scope=t.scope),e.error)throw i.warn("Response was error",e.error),new x(e);t.code_verifier&&!e.code&&i.throw(new Error("Expected code in response"))}async _processClaims(e,t=!1,s=!0){const i=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){i.debug("not loading user info");return}i.debug("loading user info");const r=await this._userInfoService.getClaims(e.access_token);i.debug("user info claims received from user info endpoint"),s&&r.sub!==e.profile.sub&&i.throw(new Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(r)),i.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t,s){const i=this._logger.create("_processCode");if(e.code){i.debug("Validating code");const r=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,extraHeaders:s,...t.extraTokenParams});Object.assign(e,r)}else i.debug("No code to process")}_validateIdTokenAttributes(e,t){var s;const i=this._logger.create("_validateIdTokenAttributes");i.debug("decoding ID Token JWT");const r=$.decode((s=e.id_token)!=null?s:"");if(r.sub||i.throw(new Error("ID Token is missing a subject claim")),t){const o=$.decode(t);r.sub!==o.sub&&i.throw(new Error("sub in id_token does not match current sub")),r.auth_time&&r.auth_time!==o.auth_time&&i.throw(new Error("auth_time in id_token does not match original auth_time")),r.azp&&r.azp!==o.azp&&i.throw(new Error("azp in id_token does not match original azp")),!r.azp&&o.azp&&i.throw(new Error("azp not in id_token, but present in original id_token"))}e.profile=r}},M=class B{constructor(t){this.id=t.id||f.generateUUIDv4(),this.data=t.data,t.created&&t.created>0?this.created=t.created:this.created=T.getEpochTime(),this.request_type=t.request_type,this.url_state=t.url_state}toStorageString(){return new g("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(t){return g.createStatic("State","fromStorageString"),Promise.resolve(new B(JSON.parse(t)))}static async clearStaleState(t,s){const i=g.createStatic("State","clearStaleState"),r=T.getEpochTime()-s,o=await t.getAllKeys();i.debug("got keys",o);for(let n=0;n<o.length;n++){const c=o[n],a=await t.get(c);let l=!1;if(a)try{const d=await B.fromStorageString(a);i.debug("got item from key:",c,d.created),d.created<=r&&(l=!0)}catch(d){i.error("Error parsing state for key:",c,d),l=!0}else i.debug("no item in storage for key:",c),l=!0;l&&(i.debug("removed item for key:",c),t.remove(c))}}},Y=class V extends M{constructor(t){super(t),this.code_verifier=t.code_verifier,this.code_challenge=t.code_challenge,this.authority=t.authority,this.client_id=t.client_id,this.redirect_uri=t.redirect_uri,this.scope=t.scope,this.client_secret=t.client_secret,this.extraTokenParams=t.extraTokenParams,this.response_mode=t.response_mode,this.skipUserInfo=t.skipUserInfo}static async create(t){const s=t.code_verifier===!0?f.generateCodeVerifier():t.code_verifier||void 0,i=s?await f.generateCodeChallenge(s):void 0;return new V({...t,code_verifier:s,code_challenge:i})}toStorageString(){return new g("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo})}static fromStorageString(t){g.createStatic("SigninState","fromStorageString");const s=JSON.parse(t);return V.create(s)}},he=class ge{constructor(t){this.url=t.url,this.state=t.state}static async create({url:t,authority:s,client_id:i,redirect_uri:r,response_type:o,scope:n,state_data:c,response_mode:a,request_type:l,client_secret:d,nonce:h,url_state:u,resource:p,skipUserInfo:C,extraQueryParams:U,extraTokenParams:O,disablePKCE:A,dpopJkt:R,omitScopeWhenRequesting:P,...q}){if(!t)throw this._logger.error("create: No url passed"),new Error("url");if(!i)throw this._logger.error("create: No client_id passed"),new Error("client_id");if(!r)throw this._logger.error("create: No redirect_uri passed"),new Error("redirect_uri");if(!o)throw this._logger.error("create: No response_type passed"),new Error("response_type");if(!n)throw this._logger.error("create: No scope passed"),new Error("scope");if(!s)throw this._logger.error("create: No authority passed"),new Error("authority");const m=await Y.create({data:c,request_type:l,url_state:u,code_verifier:!A,client_id:i,authority:s,redirect_uri:r,response_mode:a,client_secret:d,scope:n,extraTokenParams:O,skipUserInfo:C}),_=new URL(t);_.searchParams.append("client_id",i),_.searchParams.append("redirect_uri",r),_.searchParams.append("response_type",o),P||_.searchParams.append("scope",n),h&&_.searchParams.append("nonce",h),R&&_.searchParams.append("dpop_jkt",R);let E=m.id;u&&(E=`${E}${N}${u}`),_.searchParams.append("state",E),m.code_challenge&&(_.searchParams.append("code_challenge",m.code_challenge),_.searchParams.append("code_challenge_method","S256")),p&&(Array.isArray(p)?p:[p]).forEach(w=>_.searchParams.append("resource",w));for(const[S,w]of Object.entries({response_mode:a,...q,...U}))w!=null&&_.searchParams.append(S,w.toString());return new ge({url:_.href,state:m})}};he._logger=new g("SigninRequest");var De=he,We="openid",D=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){const t=decodeURIComponent(this.state).split(N);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(N))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-T.getEpochTime()}set expires_in(e){typeof e=="string"&&(e=Number(e)),e!==void 0&&e>=0&&(this.expires_at=Math.floor(e)+T.getEpochTime())}get isOpenId(){var e;return((e=this.scope)==null?void 0:e.split(" ").includes(We))||!!this.id_token}},$e=class{constructor({url:e,state_data:t,id_token_hint:s,post_logout_redirect_uri:i,extraQueryParams:r,request_type:o,client_id:n,url_state:c}){if(this._logger=new g("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),new Error("url");const a=new URL(e);if(s&&a.searchParams.append("id_token_hint",s),n&&a.searchParams.append("client_id",n),i&&(a.searchParams.append("post_logout_redirect_uri",i),t||c)){this.state=new M({data:t,request_type:o,url_state:c});let l=this.state.id;c&&(l=`${l}${N}${c}`),a.searchParams.append("state",l)}for(const[l,d]of Object.entries({...r}))d!=null&&a.searchParams.append(l,d.toString());this.url=a.href}},ue=class{constructor(e){if(this.state=e.get("state"),this.state){const t=decodeURIComponent(this.state).split(N);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(N))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},Je=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],Ke=["sub","iss","aud","exp","iat"],Le=class{constructor(e){this._settings=e,this._logger=new g("ClaimsService")}filterProtocolClaims(e){const t={...e};if(this._settings.filterProtocolClaims){let s;Array.isArray(this._settings.filterProtocolClaims)?s=this._settings.filterProtocolClaims:s=Je;for(const i of s)Ke.includes(i)||delete t[i]}return t}mergeClaims(e,t){const s={...e};for(const[i,r]of Object.entries(t))if(s[i]!==r)if(Array.isArray(s[i])||Array.isArray(r))if(this._settings.mergeClaimsStrategy.array=="replace")s[i]=r;else{const o=Array.isArray(s[i])?s[i]:[s[i]];for(const n of Array.isArray(r)?r:[r])o.includes(n)||o.push(n);s[i]=o}else typeof s[i]=="object"&&typeof r=="object"?s[i]=this.mergeClaims(s[i],r):s[i]=r;return s}},Z=class{constructor(e,t){this.keys=e,this.nonce=t}},_e=class{constructor(e,t){this._logger=new g("OidcClient"),this.settings=e instanceof J?e:new J(e),this.metadataService=t??new le(this.settings),this._claimsService=new Le(this.settings),this._validator=new He(this.settings,this.metadataService,this._claimsService),this._tokenClient=new de(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:s,request_type:i,id_token_hint:r,login_hint:o,skipUserInfo:n,nonce:c,url_state:a,response_type:l=this.settings.response_type,scope:d=this.settings.scope,redirect_uri:h=this.settings.redirect_uri,prompt:u=this.settings.prompt,display:p=this.settings.display,max_age:C=this.settings.max_age,ui_locales:U=this.settings.ui_locales,acr_values:O=this.settings.acr_values,resource:A=this.settings.resource,response_mode:R=this.settings.response_mode,extraQueryParams:P=this.settings.extraQueryParams,extraTokenParams:q=this.settings.extraTokenParams,dpopJkt:m,omitScopeWhenRequesting:_=this.settings.omitScopeWhenRequesting}){const E=this._logger.create("createSigninRequest");if(l!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const S=await this.metadataService.getAuthorizationEndpoint();E.debug("Received authorization endpoint",S);const w=await De.create({url:S,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:h,response_type:l,scope:d,state_data:e,url_state:a,prompt:u,display:p,max_age:C,ui_locales:U,id_token_hint:r,login_hint:o,acr_values:O,dpopJkt:m,resource:A,request:t,request_uri:s,extraQueryParams:P,extraTokenParams:q,request_type:i,response_mode:R,client_secret:this.settings.client_secret,skipUserInfo:n,nonce:c,disablePKCE:this.settings.disablePKCE,omitScopeWhenRequesting:_});await this.clearStaleState();const j=w.state;return await this.settings.stateStore.set(j.id,j.toStorageString()),w}async readSigninResponseState(e,t=!1){const s=this._logger.create("readSigninResponseState"),i=new D(F.readParams(e,this.settings.response_mode));if(!i.state)throw s.throw(new Error("No state in response")),null;const r=await this.settings.stateStore[t?"remove":"get"](i.state);if(!r)throw s.throw(new Error("No matching state found in storage")),null;return{state:await Y.fromStorageString(r),response:i}}async processSigninResponse(e,t,s=!0){const i=this._logger.create("processSigninResponse"),{state:r,response:o}=await this.readSigninResponseState(e,s);if(i.debug("received state from storage; validating response"),this.settings.dpop&&this.settings.dpop.store){const n=await this.getDpopProof(this.settings.dpop.store);t={...t,DPoP:n}}try{await this._validator.validateSigninResponse(o,r,t)}catch(n){if(n instanceof z&&this.settings.dpop){const c=await this.getDpopProof(this.settings.dpop.store,n.nonce);t.DPoP=c,await this._validator.validateSigninResponse(o,r,t)}else throw n}return o}async getDpopProof(e,t){let s,i;return(await e.getAllKeys()).includes(this.settings.client_id)?(i=await e.get(this.settings.client_id),i.nonce!==t&&t&&(i.nonce=t,await e.set(this.settings.client_id,i))):(s=await f.generateDPoPKeys(),i=new Z(s,t),await e.set(this.settings.client_id,i)),await f.generateDPoPProof({url:await this.metadataService.getTokenEndpoint(!1),httpMethod:"POST",keyPair:i.keys,nonce:i.nonce})}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s=!1,extraTokenParams:i={}}){const r=await this._tokenClient.exchangeCredentials({username:e,password:t,...i}),o=new D(new URLSearchParams);return Object.assign(o,r),await this._validator.validateCredentialsResponse(o,s),o}async useRefreshToken({state:e,redirect_uri:t,resource:s,timeoutInSeconds:i,extraHeaders:r,extraTokenParams:o}){var n;const c=this._logger.create("useRefreshToken");let a;if(this.settings.refreshTokenAllowedScope===void 0)a=e.scope;else{const h=this.settings.refreshTokenAllowedScope.split(" ");a=(((n=e.scope)==null?void 0:n.split(" "))||[]).filter(p=>h.includes(p)).join(" ")}if(this.settings.dpop&&this.settings.dpop.store){const h=await this.getDpopProof(this.settings.dpop.store);r={...r,DPoP:h}}let l;try{l=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:a,redirect_uri:t,resource:s,timeoutInSeconds:i,extraHeaders:r,...o})}catch(h){if(h instanceof z&&this.settings.dpop)r.DPoP=await this.getDpopProof(this.settings.dpop.store,h.nonce),l=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:a,redirect_uri:t,resource:s,timeoutInSeconds:i,extraHeaders:r,...o});else throw h}const d=new D(new URLSearchParams);return Object.assign(d,l),c.debug("validating response",d),await this._validator.validateRefreshResponse(d,{...e,scope:a}),d}async createSignoutRequest({state:e,id_token_hint:t,client_id:s,request_type:i,url_state:r,post_logout_redirect_uri:o=this.settings.post_logout_redirect_uri,extraQueryParams:n=this.settings.extraQueryParams}={}){const c=this._logger.create("createSignoutRequest"),a=await this.metadataService.getEndSessionEndpoint();if(!a)throw c.throw(new Error("No end session endpoint")),null;c.debug("Received end session endpoint",a),!s&&o&&!t&&(s=this.settings.client_id);const l=new $e({url:a,id_token_hint:t,client_id:s,post_logout_redirect_uri:o,state_data:e,extraQueryParams:n,request_type:i,url_state:r});await this.clearStaleState();const d=l.state;return d&&(c.debug("Signout request has state to persist"),await this.settings.stateStore.set(d.id,d.toStorageString())),l}async readSignoutResponseState(e,t=!1){const s=this._logger.create("readSignoutResponseState"),i=new ue(F.readParams(e,this.settings.response_mode));if(!i.state){if(s.debug("No state in response"),i.error)throw s.warn("Response was error:",i.error),new x(i);return{state:void 0,response:i}}const r=await this.settings.stateStore[t?"remove":"get"](i.state);if(!r)throw s.throw(new Error("No matching state found in storage")),null;return{state:await M.fromStorageString(r),response:i}}async processSignoutResponse(e){const t=this._logger.create("processSignoutResponse"),{state:s,response:i}=await this.readSignoutResponseState(e,!0);return s?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(i,s)):t.debug("No state from storage; skipping response validation"),i}clearStaleState(){return this._logger.create("clearStaleState"),M.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},pe=class{constructor(e){this._userManager=e,this._logger=new g("SessionMonitor"),this._start=async t=>{const s=t.session_state;if(!s)return;const i=this._logger.create("_start");if(t.profile?(this._sub=t.profile.sub,i.debug("session_state",s,", sub",this._sub)):(this._sub=void 0,i.debug("session_state",s,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(s);return}try{const r=await this._userManager.metadataService.getCheckSessionIframe();if(r){i.debug("initializing check session iframe");const o=this._userManager.settings.client_id,n=this._userManager.settings.checkSessionIntervalInSeconds,c=this._userManager.settings.stopCheckSessionOnError,a=new ce(this._callback,o,r,n,c);await a.load(),this._checkSessionIFrame=a,a.start(s)}else i.warn("no check session iframe found in the metadata")}catch(r){i.error("Error from getCheckSessionIframe:",r instanceof Error?r.message:r)}},this._stop=()=>{const t=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){const s=setInterval(async()=>{clearInterval(s);try{const i=await this._userManager.querySessionStatus();if(i){const r={session_state:i.session_state,profile:i.sub?{sub:i.sub}:null};this._start(r)}}catch(i){t.error("error from querySessionStatus",i instanceof Error?i.message:i)}},1e3)}},this._callback=async()=>{const t=this._logger.create("_callback");try{const s=await this._userManager.querySessionStatus();let i=!0;s&&this._checkSessionIFrame?s.sub===this._sub?(i=!1,this._checkSessionIFrame.start(s.session_state),t.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",s.session_state),await this._userManager.events._raiseUserSessionChanged()):t.debug("different subject signed into OP",s.sub):t.debug("subject no longer signed into OP"),i?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():t.debug("no change in session detected, no event to raise")}catch(s){this._sub&&(t.debug("Error calling queryCurrentSigninSession; raising signed out event",s),await this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(t=>{this._logger.error(t)})}async _init(){this._logger.create("_init");const e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){const t=await this._userManager.querySessionStatus();if(t){const s={session_state:t.session_state,profile:t.sub?{sub:t.sub}:null};this._start(s)}}}},W=class fe{constructor(t){var s;this.id_token=t.id_token,this.session_state=(s=t.session_state)!=null?s:null,this.access_token=t.access_token,this.refresh_token=t.refresh_token,this.token_type=t.token_type,this.scope=t.scope,this.profile=t.profile,this.expires_at=t.expires_at,this.state=t.userState,this.url_state=t.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-T.getEpochTime()}set expires_in(t){t!==void 0&&(this.expires_at=Math.floor(t)+T.getEpochTime())}get expired(){const t=this.expires_in;if(t!==void 0)return t<=0}get scopes(){var t,s;return(s=(t=this.scope)==null?void 0:t.split(" "))!=null?s:[]}toStorageString(){return new g("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(t){return g.createStatic("User","fromStorageString"),new fe(JSON.parse(t))}},ie="oidc-client",we=class{constructor(){this._abort=new I("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){const t=this._logger.create("navigate");if(!this._window)throw new Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);const{url:s,keepOpen:i}=await new Promise((r,o)=>{const n=c=>{var a;const l=c.data,d=(a=e.scriptOrigin)!=null?a:window.location.origin;if(!(c.origin!==d||(l==null?void 0:l.source)!==ie)){try{const h=F.readParams(l.url,e.response_mode).get("state");if(h||t.warn("no state found in response url"),c.source!==this._window&&h!==e.state)return}catch{this._dispose(),o(new Error("Invalid response from window"))}r(l)}};window.addEventListener("message",n,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",n,!1)),this._disposeHandlers.add(this._abort.addHandler(c=>{this._dispose(),o(c)}))});return t.debug("got response from window"),this._dispose(),i||this.close(),{url:s}}_dispose(){this._logger.create("_dispose");for(const e of this._disposeHandlers)e();this._disposeHandlers.clear()}static _notifyParent(e,t,s=!1,i=window.location.origin){e.postMessage({source:ie,url:t,keepOpen:s},i)}},me={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},Se="_blank",Fe=60,ze=2,ve=10,ye=class extends J{constructor(e){const{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:s=e.post_logout_redirect_uri,popupWindowFeatures:i=me,popupWindowTarget:r=Se,redirectMethod:o="assign",redirectTarget:n="self",iframeNotifyParentOrigin:c=e.iframeNotifyParentOrigin,iframeScriptOrigin:a=e.iframeScriptOrigin,requestTimeoutInSeconds:l,silent_redirect_uri:d=e.redirect_uri,silentRequestTimeoutInSeconds:h,automaticSilentRenew:u=!0,validateSubOnSilentRenew:p=!0,includeIdTokenInSilentRenew:C=!1,monitorSession:U=!1,monitorAnonymousSession:O=!1,checkSessionIntervalInSeconds:A=ze,query_status_response_type:R="code",stopCheckSessionOnError:P=!0,revokeTokenTypes:q=["access_token","refresh_token"],revokeTokensOnSignout:m=!1,includeIdTokenInSilentSignout:_=!1,accessTokenExpiringNotificationTimeInSeconds:E=Fe,userStore:S}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=s,this.popupWindowFeatures=i,this.popupWindowTarget=r,this.redirectMethod=o,this.redirectTarget=n,this.iframeNotifyParentOrigin=c,this.iframeScriptOrigin=a,this.silent_redirect_uri=d,this.silentRequestTimeoutInSeconds=h||l||ve,this.automaticSilentRenew=u,this.validateSubOnSilentRenew=p,this.includeIdTokenInSilentRenew=C,this.monitorSession=U,this.monitorAnonymousSession=O,this.checkSessionIntervalInSeconds=A,this.stopCheckSessionOnError=P,this.query_status_response_type=R,this.revokeTokenTypes=q,this.revokeTokensOnSignout=m,this.includeIdTokenInSilentSignout=_,this.accessTokenExpiringNotificationTimeInSeconds=E,S)this.userStore=S;else{const w=typeof window<"u"?window.sessionStorage:new G;this.userStore=new X({store:w})}}},re=class be extends we{constructor({silentRequestTimeoutInSeconds:t=ve}){super(),this._logger=new g("IFrameWindow"),this._timeoutInSeconds=t,this._frame=be.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){const t=window.document.createElement("iframe");return t.style.visibility="hidden",t.style.position="fixed",t.style.left="-1000px",t.style.top="0",t.width="0",t.height="0",window.document.body.appendChild(t),t}async navigate(t){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);const s=setTimeout(()=>void this._abort.raise(new K("IFrame timed out without a response")),this._timeoutInSeconds*1e3);return this._disposeHandlers.add(()=>clearTimeout(s)),await super.navigate(t)}close(){var t;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",s=>{var i;const r=s.target;(i=r.parentNode)==null||i.removeChild(r),this._abort.raise(new Error("IFrame removed from DOM"))},!0),(t=this._frame.contentWindow)==null||t.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(t,s){return super._notifyParent(window.parent,t,!1,s)}},Be=class{constructor(e){this._settings=e,this._logger=new g("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new re({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),re.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},Ve=500,Ge=1e3,ne=class extends we{constructor({popupWindowTarget:e=Se,popupWindowFeatures:t={},popupSignal:s}){super(),this._logger=new g("PopupWindow");const i=se.center({...me,...t});this._window=window.open(void 0,e,se.serialize(i)),s&&s.addEventListener("abort",()=>{var r;this._abort.raise(new Error((r=s.reason)!=null?r:"Popup aborted"))}),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||typeof this._window.closed!="boolean"||this._window.closed){this._abort.raise(new Error("Popup blocked by user"));return}this.close()},t.closePopupWindowAfterInSeconds*Ge)}async navigate(e){var t;(t=this._window)==null||t.focus();const s=setInterval(()=>{(!this._window||this._window.closed)&&this._abort.raise(new Error("Popup closed by user"))},Ve);return this._disposeHandlers.add(()=>clearInterval(s)),await super.navigate(e)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}static notifyOpener(e,t){if(!window.opener)throw new Error("No window.opener. Can't complete notification.");return super._notifyParent(window.opener,e,t)}},Qe=class{constructor(e){this._settings=e,this._logger=new g("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget,popupSignal:s}){return new ne({popupWindowFeatures:e,popupWindowTarget:t,popupSignal:s})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),ne.notifyOpener(e,t)}},Xe=class{constructor(e){this._settings=e,this._logger=new g("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var s;this._logger.create("prepare");let i=window.self;t==="top"&&(i=(s=window.top)!=null?s:window.self);const r=i.location[e].bind(i.location);let o;return{navigate:async n=>{this._logger.create("navigate");const c=new Promise((a,l)=>{o=l});return r(n.url),await c},close:()=>{this._logger.create("close"),o==null||o(new Error("Redirect aborted")),i.stop()}}}async callback(){}},Ye=class extends ae{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new g("UserManagerEvents"),this._userLoaded=new I("User loaded"),this._userUnloaded=new I("User unloaded"),this._silentRenewError=new I("Silent renew error"),this._userSignedIn=new I("User signed in"),this._userSignedOut=new I("User signed out"),this._userSessionChanged=new I("User session changed")}async load(e,t=!0){await super.load(e),t&&await this._userLoaded.raise(e)}async unload(){await super.unload(),await this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}async _raiseSilentRenewError(e){await this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},Ze=class{constructor(e){this._userManager=e,this._logger=new g("SilentRenewService"),this._isStarted=!1,this._retryTimer=new T("Retry Silent Renew"),this._tokenExpiring=async()=>{const t=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),t.debug("silent token renewal successful")}catch(s){if(s instanceof K){t.warn("ErrorTimeout from signinSilent:",s,"retry in 5s"),this._retryTimer.init(5);return}t.error("Error from signinSilent:",s),await this._userManager.events._raiseSilentRenewError(s)}}}async start(){const e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},et=class{constructor(e){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.data=e.state}},tt=class{constructor(e,t,s,i){this._logger=new g("UserManager"),this.settings=new ye(e),this._client=new _e(e),this._redirectNavigator=t??new Xe(this.settings),this._popupNavigator=s??new Qe(this.settings),this._iframeNavigator=i??new Be(this.settings),this._events=new Ye(this.settings),this._silentRenewService=new Ze(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new pe(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(e=!1){const t=this._logger.create("getUser"),s=await this._loadUser();return s?(t.info("user loaded"),await this._events.load(s,e),s):(t.info("user not found in storage"),null)}async removeUser(){const e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),await this._events.unload()}async signinRedirect(e={}){var t;this._logger.create("signinRedirect");const{redirectMethod:s,...i}=e;let r;(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(r=await this.generateDPoPJkt(this.settings.dpop));const o=await this._redirectNavigator.prepare({redirectMethod:s});await this._signinStart({request_type:"si:r",dpopJkt:r,...i},o)}async signinRedirectCallback(e=window.location.href){const t=this._logger.create("signinRedirectCallback"),s=await this._signinEnd(e);return s.profile&&s.profile.sub?t.info("success, signed in subject",s.profile.sub):t.info("no subject"),s}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:s=!1}){const i=this._logger.create("signinResourceOwnerCredential"),r=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:s,extraTokenParams:this.settings.extraTokenParams});i.debug("got signin response");const o=await this._buildUser(r);return o.profile&&o.profile.sub?i.info("success, signed in subject",o.profile.sub):i.info("no subject"),o}async signinPopup(e={}){var t;const s=this._logger.create("signinPopup");let i;(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(i=await this.generateDPoPJkt(this.settings.dpop));const{popupWindowFeatures:r,popupWindowTarget:o,popupSignal:n,...c}=e,a=this.settings.popup_redirect_uri;a||s.throw(new Error("No popup_redirect_uri configured"));const l=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:o,popupSignal:n}),d=await this._signin({request_type:"si:p",redirect_uri:a,display:"popup",dpopJkt:i,...c},l);return d&&(d.profile&&d.profile.sub?s.info("success, signed in subject",d.profile.sub):s.info("no subject")),d}async signinPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async signinSilent(e={}){var t,s;const i=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:r,...o}=e;let n=await this._loadUser();if(n!=null&&n.refresh_token){i.debug("using refresh token");const h=new et(n);return await this._useRefreshToken({state:h,redirect_uri:o.redirect_uri,resource:o.resource,extraTokenParams:o.extraTokenParams,timeoutInSeconds:r})}let c;(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(c=await this.generateDPoPJkt(this.settings.dpop));const a=this.settings.silent_redirect_uri;a||i.throw(new Error("No silent_redirect_uri configured"));let l;n&&this.settings.validateSubOnSilentRenew&&(i.debug("subject prior to silent renew:",n.profile.sub),l=n.profile.sub);const d=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r});return n=await this._signin({request_type:"si:s",redirect_uri:a,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?n==null?void 0:n.id_token:void 0,dpopJkt:c,...o},d,l),n&&((s=n.profile)!=null&&s.sub?i.info("success, signed in subject",n.profile.sub):i.info("no subject")),n}async _useRefreshToken(e){const t=await this._client.useRefreshToken({timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds,...e}),s=new W({...e.state,...t});return await this.storeUser(s),await this._events.load(s),s}async signinSilentCallback(e=window.location.href){const t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){const{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":await this.signinPopupCallback(e);break;case"si:s":await this.signinSilentCallback(e);break;default:throw new Error("invalid response_type in state")}}async signoutCallback(e=window.location.href,t=!1){const{state:s}=await this._client.readSignoutResponseState(e);if(s)switch(s.request_type){case"so:r":return await this.signoutRedirectCallback(e);case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw new Error("invalid response_type in state")}}async querySessionStatus(e={}){const t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:s,...i}=e,r=this.settings.silent_redirect_uri;r||t.throw(new Error("No silent_redirect_uri configured"));const o=await this._loadUser(),n=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:s}),c=await this._signinStart({request_type:"si:s",redirect_uri:r,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?o==null?void 0:o.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...i},n);try{const a={},l=await this._client.processSigninResponse(c.url,a);return t.debug("got signin response"),l.session_state&&l.profile.sub?(t.info("success for subject",l.profile.sub),{session_state:l.session_state,sub:l.profile.sub}):(t.info("success, user not authenticated"),null)}catch(a){if(this.settings.monitorAnonymousSession&&a instanceof x)switch(a.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:a.session_state}}throw a}}async _signin(e,t,s){const i=await this._signinStart(e,t);return await this._signinEnd(i.url,s)}async _signinStart(e,t){const s=this._logger.create("_signinStart");try{const i=await this._client.createSigninRequest(e);return s.debug("got signin request"),await t.navigate({url:i.url,state:i.state.id,response_mode:i.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(i){throw s.debug("error after preparing navigator, closing navigator window"),t.close(),i}}async _signinEnd(e,t){const s=this._logger.create("_signinEnd"),i={},r=await this._client.processSigninResponse(e,i);return s.debug("got signin response"),await this._buildUser(r,t)}async _buildUser(e,t){const s=this._logger.create("_buildUser"),i=new W(e);if(t){if(t!==i.profile.sub)throw s.debug("current user does not match user returned from signin. sub from signin:",i.profile.sub),new x({...e,error:"login_required"});s.debug("current user matches user returned from signin")}return await this.storeUser(i),s.debug("user stored"),await this._events.load(i),i}async signoutRedirect(e={}){const t=this._logger.create("signoutRedirect"),{redirectMethod:s,...i}=e,r=await this._redirectNavigator.prepare({redirectMethod:s});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...i},r),t.info("success")}async signoutRedirectCallback(e=window.location.href){const t=this._logger.create("signoutRedirectCallback"),s=await this._signoutEnd(e);return t.info("success"),s}async signoutPopup(e={}){const t=this._logger.create("signoutPopup"),{popupWindowFeatures:s,popupWindowTarget:i,popupSignal:r,...o}=e,n=this.settings.popup_post_logout_redirect_uri,c=await this._popupNavigator.prepare({popupWindowFeatures:s,popupWindowTarget:i,popupSignal:r});await this._signout({request_type:"so:p",post_logout_redirect_uri:n,state:n==null?void 0:{},...o},c),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){const s=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),s.info("success")}async _signout(e,t){const s=await this._signoutStart(e,t);return await this._signoutEnd(s.url)}async _signoutStart(e={},t){var s;const i=this._logger.create("_signoutStart");try{const r=await this._loadUser();i.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(r);const o=e.id_token_hint||r&&r.id_token;o&&(i.debug("setting id_token_hint in signout request"),e.id_token_hint=o),await this.removeUser(),i.debug("user removed, creating signout request");const n=await this._client.createSignoutRequest(e);return i.debug("got signout request"),await t.navigate({url:n.url,state:(s=n.state)==null?void 0:s.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(r){throw i.debug("error after preparing navigator, closing navigator window"),t.close(),r}}async _signoutEnd(e){const t=this._logger.create("_signoutEnd"),s=await this._client.processSignoutResponse(e);return t.debug("got signout response"),s}async signoutSilent(e={}){var t;const s=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:i,...r}=e,o=this.settings.includeIdTokenInSilentSignout?(t=await this._loadUser())==null?void 0:t.id_token:void 0,n=this.settings.popup_post_logout_redirect_uri,c=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:i});await this._signout({request_type:"so:s",post_logout_redirect_uri:n,id_token_hint:o,...r},c),s.info("success")}async signoutSilentCallback(e=window.location.href){const t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){const t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){const s=this._logger.create("_revokeInternal");if(!e)return;const i=t.filter(r=>typeof e[r]=="string");if(!i.length){s.debug("no need to revoke due to no token(s)");return}for(const r of i)await this._client.revokeToken(e[r],r),s.info(`${r} revoked successfully`),r!=="access_token"&&(e[r]=null);await this.storeUser(e),s.debug("user stored"),await this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){const e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),W.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){const t=this._logger.create("storeUser");if(e){t.debug("storing user");const s=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,s)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey),this.settings.dpop&&await this.settings.dpop.store.remove(this.settings.client_id)}async clearStaleState(){await this._client.clearStaleState()}async dpopProof(e,t,s,i){var r,o;const n=await((o=(r=this.settings.dpop)==null?void 0:r.store)==null?void 0:o.get(this.settings.client_id));if(n)return await f.generateDPoPProof({url:e,accessToken:t==null?void 0:t.access_token,httpMethod:s,keyPair:n.keys,nonce:i})}async generateDPoPJkt(e){let t=await e.store.get(this.settings.client_id);if(!t){const s=await f.generateDPoPKeys();t=new Z(s),await e.store.set(this.settings.client_id,t)}return await f.generateDPoPJkt(t.keys)}};exports.AccessTokenEvents=ae;exports.CheckSessionIFrame=ce;exports.DPoPState=Z;exports.ErrorResponse=x;exports.ErrorTimeout=K;exports.InMemoryWebStorage=G;exports.Logger=g;exports.MetadataService=le;exports.OidcClient=_e;exports.OidcClientSettingsStore=J;exports.SessionMonitor=pe;exports.SigninResponse=D;exports.SigninState=Y;exports.SignoutResponse=ue;exports.State=M;exports.User=W;exports.UserManager=tt;exports.UserManagerSettingsStore=ye;exports.WebStorageStateStore=X;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs172.js"),a=require("react"),c=require("./index.cjs173.js"),{useDebugValue:l}=a,{useSyncExternalStoreWithSelector:E}=c.default;const d=e=>e;function s(e,t=d,o){const r=E(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,o);return l(r),r}const n=e=>{const t=typeof e=="function"?i.createStore(e):e,o=(r,u)=>s(t,r,u);return Object.assign(o,t),o},S=e=>e?n(e):n;exports.createStore=i.createStore;exports.create=S;exports.useStore=s;
|
package/index.cjs98.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=new Map,v=d=>{const a=y.get(d);return a?Object.fromEntries(Object.entries(a.stores).map(([i,c])=>[i,c.getState()])):{}},O=(d,a,i)=>{if(d===void 0)return{type:"untracked",connection:a.connect(i)};const c=y.get(i.name);if(c)return{type:"tracked",store:d,...c};const n={connection:a.connect(i),stores:{}};return y.set(i.name,n),{type:"tracked",store:d,...n}},R=(d,a={})=>(i,c,n)=>{const{enabled:A,anonymousActionType:C,store:r,...f}=a;let E;try{E=(A??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!E)return d(i,c,n);const{connection:t,...p}=O(r,E,f);let _=!0;n.setState=(o,l,e)=>{const s=i(o,l);if(!_)return s;const T=e===void 0?{type:C||"anonymous"}:typeof e=="string"?{type:e}:e;return r===void 0?(t==null||t.send(T,c()),s):(t==null||t.send({...T,type:`${r}/${T.type}`},{...v(f.name),[r]:n.getState()}),s)};const u=(...o)=>{const l=_;_=!1,i(...o),_=l},S=d(n.setState,c,n);if(p.type==="untracked"?t==null||t.init(S):(p.stores[p.store]=n,t==null||t.init(Object.fromEntries(Object.entries(p.stores).map(([o,l])=>[o,o===p.store?S:l.getState()])))),n.dispatchFromDevtools&&typeof n.dispatch=="function"){let o=!1;const l=n.dispatch;n.dispatch=(...e)=>{l(...e)}}return t.subscribe(o=>{var l;switch(o.type){case"ACTION":return typeof o.payload!="string"?void 0:I(o.payload,e=>{if(e.type==="__setState"){if(r===void 0){u(e.state);return}Object.keys(e.state).length;const s=e.state[r];if(s==null)return;JSON.stringify(n.getState())!==JSON.stringify(s)&&u(s);return}n.dispatchFromDevtools&&typeof n.dispatch=="function"&&n.dispatch(e)});case"DISPATCH":switch(o.payload.type){case"RESET":return u(S),r===void 0?t==null?void 0:t.init(n.getState()):t==null?void 0:t.init(v(f.name));case"COMMIT":if(r===void 0){t==null||t.init(n.getState());return}return t==null?void 0:t.init(v(f.name));case"ROLLBACK":return I(o.state,e=>{if(r===void 0){u(e),t==null||t.init(n.getState());return}u(e[r]),t==null||t.init(v(f.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return I(o.state,e=>{if(r===void 0){u(e);return}JSON.stringify(n.getState())!==JSON.stringify(e[r])&&u(e[r])});case"IMPORT_STATE":{const{nextLiftedState:e}=o.payload,s=(l=e.computedStates.slice(-1)[0])==null?void 0:l.state;if(!s)return;u(r===void 0?s:s[r]),t==null||t.send(null,e);return}case"PAUSE_RECORDING":return _=!_}return}}),S},h=R,I=(d,a)=>{let i;try{i=JSON.parse(d)}catch{}i!==void 0&&a(i)};exports.devtools=h;
|
package/index.cjs99.js
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
2
|
-
[`+n+"] ";for(i in arguments[0])w(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[n];r.push(a)}Pt(e+`
|
|
3
|
-
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
4
|
-
`+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var pt={};function Rt(e,t){l.deprecationHandler!=null&&l.deprecationHandler(e,t),pt[e]||(Pt(t),pt[e]=!0)}l.suppressDeprecationWarnings=!1;l.deprecationHandler=null;function H(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function vs(e){var t,s;for(s in e)w(e,s)&&(t=e[s],H(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Je(e,t){var s=Q({},e),r;for(r in t)w(t,r)&&(se(e[r])&&se(t[r])?(s[r]={},Q(s[r],e[r]),Q(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)w(e,r)&&!w(t,r)&&se(e[r])&&(s[r]=Q({},s[r]));return s}function nt(e){e!=null&&this.set(e)}var Qe;Object.keys?Qe=Object.keys:Qe=function(e){var t,s=[];for(t in e)w(e,t)&&s.push(t);return s};var Ys={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ps(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return H(r)?r.call(t,s):r}function U(e,t,s){var r=""+Math.abs(e),a=t-r.length,n=e>=0;return(n?s?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var it=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ye=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ze={},oe={};function h(e,t,s,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(oe[e]=a),t&&(oe[t[0]]=function(){return U(a.apply(this,arguments),t[1],t[2])}),s&&(oe[s]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function Os(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ts(e){var t=e.match(it),s,r;for(s=0,r=t.length;s<r;s++)oe[t[s]]?t[s]=oe[t[s]]:t[s]=Os(t[s]);return function(a){var n="",i;for(i=0;i<r;i++)n+=H(t[i])?t[i].call(a,e):t[i];return n}}function Oe(e,t){return e.isValid()?(t=Ft(t,e.localeData()),Ze[t]=Ze[t]||Ts(t),Ze[t](e)):e.localeData().invalidDate()}function Ft(e,t){var s=5;function r(a){return t.longDateFormat(a)||a}for(Ye.lastIndex=0;s>=0&&Ye.test(e);)e=e.replace(Ye,r),Ye.lastIndex=0,s-=1;return e}var bs={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function xs(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(it).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Ns="Invalid date";function Ws(){return this._invalidDate}var Ps="%d",Rs=/\d{1,2}/;function Fs(e){return this._ordinal.replace("%d",e)}var Cs={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Ls(e,t,s,r){var a=this._relativeTime[s];return H(a)?a(e,t,s,r):a.replace(/%d/i,e)}function Us(e,t){var s=this._relativeTime[e>0?"future":"past"];return H(s)?s(t):s.replace(/%s/i,t)}var Ot={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function W(e){return typeof e=="string"?Ot[e]||Ot[e.toLowerCase()]:void 0}function ot(e){var t={},s,r;for(r in e)w(e,r)&&(s=W(r),s&&(t[s]=e[r]));return t}var Is={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Hs(e){var t=[],s;for(s in e)w(e,s)&&t.push({unit:s,priority:Is[s]});return t.sort(function(r,a){return r.priority-a.priority}),t}var Ct=/\d/,b=/\d\d/,Lt=/\d{3}/,lt=/\d{4}/,Ce=/[+-]?\d{6}/,S=/\d\d?/,Ut=/\d\d\d\d?/,It=/\d\d\d\d\d\d?/,Le=/\d{1,3}/,ut=/\d{1,4}/,Ue=/[+-]?\d{1,6}/,de=/\d+/,Ie=/[+-]?\d+/,Es=/Z|[+-]\d\d:?\d\d/gi,He=/Z|[+-]\d\d(?::?\d\d)?/gi,As=/[+-]?\d+(\.\d{1,3})?/,De=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,he=/^[1-9]\d?/,dt=/^([1-9]\d|\d)/,xe;xe={};function d(e,t,s){xe[e]=H(t)?t:function(r,a){return r&&s?s:t}}function Vs(e,t){return w(xe,e)?xe[e](t._strict,t._locale):new RegExp(Gs(e))}function Gs(e){return z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,a,n){return s||r||a||n}))}function z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function x(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function m(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=x(t)),s}var Xe={};function g(e,t){var s,r=t,a;for(typeof e=="string"&&(e=[e]),$(t)&&(r=function(n,i){i[t]=m(n)}),a=e.length,s=0;s<a;s++)Xe[e[s]]=r}function ve(e,t){g(e,function(s,r,a,n){a._w=a._w||{},t(s,a._w,a,n)})}function js(e,t,s){t!=null&&w(Xe,e)&&Xe[e](t,s._a,s,e)}function Ee(e){return e%4===0&&e%100!==0||e%400===0}var p=0,G=1,L=2,Y=3,P=4,j=5,te=6,zs=7,Zs=8;h("Y",0,0,function(){var e=this.year();return e<=9999?U(e,4):"+"+e});h(0,["YY",2],0,function(){return this.year()%100});h(0,["YYYY",4],0,"year");h(0,["YYYYY",5],0,"year");h(0,["YYYYYY",6,!0],0,"year");d("Y",Ie);d("YY",S,b);d("YYYY",ut,lt);d("YYYYY",Ue,Ce);d("YYYYYY",Ue,Ce);g(["YYYYY","YYYYYY"],p);g("YYYY",function(e,t){t[p]=e.length===2?l.parseTwoDigitYear(e):m(e)});g("YY",function(e,t){t[p]=l.parseTwoDigitYear(e)});g("Y",function(e,t){t[p]=parseInt(e,10)});function _e(e){return Ee(e)?366:365}l.parseTwoDigitYear=function(e){return m(e)+(m(e)>68?1900:2e3)};var Ht=fe("FullYear",!0);function $s(){return Ee(this.year())}function fe(e,t){return function(s){return s!=null?(Et(this,e,s),l.updateOffset(this,t),this):ye(this,e)}}function ye(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Et(e,t,s){var r,a,n,i,u;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(a?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(a?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(a?r.setUTCHours(s):r.setHours(s));case"Date":return void(a?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}n=s,i=e.month(),u=e.date(),u=u===29&&i===1&&!Ee(n)?28:u,a?r.setUTCFullYear(n,i,u):r.setFullYear(n,i,u)}}function qs(e){return e=W(e),H(this[e])?this[e]():this}function Bs(e,t){if(typeof e=="object"){e=ot(e);var s=Hs(e),r,a=s.length;for(r=0;r<a;r++)this[s[r].unit](e[s[r].unit])}else if(e=W(e),H(this[e]))return this[e](t);return this}function Js(e,t){return(e%t+t)%t}var v;Array.prototype.indexOf?v=Array.prototype.indexOf:v=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ht(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=Js(t,12);return e+=(t-s)/12,s===1?Ee(e)?29:28:31-s%7%2}h("M",["MM",2],"Mo",function(){return this.month()+1});h("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});h("MMMM",0,0,function(e){return this.localeData().months(this,e)});d("M",S,he);d("MM",S,b);d("MMM",function(e,t){return t.monthsShortRegex(e)});d("MMMM",function(e,t){return t.monthsRegex(e)});g(["M","MM"],function(e,t){t[G]=m(e)-1});g(["MMM","MMMM"],function(e,t,s,r){var a=s._locale.monthsParse(e,r,s._strict);a!=null?t[G]=a:c(s).invalidMonth=e});var Qs="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),At="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Vt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Xs=De,Ks=De;function er(e,t){return e?R(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Vt).test(t)?"format":"standalone"][e.month()]:R(this._months)?this._months:this._months.standalone}function tr(e,t){return e?R(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Vt.test(t)?"format":"standalone"][e.month()]:R(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function sr(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)n=I([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(n,"").toLocaleLowerCase();return s?t==="MMM"?(a=v.call(this._shortMonthsParse,i),a!==-1?a:null):(a=v.call(this._longMonthsParse,i),a!==-1?a:null):t==="MMM"?(a=v.call(this._shortMonthsParse,i),a!==-1?a:(a=v.call(this._longMonthsParse,i),a!==-1?a:null)):(a=v.call(this._longMonthsParse,i),a!==-1?a:(a=v.call(this._shortMonthsParse,i),a!==-1?a:null))}function rr(e,t,s){var r,a,n;if(this._monthsParseExact)return sr.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=I([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(n="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function Gt(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=m(t);else if(t=e.localeData().monthsParse(t),!$(t))return e}var s=t,r=e.date();return r=r<29?r:Math.min(r,ht(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,r):e._d.setMonth(s,r),e}function jt(e){return e!=null?(Gt(this,e),l.updateOffset(this,!0),this):ye(this,"Month")}function ar(){return ht(this.year(),this.month())}function nr(e){return this._monthsParseExact?(w(this,"_monthsRegex")||zt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=Xs),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ir(e){return this._monthsParseExact?(w(this,"_monthsRegex")||zt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=Ks),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function zt(){function e(f,_){return _.length-f.length}var t=[],s=[],r=[],a,n,i,u;for(a=0;a<12;a++)n=I([2e3,a]),i=z(this.monthsShort(n,"")),u=z(this.months(n,"")),t.push(i),s.push(u),r.push(u),r.push(i);t.sort(e),s.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function or(e,t,s,r,a,n,i){var u;return e<100&&e>=0?(u=new Date(e+400,t,s,r,a,n,i),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,s,r,a,n,i),u}function we(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ne(e,t,s){var r=7+t-s,a=(7+we(e,0,r).getUTCDay()-t)%7;return-a+r-1}function Zt(e,t,s,r,a){var n=(7+s-r)%7,i=Ne(e,r,a),u=1+7*(t-1)+n+i,f,_;return u<=0?(f=e-1,_=_e(f)+u):u>_e(e)?(f=e+1,_=u-_e(e)):(f=e,_=u),{year:f,dayOfYear:_}}function ke(e,t,s){var r=Ne(e.year(),t,s),a=Math.floor((e.dayOfYear()-r-1)/7)+1,n,i;return a<1?(i=e.year()-1,n=a+Z(i,t,s)):a>Z(e.year(),t,s)?(n=a-Z(e.year(),t,s),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function Z(e,t,s){var r=Ne(e,t,s),a=Ne(e+1,t,s);return(_e(e)-r+a)/7}h("w",["ww",2],"wo","week");h("W",["WW",2],"Wo","isoWeek");d("w",S,he);d("ww",S,b);d("W",S,he);d("WW",S,b);ve(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=m(e)});function lr(e){return ke(e,this._week.dow,this._week.doy).week}var ur={dow:0,doy:6};function dr(){return this._week.dow}function hr(){return this._week.doy}function fr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function cr(e){var t=ke(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day");h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});h("e",0,0,"weekday");h("E",0,0,"isoWeekday");d("d",S);d("e",S);d("E",S);d("dd",function(e,t){return t.weekdaysMinRegex(e)});d("ddd",function(e,t){return t.weekdaysShortRegex(e)});d("dddd",function(e,t){return t.weekdaysRegex(e)});ve(["dd","ddd","dddd"],function(e,t,s,r){var a=s._locale.weekdaysParse(e,r,s._strict);a!=null?t.d=a:c(s).invalidWeekday=e});ve(["d","e","E"],function(e,t,s,r){t[r]=m(e)});function mr(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function _r(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ft(e,t){return e.slice(t,7).concat(e.slice(0,t))}var yr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),kr=De,gr=De,Mr=De;function Sr(e,t){var s=R(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ft(s,this._week.dow):e?s[e.day()]:s}function Dr(e){return e===!0?ft(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function vr(e){return e===!0?ft(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yr(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=I([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return s?t==="dddd"?(a=v.call(this._weekdaysParse,i),a!==-1?a:null):t==="ddd"?(a=v.call(this._shortWeekdaysParse,i),a!==-1?a:null):(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null):t==="dddd"?(a=v.call(this._weekdaysParse,i),a!==-1||(a=v.call(this._shortWeekdaysParse,i),a!==-1)?a:(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null)):t==="ddd"?(a=v.call(this._shortWeekdaysParse,i),a!==-1||(a=v.call(this._weekdaysParse,i),a!==-1)?a:(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null)):(a=v.call(this._minWeekdaysParse,i),a!==-1||(a=v.call(this._weekdaysParse,i),a!==-1)?a:(a=v.call(this._shortWeekdaysParse,i),a!==-1?a:null))}function pr(e,t,s){var r,a,n;if(this._weekdaysParseExact)return Yr.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=I([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function Or(e){if(!this.isValid())return e!=null?this:NaN;var t=ye(this,"Day");return e!=null?(e=mr(e,this.localeData()),this.add(e-t,"d")):t}function Tr(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function br(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=_r(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function xr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ct.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=kr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Nr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ct.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=gr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ct.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Mr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ct(){function e(O,E){return E.length-O.length}var t=[],s=[],r=[],a=[],n,i,u,f,_;for(n=0;n<7;n++)i=I([2e3,1]).day(n),u=z(this.weekdaysMin(i,"")),f=z(this.weekdaysShort(i,"")),_=z(this.weekdays(i,"")),t.push(u),s.push(f),r.push(_),a.push(u),a.push(f),a.push(_);t.sort(e),s.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function mt(){return this.hours()%12||12}function Pr(){return this.hours()||24}h("H",["HH",2],0,"hour");h("h",["hh",2],0,mt);h("k",["kk",2],0,Pr);h("hmm",0,0,function(){return""+mt.apply(this)+U(this.minutes(),2)});h("hmmss",0,0,function(){return""+mt.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)});h("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)});h("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)});function qt(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}qt("a",!0);qt("A",!1);function Bt(e,t){return t._meridiemParse}d("a",Bt);d("A",Bt);d("H",S,dt);d("h",S,he);d("k",S,he);d("HH",S,b);d("hh",S,b);d("kk",S,b);d("hmm",Ut);d("hmmss",It);d("Hmm",Ut);d("Hmmss",It);g(["H","HH"],Y);g(["k","kk"],function(e,t,s){var r=m(e);t[Y]=r===24?0:r});g(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e});g(["h","hh"],function(e,t,s){t[Y]=m(e),c(s).bigHour=!0});g("hmm",function(e,t,s){var r=e.length-2;t[Y]=m(e.substr(0,r)),t[P]=m(e.substr(r)),c(s).bigHour=!0});g("hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[Y]=m(e.substr(0,r)),t[P]=m(e.substr(r,2)),t[j]=m(e.substr(a)),c(s).bigHour=!0});g("Hmm",function(e,t,s){var r=e.length-2;t[Y]=m(e.substr(0,r)),t[P]=m(e.substr(r))});g("Hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[Y]=m(e.substr(0,r)),t[P]=m(e.substr(r,2)),t[j]=m(e.substr(a))});function Rr(e){return(e+"").toLowerCase().charAt(0)==="p"}var Fr=/[ap]\.?m?\.?/i,Cr=fe("Hours",!0);function Lr(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var Jt={calendar:Ys,longDateFormat:bs,invalidDate:Ns,ordinal:Ps,dayOfMonthOrdinalParse:Rs,relativeTime:Cs,months:Qs,monthsShort:At,week:ur,weekdays:yr,weekdaysMin:wr,weekdaysShort:$t,meridiemParse:Fr},D={},ce={},ge;function Ur(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function Tt(e){return e&&e.toLowerCase().replace("_","-")}function Ir(e){for(var t=0,s,r,a,n;t<e.length;){for(n=Tt(e[t]).split("-"),s=n.length,r=Tt(e[t+1]),r=r?r.split("-"):null;s>0;){if(a=Ae(n.slice(0,s).join("-")),a)return a;if(r&&r.length>=s&&Ur(n,r)>=s-1)break;s--}t++}return ge}function Hr(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ae(e){var t=null,s;if(D[e]===void 0&&typeof module<"u"&&module&&module.exports&&Hr(e))try{t=ge._abbr,s=require,s("./locale/"+e),K(t)}catch{D[e]=null}return D[e]}function K(e,t){var s;return e&&(T(t)?s=q(e):s=_t(e,t),s&&(ge=s)),ge._abbr}function _t(e,t){if(t!==null){var s,r=Jt;if(t.abbr=e,D[e]!=null)Rt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=D[e]._config;else if(t.parentLocale!=null)if(D[t.parentLocale]!=null)r=D[t.parentLocale]._config;else if(s=Ae(t.parentLocale),s!=null)r=s._config;else return ce[t.parentLocale]||(ce[t.parentLocale]=[]),ce[t.parentLocale].push({name:e,config:t}),null;return D[e]=new nt(Je(r,t)),ce[e]&&ce[e].forEach(function(a){_t(a.name,a.config)}),K(e),D[e]}else return delete D[e],null}function Er(e,t){if(t!=null){var s,r,a=Jt;D[e]!=null&&D[e].parentLocale!=null?D[e].set(Je(D[e]._config,t)):(r=Ae(e),r!=null&&(a=r._config),t=Je(a,t),r==null&&(t.abbr=e),s=new nt(t),s.parentLocale=D[e],D[e]=s),K(e)}else D[e]!=null&&(D[e].parentLocale!=null?(D[e]=D[e].parentLocale,e===K()&&K(e)):D[e]!=null&&delete D[e]);return D[e]}function q(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ge;if(!R(e)){if(t=Ae(e),t)return t;e=[e]}return Ir(e)}function Ar(){return Qe(D)}function yt(e){var t,s=e._a;return s&&c(e).overflow===-2&&(t=s[G]<0||s[G]>11?G:s[L]<1||s[L]>ht(s[p],s[G])?L:s[Y]<0||s[Y]>24||s[Y]===24&&(s[P]!==0||s[j]!==0||s[te]!==0)?Y:s[P]<0||s[P]>59?P:s[j]<0||s[j]>59?j:s[te]<0||s[te]>999?te:-1,c(e)._overflowDayOfYear&&(t<p||t>L)&&(t=L),c(e)._overflowWeeks&&t===-1&&(t=zs),c(e)._overflowWeekday&&t===-1&&(t=Zs),c(e).overflow=t),e}var Vr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jr=/Z|[+-]\d\d(?::?\d\d)?/,pe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],$e=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],zr=/^\/?Date\((-?\d+)/i,Zr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,$r={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Qt(e){var t,s,r=e._i,a=Vr.exec(r)||Gr.exec(r),n,i,u,f,_=pe.length,O=$e.length;if(a){for(c(e).iso=!0,t=0,s=_;t<s;t++)if(pe[t][1].exec(a[1])){i=pe[t][0],n=pe[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(a[3]){for(t=0,s=O;t<s;t++)if($e[t][1].exec(a[3])){u=(a[2]||" ")+$e[t][0];break}if(u==null){e._isValid=!1;return}}if(!n&&u!=null){e._isValid=!1;return}if(a[4])if(jr.exec(a[4]))f="Z";else{e._isValid=!1;return}e._f=i+(u||"")+(f||""),kt(e)}else e._isValid=!1}function qr(e,t,s,r,a,n){var i=[Br(e),At.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(a,10)];return n&&i.push(parseInt(n,10)),i}function Br(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Jr(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Qr(e,t,s){if(e){var r=$t.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return c(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function Xr(e,t,s){if(e)return $r[e];if(t)return 0;var r=parseInt(s,10),a=r%100,n=(r-a)/100;return n*60+a}function Xt(e){var t=Zr.exec(Jr(e._i)),s;if(t){if(s=qr(t[4],t[3],t[2],t[5],t[6],t[7]),!Qr(t[1],s,e))return;e._a=s,e._tzm=Xr(t[8],t[9],t[10]),e._d=we.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),c(e).rfc2822=!0}else e._isValid=!1}function Kr(e){var t=zr.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Qt(e),e._isValid===!1)delete e._isValid;else return;if(Xt(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:l.createFromInputFallback(e)}l.createFromInputFallback=N("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ne(e,t,s){return e??t??s}function ea(e){var t=new Date(l.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function wt(e){var t,s,r=[],a,n,i;if(!e._d){for(a=ea(e),e._w&&e._a[L]==null&&e._a[G]==null&&ta(e),e._dayOfYear!=null&&(i=ne(e._a[p],a[p]),(e._dayOfYear>_e(i)||e._dayOfYear===0)&&(c(e)._overflowDayOfYear=!0),s=we(i,0,e._dayOfYear),e._a[G]=s.getUTCMonth(),e._a[L]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Y]===24&&e._a[P]===0&&e._a[j]===0&&e._a[te]===0&&(e._nextDay=!0,e._a[Y]=0),e._d=(e._useUTC?we:or).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Y]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(c(e).weekdayMismatch=!0)}}function ta(e){var t,s,r,a,n,i,u,f,_;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,s=ne(t.GG,e._a[p],ke(M(),1,4).year),r=ne(t.W,1),a=ne(t.E,1),(a<1||a>7)&&(f=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,_=ke(M(),n,i),s=ne(t.gg,e._a[p],_.year),r=ne(t.w,_.week),t.d!=null?(a=t.d,(a<0||a>6)&&(f=!0)):t.e!=null?(a=t.e+n,(t.e<0||t.e>6)&&(f=!0)):a=n),r<1||r>Z(s,n,i)?c(e)._overflowWeeks=!0:f!=null?c(e)._overflowWeekday=!0:(u=Zt(s,r,a,n,i),e._a[p]=u.year,e._dayOfYear=u.dayOfYear)}l.ISO_8601=function(){};l.RFC_2822=function(){};function kt(e){if(e._f===l.ISO_8601){Qt(e);return}if(e._f===l.RFC_2822){Xt(e);return}e._a=[],c(e).empty=!0;var t=""+e._i,s,r,a,n,i,u=t.length,f=0,_,O;for(a=Ft(e._f,e._locale).match(it)||[],O=a.length,s=0;s<O;s++)n=a[s],r=(t.match(Vs(n,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&c(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),f+=r.length),oe[n]?(r?c(e).empty=!1:c(e).unusedTokens.push(n),js(n,r,e)):e._strict&&!r&&c(e).unusedTokens.push(n);c(e).charsLeftOver=u-f,t.length>0&&c(e).unusedInput.push(t),e._a[Y]<=12&&c(e).bigHour===!0&&e._a[Y]>0&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[Y]=sa(e._locale,e._a[Y],e._meridiem),_=c(e).era,_!==null&&(e._a[p]=e._locale.erasConvertYear(_,e._a[p])),wt(e),yt(e)}function sa(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function ra(e){var t,s,r,a,n,i,u=!1,f=e._f.length;if(f===0){c(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<f;a++)n=0,i=!1,t=at({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],kt(t),rt(t)&&(i=!0),n+=c(t).charsLeftOver,n+=c(t).unusedTokens.length*10,c(t).score=n,u?n<r&&(r=n,s=t):(r==null||n<r||i)&&(r=n,s=t,i&&(u=!0));Q(e,s||t)}function aa(e){if(!e._d){var t=ot(e._i),s=t.day===void 0?t.date:t.day;e._a=Wt([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),wt(e)}}function na(e){var t=new Se(yt(Kt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Kt(e){var t=e._i,s=e._f;return e._locale=e._locale||q(e._l),t===null||s===void 0&&t===""?Fe({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),F(t)?new Se(yt(t)):(Me(t)?e._d=t:R(s)?ra(e):s?kt(e):ia(e),rt(e)||(e._d=null),e))}function ia(e){var t=e._i;T(t)?e._d=new Date(l.now()):Me(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Kr(e):R(t)?(e._a=Wt(t.slice(0),function(s){return parseInt(s,10)}),wt(e)):se(t)?aa(e):$(t)?e._d=new Date(t):l.createFromInputFallback(e)}function es(e,t,s,r,a){var n={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(se(e)&&st(e)||R(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=a,n._l=s,n._i=e,n._f=t,n._strict=r,na(n)}function M(e,t,s,r){return es(e,t,s,r,!1)}var oa=N("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=M.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Fe()}),la=N("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=M.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Fe()});function ts(e,t){var s,r;if(t.length===1&&R(t[0])&&(t=t[0]),!t.length)return M();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function ua(){var e=[].slice.call(arguments,0);return ts("isBefore",e)}function da(){var e=[].slice.call(arguments,0);return ts("isAfter",e)}var ha=function(){return Date.now?Date.now():+new Date},me=["year","quarter","month","week","day","hour","minute","second","millisecond"];function fa(e){var t,s=!1,r,a=me.length;for(t in e)if(w(e,t)&&!(v.call(me,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[me[r]]){if(s)return!1;parseFloat(e[me[r]])!==m(e[me[r]])&&(s=!0)}return!0}function ca(){return this._isValid}function ma(){return C(NaN)}function Ve(e){var t=ot(e),s=t.year||0,r=t.quarter||0,a=t.month||0,n=t.week||t.isoWeek||0,i=t.day||0,u=t.hour||0,f=t.minute||0,_=t.second||0,O=t.millisecond||0;this._isValid=fa(t),this._milliseconds=+O+_*1e3+f*6e4+u*1e3*60*60,this._days=+i+n*7,this._months=+a+r*3+s*12,this._data={},this._locale=q(),this._bubble()}function Te(e){return e instanceof Ve}function Ke(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function _a(e,t,s){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),n=0,i;for(i=0;i<r;i++)(s&&e[i]!==t[i]||!s&&m(e[i])!==m(t[i]))&&n++;return n+a}function ss(e,t){h(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+U(~~(s/60),2)+t+U(~~s%60,2)})}ss("Z",":");ss("ZZ","");d("Z",He);d("ZZ",He);g(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=gt(He,e)});var ya=/([\+\-]|\d\d)/gi;function gt(e,t){var s=(t||"").match(e),r,a,n;return s===null?null:(r=s[s.length-1]||[],a=(r+"").match(ya)||["-",0,0],n=+(a[1]*60)+m(a[2]),n===0?0:a[0]==="+"?n:-n)}function Mt(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(F(e)||Me(e)?e.valueOf():M(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),l.updateOffset(s,!1),s):M(e).local()}function et(e){return-Math.round(e._d.getTimezoneOffset())}l.updateOffset=function(){};function wa(e,t,s){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=gt(He,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(a=et(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?ns(this,C(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:et(this)}function ka(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ga(e){return this.utcOffset(0,e)}function Ma(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(et(this),"m")),this}function Sa(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=gt(Es,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Da(e){return this.isValid()?(e=e?M(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function va(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ya(){if(!T(this._isDSTShifted))return this._isDSTShifted;var e={},t;return at(e,this),e=Kt(e),e._a?(t=e._isUTC?I(e._a):M(e._a),this._isDSTShifted=this.isValid()&&_a(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function pa(){return this.isValid()?!this._isUTC:!1}function Oa(){return this.isValid()?this._isUTC:!1}function rs(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ta=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ba=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function C(e,t){var s=e,r=null,a,n,i;return Te(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:$(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=Ta.exec(e))?(a=r[1]==="-"?-1:1,s={y:0,d:m(r[L])*a,h:m(r[Y])*a,m:m(r[P])*a,s:m(r[j])*a,ms:m(Ke(r[te]*1e3))*a}):(r=ba.exec(e))?(a=r[1]==="-"?-1:1,s={y:ee(r[2],a),M:ee(r[3],a),w:ee(r[4],a),d:ee(r[5],a),h:ee(r[6],a),m:ee(r[7],a),s:ee(r[8],a)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=xa(M(s.from),M(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),n=new Ve(s),Te(e)&&w(e,"_locale")&&(n._locale=e._locale),Te(e)&&w(e,"_isValid")&&(n._isValid=e._isValid),n}C.fn=Ve.prototype;C.invalid=ma;function ee(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function bt(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function xa(e,t){var s;return e.isValid()&&t.isValid()?(t=Mt(t,e),e.isBefore(t)?s=bt(e,t):(s=bt(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function as(e,t){return function(s,r){var a,n;return r!==null&&!isNaN(+r)&&(Rt(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=s,s=r,r=n),a=C(s,r),ns(this,a,e),this}}function ns(e,t,s,r){var a=t._milliseconds,n=Ke(t._days),i=Ke(t._months);e.isValid()&&(r=r??!0,i&&Gt(e,ye(e,"Month")+i*s),n&&Et(e,"Date",ye(e,"Date")+n*s),a&&e._d.setTime(e._d.valueOf()+a*s),r&&l.updateOffset(e,n||i))}var Na=as(1,"add"),Wa=as(-1,"subtract");function is(e){return typeof e=="string"||e instanceof String}function Pa(e){return F(e)||Me(e)||is(e)||$(e)||Fa(e)||Ra(e)||e===null||e===void 0}function Ra(e){var t=se(e)&&!st(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,n,i=r.length;for(a=0;a<i;a+=1)n=r[a],s=s||w(e,n);return t&&s}function Fa(e){var t=R(e),s=!1;return t&&(s=e.filter(function(r){return!$(r)&&is(e)}).length===0),t&&s}function Ca(e){var t=se(e)&&!st(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,n;for(a=0;a<r.length;a+=1)n=r[a],s=s||w(e,n);return t&&s}function La(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function Ua(e,t){arguments.length===1&&(arguments[0]?Pa(arguments[0])?(e=arguments[0],t=void 0):Ca(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||M(),r=Mt(s,this).startOf("day"),a=l.calendarFormat(this,r)||"sameElse",n=t&&(H(t[a])?t[a].call(this,s):t[a]);return this.format(n||this.localeData().calendar(a,this,M(s)))}function Ia(){return new Se(this)}function Ha(e,t){var s=F(e)?e:M(e);return this.isValid()&&s.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function Ea(e,t){var s=F(e)?e:M(e);return this.isValid()&&s.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function Aa(e,t,s,r){var a=F(e)?e:M(e),n=F(t)?t:M(t);return this.isValid()&&a.isValid()&&n.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,s):!this.isBefore(a,s))&&(r[1]===")"?this.isBefore(n,s):!this.isAfter(n,s))):!1}function Va(e,t){var s=F(e)?e:M(e),r;return this.isValid()&&s.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Ga(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ja(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function za(e,t,s){var r,a,n;if(!this.isValid())return NaN;if(r=Mt(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=W(t),t){case"year":n=be(this,r)/12;break;case"month":n=be(this,r);break;case"quarter":n=be(this,r)/3;break;case"second":n=(this-r)/1e3;break;case"minute":n=(this-r)/6e4;break;case"hour":n=(this-r)/36e5;break;case"day":n=(this-r-a)/864e5;break;case"week":n=(this-r-a)/6048e5;break;default:n=this-r}return s?n:x(n)}function be(e,t){if(e.date()<t.date())return-be(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),a,n;return t-r<0?(a=e.clone().add(s-1,"months"),n=(t-r)/(r-a)):(a=e.clone().add(s+1,"months"),n=(t-r)/(a-r)),-(s+n)||0}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Za(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $a(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?Oe(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):H(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Oe(s,"Z")):Oe(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function qa(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,a,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(s+r+a+n)}function Ba(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=Oe(this,e);return this.localeData().postformat(t)}function Ja(e,t){return this.isValid()&&(F(e)&&e.isValid()||M(e).isValid())?C({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Qa(e){return this.from(M(),e)}function Xa(e,t){return this.isValid()&&(F(e)&&e.isValid()||M(e).isValid())?C({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ka(e){return this.to(M(),e)}function os(e){var t;return e===void 0?this._locale._abbr:(t=q(e),t!=null&&(this._locale=t),this)}var ls=N("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function us(){return this._locale}var We=1e3,le=60*We,Pe=60*le,ds=(365*400+97)*24*Pe;function ue(e,t){return(e%t+t)%t}function hs(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-ds:new Date(e,t,s).valueOf()}function fs(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-ds:Date.UTC(e,t,s)}function en(e){var t,s;if(e=W(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?fs:hs,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ue(t+(this._isUTC?0:this.utcOffset()*le),Pe);break;case"minute":t=this._d.valueOf(),t-=ue(t,le);break;case"second":t=this._d.valueOf(),t-=ue(t,We);break}return this._d.setTime(t),l.updateOffset(this,!0),this}function tn(e){var t,s;if(e=W(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?fs:hs,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Pe-ue(t+(this._isUTC?0:this.utcOffset()*le),Pe)-1;break;case"minute":t=this._d.valueOf(),t+=le-ue(t,le)-1;break;case"second":t=this._d.valueOf(),t+=We-ue(t,We)-1;break}return this._d.setTime(t),l.updateOffset(this,!0),this}function sn(){return this._d.valueOf()-(this._offset||0)*6e4}function rn(){return Math.floor(this.valueOf()/1e3)}function an(){return new Date(this.valueOf())}function nn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function on(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ln(){return this.isValid()?this.toISOString():null}function un(){return rt(this)}function dn(){return Q({},c(this))}function hn(){return c(this).overflow}function fn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr");h("NN",0,0,"eraAbbr");h("NNN",0,0,"eraAbbr");h("NNNN",0,0,"eraName");h("NNNNN",0,0,"eraNarrow");h("y",["y",1],"yo","eraYear");h("y",["yy",2],0,"eraYear");h("y",["yyy",3],0,"eraYear");h("y",["yyyy",4],0,"eraYear");d("N",St);d("NN",St);d("NNN",St);d("NNNN",vn);d("NNNNN",Yn);g(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var a=s._locale.erasParse(e,r,s._strict);a?c(s).era=a:c(s).invalidEra=e});d("y",de);d("yy",de);d("yyy",de);d("yyyy",de);d("yo",pn);g(["y","yy","yyy","yyyy"],p);g(["yo"],function(e,t,s,r){var a;s._locale._eraYearOrdinalRegex&&(a=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[p]=s._locale.eraYearOrdinalParse(e,a):t[p]=parseInt(e,10)});function cn(e,t){var s,r,a,n=this._eras||q("en")._eras;for(s=0,r=n.length;s<r;++s){switch(typeof n[s].since){case"string":a=l(n[s].since).startOf("day"),n[s].since=a.valueOf();break}switch(typeof n[s].until){case"undefined":n[s].until=1/0;break;case"string":a=l(n[s].until).startOf("day").valueOf(),n[s].until=a.valueOf();break}}return n}function mn(e,t,s){var r,a,n=this.eras(),i,u,f;for(e=e.toUpperCase(),r=0,a=n.length;r<a;++r)if(i=n[r].name.toUpperCase(),u=n[r].abbr.toUpperCase(),f=n[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(u===e)return n[r];break;case"NNNN":if(i===e)return n[r];break;case"NNNNN":if(f===e)return n[r];break}else if([i,u,f].indexOf(e)>=0)return n[r]}function _n(e,t){var s=e.since<=e.until?1:-1;return t===void 0?l(e.since).year():l(e.since).year()+(t-e.offset)*s}function yn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function wn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function kn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function gn(){var e,t,s,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(s=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-l(a[e].since).year())*s+a[e].offset;return this.year()}function Mn(e){return w(this,"_erasNameRegex")||Dt.call(this),e?this._erasNameRegex:this._erasRegex}function Sn(e){return w(this,"_erasAbbrRegex")||Dt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Dn(e){return w(this,"_erasNarrowRegex")||Dt.call(this),e?this._erasNarrowRegex:this._erasRegex}function St(e,t){return t.erasAbbrRegex(e)}function vn(e,t){return t.erasNameRegex(e)}function Yn(e,t){return t.erasNarrowRegex(e)}function pn(e,t){return t._eraYearOrdinalRegex||de}function Dt(){var e=[],t=[],s=[],r=[],a,n,i,u,f,_=this.eras();for(a=0,n=_.length;a<n;++a)i=z(_[a].name),u=z(_[a].abbr),f=z(_[a].narrow),t.push(i),e.push(u),s.push(f),r.push(i),r.push(u),r.push(f);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}h(0,["gg",2],0,function(){return this.weekYear()%100});h(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ge(e,t){h(0,[e,e.length],0,t)}Ge("gggg","weekYear");Ge("ggggg","weekYear");Ge("GGGG","isoWeekYear");Ge("GGGGG","isoWeekYear");d("G",Ie);d("g",Ie);d("GG",S,b);d("gg",S,b);d("GGGG",ut,lt);d("gggg",ut,lt);d("GGGGG",Ue,Ce);d("ggggg",Ue,Ce);ve(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=m(e)});ve(["gg","GG"],function(e,t,s,r){t[r]=l.parseTwoDigitYear(e)});function On(e){return cs.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Tn(e){return cs.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function bn(){return Z(this.year(),1,4)}function xn(){return Z(this.isoWeekYear(),1,4)}function Nn(){var e=this.localeData()._week;return Z(this.year(),e.dow,e.doy)}function Wn(){var e=this.localeData()._week;return Z(this.weekYear(),e.dow,e.doy)}function cs(e,t,s,r,a){var n;return e==null?ke(this,r,a).year:(n=Z(e,r,a),t>n&&(t=n),Pn.call(this,e,t,s,r,a))}function Pn(e,t,s,r,a){var n=Zt(e,t,s,r,a),i=we(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}h("Q",0,"Qo","quarter");d("Q",Ct);g("Q",function(e,t){t[G]=(m(e)-1)*3});function Rn(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date");d("D",S,he);d("DD",S,b);d("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});g(["D","DD"],L);g("Do",function(e,t){t[L]=m(e.match(S)[0])});var ms=fe("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear");d("DDD",Le);d("DDDD",Lt);g(["DDD","DDDD"],function(e,t,s){s._dayOfYear=m(e)});function Fn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}h("m",["mm",2],0,"minute");d("m",S,dt);d("mm",S,b);g(["m","mm"],P);var Cn=fe("Minutes",!1);h("s",["ss",2],0,"second");d("s",S,dt);d("ss",S,b);g(["s","ss"],j);var Ln=fe("Seconds",!1);h("S",0,0,function(){return~~(this.millisecond()/100)});h(0,["SS",2],0,function(){return~~(this.millisecond()/10)});h(0,["SSS",3],0,"millisecond");h(0,["SSSS",4],0,function(){return this.millisecond()*10});h(0,["SSSSS",5],0,function(){return this.millisecond()*100});h(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});h(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});h(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});h(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});d("S",Le,Ct);d("SS",Le,b);d("SSS",Le,Lt);var X,_s;for(X="SSSS";X.length<=9;X+="S")d(X,de);function Un(e,t){t[te]=m(("0."+e)*1e3)}for(X="S";X.length<=9;X+="S")g(X,Un);_s=fe("Milliseconds",!1);h("z",0,0,"zoneAbbr");h("zz",0,0,"zoneName");function In(){return this._isUTC?"UTC":""}function Hn(){return this._isUTC?"Coordinated Universal Time":""}var o=Se.prototype;o.add=Na;o.calendar=Ua;o.clone=Ia;o.diff=za;o.endOf=tn;o.format=Ba;o.from=Ja;o.fromNow=Qa;o.to=Xa;o.toNow=Ka;o.get=qs;o.invalidAt=hn;o.isAfter=Ha;o.isBefore=Ea;o.isBetween=Aa;o.isSame=Va;o.isSameOrAfter=Ga;o.isSameOrBefore=ja;o.isValid=un;o.lang=ls;o.locale=os;o.localeData=us;o.max=la;o.min=oa;o.parsingFlags=dn;o.set=Bs;o.startOf=en;o.subtract=Wa;o.toArray=nn;o.toObject=on;o.toDate=an;o.toISOString=$a;o.inspect=qa;typeof Symbol<"u"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});o.toJSON=ln;o.toString=Za;o.unix=rn;o.valueOf=sn;o.creationData=fn;o.eraName=yn;o.eraNarrow=wn;o.eraAbbr=kn;o.eraYear=gn;o.year=Ht;o.isLeapYear=$s;o.weekYear=On;o.isoWeekYear=Tn;o.quarter=o.quarters=Rn;o.month=jt;o.daysInMonth=ar;o.week=o.weeks=fr;o.isoWeek=o.isoWeeks=cr;o.weeksInYear=Nn;o.weeksInWeekYear=Wn;o.isoWeeksInYear=bn;o.isoWeeksInISOWeekYear=xn;o.date=ms;o.day=o.days=Or;o.weekday=Tr;o.isoWeekday=br;o.dayOfYear=Fn;o.hour=o.hours=Cr;o.minute=o.minutes=Cn;o.second=o.seconds=Ln;o.millisecond=o.milliseconds=_s;o.utcOffset=wa;o.utc=ga;o.local=Ma;o.parseZone=Sa;o.hasAlignedHourOffset=Da;o.isDST=va;o.isLocal=pa;o.isUtcOffset=Oa;o.isUtc=rs;o.isUTC=rs;o.zoneAbbr=In;o.zoneName=Hn;o.dates=N("dates accessor is deprecated. Use date instead.",ms);o.months=N("months accessor is deprecated. Use month instead",jt);o.years=N("years accessor is deprecated. Use year instead",Ht);o.zone=N("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ka);o.isDSTShifted=N("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ya);function En(e){return M(e*1e3)}function An(){return M.apply(null,arguments).parseZone()}function ys(e){return e}var k=nt.prototype;k.calendar=ps;k.longDateFormat=xs;k.invalidDate=Ws;k.ordinal=Fs;k.preparse=ys;k.postformat=ys;k.relativeTime=Ls;k.pastFuture=Us;k.set=vs;k.eras=cn;k.erasParse=mn;k.erasConvertYear=_n;k.erasAbbrRegex=Sn;k.erasNameRegex=Mn;k.erasNarrowRegex=Dn;k.months=er;k.monthsShort=tr;k.monthsParse=rr;k.monthsRegex=ir;k.monthsShortRegex=nr;k.week=lr;k.firstDayOfYear=hr;k.firstDayOfWeek=dr;k.weekdays=Sr;k.weekdaysMin=vr;k.weekdaysShort=Dr;k.weekdaysParse=pr;k.weekdaysRegex=xr;k.weekdaysShortRegex=Nr;k.weekdaysMinRegex=Wr;k.isPM=Rr;k.meridiem=Lr;function Re(e,t,s,r){var a=q(),n=I().set(r,t);return a[s](n,e)}function ws(e,t,s){if($(e)&&(t=e,e=void 0),e=e||"",t!=null)return Re(e,t,s,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Re(e,r,s,"month");return a}function vt(e,t,s,r){typeof e=="boolean"?($(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,$(t)&&(s=t,t=void 0),t=t||"");var a=q(),n=e?a._week.dow:0,i,u=[];if(s!=null)return Re(t,(s+n)%7,r,"day");for(i=0;i<7;i++)u[i]=Re(t,(i+n)%7,r,"day");return u}function Vn(e,t){return ws(e,t,"months")}function Gn(e,t){return ws(e,t,"monthsShort")}function jn(e,t,s){return vt(e,t,s,"weekdays")}function zn(e,t,s){return vt(e,t,s,"weekdaysShort")}function Zn(e,t,s){return vt(e,t,s,"weekdaysMin")}K("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=m(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}});l.lang=N("moment.lang is deprecated. Use moment.locale instead.",K);l.langData=N("moment.langData is deprecated. Use moment.localeData instead.",q);var A=Math.abs;function $n(){var e=this._data;return this._milliseconds=A(this._milliseconds),this._days=A(this._days),this._months=A(this._months),e.milliseconds=A(e.milliseconds),e.seconds=A(e.seconds),e.minutes=A(e.minutes),e.hours=A(e.hours),e.months=A(e.months),e.years=A(e.years),this}function ks(e,t,s,r){var a=C(t,s);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function qn(e,t){return ks(this,e,t,1)}function Bn(e,t){return ks(this,e,t,-1)}function xt(e){return e<0?Math.floor(e):Math.ceil(e)}function Jn(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,a,n,i,u,f;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=xt(tt(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,a=x(e/1e3),r.seconds=a%60,n=x(a/60),r.minutes=n%60,i=x(n/60),r.hours=i%24,t+=x(i/24),f=x(gs(t)),s+=f,t-=xt(tt(f)),u=x(s/12),s%=12,r.days=t,r.months=s,r.years=u,this}function gs(e){return e*4800/146097}function tt(e){return e*146097/4800}function Qn(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=W(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+gs(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(tt(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function B(e){return function(){return this.as(e)}}var Ms=B("ms"),Xn=B("s"),Kn=B("m"),ei=B("h"),ti=B("d"),si=B("w"),ri=B("M"),ai=B("Q"),ni=B("y"),ii=Ms;function oi(){return C(this)}function li(e){return e=W(e),this.isValid()?this[e+"s"]():NaN}function re(e){return function(){return this.isValid()?this._data[e]:NaN}}var ui=re("milliseconds"),di=re("seconds"),hi=re("minutes"),fi=re("hours"),ci=re("days"),mi=re("months"),_i=re("years");function yi(){return x(this.days()/7)}var V=Math.round,ie={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function wi(e,t,s,r,a){return a.relativeTime(t||1,!!s,e,r)}function ki(e,t,s,r){var a=C(e).abs(),n=V(a.as("s")),i=V(a.as("m")),u=V(a.as("h")),f=V(a.as("d")),_=V(a.as("M")),O=V(a.as("w")),E=V(a.as("y")),J=n<=s.ss&&["s",n]||n<s.s&&["ss",n]||i<=1&&["m"]||i<s.m&&["mm",i]||u<=1&&["h"]||u<s.h&&["hh",u]||f<=1&&["d"]||f<s.d&&["dd",f];return s.w!=null&&(J=J||O<=1&&["w"]||O<s.w&&["ww",O]),J=J||_<=1&&["M"]||_<s.M&&["MM",_]||E<=1&&["y"]||["yy",E],J[2]=t,J[3]=+e>0,J[4]=r,wi.apply(null,J)}function gi(e){return e===void 0?V:typeof e=="function"?(V=e,!0):!1}function Mi(e,t){return ie[e]===void 0?!1:t===void 0?ie[e]:(ie[e]=t,e==="s"&&(ie.ss=t-1),!0)}function Si(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=ie,a,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},ie,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),n=ki(this,!s,r,a),s&&(n=a.pastFuture(+this,n)),a.postformat(n)}var qe=Math.abs;function ae(e){return(e>0)-(e<0)||+e}function je(){if(!this.isValid())return this.localeData().invalidDate();var e=qe(this._milliseconds)/1e3,t=qe(this._days),s=qe(this._months),r,a,n,i,u=this.asSeconds(),f,_,O,E;return u?(r=x(e/60),a=x(r/60),e%=60,r%=60,n=x(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",f=u<0?"-":"",_=ae(this._months)!==ae(u)?"-":"",O=ae(this._days)!==ae(u)?"-":"",E=ae(this._milliseconds)!==ae(u)?"-":"",f+"P"+(n?_+n+"Y":"")+(s?_+s+"M":"")+(t?O+t+"D":"")+(a||r||e?"T":"")+(a?E+a+"H":"")+(r?E+r+"M":"")+(e?E+i+"S":"")):"P0D"}var y=Ve.prototype;y.isValid=ca;y.abs=$n;y.add=qn;y.subtract=Bn;y.as=Qn;y.asMilliseconds=Ms;y.asSeconds=Xn;y.asMinutes=Kn;y.asHours=ei;y.asDays=ti;y.asWeeks=si;y.asMonths=ri;y.asQuarters=ai;y.asYears=ni;y.valueOf=ii;y._bubble=Jn;y.clone=oi;y.get=li;y.milliseconds=ui;y.seconds=di;y.minutes=hi;y.hours=fi;y.days=ci;y.weeks=yi;y.months=mi;y.years=_i;y.humanize=Si;y.toISOString=je;y.toString=je;y.toJSON=je;y.locale=os;y.localeData=us;y.toIsoString=N("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",je);y.lang=ls;h("X",0,0,"unix");h("x",0,0,"valueOf");d("x",Ie);d("X",As);g("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)});g("x",function(e,t,s){s._d=new Date(m(e))});l.version="2.30.1";Ss(M);l.fn=o;l.min=ua;l.max=da;l.now=ha;l.utc=I;l.unix=En;l.months=Vn;l.isDate=Me;l.locale=K;l.invalid=Fe;l.duration=C;l.isMoment=F;l.weekdays=jn;l.parseZone=An;l.localeData=q;l.isDuration=Te;l.monthsShort=Gn;l.weekdaysMin=Zn;l.defineLocale=_t;l.updateLocale=Er;l.locales=Ar;l.weekdaysShort=zn;l.normalizeUnits=W;l.relativeTimeRounding=gi;l.relativeTimeThreshold=Mi;l.calendarFormat=La;l.prototype=o;l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};exports.default=l;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs106.js"),u=n=>(r,m,e)=>(e.setState=(t,i,...o)=>{const c=typeof t=="function"?s.produce(t):t;return r(c,i,...o)},n(e.setState,m,e)),S=u;exports.immer=S;
|
package/index.es10.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r, Fragment as R } from "react/jsx-runtime";
|
|
2
|
-
import { useVirtualizer as I } from "./index.
|
|
2
|
+
import { useVirtualizer as I } from "./index.es118.js";
|
|
3
3
|
import x, { useCallback as L, useMemo as j } from "react";
|
|
4
|
-
import { useToggle as B } from "./index.
|
|
4
|
+
import { useToggle as B } from "./index.es109.js";
|
|
5
5
|
import { strings as E } from "./index.es94.js";
|
|
6
6
|
import M from "./index.es3.js";
|
|
7
7
|
import { ShouldRender as S } from "./index.es14.js";
|
|
@@ -12,7 +12,7 @@ import { Command as _, CommandInput as $, CommandList as A, CommandEmpty as G, C
|
|
|
12
12
|
import { Popover as D, PopoverTrigger as H, PopoverContent as J } from "./index.es56.js";
|
|
13
13
|
import { selectVariants as K } from "./index.es61.js";
|
|
14
14
|
import { debounce as Q, cn as U } from "./index.es82.js";
|
|
15
|
-
import W from "./index.
|
|
15
|
+
import W from "./index.es107.js";
|
|
16
16
|
function fr({
|
|
17
17
|
placeholder: i,
|
|
18
18
|
options: e,
|