From 59c12c7b91a8f3f45f2cb289ad6dc43a58d09718 Mon Sep 17 00:00:00 2001 From: fishjar Date: Tue, 15 Aug 2023 03:32:08 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20fishjar/?= =?UTF-8?q?kiss-translator@5260ed8c8d75b3e668bf810f735a8c7cc1ad7c3e=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .nojekyll | 0 _locales/en/messages.json | 8 + _locales/zh_CN/messages.json | 8 + asset-manifest.json | 12 + content.html | 346 + favicon.ico | Bin 0 -> 15086 bytes images/logo128.png | Bin 0 -> 3441 bytes images/logo16.png | Bin 0 -> 469 bytes images/logo192.png | Bin 0 -> 6521 bytes images/logo32.png | Bin 0 -> 898 bytes images/logo48.png | Bin 0 -> 2570 bytes index.html | 1 + kiss-translator.user.js | 28330 +++++++++++++++++ main.js | 31959 +++++++++++++++++++ manifest.firefox.json | 36 + manifest.json | 38 + options.html | 1 + options.js | 55405 +++++++++++++++++++++++++++++++++ 18 files changed, 116144 insertions(+) create mode 100644 .nojekyll create mode 100644 _locales/en/messages.json create mode 100644 _locales/zh_CN/messages.json create mode 100644 asset-manifest.json create mode 100644 content.html create mode 100644 favicon.ico create mode 100644 images/logo128.png create mode 100644 images/logo16.png create mode 100644 images/logo192.png create mode 100644 images/logo32.png create mode 100644 images/logo48.png create mode 100644 index.html create mode 100644 kiss-translator.user.js create mode 100644 main.js create mode 100644 manifest.firefox.json create mode 100644 manifest.json create mode 100644 options.html create mode 100644 options.js diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/_locales/en/messages.json b/_locales/en/messages.json new file mode 100644 index 0000000..c1d3536 --- /dev/null +++ b/_locales/en/messages.json @@ -0,0 +1,8 @@ +{ + "app_name": { + "message": "KISS Translator" + }, + "app_description": { + "message": "A minimalist bilingual translation Extension & Greasemonkey Script" + } +} diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json new file mode 100644 index 0000000..5ec9fca --- /dev/null +++ b/_locales/zh_CN/messages.json @@ -0,0 +1,8 @@ +{ + "app_name": { + "message": "简约翻译" + }, + "app_description": { + "message": "一个简约的双语网页翻译扩展 & 油猴脚本" + } +} diff --git a/asset-manifest.json b/asset-manifest.json new file mode 100644 index 0000000..a582b8d --- /dev/null +++ b/asset-manifest.json @@ -0,0 +1,12 @@ +{ + "files": { + "main.js": "/main.js", + "options.js": "/options.js", + "kiss-translator.user.js": "/kiss-translator.user.js", + "options.html": "/options.html", + "index.html": "/index.html" + }, + "entrypoints": [ + "main.js" + ] +} \ No newline at end of file diff --git a/content.html b/content.html new file mode 100644 index 0000000..c757f1c --- /dev/null +++ b/content.html @@ -0,0 +1,346 @@ + + + + + + %REACT_APP_NAME% + + + + + +
+

React is a JavaScript library for building user interfaces.

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

React is a JavaScript library for building user interfaces.

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

React is a JavaScript library for building user interfaces.

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

React is a JavaScript library for building user interfaces.

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

React is a JavaScript library for building user interfaces.

+
    +
  • + Declarative: React makes it painless to create interactive UIs. + Design simple views for each state in your application, and React + will efficiently update and render just the right components when + your data changes. Declarative views make your code more + predictable, simpler to understand, and easier to debug. +
  • +
  • + Component-Based: Build encapsulated components that manage their own + state, then compose them to make complex UIs. Since component logic + is written in JavaScript instead of templates, you can easily pass + rich data through your app and keep the state out of the DOM. +
  • +
  • + React 使创建交互式 UI + 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React + 能高效更新并渲染合适的组件。 +
  • +
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。
  • +
+
+

+

+

+

+

+

+

+

+

+

+

+

+
+

React is a JavaScript library for building user interfaces.

+
    +
  • + Declarative: React makes it painless to create interactive UIs. + Design simple views for each state in your application, and React + will efficiently update and render just the right components when + your data changes. Declarative views make your code more + predictable, simpler to understand, and easier to debug. +
  • +
  • + Component-Based: Build encapsulated components that manage their own + state, then compose them to make complex UIs. Since component logic + is written in JavaScript instead of templates, you can easily pass + rich data through your app and keep the state out of the DOM. +
  • +
  • + React 使创建交互式 UI + 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React + 能高效更新并渲染合适的组件。 +
  • +
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。
  • +
+
+

+

+

+

+

+

+

+

+

+

+

+

+

+

+

+

+

+

+
+

React is a JavaScript library for building user interfaces.

+
    +
  • + Declarative: React makes it painless to create interactive UIs. + Design simple views for each state in your application, and React + will efficiently update and render just the right components when + your data changes. Declarative views make your code more + predictable, simpler to understand, and easier to debug. +
  • +
  • + Component-Based: Build encapsulated components that manage their own + state, then compose them to make complex UIs. Since component logic + is written in JavaScript instead of templates, you can easily pass + rich data through your app and keep the state out of the DOM. +
  • +
  • + React 使创建交互式 UI + 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React + 能高效更新并渲染合适的组件。 +
  • +
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。
  • +
+
+

+

+

+

+

+

+

+

+

+

+

+

+

+

+
+

+ React is a JavaScript library for + building user interfaces. +

+
    +
  • + Declarative: React makes it painless to create interactive UIs. + Design simple views for each state in your application, and React + will efficiently update and render just the right components when + your data changes. Declarative views make your code more + predictable, simpler to understand, and easier to debug. +
  • +
  • + Component-Based: Build encapsulated components that manage their own + state, then compose them to make complex UIs. Since component logic + is written in JavaScript instead of templates, you can easily pass + rich data through your app and keep the state out of the DOM. +
  • +
  • + React 使创建交互式 UI + 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React + 能高效更新并渲染合适的组件。 +
  • +
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。
  • +
+
+

+

+

+

+

+

+

+

+

+

+

+

+
+

React is a JavaScript library for building user interfaces.

+
    +
  • + Declarative: React makes it painless to create interactive UIs. + Design simple views for each state in your application, and React + will efficiently update and render just the right components when + your data changes. Declarative views make your code more + predictable, simpler to understand, and easier to debug. +
  • +
  • + Component-Based: Build encapsulated components that manage their own + state, then compose them to make complex UIs. Since component logic + is written in JavaScript instead of templates, you can easily pass + rich data through your app and keep the state out of the DOM. +
  • +
  • + React 使创建交互式 UI + 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React + 能高效更新并渲染合适的组件。 +
  • +
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。
  • +
+
+
+ + + diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..d75ceea063f1ba9e2b37cc062ebf826c9760bfb0 GIT binary patch literal 15086 zcmeHOX|Nns6>dta{F~w*XnZdu5G=Q(#E3;f;l32Eh#Fkbasg3GT*`=o#!}IUKhz&o zC2t92F@Qh<2?>OR1hNnk3N@=F@#Tet7_-d2_RRG4`%W)&yQgQmXPC@nEW7GX_jKRe z=R5bFd+s^so;HjNjMo^mW*ImS8~0yo7;_B67#?>1Pce)M+?#?kpWpIY!?+6-E=L_S zF}{Mr`*O^%Pr={B=+KnJ=!N# z@1+64?(##-l$kvPh~4FZ*at~&T-@$?kg>Zwgr7&=s1hSnQE-l}kA|E!ZM5r%PK16O zyF{fQdcVr7{enub{HRKdUmAmlA(dQwxk^9!3ADRWr5?N{Mw@9W^}y9Cv-$>=e)xl+ zGb2Wu2<+&O%;TR|wam-PsuWeNa7yK#{!XlMDD3#PvPvmwS3SEQeei+i?La5J>N-_T zyre8Mr)v5CsNCl7H?JR81|Tzq=kHSbQQEf{{Q}u&^^V1tDf8v0>&>j1%5D0dN-TOq zcstzBZ@s-gw+ zpKJA%Dj#|n_%Dg1)v_N2{{r88OR@0J^y9aP|A+12KiDt)n7jABNmX9iR_A+=@GqLG z(vN&t)w0Ly_*Dn;(~thA9)a#Nk8jbiz6a*gyK35_a7~{FM{W zsnlPtlz!!P@UYCRD!%w98JDK=9^|2i_*Kos96b;&>$wy5IyE*O{T^Xs=sffif3U-y z|JBpG#n!WNw}G8}^cjEU-_NV`U*8)~*7bgOultNYzhxf!@b%I2)WsV-_Zfd_{}RWq zX;W@oKKhK`suWaV=kFY!sRJH*i66d*RXnRywd|Y8mYIjI^BdUg&^=N9joa_;xrg|v zXVR-au3Z06XM(<8VaKo9=b?xAOaENq*aOp4e%l?&DyMZ8U`J$C{<-;%?-Wy(dWqk& ze}E1CU4HwW;34DZ0sm=F+Wub*9(sx2=RdkU`~o~=13aWLK0k}cL*MW-{z4w6LuP&{ zvZFJ>_(^`t?RXv$N9ZeljR(wK&SCwqN=e%$a&=AEx$pQL9>%AO4y7*Dk6QW&VsP(q z<~{2M3gbW90`Zex`CmRPkR|wHw4dqodPfcZ@5Wml{}**=n|cK?RoEVdoxk;}^P)Vl z#-2Oyk?M8PuAQ}|llTwlrB+<2s>y?OJX-uDxp*f0hdC(k@=6AA(#pwQ_4>GC{35&l z>*8zF>&}5+@#gqEbb=rKlf0MlH!TK1{F{HElFMd`zgA66z%M?cswg~L#RL#rKK%T{ zwWO9g>eXX?#`PGViRBv!{w~E2H{YhRPuzr#H5+iYdxJ6ASbiz-!=}-X(%$jt@ss%N z#(FcxZz2EL^0KZ^VOe$EFZSVGWQB%AvebuyCGSBYlYL&u5#+{ z&_CCTKVLbq!;Y&nw%$RhCJxFTK`i+Z-NJo^YtZI;#Gu|MYgL2(^XVW*H;!K>a+-PU z(-Nm}+oYCXfqjtcU;}=vqarbl(TMdhh(~l-8~Z?R`>=MRH~Fqk3-qb`{{Ox6An!pE zJM#$!b$skxh|%Ez&L5B*h=I-D&~i`)D}M&LC&WIrWjYSE~m*E%Vs*UR=C__OiHf%G>< z(1&lIUH4^#14?|o>M4EnJ$-NU$P+@FKgHb(d&56ullfMa6Wcx7jGJel{3__fc6a3& zQnwA9RsEa~Bvl zvMNsejQh~YBjP@_ug~4S?=pRlVO+?5$culp<304_bej5g7x~xemk+IU;%AJRX*wf# zeU9ie9>zFY=$Pvmx=5cnf{a)#M=;0(8$hncq$Op^Nl6 z@6Il~Na8Ei)L{<;*GI-ZLNRoezO(*7-ZN`Hs~Bgr4@;H*wOZEU1`OwdKIMxTm^%u+ z=V3U!N+p-h!hF!?#JQsHVVEoVtAYXRwAcs|y8#C31zgiUamS16uh>)ajCw=Es?Qr< z$60^ze(poLHbQaF2;Pa98svfVlj|e%qqtAPgJVW}MPk-?o?JRx>WAu(xc0}I8$6v{ z+&v;ONX`+)mRbCJn3n7>Gv|!Y7<*)HZiC!7{QK=M>{S7i4=ea*4A9jJ#edvm?@tJ~ zF@Bi4xAEJJ?{&tPvB@&zs(fTEa{oRQf|K^=Y*pI7RC0PbFNmiMyM^U_bp& z*9Y!{|2=f!e2E@t0f8P~k~ZTM3`-27cyS7RYZg2(M&l@*#3R{;ZHqEjsIT?8<>+lZ z$9w!d=7Pi z1GGx}?i0U4{AK7n=IB??>{H1lZwuh0?)wzJn>dZNa4vM%#ZrfRgY-)h^vBu$g+EA6 zA+h@T)Y?ObbG;}}tQGy7-|`dG1y<~xN44kLQrt5td!%+g?l)}SrSBrzBmdRa-TV%O zxjQ~vK8n86o;g;`56-UplJucBc2VuofArhvTbq+lVqf=|d`si$;~4Fw|DpGjSabPZ z2iG-wJh8rW?|awXcK;QZ1ART^Blvz7h>>0`e ja|rnjN^a9_x*WEiKa^*#*TG`XHMD(o^Eapu+Wr4uY|sky literal 0 HcmV?d00001 diff --git a/images/logo128.png b/images/logo128.png new file mode 100644 index 0000000000000000000000000000000000000000..972f77461f5a7571a49a43e6d5fc7ed0e8783dda GIT binary patch literal 3441 zcmd^C`#)6aAAd$ETMBJSmt8~k-HObNOUz_4GAxB!tkl*vVnStR%#3xbOj|15U6NZU z5lJpl5}G!YOC;-(TqDxT+%Z?*=h$k$KYaWC1K;yHbIx;~^Lf9Y_xt^M&JPp4!}Z4n z^Ony804#8FB)h>o2l;8tf>&{Wj1=CMvF*Ls?(_rf5N{?G*!t4uc6Imv~?%}5(HA&-ssT4!!#BllxR4^OMqi! z8e@o_DPbQX8vZTH%Vh`Jj?Sc_Eleyn_+WA7XiK~a&H`s{g)>H*VsT~|tQiJpwgG2K zz~Tuw3-qVM5U$4bJwR|HJA7ITJ`oN5*=z;@g9!-t3I6NMY!J1-BO*g=b z4XiL4+dFgvjkW4C1DVS5VFobR0dyJ~Vf5Zl4`ve$q0+xC1TwzR(paBjf`MT|y%`vs z2^O*RxzNSsf0qUZeyL`$-KhWQ{jbC}AtW#f2=FCXIbg9? z*ezCOmJU`poV~r31KHMYqlKC676+J^E$%axO!o;6q|(@*vA+Lc@n6LvJ0Xw(S0+=L z0l!gw9hme$^o(Odz}K~G{3_oktnb&gSbi0YfnqR7U;m@epQqsFL55#;EqwU0@2NDn z*_m)x2Mw;ZgC7gn;p|}#t_eV@0L1Zng{l^w^5c~1{iF)qm(ZH0gfdm>J9++q98^eR zyJR4iH>pq=J(+-zNADHP7O7OJvV1xLGKDY3mHtgrXFFv@LvoNUQmUrMrj+2i09@i< z?Uqp*re5-tPev6EwG*~Alb}!xDkUISbm6tMov%F7Dg_z*@(~5ND+U*MAb}6k1t5R? zbh`}1@WFLHD3v_@O9AePK%NNP7J+ObxFH1Bh2Wk9WR8PO9w-t|PfvqHK1dcoslyYh zHv(1TM+Lab&l!+`B!PAH1Sppv3|T^u#78X0^T0zfvKI87EZ|F3AYWWKC`U+A1jzg~ zL39Vi^1&58NE3it!gmrS$e770MbO4mB4zN^)tLf#P2%5vD@WKMHjanzLlh#3590aA zpi-iOA`8TjL@ZZ5A5$PT@GUHhopBAvS9k+rC3NlcVhUUnDwNY81;QcQ3_}`ErJ6=E zDTgGyH$oMX#w{W8HeWm;pYGtRK$;M72lXTi9*-)(BMHb67C>L=LQpIQ#S(B&j6jn3 zUiDMI)K3mgD2JghC?HV)133dT&k-W|CkwVdn;euVhbNTRdt^vf<&uzBvejG(NQ2gd zpiB(So@keXd=d0}xl@`wAdhO3!d@KzQ?{pJ3S1PK9&D~UfTSCtGY>R=x;V7mn%O8{Gm=!b;x zER{STQ)*X9V6ditOx);|UGI};_sNRiDMlxh2uZ#eHfUSzq*whUjIo2S>=eLLmD(fA z=#@8)&vX!gC3C*h2LJ`wZm#Zd7yUmUz*r9UN?*>%yz{^zqiwi z{^tD0JG<^hhWs2|zu7LQs|Ix&P5ONncW@&mFDi!5Z5d>7RyewKC!(y;#lUyc9DVAh zdaBytxk5mRSc%3(?$Mr0NdneMQA4#luR&_mn)$x^$L+a>6azJ5$8~M3`>r`(dT=~J zsS`eb?~B>Mc+TyH`ui4cZ&l|3ncnT`>3PB2x=q9VRp-%`ZQXg^i*L=v5(_8+5fS74 z^3w7=&>py~F_6BmtH{$&aLIgxHu27=fO^r0u9dbd%6J23eCGil;<@snORgo27KCks z`$lcDrp}a_e@7}H#`}jkv+!DtugEE_#P*Z2*mOmG@p9q<&gQPm{$ZW!oM*j7Asq#A zandTV)zx?bDWaKHcB1glot)qfn#cBm%o8e*snBA9@Q`t%VJ7dX(Q^^rLjtyiHB60d5KN`iAQDWqW+Bd$ksYCIWW_KJ2*^PT3+ z)%#YAygS^S*5mn8OHjXB_4{QgnR1Oau+``qzL7Vf7wHr3*3}c&+4bYvInDFRTKh%; z`p)iXw2m^!P4#VCO?hR@{$**Wz6Xun*R4=T$R?|MmZjnhN#{7t0JS5$~*KHaVxyIBYpH7 z5}I4__)_yee=l0)FcuWm>Pr>$WL<5ImtBM@#i7R2cOPk@GVjI^2nF^Sq147X-3H5D(F!tx@x96fzvudT{ln&*w{1sMhBygm+mYxohRKNNR1L{z?+QWnOPj!^pH_bE=IMr}&99 zR`6gvt6X;_ciCJGfm@Hp0{)wy>1{QIz)1f?@9j+nsNKdNipm!+?ALE&1zRpAO1%5#0Wj+&0@Yp>}1YboPkS)xp6IMWX%L^QJJ}*Du)F+=ei6B1MU!qm<7SYg;yvzgwalD^YGD;iqX})O4Q|B5P@C#N^2>14Mjmk(_2BrL63TIB{(OvoTaB9b$*b|s zKi}Jd;*htN?XK_#YVFr zXQyocc0m>8HU_AQ8RL2K@a{QTckb&iS|Tp;aCDQ8>^aeUK9jKP;<5DIq5cQmsP5ZJ z<^ASF>CsjXTWaCUtx7pXQV`+!Zp1QpPiCh+KrQ)oPx$k4Z#9R5(wilRroTaTLeD_s8>3hN)u?hW(SmsUeC$XmF8)3Zimpif9iaXb2h` z+J$I}KmxIpAfh3trKN&~A{&f`)bj2$J@a>Qr-nyESHAK6c%R?*ecyYOJCa=os5Jl_ z{uUA-Z&L0^uKbVU##fR8kXafCc5z5PNhnuqZ#^9h>?R6T0=R9oMw^m5N=c{?Km~Yg zG)|^%n27PX$&RTNxzAWF)Ab94OrE2PQ?ZN0PP}~G3aDf zKYksffri@q;iH67-TZ!gZIv(TKDewjx;q%0r7J)7pw(k)?VP^=MB&wuu9S*V00000 LNkvXXu0mjfh(pIQ literal 0 HcmV?d00001 diff --git a/images/logo192.png b/images/logo192.png new file mode 100644 index 0000000000000000000000000000000000000000..086acf8128d7731fd5c59b2d7db83c1845913c8f GIT binary patch literal 6521 zcmbt(^;cBi_x_!rhX!HjP8mRyjzKADMg-|nLQ?4-P)aFj$)QUD73mm4KqQ84K{}>RR9zy(^H)__2;AR22 zqg3w$6$4Bg000+zsHCXxW4@E+o2mcpYj^P2jHWkv2TWvJq+>Nyi2~MB+NCkF1 zC`cH{EmgZp^@bve1bNFpYw9#w%|KK0LGm}U+W7p0Ls`foM0j0$N2Z;c-r z&`80_q$p9*6yQ0dsYkS8!FE;9f+R^oc5&c9i=cD(z(M((E#Xx>6Tq)L6`Ibf*aHX7 zKs^$5qNcJMY}7KWTox>}29(ClET^$`R=>Dk4h%dVIzjU)>+myFlOrVmO_IXQ-=$a$?FyYOxMhmR(TeQsZ|Mh<#1DS4$#6J-BWN29E;dRI>d4rLM2l#v zcb}jyb-*4ocNxEr!e%~ zJ?!d^9pF>}c)7|$EWJsqe9z%Ph9G(_WAH!Ms}W-KBLESBULxrxkq$NB!qFF_TgSDd zrf(T?SrgZ1y4@*@$d~P=ZdCp0#UMsB^L?6A5D_NjPMW6(V~wwGiO(M{2>H_qQ@CWg0&!uH2?BP>b+< z^PatWN_dKFG1hZ!`Io=lN^YVd+dMaw9}TK_{2t$Az}?s>#``C?AI=H&wVwOOK(22h)q|P-~K>WkK%P)s+yK2ta4$&(7@JokSIr;o z%ZegA7cP!!o;&GK4yrz!w5-$7%OH=SnLV^| zZT2)n+w9-=@IG)ju;5PA$FkCq3>khz#lT z@ZkQ{ZYUf#c^G~j3@ z;+969Sk~e6cn~flcxRMnm$e&`cu|b^knsL%}actg_K+bieG`jZG&uR%-@h=J69R?|IS*lTSb>Yln2>B+Xg-=$ar<&|dj-LhnJ#0RiIvhE`;`ZLEb~;N zPxohLb@7olsd1aX+ijLeaO?_!sbNne0(K6e0|H*ws8U9VOoQ$+Wse2~{{XRrteD=A zeCm*-ak%!5UKg%+SLV*}iMF?583$E{e4N$T6}{IOeXzo75N>kF@Xue%KlZFW^Zav3 zFto=Ht)w`Q*5G%L)D+*nk5|5!x8i;c#)B1CzInie&w2xa$k6~zhA^MSyj{-VH z`F7$U%&PXrZriT#fusFtszOXx$X3dj%^bT8qU@=@6zO|7nkG!Swz`M(Y&PMD`6B&# zbD;Kt&+nyesk75L@NPhD^D3jWkn-1jf!NX?U<{*)fi?_D+^kx2&D_zPCe3G&TI}Hx zBv#_G|4eMCFuM(oy*M*(m}gST3hQST4?*FOsH^gUy@hN_d0bDaYJ;DH+)t@YvyqV5 zF=2#Ou+W#MhLE6U`RJ;!_DQZynQTyk{ZZjFmszRV;x6%F&Y`GPyuq>1*pn~sgM#0Y zKRR10GzOfK!);eTG4zC{+r)d2{U&oZh>A^f-?wK~ zSZK6++u`c1kg82xkZ)B#_DQk3fh9nXetjn1Qq0)e*pu_FQYSCe;gjTAmPq#86b2tU z;AMSdU?8pb%LlPNRB++3SZBUTXyp>C{@zxJO1o-G->qJgx8*`NFiVv!! z;%ATfhJ}sPjx=ec=9>O#1r)+uS#>k(?Vf5V7rYBTzEZjH z%krIq9SsJifEF z*qQWRw|$~_@fD0bkaqWfcmT5;fuobITlD135U(>~ZQ&0@XTOTuZ%#P-(3N;rPCduR z7&>OBr5V{D)~H;?MA)2E-cvk&j-jO*1jN%pJ=?i%JaMsq%TwErwP(r~PsV!L=zk&YRMQZRK}-yQ)9xCH@rVNws}r=5X8zEVBW2w`BIQ_N?JvL-X6Y z-hsR3bnT5sv8xz59~d$gg!_UGDHi5O&U0M$v-lP4q$Dej{TWQ|1k#w$^DT^B)T}BA zn~Xwk=fPHgV0^>DwGpQ8U4vy_dlK~jwf9E-%3OrtW0!#oUlZtGXBh9!(v`ASqg==L z?IGXB;yeSr{_L+(MHgK9|BM2BZifq+e^B5Cjy`kXm2=NnxUTT#u=u5~U2=|F?D0@> zKrCMZ>xdl*ixQ1>YhOjZRMYxYA3yiPM(V0;2?^?>#2o>~SFx_K5V2jz6V9d@v zom#3UW_P8l|G~kSTEDc3+$ML*wK*MF*-cFGD4~GIvVm0uxCLPJK<4~$*1!F&a3z{? z(iirYEIcWG9;AkoACzw9659{NWg(94MyI}{Zq}0`JAvp#)fyG$cCC(9#f?MVksh5d z+7*Hd5KBb>HthfP3F^v!BBIL4HJ?AP20k^u`gsca8BOFNP4i1lt*vj2y(zGYlBTU6 z5e2dYbm0bW^Wh@qh`4F>(g3lv4iXP>dJY~F*Nwj7S&1{^^ovSSG#javg-kl( zW4bqb$`8k0`cGf*j@jX%q#O7Wi@S((oa&Wt9cYp$7`3Nv>-&=Dg^>Nam_fWvP z{L44e%JAo;hLs`5q?x0zuoONTq{~f_ifw5qT8kBD{X`DEK_gu6W^RV{m+^?b=gOnE z5FK-v-J9|MMBTIX3gnD02s2}Q}`pvdS@C-n+#3g+ygOuEEv%33~xSu z(RAXV|8=k#Vd>#b*Y)=RQ$7!>y^3pLjaZx;wAo}1jVoW2+K_Jpo&e}Lf&b0XtdDC9 z+K2BGR4}JSln?g38hmEjgp>RFLiQjCTA8d$+5hP~8dL=Uk1WVbcx$4l_^(zjW$V0? z=vW}HR#9A0r!yQ+s=k6qtDhxtMu9}609sFCp4+8b44>Wp0eD>A!~%0eE7iz{t%ARU zPH_uELhlS*X`j5u``0r#xu5>yVF{b`q*rU6Ucbhz%%j&=)z1QXSU*h9M=Cgx*=&8P zTglp>2NEHB3cKN=!eNFSrSNLv^>x}h_d4?V&E28Pu{2wIdp&bKy6!B;2a`TM)212b={{jaj^e+py`&%crh z_a7SC5^*X|(!`{CtM229M99)7-^YTg;6Q)=KHi*Znp9soOE&x~0&^JZO(wDUtDka2 zzM&tOqygA54O+7by%C~vv*E`4M+XRj-`iv)-KdQ>&d?kLEKFP7mJsrOuZd1kXJ5d>Hh!n` zX1li-Zfn_LJ~{O@Hyxj_=^>-cg5hrOJ$++dp>n_dMo)BHo~61F0XcL#q!2!Uxp9`2 z#MoRUNOOA16n=&S_!uqa7gFeJSuyffNnzHkrZfMf*vnSq?aILl_`mqYO#E5kG~ACE z3)t~uX6%_Z-bgAz6~~XbKcYANq+WFYnuGT@^TxNH-!5~rye?+coe8&Fjk<0;`9Vll z&%ZJve>qqY>qUd#Mdv(=c5qHSH!X}S2ws*Kbwz;&HskB1IstpC=3Lf{KVfMezoCo* z{J@f5!(+nrz1xYMz*7#nz{5KL!?IDP@LrFkLYM8jQa4~v(a@H2BZX?pJn+!rXTCJ4tj`^(JiWCYskSAKi06DSarx;zvG z7@qmL@baz(e+04uVc6{$s~-d~Ti`BOq$;2KEdqh0!@v1T#@%-7P1G!yvr7rUxTyB z)x+PtwYxcItiaKB=mLQbN5CAy^_VI#04s*>ie31BQZZly=5t3|{vk9E=PxS&*;^II*?RF{Uj5Q1hpT za^it5EyZg5n!O3GH4hxD&Hzo{QWld~+gj%lf|Xwtlr7a~5$&zlSIt!nTcfjsXfD@m zc0hOb(t_-`OozIV`qj0rZrhl~*1l1S&000L{GE`lzv`}D<#FmT6H^FrT1LNzc@%YU zj%nKXvG(&0XU9;Vk9ndQTDX-~QV{yNc#Y~KtWkqX3HMOs!SL^rGqOsf9C-R@f8M%5uDEi1d$E1_irA%MSE#O4=tA9*ZqLmL;=(qXH7t9SfZvbn zV)_}#NixZdT3fK%Inb3JIEpCX^N!hDJZSN?&*9aUvKH^;CX1lyGp6h6y+@43PChEP91o}XDd&Xvmb>nKDz;bBfW^L3o;o_VG!{`kSuD|g z!#drs^dh4P91`!<5f5S$7>hWlG5l8bJQzj*F%rL+v8NZ>R`v9@vLxV@UX~e^=RAz1 zX=TS}A{E3;IWFa@FcCc*8R#qhWAbAcMu0gTTZkOuX%Nw}135Qtw(X?G$AX3v4ZxtX6IjX?_q-z8=NI@&9 zB_T?r+0efYTnHwzxZ`7?TyF8U=rIcV3~f+m1h?f2q7RgTw+s{n3Y(@DNq=pAf!@_X z67Hw1-)lW1E{?xm4y&>~eSz<&f$Srk9(QCk*;e-0{;$3%aU+frx`5&@z(DqIG2kujE zf}Z5yjTKV8Bcg0j;YHJX|Fryz-`;;o;5 zJIX6&e=Yk9tVnVDLl7nQDX>A%qWSCklsW~O!i98E&=4%5wNUKU@w8uoj4qYt+to3} zegiLF+SVg6VdfiNnTP( z5=R^o(4G^g+N4ObTD6C zN6u-o#Utn{VPtL-53c?}UEK&bNcp~tmvpB0_Iu+al{^LKa~ACFjrF0+C&9HHr!qil zRt3Z1brsYj3Hw8|*uCqjIjqqnT~6qSP7vj4=dBGGaCuUt+5P)hUUWPXigi&Ft@SNG z)DKQz0(ylC*S}O1)qmBi{bQ?NutYWy!K?z_C^Fpy-jb~vrh z3+y+^dJl1Hg7TjYlp~_0ZMYG21VlYiDC;VkbzZJFYzxo$o(Pks0AZBm8X*jz?ORv^ rDr;p~L`_5Pf0qszhd71gBiG57qN~Hk9eX!-DZoQzZKaC)mZAR#AX)@b literal 0 HcmV?d00001 diff --git a/images/logo32.png b/images/logo32.png new file mode 100644 index 0000000000000000000000000000000000000000..8312907d5a879cf159ae59feb9fc06e96ac243e2 GIT binary patch literal 898 zcmV-|1AY97P)Px&JV``BR9HvNmt9CxVHn5%=gh6S58a$$nP3C8kDH>pipWSyGze0oD+!`cp_|H^ zr66ctgajFg*$RZTn?8t={Adx@EX$BovJh0XX2LXdr?ZckA-BPN4Rn5>gT{m}yMd*bsC0-}smm1&N!zcDOto%J#)WCW-9h zoQs3uJ&kF{g6RPc97&g=F;^w*blps&<-0Rv*9;Ab&Z0!&d*h%3j0d>1OCDL>7g1`W z@M?_l#|Hr9rAyJ^1E}bx@o*>nJ9LtD{1`urS$4LffIw;uPk*~Zc4lI@#n(?6cg$=Yj zy0RfUz>{Gou65CoQ};!P4#2-=xBKj<>vJF)4@3bNne~9T{+M3o&%ABSg{xgOXl8i~ zQ2;7G&}jPR#K|lfs`o1(^S$vuW;{6mn!VDr1fOoVp*sx3ssQk!iZ}xGIZ9-wNd*YwfCD!^1y)1R z9-^iCf!!P9@a(vH$#T5v09jfR?Sd3|tp;!P<^ydZV?R!x{~zU@Hh=JWriAaAb_fbC#_iwdiX8 Y0sIjM)2<_png9R*07*qoM6N<$g3REXjsO4v literal 0 HcmV?d00001 diff --git a/images/logo48.png b/images/logo48.png new file mode 100644 index 0000000000000000000000000000000000000000..24bb76eeec6928b91e39bd18c2b99bb003bd53dc GIT binary patch literal 2570 zcmd^B`CC(08a{v(g`rsOl-g2^sZ}dYZZ?EOqCx@$A7K#ah*hVAh}wFueBMo7Y(n~I$uhWQ63Pjc@$=YHS&z3=ya z$&+Id;UR7=@3{Z~+(LQWNO-5OxQ-2Kq@Bl@fdQ7SO&8J@L!iA;|q487$FW#5J}iXRed9o zAQG~Pn|;D4VKNSyDB`8b(WtcWXhGUe0aHj^x0c|a!h!%|6yp<8#7PnbD}_z8ZgK%p`SzDzRJhsyAyenOy8sC0xvN2qiXmBykl zSyUgws}~VglMCZnk=)={wcw6TOvEr53qg{TlgY_+vQ(acP?=07LZKlv8VN>_6sZ!7 zpF)x-KAb_|q6&drB*R2f2?0ms$4Pf%Y$9a(s|2y^HLOJOs!gzAND5zuP{|Zr(oA4j z*#8a{i(f}8ut@YbzW)_i5uGYSkw{b_-7ObD$yiIaMBhXK6O8Ndw{$kX5_$5o&}o%+)xUJ)i<*Ht~A z`o&-+w-~@t<%V`6IIR4a-U`#VJv4eZ8)4m&elxghz=O-wpjroV)gV{(Wv>}-lYTUT zb87fr(QE*xRSXLsRFNWdS4x z8*)YsL5@B#gHviyVDCn`8cNQDJ%lpLG;J>}+-N;l- zrwJ6Qle$a;6IL7$#uRCwg!OI4AC%THlMUR~gQF@ad{AdqPFja`){GuA_(}`2aBHsV za8}>z@hsS%V)ZCYxvs}s0iQzVu=A(YqedGpvqm?hvp!PU3zcfY;c;k+Z>tfiaEDG+ z=s>+5?{k4Buh(2NJOvIa8-KCjC7{bU^pKw3VtcBwfm;S#QLP@FQ5E!>KW;LN!=ms6 z@-I?@Qz~#%PlvFOB(w&$=*mR5()wV`g8NvfZy&RQ1LMK>?T$cmA$iC)Pn+0f!o5DG z1XUBvHlyOvByMr0QV$)h(}RkMKCP{Ez)Wi~;*xV!xXZaJoyFGn(h7gXh^Zvq5%Z+}XH7Bq?mN~VY!rnW$v?IiAOUABY=Q3W? z87uh5Jl@)hd4%eBmc8)I%%tTV;<7^bk zOD|;p8Ts0?OzAXux5VGYR^_%R+x0fbw7&YqJ_L1D9zhOty6hq^@OYM9JbIwTp|7s; zs^fkyinDRz1A_mKd;KR(*#hzQtn*{{x~-R$+`1yLW5m60|C{gpZcZsWFt}^$@i)&l zPXv=dNcFy&>N`bm$vZCHO`v+Mvt?)9+4Q4;gOXb9UpPEAu)GKs@-|J=QK>-C-f9*M&3X8>{e=rhiTDUXAuw{%yzGH zNYNMjS2zcJuqor@#cz-8dl2wfE@RNOePut_!dT38*mL#B;(?8A-&sO<^sOH;7J4ol z+8TJ60g$xj>*;}7>Z$`C0TN-p+tVPP^Rl<|yPhga%HPOQ?`yEGxaeG)T0yPJ@3ekY zR@L19ne!*D&y}m1^v_y-`|p{2lz+NEe~_iVo%hY04MSd_J*um`XASsn`El1m=6)~6 z50_Rstg0+&=*nOI&0ki;JAXSgyx!8(e?8_TsiJ1PCTR=*@ng#6qJ@=?>8pbVdL?ZG y_tz??A2)C4ZY&XY&z)=1XKAmUi1)O4H-Wl~r|Pv(TV$?zOKISS Translator
\ No newline at end of file diff --git a/kiss-translator.user.js b/kiss-translator.user.js new file mode 100644 index 0000000..a68310e --- /dev/null +++ b/kiss-translator.user.js @@ -0,0 +1,28330 @@ +// ==UserScript== +// @name KISS Translator +// @namespace https://github.com/fishjar/kiss-translator +// @version 1.4.2 +// @description A minimalist bilingual translation Extension & Greasemonkey Script (一个简约的双语网页翻译扩展 & 油猴脚本) +// @author Gabe +// @homepageURL https://github.com/fishjar/kiss-translator +// @license GPL-3.0 +// @match *://*/* +// @icon https://kiss-translator.rayjar.com/images/logo192.png +// @downloadURL https://kiss-translator.rayjar.com/kiss-translator.user.js +// @updateURL https://kiss-translator.rayjar.com/kiss-translator.user.js +// @grant GM_xmlhttpRequest +// @grant GM.xmlhttpRequest +// @grant GM_setValue +// @grant GM.setValue +// @grant GM_getValue +// @grant GM.getValue +// @grant GM_deleteValue +// @grant GM.deleteValue +// @grant unsafeWindow +// @connect translate.googleapis.com +// @connect api-edge.cognitive.microsofttranslator.com +// @connect edge.microsoft.com +// @connect api.openai.com +// @run-at document-end +// ==/UserScript== + + +/******/ (function() { // webpackBootstrap +/******/ var __webpack_modules__ = ({ + +/***/ 6826: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ createCache; } +/* harmony export */ }); +/* harmony import */ var _emotion_sheet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7377); +/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2203); +/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6490); +/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(383); +/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9401); +/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5375); +/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7678); + + + + +var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) { + var previous = 0; + var character = 0; + while (true) { + previous = character; + character = (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .peek */ .fj)(); // &\f + + if (previous === 38 && character === 12) { + points[index] = 1; + } + if ((0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .token */ .r)(character)) { + break; + } + (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .next */ .lp)(); + } + return (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .slice */ .tP)(begin, stylis__WEBPACK_IMPORTED_MODULE_0__/* .position */ .FK); +}; +var toRules = function toRules(parsed, points) { + // pretend we've started with a comma + var index = -1; + var character = 44; + do { + switch ((0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .token */ .r)(character)) { + case 0: + // &\f + if (character === 38 && (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .peek */ .fj)() === 12) { + // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings + // stylis inserts \f after & to know when & where it should replace this sequence with the context selector + // and when it should just concatenate the outer and inner selectors + // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here + points[index] = 1; + } + parsed[index] += identifierWithPointTracking(stylis__WEBPACK_IMPORTED_MODULE_0__/* .position */ .FK - 1, points, index); + break; + case 2: + parsed[index] += (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .delimit */ .iF)(character); + break; + case 4: + // comma + if (character === 44) { + // colon + parsed[++index] = (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .peek */ .fj)() === 58 ? '&\f' : ''; + points[index] = parsed[index].length; + break; + } + + // fallthrough + + default: + parsed[index] += (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .from */ .Dp)(character); + } + } while (character = (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .next */ .lp)()); + return parsed; +}; +var getRules = function getRules(value, points) { + return (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .dealloc */ .cE)(toRules((0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .alloc */ .un)(value), points)); +}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11 + +var fixedElements = /* #__PURE__ */new WeakMap(); +var compat = function compat(element) { + if (element.type !== 'rule' || !element.parent || + // positive .length indicates that this rule contains pseudo + // negative .length indicates that this rule has been already prefixed + element.length < 1) { + return; + } + var value = element.value, + parent = element.parent; + var isImplicitRule = element.column === parent.column && element.line === parent.line; + while (parent.type !== 'rule') { + parent = parent.parent; + if (!parent) return; + } // short-circuit for the simplest case + + if (element.props.length === 1 && value.charCodeAt(0) !== 58 + /* colon */ && !fixedElements.get(parent)) { + return; + } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level) + // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent" + + if (isImplicitRule) { + return; + } + fixedElements.set(element, true); + var points = []; + var rules = getRules(value, points); + var parentRules = parent.props; + for (var i = 0, k = 0; i < rules.length; i++) { + for (var j = 0; j < parentRules.length; j++, k++) { + element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i]; + } + } +}; +var removeLabel = function removeLabel(element) { + if (element.type === 'decl') { + var value = element.value; + if ( + // charcode for l + value.charCodeAt(0) === 108 && + // charcode for b + value.charCodeAt(2) === 98) { + // this ignores label + element["return"] = ''; + element.value = ''; + } + } +}; +var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason'; +var isIgnoringComment = function isIgnoringComment(element) { + return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1; +}; +var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) { + return function (element, index, children) { + if (element.type !== 'rule' || cache.compat) return; + var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g); + if (unsafePseudoClasses) { + var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent` + // + // considering this input: + // .a { + // .b /* comm */ {} + // color: hotpink; + // } + // we get output corresponding to this: + // .a { + // & { + // /* comm */ + // color: hotpink; + // } + // .b {} + // } + + var commentContainer = isNested ? element.parent.children : + // global rule at the root level + children; + for (var i = commentContainer.length - 1; i >= 0; i--) { + var node = commentContainer[i]; + if (node.line < element.line) { + break; + } // it is quite weird but comments are *usually* put at `column: element.column - 1` + // so we seek *from the end* for the node that is earlier than the rule's `element` and check that + // this will also match inputs like this: + // .a { + // /* comm */ + // .b {} + // } + // + // but that is fine + // + // it would be the easiest to change the placement of the comment to be the first child of the rule: + // .a { + // .b { /* comm */ } + // } + // with such inputs we wouldn't have to search for the comment at all + // TODO: consider changing this comment placement in the next major version + + if (node.column < element.column) { + if (isIgnoringComment(node)) { + return; + } + break; + } + } + unsafePseudoClasses.forEach(function (unsafePseudoClass) { + console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\"."); + }); + } + }; +}; +var isImportRule = function isImportRule(element) { + return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64; +}; +var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) { + for (var i = index - 1; i >= 0; i--) { + if (!isImportRule(children[i])) { + return true; + } + } + return false; +}; // use this to remove incorrect elements from further processing +// so they don't get handed to the `sheet` (or anything else) +// as that could potentially lead to additional logs which in turn could be overhelming to the user + +var nullifyElement = function nullifyElement(element) { + element.type = ''; + element.value = ''; + element["return"] = ''; + element.children = ''; + element.props = ''; +}; +var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) { + if (!isImportRule(element)) { + return; + } + if (element.parent) { + console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."); + nullifyElement(element); + } else if (isPrependedWithRegularRules(index, children)) { + console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."); + nullifyElement(element); + } +}; + +/* eslint-disable no-fallthrough */ + +function prefix(value, length) { + switch ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .hash */ .vp)(value, length)) { + // color-adjust + case 5103: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + 'print-' + value + value; + // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function) + + case 5737: + case 4201: + case 3177: + case 3433: + case 1641: + case 4457: + case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break + + case 5572: + case 6356: + case 5844: + case 3191: + case 6645: + case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite, + + case 6391: + case 5879: + case 5623: + case 6135: + case 4599: + case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width) + + case 4215: + case 6389: + case 5109: + case 5365: + case 5621: + case 3829: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + value; + // appearance, user-select, transform, hyphens, text-size-adjust + + case 5349: + case 4246: + case 4810: + case 6968: + case 2756: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__/* .MOZ */ .uj + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + value + value; + // flex, flex-direction + + case 6828: + case 4268: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + value + value; + // order + + case 6165: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + 'flex-' + value + value; + // align-items + + case 5187: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /(\w+).+(:[^]+)/, stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + 'box-$1$2' + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + 'flex-$1$2') + value; + // align-self + + case 5443: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + 'flex-item-' + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /flex-|-self/, '') + value; + // align-content + + case 4675: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + 'flex-line-pack' + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /align-content|flex-|-self/, '') + value; + // flex-shrink + + case 5548: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, 'shrink', 'negative') + value; + // flex-basis + + case 5292: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, 'basis', 'preferred-size') + value; + // flex-grow + + case 6060: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + 'box-' + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, '-grow', '') + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, 'grow', 'positive') + value; + // transition + + case 4554: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /([^-])(transform)/g, '$1' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + '$2') + value; + // cursor + + case 6187: + return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /(zoom-|grab)/, stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + '$1'), /(image-set)/, stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + '$1'), value, '') + value; + // background, background-image + + case 5495: + case 3959: + return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /(image-set\([^]*)/, stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + '$1' + '$`$1'); + // justify-content + + case 4968: + return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /(.+:)(flex-)?(.*)/, stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + 'box-pack:$3' + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + value; + // (margin|padding)-inline-(start|end) + + case 4095: + case 3583: + case 4068: + case 2532: + return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /(.+)-inline(.+)/, stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + '$1$2') + value; + // (min|max)?(width|height|inline-size|block-size) + + case 8116: + case 7059: + case 5753: + case 5535: + case 5445: + case 5701: + case 4933: + case 4677: + case 5533: + case 5789: + case 5021: + case 4765: + // stretch, max-content, min-content, fill-available + if ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .strlen */ .to)(value) - 1 - length > 6) switch ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .charat */ .uO)(value, length + 1)) { + // (m)ax-content, (m)in-content + case 109: + // - + if ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .charat */ .uO)(value, length + 4) !== 45) break; + // (f)ill-available, (f)it-content + + case 102: + return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /(.+:)(.+)-([^]+)/, '$1' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + '$2-$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .MOZ */ .uj + ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .charat */ .uO)(value, length + 3) == 108 ? '$3' : '$2-$3')) + value; + // (s)tretch + + case 115: + return ~(0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .indexof */ .Cw)(value, 'stretch') ? prefix((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, 'stretch', 'fill-available'), length) + value : value; + } + break; + // position: sticky + + case 4949: + // (s)ticky? + if ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .charat */ .uO)(value, length + 1) !== 115) break; + // display: (flex|inline-flex) + + case 6444: + switch ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .charat */ .uO)(value, (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .strlen */ .to)(value) - 3 - (~(0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .indexof */ .Cw)(value, '!important') && 10))) { + // stic(k)y + case 107: + return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, ':', ':' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$) + value; + // (inline-)?fl(e)x + + case 101: + return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .charat */ .uO)(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + '$2$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + '$2box$3') + value; + } + break; + // writing-mode + + case 5936: + switch ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .charat */ .uO)(value, length + 11)) { + // vertical-l(r) + case 114: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /[svh]\w+-[tblr]{2}/, 'tb') + value; + // vertical-r(l) + + case 108: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value; + // horizontal(-)tb + + case 45: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /[svh]\w+-[tblr]{2}/, 'lr') + value; + } + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + value + value; + } + return value; +} +var prefixer = function prefixer(element, index, children, callback) { + if (element.length > -1) if (!element["return"]) switch (element.type) { + case stylis__WEBPACK_IMPORTED_MODULE_2__/* .DECLARATION */ .h5: + element["return"] = prefix(element.value, element.length); + break; + case stylis__WEBPACK_IMPORTED_MODULE_2__/* .KEYFRAMES */ .lK: + return (0,stylis__WEBPACK_IMPORTED_MODULE_3__/* .serialize */ .q)([(0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .copy */ .JG)(element, { + value: (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(element.value, '@', '@' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$) + })], callback); + case stylis__WEBPACK_IMPORTED_MODULE_2__/* .RULESET */ .Fr: + if (element.length) return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .combine */ .$e)(element.props, function (value) { + switch ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .match */ .EQ)(value, /(::plac\w+|:read-\w+)/)) { + // :read-(only|write) + case ':read-only': + case ':read-write': + return (0,stylis__WEBPACK_IMPORTED_MODULE_3__/* .serialize */ .q)([(0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .copy */ .JG)(element, { + props: [(0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /:(read-\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .MOZ */ .uj + '$1')] + })], callback); + // :placeholder + + case '::placeholder': + return (0,stylis__WEBPACK_IMPORTED_MODULE_3__/* .serialize */ .q)([(0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .copy */ .JG)(element, { + props: [(0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /:(plac\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + 'input-$1')] + }), (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .copy */ .JG)(element, { + props: [(0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /:(plac\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .MOZ */ .uj + '$1')] + }), (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .copy */ .JG)(element, { + props: [(0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /:(plac\w+)/, stylis__WEBPACK_IMPORTED_MODULE_2__.MS + 'input-$1')] + })], callback); + } + return ''; + }); + } +}; +var defaultStylisPlugins = [prefixer]; +var createCache = function createCache(options) { + var key = options.key; + if (false) {} + if (key === 'css') { + var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration + // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be) + // note this very very intentionally targets all style elements regardless of the key to ensure + // that creating a cache works inside of render of a React component + + Array.prototype.forEach.call(ssrStyles, function (node) { + // we want to only move elements which have a space in the data-emotion attribute value + // because that indicates that it is an Emotion 11 server-side rendered style elements + // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector + // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes) + // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles + // will not result in the Emotion 10 styles being destroyed + var dataEmotionAttribute = node.getAttribute('data-emotion'); + if (dataEmotionAttribute.indexOf(' ') === -1) { + return; + } + document.head.appendChild(node); + node.setAttribute('data-s', ''); + }); + } + var stylisPlugins = options.stylisPlugins || defaultStylisPlugins; + if (false) {} + var inserted = {}; + var container; + var nodesToHydrate = []; + { + container = options.container || document.head; + Array.prototype.forEach.call( + // this means we will ignore elements which don't have a space in them which + // means that the style elements we're looking at are only Emotion 11 server-rendered style elements + document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) { + var attrib = node.getAttribute("data-emotion").split(' '); // $FlowFixMe + + for (var i = 1; i < attrib.length; i++) { + inserted[attrib[i]] = true; + } + nodesToHydrate.push(node); + }); + } + var _insert; + var omnipresentPlugins = [compat, removeLabel]; + if (false) {} + { + var currentSheet; + var finalizingPlugins = [stylis__WEBPACK_IMPORTED_MODULE_3__/* .stringify */ .P, false ? 0 : (0,stylis__WEBPACK_IMPORTED_MODULE_4__/* .rulesheet */ .cD)(function (rule) { + currentSheet.insert(rule); + })]; + var serializer = (0,stylis__WEBPACK_IMPORTED_MODULE_4__/* .middleware */ .qR)(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)); + var stylis = function stylis(styles) { + return (0,stylis__WEBPACK_IMPORTED_MODULE_3__/* .serialize */ .q)((0,stylis__WEBPACK_IMPORTED_MODULE_5__/* .compile */ .MY)(styles), serializer); + }; + _insert = function insert(selector, serialized, sheet, shouldCache) { + currentSheet = sheet; + if (false) {} + stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles); + if (shouldCache) { + cache.inserted[serialized.name] = true; + } + }; + } + var cache = { + key: key, + sheet: new _emotion_sheet__WEBPACK_IMPORTED_MODULE_6__/* .StyleSheet */ .m({ + key: key, + container: container, + nonce: options.nonce, + speedy: options.speedy, + prepend: options.prepend, + insertionPoint: options.insertionPoint + }), + nonce: options.nonce, + inserted: inserted, + registered: {}, + insert: _insert + }; + cache.sheet.hydrate(nodesToHydrate); + return cache; +}; + + +/***/ }), + +/***/ 7423: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ murmur2; } +/* harmony export */ }); +/* eslint-disable */ +// Inspired by https://github.com/garycourt/murmurhash-js +// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86 +function murmur2(str) { + // 'm' and 'r' are mixing constants generated offline. + // They're not really 'magic', they just happen to work well. + // const m = 0x5bd1e995; + // const r = 24; + // Initialize the hash + var h = 0; // Mix 4 bytes at a time into the hash + + var k, + i = 0, + len = str.length; + for (; len >= 4; ++i, len -= 4) { + k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24; + k = /* Math.imul(k, m): */ + (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16); + k ^= /* k >>> r: */ + k >>> 24; + h = /* Math.imul(k, m): */ + (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^ /* Math.imul(h, m): */ + (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); + } // Handle the last few bytes of the input array + + switch (len) { + case 3: + h ^= (str.charCodeAt(i + 2) & 0xff) << 16; + case 2: + h ^= (str.charCodeAt(i + 1) & 0xff) << 8; + case 1: + h ^= str.charCodeAt(i) & 0xff; + h = /* Math.imul(h, m): */ + (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); + } // Do a few final mixes of the hash to ensure the last few + // bytes are well-incorporated. + + h ^= h >>> 13; + h = /* Math.imul(h, m): */ + (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); + return ((h ^ h >>> 15) >>> 0).toString(36); +} + + +/***/ }), + +/***/ 1097: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ isPropValid; } +/* harmony export */ }); +/* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1816); + +var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23 + +var isPropValid = /* #__PURE__ */(0,_emotion_memoize__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(function (prop) { + return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 + /* o */ && prop.charCodeAt(1) === 110 + /* n */ && prop.charCodeAt(2) < 91; +} +/* Z+1 */); + + + +/***/ }), + +/***/ 1816: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ memoize; } +/* harmony export */ }); +function memoize(fn) { + var cache = Object.create(null); + return function (arg) { + if (cache[arg] === undefined) cache[arg] = fn(arg); + return cache[arg]; + }; +} + + +/***/ }), + +/***/ 3346: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ C: function() { return /* binding */ CacheProvider; }, +/* harmony export */ T: function() { return /* binding */ ThemeContext; }, +/* harmony export */ i: function() { return /* binding */ isBrowser; }, +/* harmony export */ w: function() { return /* binding */ withEmotionCache; } +/* harmony export */ }); +/* unused harmony exports E, _, a, b, c, h, u */ +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); +/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6826); +/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(736); +/* harmony import */ var _emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5696); + + + + + + + + + +var isBrowser = "object" !== 'undefined'; +var hasOwnProperty = {}.hasOwnProperty; +var EmotionCacheContext = /* #__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__.createContext( +// we're doing this to avoid preconstruct's dead code elimination in this one case +// because this module is primarily intended for the browser and node +// but it's also required in react native and similar environments sometimes +// and we could have a special build just for that +// but this is much easier and the native packages +// might use a different theme context in the future anyway +typeof HTMLElement !== 'undefined' ? /* #__PURE__ */(0,_emotion_cache__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({ + key: 'css' +}) : null); +if (false) {} +var CacheProvider = EmotionCacheContext.Provider; +var __unsafe_useEmotionCache = function useEmotionCache() { + return useContext(EmotionCacheContext); +}; +var withEmotionCache = function withEmotionCache(func) { + // $FlowFixMe + return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) { + // the cache will never be null in the browser + var cache = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext); + return func(props, cache, ref); + }); +}; +if (!isBrowser) { + withEmotionCache = function withEmotionCache(func) { + return function (props) { + var cache = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext); + if (cache === null) { + // yes, we're potentially creating this on every render + // it doesn't actually matter though since it's only on the server + // so there will only every be a single render + // that could change in the future because of suspense and etc. but for now, + // this works and i don't want to optimise for a future thing that we aren't sure about + cache = (0,_emotion_cache__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({ + key: 'css' + }); + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(EmotionCacheContext.Provider, { + value: cache + }, func(props, cache)); + } else { + return func(props, cache); + } + }; + }; +} +var ThemeContext = /* #__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__.createContext({}); +if (false) {} +var useTheme = function useTheme() { + return React.useContext(ThemeContext); +}; +var getTheme = function getTheme(outerTheme, theme) { + if (typeof theme === 'function') { + var mergedTheme = theme(outerTheme); + if (false) {} + return mergedTheme; + } + if (false) {} + return _extends({}, outerTheme, theme); +}; +var createCacheWithTheme = /* #__PURE__ */(/* unused pure expression or super */ null && (weakMemoize(function (outerTheme) { + return weakMemoize(function (theme) { + return getTheme(outerTheme, theme); + }); +}))); +var ThemeProvider = function ThemeProvider(props) { + var theme = React.useContext(ThemeContext); + if (props.theme !== theme) { + theme = createCacheWithTheme(theme)(props.theme); + } + return /*#__PURE__*/React.createElement(ThemeContext.Provider, { + value: theme + }, props.children); +}; +function withTheme(Component) { + var componentName = Component.displayName || Component.name || 'Component'; + var render = function render(props, ref) { + var theme = React.useContext(ThemeContext); + return /*#__PURE__*/React.createElement(Component, _extends({ + theme: theme, + ref: ref + }, props)); + }; // $FlowFixMe + + var WithTheme = /*#__PURE__*/React.forwardRef(render); + WithTheme.displayName = "WithTheme(" + componentName + ")"; + return hoistNonReactStatics(WithTheme, Component); +} +var getLastPart = function getLastPart(functionName) { + // The match may be something like 'Object.createEmotionProps' or + // 'Loader.prototype.render' + var parts = functionName.split('.'); + return parts[parts.length - 1]; +}; +var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) { + // V8 + var match = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line); + if (match) return getLastPart(match[1]); // Safari / Firefox + + match = /^([A-Za-z0-9$.]+)@/.exec(line); + if (match) return getLastPart(match[1]); + return undefined; +}; +var internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS +// identifiers, thus we only need to replace what is a valid character for JS, +// but not for CSS. + +var sanitizeIdentifier = function sanitizeIdentifier(identifier) { + return identifier.replace(/\$/g, '-'); +}; +var getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) { + if (!stackTrace) return undefined; + var lines = stackTrace.split('\n'); + for (var i = 0; i < lines.length; i++) { + var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just "Error" + + if (!functionName) continue; // If we reach one of these, we have gone too far and should quit + + if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an + // uppercase letter + + if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName); + } + return undefined; +}; +var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__'; +var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__'; +var createEmotionProps = function createEmotionProps(type, props) { + if (false) {} + var newProps = {}; + for (var key in props) { + if (hasOwnProperty.call(props, key)) { + newProps[key] = props[key]; + } + } + newProps[typePropName] = type; // For performance, only call getLabelFromStackTrace in development and when + // the label hasn't already been computed + + if (false) { var label; } + return newProps; +}; +var Insertion = function Insertion(_ref) { + var cache = _ref.cache, + serialized = _ref.serialized, + isStringTag = _ref.isStringTag; + registerStyles(cache, serialized, isStringTag); + useInsertionEffectAlwaysWithSyncFallback(function () { + return insertStyles(cache, serialized, isStringTag); + }); + return null; +}; +var Emotion = /* #__PURE__ */(/* unused pure expression or super */ null && (withEmotionCache(function (props, cache, ref) { + var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works + // not passing the registered cache to serializeStyles because it would + // make certain babel optimisations not possible + + if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) { + cssProp = cache.registered[cssProp]; + } + var WrappedComponent = props[typePropName]; + var registeredStyles = [cssProp]; + var className = ''; + if (typeof props.className === 'string') { + className = getRegisteredStyles(cache.registered, registeredStyles, props.className); + } else if (props.className != null) { + className = props.className + " "; + } + var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext)); + if (false) { var labelFromStack; } + className += cache.key + "-" + serialized.name; + var newProps = {}; + for (var key in props) { + if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && ( true || 0)) { + newProps[key] = props[key]; + } + } + newProps.ref = ref; + newProps.className = className; + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, { + cache: cache, + serialized: serialized, + isStringTag: typeof WrappedComponent === 'string' + }), /*#__PURE__*/React.createElement(WrappedComponent, newProps)); +}))); +if (false) {} +var Emotion$1 = (/* unused pure expression or super */ null && (Emotion)); + + +/***/ }), + +/***/ 736: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ O: function() { return /* binding */ serializeStyles; } +/* harmony export */ }); +/* harmony import */ var _emotion_hash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7423); +/* harmony import */ var _emotion_unitless__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1536); +/* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1816); + + + +var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences"; +var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."; +var hyphenateRegex = /[A-Z]|^ms/g; +var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g; +var isCustomProperty = function isCustomProperty(property) { + return property.charCodeAt(1) === 45; +}; +var isProcessableValue = function isProcessableValue(value) { + return value != null && typeof value !== 'boolean'; +}; +var processStyleName = /* #__PURE__ */(0,_emotion_memoize__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(function (styleName) { + return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase(); +}); +var processStyleValue = function processStyleValue(key, value) { + switch (key) { + case 'animation': + case 'animationName': + { + if (typeof value === 'string') { + return value.replace(animationRegex, function (match, p1, p2) { + cursor = { + name: p1, + styles: p2, + next: cursor + }; + return p1; + }); + } + } + } + if (_emotion_unitless__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) { + return value + 'px'; + } + return value; +}; +if (false) { var hyphenatedCache, hyphenPattern, msPattern, oldProcessStyleValue, contentValues, contentValuePattern; } +var noComponentSelectorMessage = (/* unused pure expression or super */ null && ('Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.')); +function handleInterpolation(mergedProps, registered, interpolation) { + if (interpolation == null) { + return ''; + } + if (interpolation.__emotion_styles !== undefined) { + if (false) {} + return interpolation; + } + switch (typeof interpolation) { + case 'boolean': + { + return ''; + } + case 'object': + { + if (interpolation.anim === 1) { + cursor = { + name: interpolation.name, + styles: interpolation.styles, + next: cursor + }; + return interpolation.name; + } + if (interpolation.styles !== undefined) { + var next = interpolation.next; + if (next !== undefined) { + // not the most efficient thing ever but this is a pretty rare case + // and there will be very few iterations of this generally + while (next !== undefined) { + cursor = { + name: next.name, + styles: next.styles, + next: cursor + }; + next = next.next; + } + } + var styles = interpolation.styles + ";"; + if (false) {} + return styles; + } + return createStringFromObject(mergedProps, registered, interpolation); + } + case 'function': + { + if (mergedProps !== undefined) { + var previousCursor = cursor; + var result = interpolation(mergedProps); + cursor = previousCursor; + return handleInterpolation(mergedProps, registered, result); + } else if (false) {} + break; + } + case 'string': + if (false) { var replaced, matched; } + break; + } // finalize string values (regular strings and functions interpolated into css calls) + + if (registered == null) { + return interpolation; + } + var cached = registered[interpolation]; + return cached !== undefined ? cached : interpolation; +} +function createStringFromObject(mergedProps, registered, obj) { + var string = ''; + if (Array.isArray(obj)) { + for (var i = 0; i < obj.length; i++) { + string += handleInterpolation(mergedProps, registered, obj[i]) + ";"; + } + } else { + for (var _key in obj) { + var value = obj[_key]; + if (typeof value !== 'object') { + if (registered != null && registered[value] !== undefined) { + string += _key + "{" + registered[value] + "}"; + } else if (isProcessableValue(value)) { + string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";"; + } + } else { + if (_key === 'NO_COMPONENT_SELECTOR' && "production" !== 'production') {} + if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) { + for (var _i = 0; _i < value.length; _i++) { + if (isProcessableValue(value[_i])) { + string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";"; + } + } + } else { + var interpolated = handleInterpolation(mergedProps, registered, value); + switch (_key) { + case 'animation': + case 'animationName': + { + string += processStyleName(_key) + ":" + interpolated + ";"; + break; + } + default: + { + if (false) {} + string += _key + "{" + interpolated + "}"; + } + } + } + } + } + } + return string; +} +var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g; +var sourceMapPattern; +if (false) {} // this is the cursor for keyframes +// keyframes are stored on the SerializedStyles object as a linked list + +var cursor; +var serializeStyles = function serializeStyles(args, registered, mergedProps) { + if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) { + return args[0]; + } + var stringMode = true; + var styles = ''; + cursor = undefined; + var strings = args[0]; + if (strings == null || strings.raw === undefined) { + stringMode = false; + styles += handleInterpolation(mergedProps, registered, strings); + } else { + if (false) {} + styles += strings[0]; + } // we start at 1 since we've already handled the first arg + + for (var i = 1; i < args.length; i++) { + styles += handleInterpolation(mergedProps, registered, args[i]); + if (stringMode) { + if (false) {} + styles += strings[i]; + } + } + var sourceMap; + if (false) {} // using a global regex with .exec is stateful so lastIndex has to be reset each time + + labelPattern.lastIndex = 0; + var identifierName = ''; + var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5 + + while ((match = labelPattern.exec(styles)) !== null) { + identifierName += '-' + + // $FlowFixMe we know it's not null + match[1]; + } + var name = (0,_emotion_hash__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(styles) + identifierName; + if (false) {} + return { + name: name, + styles: styles, + next: cursor + }; +}; + + +/***/ }), + +/***/ 7377: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ m: function() { return /* binding */ StyleSheet; } +/* harmony export */ }); +/* + +Based off glamor's StyleSheet, thanks Sunil ❤️ + +high performance StyleSheet for css-in-js systems + +- uses multiple style tags behind the scenes for millions of rules +- uses `insertRule` for appending in production for *much* faster performance + +// usage + +import { StyleSheet } from '@emotion/sheet' + +let styleSheet = new StyleSheet({ key: '', container: document.head }) + +styleSheet.insert('#box { border: 1px solid red; }') +- appends a css rule into the stylesheet + +styleSheet.flush() +- empties the stylesheet of all its contents + +*/ +// $FlowFixMe +function sheetForTag(tag) { + if (tag.sheet) { + // $FlowFixMe + return tag.sheet; + } // this weirdness brought to you by firefox + + /* istanbul ignore next */ + + for (var i = 0; i < document.styleSheets.length; i++) { + if (document.styleSheets[i].ownerNode === tag) { + // $FlowFixMe + return document.styleSheets[i]; + } + } +} +function createStyleElement(options) { + var tag = document.createElement('style'); + tag.setAttribute('data-emotion', options.key); + if (options.nonce !== undefined) { + tag.setAttribute('nonce', options.nonce); + } + tag.appendChild(document.createTextNode('')); + tag.setAttribute('data-s', ''); + return tag; +} +var StyleSheet = /*#__PURE__*/function () { + // Using Node instead of HTMLElement since container may be a ShadowRoot + function StyleSheet(options) { + var _this = this; + this._insertTag = function (tag) { + var before; + if (_this.tags.length === 0) { + if (_this.insertionPoint) { + before = _this.insertionPoint.nextSibling; + } else if (_this.prepend) { + before = _this.container.firstChild; + } else { + before = _this.before; + } + } else { + before = _this.tags[_this.tags.length - 1].nextSibling; + } + _this.container.insertBefore(tag, before); + _this.tags.push(tag); + }; + this.isSpeedy = options.speedy === undefined ? "production" === 'production' : options.speedy; + this.tags = []; + this.ctr = 0; + this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets + + this.key = options.key; + this.container = options.container; + this.prepend = options.prepend; + this.insertionPoint = options.insertionPoint; + this.before = null; + } + var _proto = StyleSheet.prototype; + _proto.hydrate = function hydrate(nodes) { + nodes.forEach(this._insertTag); + }; + _proto.insert = function insert(rule) { + // the max length is how many rules we have per style tag, it's 65000 in speedy mode + // it's 1 in dev because we insert source maps that map a single rule to a location + // and you can only have one source map per style tag + if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) { + this._insertTag(createStyleElement(this)); + } + var tag = this.tags[this.tags.length - 1]; + if (false) { var isImportRule; } + if (this.isSpeedy) { + var sheet = sheetForTag(tag); + try { + // this is the ultrafast version, works across browsers + // the big drawback is that the css won't be editable in devtools + sheet.insertRule(rule, sheet.cssRules.length); + } catch (e) { + if (false) {} + } + } else { + tag.appendChild(document.createTextNode(rule)); + } + this.ctr++; + }; + _proto.flush = function flush() { + // $FlowFixMe + this.tags.forEach(function (tag) { + return tag.parentNode && tag.parentNode.removeChild(tag); + }); + this.tags = []; + this.ctr = 0; + if (false) {} + }; + return StyleSheet; +}(); + + +/***/ }), + +/***/ 7167: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ createStyled; } +/* harmony export */ }); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7462); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); +/* harmony import */ var _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1097); +/* harmony import */ var _emotion_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3346); +/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4911); +/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(736); +/* harmony import */ var _emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5696); + + + + + + + +var testOmitPropsOnStringTag = _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z; +var testOmitPropsOnComponent = function testOmitPropsOnComponent(key) { + return key !== 'theme'; +}; +var getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) { + return typeof tag === 'string' && + // 96 is one less than the char code + // for "a" so this is checking that + // it's a lowercase character + tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent; +}; +var composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) { + var shouldForwardProp; + if (options) { + var optionsShouldForwardProp = options.shouldForwardProp; + shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) { + return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName); + } : optionsShouldForwardProp; + } + if (typeof shouldForwardProp !== 'function' && isReal) { + shouldForwardProp = tag.__emotion_forwardProp; + } + return shouldForwardProp; +}; +var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences"; +var Insertion = function Insertion(_ref) { + var cache = _ref.cache, + serialized = _ref.serialized, + isStringTag = _ref.isStringTag; + (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__/* .registerStyles */ .hC)(cache, serialized, isStringTag); + (0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_2__/* .useInsertionEffectAlwaysWithSyncFallback */ .L)(function () { + return (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__/* .insertStyles */ .My)(cache, serialized, isStringTag); + }); + return null; +}; +var createStyled = function createStyled(tag, options) { + if (false) {} + var isReal = tag.__emotion_real === tag; + var baseTag = isReal && tag.__emotion_base || tag; + var identifierName; + var targetClassName; + if (options !== undefined) { + identifierName = options.label; + targetClassName = options.target; + } + var shouldForwardProp = composeShouldForwardProps(tag, options, isReal); + var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag); + var shouldUseAs = !defaultShouldForwardProp('as'); + return function () { + var args = arguments; + var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : []; + if (identifierName !== undefined) { + styles.push("label:" + identifierName + ";"); + } + if (args[0] == null || args[0].raw === undefined) { + styles.push.apply(styles, args); + } else { + if (false) {} + styles.push(args[0][0]); + var len = args.length; + var i = 1; + for (; i < len; i++) { + if (false) {} + styles.push(args[i], args[0][i]); + } + } // $FlowFixMe: we need to cast StatelessFunctionalComponent to our PrivateStyledComponent class + + var Styled = (0,_emotion_react__WEBPACK_IMPORTED_MODULE_5__.w)(function (props, cache, ref) { + var FinalTag = shouldUseAs && props.as || baseTag; + var className = ''; + var classInterpolations = []; + var mergedProps = props; + if (props.theme == null) { + mergedProps = {}; + for (var key in props) { + mergedProps[key] = props[key]; + } + mergedProps.theme = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_emotion_react__WEBPACK_IMPORTED_MODULE_5__.T); + } + if (typeof props.className === 'string') { + className = (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__/* .getRegisteredStyles */ .fp)(cache.registered, classInterpolations, props.className); + } else if (props.className != null) { + className = props.className + " "; + } + var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_1__/* .serializeStyles */ .O)(styles.concat(classInterpolations), cache.registered, mergedProps); + className += cache.key + "-" + serialized.name; + if (targetClassName !== undefined) { + className += " " + targetClassName; + } + var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp; + var newProps = {}; + for (var _key in props) { + if (shouldUseAs && _key === 'as') continue; + if ( + // $FlowFixMe + finalShouldForwardProp(_key)) { + newProps[_key] = props[_key]; + } + } + newProps.className = className; + newProps.ref = ref; + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Insertion, { + cache: cache, + serialized: serialized, + isStringTag: typeof FinalTag === 'string' + }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(FinalTag, newProps)); + }); + Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")"; + Styled.defaultProps = tag.defaultProps; + Styled.__emotion_real = Styled; + Styled.__emotion_base = baseTag; + Styled.__emotion_styles = styles; + Styled.__emotion_forwardProp = shouldForwardProp; + Object.defineProperty(Styled, 'toString', { + value: function value() { + if (targetClassName === undefined && "production" !== 'production') {} // $FlowFixMe: coerce undefined to string + + return "." + targetClassName; + } + }); + Styled.withComponent = function (nextTag, nextOptions) { + return createStyled(nextTag, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)({}, options, nextOptions, { + shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true) + })).apply(void 0, styles); + }; + return Styled; + }; +}; + + +/***/ }), + +/***/ 3320: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ newStyled; } +/* harmony export */ }); +/* harmony import */ var _base_dist_emotion_styled_base_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7167); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7313); +/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(736); +/* harmony import */ var _emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5696); + + + + + + + + +var tags = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr', +// SVG +'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan']; +var newStyled = _base_dist_emotion_styled_base_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.bind(); +tags.forEach(function (tagName) { + // $FlowFixMe: we can ignore this because its exposed type is defined by the CreateStyled type + newStyled[tagName] = newStyled(tagName); +}); + + +/***/ }), + +/***/ 1536: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ unitlessKeys; } +/* harmony export */ }); +var unitlessKeys = { + animationIterationCount: 1, + aspectRatio: 1, + borderImageOutset: 1, + borderImageSlice: 1, + borderImageWidth: 1, + boxFlex: 1, + boxFlexGroup: 1, + boxOrdinalGroup: 1, + columnCount: 1, + columns: 1, + flex: 1, + flexGrow: 1, + flexPositive: 1, + flexShrink: 1, + flexNegative: 1, + flexOrder: 1, + gridRow: 1, + gridRowEnd: 1, + gridRowSpan: 1, + gridRowStart: 1, + gridColumn: 1, + gridColumnEnd: 1, + gridColumnSpan: 1, + gridColumnStart: 1, + msGridRow: 1, + msGridRowSpan: 1, + msGridColumn: 1, + msGridColumnSpan: 1, + fontWeight: 1, + lineHeight: 1, + opacity: 1, + order: 1, + orphans: 1, + tabSize: 1, + widows: 1, + zIndex: 1, + zoom: 1, + WebkitLineClamp: 1, + // SVG-related properties + fillOpacity: 1, + floodOpacity: 1, + stopOpacity: 1, + strokeDasharray: 1, + strokeDashoffset: 1, + strokeMiterlimit: 1, + strokeOpacity: 1, + strokeWidth: 1 +}; + + +/***/ }), + +/***/ 5696: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +var react__WEBPACK_IMPORTED_MODULE_0___namespace_cache; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ L: function() { return /* binding */ useInsertionEffectAlwaysWithSyncFallback; }, +/* harmony export */ j: function() { return /* binding */ useInsertionEffectWithLayoutFallback; } +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); + +var syncFallback = function syncFallback(create) { + return create(); +}; +var useInsertionEffect = /*#__PURE__*/ (react__WEBPACK_IMPORTED_MODULE_0___namespace_cache || (react__WEBPACK_IMPORTED_MODULE_0___namespace_cache = __webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__, 2)))['useInsertion' + 'Effect'] ? /*#__PURE__*/ (react__WEBPACK_IMPORTED_MODULE_0___namespace_cache || (react__WEBPACK_IMPORTED_MODULE_0___namespace_cache = __webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__, 2)))['useInsertion' + 'Effect'] : false; +var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback; +var useInsertionEffectWithLayoutFallback = useInsertionEffect || react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect; + + +/***/ }), + +/***/ 4911: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ My: function() { return /* binding */ insertStyles; }, +/* harmony export */ fp: function() { return /* binding */ getRegisteredStyles; }, +/* harmony export */ hC: function() { return /* binding */ registerStyles; } +/* harmony export */ }); +var isBrowser = "object" !== 'undefined'; +function getRegisteredStyles(registered, registeredStyles, classNames) { + var rawClassName = ''; + classNames.split(' ').forEach(function (className) { + if (registered[className] !== undefined) { + registeredStyles.push(registered[className] + ";"); + } else { + rawClassName += className + " "; + } + }); + return rawClassName; +} +var registerStyles = function registerStyles(cache, serialized, isStringTag) { + var className = cache.key + "-" + serialized.name; + if ( + // we only need to add the styles to the registered cache if the + // class name could be used further down + // the tree but if it's a string tag, we know it won't + // so we don't have to add it to registered cache. + // this improves memory usage since we can avoid storing the whole style string + (isStringTag === false || + // we need to always store it if we're in compat mode and + // in node since emotion-server relies on whether a style is in + // the registered cache to know whether a style is global or not + // also, note that this check will be dead code eliminated in the browser + isBrowser === false) && cache.registered[className] === undefined) { + cache.registered[className] = serialized.styles; + } +}; +var insertStyles = function insertStyles(cache, serialized, isStringTag) { + registerStyles(cache, serialized, isStringTag); + var className = cache.key + "-" + serialized.name; + if (cache.inserted[serialized.name] === undefined) { + var current = serialized; + do { + cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true); + current = current.next; + } while (current !== undefined); + } +}; + + +/***/ }), + +/***/ 1198: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; +var __webpack_unused_export__; + +"use client"; + +var _interopRequireDefault = __webpack_require__(4836); +__webpack_unused_export__ = ({ + value: true +}); +exports.Z = void 0; +var _createSvgIcon = _interopRequireDefault(__webpack_require__(5045)); +var _jsxRuntime = __webpack_require__(6417); +var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { + d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" +}), 'Close'); +exports.Z = _default; + +/***/ }), + +/***/ 3578: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; +var __webpack_unused_export__; + +"use client"; + +var _interopRequireDefault = __webpack_require__(4836); +__webpack_unused_export__ = ({ + value: true +}); +exports.Z = void 0; +var _createSvgIcon = _interopRequireDefault(__webpack_require__(5045)); +var _jsxRuntime = __webpack_require__(6417); +var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { + d: "m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z" +}), 'Translate'); +exports.Z = _default; + +/***/ }), + +/***/ 5045: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; + +'use client'; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "default", ({ + enumerable: true, + get: function get() { + return _utils.createSvgIcon; + } +})); +var _utils = __webpack_require__(3928); + +/***/ }), + +/***/ 9994: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var blue = { + 50: '#e3f2fd', + 100: '#bbdefb', + 200: '#90caf9', + 300: '#64b5f6', + 400: '#42a5f5', + 500: '#2196f3', + 600: '#1e88e5', + 700: '#1976d2', + 800: '#1565c0', + 900: '#0d47a1', + A100: '#82b1ff', + A200: '#448aff', + A400: '#2979ff', + A700: '#2962ff' +}; +/* harmony default export */ __webpack_exports__.Z = (blue); + +/***/ }), + +/***/ 3961: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var common = { + black: '#000', + white: '#fff' +}; +/* harmony default export */ __webpack_exports__.Z = (common); + +/***/ }), + +/***/ 3837: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var green = { + 50: '#e8f5e9', + 100: '#c8e6c9', + 200: '#a5d6a7', + 300: '#81c784', + 400: '#66bb6a', + 500: '#4caf50', + 600: '#43a047', + 700: '#388e3c', + 800: '#2e7d32', + 900: '#1b5e20', + A100: '#b9f6ca', + A200: '#69f0ae', + A400: '#00e676', + A700: '#00c853' +}; +/* harmony default export */ __webpack_exports__.Z = (green); + +/***/ }), + +/***/ 9749: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var grey = { + 50: '#fafafa', + 100: '#f5f5f5', + 200: '#eeeeee', + 300: '#e0e0e0', + 400: '#bdbdbd', + 500: '#9e9e9e', + 600: '#757575', + 700: '#616161', + 800: '#424242', + 900: '#212121', + A100: '#f5f5f5', + A200: '#eeeeee', + A400: '#bdbdbd', + A700: '#616161' +}; +/* harmony default export */ __webpack_exports__.Z = (grey); + +/***/ }), + +/***/ 5991: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var lightBlue = { + 50: '#e1f5fe', + 100: '#b3e5fc', + 200: '#81d4fa', + 300: '#4fc3f7', + 400: '#29b6f6', + 500: '#03a9f4', + 600: '#039be5', + 700: '#0288d1', + 800: '#0277bd', + 900: '#01579b', + A100: '#80d8ff', + A200: '#40c4ff', + A400: '#00b0ff', + A700: '#0091ea' +}; +/* harmony default export */ __webpack_exports__.Z = (lightBlue); + +/***/ }), + +/***/ 9850: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var orange = { + 50: '#fff3e0', + 100: '#ffe0b2', + 200: '#ffcc80', + 300: '#ffb74d', + 400: '#ffa726', + 500: '#ff9800', + 600: '#fb8c00', + 700: '#f57c00', + 800: '#ef6c00', + 900: '#e65100', + A100: '#ffd180', + A200: '#ffab40', + A400: '#ff9100', + A700: '#ff6d00' +}; +/* harmony default export */ __webpack_exports__.Z = (orange); + +/***/ }), + +/***/ 2316: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var purple = { + 50: '#f3e5f5', + 100: '#e1bee7', + 200: '#ce93d8', + 300: '#ba68c8', + 400: '#ab47bc', + 500: '#9c27b0', + 600: '#8e24aa', + 700: '#7b1fa2', + 800: '#6a1b9a', + 900: '#4a148c', + A100: '#ea80fc', + A200: '#e040fb', + A400: '#d500f9', + A700: '#aa00ff' +}; +/* harmony default export */ __webpack_exports__.Z = (purple); + +/***/ }), + +/***/ 1293: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var red = { + 50: '#ffebee', + 100: '#ffcdd2', + 200: '#ef9a9a', + 300: '#e57373', + 400: '#ef5350', + 500: '#f44336', + 600: '#e53935', + 700: '#d32f2f', + 800: '#c62828', + 900: '#b71c1c', + A100: '#ff8a80', + A200: '#ff5252', + A400: '#ff1744', + A700: '#d50000' +}; +/* harmony default export */ __webpack_exports__.Z = (red); + +/***/ }), + +/***/ 7534: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ createMixins; } +/* harmony export */ }); +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4942); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7462); + + +function createMixins(breakpoints, mixins) { + var _toolbar; + return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({ + toolbar: (_toolbar = { + minHeight: 56 + }, (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_toolbar, breakpoints.up('xs'), { + '@media (orientation: landscape)': { + minHeight: 48 + } + }), (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_toolbar, breakpoints.up('sm'), { + minHeight: 64 + }), _toolbar) + }, mixins); +} + +/***/ }), + +/***/ 4498: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ ZP: function() { return /* binding */ createPalette; } +/* harmony export */ }); +/* unused harmony exports light, dark */ +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(7462); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3366); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7219); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(3019); +/* harmony import */ var _mui_system__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7551); +/* harmony import */ var _colors_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3961); +/* harmony import */ var _colors_grey__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9749); +/* harmony import */ var _colors_purple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2316); +/* harmony import */ var _colors_red__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1293); +/* harmony import */ var _colors_orange__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9850); +/* harmony import */ var _colors_blue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9994); +/* harmony import */ var _colors_lightBlue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5991); +/* harmony import */ var _colors_green__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3837); + + + +var _excluded = ["mode", "contrastThreshold", "tonalOffset"]; + + + + + + + + + + +var light = { + // The colors used to style the text. + text: { + // The most important text. + primary: 'rgba(0, 0, 0, 0.87)', + // Secondary text. + secondary: 'rgba(0, 0, 0, 0.6)', + // Disabled text have even lower visual prominence. + disabled: 'rgba(0, 0, 0, 0.38)' + }, + // The color used to divide different elements. + divider: 'rgba(0, 0, 0, 0.12)', + // The background colors used to style the surfaces. + // Consistency between these values is important. + background: { + paper: _colors_common__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.white, + default: _colors_common__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.white + }, + // The colors used to style the action elements. + action: { + // The color of an active action like an icon button. + active: 'rgba(0, 0, 0, 0.54)', + // The color of an hovered action. + hover: 'rgba(0, 0, 0, 0.04)', + hoverOpacity: 0.04, + // The color of a selected action. + selected: 'rgba(0, 0, 0, 0.08)', + selectedOpacity: 0.08, + // The color of a disabled action. + disabled: 'rgba(0, 0, 0, 0.26)', + // The background color of a disabled action. + disabledBackground: 'rgba(0, 0, 0, 0.12)', + disabledOpacity: 0.38, + focus: 'rgba(0, 0, 0, 0.12)', + focusOpacity: 0.12, + activatedOpacity: 0.12 + } +}; +var dark = { + text: { + primary: _colors_common__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.white, + secondary: 'rgba(255, 255, 255, 0.7)', + disabled: 'rgba(255, 255, 255, 0.5)', + icon: 'rgba(255, 255, 255, 0.5)' + }, + divider: 'rgba(255, 255, 255, 0.12)', + background: { + paper: '#121212', + default: '#121212' + }, + action: { + active: _colors_common__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.white, + hover: 'rgba(255, 255, 255, 0.08)', + hoverOpacity: 0.08, + selected: 'rgba(255, 255, 255, 0.16)', + selectedOpacity: 0.16, + disabled: 'rgba(255, 255, 255, 0.3)', + disabledBackground: 'rgba(255, 255, 255, 0.12)', + disabledOpacity: 0.38, + focus: 'rgba(255, 255, 255, 0.12)', + focusOpacity: 0.12, + activatedOpacity: 0.24 + } +}; +function addLightOrDark(intent, direction, shade, tonalOffset) { + var tonalOffsetLight = tonalOffset.light || tonalOffset; + var tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5; + if (!intent[direction]) { + if (intent.hasOwnProperty(shade)) { + intent[direction] = intent[shade]; + } else if (direction === 'light') { + intent.light = (0,_mui_system__WEBPACK_IMPORTED_MODULE_1__/* .lighten */ .$n)(intent.main, tonalOffsetLight); + } else if (direction === 'dark') { + intent.dark = (0,_mui_system__WEBPACK_IMPORTED_MODULE_1__/* .darken */ ._j)(intent.main, tonalOffsetDark); + } + } +} +function getDefaultPrimary() { + var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light'; + if (mode === 'dark') { + return { + main: _colors_blue__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z[200], + light: _colors_blue__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z[50], + dark: _colors_blue__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z[400] + }; + } + return { + main: _colors_blue__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z[700], + light: _colors_blue__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z[400], + dark: _colors_blue__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z[800] + }; +} +function getDefaultSecondary() { + var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light'; + if (mode === 'dark') { + return { + main: _colors_purple__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z[200], + light: _colors_purple__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z[50], + dark: _colors_purple__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z[400] + }; + } + return { + main: _colors_purple__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z[500], + light: _colors_purple__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z[300], + dark: _colors_purple__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z[700] + }; +} +function getDefaultError() { + var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light'; + if (mode === 'dark') { + return { + main: _colors_red__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z[500], + light: _colors_red__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z[300], + dark: _colors_red__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z[700] + }; + } + return { + main: _colors_red__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z[700], + light: _colors_red__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z[400], + dark: _colors_red__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z[800] + }; +} +function getDefaultInfo() { + var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light'; + if (mode === 'dark') { + return { + main: _colors_lightBlue__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z[400], + light: _colors_lightBlue__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z[300], + dark: _colors_lightBlue__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z[700] + }; + } + return { + main: _colors_lightBlue__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z[700], + light: _colors_lightBlue__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z[500], + dark: _colors_lightBlue__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z[900] + }; +} +function getDefaultSuccess() { + var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light'; + if (mode === 'dark') { + return { + main: _colors_green__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z[400], + light: _colors_green__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z[300], + dark: _colors_green__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z[700] + }; + } + return { + main: _colors_green__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z[800], + light: _colors_green__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z[500], + dark: _colors_green__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z[900] + }; +} +function getDefaultWarning() { + var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light'; + if (mode === 'dark') { + return { + main: _colors_orange__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z[400], + light: _colors_orange__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z[300], + dark: _colors_orange__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z[700] + }; + } + return { + main: '#ed6c02', + // closest to orange[800] that pass 3:1. + light: _colors_orange__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z[500], + dark: _colors_orange__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z[900] + }; +} +function createPalette(palette) { + var _palette$mode = palette.mode, + mode = _palette$mode === void 0 ? 'light' : _palette$mode, + _palette$contrastThre = palette.contrastThreshold, + contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, + _palette$tonalOffset = palette.tonalOffset, + tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, + other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(palette, _excluded); + var primary = palette.primary || getDefaultPrimary(mode); + var secondary = palette.secondary || getDefaultSecondary(mode); + var error = palette.error || getDefaultError(mode); + var info = palette.info || getDefaultInfo(mode); + var success = palette.success || getDefaultSuccess(mode); + var warning = palette.warning || getDefaultWarning(mode); + + // Use the same logic as + // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59 + // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54 + function getContrastText(background) { + var contrastText = (0,_mui_system__WEBPACK_IMPORTED_MODULE_1__/* .getContrastRatio */ .mi)(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary; + if (false) { var contrast; } + return contrastText; + } + var augmentColor = function augmentColor(_ref) { + var color = _ref.color, + name = _ref.name, + _ref$mainShade = _ref.mainShade, + mainShade = _ref$mainShade === void 0 ? 500 : _ref$mainShade, + _ref$lightShade = _ref.lightShade, + lightShade = _ref$lightShade === void 0 ? 300 : _ref$lightShade, + _ref$darkShade = _ref.darkShade, + darkShade = _ref$darkShade === void 0 ? 700 : _ref$darkShade; + color = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)({}, color); + if (!color.main && color[mainShade]) { + color.main = color[mainShade]; + } + if (!color.hasOwnProperty('main')) { + throw new Error( false ? 0 : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(11, name ? " (".concat(name, ")") : '', mainShade)); + } + if (typeof color.main !== 'string') { + throw new Error( false ? 0 : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(12, name ? " (".concat(name, ")") : '', JSON.stringify(color.main))); + } + addLightOrDark(color, 'light', lightShade, tonalOffset); + addLightOrDark(color, 'dark', darkShade, tonalOffset); + if (!color.contrastText) { + color.contrastText = getContrastText(color.main); + } + return color; + }; + var modes = { + dark: dark, + light: light + }; + if (false) {} + var paletteOutput = (0,_mui_utils__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)({ + // A collection of common colors. + common: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)({}, _colors_common__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z), + // prevent mutable object. + // The palette mode, can be light or dark. + mode: mode, + // The colors used to represent primary interface elements for a user. + primary: augmentColor({ + color: primary, + name: 'primary' + }), + // The colors used to represent secondary interface elements for a user. + secondary: augmentColor({ + color: secondary, + name: 'secondary', + mainShade: 'A400', + lightShade: 'A200', + darkShade: 'A700' + }), + // The colors used to represent interface elements that the user should be made aware of. + error: augmentColor({ + color: error, + name: 'error' + }), + // The colors used to represent potentially dangerous actions or important messages. + warning: augmentColor({ + color: warning, + name: 'warning' + }), + // The colors used to present information to the user that is neutral and not necessarily important. + info: augmentColor({ + color: info, + name: 'info' + }), + // The colors used to indicate the successful completion of an action that user triggered. + success: augmentColor({ + color: success, + name: 'success' + }), + // The grey colors. + grey: _colors_grey__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, + // Used by `getContrastText()` to maximize the contrast between + // the background and the text. + contrastThreshold: contrastThreshold, + // Takes a background color and returns the text color that maximizes the contrast. + getContrastText: getContrastText, + // Generate a rich color object. + augmentColor: augmentColor, + // Used by the functions below to shift a color's luminance by approximately + // two indexes within its tonal palette. + // E.g., shift from Red 500 to Red 300 or Red 700. + tonalOffset: tonalOffset + }, modes[mode]), other); + return paletteOutput; +} + +/***/ }), + +/***/ 5669: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* unused harmony export createMuiTheme */ +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(7462); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3366); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7219); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3019); +/* harmony import */ var _mui_system__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7424); +/* harmony import */ var _mui_system__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(5789); +/* harmony import */ var _mui_system__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(3649); +/* harmony import */ var _createMixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7534); +/* harmony import */ var _createPalette__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4498); +/* harmony import */ var _createTypography__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9210); +/* harmony import */ var _shadows__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5534); +/* harmony import */ var _createTransitions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(5829); +/* harmony import */ var _zIndex__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(9100); + + + + +var _excluded = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"]; + + + + + + + + + +function createTheme() { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var _options$mixins = options.mixins, + mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, + _options$palette = options.palette, + paletteInput = _options$palette === void 0 ? {} : _options$palette, + _options$transitions = options.transitions, + transitionsInput = _options$transitions === void 0 ? {} : _options$transitions, + _options$typography = options.typography, + typographyInput = _options$typography === void 0 ? {} : _options$typography, + other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(options, _excluded); + if (options.vars) { + throw new Error( false ? 0 : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(18)); + } + var palette = (0,_createPalette__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)(paletteInput); + var systemTheme = (0,_mui_system__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(options); + var muiTheme = (0,_mui_utils__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(systemTheme, { + mixins: (0,_createMixins__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(systemTheme.breakpoints, mixinsInput), + palette: palette, + // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol. + shadows: _shadows__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.slice(), + typography: (0,_createTypography__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(palette, typographyInput), + transitions: (0,_createTransitions__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .ZP)(transitionsInput), + zIndex: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)({}, _zIndex__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z) + }); + muiTheme = (0,_mui_utils__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(muiTheme, other); + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + muiTheme = args.reduce(function (acc, argument) { + return (0,_mui_utils__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(acc, argument); + }, muiTheme); + if (false) { var traverse, stateClasses; } + muiTheme.unstable_sxConfig = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)({}, _mui_system__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, other == null ? void 0 : other.unstable_sxConfig); + muiTheme.unstable_sx = function sx(props) { + return (0,_mui_system__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)({ + sx: props, + theme: this + }); + }; + return muiTheme; +} +var warnedOnce = false; +function createMuiTheme() { + if (false) {} + return createTheme.apply(void 0, arguments); +} +/* harmony default export */ __webpack_exports__.Z = (createTheme); + +/***/ }), + +/***/ 5829: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ ZP: function() { return /* binding */ createTransitions; } +/* harmony export */ }); +/* unused harmony exports easing, duration */ +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3366); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7462); + + +var _excluded = ["duration", "easing", "delay"]; +// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves +// to learn the context in which each easing should be used. +var easing = { + // This is the most common easing curve. + easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)', + // Objects enter the screen at full velocity from off-screen and + // slowly decelerate to a resting point. + easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)', + // Objects leave the screen at full velocity. They do not decelerate when off-screen. + easeIn: 'cubic-bezier(0.4, 0, 1, 1)', + // The sharp curve is used by objects that may return to the screen at any time. + sharp: 'cubic-bezier(0.4, 0, 0.6, 1)' +}; + +// Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations +// to learn when use what timing +var duration = { + shortest: 150, + shorter: 200, + short: 250, + // most basic recommended timing + standard: 300, + // this is to be used in complex animations + complex: 375, + // recommended when something is entering screen + enteringScreen: 225, + // recommended when something is leaving screen + leavingScreen: 195 +}; +function formatMs(milliseconds) { + return "".concat(Math.round(milliseconds), "ms"); +} +function getAutoHeightDuration(height) { + if (!height) { + return 0; + } + var constant = height / 36; + + // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10 + return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10); +} +function createTransitions(inputTransitions) { + var mergedEasing = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, easing, inputTransitions.easing); + var mergedDuration = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, duration, inputTransitions.duration); + var create = function create() { + var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all']; + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var _options$duration = options.duration, + durationOption = _options$duration === void 0 ? mergedDuration.standard : _options$duration, + _options$easing = options.easing, + easingOption = _options$easing === void 0 ? mergedEasing.easeInOut : _options$easing, + _options$delay = options.delay, + delay = _options$delay === void 0 ? 0 : _options$delay, + other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(options, _excluded); + if (false) { var isNumber, isString; } + return (Array.isArray(props) ? props : [props]).map(function (animatedProp) { + return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : formatMs(delay)); + }).join(','); + }; + return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({ + getAutoHeightDuration: getAutoHeightDuration, + create: create + }, inputTransitions, { + easing: mergedEasing, + duration: mergedDuration + }); +} + +/***/ }), + +/***/ 9210: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ createTypography; } +/* harmony export */ }); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7462); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3366); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3019); + + +var _excluded = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]; + +function round(value) { + return Math.round(value * 1e5) / 1e5; +} +var caseAllCaps = { + textTransform: 'uppercase' +}; +var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif'; + +/** + * @see @link{https://m2.material.io/design/typography/the-type-system.html} + * @see @link{https://m2.material.io/design/typography/understanding-typography.html} + */ +function createTypography(palette, typography) { + var _ref = typeof typography === 'function' ? typography(palette) : typography, + _ref$fontFamily = _ref.fontFamily, + fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, + _ref$fontSize = _ref.fontSize, + fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize, + _ref$fontWeightLight = _ref.fontWeightLight, + fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, + _ref$fontWeightRegula = _ref.fontWeightRegular, + fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, + _ref$fontWeightMedium = _ref.fontWeightMedium, + fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, + _ref$fontWeightBold = _ref.fontWeightBold, + fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, + _ref$htmlFontSize = _ref.htmlFontSize, + htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, + allVariants = _ref.allVariants, + pxToRem2 = _ref.pxToRem, + other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_ref, _excluded); + if (false) {} + var coef = fontSize / 14; + var pxToRem = pxToRem2 || function (size) { + return "".concat(size / htmlFontSize * coef, "rem"); + }; + var buildVariant = function buildVariant(fontWeight, size, lineHeight, letterSpacing, casing) { + return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({ + fontFamily: fontFamily, + fontWeight: fontWeight, + fontSize: pxToRem(size), + // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/ + lineHeight: lineHeight + }, fontFamily === defaultFontFamily ? { + letterSpacing: "".concat(round(letterSpacing / size), "em") + } : {}, casing, allVariants); + }; + var variants = { + h1: buildVariant(fontWeightLight, 96, 1.167, -1.5), + h2: buildVariant(fontWeightLight, 60, 1.2, -0.5), + h3: buildVariant(fontWeightRegular, 48, 1.167, 0), + h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25), + h5: buildVariant(fontWeightRegular, 24, 1.334, 0), + h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15), + subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15), + subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1), + body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15), + body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15), + button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps), + caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4), + overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps), + // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types. + inherit: { + fontFamily: 'inherit', + fontWeight: 'inherit', + fontSize: 'inherit', + lineHeight: 'inherit', + letterSpacing: 'inherit' + } + }; + return (0,_mui_utils__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({ + htmlFontSize: htmlFontSize, + pxToRem: pxToRem, + fontFamily: fontFamily, + fontSize: fontSize, + fontWeightLight: fontWeightLight, + fontWeightRegular: fontWeightRegular, + fontWeightMedium: fontWeightMedium, + fontWeightBold: fontWeightBold + }, variants), other, { + clone: false // No need to clone deep + }); +} + +/***/ }), + +/***/ 2248: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _createTheme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5669); +'use client'; + + +var defaultTheme = (0,_createTheme__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(); +/* harmony default export */ __webpack_exports__.Z = (defaultTheme); + +/***/ }), + +/***/ 2951: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +/* harmony default export */ __webpack_exports__.Z = ('$$material'); + +/***/ }), + +/***/ 5534: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var shadowKeyUmbraOpacity = 0.2; +var shadowKeyPenumbraOpacity = 0.14; +var shadowAmbientShadowOpacity = 0.12; +function createShadow() { + return ["".concat(arguments.length <= 0 ? undefined : arguments[0], "px ").concat(arguments.length <= 1 ? undefined : arguments[1], "px ").concat(arguments.length <= 2 ? undefined : arguments[2], "px ").concat(arguments.length <= 3 ? undefined : arguments[3], "px rgba(0,0,0,").concat(shadowKeyUmbraOpacity, ")"), "".concat(arguments.length <= 4 ? undefined : arguments[4], "px ").concat(arguments.length <= 5 ? undefined : arguments[5], "px ").concat(arguments.length <= 6 ? undefined : arguments[6], "px ").concat(arguments.length <= 7 ? undefined : arguments[7], "px rgba(0,0,0,").concat(shadowKeyPenumbraOpacity, ")"), "".concat(arguments.length <= 8 ? undefined : arguments[8], "px ").concat(arguments.length <= 9 ? undefined : arguments[9], "px ").concat(arguments.length <= 10 ? undefined : arguments[10], "px ").concat(arguments.length <= 11 ? undefined : arguments[11], "px rgba(0,0,0,").concat(shadowAmbientShadowOpacity, ")")].join(','); +} + +// Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss +var shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)]; +/* harmony default export */ __webpack_exports__.Z = (shadows); + +/***/ }), + +/***/ 7592: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Dz: function() { return /* binding */ slotShouldForwardProp; }, +/* harmony export */ FO: function() { return /* binding */ rootShouldForwardProp; } +/* harmony export */ }); +/* harmony import */ var _mui_system__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5182); +/* harmony import */ var _defaultTheme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2248); +/* harmony import */ var _identifier__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2951); +'use client'; + + + + +var rootShouldForwardProp = function rootShouldForwardProp(prop) { + return (0,_mui_system__WEBPACK_IMPORTED_MODULE_0__/* .shouldForwardProp */ .x9)(prop) && prop !== 'classes'; +}; +var slotShouldForwardProp = _mui_system__WEBPACK_IMPORTED_MODULE_0__/* .shouldForwardProp */ .x9; +var styled = (0,_mui_system__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + themeId: _identifier__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, + defaultTheme: _defaultTheme__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, + rootShouldForwardProp: rootShouldForwardProp +}); +/* harmony default export */ __webpack_exports__.ZP = (styled); + +/***/ }), + +/***/ 7342: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ useThemeProps; } +/* harmony export */ }); +/* harmony import */ var _mui_system__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4614); +/* harmony import */ var _defaultTheme__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2248); +/* harmony import */ var _identifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2951); +'use client'; + + + + +function useThemeProps(_ref) { + var props = _ref.props, + name = _ref.name; + return (0,_mui_system__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({ + props: props, + name: name, + defaultTheme: _defaultTheme__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, + themeId: _identifier__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z + }); +} + +/***/ }), + +/***/ 9100: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +// We need to centralize the zIndex definitions as they work +// like global values in the browser. +var zIndex = { + mobileStepper: 1000, + fab: 1050, + speedDial: 1050, + appBar: 1100, + drawer: 1200, + modal: 1300, + snackbar: 1400, + tooltip: 1500 +}; +/* harmony default export */ __webpack_exports__.Z = (zIndex); + +/***/ }), + +/***/ 1615: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8831); + +/* harmony default export */ __webpack_exports__.Z = (_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z); + +/***/ }), + +/***/ 1171: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ createSvgIcon; } +}); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(7462); +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(7313); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +var objectWithoutPropertiesLoose = __webpack_require__(3366); +// EXTERNAL MODULE: ./node_modules/clsx/dist/clsx.mjs +var clsx = __webpack_require__(4146); +// EXTERNAL MODULE: ./node_modules/@mui/utils/esm/composeClasses/composeClasses.js +var composeClasses = __webpack_require__(1921); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/capitalize.js +var capitalize = __webpack_require__(1615); +// EXTERNAL MODULE: ./node_modules/@mui/material/styles/useThemeProps.js +var useThemeProps = __webpack_require__(7342); +// EXTERNAL MODULE: ./node_modules/@mui/material/styles/styled.js +var styled = __webpack_require__(7592); +// EXTERNAL MODULE: ./node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +var generateUtilityClasses = __webpack_require__(7430); +// EXTERNAL MODULE: ./node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +var generateUtilityClass = __webpack_require__(2298); +;// CONCATENATED MODULE: ./node_modules/@mui/material/SvgIcon/svgIconClasses.js + + +function getSvgIconUtilityClass(slot) { + return (0,generateUtilityClass/* default */.Z)('MuiSvgIcon', slot); +} +var svgIconClasses = (0,generateUtilityClasses/* default */.Z)('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']); +/* harmony default export */ var SvgIcon_svgIconClasses = ((/* unused pure expression or super */ null && (svgIconClasses))); +// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js +var jsx_runtime = __webpack_require__(6417); +;// CONCATENATED MODULE: ./node_modules/@mui/material/SvgIcon/SvgIcon.js +'use client'; + + + +var _excluded = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"]; + + + + + + + + + + +var useUtilityClasses = function useUtilityClasses(ownerState) { + var color = ownerState.color, + fontSize = ownerState.fontSize, + classes = ownerState.classes; + var slots = { + root: ['root', color !== 'inherit' && "color".concat((0,capitalize/* default */.Z)(color)), "fontSize".concat((0,capitalize/* default */.Z)(fontSize))] + }; + return (0,composeClasses/* default */.Z)(slots, getSvgIconUtilityClass, classes); +}; +var SvgIconRoot = (0,styled/* default */.ZP)('svg', { + name: 'MuiSvgIcon', + slot: 'Root', + overridesResolver: function overridesResolver(props, styles) { + var ownerState = props.ownerState; + return [styles.root, ownerState.color !== 'inherit' && styles["color".concat((0,capitalize/* default */.Z)(ownerState.color))], styles["fontSize".concat((0,capitalize/* default */.Z)(ownerState.fontSize))]]; + } +})(function (_ref) { + var theme = _ref.theme, + ownerState = _ref.ownerState; + var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3; + return { + userSelect: 'none', + width: '1em', + height: '1em', + display: 'inline-block', + // the will define the property that has `currentColor` + // e.g. heroicons uses fill="none" and stroke="currentColor" + fill: ownerState.hasSvgAsChild ? undefined : 'currentColor', + flexShrink: 0, + transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', { + duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter + }), + fontSize: { + inherit: 'inherit', + small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem', + medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem', + large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem' + }[ownerState.fontSize], + // TODO v5 deprecate, v6 remove for sx + color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : { + action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active, + disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled, + inherit: undefined + }[ownerState.color] + }; +}); +var SvgIcon = /*#__PURE__*/react.forwardRef(function SvgIcon(inProps, ref) { + var props = (0,useThemeProps/* default */.Z)({ + props: inProps, + name: 'MuiSvgIcon' + }); + var children = props.children, + className = props.className, + _props$color = props.color, + color = _props$color === void 0 ? 'inherit' : _props$color, + _props$component = props.component, + component = _props$component === void 0 ? 'svg' : _props$component, + _props$fontSize = props.fontSize, + fontSize = _props$fontSize === void 0 ? 'medium' : _props$fontSize, + htmlColor = props.htmlColor, + _props$inheritViewBox = props.inheritViewBox, + inheritViewBox = _props$inheritViewBox === void 0 ? false : _props$inheritViewBox, + titleAccess = props.titleAccess, + _props$viewBox = props.viewBox, + viewBox = _props$viewBox === void 0 ? '0 0 24 24' : _props$viewBox, + other = (0,objectWithoutPropertiesLoose/* default */.Z)(props, _excluded); + var hasSvgAsChild = /*#__PURE__*/react.isValidElement(children) && children.type === 'svg'; + var ownerState = (0,esm_extends/* default */.Z)({}, props, { + color: color, + component: component, + fontSize: fontSize, + instanceFontSize: inProps.fontSize, + inheritViewBox: inheritViewBox, + viewBox: viewBox, + hasSvgAsChild: hasSvgAsChild + }); + var more = {}; + if (!inheritViewBox) { + more.viewBox = viewBox; + } + var classes = useUtilityClasses(ownerState); + return /*#__PURE__*/(0,jsx_runtime.jsxs)(SvgIconRoot, (0,esm_extends/* default */.Z)({ + as: component, + className: (0,clsx/* default */.Z)(classes.root, className), + focusable: "false", + color: htmlColor, + "aria-hidden": titleAccess ? undefined : true, + role: titleAccess ? 'img' : undefined, + ref: ref + }, more, other, hasSvgAsChild && children.props, { + ownerState: ownerState, + children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/(0,jsx_runtime.jsx)("title", { + children: titleAccess + }) : null] + })); +}); + false ? 0 : void 0; +SvgIcon.muiName = 'SvgIcon'; +/* harmony default export */ var SvgIcon_SvgIcon = (SvgIcon); +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/createSvgIcon.js +'use client'; + + + + + +/** + * Private module reserved for @mui packages. + */ + +function createSvgIcon(path, displayName) { + function Component(props, ref) { + return /*#__PURE__*/(0,jsx_runtime.jsx)(SvgIcon_SvgIcon, (0,esm_extends/* default */.Z)({ + "data-testid": "".concat(displayName, "Icon"), + ref: ref + }, props, { + children: path + })); + } + if (false) {} + Component.muiName = SvgIcon_SvgIcon.muiName; + return /*#__PURE__*/react.memo( /*#__PURE__*/react.forwardRef(Component)); +} + +/***/ }), + +/***/ 8706: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1636); + +/* harmony default export */ __webpack_exports__.Z = (_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z); + +/***/ }), + +/***/ 3928: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + capitalize: function() { return /* reexport */ capitalize/* default */.Z; }, + createChainedFunction: function() { return /* reexport */ utils_createChainedFunction; }, + createSvgIcon: function() { return /* reexport */ createSvgIcon/* default */.Z; }, + debounce: function() { return /* reexport */ debounce/* default */.Z; }, + deprecatedPropType: function() { return /* reexport */ utils_deprecatedPropType; }, + isMuiElement: function() { return /* reexport */ isMuiElement/* default */.Z; }, + ownerDocument: function() { return /* reexport */ ownerDocument/* default */.Z; }, + ownerWindow: function() { return /* reexport */ ownerWindow/* default */.Z; }, + requirePropFactory: function() { return /* reexport */ utils_requirePropFactory; }, + setRef: function() { return /* reexport */ utils_setRef; }, + unstable_ClassNameGenerator: function() { return /* binding */ unstable_ClassNameGenerator; }, + unstable_useEnhancedEffect: function() { return /* reexport */ useEnhancedEffect/* default */.Z; }, + unstable_useId: function() { return /* reexport */ utils_useId; }, + unsupportedProp: function() { return /* reexport */ utils_unsupportedProp; }, + useControlled: function() { return /* reexport */ useControlled/* default */.Z; }, + useEventCallback: function() { return /* reexport */ useEventCallback/* default */.Z; }, + useForkRef: function() { return /* reexport */ useForkRef/* default */.Z; }, + useIsFocusVisible: function() { return /* reexport */ useIsFocusVisible/* default */.Z; } +}); + +// EXTERNAL MODULE: ./node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +var ClassNameGenerator = __webpack_require__(1271); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/capitalize.js +var capitalize = __webpack_require__(1615); +// EXTERNAL MODULE: ./node_modules/@mui/utils/esm/createChainedFunction.js +var createChainedFunction = __webpack_require__(4246); +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/createChainedFunction.js + +/* harmony default export */ var utils_createChainedFunction = (createChainedFunction/* default */.Z); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/createSvgIcon.js + 2 modules +var createSvgIcon = __webpack_require__(1171); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/debounce.js +var debounce = __webpack_require__(8706); +;// CONCATENATED MODULE: ./node_modules/@mui/utils/esm/deprecatedPropType.js +function deprecatedPropType(validator, reason) { + if (true) { + return function () { + return null; + }; + } + return function (props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; + if (typeof props[propName] !== 'undefined') { + return new Error("The ".concat(location, " `").concat(propFullNameSafe, "` of ") + "`".concat(componentNameSafe, "` is deprecated. ").concat(reason)); + } + return null; + }; +} +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/deprecatedPropType.js + +/* harmony default export */ var utils_deprecatedPropType = (deprecatedPropType); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/isMuiElement.js + 1 modules +var isMuiElement = __webpack_require__(7816); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/ownerDocument.js +var ownerDocument = __webpack_require__(6106); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/ownerWindow.js +var ownerWindow = __webpack_require__(3533); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(7462); +;// CONCATENATED MODULE: ./node_modules/@mui/utils/esm/requirePropFactory.js + +function requirePropFactory(componentNameInError, Component) { + if (true) { + return function () { + return null; + }; + } + + // eslint-disable-next-line react/forbid-foreign-prop-types + var prevPropTypes = Component ? (0,esm_extends/* default */.Z)({}, Component.propTypes) : null; + var requireProp = function requireProp(requiredProp) { + return function (props, propName, componentName, location, propFullName) { + var propFullNameSafe = propFullName || propName; + var defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe]; + if (defaultTypeChecker) { + for (var _len = arguments.length, args = new Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { + args[_key - 5] = arguments[_key]; + } + var typeCheckerResult = defaultTypeChecker.apply(void 0, [props, propName, componentName, location, propFullName].concat(args)); + if (typeCheckerResult) { + return typeCheckerResult; + } + } + if (typeof props[propName] !== 'undefined' && !props[requiredProp]) { + return new Error("The prop `".concat(propFullNameSafe, "` of ") + "`".concat(componentNameInError, "` can only be used together with the `").concat(requiredProp, "` prop.")); + } + return null; + }; + }; + return requireProp; +} +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/requirePropFactory.js + +/* harmony default export */ var utils_requirePropFactory = (requirePropFactory); +// EXTERNAL MODULE: ./node_modules/@mui/utils/esm/setRef.js +var setRef = __webpack_require__(9265); +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/setRef.js + +/* harmony default export */ var utils_setRef = (setRef/* default */.Z); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/useEnhancedEffect.js +var useEnhancedEffect = __webpack_require__(3118); +// EXTERNAL MODULE: ./node_modules/@mui/utils/esm/useId/useId.js +var useId = __webpack_require__(8334); +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/useId.js +'use client'; + + +/* harmony default export */ var utils_useId = (useId/* default */.Z); +;// CONCATENATED MODULE: ./node_modules/@mui/utils/esm/unsupportedProp.js +function unsupportedProp(props, propName, componentName, location, propFullName) { + if (true) { + return null; + } + var propFullNameSafe = propFullName || propName; + if (typeof props[propName] !== 'undefined') { + return new Error("The prop `".concat(propFullNameSafe, "` is not supported. Please remove it.")); + } + return null; +} +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/unsupportedProp.js + +/* harmony default export */ var utils_unsupportedProp = (unsupportedProp); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/useControlled.js + 1 modules +var useControlled = __webpack_require__(4951); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/useEventCallback.js +var useEventCallback = __webpack_require__(3236); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/useForkRef.js +var useForkRef = __webpack_require__(6983); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/useIsFocusVisible.js + 1 modules +var useIsFocusVisible = __webpack_require__(9127); +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/index.js +'use client'; + + + + + + + + + + + + + + + + + + + +// TODO: remove this export once ClassNameGenerator is stable +// eslint-disable-next-line @typescript-eslint/naming-convention +var unstable_ClassNameGenerator = { + configure: function configure(generator) { + if (false) {} + ClassNameGenerator/* default */.Z.configure(generator); + } +}; + +/***/ }), + +/***/ 7816: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ utils_isMuiElement; } +}); + +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(7313); +;// CONCATENATED MODULE: ./node_modules/@mui/utils/esm/isMuiElement.js + +function isMuiElement(element, muiNames) { + return /*#__PURE__*/react.isValidElement(element) && muiNames.indexOf(element.type.muiName) !== -1; +} +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/isMuiElement.js + +/* harmony default export */ var utils_isMuiElement = (isMuiElement); + +/***/ }), + +/***/ 6106: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2504); + +/* harmony default export */ __webpack_exports__.Z = (_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z); + +/***/ }), + +/***/ 3533: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8929); + +/* harmony default export */ __webpack_exports__.Z = (_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z); + +/***/ }), + +/***/ 4951: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ utils_useControlled; } +}); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js +var slicedToArray = __webpack_require__(3324); +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(7313); +;// CONCATENATED MODULE: ./node_modules/@mui/utils/esm/useControlled/useControlled.js +'use client'; + +/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */ + + +function useControlled(_ref) { + var controlled = _ref.controlled, + defaultProp = _ref.default, + name = _ref.name, + _ref$state = _ref.state, + state = _ref$state === void 0 ? 'value' : _ref$state; + // isControlled is ignored in the hook dependency lists as it should never change. + var _React$useRef = react.useRef(controlled !== undefined), + isControlled = _React$useRef.current; + var _React$useState = react.useState(defaultProp), + _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2), + valueState = _React$useState2[0], + setValue = _React$useState2[1]; + var value = isControlled ? controlled : valueState; + if (false) { var _React$useRef2, defaultValue; } + var setValueIfUncontrolled = react.useCallback(function (newValue) { + if (!isControlled) { + setValue(newValue); + } + }, []); + return [value, setValueIfUncontrolled]; +} +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/useControlled.js +'use client'; + + +/* harmony default export */ var utils_useControlled = (useControlled); + +/***/ }), + +/***/ 3118: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5094); +'use client'; + + +/* harmony default export */ __webpack_exports__.Z = (_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z); + +/***/ }), + +/***/ 3236: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6182); +'use client'; + + +/* harmony default export */ __webpack_exports__.Z = (_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z); + +/***/ }), + +/***/ 6983: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1577); +'use client'; + + +/* harmony default export */ __webpack_exports__.Z = (_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z); + +/***/ }), + +/***/ 9127: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ utils_useIsFocusVisible; } +}); + +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(7313); +;// CONCATENATED MODULE: ./node_modules/@mui/utils/esm/useIsFocusVisible.js +'use client'; + +// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js + +var hadKeyboardEvent = true; +var hadFocusVisibleRecently = false; +var hadFocusVisibleRecentlyTimeout; +var inputTypesWhitelist = { + text: true, + search: true, + url: true, + tel: true, + email: true, + password: true, + number: true, + date: true, + month: true, + week: true, + time: true, + datetime: true, + 'datetime-local': true +}; + +/** + * Computes whether the given element should automatically trigger the + * `focus-visible` class being added, i.e. whether it should always match + * `:focus-visible` when focused. + * @param {Element} node + * @returns {boolean} + */ +function focusTriggersKeyboardModality(node) { + var type = node.type, + tagName = node.tagName; + if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) { + return true; + } + if (tagName === 'TEXTAREA' && !node.readOnly) { + return true; + } + if (node.isContentEditable) { + return true; + } + return false; +} + +/** + * Keep track of our keyboard modality state with `hadKeyboardEvent`. + * If the most recent user interaction was via the keyboard; + * and the key press did not include a meta, alt/option, or control key; + * then the modality is keyboard. Otherwise, the modality is not keyboard. + * @param {KeyboardEvent} event + */ +function handleKeyDown(event) { + if (event.metaKey || event.altKey || event.ctrlKey) { + return; + } + hadKeyboardEvent = true; +} + +/** + * If at any point a user clicks with a pointing device, ensure that we change + * the modality away from keyboard. + * This avoids the situation where a user presses a key on an already focused + * element, and then clicks on a different element, focusing it with a + * pointing device, while we still think we're in keyboard modality. + */ +function handlePointerDown() { + hadKeyboardEvent = false; +} +function handleVisibilityChange() { + if (this.visibilityState === 'hidden') { + // If the tab becomes active again, the browser will handle calling focus + // on the element (Safari actually calls it twice). + // If this tab change caused a blur on an element with focus-visible, + // re-apply the class when the user switches back to the tab. + if (hadFocusVisibleRecently) { + hadKeyboardEvent = true; + } + } +} +function prepare(doc) { + doc.addEventListener('keydown', handleKeyDown, true); + doc.addEventListener('mousedown', handlePointerDown, true); + doc.addEventListener('pointerdown', handlePointerDown, true); + doc.addEventListener('touchstart', handlePointerDown, true); + doc.addEventListener('visibilitychange', handleVisibilityChange, true); +} +function teardown(doc) { + doc.removeEventListener('keydown', handleKeyDown, true); + doc.removeEventListener('mousedown', handlePointerDown, true); + doc.removeEventListener('pointerdown', handlePointerDown, true); + doc.removeEventListener('touchstart', handlePointerDown, true); + doc.removeEventListener('visibilitychange', handleVisibilityChange, true); +} +function isFocusVisible(event) { + var target = event.target; + try { + return target.matches(':focus-visible'); + } catch (error) { + // Browsers not implementing :focus-visible will throw a SyntaxError. + // We use our own heuristic for those browsers. + // Rethrow might be better if it's not the expected error but do we really + // want to crash if focus-visible malfunctioned? + } + + // No need for validFocusTarget check. The user does that by attaching it to + // focusable events only. + return hadKeyboardEvent || focusTriggersKeyboardModality(target); +} +function useIsFocusVisible() { + var ref = react.useCallback(function (node) { + if (node != null) { + prepare(node.ownerDocument); + } + }, []); + var isFocusVisibleRef = react.useRef(false); + + /** + * Should be called if a blur event is fired + */ + function handleBlurVisible() { + // checking against potential state variable does not suffice if we focus and blur synchronously. + // React wouldn't have time to trigger a re-render so `focusVisible` would be stale. + // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events. + // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751 + // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186). + if (isFocusVisibleRef.current) { + // To detect a tab/window switch, we look for a blur event followed + // rapidly by a visibility change. + // If we don't see a visibility change within 100ms, it's probably a + // regular focus change. + hadFocusVisibleRecently = true; + window.clearTimeout(hadFocusVisibleRecentlyTimeout); + hadFocusVisibleRecentlyTimeout = window.setTimeout(function () { + hadFocusVisibleRecently = false; + }, 100); + isFocusVisibleRef.current = false; + return true; + } + return false; + } + + /** + * Should be called if a blur event is fired + */ + function handleFocusVisible(event) { + if (isFocusVisible(event)) { + isFocusVisibleRef.current = true; + return true; + } + return false; + } + return { + isFocusVisibleRef: isFocusVisibleRef, + onFocus: handleFocusVisible, + onBlur: handleBlurVisible, + ref: ref + }; +} +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/useIsFocusVisible.js +'use client'; + + +/* harmony default export */ var utils_useIsFocusVisible = (useIsFocusVisible); + +/***/ }), + +/***/ 564: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Co: function() { return /* binding */ internal_processStyles; }, +/* harmony export */ ZP: function() { return /* binding */ styled; } +/* harmony export */ }); +/* harmony import */ var _emotion_styled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3320); +/** + * @mui/styled-engine v5.13.2 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/* eslint-disable no-underscore-dangle */ + +function styled(tag, options) { + var stylesFactory = (0,_emotion_styled__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(tag, options); + if (false) {} + return stylesFactory; +} + +// eslint-disable-next-line @typescript-eslint/naming-convention +var internal_processStyles = function internal_processStyles(tag, processor) { + // Emotion attaches all the styles as `__emotion_styles`. + // Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186 + if (Array.isArray(tag.__emotion_styles)) { + tag.__emotion_styles = processor(tag.__emotion_styles); + } +}; + + + + +/***/ }), + +/***/ 7158: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ E0: function() { return /* binding */ borderRadius; }, +/* harmony export */ NL: function() { return /* binding */ borderTransform; } +/* harmony export */ }); +/* unused harmony exports border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor */ +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6428); +/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7702); +/* harmony import */ var _spacing__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9005); +/* harmony import */ var _breakpoints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4929); + + + + + +function borderTransform(value) { + if (typeof value !== 'number') { + return value; + } + return "".concat(value, "px solid"); +} +var border = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'border', + themeKey: 'borders', + transform: borderTransform +}); +var borderTop = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderTop', + themeKey: 'borders', + transform: borderTransform +}); +var borderRight = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderRight', + themeKey: 'borders', + transform: borderTransform +}); +var borderBottom = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderBottom', + themeKey: 'borders', + transform: borderTransform +}); +var borderLeft = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderLeft', + themeKey: 'borders', + transform: borderTransform +}); +var borderColor = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderColor', + themeKey: 'palette' +}); +var borderTopColor = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderTopColor', + themeKey: 'palette' +}); +var borderRightColor = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderRightColor', + themeKey: 'palette' +}); +var borderBottomColor = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderBottomColor', + themeKey: 'palette' +}); +var borderLeftColor = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderLeftColor', + themeKey: 'palette' +}); + +// false positive +// eslint-disable-next-line react/function-component-definition +var borderRadius = function borderRadius(props) { + if (props.borderRadius !== undefined && props.borderRadius !== null) { + var transformer = (0,_spacing__WEBPACK_IMPORTED_MODULE_1__/* .createUnaryUnit */ .eI)(props.theme, 'shape.borderRadius', 4, 'borderRadius'); + var styleFromPropValue = function styleFromPropValue(propValue) { + return { + borderRadius: (0,_spacing__WEBPACK_IMPORTED_MODULE_1__/* .getValue */ .NA)(transformer, propValue) + }; + }; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_2__/* .handleBreakpoints */ .k9)(props, props.borderRadius, styleFromPropValue); + } + return null; +}; +borderRadius.propTypes = false ? 0 : {}; +borderRadius.filterProps = ['borderRadius']; +var borders = (0,_compose__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius); +/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (borders))); + +/***/ }), + +/***/ 4929: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ L7: function() { return /* binding */ removeUnusedBreakpoints; }, +/* harmony export */ P$: function() { return /* binding */ resolveBreakpointValues; }, +/* harmony export */ VO: function() { return /* binding */ values; }, +/* harmony export */ W8: function() { return /* binding */ createEmptyBreakpointObject; }, +/* harmony export */ dt: function() { return /* binding */ mergeBreakpointsInOrder; }, +/* harmony export */ k9: function() { return /* binding */ handleBreakpoints; } +/* harmony export */ }); +/* unused harmony export computeBreakpointsBase */ +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3019); + + + + + + +// The breakpoint **start** at this value. +// For instance with the first breakpoint xs: [xs, sm[. +var values = { + xs: 0, + // phone + sm: 600, + // tablet + md: 900, + // small laptop + lg: 1200, + // desktop + xl: 1536 // large screen +}; + +var defaultBreakpoints = { + // Sorted ASC by size. That's important. + // It can't be configured as it's used statically for propTypes. + keys: ['xs', 'sm', 'md', 'lg', 'xl'], + up: function up(key) { + return "@media (min-width:".concat(values[key], "px)"); + } +}; +function handleBreakpoints(props, propValue, styleFromPropValue) { + var theme = props.theme || {}; + if (Array.isArray(propValue)) { + var themeBreakpoints = theme.breakpoints || defaultBreakpoints; + return propValue.reduce(function (acc, item, index) { + acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]); + return acc; + }, {}); + } + if (typeof propValue === 'object') { + var _themeBreakpoints = theme.breakpoints || defaultBreakpoints; + return Object.keys(propValue).reduce(function (acc, breakpoint) { + // key is breakpoint + if (Object.keys(_themeBreakpoints.values || values).indexOf(breakpoint) !== -1) { + var mediaKey = _themeBreakpoints.up(breakpoint); + acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint); + } else { + var cssKey = breakpoint; + acc[cssKey] = propValue[cssKey]; + } + return acc; + }, {}); + } + var output = styleFromPropValue(propValue); + return output; +} +function breakpoints(styleFunction) { + // false positive + // eslint-disable-next-line react/function-component-definition + var newStyleFunction = function newStyleFunction(props) { + var theme = props.theme || {}; + var base = styleFunction(props); + var themeBreakpoints = theme.breakpoints || defaultBreakpoints; + var extended = themeBreakpoints.keys.reduce(function (acc, key) { + if (props[key]) { + acc = acc || {}; + acc[themeBreakpoints.up(key)] = styleFunction(_extends({ + theme: theme + }, props[key])); + } + return acc; + }, null); + return merge(base, extended); + }; + newStyleFunction.propTypes = false ? 0 : {}; + newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl'].concat(_toConsumableArray(styleFunction.filterProps)); + return newStyleFunction; +} +function createEmptyBreakpointObject() { + var breakpointsInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var _breakpointsInput$key; + var breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce(function (acc, key) { + var breakpointStyleKey = breakpointsInput.up(key); + acc[breakpointStyleKey] = {}; + return acc; + }, {}); + return breakpointsInOrder || {}; +} +function removeUnusedBreakpoints(breakpointKeys, style) { + return breakpointKeys.reduce(function (acc, key) { + var breakpointOutput = acc[key]; + var isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0; + if (isBreakpointUnused) { + delete acc[key]; + } + return acc; + }, style); +} +function mergeBreakpointsInOrder(breakpointsInput) { + var emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput); + for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + styles[_key - 1] = arguments[_key]; + } + var mergedOutput = [emptyBreakpoints].concat(styles).reduce(function (prev, next) { + return (0,_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(prev, next); + }, {}); + return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput); +} + +// compute base for responsive values; e.g., +// [1,2,3] => {xs: true, sm: true, md: true} +// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true} +function computeBreakpointsBase(breakpointValues, themeBreakpoints) { + // fixed value + if (typeof breakpointValues !== 'object') { + return {}; + } + var base = {}; + var breakpointsKeys = Object.keys(themeBreakpoints); + if (Array.isArray(breakpointValues)) { + breakpointsKeys.forEach(function (breakpoint, i) { + if (i < breakpointValues.length) { + base[breakpoint] = true; + } + }); + } else { + breakpointsKeys.forEach(function (breakpoint) { + if (breakpointValues[breakpoint] != null) { + base[breakpoint] = true; + } + }); + } + return base; +} +function resolveBreakpointValues(_ref) { + var breakpointValues = _ref.values, + themeBreakpoints = _ref.breakpoints, + customBase = _ref.base; + var base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints); + var keys = Object.keys(base); + if (keys.length === 0) { + return breakpointValues; + } + var previous; + return keys.reduce(function (acc, breakpoint, i) { + if (Array.isArray(breakpointValues)) { + acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous]; + previous = i; + } else if (typeof breakpointValues === 'object') { + acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous]; + previous = breakpoint; + } else { + acc[breakpoint] = breakpointValues; + } + return acc; + }, {}); +} +/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (breakpoints))); + +/***/ }), + +/***/ 7551: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ $n: function() { return /* binding */ lighten; }, +/* harmony export */ Fq: function() { return /* binding */ alpha; }, +/* harmony export */ _j: function() { return /* binding */ darken; }, +/* harmony export */ mi: function() { return /* binding */ getContrastRatio; } +/* harmony export */ }); +/* unused harmony exports hexToRgb, decomposeColor, colorChannel, private_safeColorChannel, recomposeColor, rgbToHex, hslToRgb, getLuminance, private_safeAlpha, private_safeDarken, private_safeLighten, emphasize, private_safeEmphasize */ +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7219); + +/* eslint-disable @typescript-eslint/naming-convention */ +/** + * Returns a number whose value is limited to the given range. + * @param {number} value The value to be clamped + * @param {number} min The lower boundary of the output range + * @param {number} max The upper boundary of the output range + * @returns {number} A number in the range [min, max] + */ +function clamp(value) { + var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; + if (false) {} + return Math.min(Math.max(min, value), max); +} + +/** + * Converts a color from CSS hex format to CSS rgb format. + * @param {string} color - Hex color, i.e. #nnn or #nnnnnn + * @returns {string} A CSS rgb color string + */ +function hexToRgb(color) { + color = color.slice(1); + var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), 'g'); + var colors = color.match(re); + if (colors && colors[0].length === 1) { + colors = colors.map(function (n) { + return n + n; + }); + } + return colors ? "rgb".concat(colors.length === 4 ? 'a' : '', "(").concat(colors.map(function (n, index) { + return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000; + }).join(', '), ")") : ''; +} +function intToHex(int) { + var hex = int.toString(16); + return hex.length === 1 ? "0".concat(hex) : hex; +} + +/** + * Returns an object with the type and values of a color. + * + * Note: Does not support rgb % values. + * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color() + * @returns {object} - A MUI color object: {type: string, values: number[]} + */ +function decomposeColor(color) { + // Idempotent + if (color.type) { + return color; + } + if (color.charAt(0) === '#') { + return decomposeColor(hexToRgb(color)); + } + var marker = color.indexOf('('); + var type = color.substring(0, marker); + if (['rgb', 'rgba', 'hsl', 'hsla', 'color'].indexOf(type) === -1) { + throw new Error( false ? 0 : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(9, color)); + } + var values = color.substring(marker + 1, color.length - 1); + var colorSpace; + if (type === 'color') { + values = values.split(' '); + colorSpace = values.shift(); + if (values.length === 4 && values[3].charAt(0) === '/') { + values[3] = values[3].slice(1); + } + if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) { + throw new Error( false ? 0 : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(10, colorSpace)); + } + } else { + values = values.split(','); + } + values = values.map(function (value) { + return parseFloat(value); + }); + return { + type: type, + values: values, + colorSpace: colorSpace + }; +} + +/** + * Returns a channel created from the input color. + * + * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color() + * @returns {string} - The channel for the color, that can be used in rgba or hsla colors + */ +var colorChannel = function colorChannel(color) { + var decomposedColor = decomposeColor(color); + return decomposedColor.values.slice(0, 3).map(function (val, idx) { + return decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? "".concat(val, "%") : val; + }).join(' '); +}; +var private_safeColorChannel = function private_safeColorChannel(color, warning) { + try { + return colorChannel(color); + } catch (error) { + if (warning && "production" !== 'production') {} + return color; + } +}; + +/** + * Converts a color object with type and values to a string. + * @param {object} color - Decomposed color + * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color' + * @param {array} color.values - [n,n,n] or [n,n,n,n] + * @returns {string} A CSS color string + */ +function recomposeColor(color) { + var type = color.type, + colorSpace = color.colorSpace; + var values = color.values; + if (type.indexOf('rgb') !== -1) { + // Only convert the first 3 values to int (i.e. not alpha) + values = values.map(function (n, i) { + return i < 3 ? parseInt(n, 10) : n; + }); + } else if (type.indexOf('hsl') !== -1) { + values[1] = "".concat(values[1], "%"); + values[2] = "".concat(values[2], "%"); + } + if (type.indexOf('color') !== -1) { + values = "".concat(colorSpace, " ").concat(values.join(' ')); + } else { + values = "".concat(values.join(', ')); + } + return "".concat(type, "(").concat(values, ")"); +} + +/** + * Converts a color from CSS rgb format to CSS hex format. + * @param {string} color - RGB color, i.e. rgb(n, n, n) + * @returns {string} A CSS rgb color string, i.e. #nnnnnn + */ +function rgbToHex(color) { + // Idempotent + if (color.indexOf('#') === 0) { + return color; + } + var _decomposeColor = decomposeColor(color), + values = _decomposeColor.values; + return "#".concat(values.map(function (n, i) { + return intToHex(i === 3 ? Math.round(255 * n) : n); + }).join('')); +} + +/** + * Converts a color from hsl format to rgb format. + * @param {string} color - HSL color values + * @returns {string} rgb color values + */ +function hslToRgb(color) { + color = decomposeColor(color); + var _color = color, + values = _color.values; + var h = values[0]; + var s = values[1] / 100; + var l = values[2] / 100; + var a = s * Math.min(l, 1 - l); + var f = function f(n) { + var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12; + return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1); + }; + var type = 'rgb'; + var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)]; + if (color.type === 'hsla') { + type += 'a'; + rgb.push(values[3]); + } + return recomposeColor({ + type: type, + values: rgb + }); +} +/** + * The relative brightness of any point in a color space, + * normalized to 0 for darkest black and 1 for lightest white. + * + * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests + * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color() + * @returns {number} The relative brightness of the color in the range 0 - 1 + */ +function getLuminance(color) { + color = decomposeColor(color); + var rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values; + rgb = rgb.map(function (val) { + if (color.type !== 'color') { + val /= 255; // normalized + } + + return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4); + }); + + // Truncate at 3 digits + return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3)); +} + +/** + * Calculates the contrast ratio between two colors. + * + * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests + * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() + * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() + * @returns {number} A contrast ratio value in the range 0 - 21. + */ +function getContrastRatio(foreground, background) { + var lumA = getLuminance(foreground); + var lumB = getLuminance(background); + return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05); +} + +/** + * Sets the absolute transparency of a color. + * Any existing alpha values are overwritten. + * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color() + * @param {number} value - value to set the alpha channel to in the range 0 - 1 + * @returns {string} A CSS color string. Hex input values are returned as rgb + */ +function alpha(color, value) { + color = decomposeColor(color); + value = clamp(value); + if (color.type === 'rgb' || color.type === 'hsl') { + color.type += 'a'; + } + if (color.type === 'color') { + color.values[3] = "/".concat(value); + } else { + color.values[3] = value; + } + return recomposeColor(color); +} +function private_safeAlpha(color, value, warning) { + try { + return alpha(color, value); + } catch (error) { + if (warning && "production" !== 'production') {} + return color; + } +} + +/** + * Darkens a color. + * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color() + * @param {number} coefficient - multiplier in the range 0 - 1 + * @returns {string} A CSS color string. Hex input values are returned as rgb + */ +function darken(color, coefficient) { + color = decomposeColor(color); + coefficient = clamp(coefficient); + if (color.type.indexOf('hsl') !== -1) { + color.values[2] *= 1 - coefficient; + } else if (color.type.indexOf('rgb') !== -1 || color.type.indexOf('color') !== -1) { + for (var i = 0; i < 3; i += 1) { + color.values[i] *= 1 - coefficient; + } + } + return recomposeColor(color); +} +function private_safeDarken(color, coefficient, warning) { + try { + return darken(color, coefficient); + } catch (error) { + if (warning && "production" !== 'production') {} + return color; + } +} + +/** + * Lightens a color. + * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color() + * @param {number} coefficient - multiplier in the range 0 - 1 + * @returns {string} A CSS color string. Hex input values are returned as rgb + */ +function lighten(color, coefficient) { + color = decomposeColor(color); + coefficient = clamp(coefficient); + if (color.type.indexOf('hsl') !== -1) { + color.values[2] += (100 - color.values[2]) * coefficient; + } else if (color.type.indexOf('rgb') !== -1) { + for (var i = 0; i < 3; i += 1) { + color.values[i] += (255 - color.values[i]) * coefficient; + } + } else if (color.type.indexOf('color') !== -1) { + for (var _i = 0; _i < 3; _i += 1) { + color.values[_i] += (1 - color.values[_i]) * coefficient; + } + } + return recomposeColor(color); +} +function private_safeLighten(color, coefficient, warning) { + try { + return lighten(color, coefficient); + } catch (error) { + if (warning && "production" !== 'production') {} + return color; + } +} + +/** + * Darken or lighten a color, depending on its luminance. + * Light colors are darkened, dark colors are lightened. + * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color() + * @param {number} coefficient=0.15 - multiplier in the range 0 - 1 + * @returns {string} A CSS color string. Hex input values are returned as rgb + */ +function emphasize(color) { + var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15; + return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient); +} +function private_safeEmphasize(color, coefficient, warning) { + try { + return private_safeEmphasize(color, coefficient); + } catch (error) { + if (warning && "production" !== 'production') {} + return color; + } +} + +/***/ }), + +/***/ 7702: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7330); + +function compose() { + for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) { + styles[_key] = arguments[_key]; + } + var handlers = styles.reduce(function (acc, style) { + style.filterProps.forEach(function (prop) { + acc[prop] = style; + }); + return acc; + }, {}); + + // false positive + // eslint-disable-next-line react/function-component-definition + var fn = function fn(props) { + return Object.keys(props).reduce(function (acc, prop) { + if (handlers[prop]) { + return (0,_merge__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(acc, handlers[prop](props)); + } + return acc; + }, {}); + }; + fn.propTypes = false ? 0 : {}; + fn.filterProps = styles.reduce(function (acc, style) { + return acc.concat(style.filterProps); + }, []); + return fn; +} +/* harmony default export */ __webpack_exports__.Z = (compose); + +/***/ }), + +/***/ 5182: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ ZP: function() { return /* binding */ createStyled; }, +/* harmony export */ x9: function() { return /* binding */ shouldForwardProp; } +/* harmony export */ }); +/* unused harmony export systemDefaultTheme */ +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9062); +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3324); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3366); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7462); +/* harmony import */ var _mui_styled_engine__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(564); +/* harmony import */ var _createTheme__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7424); +/* harmony import */ var _propsToClassKey__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(490); +/* harmony import */ var _styleFunctionSx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3649); + + + + +var _excluded = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"]; +/* eslint-disable no-underscore-dangle */ + + + + + +function isEmpty(obj) { + return Object.keys(obj).length === 0; +} + +// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40 +function isStringTag(tag) { + return typeof tag === 'string' && + // 96 is one less than the char code + // for "a" so this is checking that + // it's a lowercase character + tag.charCodeAt(0) > 96; +} +var getStyleOverrides = function getStyleOverrides(name, theme) { + if (theme.components && theme.components[name] && theme.components[name].styleOverrides) { + return theme.components[name].styleOverrides; + } + return null; +}; +var getVariantStyles = function getVariantStyles(name, theme) { + var variants = []; + if (theme && theme.components && theme.components[name] && theme.components[name].variants) { + variants = theme.components[name].variants; + } + var variantsStyles = {}; + variants.forEach(function (definition) { + var key = (0,_propsToClassKey__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(definition.props); + variantsStyles[key] = definition.style; + }); + return variantsStyles; +}; +var variantsResolver = function variantsResolver(props, styles, theme, name) { + var _theme$components; + var _props$ownerState = props.ownerState, + ownerState = _props$ownerState === void 0 ? {} : _props$ownerState; + var variantsStyles = []; + var themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[name]) == null ? void 0 : _theme$components.variants; + if (themeVariants) { + themeVariants.forEach(function (themeVariant) { + var isMatch = true; + Object.keys(themeVariant.props).forEach(function (key) { + if (ownerState[key] !== themeVariant.props[key] && props[key] !== themeVariant.props[key]) { + isMatch = false; + } + }); + if (isMatch) { + variantsStyles.push(styles[(0,_propsToClassKey__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(themeVariant.props)]); + } + }); + } + return variantsStyles; +}; + +// Update /system/styled/#api in case if this changes +function shouldForwardProp(prop) { + return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as'; +} +var systemDefaultTheme = (0,_createTheme__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(); +var lowercaseFirstLetter = function lowercaseFirstLetter(string) { + if (!string) { + return string; + } + return string.charAt(0).toLowerCase() + string.slice(1); +}; +function resolveTheme(_ref) { + var defaultTheme = _ref.defaultTheme, + theme = _ref.theme, + themeId = _ref.themeId; + return isEmpty(theme) ? defaultTheme : theme[themeId] || theme; +} +function defaultOverridesResolver(slot) { + if (!slot) { + return null; + } + return function (props, styles) { + return styles[slot]; + }; +} +function createStyled() { + var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var themeId = input.themeId, + _input$defaultTheme = input.defaultTheme, + defaultTheme = _input$defaultTheme === void 0 ? systemDefaultTheme : _input$defaultTheme, + _input$rootShouldForw = input.rootShouldForwardProp, + rootShouldForwardProp = _input$rootShouldForw === void 0 ? shouldForwardProp : _input$rootShouldForw, + _input$slotShouldForw = input.slotShouldForwardProp, + slotShouldForwardProp = _input$slotShouldForw === void 0 ? shouldForwardProp : _input$slotShouldForw; + var systemSx = function systemSx(props) { + return (0,_styleFunctionSx__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + theme: resolveTheme((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + defaultTheme: defaultTheme, + themeId: themeId + })) + })); + }; + systemSx.__mui_systemSx = true; + return function (tag) { + var inputOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components. + (0,_mui_styled_engine__WEBPACK_IMPORTED_MODULE_4__/* .internal_processStyles */ .Co)(tag, function (styles) { + return styles.filter(function (style) { + return !(style != null && style.__mui_systemSx); + }); + }); + var componentName = inputOptions.name, + componentSlot = inputOptions.slot, + inputSkipVariantsResolver = inputOptions.skipVariantsResolver, + inputSkipSx = inputOptions.skipSx, + _inputOptions$overrid = inputOptions.overridesResolver, + overridesResolver = _inputOptions$overrid === void 0 ? defaultOverridesResolver(lowercaseFirstLetter(componentSlot)) : _inputOptions$overrid, + options = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(inputOptions, _excluded); + + // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots. + var skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : + // TODO v6: remove `Root` in the next major release + // For more details: https://github.com/mui/material-ui/pull/37908 + componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false; + var skipSx = inputSkipSx || false; + var label; + if (false) {} + var shouldForwardPropOption = shouldForwardProp; + + // TODO v6: remove `Root` in the next major release + // For more details: https://github.com/mui/material-ui/pull/37908 + if (componentSlot === 'Root' || componentSlot === 'root') { + shouldForwardPropOption = rootShouldForwardProp; + } else if (componentSlot) { + // any other slot specified + shouldForwardPropOption = slotShouldForwardProp; + } else if (isStringTag(tag)) { + // for string (html) tag, preserve the behavior in emotion & styled-components. + shouldForwardPropOption = undefined; + } + var defaultStyledResolver = (0,_mui_styled_engine__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP)(tag, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({ + shouldForwardProp: shouldForwardPropOption, + label: label + }, options)); + var muiStyledResolver = function muiStyledResolver(styleArg) { + for (var _len = arguments.length, expressions = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + expressions[_key - 1] = arguments[_key]; + } + var expressionsWithDefaultTheme = expressions ? expressions.map(function (stylesArg) { + // On the server Emotion doesn't use React.forwardRef for creating components, so the created + // component stays as a function. This condition makes sure that we do not interpolate functions + // which are basically components used as a selectors. + return typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg ? function (props) { + return stylesArg((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + theme: resolveTheme((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + defaultTheme: defaultTheme, + themeId: themeId + })) + })); + } : stylesArg; + }) : []; + var transformedStyleArg = styleArg; + if (componentName && overridesResolver) { + expressionsWithDefaultTheme.push(function (props) { + var theme = resolveTheme((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + defaultTheme: defaultTheme, + themeId: themeId + })); + var styleOverrides = getStyleOverrides(componentName, theme); + if (styleOverrides) { + var resolvedStyleOverrides = {}; + Object.entries(styleOverrides).forEach(function (_ref2) { + var _ref3 = (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(_ref2, 2), + slotKey = _ref3[0], + slotStyle = _ref3[1]; + resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + theme: theme + })) : slotStyle; + }); + return overridesResolver(props, resolvedStyleOverrides); + } + return null; + }); + } + if (componentName && !skipVariantsResolver) { + expressionsWithDefaultTheme.push(function (props) { + var theme = resolveTheme((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + defaultTheme: defaultTheme, + themeId: themeId + })); + return variantsResolver(props, getVariantStyles(componentName, theme), theme, componentName); + }); + } + if (!skipSx) { + expressionsWithDefaultTheme.push(systemSx); + } + var numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length; + if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) { + var placeholders = new Array(numOfCustomFnsApplied).fill(''); + // If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles. + transformedStyleArg = [].concat((0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(styleArg), (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(placeholders)); + transformedStyleArg.raw = [].concat((0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(styleArg.raw), (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(placeholders)); + } else if (typeof styleArg === 'function' && + // On the server Emotion doesn't use React.forwardRef for creating components, so the created + // component stays as a function. This condition makes sure that we do not interpolate functions + // which are basically components used as a selectors. + styleArg.__emotion_real !== styleArg) { + // If the type is function, we need to define the default theme. + transformedStyleArg = function transformedStyleArg(props) { + return styleArg((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + theme: resolveTheme((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + defaultTheme: defaultTheme, + themeId: themeId + })) + })); + }; + } + var Component = defaultStyledResolver.apply(void 0, [transformedStyleArg].concat((0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(expressionsWithDefaultTheme))); + if (false) { var displayName; } + if (tag.muiName) { + Component.muiName = tag.muiName; + } + return Component; + }; + if (defaultStyledResolver.withConfig) { + muiStyledResolver.withConfig = defaultStyledResolver.withConfig; + } + return muiStyledResolver; + }; +} + +/***/ }), + +/***/ 4162: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ createBreakpoints; } +/* harmony export */ }); +/* unused harmony export breakpointKeys */ +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4942); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3366); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7462); + + + +var _excluded = ["values", "unit", "step"]; +// Sorted ASC by size. That's important. +// It can't be configured as it's used statically for propTypes. +var breakpointKeys = (/* unused pure expression or super */ null && (['xs', 'sm', 'md', 'lg', 'xl'])); +var sortBreakpointsValues = function sortBreakpointsValues(values) { + var breakpointsAsArray = Object.keys(values).map(function (key) { + return { + key: key, + val: values[key] + }; + }) || []; + // Sort in ascending order + breakpointsAsArray.sort(function (breakpoint1, breakpoint2) { + return breakpoint1.val - breakpoint2.val; + }); + return breakpointsAsArray.reduce(function (acc, obj) { + return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, acc, (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({}, obj.key, obj.val)); + }, {}); +}; + +// Keep in mind that @media is inclusive by the CSS specification. +function createBreakpoints(breakpoints) { + var _breakpoints$values = breakpoints.values, + values = _breakpoints$values === void 0 ? { + xs: 0, + // phone + sm: 600, + // tablet + md: 900, + // small laptop + lg: 1200, + // desktop + xl: 1536 // large screen + } : _breakpoints$values, + _breakpoints$unit = breakpoints.unit, + unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit, + _breakpoints$step = breakpoints.step, + step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, + other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(breakpoints, _excluded); + var sortedValues = sortBreakpointsValues(values); + var keys = Object.keys(sortedValues); + function up(key) { + var value = typeof values[key] === 'number' ? values[key] : key; + return "@media (min-width:".concat(value).concat(unit, ")"); + } + function down(key) { + var value = typeof values[key] === 'number' ? values[key] : key; + return "@media (max-width:".concat(value - step / 100).concat(unit, ")"); + } + function between(start, end) { + var endIndex = keys.indexOf(end); + return "@media (min-width:".concat(typeof values[start] === 'number' ? values[start] : start).concat(unit, ") and ") + "(max-width:".concat((endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100).concat(unit, ")"); + } + function only(key) { + if (keys.indexOf(key) + 1 < keys.length) { + return between(key, keys[keys.indexOf(key) + 1]); + } + return up(key); + } + function not(key) { + // handle first and last key separately, for better readability + var keyIndex = keys.indexOf(key); + if (keyIndex === 0) { + return up(keys[1]); + } + if (keyIndex === keys.length - 1) { + return down(keys[keyIndex]); + } + return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and'); + } + return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({ + keys: keys, + values: sortedValues, + up: up, + down: down, + between: between, + only: only, + not: not, + unit: unit + }, other); +} + +/***/ }), + +/***/ 8358: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ createSpacing; } +/* harmony export */ }); +/* harmony import */ var _spacing__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9005); + + +// The different signatures imply different meaning for their arguments that can't be expressed structurally. +// We express the difference with variable names. +/* tslint:disable:unified-signatures */ +/* tslint:enable:unified-signatures */ + +function createSpacing() { + var spacingInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8; + // Already transformed. + if (spacingInput.mui) { + return spacingInput; + } + + // Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout. + // Smaller components, such as icons, can align to a 4dp grid. + // https://m2.material.io/design/layout/understanding-layout.html + var transform = (0,_spacing__WEBPACK_IMPORTED_MODULE_0__/* .createUnarySpacing */ .hB)({ + spacing: spacingInput + }); + var spacing = function spacing() { + for (var _len = arguments.length, argsInput = new Array(_len), _key = 0; _key < _len; _key++) { + argsInput[_key] = arguments[_key]; + } + if (false) {} + var args = argsInput.length === 0 ? [1] : argsInput; + return args.map(function (argument) { + var output = transform(argument); + return typeof output === 'number' ? "".concat(output, "px") : output; + }).join(' '); + }; + spacing.mui = true; + return spacing; +} + +/***/ }), + +/***/ 7424: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7462); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3366); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3019); +/* harmony import */ var _createBreakpoints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4162); +/* harmony import */ var _shape__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5821); +/* harmony import */ var _createSpacing__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8358); +/* harmony import */ var _styleFunctionSx_styleFunctionSx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(3649); +/* harmony import */ var _styleFunctionSx_defaultSxConfig__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5789); + + +var _excluded = ["breakpoints", "palette", "spacing", "shape"]; + + + + + + +function createTheme() { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var _options$breakpoints = options.breakpoints, + breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, + _options$palette = options.palette, + paletteInput = _options$palette === void 0 ? {} : _options$palette, + spacingInput = options.spacing, + _options$shape = options.shape, + shapeInput = _options$shape === void 0 ? {} : _options$shape, + other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(options, _excluded); + var breakpoints = (0,_createBreakpoints__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(breakpointsInput); + var spacing = (0,_createSpacing__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(spacingInput); + var muiTheme = (0,_mui_utils__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({ + breakpoints: breakpoints, + direction: 'ltr', + components: {}, + // Inject component definitions. + palette: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({ + mode: 'light' + }, paletteInput), + spacing: spacing, + shape: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({}, _shape__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, shapeInput) + }, other); + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + muiTheme = args.reduce(function (acc, argument) { + return (0,_mui_utils__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(acc, argument); + }, muiTheme); + muiTheme.unstable_sxConfig = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({}, _styleFunctionSx_defaultSxConfig__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, other == null ? void 0 : other.unstable_sxConfig); + muiTheme.unstable_sx = function sx(props) { + return (0,_styleFunctionSx_styleFunctionSx__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)({ + sx: props, + theme: this + }); + }; + return muiTheme; +} +/* harmony default export */ __webpack_exports__.Z = (createTheme); + +/***/ }), + +/***/ 5821: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var shape = { + borderRadius: 4 +}; +/* harmony default export */ __webpack_exports__.Z = (shape); + +/***/ }), + +/***/ 924: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ SG: function() { return /* binding */ gap; }, +/* harmony export */ e$: function() { return /* binding */ columnGap; }, +/* harmony export */ s2: function() { return /* binding */ rowGap; } +/* harmony export */ }); +/* unused harmony exports gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea */ +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6428); +/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7702); +/* harmony import */ var _spacing__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9005); +/* harmony import */ var _breakpoints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4929); + + + + + + +// false positive +// eslint-disable-next-line react/function-component-definition +var gap = function gap(props) { + if (props.gap !== undefined && props.gap !== null) { + var transformer = (0,_spacing__WEBPACK_IMPORTED_MODULE_0__/* .createUnaryUnit */ .eI)(props.theme, 'spacing', 8, 'gap'); + var styleFromPropValue = function styleFromPropValue(propValue) { + return { + gap: (0,_spacing__WEBPACK_IMPORTED_MODULE_0__/* .getValue */ .NA)(transformer, propValue) + }; + }; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_1__/* .handleBreakpoints */ .k9)(props, props.gap, styleFromPropValue); + } + return null; +}; +gap.propTypes = false ? 0 : {}; +gap.filterProps = ['gap']; + +// false positive +// eslint-disable-next-line react/function-component-definition +var columnGap = function columnGap(props) { + if (props.columnGap !== undefined && props.columnGap !== null) { + var transformer = (0,_spacing__WEBPACK_IMPORTED_MODULE_0__/* .createUnaryUnit */ .eI)(props.theme, 'spacing', 8, 'columnGap'); + var styleFromPropValue = function styleFromPropValue(propValue) { + return { + columnGap: (0,_spacing__WEBPACK_IMPORTED_MODULE_0__/* .getValue */ .NA)(transformer, propValue) + }; + }; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_1__/* .handleBreakpoints */ .k9)(props, props.columnGap, styleFromPropValue); + } + return null; +}; +columnGap.propTypes = false ? 0 : {}; +columnGap.filterProps = ['columnGap']; + +// false positive +// eslint-disable-next-line react/function-component-definition +var rowGap = function rowGap(props) { + if (props.rowGap !== undefined && props.rowGap !== null) { + var transformer = (0,_spacing__WEBPACK_IMPORTED_MODULE_0__/* .createUnaryUnit */ .eI)(props.theme, 'spacing', 8, 'rowGap'); + var styleFromPropValue = function styleFromPropValue(propValue) { + return { + rowGap: (0,_spacing__WEBPACK_IMPORTED_MODULE_0__/* .getValue */ .NA)(transformer, propValue) + }; + }; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_1__/* .handleBreakpoints */ .k9)(props, props.rowGap, styleFromPropValue); + } + return null; +}; +rowGap.propTypes = false ? 0 : {}; +rowGap.filterProps = ['rowGap']; +var gridColumn = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridColumn' +}); +var gridRow = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridRow' +}); +var gridAutoFlow = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridAutoFlow' +}); +var gridAutoColumns = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridAutoColumns' +}); +var gridAutoRows = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridAutoRows' +}); +var gridTemplateColumns = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridTemplateColumns' +}); +var gridTemplateRows = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridTemplateRows' +}); +var gridTemplateAreas = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridTemplateAreas' +}); +var gridArea = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridArea' +}); +var grid = (0,_compose__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea); +/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (grid))); + +/***/ }), + +/***/ 5882: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ memoize; } +/* harmony export */ }); +function memoize(fn) { + var cache = {}; + return function (arg) { + if (cache[arg] === undefined) { + cache[arg] = fn(arg); + } + return cache[arg]; + }; +} + +/***/ }), + +/***/ 7330: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3019); + +function merge(acc, item) { + if (!item) { + return acc; + } + return (0,_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(acc, item, { + clone: false // No need to clone deep, it's way faster. + }); +} + +/* harmony default export */ __webpack_exports__.Z = (merge); + +/***/ }), + +/***/ 6236: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Sh: function() { return /* binding */ paletteTransform; } +/* harmony export */ }); +/* unused harmony exports color, bgcolor, backgroundColor */ +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6428); +/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7702); + + +function paletteTransform(value, userValue) { + if (userValue === 'grey') { + return userValue; + } + return value; +} +var color = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'color', + themeKey: 'palette', + transform: paletteTransform +}); +var bgcolor = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'bgcolor', + cssProperty: 'backgroundColor', + themeKey: 'palette', + transform: paletteTransform +}); +var backgroundColor = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'backgroundColor', + themeKey: 'palette', + transform: paletteTransform +}); +var palette = (0,_compose__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(color, bgcolor, backgroundColor); +/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (palette))); + +/***/ }), + +/***/ 490: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ propsToClassKey; } +/* harmony export */ }); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3366); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8831); + +var _excluded = ["variant"]; + +function isEmpty(string) { + return string.length === 0; +} + +/** + * Generates string classKey based on the properties provided. It starts with the + * variant if defined, and then it appends all other properties in alphabetical order. + * @param {object} props - the properties for which the classKey should be created. + */ +function propsToClassKey(props) { + var variant = props.variant, + other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(props, _excluded); + var classKey = variant || ''; + Object.keys(other).sort().forEach(function (key) { + if (key === 'color') { + classKey += isEmpty(classKey) ? props[key] : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(props[key]); + } else { + classKey += "".concat(isEmpty(classKey) ? key : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(key)).concat((0,_mui_utils__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(props[key].toString())); + } + }); + return classKey; +} + +/***/ }), + +/***/ 9341: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ EB: function() { return /* binding */ sizingTransform; }, +/* harmony export */ kk: function() { return /* binding */ maxWidth; } +/* harmony export */ }); +/* unused harmony exports width, minWidth, height, maxHeight, minHeight, sizeWidth, sizeHeight, boxSizing */ +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6428); +/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7702); +/* harmony import */ var _breakpoints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4929); + + + +function sizingTransform(value) { + return value <= 1 && value !== 0 ? "".concat(value * 100, "%") : value; +} +var width = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'width', + transform: sizingTransform +}); +var maxWidth = function maxWidth(props) { + if (props.maxWidth !== undefined && props.maxWidth !== null) { + var styleFromPropValue = function styleFromPropValue(propValue) { + var _props$theme; + var breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || _breakpoints__WEBPACK_IMPORTED_MODULE_1__/* .values */ .VO[propValue]; + return { + maxWidth: breakpoint || sizingTransform(propValue) + }; + }; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_1__/* .handleBreakpoints */ .k9)(props, props.maxWidth, styleFromPropValue); + } + return null; +}; +maxWidth.filterProps = ['maxWidth']; +var minWidth = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'minWidth', + transform: sizingTransform +}); +var height = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'height', + transform: sizingTransform +}); +var maxHeight = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'maxHeight', + transform: sizingTransform +}); +var minHeight = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'minHeight', + transform: sizingTransform +}); +var sizeWidth = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'size', + cssProperty: 'width', + transform: sizingTransform +}); +var sizeHeight = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'size', + cssProperty: 'height', + transform: sizingTransform +}); +var boxSizing = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'boxSizing' +}); +var sizing = (0,_compose__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing); +/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (sizing))); + +/***/ }), + +/***/ 9005: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ NA: function() { return /* binding */ getValue; }, +/* harmony export */ e6: function() { return /* binding */ margin; }, +/* harmony export */ eI: function() { return /* binding */ createUnaryUnit; }, +/* harmony export */ hB: function() { return /* binding */ createUnarySpacing; }, +/* harmony export */ o3: function() { return /* binding */ padding; } +/* harmony export */ }); +/* unused harmony exports marginKeys, paddingKeys, getStyleFromPropValue */ +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3324); +/* harmony import */ var _breakpoints__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4929); +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6428); +/* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7330); +/* harmony import */ var _memoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5882); + + + + + + +var properties = { + m: 'margin', + p: 'padding' +}; +var directions = { + t: 'Top', + r: 'Right', + b: 'Bottom', + l: 'Left', + x: ['Left', 'Right'], + y: ['Top', 'Bottom'] +}; +var aliases = { + marginX: 'mx', + marginY: 'my', + paddingX: 'px', + paddingY: 'py' +}; + +// memoize() impact: +// From 300,000 ops/sec +// To 350,000 ops/sec +var getCssProperties = (0,_memoize__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(function (prop) { + // It's not a shorthand notation. + if (prop.length > 2) { + if (aliases[prop]) { + prop = aliases[prop]; + } else { + return [prop]; + } + } + var _prop$split = prop.split(''), + _prop$split2 = (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_prop$split, 2), + a = _prop$split2[0], + b = _prop$split2[1]; + var property = properties[a]; + var direction = directions[b] || ''; + return Array.isArray(direction) ? direction.map(function (dir) { + return property + dir; + }) : [property + direction]; +}); +var marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd']; +var paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd']; +var spacingKeys = [].concat(marginKeys, paddingKeys); +function createUnaryUnit(theme, themeKey, defaultValue, propName) { + var _getPath; + var themeSpacing = (_getPath = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* .getPath */ .DW)(theme, themeKey, false)) != null ? _getPath : defaultValue; + if (typeof themeSpacing === 'number') { + return function (abs) { + if (typeof abs === 'string') { + return abs; + } + if (false) {} + return themeSpacing * abs; + }; + } + if (Array.isArray(themeSpacing)) { + return function (abs) { + if (typeof abs === 'string') { + return abs; + } + if (false) {} + return themeSpacing[abs]; + }; + } + if (typeof themeSpacing === 'function') { + return themeSpacing; + } + if (false) {} + return function () { + return undefined; + }; +} +function createUnarySpacing(theme) { + return createUnaryUnit(theme, 'spacing', 8, 'spacing'); +} +function getValue(transformer, propValue) { + if (typeof propValue === 'string' || propValue == null) { + return propValue; + } + var abs = Math.abs(propValue); + var transformed = transformer(abs); + if (propValue >= 0) { + return transformed; + } + if (typeof transformed === 'number') { + return -transformed; + } + return "-".concat(transformed); +} +function getStyleFromPropValue(cssProperties, transformer) { + return function (propValue) { + return cssProperties.reduce(function (acc, cssProperty) { + acc[cssProperty] = getValue(transformer, propValue); + return acc; + }, {}); + }; +} +function resolveCssProperty(props, keys, prop, transformer) { + // Using a hash computation over an array iteration could be faster, but with only 28 items, + // it's doesn't worth the bundle size. + if (keys.indexOf(prop) === -1) { + return null; + } + var cssProperties = getCssProperties(prop); + var styleFromPropValue = getStyleFromPropValue(cssProperties, transformer); + var propValue = props[prop]; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_3__/* .handleBreakpoints */ .k9)(props, propValue, styleFromPropValue); +} +function style(props, keys) { + var transformer = createUnarySpacing(props.theme); + return Object.keys(props).map(function (prop) { + return resolveCssProperty(props, keys, prop, transformer); + }).reduce(_merge__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {}); +} +function margin(props) { + return style(props, marginKeys); +} +margin.propTypes = false ? 0 : {}; +margin.filterProps = marginKeys; +function padding(props) { + return style(props, paddingKeys); +} +padding.propTypes = false ? 0 : {}; +padding.filterProps = paddingKeys; +function spacing(props) { + return style(props, spacingKeys); +} +spacing.propTypes = false ? 0 : {}; +spacing.filterProps = spacingKeys; +/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (spacing))); + +/***/ }), + +/***/ 6428: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ DW: function() { return /* binding */ getPath; }, +/* harmony export */ Jq: function() { return /* binding */ getStyleValue; } +/* harmony export */ }); +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4942); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8831); +/* harmony import */ var _breakpoints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4929); + + + + +function getPath(obj, path) { + var checkVars = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + if (!path || typeof path !== 'string') { + return null; + } + + // Check if CSS variables are used + if (obj && obj.vars && checkVars) { + var val = "vars.".concat(path).split('.').reduce(function (acc, item) { + return acc && acc[item] ? acc[item] : null; + }, obj); + if (val != null) { + return val; + } + } + return path.split('.').reduce(function (acc, item) { + if (acc && acc[item] != null) { + return acc[item]; + } + return null; + }, obj); +} +function getStyleValue(themeMapping, transform, propValueFinal) { + var userValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : propValueFinal; + var value; + if (typeof themeMapping === 'function') { + value = themeMapping(propValueFinal); + } else if (Array.isArray(themeMapping)) { + value = themeMapping[propValueFinal] || userValue; + } else { + value = getPath(themeMapping, propValueFinal) || userValue; + } + if (transform) { + value = transform(value, userValue, themeMapping); + } + return value; +} +function style(options) { + var prop = options.prop, + _options$cssProperty = options.cssProperty, + cssProperty = _options$cssProperty === void 0 ? options.prop : _options$cssProperty, + themeKey = options.themeKey, + transform = options.transform; + + // false positive + // eslint-disable-next-line react/function-component-definition + var fn = function fn(props) { + if (props[prop] == null) { + return null; + } + var propValue = props[prop]; + var theme = props.theme; + var themeMapping = getPath(theme, themeKey) || {}; + var styleFromPropValue = function styleFromPropValue(propValueFinal) { + var value = getStyleValue(themeMapping, transform, propValueFinal); + if (propValueFinal === value && typeof propValueFinal === 'string') { + // Haven't found value + value = getStyleValue(themeMapping, transform, "".concat(prop).concat(propValueFinal === 'default' ? '' : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(propValueFinal)), propValueFinal); + } + if (cssProperty === false) { + return value; + } + return (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({}, cssProperty, value); + }; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_2__/* .handleBreakpoints */ .k9)(props, propValue, styleFromPropValue); + }; + fn.propTypes = false ? 0 : {}; + fn.filterProps = [prop]; + return fn; +} +/* harmony default export */ __webpack_exports__.ZP = (style); + +/***/ }), + +/***/ 5789: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _spacing__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9005); +/* harmony import */ var _borders__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7158); +/* harmony import */ var _cssGrid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(924); +/* harmony import */ var _palette__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6236); +/* harmony import */ var _sizing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9341); + + + + + +var defaultSxConfig = { + // borders + border: { + themeKey: 'borders', + transform: _borders__WEBPACK_IMPORTED_MODULE_0__/* .borderTransform */ .NL + }, + borderTop: { + themeKey: 'borders', + transform: _borders__WEBPACK_IMPORTED_MODULE_0__/* .borderTransform */ .NL + }, + borderRight: { + themeKey: 'borders', + transform: _borders__WEBPACK_IMPORTED_MODULE_0__/* .borderTransform */ .NL + }, + borderBottom: { + themeKey: 'borders', + transform: _borders__WEBPACK_IMPORTED_MODULE_0__/* .borderTransform */ .NL + }, + borderLeft: { + themeKey: 'borders', + transform: _borders__WEBPACK_IMPORTED_MODULE_0__/* .borderTransform */ .NL + }, + borderColor: { + themeKey: 'palette' + }, + borderTopColor: { + themeKey: 'palette' + }, + borderRightColor: { + themeKey: 'palette' + }, + borderBottomColor: { + themeKey: 'palette' + }, + borderLeftColor: { + themeKey: 'palette' + }, + borderRadius: { + themeKey: 'shape.borderRadius', + style: _borders__WEBPACK_IMPORTED_MODULE_0__/* .borderRadius */ .E0 + }, + // palette + color: { + themeKey: 'palette', + transform: _palette__WEBPACK_IMPORTED_MODULE_1__/* .paletteTransform */ .Sh + }, + bgcolor: { + themeKey: 'palette', + cssProperty: 'backgroundColor', + transform: _palette__WEBPACK_IMPORTED_MODULE_1__/* .paletteTransform */ .Sh + }, + backgroundColor: { + themeKey: 'palette', + transform: _palette__WEBPACK_IMPORTED_MODULE_1__/* .paletteTransform */ .Sh + }, + // spacing + p: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + pt: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + pr: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + pb: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + pl: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + px: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + py: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + padding: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingTop: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingRight: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingBottom: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingLeft: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingX: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingY: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingInline: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingInlineStart: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingInlineEnd: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingBlock: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingBlockStart: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingBlockEnd: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + m: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + mt: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + mr: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + mb: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + ml: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + mx: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + my: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + margin: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginTop: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginRight: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginBottom: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginLeft: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginX: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginY: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginInline: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginInlineStart: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginInlineEnd: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginBlock: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginBlockStart: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginBlockEnd: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + // display + displayPrint: { + cssProperty: false, + transform: function transform(value) { + return { + '@media print': { + display: value + } + }; + } + }, + display: {}, + overflow: {}, + textOverflow: {}, + visibility: {}, + whiteSpace: {}, + // flexbox + flexBasis: {}, + flexDirection: {}, + flexWrap: {}, + justifyContent: {}, + alignItems: {}, + alignContent: {}, + order: {}, + flex: {}, + flexGrow: {}, + flexShrink: {}, + alignSelf: {}, + justifyItems: {}, + justifySelf: {}, + // grid + gap: { + style: _cssGrid__WEBPACK_IMPORTED_MODULE_3__/* .gap */ .SG + }, + rowGap: { + style: _cssGrid__WEBPACK_IMPORTED_MODULE_3__/* .rowGap */ .s2 + }, + columnGap: { + style: _cssGrid__WEBPACK_IMPORTED_MODULE_3__/* .columnGap */ .e$ + }, + gridColumn: {}, + gridRow: {}, + gridAutoFlow: {}, + gridAutoColumns: {}, + gridAutoRows: {}, + gridTemplateColumns: {}, + gridTemplateRows: {}, + gridTemplateAreas: {}, + gridArea: {}, + // positions + position: {}, + zIndex: { + themeKey: 'zIndex' + }, + top: {}, + right: {}, + bottom: {}, + left: {}, + // shadows + boxShadow: { + themeKey: 'shadows' + }, + // sizing + width: { + transform: _sizing__WEBPACK_IMPORTED_MODULE_4__/* .sizingTransform */ .EB + }, + maxWidth: { + style: _sizing__WEBPACK_IMPORTED_MODULE_4__/* .maxWidth */ .kk + }, + minWidth: { + transform: _sizing__WEBPACK_IMPORTED_MODULE_4__/* .sizingTransform */ .EB + }, + height: { + transform: _sizing__WEBPACK_IMPORTED_MODULE_4__/* .sizingTransform */ .EB + }, + maxHeight: { + transform: _sizing__WEBPACK_IMPORTED_MODULE_4__/* .sizingTransform */ .EB + }, + minHeight: { + transform: _sizing__WEBPACK_IMPORTED_MODULE_4__/* .sizingTransform */ .EB + }, + boxSizing: {}, + // typography + fontFamily: { + themeKey: 'typography' + }, + fontSize: { + themeKey: 'typography' + }, + fontStyle: { + themeKey: 'typography' + }, + fontWeight: { + themeKey: 'typography' + }, + letterSpacing: {}, + textTransform: {}, + lineHeight: {}, + textAlign: {}, + typography: { + cssProperty: false, + themeKey: 'typography' + } +}; +/* harmony default export */ __webpack_exports__.Z = (defaultSxConfig); + +/***/ }), + +/***/ 3649: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* unused harmony export unstable_createStyleFunctionSx */ +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4942); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8831); +/* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7330); +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6428); +/* harmony import */ var _breakpoints__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4929); +/* harmony import */ var _defaultSxConfig__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5789); + + + + + + +function objectsHaveSameKeys() { + for (var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++) { + objects[_key] = arguments[_key]; + } + var allKeys = objects.reduce(function (keys, object) { + return keys.concat(Object.keys(object)); + }, []); + var union = new Set(allKeys); + return objects.every(function (object) { + return union.size === Object.keys(object).length; + }); +} +function callIfFn(maybeFn, arg) { + return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn; +} + +// eslint-disable-next-line @typescript-eslint/naming-convention +function unstable_createStyleFunctionSx() { + function getThemeValue(prop, val, theme, config) { + var _props; + var props = (_props = {}, (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_props, prop, val), (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_props, "theme", theme), _props); + var options = config[prop]; + if (!options) { + return (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, prop, val); + } + var _options$cssProperty = options.cssProperty, + cssProperty = _options$cssProperty === void 0 ? prop : _options$cssProperty, + themeKey = options.themeKey, + transform = options.transform, + style = options.style; + if (val == null) { + return null; + } + + // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123 + if (themeKey === 'typography' && val === 'inherit') { + return (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, prop, val); + } + var themeMapping = (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .getPath */ .DW)(theme, themeKey) || {}; + if (style) { + return style(props); + } + var styleFromPropValue = function styleFromPropValue(propValueFinal) { + var value = (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .getStyleValue */ .Jq)(themeMapping, transform, propValueFinal); + if (propValueFinal === value && typeof propValueFinal === 'string') { + // Haven't found value + value = (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .getStyleValue */ .Jq)(themeMapping, transform, "".concat(prop).concat(propValueFinal === 'default' ? '' : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(propValueFinal)), propValueFinal); + } + if (cssProperty === false) { + return value; + } + return (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, cssProperty, value); + }; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_3__/* .handleBreakpoints */ .k9)(props, val, styleFromPropValue); + } + function styleFunctionSx(props) { + var _theme$unstable_sxCon; + var _ref4 = props || {}, + sx = _ref4.sx, + _ref4$theme = _ref4.theme, + theme = _ref4$theme === void 0 ? {} : _ref4$theme; + if (!sx) { + return null; // Emotion & styled-components will neglect null + } + + var config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : _defaultSxConfig__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z; + + /* + * Receive `sxInput` as object or callback + * and then recursively check keys & values to create media query object styles. + * (the result will be used in `styled`) + */ + function traverse(sxInput) { + var sxObject = sxInput; + if (typeof sxInput === 'function') { + sxObject = sxInput(theme); + } else if (typeof sxInput !== 'object') { + // value + return sxInput; + } + if (!sxObject) { + return null; + } + var emptyBreakpoints = (0,_breakpoints__WEBPACK_IMPORTED_MODULE_3__/* .createEmptyBreakpointObject */ .W8)(theme.breakpoints); + var breakpointsKeys = Object.keys(emptyBreakpoints); + var css = emptyBreakpoints; + Object.keys(sxObject).forEach(function (styleKey) { + var value = callIfFn(sxObject[styleKey], theme); + if (value !== null && value !== undefined) { + if (typeof value === 'object') { + if (config[styleKey]) { + css = (0,_merge__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(css, getThemeValue(styleKey, value, theme, config)); + } else { + var breakpointsValues = (0,_breakpoints__WEBPACK_IMPORTED_MODULE_3__/* .handleBreakpoints */ .k9)({ + theme: theme + }, value, function (x) { + return (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, styleKey, x); + }); + if (objectsHaveSameKeys(breakpointsValues, value)) { + css[styleKey] = styleFunctionSx({ + sx: value, + theme: theme + }); + } else { + css = (0,_merge__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(css, breakpointsValues); + } + } + } else { + css = (0,_merge__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(css, getThemeValue(styleKey, value, theme, config)); + } + } + }); + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_3__/* .removeUnusedBreakpoints */ .L7)(breakpointsKeys, css); + } + return Array.isArray(sx) ? sx.map(traverse) : traverse(sx); + } + return styleFunctionSx; +} +var styleFunctionSx = unstable_createStyleFunctionSx(); +styleFunctionSx.filterProps = ['sx']; +/* harmony default export */ __webpack_exports__.Z = (styleFunctionSx); + +/***/ }), + +/***/ 6728: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* unused harmony export systemDefaultTheme */ +/* harmony import */ var _createTheme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7424); +/* harmony import */ var _useThemeWithoutDefault__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4976); +'use client'; + + + +var systemDefaultTheme = (0,_createTheme__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(); +function useTheme() { + var defaultTheme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : systemDefaultTheme; + return (0,_useThemeWithoutDefault__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(defaultTheme); +} +/* harmony default export */ __webpack_exports__.Z = (useTheme); + +/***/ }), + +/***/ 4290: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ getThemeProps; } +/* harmony export */ }); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9023); + +function getThemeProps(params) { + var theme = params.theme, + name = params.name, + props = params.props; + if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) { + return props; + } + return (0,_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(theme.components[name].defaultProps, props); +} + +/***/ }), + +/***/ 4614: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ useThemeProps; } +/* harmony export */ }); +/* harmony import */ var _getThemeProps__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4290); +/* harmony import */ var _useTheme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6728); +'use client'; + + + +function useThemeProps(_ref) { + var props = _ref.props, + name = _ref.name, + defaultTheme = _ref.defaultTheme, + themeId = _ref.themeId; + var theme = (0,_useTheme__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(defaultTheme); + if (themeId) { + theme = theme[themeId] || theme; + } + var mergedProps = (0,_getThemeProps__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({ + theme: theme, + name: name, + props: props + }); + return mergedProps; +} + +/***/ }), + +/***/ 4976: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); +/* harmony import */ var _mui_styled_engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3346); +'use client'; + + + +function isObjectEmpty(obj) { + return Object.keys(obj).length === 0; +} +function useTheme() { + var defaultTheme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var contextTheme = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_mui_styled_engine__WEBPACK_IMPORTED_MODULE_1__.T); + return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme; +} +/* harmony default export */ __webpack_exports__.Z = (useTheme); + +/***/ }), + +/***/ 1271: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var defaultGenerator = function defaultGenerator(componentName) { + return componentName; +}; +var createClassNameGenerator = function createClassNameGenerator() { + var _generate = defaultGenerator; + return { + configure: function configure(generator) { + _generate = generator; + }, + generate: function generate(componentName) { + return _generate(componentName); + }, + reset: function reset() { + _generate = defaultGenerator; + } + }; +}; +var ClassNameGenerator = createClassNameGenerator(); +/* harmony default export */ __webpack_exports__.Z = (ClassNameGenerator); + +/***/ }), + +/***/ 8831: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ capitalize; } +/* harmony export */ }); +/* harmony import */ var _formatMuiErrorMessage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7219); + +// It should to be noted that this function isn't equivalent to `text-transform: capitalize`. +// +// A strict capitalization should uppercase the first letter of each word in the sentence. +// We only handle the first word. +function capitalize(string) { + if (typeof string !== 'string') { + throw new Error( false ? 0 : (0,_formatMuiErrorMessage__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(7)); + } + return string.charAt(0).toUpperCase() + string.slice(1); +} + +/***/ }), + +/***/ 1921: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ composeClasses; } +/* harmony export */ }); +function composeClasses(slots, getUtilityClass) { + var classes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + var output = {}; + Object.keys(slots).forEach( + // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`. + // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208 + function (slot) { + output[slot] = slots[slot].reduce(function (acc, key) { + if (key) { + var utilityClass = getUtilityClass(key); + if (utilityClass !== '') { + acc.push(utilityClass); + } + if (classes && classes[key]) { + acc.push(classes[key]); + } + } + return acc; + }, []).join(' '); + }); + return output; +} + +/***/ }), + +/***/ 4246: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ createChainedFunction; } +/* harmony export */ }); +/** + * Safe chained function. + * + * Will only create a new function if needed, + * otherwise will pass back existing functions or null. + */ +function createChainedFunction() { + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { + funcs[_key] = arguments[_key]; + } + return funcs.reduce(function (acc, func) { + if (func == null) { + return acc; + } + return function chainedFunction() { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + acc.apply(this, args); + func.apply(this, args); + }; + }, function () {}); +} + +/***/ }), + +/***/ 1636: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ debounce; } +/* harmony export */ }); +// Corresponds to 10 frames at 60 Hz. +// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B. +function debounce(func) { + var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166; + var timeout; + function debounced() { + var _this = this; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + var later = function later() { + // @ts-ignore + func.apply(_this, args); + }; + clearTimeout(timeout); + timeout = setTimeout(later, wait); + } + debounced.clear = function () { + clearTimeout(timeout); + }; + return debounced; +} + +/***/ }), + +/***/ 3019: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ P: function() { return /* binding */ isPlainObject; }, +/* harmony export */ Z: function() { return /* binding */ deepmerge; } +/* harmony export */ }); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7462); + +function isPlainObject(item) { + return item !== null && typeof item === 'object' && item.constructor === Object; +} +function deepClone(source) { + if (!isPlainObject(source)) { + return source; + } + var output = {}; + Object.keys(source).forEach(function (key) { + output[key] = deepClone(source[key]); + }); + return output; +} +function deepmerge(target, source) { + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : { + clone: true + }; + var output = options.clone ? (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, target) : target; + if (isPlainObject(target) && isPlainObject(source)) { + Object.keys(source).forEach(function (key) { + // Avoid prototype pollution + if (key === '__proto__') { + return; + } + if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) { + // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type. + output[key] = deepmerge(target[key], source[key], options); + } else if (options.clone) { + output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key]; + } else { + output[key] = source[key]; + } + }); + } + return output; +} + +/***/ }), + +/***/ 7219: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ formatMuiErrorMessage; } +/* harmony export */ }); +/** + * WARNING: Don't import this directly. + * Use `MuiError` from `@mui/utils/macros/MuiError.macro` instead. + * @param {number} code + */ +function formatMuiErrorMessage(code) { + // Apply babel-plugin-transform-template-literals in loose mode + // loose mode is safe iff we're concatenating primitives + // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose + /* eslint-disable prefer-template */ + var url = 'https://mui.com/production-error/?code=' + code; + for (var i = 1; i < arguments.length; i += 1) { + // rest params over-transpile for this case + // eslint-disable-next-line prefer-rest-params + url += '&args[]=' + encodeURIComponent(arguments[i]); + } + return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.'; + /* eslint-enable prefer-template */ +} + +/***/ }), + +/***/ 2298: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ generateUtilityClass; } +/* harmony export */ }); +/* harmony import */ var _ClassNameGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1271); + + +// If GlobalStateSlot is changed, GLOBAL_STATE_CLASSES in +// \packages\api-docs-builder\utils\parseSlotsAndClasses.ts must be updated accordingly. +var globalStateClassesMapping = { + active: 'active', + checked: 'checked', + completed: 'completed', + disabled: 'disabled', + readOnly: 'readOnly', + error: 'error', + expanded: 'expanded', + focused: 'focused', + focusVisible: 'focusVisible', + required: 'required', + selected: 'selected' +}; +function generateUtilityClass(componentName, slot) { + var globalStatePrefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Mui'; + var globalStateClass = globalStateClassesMapping[slot]; + return globalStateClass ? "".concat(globalStatePrefix, "-").concat(globalStateClass) : "".concat(_ClassNameGenerator__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.generate(componentName), "-").concat(slot); +} + +/***/ }), + +/***/ 7430: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ generateUtilityClasses; } +/* harmony export */ }); +/* harmony import */ var _generateUtilityClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2298); + +function generateUtilityClasses(componentName, slots) { + var globalStatePrefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Mui'; + var result = {}; + slots.forEach(function (slot) { + result[slot] = (0,_generateUtilityClass__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(componentName, slot, globalStatePrefix); + }); + return result; +} + +/***/ }), + +/***/ 2504: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ ownerDocument; } +/* harmony export */ }); +function ownerDocument(node) { + return node && node.ownerDocument || document; +} + +/***/ }), + +/***/ 8929: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ ownerWindow; } +/* harmony export */ }); +/* harmony import */ var _ownerDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2504); + +function ownerWindow(node) { + var doc = (0,_ownerDocument__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(node); + return doc.defaultView || window; +} + +/***/ }), + +/***/ 9023: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ resolveProps; } +/* harmony export */ }); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7462); + +/** + * Add keys, values of `defaultProps` that does not exist in `props` + * @param {object} defaultProps + * @param {object} props + * @returns {object} resolved props + */ +function resolveProps(defaultProps, props) { + var output = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, props); + Object.keys(defaultProps).forEach(function (propName) { + if (propName.toString().match(/^(components|slots)$/)) { + output[propName] = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, defaultProps[propName], output[propName]); + } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) { + var defaultSlotProps = defaultProps[propName] || {}; + var slotProps = props[propName]; + output[propName] = {}; + if (!slotProps || !Object.keys(slotProps)) { + // Reduce the iteration if the slot props is empty + output[propName] = defaultSlotProps; + } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) { + // Reduce the iteration if the default slot props is empty + output[propName] = slotProps; + } else { + output[propName] = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, slotProps); + Object.keys(defaultSlotProps).forEach(function (slotPropName) { + output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]); + }); + } + } else if (output[propName] === undefined) { + output[propName] = defaultProps[propName]; + } + }); + return output; +} + +/***/ }), + +/***/ 9265: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ setRef; } +/* harmony export */ }); +/** + * TODO v5: consider making it private + * + * passes {value} to {ref} + * + * WARNING: Be sure to only call this inside a callback that is passed as a ref. + * Otherwise, make sure to cleanup the previous {ref} if it changes. See + * https://github.com/mui/material-ui/issues/13539 + * + * Useful if you want to expose the ref of an inner component to the public API + * while still using it inside the component. + * @param ref A ref callback or ref object. If anything falsy, this is a no-op. + */ +function setRef(ref, value) { + if (typeof ref === 'function') { + ref(value); + } else if (ref) { + ref.current = value; + } +} + +/***/ }), + +/***/ 5094: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); +'use client'; + + +var useEnhancedEffect = typeof window !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect; +/* harmony default export */ __webpack_exports__.Z = (useEnhancedEffect); + +/***/ }), + +/***/ 6182: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); +/* harmony import */ var _useEnhancedEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5094); +'use client'; + + + + +/** + * https://github.com/facebook/react/issues/14099#issuecomment-440013892 + */ + +function useEventCallback(fn) { + var ref = react__WEBPACK_IMPORTED_MODULE_0__.useRef(fn); + (0,_useEnhancedEffect__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(function () { + ref.current = fn; + }); + return react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function () { + return ( + // @ts-expect-error hide `this` + // tslint:disable-next-line:ban-comma-operator + (0, ref.current).apply(void 0, arguments) + ); + }, []); +} +/* harmony default export */ __webpack_exports__.Z = (useEventCallback); + +/***/ }), + +/***/ 1577: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ useForkRef; } +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); +/* harmony import */ var _setRef__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9265); +'use client'; + + + +function useForkRef() { + for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) { + refs[_key] = arguments[_key]; + } + /** + * This will create a new function if the refs passed to this hook change and are all defined. + * This means react will call the old forkRef with `null` and the new forkRef + * with the ref. Cleanup naturally emerges from this behavior. + */ + return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () { + if (refs.every(function (ref) { + return ref == null; + })) { + return null; + } + return function (instance) { + refs.forEach(function (ref) { + (0,_setRef__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(ref, instance); + }); + }; + // eslint-disable-next-line react-hooks/exhaustive-deps + }, refs); +} + +/***/ }), + +/***/ 8334: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +var react__WEBPACK_IMPORTED_MODULE_0___namespace_cache; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ useId; } +/* harmony export */ }); +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3324); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); +'use client'; + + + +var globalId = 0; +function useGlobalId(idOverride) { + var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(idOverride), + _React$useState2 = (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_React$useState, 2), + defaultId = _React$useState2[0], + setDefaultId = _React$useState2[1]; + var id = idOverride || defaultId; + react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () { + if (defaultId == null) { + // Fallback to this default id when possible. + // Use the incrementing value for client-side rendering only. + // We can't use it server-side. + // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem + globalId += 1; + setDefaultId("mui-".concat(globalId)); + } + }, [defaultId]); + return id; +} + +// downstream bundlers may remove unnecessary concatenation, but won't remove toString call -- Workaround for https://github.com/webpack/webpack/issues/14814 +var maybeReactUseId = /*#__PURE__*/ (react__WEBPACK_IMPORTED_MODULE_0___namespace_cache || (react__WEBPACK_IMPORTED_MODULE_0___namespace_cache = __webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__, 2)))['useId'.toString()]; +/** + * + * @example
+ * @param idOverride + * @returns {string} + */ +function useId(idOverride) { + if (maybeReactUseId !== undefined) { + var reactId = maybeReactUseId(); + return idOverride != null ? idOverride : reactId; + } + // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime. + return useGlobalId(idOverride); +} + +/***/ }), + +/***/ 7861: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +"use strict"; + + +var reactIs = __webpack_require__(9456); + +/** + * Copyright 2015, Yahoo! Inc. + * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. + */ +var REACT_STATICS = { + childContextTypes: true, + contextType: true, + contextTypes: true, + defaultProps: true, + displayName: true, + getDefaultProps: true, + getDerivedStateFromError: true, + getDerivedStateFromProps: true, + mixins: true, + propTypes: true, + type: true +}; +var KNOWN_STATICS = { + name: true, + length: true, + prototype: true, + caller: true, + callee: true, + arguments: true, + arity: true +}; +var FORWARD_REF_STATICS = { + '$$typeof': true, + render: true, + defaultProps: true, + displayName: true, + propTypes: true +}; +var MEMO_STATICS = { + '$$typeof': true, + compare: true, + defaultProps: true, + displayName: true, + propTypes: true, + type: true +}; +var TYPE_STATICS = {}; +TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; +TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; +function getStatics(component) { + // React v16.11 and below + if (reactIs.isMemo(component)) { + return MEMO_STATICS; + } // React v16.12 and above + + return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; +} +var defineProperty = Object.defineProperty; +var getOwnPropertyNames = Object.getOwnPropertyNames; +var getOwnPropertySymbols = Object.getOwnPropertySymbols; +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; +var getPrototypeOf = Object.getPrototypeOf; +var objectPrototype = Object.prototype; +function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { + if (typeof sourceComponent !== 'string') { + // don't hoist over string (html) components + if (objectPrototype) { + var inheritedComponent = getPrototypeOf(sourceComponent); + if (inheritedComponent && inheritedComponent !== objectPrototype) { + hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); + } + } + var keys = getOwnPropertyNames(sourceComponent); + if (getOwnPropertySymbols) { + keys = keys.concat(getOwnPropertySymbols(sourceComponent)); + } + var targetStatics = getStatics(targetComponent); + var sourceStatics = getStatics(sourceComponent); + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { + var descriptor = getOwnPropertyDescriptor(sourceComponent, key); + try { + // Avoid failures from read-only properties + defineProperty(targetComponent, key, descriptor); + } catch (e) {} + } + } + } + return targetComponent; +} +module.exports = hoistNonReactStatics; + +/***/ }), + +/***/ 229: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var b = "function" === typeof Symbol && Symbol.for, + c = b ? Symbol.for("react.element") : 60103, + d = b ? Symbol.for("react.portal") : 60106, + e = b ? Symbol.for("react.fragment") : 60107, + f = b ? Symbol.for("react.strict_mode") : 60108, + g = b ? Symbol.for("react.profiler") : 60114, + h = b ? Symbol.for("react.provider") : 60109, + k = b ? Symbol.for("react.context") : 60110, + l = b ? Symbol.for("react.async_mode") : 60111, + m = b ? Symbol.for("react.concurrent_mode") : 60111, + n = b ? Symbol.for("react.forward_ref") : 60112, + p = b ? Symbol.for("react.suspense") : 60113, + q = b ? Symbol.for("react.suspense_list") : 60120, + r = b ? Symbol.for("react.memo") : 60115, + t = b ? Symbol.for("react.lazy") : 60116, + v = b ? Symbol.for("react.block") : 60121, + w = b ? Symbol.for("react.fundamental") : 60117, + x = b ? Symbol.for("react.responder") : 60118, + y = b ? Symbol.for("react.scope") : 60119; +function z(a) { + if ("object" === typeof a && null !== a) { + var u = a.$$typeof; + switch (u) { + case c: + switch (a = a.type, a) { + case l: + case m: + case e: + case g: + case f: + case p: + return a; + default: + switch (a = a && a.$$typeof, a) { + case k: + case n: + case t: + case r: + case h: + return a; + default: + return u; + } + } + case d: + return u; + } + } +} +function A(a) { + return z(a) === m; +} +exports.AsyncMode = l; +exports.ConcurrentMode = m; +exports.ContextConsumer = k; +exports.ContextProvider = h; +exports.Element = c; +exports.ForwardRef = n; +exports.Fragment = e; +exports.Lazy = t; +exports.Memo = r; +exports.Portal = d; +exports.Profiler = g; +exports.StrictMode = f; +exports.Suspense = p; +exports.isAsyncMode = function (a) { + return A(a) || z(a) === l; +}; +exports.isConcurrentMode = A; +exports.isContextConsumer = function (a) { + return z(a) === k; +}; +exports.isContextProvider = function (a) { + return z(a) === h; +}; +exports.isElement = function (a) { + return "object" === typeof a && null !== a && a.$$typeof === c; +}; +exports.isForwardRef = function (a) { + return z(a) === n; +}; +exports.isFragment = function (a) { + return z(a) === e; +}; +exports.isLazy = function (a) { + return z(a) === t; +}; +exports.isMemo = function (a) { + return z(a) === r; +}; +exports.isPortal = function (a) { + return z(a) === d; +}; +exports.isProfiler = function (a) { + return z(a) === g; +}; +exports.isStrictMode = function (a) { + return z(a) === f; +}; +exports.isSuspense = function (a) { + return z(a) === p; +}; +exports.isValidElementType = function (a) { + return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v); +}; +exports.typeOf = z; + +/***/ }), + +/***/ 9456: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +"use strict"; + + +if (true) { + module.exports = __webpack_require__(229); +} else {} + +/***/ }), + +/***/ 534: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; +/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/* + Modernizr 3.0.0pre (Custom Build) | MIT +*/ + + +var aa = __webpack_require__(7313), + ca = __webpack_require__(2224); +function p(a) { + for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]); + return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; +} +var da = new Set(), + ea = {}; +function fa(a, b) { + ha(a, b); + ha(a + "Capture", b); +} +function ha(a, b) { + ea[a] = b; + for (a = 0; a < b.length; a++) da.add(b[a]); +} +var ia = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement), + ja = Object.prototype.hasOwnProperty, + ka = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, + la = {}, + ma = {}; +function oa(a) { + if (ja.call(ma, a)) return !0; + if (ja.call(la, a)) return !1; + if (ka.test(a)) return ma[a] = !0; + la[a] = !0; + return !1; +} +function pa(a, b, c, d) { + if (null !== c && 0 === c.type) return !1; + switch (typeof b) { + case "function": + case "symbol": + return !0; + case "boolean": + if (d) return !1; + if (null !== c) return !c.acceptsBooleans; + a = a.toLowerCase().slice(0, 5); + return "data-" !== a && "aria-" !== a; + default: + return !1; + } +} +function qa(a, b, c, d) { + if (null === b || "undefined" === typeof b || pa(a, b, c, d)) return !0; + if (d) return !1; + if (null !== c) switch (c.type) { + case 3: + return !b; + case 4: + return !1 === b; + case 5: + return isNaN(b); + case 6: + return isNaN(b) || 1 > b; + } + return !1; +} +function v(a, b, c, d, e, f, g) { + this.acceptsBooleans = 2 === b || 3 === b || 4 === b; + this.attributeName = d; + this.attributeNamespace = e; + this.mustUseProperty = c; + this.propertyName = a; + this.type = b; + this.sanitizeURL = f; + this.removeEmptyString = g; +} +var z = {}; +"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function (a) { + z[a] = new v(a, 0, !1, a, null, !1, !1); +}); +[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function (a) { + var b = a[0]; + z[b] = new v(b, 1, !1, a[1], null, !1, !1); +}); +["contentEditable", "draggable", "spellCheck", "value"].forEach(function (a) { + z[a] = new v(a, 2, !1, a.toLowerCase(), null, !1, !1); +}); +["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (a) { + z[a] = new v(a, 2, !1, a, null, !1, !1); +}); +"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function (a) { + z[a] = new v(a, 3, !1, a.toLowerCase(), null, !1, !1); +}); +["checked", "multiple", "muted", "selected"].forEach(function (a) { + z[a] = new v(a, 3, !0, a, null, !1, !1); +}); +["capture", "download"].forEach(function (a) { + z[a] = new v(a, 4, !1, a, null, !1, !1); +}); +["cols", "rows", "size", "span"].forEach(function (a) { + z[a] = new v(a, 6, !1, a, null, !1, !1); +}); +["rowSpan", "start"].forEach(function (a) { + z[a] = new v(a, 5, !1, a.toLowerCase(), null, !1, !1); +}); +var ra = /[\-:]([a-z])/g; +function sa(a) { + return a[1].toUpperCase(); +} +"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function (a) { + var b = a.replace(ra, sa); + z[b] = new v(b, 1, !1, a, null, !1, !1); +}); +"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function (a) { + var b = a.replace(ra, sa); + z[b] = new v(b, 1, !1, a, "http://www.w3.org/1999/xlink", !1, !1); +}); +["xml:base", "xml:lang", "xml:space"].forEach(function (a) { + var b = a.replace(ra, sa); + z[b] = new v(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace", !1, !1); +}); +["tabIndex", "crossOrigin"].forEach(function (a) { + z[a] = new v(a, 1, !1, a.toLowerCase(), null, !1, !1); +}); +z.xlinkHref = new v("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1); +["src", "href", "action", "formAction"].forEach(function (a) { + z[a] = new v(a, 1, !1, a.toLowerCase(), null, !0, !0); +}); +function ta(a, b, c, d) { + var e = z.hasOwnProperty(b) ? z[b] : null; + if (null !== e ? 0 !== e.type : d || !(2 < b.length) || "o" !== b[0] && "O" !== b[0] || "n" !== b[1] && "N" !== b[1]) qa(b, c, e, d) && (c = null), d || null === e ? oa(b) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, "" + c)) : e.mustUseProperty ? a[e.propertyName] = null === c ? 3 === e.type ? !1 : "" : c : (b = e.attributeName, d = e.attributeNamespace, null === c ? a.removeAttribute(b) : (e = e.type, c = 3 === e || 4 === e && !0 === c ? "" : "" + c, d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c))); +} +var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + va = Symbol.for("react.element"), + wa = Symbol.for("react.portal"), + ya = Symbol.for("react.fragment"), + za = Symbol.for("react.strict_mode"), + Aa = Symbol.for("react.profiler"), + Ba = Symbol.for("react.provider"), + Ca = Symbol.for("react.context"), + Da = Symbol.for("react.forward_ref"), + Ea = Symbol.for("react.suspense"), + Fa = Symbol.for("react.suspense_list"), + Ga = Symbol.for("react.memo"), + Ha = Symbol.for("react.lazy"); +Symbol.for("react.scope"); +Symbol.for("react.debug_trace_mode"); +var Ia = Symbol.for("react.offscreen"); +Symbol.for("react.legacy_hidden"); +Symbol.for("react.cache"); +Symbol.for("react.tracing_marker"); +var Ja = Symbol.iterator; +function Ka(a) { + if (null === a || "object" !== typeof a) return null; + a = Ja && a[Ja] || a["@@iterator"]; + return "function" === typeof a ? a : null; +} +var A = Object.assign, + La; +function Ma(a) { + if (void 0 === La) try { + throw Error(); + } catch (c) { + var b = c.stack.trim().match(/\n( *(at )?)/); + La = b && b[1] || ""; + } + return "\n" + La + a; +} +var Na = !1; +function Oa(a, b) { + if (!a || Na) return ""; + Na = !0; + var c = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + if (b) { + if (b = function b() { + throw Error(); + }, Object.defineProperty(b.prototype, "props", { + set: function set() { + throw Error(); + } + }), "object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(b, []); + } catch (l) { + var d = l; + } + Reflect.construct(a, [], b); + } else { + try { + b.call(); + } catch (l) { + d = l; + } + a.call(b.prototype); + } + } else { + try { + throw Error(); + } catch (l) { + d = l; + } + a(); + } + } catch (l) { + if (l && d && "string" === typeof l.stack) { + for (var e = l.stack.split("\n"), f = d.stack.split("\n"), g = e.length - 1, h = f.length - 1; 1 <= g && 0 <= h && e[g] !== f[h];) h--; + for (; 1 <= g && 0 <= h; g--, h--) if (e[g] !== f[h]) { + if (1 !== g || 1 !== h) { + do if (g--, h--, 0 > h || e[g] !== f[h]) { + var k = "\n" + e[g].replace(" at new ", " at "); + a.displayName && k.includes("") && (k = k.replace("", a.displayName)); + return k; + } while (1 <= g && 0 <= h); + } + break; + } + } + } finally { + Na = !1, Error.prepareStackTrace = c; + } + return (a = a ? a.displayName || a.name : "") ? Ma(a) : ""; +} +function Pa(a) { + switch (a.tag) { + case 5: + return Ma(a.type); + case 16: + return Ma("Lazy"); + case 13: + return Ma("Suspense"); + case 19: + return Ma("SuspenseList"); + case 0: + case 2: + case 15: + return a = Oa(a.type, !1), a; + case 11: + return a = Oa(a.type.render, !1), a; + case 1: + return a = Oa(a.type, !0), a; + default: + return ""; + } +} +function Qa(a) { + if (null == a) return null; + if ("function" === typeof a) return a.displayName || a.name || null; + if ("string" === typeof a) return a; + switch (a) { + case ya: + return "Fragment"; + case wa: + return "Portal"; + case Aa: + return "Profiler"; + case za: + return "StrictMode"; + case Ea: + return "Suspense"; + case Fa: + return "SuspenseList"; + } + if ("object" === typeof a) switch (a.$$typeof) { + case Ca: + return (a.displayName || "Context") + ".Consumer"; + case Ba: + return (a._context.displayName || "Context") + ".Provider"; + case Da: + var b = a.render; + a = a.displayName; + a || (a = b.displayName || b.name || "", a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"); + return a; + case Ga: + return b = a.displayName || null, null !== b ? b : Qa(a.type) || "Memo"; + case Ha: + b = a._payload; + a = a._init; + try { + return Qa(a(b)); + } catch (c) {} + } + return null; +} +function Ra(a) { + var b = a.type; + switch (a.tag) { + case 24: + return "Cache"; + case 9: + return (b.displayName || "Context") + ".Consumer"; + case 10: + return (b._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return a = b.render, a = a.displayName || a.name || "", b.displayName || ("" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"); + case 7: + return "Fragment"; + case 5: + return b; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return Qa(b); + case 8: + return b === za ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 17: + case 2: + case 14: + case 15: + if ("function" === typeof b) return b.displayName || b.name || null; + if ("string" === typeof b) return b; + } + return null; +} +function Sa(a) { + switch (typeof a) { + case "boolean": + case "number": + case "string": + case "undefined": + return a; + case "object": + return a; + default: + return ""; + } +} +function Ta(a) { + var b = a.type; + return (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b || "radio" === b); +} +function Ua(a) { + var b = Ta(a) ? "checked" : "value", + c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b), + d = "" + a[b]; + if (!a.hasOwnProperty(b) && "undefined" !== typeof c && "function" === typeof c.get && "function" === typeof c.set) { + var e = c.get, + f = c.set; + Object.defineProperty(a, b, { + configurable: !0, + get: function get() { + return e.call(this); + }, + set: function set(a) { + d = "" + a; + f.call(this, a); + } + }); + Object.defineProperty(a, b, { + enumerable: c.enumerable + }); + return { + getValue: function getValue() { + return d; + }, + setValue: function setValue(a) { + d = "" + a; + }, + stopTracking: function stopTracking() { + a._valueTracker = null; + delete a[b]; + } + }; + } +} +function Va(a) { + a._valueTracker || (a._valueTracker = Ua(a)); +} +function Wa(a) { + if (!a) return !1; + var b = a._valueTracker; + if (!b) return !0; + var c = b.getValue(); + var d = ""; + a && (d = Ta(a) ? a.checked ? "true" : "false" : a.value); + a = d; + return a !== c ? (b.setValue(a), !0) : !1; +} +function Xa(a) { + a = a || ("undefined" !== typeof document ? document : void 0); + if ("undefined" === typeof a) return null; + try { + return a.activeElement || a.body; + } catch (b) { + return a.body; + } +} +function Ya(a, b) { + var c = b.checked; + return A({}, b, { + defaultChecked: void 0, + defaultValue: void 0, + value: void 0, + checked: null != c ? c : a._wrapperState.initialChecked + }); +} +function Za(a, b) { + var c = null == b.defaultValue ? "" : b.defaultValue, + d = null != b.checked ? b.checked : b.defaultChecked; + c = Sa(null != b.value ? b.value : c); + a._wrapperState = { + initialChecked: d, + initialValue: c, + controlled: "checkbox" === b.type || "radio" === b.type ? null != b.checked : null != b.value + }; +} +function ab(a, b) { + b = b.checked; + null != b && ta(a, "checked", b, !1); +} +function bb(a, b) { + ab(a, b); + var c = Sa(b.value), + d = b.type; + if (null != c) { + if ("number" === d) { + if (0 === c && "" === a.value || a.value != c) a.value = "" + c; + } else a.value !== "" + c && (a.value = "" + c); + } else if ("submit" === d || "reset" === d) { + a.removeAttribute("value"); + return; + } + b.hasOwnProperty("value") ? cb(a, b.type, c) : b.hasOwnProperty("defaultValue") && cb(a, b.type, Sa(b.defaultValue)); + null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked); +} +function db(a, b, c) { + if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) { + var d = b.type; + if (!("submit" !== d && "reset" !== d || void 0 !== b.value && null !== b.value)) return; + b = "" + a._wrapperState.initialValue; + c || b === a.value || (a.value = b); + a.defaultValue = b; + } + c = a.name; + "" !== c && (a.name = ""); + a.defaultChecked = !!a._wrapperState.initialChecked; + "" !== c && (a.name = c); +} +function cb(a, b, c) { + if ("number" !== b || Xa(a.ownerDocument) !== a) null == c ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c && (a.defaultValue = "" + c); +} +var eb = Array.isArray; +function fb(a, b, c, d) { + a = a.options; + if (b) { + b = {}; + for (var e = 0; e < c.length; e++) b["$" + c[e]] = !0; + for (c = 0; c < a.length; c++) e = b.hasOwnProperty("$" + a[c].value), a[c].selected !== e && (a[c].selected = e), e && d && (a[c].defaultSelected = !0); + } else { + c = "" + Sa(c); + b = null; + for (e = 0; e < a.length; e++) { + if (a[e].value === c) { + a[e].selected = !0; + d && (a[e].defaultSelected = !0); + return; + } + null !== b || a[e].disabled || (b = a[e]); + } + null !== b && (b.selected = !0); + } +} +function gb(a, b) { + if (null != b.dangerouslySetInnerHTML) throw Error(p(91)); + return A({}, b, { + value: void 0, + defaultValue: void 0, + children: "" + a._wrapperState.initialValue + }); +} +function hb(a, b) { + var c = b.value; + if (null == c) { + c = b.children; + b = b.defaultValue; + if (null != c) { + if (null != b) throw Error(p(92)); + if (eb(c)) { + if (1 < c.length) throw Error(p(93)); + c = c[0]; + } + b = c; + } + null == b && (b = ""); + c = b; + } + a._wrapperState = { + initialValue: Sa(c) + }; +} +function ib(a, b) { + var c = Sa(b.value), + d = Sa(b.defaultValue); + null != c && (c = "" + c, c !== a.value && (a.value = c), null == b.defaultValue && a.defaultValue !== c && (a.defaultValue = c)); + null != d && (a.defaultValue = "" + d); +} +function jb(a) { + var b = a.textContent; + b === a._wrapperState.initialValue && "" !== b && null !== b && (a.value = b); +} +function kb(a) { + switch (a) { + case "svg": + return "http://www.w3.org/2000/svg"; + case "math": + return "http://www.w3.org/1998/Math/MathML"; + default: + return "http://www.w3.org/1999/xhtml"; + } +} +function lb(a, b) { + return null == a || "http://www.w3.org/1999/xhtml" === a ? kb(b) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b ? "http://www.w3.org/1999/xhtml" : a; +} +var mb, + nb = function (a) { + return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function (b, c, d, e) { + MSApp.execUnsafeLocalFunction(function () { + return a(b, c, d, e); + }); + } : a; + }(function (a, b) { + if ("http://www.w3.org/2000/svg" !== a.namespaceURI || "innerHTML" in a) a.innerHTML = b;else { + mb = mb || document.createElement("div"); + mb.innerHTML = "" + b.valueOf().toString() + ""; + for (b = mb.firstChild; a.firstChild;) a.removeChild(a.firstChild); + for (; b.firstChild;) a.appendChild(b.firstChild); + } + }); +function ob(a, b) { + if (b) { + var c = a.firstChild; + if (c && c === a.lastChild && 3 === c.nodeType) { + c.nodeValue = b; + return; + } + } + a.textContent = b; +} +var pb = { + animationIterationCount: !0, + aspectRatio: !0, + borderImageOutset: !0, + borderImageSlice: !0, + borderImageWidth: !0, + boxFlex: !0, + boxFlexGroup: !0, + boxOrdinalGroup: !0, + columnCount: !0, + columns: !0, + flex: !0, + flexGrow: !0, + flexPositive: !0, + flexShrink: !0, + flexNegative: !0, + flexOrder: !0, + gridArea: !0, + gridRow: !0, + gridRowEnd: !0, + gridRowSpan: !0, + gridRowStart: !0, + gridColumn: !0, + gridColumnEnd: !0, + gridColumnSpan: !0, + gridColumnStart: !0, + fontWeight: !0, + lineClamp: !0, + lineHeight: !0, + opacity: !0, + order: !0, + orphans: !0, + tabSize: !0, + widows: !0, + zIndex: !0, + zoom: !0, + fillOpacity: !0, + floodOpacity: !0, + stopOpacity: !0, + strokeDasharray: !0, + strokeDashoffset: !0, + strokeMiterlimit: !0, + strokeOpacity: !0, + strokeWidth: !0 + }, + qb = ["Webkit", "ms", "Moz", "O"]; +Object.keys(pb).forEach(function (a) { + qb.forEach(function (b) { + b = b + a.charAt(0).toUpperCase() + a.substring(1); + pb[b] = pb[a]; + }); +}); +function rb(a, b, c) { + return null == b || "boolean" === typeof b || "" === b ? "" : c || "number" !== typeof b || 0 === b || pb.hasOwnProperty(a) && pb[a] ? ("" + b).trim() : b + "px"; +} +function sb(a, b) { + a = a.style; + for (var c in b) if (b.hasOwnProperty(c)) { + var d = 0 === c.indexOf("--"), + e = rb(c, b[c], d); + "float" === c && (c = "cssFloat"); + d ? a.setProperty(c, e) : a[c] = e; + } +} +var tb = A({ + menuitem: !0 +}, { + area: !0, + base: !0, + br: !0, + col: !0, + embed: !0, + hr: !0, + img: !0, + input: !0, + keygen: !0, + link: !0, + meta: !0, + param: !0, + source: !0, + track: !0, + wbr: !0 +}); +function ub(a, b) { + if (b) { + if (tb[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) throw Error(p(137, a)); + if (null != b.dangerouslySetInnerHTML) { + if (null != b.children) throw Error(p(60)); + if ("object" !== typeof b.dangerouslySetInnerHTML || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p(61)); + } + if (null != b.style && "object" !== typeof b.style) throw Error(p(62)); + } +} +function vb(a, b) { + if (-1 === a.indexOf("-")) return "string" === typeof b.is; + switch (a) { + case "annotation-xml": + case "color-profile": + case "font-face": + case "font-face-src": + case "font-face-uri": + case "font-face-format": + case "font-face-name": + case "missing-glyph": + return !1; + default: + return !0; + } +} +var wb = null; +function xb(a) { + a = a.target || a.srcElement || window; + a.correspondingUseElement && (a = a.correspondingUseElement); + return 3 === a.nodeType ? a.parentNode : a; +} +var yb = null, + zb = null, + Ab = null; +function Bb(a) { + if (a = Cb(a)) { + if ("function" !== typeof yb) throw Error(p(280)); + var b = a.stateNode; + b && (b = Db(b), yb(a.stateNode, a.type, b)); + } +} +function Eb(a) { + zb ? Ab ? Ab.push(a) : Ab = [a] : zb = a; +} +function Fb() { + if (zb) { + var a = zb, + b = Ab; + Ab = zb = null; + Bb(a); + if (b) for (a = 0; a < b.length; a++) Bb(b[a]); + } +} +function Gb(a, b) { + return a(b); +} +function Hb() {} +var Ib = !1; +function Jb(a, b, c) { + if (Ib) return a(b, c); + Ib = !0; + try { + return Gb(a, b, c); + } finally { + if (Ib = !1, null !== zb || null !== Ab) Hb(), Fb(); + } +} +function Kb(a, b) { + var c = a.stateNode; + if (null === c) return null; + var d = Db(c); + if (null === d) return null; + c = d[b]; + a: switch (b) { + case "onClick": + case "onClickCapture": + case "onDoubleClick": + case "onDoubleClickCapture": + case "onMouseDown": + case "onMouseDownCapture": + case "onMouseMove": + case "onMouseMoveCapture": + case "onMouseUp": + case "onMouseUpCapture": + case "onMouseEnter": + (d = !d.disabled) || (a = a.type, d = !("button" === a || "input" === a || "select" === a || "textarea" === a)); + a = !d; + break a; + default: + a = !1; + } + if (a) return null; + if (c && "function" !== typeof c) throw Error(p(231, b, typeof c)); + return c; +} +var Lb = !1; +if (ia) try { + var Mb = {}; + Object.defineProperty(Mb, "passive", { + get: function get() { + Lb = !0; + } + }); + window.addEventListener("test", Mb, Mb); + window.removeEventListener("test", Mb, Mb); +} catch (a) { + Lb = !1; +} +function Nb(a, b, c, d, e, f, g, h, k) { + var l = Array.prototype.slice.call(arguments, 3); + try { + b.apply(c, l); + } catch (m) { + this.onError(m); + } +} +var Ob = !1, + Pb = null, + Qb = !1, + Rb = null, + Sb = { + onError: function onError(a) { + Ob = !0; + Pb = a; + } + }; +function Tb(a, b, c, d, e, f, g, h, k) { + Ob = !1; + Pb = null; + Nb.apply(Sb, arguments); +} +function Ub(a, b, c, d, e, f, g, h, k) { + Tb.apply(this, arguments); + if (Ob) { + if (Ob) { + var l = Pb; + Ob = !1; + Pb = null; + } else throw Error(p(198)); + Qb || (Qb = !0, Rb = l); + } +} +function Vb(a) { + var b = a, + c = a; + if (a.alternate) for (; b.return;) b = b.return;else { + a = b; + do b = a, 0 !== (b.flags & 4098) && (c = b.return), a = b.return; while (a); + } + return 3 === b.tag ? c : null; +} +function Wb(a) { + if (13 === a.tag) { + var b = a.memoizedState; + null === b && (a = a.alternate, null !== a && (b = a.memoizedState)); + if (null !== b) return b.dehydrated; + } + return null; +} +function Xb(a) { + if (Vb(a) !== a) throw Error(p(188)); +} +function Yb(a) { + var b = a.alternate; + if (!b) { + b = Vb(a); + if (null === b) throw Error(p(188)); + return b !== a ? null : a; + } + for (var c = a, d = b;;) { + var e = c.return; + if (null === e) break; + var f = e.alternate; + if (null === f) { + d = e.return; + if (null !== d) { + c = d; + continue; + } + break; + } + if (e.child === f.child) { + for (f = e.child; f;) { + if (f === c) return Xb(e), a; + if (f === d) return Xb(e), b; + f = f.sibling; + } + throw Error(p(188)); + } + if (c.return !== d.return) c = e, d = f;else { + for (var g = !1, h = e.child; h;) { + if (h === c) { + g = !0; + c = e; + d = f; + break; + } + if (h === d) { + g = !0; + d = e; + c = f; + break; + } + h = h.sibling; + } + if (!g) { + for (h = f.child; h;) { + if (h === c) { + g = !0; + c = f; + d = e; + break; + } + if (h === d) { + g = !0; + d = f; + c = e; + break; + } + h = h.sibling; + } + if (!g) throw Error(p(189)); + } + } + if (c.alternate !== d) throw Error(p(190)); + } + if (3 !== c.tag) throw Error(p(188)); + return c.stateNode.current === c ? a : b; +} +function Zb(a) { + a = Yb(a); + return null !== a ? $b(a) : null; +} +function $b(a) { + if (5 === a.tag || 6 === a.tag) return a; + for (a = a.child; null !== a;) { + var b = $b(a); + if (null !== b) return b; + a = a.sibling; + } + return null; +} +var ac = ca.unstable_scheduleCallback, + bc = ca.unstable_cancelCallback, + cc = ca.unstable_shouldYield, + dc = ca.unstable_requestPaint, + B = ca.unstable_now, + ec = ca.unstable_getCurrentPriorityLevel, + fc = ca.unstable_ImmediatePriority, + gc = ca.unstable_UserBlockingPriority, + hc = ca.unstable_NormalPriority, + ic = ca.unstable_LowPriority, + jc = ca.unstable_IdlePriority, + kc = null, + lc = null; +function mc(a) { + if (lc && "function" === typeof lc.onCommitFiberRoot) try { + lc.onCommitFiberRoot(kc, a, void 0, 128 === (a.current.flags & 128)); + } catch (b) {} +} +var oc = Math.clz32 ? Math.clz32 : nc, + pc = Math.log, + qc = Math.LN2; +function nc(a) { + a >>>= 0; + return 0 === a ? 32 : 31 - (pc(a) / qc | 0) | 0; +} +var rc = 64, + sc = 4194304; +function tc(a) { + switch (a & -a) { + case 1: + return 1; + case 2: + return 2; + case 4: + return 4; + case 8: + return 8; + case 16: + return 16; + case 32: + return 32; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return a & 4194240; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return a & 130023424; + case 134217728: + return 134217728; + case 268435456: + return 268435456; + case 536870912: + return 536870912; + case 1073741824: + return 1073741824; + default: + return a; + } +} +function uc(a, b) { + var c = a.pendingLanes; + if (0 === c) return 0; + var d = 0, + e = a.suspendedLanes, + f = a.pingedLanes, + g = c & 268435455; + if (0 !== g) { + var h = g & ~e; + 0 !== h ? d = tc(h) : (f &= g, 0 !== f && (d = tc(f))); + } else g = c & ~e, 0 !== g ? d = tc(g) : 0 !== f && (d = tc(f)); + if (0 === d) return 0; + if (0 !== b && b !== d && 0 === (b & e) && (e = d & -d, f = b & -b, e >= f || 16 === e && 0 !== (f & 4194240))) return b; + 0 !== (d & 4) && (d |= c & 16); + b = a.entangledLanes; + if (0 !== b) for (a = a.entanglements, b &= d; 0 < b;) c = 31 - oc(b), e = 1 << c, d |= a[c], b &= ~e; + return d; +} +function vc(a, b) { + switch (a) { + case 1: + case 2: + case 4: + return b + 250; + case 8: + case 16: + case 32: + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return b + 5E3; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return -1; + case 134217728: + case 268435456: + case 536870912: + case 1073741824: + return -1; + default: + return -1; + } +} +function wc(a, b) { + for (var c = a.suspendedLanes, d = a.pingedLanes, e = a.expirationTimes, f = a.pendingLanes; 0 < f;) { + var g = 31 - oc(f), + h = 1 << g, + k = e[g]; + if (-1 === k) { + if (0 === (h & c) || 0 !== (h & d)) e[g] = vc(h, b); + } else k <= b && (a.expiredLanes |= h); + f &= ~h; + } +} +function xc(a) { + a = a.pendingLanes & -1073741825; + return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0; +} +function yc() { + var a = rc; + rc <<= 1; + 0 === (rc & 4194240) && (rc = 64); + return a; +} +function zc(a) { + for (var b = [], c = 0; 31 > c; c++) b.push(a); + return b; +} +function Ac(a, b, c) { + a.pendingLanes |= b; + 536870912 !== b && (a.suspendedLanes = 0, a.pingedLanes = 0); + a = a.eventTimes; + b = 31 - oc(b); + a[b] = c; +} +function Bc(a, b) { + var c = a.pendingLanes & ~b; + a.pendingLanes = b; + a.suspendedLanes = 0; + a.pingedLanes = 0; + a.expiredLanes &= b; + a.mutableReadLanes &= b; + a.entangledLanes &= b; + b = a.entanglements; + var d = a.eventTimes; + for (a = a.expirationTimes; 0 < c;) { + var e = 31 - oc(c), + f = 1 << e; + b[e] = 0; + d[e] = -1; + a[e] = -1; + c &= ~f; + } +} +function Cc(a, b) { + var c = a.entangledLanes |= b; + for (a = a.entanglements; c;) { + var d = 31 - oc(c), + e = 1 << d; + e & b | a[d] & b && (a[d] |= b); + c &= ~e; + } +} +var C = 0; +function Dc(a) { + a &= -a; + return 1 < a ? 4 < a ? 0 !== (a & 268435455) ? 16 : 536870912 : 4 : 1; +} +var Ec, + Fc, + Gc, + Hc, + Ic, + Jc = !1, + Kc = [], + Lc = null, + Mc = null, + Nc = null, + Oc = new Map(), + Pc = new Map(), + Qc = [], + Rc = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); +function Sc(a, b) { + switch (a) { + case "focusin": + case "focusout": + Lc = null; + break; + case "dragenter": + case "dragleave": + Mc = null; + break; + case "mouseover": + case "mouseout": + Nc = null; + break; + case "pointerover": + case "pointerout": + Oc.delete(b.pointerId); + break; + case "gotpointercapture": + case "lostpointercapture": + Pc.delete(b.pointerId); + } +} +function Tc(a, b, c, d, e, f) { + if (null === a || a.nativeEvent !== f) return a = { + blockedOn: b, + domEventName: c, + eventSystemFlags: d, + nativeEvent: f, + targetContainers: [e] + }, null !== b && (b = Cb(b), null !== b && Fc(b)), a; + a.eventSystemFlags |= d; + b = a.targetContainers; + null !== e && -1 === b.indexOf(e) && b.push(e); + return a; +} +function Uc(a, b, c, d, e) { + switch (b) { + case "focusin": + return Lc = Tc(Lc, a, b, c, d, e), !0; + case "dragenter": + return Mc = Tc(Mc, a, b, c, d, e), !0; + case "mouseover": + return Nc = Tc(Nc, a, b, c, d, e), !0; + case "pointerover": + var f = e.pointerId; + Oc.set(f, Tc(Oc.get(f) || null, a, b, c, d, e)); + return !0; + case "gotpointercapture": + return f = e.pointerId, Pc.set(f, Tc(Pc.get(f) || null, a, b, c, d, e)), !0; + } + return !1; +} +function Vc(a) { + var b = Wc(a.target); + if (null !== b) { + var c = Vb(b); + if (null !== c) if (b = c.tag, 13 === b) { + if (b = Wb(c), null !== b) { + a.blockedOn = b; + Ic(a.priority, function () { + Gc(c); + }); + return; + } + } else if (3 === b && c.stateNode.current.memoizedState.isDehydrated) { + a.blockedOn = 3 === c.tag ? c.stateNode.containerInfo : null; + return; + } + } + a.blockedOn = null; +} +function Xc(a) { + if (null !== a.blockedOn) return !1; + for (var b = a.targetContainers; 0 < b.length;) { + var c = Yc(a.domEventName, a.eventSystemFlags, b[0], a.nativeEvent); + if (null === c) { + c = a.nativeEvent; + var d = new c.constructor(c.type, c); + wb = d; + c.target.dispatchEvent(d); + wb = null; + } else return b = Cb(c), null !== b && Fc(b), a.blockedOn = c, !1; + b.shift(); + } + return !0; +} +function Zc(a, b, c) { + Xc(a) && c.delete(b); +} +function $c() { + Jc = !1; + null !== Lc && Xc(Lc) && (Lc = null); + null !== Mc && Xc(Mc) && (Mc = null); + null !== Nc && Xc(Nc) && (Nc = null); + Oc.forEach(Zc); + Pc.forEach(Zc); +} +function ad(a, b) { + a.blockedOn === b && (a.blockedOn = null, Jc || (Jc = !0, ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c))); +} +function bd(a) { + function b(b) { + return ad(b, a); + } + if (0 < Kc.length) { + ad(Kc[0], a); + for (var c = 1; c < Kc.length; c++) { + var d = Kc[c]; + d.blockedOn === a && (d.blockedOn = null); + } + } + null !== Lc && ad(Lc, a); + null !== Mc && ad(Mc, a); + null !== Nc && ad(Nc, a); + Oc.forEach(b); + Pc.forEach(b); + for (c = 0; c < Qc.length; c++) d = Qc[c], d.blockedOn === a && (d.blockedOn = null); + for (; 0 < Qc.length && (c = Qc[0], null === c.blockedOn);) Vc(c), null === c.blockedOn && Qc.shift(); +} +var cd = ua.ReactCurrentBatchConfig, + dd = !0; +function ed(a, b, c, d) { + var e = C, + f = cd.transition; + cd.transition = null; + try { + C = 1, fd(a, b, c, d); + } finally { + C = e, cd.transition = f; + } +} +function gd(a, b, c, d) { + var e = C, + f = cd.transition; + cd.transition = null; + try { + C = 4, fd(a, b, c, d); + } finally { + C = e, cd.transition = f; + } +} +function fd(a, b, c, d) { + if (dd) { + var e = Yc(a, b, c, d); + if (null === e) hd(a, b, d, id, c), Sc(a, d);else if (Uc(e, a, b, c, d)) d.stopPropagation();else if (Sc(a, d), b & 4 && -1 < Rc.indexOf(a)) { + for (; null !== e;) { + var f = Cb(e); + null !== f && Ec(f); + f = Yc(a, b, c, d); + null === f && hd(a, b, d, id, c); + if (f === e) break; + e = f; + } + null !== e && d.stopPropagation(); + } else hd(a, b, d, null, c); + } +} +var id = null; +function Yc(a, b, c, d) { + id = null; + a = xb(d); + a = Wc(a); + if (null !== a) if (b = Vb(a), null === b) a = null;else if (c = b.tag, 13 === c) { + a = Wb(b); + if (null !== a) return a; + a = null; + } else if (3 === c) { + if (b.stateNode.current.memoizedState.isDehydrated) return 3 === b.tag ? b.stateNode.containerInfo : null; + a = null; + } else b !== a && (a = null); + id = a; + return null; +} +function jd(a) { + switch (a) { + case "cancel": + case "click": + case "close": + case "contextmenu": + case "copy": + case "cut": + case "auxclick": + case "dblclick": + case "dragend": + case "dragstart": + case "drop": + case "focusin": + case "focusout": + case "input": + case "invalid": + case "keydown": + case "keypress": + case "keyup": + case "mousedown": + case "mouseup": + case "paste": + case "pause": + case "play": + case "pointercancel": + case "pointerdown": + case "pointerup": + case "ratechange": + case "reset": + case "resize": + case "seeked": + case "submit": + case "touchcancel": + case "touchend": + case "touchstart": + case "volumechange": + case "change": + case "selectionchange": + case "textInput": + case "compositionstart": + case "compositionend": + case "compositionupdate": + case "beforeblur": + case "afterblur": + case "beforeinput": + case "blur": + case "fullscreenchange": + case "focus": + case "hashchange": + case "popstate": + case "select": + case "selectstart": + return 1; + case "drag": + case "dragenter": + case "dragexit": + case "dragleave": + case "dragover": + case "mousemove": + case "mouseout": + case "mouseover": + case "pointermove": + case "pointerout": + case "pointerover": + case "scroll": + case "toggle": + case "touchmove": + case "wheel": + case "mouseenter": + case "mouseleave": + case "pointerenter": + case "pointerleave": + return 4; + case "message": + switch (ec()) { + case fc: + return 1; + case gc: + return 4; + case hc: + case ic: + return 16; + case jc: + return 536870912; + default: + return 16; + } + default: + return 16; + } +} +var kd = null, + ld = null, + md = null; +function nd() { + if (md) return md; + var a, + b = ld, + c = b.length, + d, + e = "value" in kd ? kd.value : kd.textContent, + f = e.length; + for (a = 0; a < c && b[a] === e[a]; a++); + var g = c - a; + for (d = 1; d <= g && b[c - d] === e[f - d]; d++); + return md = e.slice(a, 1 < d ? 1 - d : void 0); +} +function od(a) { + var b = a.keyCode; + "charCode" in a ? (a = a.charCode, 0 === a && 13 === b && (a = 13)) : a = b; + 10 === a && (a = 13); + return 32 <= a || 13 === a ? a : 0; +} +function pd() { + return !0; +} +function qd() { + return !1; +} +function rd(a) { + function b(b, d, e, f, g) { + this._reactName = b; + this._targetInst = e; + this.type = d; + this.nativeEvent = f; + this.target = g; + this.currentTarget = null; + for (var c in a) a.hasOwnProperty(c) && (b = a[c], this[c] = b ? b(f) : f[c]); + this.isDefaultPrevented = (null != f.defaultPrevented ? f.defaultPrevented : !1 === f.returnValue) ? pd : qd; + this.isPropagationStopped = qd; + return this; + } + A(b.prototype, { + preventDefault: function preventDefault() { + this.defaultPrevented = !0; + var a = this.nativeEvent; + a && (a.preventDefault ? a.preventDefault() : "unknown" !== typeof a.returnValue && (a.returnValue = !1), this.isDefaultPrevented = pd); + }, + stopPropagation: function stopPropagation() { + var a = this.nativeEvent; + a && (a.stopPropagation ? a.stopPropagation() : "unknown" !== typeof a.cancelBubble && (a.cancelBubble = !0), this.isPropagationStopped = pd); + }, + persist: function persist() {}, + isPersistent: pd + }); + return b; +} +var sd = { + eventPhase: 0, + bubbles: 0, + cancelable: 0, + timeStamp: function timeStamp(a) { + return a.timeStamp || Date.now(); + }, + defaultPrevented: 0, + isTrusted: 0 + }, + td = rd(sd), + ud = A({}, sd, { + view: 0, + detail: 0 + }), + vd = rd(ud), + wd, + xd, + yd, + Ad = A({}, ud, { + screenX: 0, + screenY: 0, + clientX: 0, + clientY: 0, + pageX: 0, + pageY: 0, + ctrlKey: 0, + shiftKey: 0, + altKey: 0, + metaKey: 0, + getModifierState: zd, + button: 0, + buttons: 0, + relatedTarget: function relatedTarget(a) { + return void 0 === a.relatedTarget ? a.fromElement === a.srcElement ? a.toElement : a.fromElement : a.relatedTarget; + }, + movementX: function movementX(a) { + if ("movementX" in a) return a.movementX; + a !== yd && (yd && "mousemove" === a.type ? (wd = a.screenX - yd.screenX, xd = a.screenY - yd.screenY) : xd = wd = 0, yd = a); + return wd; + }, + movementY: function movementY(a) { + return "movementY" in a ? a.movementY : xd; + } + }), + Bd = rd(Ad), + Cd = A({}, Ad, { + dataTransfer: 0 + }), + Dd = rd(Cd), + Ed = A({}, ud, { + relatedTarget: 0 + }), + Fd = rd(Ed), + Gd = A({}, sd, { + animationName: 0, + elapsedTime: 0, + pseudoElement: 0 + }), + Hd = rd(Gd), + Id = A({}, sd, { + clipboardData: function clipboardData(a) { + return "clipboardData" in a ? a.clipboardData : window.clipboardData; + } + }), + Jd = rd(Id), + Kd = A({}, sd, { + data: 0 + }), + Ld = rd(Kd), + Md = { + Esc: "Escape", + Spacebar: " ", + Left: "ArrowLeft", + Up: "ArrowUp", + Right: "ArrowRight", + Down: "ArrowDown", + Del: "Delete", + Win: "OS", + Menu: "ContextMenu", + Apps: "ContextMenu", + Scroll: "ScrollLock", + MozPrintableKey: "Unidentified" + }, + Nd = { + 8: "Backspace", + 9: "Tab", + 12: "Clear", + 13: "Enter", + 16: "Shift", + 17: "Control", + 18: "Alt", + 19: "Pause", + 20: "CapsLock", + 27: "Escape", + 32: " ", + 33: "PageUp", + 34: "PageDown", + 35: "End", + 36: "Home", + 37: "ArrowLeft", + 38: "ArrowUp", + 39: "ArrowRight", + 40: "ArrowDown", + 45: "Insert", + 46: "Delete", + 112: "F1", + 113: "F2", + 114: "F3", + 115: "F4", + 116: "F5", + 117: "F6", + 118: "F7", + 119: "F8", + 120: "F9", + 121: "F10", + 122: "F11", + 123: "F12", + 144: "NumLock", + 145: "ScrollLock", + 224: "Meta" + }, + Od = { + Alt: "altKey", + Control: "ctrlKey", + Meta: "metaKey", + Shift: "shiftKey" + }; +function Pd(a) { + var b = this.nativeEvent; + return b.getModifierState ? b.getModifierState(a) : (a = Od[a]) ? !!b[a] : !1; +} +function zd() { + return Pd; +} +var Qd = A({}, ud, { + key: function key(a) { + if (a.key) { + var b = Md[a.key] || a.key; + if ("Unidentified" !== b) return b; + } + return "keypress" === a.type ? (a = od(a), 13 === a ? "Enter" : String.fromCharCode(a)) : "keydown" === a.type || "keyup" === a.type ? Nd[a.keyCode] || "Unidentified" : ""; + }, + code: 0, + location: 0, + ctrlKey: 0, + shiftKey: 0, + altKey: 0, + metaKey: 0, + repeat: 0, + locale: 0, + getModifierState: zd, + charCode: function charCode(a) { + return "keypress" === a.type ? od(a) : 0; + }, + keyCode: function keyCode(a) { + return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; + }, + which: function which(a) { + return "keypress" === a.type ? od(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; + } + }), + Rd = rd(Qd), + Sd = A({}, Ad, { + pointerId: 0, + width: 0, + height: 0, + pressure: 0, + tangentialPressure: 0, + tiltX: 0, + tiltY: 0, + twist: 0, + pointerType: 0, + isPrimary: 0 + }), + Td = rd(Sd), + Ud = A({}, ud, { + touches: 0, + targetTouches: 0, + changedTouches: 0, + altKey: 0, + metaKey: 0, + ctrlKey: 0, + shiftKey: 0, + getModifierState: zd + }), + Vd = rd(Ud), + Wd = A({}, sd, { + propertyName: 0, + elapsedTime: 0, + pseudoElement: 0 + }), + Xd = rd(Wd), + Yd = A({}, Ad, { + deltaX: function deltaX(a) { + return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0; + }, + deltaY: function deltaY(a) { + return "deltaY" in a ? a.deltaY : "wheelDeltaY" in a ? -a.wheelDeltaY : "wheelDelta" in a ? -a.wheelDelta : 0; + }, + deltaZ: 0, + deltaMode: 0 + }), + Zd = rd(Yd), + $d = [9, 13, 27, 32], + ae = ia && "CompositionEvent" in window, + be = null; +ia && "documentMode" in document && (be = document.documentMode); +var ce = ia && "TextEvent" in window && !be, + de = ia && (!ae || be && 8 < be && 11 >= be), + ee = String.fromCharCode(32), + fe = !1; +function ge(a, b) { + switch (a) { + case "keyup": + return -1 !== $d.indexOf(b.keyCode); + case "keydown": + return 229 !== b.keyCode; + case "keypress": + case "mousedown": + case "focusout": + return !0; + default: + return !1; + } +} +function he(a) { + a = a.detail; + return "object" === typeof a && "data" in a ? a.data : null; +} +var ie = !1; +function je(a, b) { + switch (a) { + case "compositionend": + return he(b); + case "keypress": + if (32 !== b.which) return null; + fe = !0; + return ee; + case "textInput": + return a = b.data, a === ee && fe ? null : a; + default: + return null; + } +} +function ke(a, b) { + if (ie) return "compositionend" === a || !ae && ge(a, b) ? (a = nd(), md = ld = kd = null, ie = !1, a) : null; + switch (a) { + case "paste": + return null; + case "keypress": + if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) { + if (b.char && 1 < b.char.length) return b.char; + if (b.which) return String.fromCharCode(b.which); + } + return null; + case "compositionend": + return de && "ko" !== b.locale ? null : b.data; + default: + return null; + } +} +var le = { + color: !0, + date: !0, + datetime: !0, + "datetime-local": !0, + email: !0, + month: !0, + number: !0, + password: !0, + range: !0, + search: !0, + tel: !0, + text: !0, + time: !0, + url: !0, + week: !0 +}; +function me(a) { + var b = a && a.nodeName && a.nodeName.toLowerCase(); + return "input" === b ? !!le[a.type] : "textarea" === b ? !0 : !1; +} +function ne(a, b, c, d) { + Eb(d); + b = oe(b, "onChange"); + 0 < b.length && (c = new td("onChange", "change", null, c, d), a.push({ + event: c, + listeners: b + })); +} +var pe = null, + qe = null; +function re(a) { + se(a, 0); +} +function te(a) { + var b = ue(a); + if (Wa(b)) return a; +} +function ve(a, b) { + if ("change" === a) return b; +} +var we = !1; +if (ia) { + var xe; + if (ia) { + var ye = ("oninput" in document); + if (!ye) { + var ze = document.createElement("div"); + ze.setAttribute("oninput", "return;"); + ye = "function" === typeof ze.oninput; + } + xe = ye; + } else xe = !1; + we = xe && (!document.documentMode || 9 < document.documentMode); +} +function Ae() { + pe && (pe.detachEvent("onpropertychange", Be), qe = pe = null); +} +function Be(a) { + if ("value" === a.propertyName && te(qe)) { + var b = []; + ne(b, qe, a, xb(a)); + Jb(re, b); + } +} +function Ce(a, b, c) { + "focusin" === a ? (Ae(), pe = b, qe = c, pe.attachEvent("onpropertychange", Be)) : "focusout" === a && Ae(); +} +function De(a) { + if ("selectionchange" === a || "keyup" === a || "keydown" === a) return te(qe); +} +function Ee(a, b) { + if ("click" === a) return te(b); +} +function Fe(a, b) { + if ("input" === a || "change" === a) return te(b); +} +function Ge(a, b) { + return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b; +} +var He = "function" === typeof Object.is ? Object.is : Ge; +function Ie(a, b) { + if (He(a, b)) return !0; + if ("object" !== typeof a || null === a || "object" !== typeof b || null === b) return !1; + var c = Object.keys(a), + d = Object.keys(b); + if (c.length !== d.length) return !1; + for (d = 0; d < c.length; d++) { + var e = c[d]; + if (!ja.call(b, e) || !He(a[e], b[e])) return !1; + } + return !0; +} +function Je(a) { + for (; a && a.firstChild;) a = a.firstChild; + return a; +} +function Ke(a, b) { + var c = Je(a); + a = 0; + for (var d; c;) { + if (3 === c.nodeType) { + d = a + c.textContent.length; + if (a <= b && d >= b) return { + node: c, + offset: b - a + }; + a = d; + } + a: { + for (; c;) { + if (c.nextSibling) { + c = c.nextSibling; + break a; + } + c = c.parentNode; + } + c = void 0; + } + c = Je(c); + } +} +function Le(a, b) { + return a && b ? a === b ? !0 : a && 3 === a.nodeType ? !1 : b && 3 === b.nodeType ? Le(a, b.parentNode) : "contains" in a ? a.contains(b) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b) & 16) : !1 : !1; +} +function Me() { + for (var a = window, b = Xa(); b instanceof a.HTMLIFrameElement;) { + try { + var c = "string" === typeof b.contentWindow.location.href; + } catch (d) { + c = !1; + } + if (c) a = b.contentWindow;else break; + b = Xa(a.document); + } + return b; +} +function Ne(a) { + var b = a && a.nodeName && a.nodeName.toLowerCase(); + return b && ("input" === b && ("text" === a.type || "search" === a.type || "tel" === a.type || "url" === a.type || "password" === a.type) || "textarea" === b || "true" === a.contentEditable); +} +function Oe(a) { + var b = Me(), + c = a.focusedElem, + d = a.selectionRange; + if (b !== c && c && c.ownerDocument && Le(c.ownerDocument.documentElement, c)) { + if (null !== d && Ne(c)) if (b = d.start, a = d.end, void 0 === a && (a = b), "selectionStart" in c) c.selectionStart = b, c.selectionEnd = Math.min(a, c.value.length);else if (a = (b = c.ownerDocument || document) && b.defaultView || window, a.getSelection) { + a = a.getSelection(); + var e = c.textContent.length, + f = Math.min(d.start, e); + d = void 0 === d.end ? f : Math.min(d.end, e); + !a.extend && f > d && (e = d, d = f, f = e); + e = Ke(c, f); + var g = Ke(c, d); + e && g && (1 !== a.rangeCount || a.anchorNode !== e.node || a.anchorOffset !== e.offset || a.focusNode !== g.node || a.focusOffset !== g.offset) && (b = b.createRange(), b.setStart(e.node, e.offset), a.removeAllRanges(), f > d ? (a.addRange(b), a.extend(g.node, g.offset)) : (b.setEnd(g.node, g.offset), a.addRange(b))); + } + b = []; + for (a = c; a = a.parentNode;) 1 === a.nodeType && b.push({ + element: a, + left: a.scrollLeft, + top: a.scrollTop + }); + "function" === typeof c.focus && c.focus(); + for (c = 0; c < b.length; c++) a = b[c], a.element.scrollLeft = a.left, a.element.scrollTop = a.top; + } +} +var Pe = ia && "documentMode" in document && 11 >= document.documentMode, + Qe = null, + Re = null, + Se = null, + Te = !1; +function Ue(a, b, c) { + var d = c.window === c ? c.document : 9 === c.nodeType ? c : c.ownerDocument; + Te || null == Qe || Qe !== Xa(d) || (d = Qe, "selectionStart" in d && Ne(d) ? d = { + start: d.selectionStart, + end: d.selectionEnd + } : (d = (d.ownerDocument && d.ownerDocument.defaultView || window).getSelection(), d = { + anchorNode: d.anchorNode, + anchorOffset: d.anchorOffset, + focusNode: d.focusNode, + focusOffset: d.focusOffset + }), Se && Ie(Se, d) || (Se = d, d = oe(Re, "onSelect"), 0 < d.length && (b = new td("onSelect", "select", null, b, c), a.push({ + event: b, + listeners: d + }), b.target = Qe))); +} +function Ve(a, b) { + var c = {}; + c[a.toLowerCase()] = b.toLowerCase(); + c["Webkit" + a] = "webkit" + b; + c["Moz" + a] = "moz" + b; + return c; +} +var We = { + animationend: Ve("Animation", "AnimationEnd"), + animationiteration: Ve("Animation", "AnimationIteration"), + animationstart: Ve("Animation", "AnimationStart"), + transitionend: Ve("Transition", "TransitionEnd") + }, + Xe = {}, + Ye = {}; +ia && (Ye = document.createElement("div").style, "AnimationEvent" in window || (delete We.animationend.animation, delete We.animationiteration.animation, delete We.animationstart.animation), "TransitionEvent" in window || delete We.transitionend.transition); +function Ze(a) { + if (Xe[a]) return Xe[a]; + if (!We[a]) return a; + var b = We[a], + c; + for (c in b) if (b.hasOwnProperty(c) && c in Ye) return Xe[a] = b[c]; + return a; +} +var $e = Ze("animationend"), + af = Ze("animationiteration"), + bf = Ze("animationstart"), + cf = Ze("transitionend"), + df = new Map(), + ef = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); +function ff(a, b) { + df.set(a, b); + fa(b, [a]); +} +for (var gf = 0; gf < ef.length; gf++) { + var hf = ef[gf], + jf = hf.toLowerCase(), + kf = hf[0].toUpperCase() + hf.slice(1); + ff(jf, "on" + kf); +} +ff($e, "onAnimationEnd"); +ff(af, "onAnimationIteration"); +ff(bf, "onAnimationStart"); +ff("dblclick", "onDoubleClick"); +ff("focusin", "onFocus"); +ff("focusout", "onBlur"); +ff(cf, "onTransitionEnd"); +ha("onMouseEnter", ["mouseout", "mouseover"]); +ha("onMouseLeave", ["mouseout", "mouseover"]); +ha("onPointerEnter", ["pointerout", "pointerover"]); +ha("onPointerLeave", ["pointerout", "pointerover"]); +fa("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")); +fa("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")); +fa("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]); +fa("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); +fa("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); +fa("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); +var lf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), + mf = new Set("cancel close invalid load scroll toggle".split(" ").concat(lf)); +function nf(a, b, c) { + var d = a.type || "unknown-event"; + a.currentTarget = c; + Ub(d, b, void 0, a); + a.currentTarget = null; +} +function se(a, b) { + b = 0 !== (b & 4); + for (var c = 0; c < a.length; c++) { + var d = a[c], + e = d.event; + d = d.listeners; + a: { + var f = void 0; + if (b) for (var g = d.length - 1; 0 <= g; g--) { + var h = d[g], + k = h.instance, + l = h.currentTarget; + h = h.listener; + if (k !== f && e.isPropagationStopped()) break a; + nf(e, h, l); + f = k; + } else for (g = 0; g < d.length; g++) { + h = d[g]; + k = h.instance; + l = h.currentTarget; + h = h.listener; + if (k !== f && e.isPropagationStopped()) break a; + nf(e, h, l); + f = k; + } + } + } + if (Qb) throw a = Rb, Qb = !1, Rb = null, a; +} +function D(a, b) { + var c = b[of]; + void 0 === c && (c = b[of] = new Set()); + var d = a + "__bubble"; + c.has(d) || (pf(b, a, 2, !1), c.add(d)); +} +function qf(a, b, c) { + var d = 0; + b && (d |= 4); + pf(c, a, d, b); +} +var rf = "_reactListening" + Math.random().toString(36).slice(2); +function sf(a) { + if (!a[rf]) { + a[rf] = !0; + da.forEach(function (b) { + "selectionchange" !== b && (mf.has(b) || qf(b, !1, a), qf(b, !0, a)); + }); + var b = 9 === a.nodeType ? a : a.ownerDocument; + null === b || b[rf] || (b[rf] = !0, qf("selectionchange", !1, b)); + } +} +function pf(a, b, c, d) { + switch (jd(b)) { + case 1: + var e = ed; + break; + case 4: + e = gd; + break; + default: + e = fd; + } + c = e.bind(null, b, c, a); + e = void 0; + !Lb || "touchstart" !== b && "touchmove" !== b && "wheel" !== b || (e = !0); + d ? void 0 !== e ? a.addEventListener(b, c, { + capture: !0, + passive: e + }) : a.addEventListener(b, c, !0) : void 0 !== e ? a.addEventListener(b, c, { + passive: e + }) : a.addEventListener(b, c, !1); +} +function hd(a, b, c, d, e) { + var f = d; + if (0 === (b & 1) && 0 === (b & 2) && null !== d) a: for (;;) { + if (null === d) return; + var g = d.tag; + if (3 === g || 4 === g) { + var h = d.stateNode.containerInfo; + if (h === e || 8 === h.nodeType && h.parentNode === e) break; + if (4 === g) for (g = d.return; null !== g;) { + var k = g.tag; + if (3 === k || 4 === k) if (k = g.stateNode.containerInfo, k === e || 8 === k.nodeType && k.parentNode === e) return; + g = g.return; + } + for (; null !== h;) { + g = Wc(h); + if (null === g) return; + k = g.tag; + if (5 === k || 6 === k) { + d = f = g; + continue a; + } + h = h.parentNode; + } + } + d = d.return; + } + Jb(function () { + var d = f, + e = xb(c), + g = []; + a: { + var h = df.get(a); + if (void 0 !== h) { + var k = td, + n = a; + switch (a) { + case "keypress": + if (0 === od(c)) break a; + case "keydown": + case "keyup": + k = Rd; + break; + case "focusin": + n = "focus"; + k = Fd; + break; + case "focusout": + n = "blur"; + k = Fd; + break; + case "beforeblur": + case "afterblur": + k = Fd; + break; + case "click": + if (2 === c.button) break a; + case "auxclick": + case "dblclick": + case "mousedown": + case "mousemove": + case "mouseup": + case "mouseout": + case "mouseover": + case "contextmenu": + k = Bd; + break; + case "drag": + case "dragend": + case "dragenter": + case "dragexit": + case "dragleave": + case "dragover": + case "dragstart": + case "drop": + k = Dd; + break; + case "touchcancel": + case "touchend": + case "touchmove": + case "touchstart": + k = Vd; + break; + case $e: + case af: + case bf: + k = Hd; + break; + case cf: + k = Xd; + break; + case "scroll": + k = vd; + break; + case "wheel": + k = Zd; + break; + case "copy": + case "cut": + case "paste": + k = Jd; + break; + case "gotpointercapture": + case "lostpointercapture": + case "pointercancel": + case "pointerdown": + case "pointermove": + case "pointerout": + case "pointerover": + case "pointerup": + k = Td; + } + var t = 0 !== (b & 4), + J = !t && "scroll" === a, + x = t ? null !== h ? h + "Capture" : null : h; + t = []; + for (var w = d, u; null !== w;) { + u = w; + var F = u.stateNode; + 5 === u.tag && null !== F && (u = F, null !== x && (F = Kb(w, x), null != F && t.push(tf(w, F, u)))); + if (J) break; + w = w.return; + } + 0 < t.length && (h = new k(h, n, null, c, e), g.push({ + event: h, + listeners: t + })); + } + } + if (0 === (b & 7)) { + a: { + h = "mouseover" === a || "pointerover" === a; + k = "mouseout" === a || "pointerout" === a; + if (h && c !== wb && (n = c.relatedTarget || c.fromElement) && (Wc(n) || n[uf])) break a; + if (k || h) { + h = e.window === e ? e : (h = e.ownerDocument) ? h.defaultView || h.parentWindow : window; + if (k) { + if (n = c.relatedTarget || c.toElement, k = d, n = n ? Wc(n) : null, null !== n && (J = Vb(n), n !== J || 5 !== n.tag && 6 !== n.tag)) n = null; + } else k = null, n = d; + if (k !== n) { + t = Bd; + F = "onMouseLeave"; + x = "onMouseEnter"; + w = "mouse"; + if ("pointerout" === a || "pointerover" === a) t = Td, F = "onPointerLeave", x = "onPointerEnter", w = "pointer"; + J = null == k ? h : ue(k); + u = null == n ? h : ue(n); + h = new t(F, w + "leave", k, c, e); + h.target = J; + h.relatedTarget = u; + F = null; + Wc(e) === d && (t = new t(x, w + "enter", n, c, e), t.target = u, t.relatedTarget = J, F = t); + J = F; + if (k && n) b: { + t = k; + x = n; + w = 0; + for (u = t; u; u = vf(u)) w++; + u = 0; + for (F = x; F; F = vf(F)) u++; + for (; 0 < w - u;) t = vf(t), w--; + for (; 0 < u - w;) x = vf(x), u--; + for (; w--;) { + if (t === x || null !== x && t === x.alternate) break b; + t = vf(t); + x = vf(x); + } + t = null; + } else t = null; + null !== k && wf(g, h, k, t, !1); + null !== n && null !== J && wf(g, J, n, t, !0); + } + } + } + a: { + h = d ? ue(d) : window; + k = h.nodeName && h.nodeName.toLowerCase(); + if ("select" === k || "input" === k && "file" === h.type) var na = ve;else if (me(h)) { + if (we) na = Fe;else { + na = De; + var xa = Ce; + } + } else (k = h.nodeName) && "input" === k.toLowerCase() && ("checkbox" === h.type || "radio" === h.type) && (na = Ee); + if (na && (na = na(a, d))) { + ne(g, na, c, e); + break a; + } + xa && xa(a, h, d); + "focusout" === a && (xa = h._wrapperState) && xa.controlled && "number" === h.type && cb(h, "number", h.value); + } + xa = d ? ue(d) : window; + switch (a) { + case "focusin": + if (me(xa) || "true" === xa.contentEditable) Qe = xa, Re = d, Se = null; + break; + case "focusout": + Se = Re = Qe = null; + break; + case "mousedown": + Te = !0; + break; + case "contextmenu": + case "mouseup": + case "dragend": + Te = !1; + Ue(g, c, e); + break; + case "selectionchange": + if (Pe) break; + case "keydown": + case "keyup": + Ue(g, c, e); + } + var $a; + if (ae) b: { + switch (a) { + case "compositionstart": + var ba = "onCompositionStart"; + break b; + case "compositionend": + ba = "onCompositionEnd"; + break b; + case "compositionupdate": + ba = "onCompositionUpdate"; + break b; + } + ba = void 0; + } else ie ? ge(a, c) && (ba = "onCompositionEnd") : "keydown" === a && 229 === c.keyCode && (ba = "onCompositionStart"); + ba && (de && "ko" !== c.locale && (ie || "onCompositionStart" !== ba ? "onCompositionEnd" === ba && ie && ($a = nd()) : (kd = e, ld = "value" in kd ? kd.value : kd.textContent, ie = !0)), xa = oe(d, ba), 0 < xa.length && (ba = new Ld(ba, a, null, c, e), g.push({ + event: ba, + listeners: xa + }), $a ? ba.data = $a : ($a = he(c), null !== $a && (ba.data = $a)))); + if ($a = ce ? je(a, c) : ke(a, c)) d = oe(d, "onBeforeInput"), 0 < d.length && (e = new Ld("onBeforeInput", "beforeinput", null, c, e), g.push({ + event: e, + listeners: d + }), e.data = $a); + } + se(g, b); + }); +} +function tf(a, b, c) { + return { + instance: a, + listener: b, + currentTarget: c + }; +} +function oe(a, b) { + for (var c = b + "Capture", d = []; null !== a;) { + var e = a, + f = e.stateNode; + 5 === e.tag && null !== f && (e = f, f = Kb(a, c), null != f && d.unshift(tf(a, f, e)), f = Kb(a, b), null != f && d.push(tf(a, f, e))); + a = a.return; + } + return d; +} +function vf(a) { + if (null === a) return null; + do a = a.return; while (a && 5 !== a.tag); + return a ? a : null; +} +function wf(a, b, c, d, e) { + for (var f = b._reactName, g = []; null !== c && c !== d;) { + var h = c, + k = h.alternate, + l = h.stateNode; + if (null !== k && k === d) break; + 5 === h.tag && null !== l && (h = l, e ? (k = Kb(c, f), null != k && g.unshift(tf(c, k, h))) : e || (k = Kb(c, f), null != k && g.push(tf(c, k, h)))); + c = c.return; + } + 0 !== g.length && a.push({ + event: b, + listeners: g + }); +} +var xf = /\r\n?/g, + yf = /\u0000|\uFFFD/g; +function zf(a) { + return ("string" === typeof a ? a : "" + a).replace(xf, "\n").replace(yf, ""); +} +function Af(a, b, c) { + b = zf(b); + if (zf(a) !== b && c) throw Error(p(425)); +} +function Bf() {} +var Cf = null, + Df = null; +function Ef(a, b) { + return "textarea" === a || "noscript" === a || "string" === typeof b.children || "number" === typeof b.children || "object" === typeof b.dangerouslySetInnerHTML && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html; +} +var Ff = "function" === typeof setTimeout ? setTimeout : void 0, + Gf = "function" === typeof clearTimeout ? clearTimeout : void 0, + Hf = "function" === typeof Promise ? Promise : void 0, + Jf = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof Hf ? function (a) { + return Hf.resolve(null).then(a).catch(If); + } : Ff; +function If(a) { + setTimeout(function () { + throw a; + }); +} +function Kf(a, b) { + var c = b, + d = 0; + do { + var e = c.nextSibling; + a.removeChild(c); + if (e && 8 === e.nodeType) if (c = e.data, "/$" === c) { + if (0 === d) { + a.removeChild(e); + bd(b); + return; + } + d--; + } else "$" !== c && "$?" !== c && "$!" !== c || d++; + c = e; + } while (c); + bd(b); +} +function Lf(a) { + for (; null != a; a = a.nextSibling) { + var b = a.nodeType; + if (1 === b || 3 === b) break; + if (8 === b) { + b = a.data; + if ("$" === b || "$!" === b || "$?" === b) break; + if ("/$" === b) return null; + } + } + return a; +} +function Mf(a) { + a = a.previousSibling; + for (var b = 0; a;) { + if (8 === a.nodeType) { + var c = a.data; + if ("$" === c || "$!" === c || "$?" === c) { + if (0 === b) return a; + b--; + } else "/$" === c && b++; + } + a = a.previousSibling; + } + return null; +} +var Nf = Math.random().toString(36).slice(2), + Of = "__reactFiber$" + Nf, + Pf = "__reactProps$" + Nf, + uf = "__reactContainer$" + Nf, + of = "__reactEvents$" + Nf, + Qf = "__reactListeners$" + Nf, + Rf = "__reactHandles$" + Nf; +function Wc(a) { + var b = a[Of]; + if (b) return b; + for (var c = a.parentNode; c;) { + if (b = c[uf] || c[Of]) { + c = b.alternate; + if (null !== b.child || null !== c && null !== c.child) for (a = Mf(a); null !== a;) { + if (c = a[Of]) return c; + a = Mf(a); + } + return b; + } + a = c; + c = a.parentNode; + } + return null; +} +function Cb(a) { + a = a[Of] || a[uf]; + return !a || 5 !== a.tag && 6 !== a.tag && 13 !== a.tag && 3 !== a.tag ? null : a; +} +function ue(a) { + if (5 === a.tag || 6 === a.tag) return a.stateNode; + throw Error(p(33)); +} +function Db(a) { + return a[Pf] || null; +} +var Sf = [], + Tf = -1; +function Uf(a) { + return { + current: a + }; +} +function E(a) { + 0 > Tf || (a.current = Sf[Tf], Sf[Tf] = null, Tf--); +} +function G(a, b) { + Tf++; + Sf[Tf] = a.current; + a.current = b; +} +var Vf = {}, + H = Uf(Vf), + Wf = Uf(!1), + Xf = Vf; +function Yf(a, b) { + var c = a.type.contextTypes; + if (!c) return Vf; + var d = a.stateNode; + if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext; + var e = {}, + f; + for (f in c) e[f] = b[f]; + d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b, a.__reactInternalMemoizedMaskedChildContext = e); + return e; +} +function Zf(a) { + a = a.childContextTypes; + return null !== a && void 0 !== a; +} +function $f() { + E(Wf); + E(H); +} +function ag(a, b, c) { + if (H.current !== Vf) throw Error(p(168)); + G(H, b); + G(Wf, c); +} +function bg(a, b, c) { + var d = a.stateNode; + b = b.childContextTypes; + if ("function" !== typeof d.getChildContext) return c; + d = d.getChildContext(); + for (var e in d) if (!(e in b)) throw Error(p(108, Ra(a) || "Unknown", e)); + return A({}, c, d); +} +function cg(a) { + a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || Vf; + Xf = H.current; + G(H, a); + G(Wf, Wf.current); + return !0; +} +function dg(a, b, c) { + var d = a.stateNode; + if (!d) throw Error(p(169)); + c ? (a = bg(a, b, Xf), d.__reactInternalMemoizedMergedChildContext = a, E(Wf), E(H), G(H, a)) : E(Wf); + G(Wf, c); +} +var eg = null, + fg = !1, + gg = !1; +function hg(a) { + null === eg ? eg = [a] : eg.push(a); +} +function ig(a) { + fg = !0; + hg(a); +} +function jg() { + if (!gg && null !== eg) { + gg = !0; + var a = 0, + b = C; + try { + var c = eg; + for (C = 1; a < c.length; a++) { + var d = c[a]; + do d = d(!0); while (null !== d); + } + eg = null; + fg = !1; + } catch (e) { + throw null !== eg && (eg = eg.slice(a + 1)), ac(fc, jg), e; + } finally { + C = b, gg = !1; + } + } + return null; +} +var kg = [], + lg = 0, + mg = null, + ng = 0, + og = [], + pg = 0, + qg = null, + rg = 1, + sg = ""; +function tg(a, b) { + kg[lg++] = ng; + kg[lg++] = mg; + mg = a; + ng = b; +} +function ug(a, b, c) { + og[pg++] = rg; + og[pg++] = sg; + og[pg++] = qg; + qg = a; + var d = rg; + a = sg; + var e = 32 - oc(d) - 1; + d &= ~(1 << e); + c += 1; + var f = 32 - oc(b) + e; + if (30 < f) { + var g = e - e % 5; + f = (d & (1 << g) - 1).toString(32); + d >>= g; + e -= g; + rg = 1 << 32 - oc(b) + e | c << e | d; + sg = f + a; + } else rg = 1 << f | c << e | d, sg = a; +} +function vg(a) { + null !== a.return && (tg(a, 1), ug(a, 1, 0)); +} +function wg(a) { + for (; a === mg;) mg = kg[--lg], kg[lg] = null, ng = kg[--lg], kg[lg] = null; + for (; a === qg;) qg = og[--pg], og[pg] = null, sg = og[--pg], og[pg] = null, rg = og[--pg], og[pg] = null; +} +var xg = null, + yg = null, + I = !1, + zg = null; +function Ag(a, b) { + var c = Bg(5, null, null, 0); + c.elementType = "DELETED"; + c.stateNode = b; + c.return = a; + b = a.deletions; + null === b ? (a.deletions = [c], a.flags |= 16) : b.push(c); +} +function Cg(a, b) { + switch (a.tag) { + case 5: + var c = a.type; + b = 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b; + return null !== b ? (a.stateNode = b, xg = a, yg = Lf(b.firstChild), !0) : !1; + case 6: + return b = "" === a.pendingProps || 3 !== b.nodeType ? null : b, null !== b ? (a.stateNode = b, xg = a, yg = null, !0) : !1; + case 13: + return b = 8 !== b.nodeType ? null : b, null !== b ? (c = null !== qg ? { + id: rg, + overflow: sg + } : null, a.memoizedState = { + dehydrated: b, + treeContext: c, + retryLane: 1073741824 + }, c = Bg(18, null, null, 0), c.stateNode = b, c.return = a, a.child = c, xg = a, yg = null, !0) : !1; + default: + return !1; + } +} +function Dg(a) { + return 0 !== (a.mode & 1) && 0 === (a.flags & 128); +} +function Eg(a) { + if (I) { + var b = yg; + if (b) { + var c = b; + if (!Cg(a, b)) { + if (Dg(a)) throw Error(p(418)); + b = Lf(c.nextSibling); + var d = xg; + b && Cg(a, b) ? Ag(d, c) : (a.flags = a.flags & -4097 | 2, I = !1, xg = a); + } + } else { + if (Dg(a)) throw Error(p(418)); + a.flags = a.flags & -4097 | 2; + I = !1; + xg = a; + } + } +} +function Fg(a) { + for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag;) a = a.return; + xg = a; +} +function Gg(a) { + if (a !== xg) return !1; + if (!I) return Fg(a), I = !0, !1; + var b; + (b = 3 !== a.tag) && !(b = 5 !== a.tag) && (b = a.type, b = "head" !== b && "body" !== b && !Ef(a.type, a.memoizedProps)); + if (b && (b = yg)) { + if (Dg(a)) throw Hg(), Error(p(418)); + for (; b;) Ag(a, b), b = Lf(b.nextSibling); + } + Fg(a); + if (13 === a.tag) { + a = a.memoizedState; + a = null !== a ? a.dehydrated : null; + if (!a) throw Error(p(317)); + a: { + a = a.nextSibling; + for (b = 0; a;) { + if (8 === a.nodeType) { + var c = a.data; + if ("/$" === c) { + if (0 === b) { + yg = Lf(a.nextSibling); + break a; + } + b--; + } else "$" !== c && "$!" !== c && "$?" !== c || b++; + } + a = a.nextSibling; + } + yg = null; + } + } else yg = xg ? Lf(a.stateNode.nextSibling) : null; + return !0; +} +function Hg() { + for (var a = yg; a;) a = Lf(a.nextSibling); +} +function Ig() { + yg = xg = null; + I = !1; +} +function Jg(a) { + null === zg ? zg = [a] : zg.push(a); +} +var Kg = ua.ReactCurrentBatchConfig; +function Lg(a, b) { + if (a && a.defaultProps) { + b = A({}, b); + a = a.defaultProps; + for (var c in a) void 0 === b[c] && (b[c] = a[c]); + return b; + } + return b; +} +var Mg = Uf(null), + Ng = null, + Og = null, + Pg = null; +function Qg() { + Pg = Og = Ng = null; +} +function Rg(a) { + var b = Mg.current; + E(Mg); + a._currentValue = b; +} +function Sg(a, b, c) { + for (; null !== a;) { + var d = a.alternate; + (a.childLanes & b) !== b ? (a.childLanes |= b, null !== d && (d.childLanes |= b)) : null !== d && (d.childLanes & b) !== b && (d.childLanes |= b); + if (a === c) break; + a = a.return; + } +} +function Tg(a, b) { + Ng = a; + Pg = Og = null; + a = a.dependencies; + null !== a && null !== a.firstContext && (0 !== (a.lanes & b) && (Ug = !0), a.firstContext = null); +} +function Vg(a) { + var b = a._currentValue; + if (Pg !== a) if (a = { + context: a, + memoizedValue: b, + next: null + }, null === Og) { + if (null === Ng) throw Error(p(308)); + Og = a; + Ng.dependencies = { + lanes: 0, + firstContext: a + }; + } else Og = Og.next = a; + return b; +} +var Wg = null; +function Xg(a) { + null === Wg ? Wg = [a] : Wg.push(a); +} +function Yg(a, b, c, d) { + var e = b.interleaved; + null === e ? (c.next = c, Xg(b)) : (c.next = e.next, e.next = c); + b.interleaved = c; + return Zg(a, d); +} +function Zg(a, b) { + a.lanes |= b; + var c = a.alternate; + null !== c && (c.lanes |= b); + c = a; + for (a = a.return; null !== a;) a.childLanes |= b, c = a.alternate, null !== c && (c.childLanes |= b), c = a, a = a.return; + return 3 === c.tag ? c.stateNode : null; +} +var $g = !1; +function ah(a) { + a.updateQueue = { + baseState: a.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: { + pending: null, + interleaved: null, + lanes: 0 + }, + effects: null + }; +} +function bh(a, b) { + a = a.updateQueue; + b.updateQueue === a && (b.updateQueue = { + baseState: a.baseState, + firstBaseUpdate: a.firstBaseUpdate, + lastBaseUpdate: a.lastBaseUpdate, + shared: a.shared, + effects: a.effects + }); +} +function ch(a, b) { + return { + eventTime: a, + lane: b, + tag: 0, + payload: null, + callback: null, + next: null + }; +} +function dh(a, b, c) { + var d = a.updateQueue; + if (null === d) return null; + d = d.shared; + if (0 !== (K & 2)) { + var e = d.pending; + null === e ? b.next = b : (b.next = e.next, e.next = b); + d.pending = b; + return Zg(a, c); + } + e = d.interleaved; + null === e ? (b.next = b, Xg(d)) : (b.next = e.next, e.next = b); + d.interleaved = b; + return Zg(a, c); +} +function eh(a, b, c) { + b = b.updateQueue; + if (null !== b && (b = b.shared, 0 !== (c & 4194240))) { + var d = b.lanes; + d &= a.pendingLanes; + c |= d; + b.lanes = c; + Cc(a, c); + } +} +function fh(a, b) { + var c = a.updateQueue, + d = a.alternate; + if (null !== d && (d = d.updateQueue, c === d)) { + var e = null, + f = null; + c = c.firstBaseUpdate; + if (null !== c) { + do { + var g = { + eventTime: c.eventTime, + lane: c.lane, + tag: c.tag, + payload: c.payload, + callback: c.callback, + next: null + }; + null === f ? e = f = g : f = f.next = g; + c = c.next; + } while (null !== c); + null === f ? e = f = b : f = f.next = b; + } else e = f = b; + c = { + baseState: d.baseState, + firstBaseUpdate: e, + lastBaseUpdate: f, + shared: d.shared, + effects: d.effects + }; + a.updateQueue = c; + return; + } + a = c.lastBaseUpdate; + null === a ? c.firstBaseUpdate = b : a.next = b; + c.lastBaseUpdate = b; +} +function gh(a, b, c, d) { + var e = a.updateQueue; + $g = !1; + var f = e.firstBaseUpdate, + g = e.lastBaseUpdate, + h = e.shared.pending; + if (null !== h) { + e.shared.pending = null; + var k = h, + l = k.next; + k.next = null; + null === g ? f = l : g.next = l; + g = k; + var m = a.alternate; + null !== m && (m = m.updateQueue, h = m.lastBaseUpdate, h !== g && (null === h ? m.firstBaseUpdate = l : h.next = l, m.lastBaseUpdate = k)); + } + if (null !== f) { + var q = e.baseState; + g = 0; + m = l = k = null; + h = f; + do { + var r = h.lane, + y = h.eventTime; + if ((d & r) === r) { + null !== m && (m = m.next = { + eventTime: y, + lane: 0, + tag: h.tag, + payload: h.payload, + callback: h.callback, + next: null + }); + a: { + var n = a, + t = h; + r = b; + y = c; + switch (t.tag) { + case 1: + n = t.payload; + if ("function" === typeof n) { + q = n.call(y, q, r); + break a; + } + q = n; + break a; + case 3: + n.flags = n.flags & -65537 | 128; + case 0: + n = t.payload; + r = "function" === typeof n ? n.call(y, q, r) : n; + if (null === r || void 0 === r) break a; + q = A({}, q, r); + break a; + case 2: + $g = !0; + } + } + null !== h.callback && 0 !== h.lane && (a.flags |= 64, r = e.effects, null === r ? e.effects = [h] : r.push(h)); + } else y = { + eventTime: y, + lane: r, + tag: h.tag, + payload: h.payload, + callback: h.callback, + next: null + }, null === m ? (l = m = y, k = q) : m = m.next = y, g |= r; + h = h.next; + if (null === h) if (h = e.shared.pending, null === h) break;else r = h, h = r.next, r.next = null, e.lastBaseUpdate = r, e.shared.pending = null; + } while (1); + null === m && (k = q); + e.baseState = k; + e.firstBaseUpdate = l; + e.lastBaseUpdate = m; + b = e.shared.interleaved; + if (null !== b) { + e = b; + do g |= e.lane, e = e.next; while (e !== b); + } else null === f && (e.shared.lanes = 0); + hh |= g; + a.lanes = g; + a.memoizedState = q; + } +} +function ih(a, b, c) { + a = b.effects; + b.effects = null; + if (null !== a) for (b = 0; b < a.length; b++) { + var d = a[b], + e = d.callback; + if (null !== e) { + d.callback = null; + d = c; + if ("function" !== typeof e) throw Error(p(191, e)); + e.call(d); + } + } +} +var jh = new aa.Component().refs; +function kh(a, b, c, d) { + b = a.memoizedState; + c = c(d, b); + c = null === c || void 0 === c ? b : A({}, b, c); + a.memoizedState = c; + 0 === a.lanes && (a.updateQueue.baseState = c); +} +var nh = { + isMounted: function isMounted(a) { + return (a = a._reactInternals) ? Vb(a) === a : !1; + }, + enqueueSetState: function enqueueSetState(a, b, c) { + a = a._reactInternals; + var d = L(), + e = lh(a), + f = ch(d, e); + f.payload = b; + void 0 !== c && null !== c && (f.callback = c); + b = dh(a, f, e); + null !== b && (mh(b, a, e, d), eh(b, a, e)); + }, + enqueueReplaceState: function enqueueReplaceState(a, b, c) { + a = a._reactInternals; + var d = L(), + e = lh(a), + f = ch(d, e); + f.tag = 1; + f.payload = b; + void 0 !== c && null !== c && (f.callback = c); + b = dh(a, f, e); + null !== b && (mh(b, a, e, d), eh(b, a, e)); + }, + enqueueForceUpdate: function enqueueForceUpdate(a, b) { + a = a._reactInternals; + var c = L(), + d = lh(a), + e = ch(c, d); + e.tag = 2; + void 0 !== b && null !== b && (e.callback = b); + b = dh(a, e, d); + null !== b && (mh(b, a, d, c), eh(b, a, d)); + } +}; +function oh(a, b, c, d, e, f, g) { + a = a.stateNode; + return "function" === typeof a.shouldComponentUpdate ? a.shouldComponentUpdate(d, f, g) : b.prototype && b.prototype.isPureReactComponent ? !Ie(c, d) || !Ie(e, f) : !0; +} +function ph(a, b, c) { + var d = !1, + e = Vf; + var f = b.contextType; + "object" === typeof f && null !== f ? f = Vg(f) : (e = Zf(b) ? Xf : H.current, d = b.contextTypes, f = (d = null !== d && void 0 !== d) ? Yf(a, e) : Vf); + b = new b(c, f); + a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null; + b.updater = nh; + a.stateNode = b; + b._reactInternals = a; + d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = e, a.__reactInternalMemoizedMaskedChildContext = f); + return b; +} +function qh(a, b, c, d) { + a = b.state; + "function" === typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d); + "function" === typeof b.UNSAFE_componentWillReceiveProps && b.UNSAFE_componentWillReceiveProps(c, d); + b.state !== a && nh.enqueueReplaceState(b, b.state, null); +} +function rh(a, b, c, d) { + var e = a.stateNode; + e.props = c; + e.state = a.memoizedState; + e.refs = jh; + ah(a); + var f = b.contextType; + "object" === typeof f && null !== f ? e.context = Vg(f) : (f = Zf(b) ? Xf : H.current, e.context = Yf(a, f)); + e.state = a.memoizedState; + f = b.getDerivedStateFromProps; + "function" === typeof f && (kh(a, b, f, c), e.state = a.memoizedState); + "function" === typeof b.getDerivedStateFromProps || "function" === typeof e.getSnapshotBeforeUpdate || "function" !== typeof e.UNSAFE_componentWillMount && "function" !== typeof e.componentWillMount || (b = e.state, "function" === typeof e.componentWillMount && e.componentWillMount(), "function" === typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), b !== e.state && nh.enqueueReplaceState(e, e.state, null), gh(a, c, e, d), e.state = a.memoizedState); + "function" === typeof e.componentDidMount && (a.flags |= 4194308); +} +function sh(a, b, c) { + a = c.ref; + if (null !== a && "function" !== typeof a && "object" !== typeof a) { + if (c._owner) { + c = c._owner; + if (c) { + if (1 !== c.tag) throw Error(p(309)); + var d = c.stateNode; + } + if (!d) throw Error(p(147, a)); + var e = d, + f = "" + a; + if (null !== b && null !== b.ref && "function" === typeof b.ref && b.ref._stringRef === f) return b.ref; + b = function b(a) { + var b = e.refs; + b === jh && (b = e.refs = {}); + null === a ? delete b[f] : b[f] = a; + }; + b._stringRef = f; + return b; + } + if ("string" !== typeof a) throw Error(p(284)); + if (!c._owner) throw Error(p(290, a)); + } + return a; +} +function th(a, b) { + a = Object.prototype.toString.call(b); + throw Error(p(31, "[object Object]" === a ? "object with keys {" + Object.keys(b).join(", ") + "}" : a)); +} +function uh(a) { + var b = a._init; + return b(a._payload); +} +function vh(a) { + function b(b, c) { + if (a) { + var d = b.deletions; + null === d ? (b.deletions = [c], b.flags |= 16) : d.push(c); + } + } + function c(c, d) { + if (!a) return null; + for (; null !== d;) b(c, d), d = d.sibling; + return null; + } + function d(a, b) { + for (a = new Map(); null !== b;) null !== b.key ? a.set(b.key, b) : a.set(b.index, b), b = b.sibling; + return a; + } + function e(a, b) { + a = wh(a, b); + a.index = 0; + a.sibling = null; + return a; + } + function f(b, c, d) { + b.index = d; + if (!a) return b.flags |= 1048576, c; + d = b.alternate; + if (null !== d) return d = d.index, d < c ? (b.flags |= 2, c) : d; + b.flags |= 2; + return c; + } + function g(b) { + a && null === b.alternate && (b.flags |= 2); + return b; + } + function h(a, b, c, d) { + if (null === b || 6 !== b.tag) return b = xh(c, a.mode, d), b.return = a, b; + b = e(b, c); + b.return = a; + return b; + } + function k(a, b, c, d) { + var f = c.type; + if (f === ya) return m(a, b, c.props.children, d, c.key); + if (null !== b && (b.elementType === f || "object" === typeof f && null !== f && f.$$typeof === Ha && uh(f) === b.type)) return d = e(b, c.props), d.ref = sh(a, b, c), d.return = a, d; + d = yh(c.type, c.key, c.props, null, a.mode, d); + d.ref = sh(a, b, c); + d.return = a; + return d; + } + function l(a, b, c, d) { + if (null === b || 4 !== b.tag || b.stateNode.containerInfo !== c.containerInfo || b.stateNode.implementation !== c.implementation) return b = zh(c, a.mode, d), b.return = a, b; + b = e(b, c.children || []); + b.return = a; + return b; + } + function m(a, b, c, d, f) { + if (null === b || 7 !== b.tag) return b = Ah(c, a.mode, d, f), b.return = a, b; + b = e(b, c); + b.return = a; + return b; + } + function q(a, b, c) { + if ("string" === typeof b && "" !== b || "number" === typeof b) return b = xh("" + b, a.mode, c), b.return = a, b; + if ("object" === typeof b && null !== b) { + switch (b.$$typeof) { + case va: + return c = yh(b.type, b.key, b.props, null, a.mode, c), c.ref = sh(a, null, b), c.return = a, c; + case wa: + return b = zh(b, a.mode, c), b.return = a, b; + case Ha: + var d = b._init; + return q(a, d(b._payload), c); + } + if (eb(b) || Ka(b)) return b = Ah(b, a.mode, c, null), b.return = a, b; + th(a, b); + } + return null; + } + function r(a, b, c, d) { + var e = null !== b ? b.key : null; + if ("string" === typeof c && "" !== c || "number" === typeof c) return null !== e ? null : h(a, b, "" + c, d); + if ("object" === typeof c && null !== c) { + switch (c.$$typeof) { + case va: + return c.key === e ? k(a, b, c, d) : null; + case wa: + return c.key === e ? l(a, b, c, d) : null; + case Ha: + return e = c._init, r(a, b, e(c._payload), d); + } + if (eb(c) || Ka(c)) return null !== e ? null : m(a, b, c, d, null); + th(a, c); + } + return null; + } + function y(a, b, c, d, e) { + if ("string" === typeof d && "" !== d || "number" === typeof d) return a = a.get(c) || null, h(b, a, "" + d, e); + if ("object" === typeof d && null !== d) { + switch (d.$$typeof) { + case va: + return a = a.get(null === d.key ? c : d.key) || null, k(b, a, d, e); + case wa: + return a = a.get(null === d.key ? c : d.key) || null, l(b, a, d, e); + case Ha: + var f = d._init; + return y(a, b, c, f(d._payload), e); + } + if (eb(d) || Ka(d)) return a = a.get(c) || null, m(b, a, d, e, null); + th(b, d); + } + return null; + } + function n(e, g, h, k) { + for (var l = null, m = null, u = g, w = g = 0, x = null; null !== u && w < h.length; w++) { + u.index > w ? (x = u, u = null) : x = u.sibling; + var n = r(e, u, h[w], k); + if (null === n) { + null === u && (u = x); + break; + } + a && u && null === n.alternate && b(e, u); + g = f(n, g, w); + null === m ? l = n : m.sibling = n; + m = n; + u = x; + } + if (w === h.length) return c(e, u), I && tg(e, w), l; + if (null === u) { + for (; w < h.length; w++) u = q(e, h[w], k), null !== u && (g = f(u, g, w), null === m ? l = u : m.sibling = u, m = u); + I && tg(e, w); + return l; + } + for (u = d(e, u); w < h.length; w++) x = y(u, e, w, h[w], k), null !== x && (a && null !== x.alternate && u.delete(null === x.key ? w : x.key), g = f(x, g, w), null === m ? l = x : m.sibling = x, m = x); + a && u.forEach(function (a) { + return b(e, a); + }); + I && tg(e, w); + return l; + } + function t(e, g, h, k) { + var l = Ka(h); + if ("function" !== typeof l) throw Error(p(150)); + h = l.call(h); + if (null == h) throw Error(p(151)); + for (var u = l = null, m = g, w = g = 0, x = null, n = h.next(); null !== m && !n.done; w++, n = h.next()) { + m.index > w ? (x = m, m = null) : x = m.sibling; + var t = r(e, m, n.value, k); + if (null === t) { + null === m && (m = x); + break; + } + a && m && null === t.alternate && b(e, m); + g = f(t, g, w); + null === u ? l = t : u.sibling = t; + u = t; + m = x; + } + if (n.done) return c(e, m), I && tg(e, w), l; + if (null === m) { + for (; !n.done; w++, n = h.next()) n = q(e, n.value, k), null !== n && (g = f(n, g, w), null === u ? l = n : u.sibling = n, u = n); + I && tg(e, w); + return l; + } + for (m = d(e, m); !n.done; w++, n = h.next()) n = y(m, e, w, n.value, k), null !== n && (a && null !== n.alternate && m.delete(null === n.key ? w : n.key), g = f(n, g, w), null === u ? l = n : u.sibling = n, u = n); + a && m.forEach(function (a) { + return b(e, a); + }); + I && tg(e, w); + return l; + } + function J(a, d, f, h) { + "object" === typeof f && null !== f && f.type === ya && null === f.key && (f = f.props.children); + if ("object" === typeof f && null !== f) { + switch (f.$$typeof) { + case va: + a: { + for (var k = f.key, l = d; null !== l;) { + if (l.key === k) { + k = f.type; + if (k === ya) { + if (7 === l.tag) { + c(a, l.sibling); + d = e(l, f.props.children); + d.return = a; + a = d; + break a; + } + } else if (l.elementType === k || "object" === typeof k && null !== k && k.$$typeof === Ha && uh(k) === l.type) { + c(a, l.sibling); + d = e(l, f.props); + d.ref = sh(a, l, f); + d.return = a; + a = d; + break a; + } + c(a, l); + break; + } else b(a, l); + l = l.sibling; + } + f.type === ya ? (d = Ah(f.props.children, a.mode, h, f.key), d.return = a, a = d) : (h = yh(f.type, f.key, f.props, null, a.mode, h), h.ref = sh(a, d, f), h.return = a, a = h); + } + return g(a); + case wa: + a: { + for (l = f.key; null !== d;) { + if (d.key === l) { + if (4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation) { + c(a, d.sibling); + d = e(d, f.children || []); + d.return = a; + a = d; + break a; + } else { + c(a, d); + break; + } + } else b(a, d); + d = d.sibling; + } + d = zh(f, a.mode, h); + d.return = a; + a = d; + } + return g(a); + case Ha: + return l = f._init, J(a, d, l(f._payload), h); + } + if (eb(f)) return n(a, d, f, h); + if (Ka(f)) return t(a, d, f, h); + th(a, f); + } + return "string" === typeof f && "" !== f || "number" === typeof f ? (f = "" + f, null !== d && 6 === d.tag ? (c(a, d.sibling), d = e(d, f), d.return = a, a = d) : (c(a, d), d = xh(f, a.mode, h), d.return = a, a = d), g(a)) : c(a, d); + } + return J; +} +var Bh = vh(!0), + Ch = vh(!1), + Dh = {}, + Eh = Uf(Dh), + Fh = Uf(Dh), + Gh = Uf(Dh); +function Hh(a) { + if (a === Dh) throw Error(p(174)); + return a; +} +function Ih(a, b) { + G(Gh, b); + G(Fh, a); + G(Eh, Dh); + a = b.nodeType; + switch (a) { + case 9: + case 11: + b = (b = b.documentElement) ? b.namespaceURI : lb(null, ""); + break; + default: + a = 8 === a ? b.parentNode : b, b = a.namespaceURI || null, a = a.tagName, b = lb(b, a); + } + E(Eh); + G(Eh, b); +} +function Jh() { + E(Eh); + E(Fh); + E(Gh); +} +function Kh(a) { + Hh(Gh.current); + var b = Hh(Eh.current); + var c = lb(b, a.type); + b !== c && (G(Fh, a), G(Eh, c)); +} +function Lh(a) { + Fh.current === a && (E(Eh), E(Fh)); +} +var M = Uf(0); +function Mh(a) { + for (var b = a; null !== b;) { + if (13 === b.tag) { + var c = b.memoizedState; + if (null !== c && (c = c.dehydrated, null === c || "$?" === c.data || "$!" === c.data)) return b; + } else if (19 === b.tag && void 0 !== b.memoizedProps.revealOrder) { + if (0 !== (b.flags & 128)) return b; + } else if (null !== b.child) { + b.child.return = b; + b = b.child; + continue; + } + if (b === a) break; + for (; null === b.sibling;) { + if (null === b.return || b.return === a) return null; + b = b.return; + } + b.sibling.return = b.return; + b = b.sibling; + } + return null; +} +var Nh = []; +function Oh() { + for (var a = 0; a < Nh.length; a++) Nh[a]._workInProgressVersionPrimary = null; + Nh.length = 0; +} +var Ph = ua.ReactCurrentDispatcher, + Qh = ua.ReactCurrentBatchConfig, + Rh = 0, + N = null, + O = null, + P = null, + Sh = !1, + Th = !1, + Uh = 0, + Vh = 0; +function Q() { + throw Error(p(321)); +} +function Wh(a, b) { + if (null === b) return !1; + for (var c = 0; c < b.length && c < a.length; c++) if (!He(a[c], b[c])) return !1; + return !0; +} +function Xh(a, b, c, d, e, f) { + Rh = f; + N = b; + b.memoizedState = null; + b.updateQueue = null; + b.lanes = 0; + Ph.current = null === a || null === a.memoizedState ? Yh : Zh; + a = c(d, e); + if (Th) { + f = 0; + do { + Th = !1; + Uh = 0; + if (25 <= f) throw Error(p(301)); + f += 1; + P = O = null; + b.updateQueue = null; + Ph.current = $h; + a = c(d, e); + } while (Th); + } + Ph.current = ai; + b = null !== O && null !== O.next; + Rh = 0; + P = O = N = null; + Sh = !1; + if (b) throw Error(p(300)); + return a; +} +function bi() { + var a = 0 !== Uh; + Uh = 0; + return a; +} +function ci() { + var a = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, + next: null + }; + null === P ? N.memoizedState = P = a : P = P.next = a; + return P; +} +function di() { + if (null === O) { + var a = N.alternate; + a = null !== a ? a.memoizedState : null; + } else a = O.next; + var b = null === P ? N.memoizedState : P.next; + if (null !== b) P = b, O = a;else { + if (null === a) throw Error(p(310)); + O = a; + a = { + memoizedState: O.memoizedState, + baseState: O.baseState, + baseQueue: O.baseQueue, + queue: O.queue, + next: null + }; + null === P ? N.memoizedState = P = a : P = P.next = a; + } + return P; +} +function ei(a, b) { + return "function" === typeof b ? b(a) : b; +} +function fi(a) { + var b = di(), + c = b.queue; + if (null === c) throw Error(p(311)); + c.lastRenderedReducer = a; + var d = O, + e = d.baseQueue, + f = c.pending; + if (null !== f) { + if (null !== e) { + var g = e.next; + e.next = f.next; + f.next = g; + } + d.baseQueue = e = f; + c.pending = null; + } + if (null !== e) { + f = e.next; + d = d.baseState; + var h = g = null, + k = null, + l = f; + do { + var m = l.lane; + if ((Rh & m) === m) null !== k && (k = k.next = { + lane: 0, + action: l.action, + hasEagerState: l.hasEagerState, + eagerState: l.eagerState, + next: null + }), d = l.hasEagerState ? l.eagerState : a(d, l.action);else { + var q = { + lane: m, + action: l.action, + hasEagerState: l.hasEagerState, + eagerState: l.eagerState, + next: null + }; + null === k ? (h = k = q, g = d) : k = k.next = q; + N.lanes |= m; + hh |= m; + } + l = l.next; + } while (null !== l && l !== f); + null === k ? g = d : k.next = h; + He(d, b.memoizedState) || (Ug = !0); + b.memoizedState = d; + b.baseState = g; + b.baseQueue = k; + c.lastRenderedState = d; + } + a = c.interleaved; + if (null !== a) { + e = a; + do f = e.lane, N.lanes |= f, hh |= f, e = e.next; while (e !== a); + } else null === e && (c.lanes = 0); + return [b.memoizedState, c.dispatch]; +} +function gi(a) { + var b = di(), + c = b.queue; + if (null === c) throw Error(p(311)); + c.lastRenderedReducer = a; + var d = c.dispatch, + e = c.pending, + f = b.memoizedState; + if (null !== e) { + c.pending = null; + var g = e = e.next; + do f = a(f, g.action), g = g.next; while (g !== e); + He(f, b.memoizedState) || (Ug = !0); + b.memoizedState = f; + null === b.baseQueue && (b.baseState = f); + c.lastRenderedState = f; + } + return [f, d]; +} +function hi() {} +function ii(a, b) { + var c = N, + d = di(), + e = b(), + f = !He(d.memoizedState, e); + f && (d.memoizedState = e, Ug = !0); + d = d.queue; + ji(ki.bind(null, c, d, a), [a]); + if (d.getSnapshot !== b || f || null !== P && P.memoizedState.tag & 1) { + c.flags |= 2048; + li(9, mi.bind(null, c, d, e, b), void 0, null); + if (null === R) throw Error(p(349)); + 0 !== (Rh & 30) || ni(c, b, e); + } + return e; +} +function ni(a, b, c) { + a.flags |= 16384; + a = { + getSnapshot: b, + value: c + }; + b = N.updateQueue; + null === b ? (b = { + lastEffect: null, + stores: null + }, N.updateQueue = b, b.stores = [a]) : (c = b.stores, null === c ? b.stores = [a] : c.push(a)); +} +function mi(a, b, c, d) { + b.value = c; + b.getSnapshot = d; + oi(b) && pi(a); +} +function ki(a, b, c) { + return c(function () { + oi(b) && pi(a); + }); +} +function oi(a) { + var b = a.getSnapshot; + a = a.value; + try { + var c = b(); + return !He(a, c); + } catch (d) { + return !0; + } +} +function pi(a) { + var b = Zg(a, 1); + null !== b && mh(b, a, 1, -1); +} +function qi(a) { + var b = ci(); + "function" === typeof a && (a = a()); + b.memoizedState = b.baseState = a; + a = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: ei, + lastRenderedState: a + }; + b.queue = a; + a = a.dispatch = ri.bind(null, N, a); + return [b.memoizedState, a]; +} +function li(a, b, c, d) { + a = { + tag: a, + create: b, + destroy: c, + deps: d, + next: null + }; + b = N.updateQueue; + null === b ? (b = { + lastEffect: null, + stores: null + }, N.updateQueue = b, b.lastEffect = a.next = a) : (c = b.lastEffect, null === c ? b.lastEffect = a.next = a : (d = c.next, c.next = a, a.next = d, b.lastEffect = a)); + return a; +} +function si() { + return di().memoizedState; +} +function ti(a, b, c, d) { + var e = ci(); + N.flags |= a; + e.memoizedState = li(1 | b, c, void 0, void 0 === d ? null : d); +} +function ui(a, b, c, d) { + var e = di(); + d = void 0 === d ? null : d; + var f = void 0; + if (null !== O) { + var g = O.memoizedState; + f = g.destroy; + if (null !== d && Wh(d, g.deps)) { + e.memoizedState = li(b, c, f, d); + return; + } + } + N.flags |= a; + e.memoizedState = li(1 | b, c, f, d); +} +function vi(a, b) { + return ti(8390656, 8, a, b); +} +function ji(a, b) { + return ui(2048, 8, a, b); +} +function wi(a, b) { + return ui(4, 2, a, b); +} +function xi(a, b) { + return ui(4, 4, a, b); +} +function yi(a, b) { + if ("function" === typeof b) return a = a(), b(a), function () { + b(null); + }; + if (null !== b && void 0 !== b) return a = a(), b.current = a, function () { + b.current = null; + }; +} +function zi(a, b, c) { + c = null !== c && void 0 !== c ? c.concat([a]) : null; + return ui(4, 4, yi.bind(null, b, a), c); +} +function Ai() {} +function Bi(a, b) { + var c = di(); + b = void 0 === b ? null : b; + var d = c.memoizedState; + if (null !== d && null !== b && Wh(b, d[1])) return d[0]; + c.memoizedState = [a, b]; + return a; +} +function Ci(a, b) { + var c = di(); + b = void 0 === b ? null : b; + var d = c.memoizedState; + if (null !== d && null !== b && Wh(b, d[1])) return d[0]; + a = a(); + c.memoizedState = [a, b]; + return a; +} +function Di(a, b, c) { + if (0 === (Rh & 21)) return a.baseState && (a.baseState = !1, Ug = !0), a.memoizedState = c; + He(c, b) || (c = yc(), N.lanes |= c, hh |= c, a.baseState = !0); + return b; +} +function Ei(a, b) { + var c = C; + C = 0 !== c && 4 > c ? c : 4; + a(!0); + var d = Qh.transition; + Qh.transition = {}; + try { + a(!1), b(); + } finally { + C = c, Qh.transition = d; + } +} +function Fi() { + return di().memoizedState; +} +function Gi(a, b, c) { + var d = lh(a); + c = { + lane: d, + action: c, + hasEagerState: !1, + eagerState: null, + next: null + }; + if (Hi(a)) Ii(b, c);else if (c = Yg(a, b, c, d), null !== c) { + var e = L(); + mh(c, a, d, e); + Ji(c, b, d); + } +} +function ri(a, b, c) { + var d = lh(a), + e = { + lane: d, + action: c, + hasEagerState: !1, + eagerState: null, + next: null + }; + if (Hi(a)) Ii(b, e);else { + var f = a.alternate; + if (0 === a.lanes && (null === f || 0 === f.lanes) && (f = b.lastRenderedReducer, null !== f)) try { + var g = b.lastRenderedState, + h = f(g, c); + e.hasEagerState = !0; + e.eagerState = h; + if (He(h, g)) { + var k = b.interleaved; + null === k ? (e.next = e, Xg(b)) : (e.next = k.next, k.next = e); + b.interleaved = e; + return; + } + } catch (l) {} finally {} + c = Yg(a, b, e, d); + null !== c && (e = L(), mh(c, a, d, e), Ji(c, b, d)); + } +} +function Hi(a) { + var b = a.alternate; + return a === N || null !== b && b === N; +} +function Ii(a, b) { + Th = Sh = !0; + var c = a.pending; + null === c ? b.next = b : (b.next = c.next, c.next = b); + a.pending = b; +} +function Ji(a, b, c) { + if (0 !== (c & 4194240)) { + var d = b.lanes; + d &= a.pendingLanes; + c |= d; + b.lanes = c; + Cc(a, c); + } +} +var ai = { + readContext: Vg, + useCallback: Q, + useContext: Q, + useEffect: Q, + useImperativeHandle: Q, + useInsertionEffect: Q, + useLayoutEffect: Q, + useMemo: Q, + useReducer: Q, + useRef: Q, + useState: Q, + useDebugValue: Q, + useDeferredValue: Q, + useTransition: Q, + useMutableSource: Q, + useSyncExternalStore: Q, + useId: Q, + unstable_isNewReconciler: !1 + }, + Yh = { + readContext: Vg, + useCallback: function useCallback(a, b) { + ci().memoizedState = [a, void 0 === b ? null : b]; + return a; + }, + useContext: Vg, + useEffect: vi, + useImperativeHandle: function useImperativeHandle(a, b, c) { + c = null !== c && void 0 !== c ? c.concat([a]) : null; + return ti(4194308, 4, yi.bind(null, b, a), c); + }, + useLayoutEffect: function useLayoutEffect(a, b) { + return ti(4194308, 4, a, b); + }, + useInsertionEffect: function useInsertionEffect(a, b) { + return ti(4, 2, a, b); + }, + useMemo: function useMemo(a, b) { + var c = ci(); + b = void 0 === b ? null : b; + a = a(); + c.memoizedState = [a, b]; + return a; + }, + useReducer: function useReducer(a, b, c) { + var d = ci(); + b = void 0 !== c ? c(b) : b; + d.memoizedState = d.baseState = b; + a = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: a, + lastRenderedState: b + }; + d.queue = a; + a = a.dispatch = Gi.bind(null, N, a); + return [d.memoizedState, a]; + }, + useRef: function useRef(a) { + var b = ci(); + a = { + current: a + }; + return b.memoizedState = a; + }, + useState: qi, + useDebugValue: Ai, + useDeferredValue: function useDeferredValue(a) { + return ci().memoizedState = a; + }, + useTransition: function useTransition() { + var a = qi(!1), + b = a[0]; + a = Ei.bind(null, a[1]); + ci().memoizedState = a; + return [b, a]; + }, + useMutableSource: function useMutableSource() {}, + useSyncExternalStore: function useSyncExternalStore(a, b, c) { + var d = N, + e = ci(); + if (I) { + if (void 0 === c) throw Error(p(407)); + c = c(); + } else { + c = b(); + if (null === R) throw Error(p(349)); + 0 !== (Rh & 30) || ni(d, b, c); + } + e.memoizedState = c; + var f = { + value: c, + getSnapshot: b + }; + e.queue = f; + vi(ki.bind(null, d, f, a), [a]); + d.flags |= 2048; + li(9, mi.bind(null, d, f, c, b), void 0, null); + return c; + }, + useId: function useId() { + var a = ci(), + b = R.identifierPrefix; + if (I) { + var c = sg; + var d = rg; + c = (d & ~(1 << 32 - oc(d) - 1)).toString(32) + c; + b = ":" + b + "R" + c; + c = Uh++; + 0 < c && (b += "H" + c.toString(32)); + b += ":"; + } else c = Vh++, b = ":" + b + "r" + c.toString(32) + ":"; + return a.memoizedState = b; + }, + unstable_isNewReconciler: !1 + }, + Zh = { + readContext: Vg, + useCallback: Bi, + useContext: Vg, + useEffect: ji, + useImperativeHandle: zi, + useInsertionEffect: wi, + useLayoutEffect: xi, + useMemo: Ci, + useReducer: fi, + useRef: si, + useState: function useState() { + return fi(ei); + }, + useDebugValue: Ai, + useDeferredValue: function useDeferredValue(a) { + var b = di(); + return Di(b, O.memoizedState, a); + }, + useTransition: function useTransition() { + var a = fi(ei)[0], + b = di().memoizedState; + return [a, b]; + }, + useMutableSource: hi, + useSyncExternalStore: ii, + useId: Fi, + unstable_isNewReconciler: !1 + }, + $h = { + readContext: Vg, + useCallback: Bi, + useContext: Vg, + useEffect: ji, + useImperativeHandle: zi, + useInsertionEffect: wi, + useLayoutEffect: xi, + useMemo: Ci, + useReducer: gi, + useRef: si, + useState: function useState() { + return gi(ei); + }, + useDebugValue: Ai, + useDeferredValue: function useDeferredValue(a) { + var b = di(); + return null === O ? b.memoizedState = a : Di(b, O.memoizedState, a); + }, + useTransition: function useTransition() { + var a = gi(ei)[0], + b = di().memoizedState; + return [a, b]; + }, + useMutableSource: hi, + useSyncExternalStore: ii, + useId: Fi, + unstable_isNewReconciler: !1 + }; +function Ki(a, b) { + try { + var c = "", + d = b; + do c += Pa(d), d = d.return; while (d); + var e = c; + } catch (f) { + e = "\nError generating stack: " + f.message + "\n" + f.stack; + } + return { + value: a, + source: b, + stack: e, + digest: null + }; +} +function Li(a, b, c) { + return { + value: a, + source: null, + stack: null != c ? c : null, + digest: null != b ? b : null + }; +} +function Mi(a, b) { + try { + console.error(b.value); + } catch (c) { + setTimeout(function () { + throw c; + }); + } +} +var Ni = "function" === typeof WeakMap ? WeakMap : Map; +function Oi(a, b, c) { + c = ch(-1, c); + c.tag = 3; + c.payload = { + element: null + }; + var d = b.value; + c.callback = function () { + Pi || (Pi = !0, Qi = d); + Mi(a, b); + }; + return c; +} +function Ri(a, b, c) { + c = ch(-1, c); + c.tag = 3; + var d = a.type.getDerivedStateFromError; + if ("function" === typeof d) { + var e = b.value; + c.payload = function () { + return d(e); + }; + c.callback = function () { + Mi(a, b); + }; + } + var f = a.stateNode; + null !== f && "function" === typeof f.componentDidCatch && (c.callback = function () { + Mi(a, b); + "function" !== typeof d && (null === Si ? Si = new Set([this]) : Si.add(this)); + var c = b.stack; + this.componentDidCatch(b.value, { + componentStack: null !== c ? c : "" + }); + }); + return c; +} +function Ti(a, b, c) { + var d = a.pingCache; + if (null === d) { + d = a.pingCache = new Ni(); + var e = new Set(); + d.set(b, e); + } else e = d.get(b), void 0 === e && (e = new Set(), d.set(b, e)); + e.has(c) || (e.add(c), a = Ui.bind(null, a, b, c), b.then(a, a)); +} +function Vi(a) { + do { + var b; + if (b = 13 === a.tag) b = a.memoizedState, b = null !== b ? null !== b.dehydrated ? !0 : !1 : !0; + if (b) return a; + a = a.return; + } while (null !== a); + return null; +} +function Wi(a, b, c, d, e) { + if (0 === (a.mode & 1)) return a === b ? a.flags |= 65536 : (a.flags |= 128, c.flags |= 131072, c.flags &= -52805, 1 === c.tag && (null === c.alternate ? c.tag = 17 : (b = ch(-1, 1), b.tag = 2, dh(c, b, 1))), c.lanes |= 1), a; + a.flags |= 65536; + a.lanes = e; + return a; +} +var Xi = ua.ReactCurrentOwner, + Ug = !1; +function Yi(a, b, c, d) { + b.child = null === a ? Ch(b, null, c, d) : Bh(b, a.child, c, d); +} +function Zi(a, b, c, d, e) { + c = c.render; + var f = b.ref; + Tg(b, e); + d = Xh(a, b, c, d, f, e); + c = bi(); + if (null !== a && !Ug) return b.updateQueue = a.updateQueue, b.flags &= -2053, a.lanes &= ~e, $i(a, b, e); + I && c && vg(b); + b.flags |= 1; + Yi(a, b, d, e); + return b.child; +} +function aj(a, b, c, d, e) { + if (null === a) { + var f = c.type; + if ("function" === typeof f && !bj(f) && void 0 === f.defaultProps && null === c.compare && void 0 === c.defaultProps) return b.tag = 15, b.type = f, cj(a, b, f, d, e); + a = yh(c.type, null, d, b, b.mode, e); + a.ref = b.ref; + a.return = b; + return b.child = a; + } + f = a.child; + if (0 === (a.lanes & e)) { + var g = f.memoizedProps; + c = c.compare; + c = null !== c ? c : Ie; + if (c(g, d) && a.ref === b.ref) return $i(a, b, e); + } + b.flags |= 1; + a = wh(f, d); + a.ref = b.ref; + a.return = b; + return b.child = a; +} +function cj(a, b, c, d, e) { + if (null !== a) { + var f = a.memoizedProps; + if (Ie(f, d) && a.ref === b.ref) if (Ug = !1, b.pendingProps = d = f, 0 !== (a.lanes & e)) 0 !== (a.flags & 131072) && (Ug = !0);else return b.lanes = a.lanes, $i(a, b, e); + } + return dj(a, b, c, d, e); +} +function ej(a, b, c) { + var d = b.pendingProps, + e = d.children, + f = null !== a ? a.memoizedState : null; + if ("hidden" === d.mode) { + if (0 === (b.mode & 1)) b.memoizedState = { + baseLanes: 0, + cachePool: null, + transitions: null + }, G(fj, gj), gj |= c;else { + if (0 === (c & 1073741824)) return a = null !== f ? f.baseLanes | c : c, b.lanes = b.childLanes = 1073741824, b.memoizedState = { + baseLanes: a, + cachePool: null, + transitions: null + }, b.updateQueue = null, G(fj, gj), gj |= a, null; + b.memoizedState = { + baseLanes: 0, + cachePool: null, + transitions: null + }; + d = null !== f ? f.baseLanes : c; + G(fj, gj); + gj |= d; + } + } else null !== f ? (d = f.baseLanes | c, b.memoizedState = null) : d = c, G(fj, gj), gj |= d; + Yi(a, b, e, c); + return b.child; +} +function hj(a, b) { + var c = b.ref; + if (null === a && null !== c || null !== a && a.ref !== c) b.flags |= 512, b.flags |= 2097152; +} +function dj(a, b, c, d, e) { + var f = Zf(c) ? Xf : H.current; + f = Yf(b, f); + Tg(b, e); + c = Xh(a, b, c, d, f, e); + d = bi(); + if (null !== a && !Ug) return b.updateQueue = a.updateQueue, b.flags &= -2053, a.lanes &= ~e, $i(a, b, e); + I && d && vg(b); + b.flags |= 1; + Yi(a, b, c, e); + return b.child; +} +function ij(a, b, c, d, e) { + if (Zf(c)) { + var f = !0; + cg(b); + } else f = !1; + Tg(b, e); + if (null === b.stateNode) jj(a, b), ph(b, c, d), rh(b, c, d, e), d = !0;else if (null === a) { + var g = b.stateNode, + h = b.memoizedProps; + g.props = h; + var k = g.context, + l = c.contextType; + "object" === typeof l && null !== l ? l = Vg(l) : (l = Zf(c) ? Xf : H.current, l = Yf(b, l)); + var m = c.getDerivedStateFromProps, + q = "function" === typeof m || "function" === typeof g.getSnapshotBeforeUpdate; + q || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && qh(b, g, d, l); + $g = !1; + var r = b.memoizedState; + g.state = r; + gh(b, d, g, e); + k = b.memoizedState; + h !== d || r !== k || Wf.current || $g ? ("function" === typeof m && (kh(b, c, m, d), k = b.memoizedState), (h = $g || oh(b, c, h, d, r, k, l)) ? (q || "function" !== typeof g.UNSAFE_componentWillMount && "function" !== typeof g.componentWillMount || ("function" === typeof g.componentWillMount && g.componentWillMount(), "function" === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), "function" === typeof g.componentDidMount && (b.flags |= 4194308)) : ("function" === typeof g.componentDidMount && (b.flags |= 4194308), b.memoizedProps = d, b.memoizedState = k), g.props = d, g.state = k, g.context = l, d = h) : ("function" === typeof g.componentDidMount && (b.flags |= 4194308), d = !1); + } else { + g = b.stateNode; + bh(a, b); + h = b.memoizedProps; + l = b.type === b.elementType ? h : Lg(b.type, h); + g.props = l; + q = b.pendingProps; + r = g.context; + k = c.contextType; + "object" === typeof k && null !== k ? k = Vg(k) : (k = Zf(c) ? Xf : H.current, k = Yf(b, k)); + var y = c.getDerivedStateFromProps; + (m = "function" === typeof y || "function" === typeof g.getSnapshotBeforeUpdate) || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== q || r !== k) && qh(b, g, d, k); + $g = !1; + r = b.memoizedState; + g.state = r; + gh(b, d, g, e); + var n = b.memoizedState; + h !== q || r !== n || Wf.current || $g ? ("function" === typeof y && (kh(b, c, y, d), n = b.memoizedState), (l = $g || oh(b, c, l, d, r, n, k) || !1) ? (m || "function" !== typeof g.UNSAFE_componentWillUpdate && "function" !== typeof g.componentWillUpdate || ("function" === typeof g.componentWillUpdate && g.componentWillUpdate(d, n, k), "function" === typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, n, k)), "function" === typeof g.componentDidUpdate && (b.flags |= 4), "function" === typeof g.getSnapshotBeforeUpdate && (b.flags |= 1024)) : ("function" !== typeof g.componentDidUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 1024), b.memoizedProps = d, b.memoizedState = n), g.props = d, g.state = n, g.context = k, d = l) : ("function" !== typeof g.componentDidUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 1024), d = !1); + } + return kj(a, b, c, d, f, e); +} +function kj(a, b, c, d, e, f) { + hj(a, b); + var g = 0 !== (b.flags & 128); + if (!d && !g) return e && dg(b, c, !1), $i(a, b, f); + d = b.stateNode; + Xi.current = b; + var h = g && "function" !== typeof c.getDerivedStateFromError ? null : d.render(); + b.flags |= 1; + null !== a && g ? (b.child = Bh(b, a.child, null, f), b.child = Bh(b, null, h, f)) : Yi(a, b, h, f); + b.memoizedState = d.state; + e && dg(b, c, !0); + return b.child; +} +function lj(a) { + var b = a.stateNode; + b.pendingContext ? ag(a, b.pendingContext, b.pendingContext !== b.context) : b.context && ag(a, b.context, !1); + Ih(a, b.containerInfo); +} +function mj(a, b, c, d, e) { + Ig(); + Jg(e); + b.flags |= 256; + Yi(a, b, c, d); + return b.child; +} +var nj = { + dehydrated: null, + treeContext: null, + retryLane: 0 +}; +function oj(a) { + return { + baseLanes: a, + cachePool: null, + transitions: null + }; +} +function pj(a, b, c) { + var d = b.pendingProps, + e = M.current, + f = !1, + g = 0 !== (b.flags & 128), + h; + (h = g) || (h = null !== a && null === a.memoizedState ? !1 : 0 !== (e & 2)); + if (h) f = !0, b.flags &= -129;else if (null === a || null !== a.memoizedState) e |= 1; + G(M, e & 1); + if (null === a) { + Eg(b); + a = b.memoizedState; + if (null !== a && (a = a.dehydrated, null !== a)) return 0 === (b.mode & 1) ? b.lanes = 1 : "$!" === a.data ? b.lanes = 8 : b.lanes = 1073741824, null; + g = d.children; + a = d.fallback; + return f ? (d = b.mode, f = b.child, g = { + mode: "hidden", + children: g + }, 0 === (d & 1) && null !== f ? (f.childLanes = 0, f.pendingProps = g) : f = qj(g, d, 0, null), a = Ah(a, d, c, null), f.return = b, a.return = b, f.sibling = a, b.child = f, b.child.memoizedState = oj(c), b.memoizedState = nj, a) : rj(b, g); + } + e = a.memoizedState; + if (null !== e && (h = e.dehydrated, null !== h)) return sj(a, b, g, d, h, e, c); + if (f) { + f = d.fallback; + g = b.mode; + e = a.child; + h = e.sibling; + var k = { + mode: "hidden", + children: d.children + }; + 0 === (g & 1) && b.child !== e ? (d = b.child, d.childLanes = 0, d.pendingProps = k, b.deletions = null) : (d = wh(e, k), d.subtreeFlags = e.subtreeFlags & 14680064); + null !== h ? f = wh(h, f) : (f = Ah(f, g, c, null), f.flags |= 2); + f.return = b; + d.return = b; + d.sibling = f; + b.child = d; + d = f; + f = b.child; + g = a.child.memoizedState; + g = null === g ? oj(c) : { + baseLanes: g.baseLanes | c, + cachePool: null, + transitions: g.transitions + }; + f.memoizedState = g; + f.childLanes = a.childLanes & ~c; + b.memoizedState = nj; + return d; + } + f = a.child; + a = f.sibling; + d = wh(f, { + mode: "visible", + children: d.children + }); + 0 === (b.mode & 1) && (d.lanes = c); + d.return = b; + d.sibling = null; + null !== a && (c = b.deletions, null === c ? (b.deletions = [a], b.flags |= 16) : c.push(a)); + b.child = d; + b.memoizedState = null; + return d; +} +function rj(a, b) { + b = qj({ + mode: "visible", + children: b + }, a.mode, 0, null); + b.return = a; + return a.child = b; +} +function tj(a, b, c, d) { + null !== d && Jg(d); + Bh(b, a.child, null, c); + a = rj(b, b.pendingProps.children); + a.flags |= 2; + b.memoizedState = null; + return a; +} +function sj(a, b, c, d, e, f, g) { + if (c) { + if (b.flags & 256) return b.flags &= -257, d = Li(Error(p(422))), tj(a, b, g, d); + if (null !== b.memoizedState) return b.child = a.child, b.flags |= 128, null; + f = d.fallback; + e = b.mode; + d = qj({ + mode: "visible", + children: d.children + }, e, 0, null); + f = Ah(f, e, g, null); + f.flags |= 2; + d.return = b; + f.return = b; + d.sibling = f; + b.child = d; + 0 !== (b.mode & 1) && Bh(b, a.child, null, g); + b.child.memoizedState = oj(g); + b.memoizedState = nj; + return f; + } + if (0 === (b.mode & 1)) return tj(a, b, g, null); + if ("$!" === e.data) { + d = e.nextSibling && e.nextSibling.dataset; + if (d) var h = d.dgst; + d = h; + f = Error(p(419)); + d = Li(f, d, void 0); + return tj(a, b, g, d); + } + h = 0 !== (g & a.childLanes); + if (Ug || h) { + d = R; + if (null !== d) { + switch (g & -g) { + case 4: + e = 2; + break; + case 16: + e = 8; + break; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + e = 32; + break; + case 536870912: + e = 268435456; + break; + default: + e = 0; + } + e = 0 !== (e & (d.suspendedLanes | g)) ? 0 : e; + 0 !== e && e !== f.retryLane && (f.retryLane = e, Zg(a, e), mh(d, a, e, -1)); + } + uj(); + d = Li(Error(p(421))); + return tj(a, b, g, d); + } + if ("$?" === e.data) return b.flags |= 128, b.child = a.child, b = vj.bind(null, a), e._reactRetry = b, null; + a = f.treeContext; + yg = Lf(e.nextSibling); + xg = b; + I = !0; + zg = null; + null !== a && (og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, rg = a.id, sg = a.overflow, qg = b); + b = rj(b, d.children); + b.flags |= 4096; + return b; +} +function wj(a, b, c) { + a.lanes |= b; + var d = a.alternate; + null !== d && (d.lanes |= b); + Sg(a.return, b, c); +} +function xj(a, b, c, d, e) { + var f = a.memoizedState; + null === f ? a.memoizedState = { + isBackwards: b, + rendering: null, + renderingStartTime: 0, + last: d, + tail: c, + tailMode: e + } : (f.isBackwards = b, f.rendering = null, f.renderingStartTime = 0, f.last = d, f.tail = c, f.tailMode = e); +} +function yj(a, b, c) { + var d = b.pendingProps, + e = d.revealOrder, + f = d.tail; + Yi(a, b, d.children, c); + d = M.current; + if (0 !== (d & 2)) d = d & 1 | 2, b.flags |= 128;else { + if (null !== a && 0 !== (a.flags & 128)) a: for (a = b.child; null !== a;) { + if (13 === a.tag) null !== a.memoizedState && wj(a, c, b);else if (19 === a.tag) wj(a, c, b);else if (null !== a.child) { + a.child.return = a; + a = a.child; + continue; + } + if (a === b) break a; + for (; null === a.sibling;) { + if (null === a.return || a.return === b) break a; + a = a.return; + } + a.sibling.return = a.return; + a = a.sibling; + } + d &= 1; + } + G(M, d); + if (0 === (b.mode & 1)) b.memoizedState = null;else switch (e) { + case "forwards": + c = b.child; + for (e = null; null !== c;) a = c.alternate, null !== a && null === Mh(a) && (e = c), c = c.sibling; + c = e; + null === c ? (e = b.child, b.child = null) : (e = c.sibling, c.sibling = null); + xj(b, !1, e, c, f); + break; + case "backwards": + c = null; + e = b.child; + for (b.child = null; null !== e;) { + a = e.alternate; + if (null !== a && null === Mh(a)) { + b.child = e; + break; + } + a = e.sibling; + e.sibling = c; + c = e; + e = a; + } + xj(b, !0, c, null, f); + break; + case "together": + xj(b, !1, null, null, void 0); + break; + default: + b.memoizedState = null; + } + return b.child; +} +function jj(a, b) { + 0 === (b.mode & 1) && null !== a && (a.alternate = null, b.alternate = null, b.flags |= 2); +} +function $i(a, b, c) { + null !== a && (b.dependencies = a.dependencies); + hh |= b.lanes; + if (0 === (c & b.childLanes)) return null; + if (null !== a && b.child !== a.child) throw Error(p(153)); + if (null !== b.child) { + a = b.child; + c = wh(a, a.pendingProps); + b.child = c; + for (c.return = b; null !== a.sibling;) a = a.sibling, c = c.sibling = wh(a, a.pendingProps), c.return = b; + c.sibling = null; + } + return b.child; +} +function zj(a, b, c) { + switch (b.tag) { + case 3: + lj(b); + Ig(); + break; + case 5: + Kh(b); + break; + case 1: + Zf(b.type) && cg(b); + break; + case 4: + Ih(b, b.stateNode.containerInfo); + break; + case 10: + var d = b.type._context, + e = b.memoizedProps.value; + G(Mg, d._currentValue); + d._currentValue = e; + break; + case 13: + d = b.memoizedState; + if (null !== d) { + if (null !== d.dehydrated) return G(M, M.current & 1), b.flags |= 128, null; + if (0 !== (c & b.child.childLanes)) return pj(a, b, c); + G(M, M.current & 1); + a = $i(a, b, c); + return null !== a ? a.sibling : null; + } + G(M, M.current & 1); + break; + case 19: + d = 0 !== (c & b.childLanes); + if (0 !== (a.flags & 128)) { + if (d) return yj(a, b, c); + b.flags |= 128; + } + e = b.memoizedState; + null !== e && (e.rendering = null, e.tail = null, e.lastEffect = null); + G(M, M.current); + if (d) break;else return null; + case 22: + case 23: + return b.lanes = 0, ej(a, b, c); + } + return $i(a, b, c); +} +var Aj, Bj, Cj, Dj; +Aj = function Aj(a, b) { + for (var c = b.child; null !== c;) { + if (5 === c.tag || 6 === c.tag) a.appendChild(c.stateNode);else if (4 !== c.tag && null !== c.child) { + c.child.return = c; + c = c.child; + continue; + } + if (c === b) break; + for (; null === c.sibling;) { + if (null === c.return || c.return === b) return; + c = c.return; + } + c.sibling.return = c.return; + c = c.sibling; + } +}; +Bj = function Bj() {}; +Cj = function Cj(a, b, c, d) { + var e = a.memoizedProps; + if (e !== d) { + a = b.stateNode; + Hh(Eh.current); + var f = null; + switch (c) { + case "input": + e = Ya(a, e); + d = Ya(a, d); + f = []; + break; + case "select": + e = A({}, e, { + value: void 0 + }); + d = A({}, d, { + value: void 0 + }); + f = []; + break; + case "textarea": + e = gb(a, e); + d = gb(a, d); + f = []; + break; + default: + "function" !== typeof e.onClick && "function" === typeof d.onClick && (a.onclick = Bf); + } + ub(c, d); + var g; + c = null; + for (l in e) if (!d.hasOwnProperty(l) && e.hasOwnProperty(l) && null != e[l]) if ("style" === l) { + var h = e[l]; + for (g in h) h.hasOwnProperty(g) && (c || (c = {}), c[g] = ""); + } else "dangerouslySetInnerHTML" !== l && "children" !== l && "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && "autoFocus" !== l && (ea.hasOwnProperty(l) ? f || (f = []) : (f = f || []).push(l, null)); + for (l in d) { + var k = d[l]; + h = null != e ? e[l] : void 0; + if (d.hasOwnProperty(l) && k !== h && (null != k || null != h)) if ("style" === l) { + if (h) { + for (g in h) !h.hasOwnProperty(g) || k && k.hasOwnProperty(g) || (c || (c = {}), c[g] = ""); + for (g in k) k.hasOwnProperty(g) && h[g] !== k[g] && (c || (c = {}), c[g] = k[g]); + } else c || (f || (f = []), f.push(l, c)), c = k; + } else "dangerouslySetInnerHTML" === l ? (k = k ? k.__html : void 0, h = h ? h.__html : void 0, null != k && h !== k && (f = f || []).push(l, k)) : "children" === l ? "string" !== typeof k && "number" !== typeof k || (f = f || []).push(l, "" + k) : "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && (ea.hasOwnProperty(l) ? (null != k && "onScroll" === l && D("scroll", a), f || h === k || (f = [])) : (f = f || []).push(l, k)); + } + c && (f = f || []).push("style", c); + var l = f; + if (b.updateQueue = l) b.flags |= 4; + } +}; +Dj = function Dj(a, b, c, d) { + c !== d && (b.flags |= 4); +}; +function Ej(a, b) { + if (!I) switch (a.tailMode) { + case "hidden": + b = a.tail; + for (var c = null; null !== b;) null !== b.alternate && (c = b), b = b.sibling; + null === c ? a.tail = null : c.sibling = null; + break; + case "collapsed": + c = a.tail; + for (var d = null; null !== c;) null !== c.alternate && (d = c), c = c.sibling; + null === d ? b || null === a.tail ? a.tail = null : a.tail.sibling = null : d.sibling = null; + } +} +function S(a) { + var b = null !== a.alternate && a.alternate.child === a.child, + c = 0, + d = 0; + if (b) for (var e = a.child; null !== e;) c |= e.lanes | e.childLanes, d |= e.subtreeFlags & 14680064, d |= e.flags & 14680064, e.return = a, e = e.sibling;else for (e = a.child; null !== e;) c |= e.lanes | e.childLanes, d |= e.subtreeFlags, d |= e.flags, e.return = a, e = e.sibling; + a.subtreeFlags |= d; + a.childLanes = c; + return b; +} +function Fj(a, b, c) { + var d = b.pendingProps; + wg(b); + switch (b.tag) { + case 2: + case 16: + case 15: + case 0: + case 11: + case 7: + case 8: + case 12: + case 9: + case 14: + return S(b), null; + case 1: + return Zf(b.type) && $f(), S(b), null; + case 3: + d = b.stateNode; + Jh(); + E(Wf); + E(H); + Oh(); + d.pendingContext && (d.context = d.pendingContext, d.pendingContext = null); + if (null === a || null === a.child) Gg(b) ? b.flags |= 4 : null === a || a.memoizedState.isDehydrated && 0 === (b.flags & 256) || (b.flags |= 1024, null !== zg && (Gj(zg), zg = null)); + Bj(a, b); + S(b); + return null; + case 5: + Lh(b); + var e = Hh(Gh.current); + c = b.type; + if (null !== a && null != b.stateNode) Cj(a, b, c, d, e), a.ref !== b.ref && (b.flags |= 512, b.flags |= 2097152);else { + if (!d) { + if (null === b.stateNode) throw Error(p(166)); + S(b); + return null; + } + a = Hh(Eh.current); + if (Gg(b)) { + d = b.stateNode; + c = b.type; + var f = b.memoizedProps; + d[Of] = b; + d[Pf] = f; + a = 0 !== (b.mode & 1); + switch (c) { + case "dialog": + D("cancel", d); + D("close", d); + break; + case "iframe": + case "object": + case "embed": + D("load", d); + break; + case "video": + case "audio": + for (e = 0; e < lf.length; e++) D(lf[e], d); + break; + case "source": + D("error", d); + break; + case "img": + case "image": + case "link": + D("error", d); + D("load", d); + break; + case "details": + D("toggle", d); + break; + case "input": + Za(d, f); + D("invalid", d); + break; + case "select": + d._wrapperState = { + wasMultiple: !!f.multiple + }; + D("invalid", d); + break; + case "textarea": + hb(d, f), D("invalid", d); + } + ub(c, f); + e = null; + for (var g in f) if (f.hasOwnProperty(g)) { + var h = f[g]; + "children" === g ? "string" === typeof h ? d.textContent !== h && (!0 !== f.suppressHydrationWarning && Af(d.textContent, h, a), e = ["children", h]) : "number" === typeof h && d.textContent !== "" + h && (!0 !== f.suppressHydrationWarning && Af(d.textContent, h, a), e = ["children", "" + h]) : ea.hasOwnProperty(g) && null != h && "onScroll" === g && D("scroll", d); + } + switch (c) { + case "input": + Va(d); + db(d, f, !0); + break; + case "textarea": + Va(d); + jb(d); + break; + case "select": + case "option": + break; + default: + "function" === typeof f.onClick && (d.onclick = Bf); + } + d = e; + b.updateQueue = d; + null !== d && (b.flags |= 4); + } else { + g = 9 === e.nodeType ? e : e.ownerDocument; + "http://www.w3.org/1999/xhtml" === a && (a = kb(c)); + "http://www.w3.org/1999/xhtml" === a ? "script" === c ? (a = g.createElement("div"), a.innerHTML = " + * ^ + * ``` + * + * @type {State} + */ + function continuationRawTagOpen(code) { + if (code === 47) { + effects.consume(code); + buffer = ''; + return continuationRawEndTag; + } + return continuation(code); + } + + /** + * In raw continuation, after ` | + * ^^^^^^ + * ``` + * + * @type {State} + */ + function continuationRawEndTag(code) { + if (code === 62) { + var name = buffer.toLowerCase(); + if (htmlRawNames.includes(name)) { + effects.consume(code); + return continuationClose; + } + return continuation(code); + } + if (asciiAlpha(code) && buffer.length < 8) { + effects.consume(code); + // @ts-expect-error: not null. + buffer += String.fromCharCode(code); + return continuationRawEndTag; + } + return continuation(code); + } + + /** + * In cdata continuation, after `]`, expecting `]>`. + * + * ```markdown + * > | &<]]> + * ^ + * ``` + * + * @type {State} + */ + function continuationCdataInside(code) { + if (code === 93) { + effects.consume(code); + return continuationDeclarationInside; + } + return continuation(code); + } + + /** + * In declaration or instruction continuation, at `>`. + * + * ```markdown + * > | + * ^ + * > | + * ^ + * > | + * ^ + * > | + * ^ + * > | &<]]> + * ^ + * ``` + * + * @type {State} + */ + function continuationDeclarationInside(code) { + if (code === 62) { + effects.consume(code); + return continuationClose; + } + + // More dashes. + if (code === 45 && marker === 2) { + effects.consume(code); + return continuationDeclarationInside; + } + return continuation(code); + } + + /** + * In closed continuation: everything we get until the eol/eof is part of it. + * + * ```markdown + * > | + * ^ + * ``` + * + * @type {State} + */ + function continuationClose(code) { + if (code === null || markdownLineEnding(code)) { + effects.exit('htmlFlowData'); + return continuationAfter(code); + } + effects.consume(code); + return continuationClose; + } + + /** + * Done. + * + * ```markdown + * > | + * ^ + * ``` + * + * @type {State} + */ + function continuationAfter(code) { + effects.exit('htmlFlow'); + // // Feel free to interrupt. + // tokenizer.interrupt = false + // // No longer concrete. + // tokenizer.concrete = false + return ok(code); + } +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeNonLazyContinuationStart(effects, ok, nok) { + var self = this; + return start; + + /** + * At eol, before continuation. + * + * ```markdown + * > | * ```js + * ^ + * | b + * ``` + * + * @type {State} + */ + function start(code) { + if (markdownLineEnding(code)) { + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return after; + } + return nok(code); + } + + /** + * A continuation. + * + * ```markdown + * | * ```js + * > | b + * ^ + * ``` + * + * @type {State} + */ + function after(code) { + return self.parser.lazy[self.now().line] ? nok(code) : ok(code); + } +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeBlankLineBefore(effects, ok, nok) { + return start; + + /** + * Before eol, expecting blank line. + * + * ```markdown + * > |
+ * ^ + * | + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return effects.attempt(blankLine, ok, nok); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/code-fenced.js +/** + * @typedef {import('micromark-util-types').Code} Code + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + +/** @type {Construct} */ +var nonLazyContinuation = { + tokenize: tokenizeNonLazyContinuation, + partial: true +}; + +/** @type {Construct} */ +var codeFenced = { + name: 'codeFenced', + tokenize: tokenizeCodeFenced, + concrete: true +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeCodeFenced(effects, ok, nok) { + var self = this; + /** @type {Construct} */ + var closeStart = { + tokenize: tokenizeCloseStart, + partial: true + }; + var initialPrefix = 0; + var sizeOpen = 0; + /** @type {NonNullable} */ + var marker; + return start; + + /** + * Start of code. + * + * ```markdown + * > | ~~~js + * ^ + * | alert(1) + * | ~~~ + * ``` + * + * @type {State} + */ + function start(code) { + // To do: parse whitespace like `markdown-rs`. + return beforeSequenceOpen(code); + } + + /** + * In opening fence, after prefix, at sequence. + * + * ```markdown + * > | ~~~js + * ^ + * | alert(1) + * | ~~~ + * ``` + * + * @type {State} + */ + function beforeSequenceOpen(code) { + var tail = self.events[self.events.length - 1]; + initialPrefix = tail && tail[1].type === 'linePrefix' ? tail[2].sliceSerialize(tail[1], true).length : 0; + marker = code; + effects.enter('codeFenced'); + effects.enter('codeFencedFence'); + effects.enter('codeFencedFenceSequence'); + return sequenceOpen(code); + } + + /** + * In opening fence sequence. + * + * ```markdown + * > | ~~~js + * ^ + * | alert(1) + * | ~~~ + * ``` + * + * @type {State} + */ + function sequenceOpen(code) { + if (code === marker) { + sizeOpen++; + effects.consume(code); + return sequenceOpen; + } + if (sizeOpen < 3) { + return nok(code); + } + effects.exit('codeFencedFenceSequence'); + return markdownSpace(code) ? factorySpace(effects, infoBefore, 'whitespace')(code) : infoBefore(code); + } + + /** + * In opening fence, after the sequence (and optional whitespace), before info. + * + * ```markdown + * > | ~~~js + * ^ + * | alert(1) + * | ~~~ + * ``` + * + * @type {State} + */ + function infoBefore(code) { + if (code === null || markdownLineEnding(code)) { + effects.exit('codeFencedFence'); + return self.interrupt ? ok(code) : effects.check(nonLazyContinuation, atNonLazyBreak, after)(code); + } + effects.enter('codeFencedFenceInfo'); + effects.enter('chunkString', { + contentType: 'string' + }); + return info(code); + } + + /** + * In info. + * + * ```markdown + * > | ~~~js + * ^ + * | alert(1) + * | ~~~ + * ``` + * + * @type {State} + */ + function info(code) { + if (code === null || markdownLineEnding(code)) { + effects.exit('chunkString'); + effects.exit('codeFencedFenceInfo'); + return infoBefore(code); + } + if (markdownSpace(code)) { + effects.exit('chunkString'); + effects.exit('codeFencedFenceInfo'); + return factorySpace(effects, metaBefore, 'whitespace')(code); + } + if (code === 96 && code === marker) { + return nok(code); + } + effects.consume(code); + return info; + } + + /** + * In opening fence, after info and whitespace, before meta. + * + * ```markdown + * > | ~~~js eval + * ^ + * | alert(1) + * | ~~~ + * ``` + * + * @type {State} + */ + function metaBefore(code) { + if (code === null || markdownLineEnding(code)) { + return infoBefore(code); + } + effects.enter('codeFencedFenceMeta'); + effects.enter('chunkString', { + contentType: 'string' + }); + return meta(code); + } + + /** + * In meta. + * + * ```markdown + * > | ~~~js eval + * ^ + * | alert(1) + * | ~~~ + * ``` + * + * @type {State} + */ + function meta(code) { + if (code === null || markdownLineEnding(code)) { + effects.exit('chunkString'); + effects.exit('codeFencedFenceMeta'); + return infoBefore(code); + } + if (code === 96 && code === marker) { + return nok(code); + } + effects.consume(code); + return meta; + } + + /** + * At eol/eof in code, before a non-lazy closing fence or content. + * + * ```markdown + * > | ~~~js + * ^ + * > | alert(1) + * ^ + * | ~~~ + * ``` + * + * @type {State} + */ + function atNonLazyBreak(code) { + return effects.attempt(closeStart, after, contentBefore)(code); + } + + /** + * Before code content, not a closing fence, at eol. + * + * ```markdown + * | ~~~js + * > | alert(1) + * ^ + * | ~~~ + * ``` + * + * @type {State} + */ + function contentBefore(code) { + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return contentStart; + } + + /** + * Before code content, not a closing fence. + * + * ```markdown + * | ~~~js + * > | alert(1) + * ^ + * | ~~~ + * ``` + * + * @type {State} + */ + function contentStart(code) { + return initialPrefix > 0 && markdownSpace(code) ? factorySpace(effects, beforeContentChunk, 'linePrefix', initialPrefix + 1)(code) : beforeContentChunk(code); + } + + /** + * Before code content, after optional prefix. + * + * ```markdown + * | ~~~js + * > | alert(1) + * ^ + * | ~~~ + * ``` + * + * @type {State} + */ + function beforeContentChunk(code) { + if (code === null || markdownLineEnding(code)) { + return effects.check(nonLazyContinuation, atNonLazyBreak, after)(code); + } + effects.enter('codeFlowValue'); + return contentChunk(code); + } + + /** + * In code content. + * + * ```markdown + * | ~~~js + * > | alert(1) + * ^^^^^^^^ + * | ~~~ + * ``` + * + * @type {State} + */ + function contentChunk(code) { + if (code === null || markdownLineEnding(code)) { + effects.exit('codeFlowValue'); + return beforeContentChunk(code); + } + effects.consume(code); + return contentChunk; + } + + /** + * After code. + * + * ```markdown + * | ~~~js + * | alert(1) + * > | ~~~ + * ^ + * ``` + * + * @type {State} + */ + function after(code) { + effects.exit('codeFenced'); + return ok(code); + } + + /** + * @this {TokenizeContext} + * @type {Tokenizer} + */ + function tokenizeCloseStart(effects, ok, nok) { + var size = 0; + return startBefore; + + /** + * + * + * @type {State} + */ + function startBefore(code) { + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return start; + } + + /** + * Before closing fence, at optional whitespace. + * + * ```markdown + * | ~~~js + * | alert(1) + * > | ~~~ + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + // Always populated by defaults. + + // To do: `enter` here or in next state? + effects.enter('codeFencedFence'); + return markdownSpace(code) ? factorySpace(effects, beforeSequenceClose, 'linePrefix', self.parser.constructs.disable.null.includes('codeIndented') ? undefined : 4)(code) : beforeSequenceClose(code); + } + + /** + * In closing fence, after optional whitespace, at sequence. + * + * ```markdown + * | ~~~js + * | alert(1) + * > | ~~~ + * ^ + * ``` + * + * @type {State} + */ + function beforeSequenceClose(code) { + if (code === marker) { + effects.enter('codeFencedFenceSequence'); + return sequenceClose(code); + } + return nok(code); + } + + /** + * In closing fence sequence. + * + * ```markdown + * | ~~~js + * | alert(1) + * > | ~~~ + * ^ + * ``` + * + * @type {State} + */ + function sequenceClose(code) { + if (code === marker) { + size++; + effects.consume(code); + return sequenceClose; + } + if (size >= sizeOpen) { + effects.exit('codeFencedFenceSequence'); + return markdownSpace(code) ? factorySpace(effects, sequenceCloseAfter, 'whitespace')(code) : sequenceCloseAfter(code); + } + return nok(code); + } + + /** + * After closing fence sequence, after optional whitespace. + * + * ```markdown + * | ~~~js + * | alert(1) + * > | ~~~ + * ^ + * ``` + * + * @type {State} + */ + function sequenceCloseAfter(code) { + if (code === null || markdownLineEnding(code)) { + effects.exit('codeFencedFence'); + return ok(code); + } + return nok(code); + } + } +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeNonLazyContinuation(effects, ok, nok) { + var self = this; + return start; + + /** + * + * + * @type {State} + */ + function start(code) { + if (code === null) { + return nok(code); + } + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return lineStart; + } + + /** + * + * + * @type {State} + */ + function lineStart(code) { + return self.parser.lazy[self.now().line] ? nok(code) : ok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/decode-named-character-reference/index.dom.js +/// + +/* eslint-env browser */ + +var index_dom_element = document.createElement('i'); + +/** + * @param {string} value + * @returns {string|false} + */ +function decodeNamedCharacterReference(value) { + var characterReference = '&' + value + ';'; + index_dom_element.innerHTML = characterReference; + var char = index_dom_element.textContent; + + // Some named character references do not require the closing semicolon + // (`¬`, for instance), which leads to situations where parsing the assumed + // named reference of `¬it;` will result in the string `¬it;`. + // When we encounter a trailing semicolon after parsing, and the character + // reference to decode was not a semicolon (`;`), we can assume that the + // matching was not complete. + // @ts-expect-error: TypeScript is wrong that `textContent` on elements can + // yield `null`. + if (char.charCodeAt(char.length - 1) === 59 /* `;` */ && value !== 'semi') { + return false; + } + + // If the decoded string is equal to the input, the character reference was + // not valid. + // @ts-expect-error: TypeScript is wrong that `textContent` on elements can + // yield `null`. + return char === characterReference ? false : char; +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/character-reference.js +/** + * @typedef {import('micromark-util-types').Code} Code + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + +/** @type {Construct} */ +var characterReference = { + name: 'characterReference', + tokenize: tokenizeCharacterReference +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeCharacterReference(effects, ok, nok) { + var self = this; + var size = 0; + /** @type {number} */ + var max; + /** @type {(code: Code) => boolean} */ + var test; + return start; + + /** + * Start of character reference. + * + * ```markdown + * > | a&b + * ^ + * > | a{b + * ^ + * > | a b + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('characterReference'); + effects.enter('characterReferenceMarker'); + effects.consume(code); + effects.exit('characterReferenceMarker'); + return open; + } + + /** + * After `&`, at `#` for numeric references or alphanumeric for named + * references. + * + * ```markdown + * > | a&b + * ^ + * > | a{b + * ^ + * > | a b + * ^ + * ``` + * + * @type {State} + */ + function open(code) { + if (code === 35) { + effects.enter('characterReferenceMarkerNumeric'); + effects.consume(code); + effects.exit('characterReferenceMarkerNumeric'); + return numeric; + } + effects.enter('characterReferenceValue'); + max = 31; + test = asciiAlphanumeric; + return value(code); + } + + /** + * After `#`, at `x` for hexadecimals or digit for decimals. + * + * ```markdown + * > | a{b + * ^ + * > | a b + * ^ + * ``` + * + * @type {State} + */ + function numeric(code) { + if (code === 88 || code === 120) { + effects.enter('characterReferenceMarkerHexadecimal'); + effects.consume(code); + effects.exit('characterReferenceMarkerHexadecimal'); + effects.enter('characterReferenceValue'); + max = 6; + test = asciiHexDigit; + return value; + } + effects.enter('characterReferenceValue'); + max = 7; + test = asciiDigit; + return value(code); + } + + /** + * After markers (`&#x`, `&#`, or `&`), in value, before `;`. + * + * The character reference kind defines what and how many characters are + * allowed. + * + * ```markdown + * > | a&b + * ^^^ + * > | a{b + * ^^^ + * > | a b + * ^ + * ``` + * + * @type {State} + */ + function value(code) { + if (code === 59 && size) { + var token = effects.exit('characterReferenceValue'); + if (test === asciiAlphanumeric && !decodeNamedCharacterReference(self.sliceSerialize(token))) { + return nok(code); + } + + // To do: `markdown-rs` uses a different name: + // `CharacterReferenceMarkerSemi`. + effects.enter('characterReferenceMarker'); + effects.consume(code); + effects.exit('characterReferenceMarker'); + effects.exit('characterReference'); + return ok; + } + if (test(code) && size++ < max) { + effects.consume(code); + return value; + } + return nok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/character-escape.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + +/** @type {Construct} */ +var characterEscape = { + name: 'characterEscape', + tokenize: tokenizeCharacterEscape +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeCharacterEscape(effects, ok, nok) { + return start; + + /** + * Start of character escape. + * + * ```markdown + * > | a\*b + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('characterEscape'); + effects.enter('escapeMarker'); + effects.consume(code); + effects.exit('escapeMarker'); + return inside; + } + + /** + * After `\`, at punctuation. + * + * ```markdown + * > | a\*b + * ^ + * ``` + * + * @type {State} + */ + function inside(code) { + // ASCII punctuation. + if (asciiPunctuation(code)) { + effects.enter('characterEscapeValue'); + effects.consume(code); + effects.exit('characterEscapeValue'); + effects.exit('characterEscape'); + return ok; + } + return nok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/line-ending.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + +/** @type {Construct} */ +var lineEnding = { + name: 'lineEnding', + tokenize: tokenizeLineEnding +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeLineEnding(effects, ok) { + return start; + + /** @type {State} */ + function start(code) { + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return factorySpace(effects, ok, 'linePrefix'); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/label-end.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').Event} Event + * @typedef {import('micromark-util-types').Resolver} Resolver + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').Token} Token + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + + + + + + + +/** @type {Construct} */ +var labelEnd = { + name: 'labelEnd', + tokenize: tokenizeLabelEnd, + resolveTo: resolveToLabelEnd, + resolveAll: resolveAllLabelEnd +}; + +/** @type {Construct} */ +var resourceConstruct = { + tokenize: tokenizeResource +}; +/** @type {Construct} */ +var referenceFullConstruct = { + tokenize: tokenizeReferenceFull +}; +/** @type {Construct} */ +var referenceCollapsedConstruct = { + tokenize: tokenizeReferenceCollapsed +}; + +/** @type {Resolver} */ +function resolveAllLabelEnd(events) { + var index = -1; + while (++index < events.length) { + var token = events[index][1]; + if (token.type === 'labelImage' || token.type === 'labelLink' || token.type === 'labelEnd') { + // Remove the marker. + events.splice(index + 1, token.type === 'labelImage' ? 4 : 2); + token.type = 'data'; + index++; + } + } + return events; +} + +/** @type {Resolver} */ +function resolveToLabelEnd(events, context) { + var index = events.length; + var offset = 0; + /** @type {Token} */ + var token; + /** @type {number | undefined} */ + var open; + /** @type {number | undefined} */ + var close; + /** @type {Array} */ + var media; + + // Find an opening. + while (index--) { + token = events[index][1]; + if (open) { + // If we see another link, or inactive link label, we’ve been here before. + if (token.type === 'link' || token.type === 'labelLink' && token._inactive) { + break; + } + + // Mark other link openings as inactive, as we can’t have links in + // links. + if (events[index][0] === 'enter' && token.type === 'labelLink') { + token._inactive = true; + } + } else if (close) { + if (events[index][0] === 'enter' && (token.type === 'labelImage' || token.type === 'labelLink') && !token._balanced) { + open = index; + if (token.type !== 'labelLink') { + offset = 2; + break; + } + } + } else if (token.type === 'labelEnd') { + close = index; + } + } + var group = { + type: events[open][1].type === 'labelLink' ? 'link' : 'image', + start: Object.assign({}, events[open][1].start), + end: Object.assign({}, events[events.length - 1][1].end) + }; + var label = { + type: 'label', + start: Object.assign({}, events[open][1].start), + end: Object.assign({}, events[close][1].end) + }; + var text = { + type: 'labelText', + start: Object.assign({}, events[open + offset + 2][1].end), + end: Object.assign({}, events[close - 2][1].start) + }; + media = [['enter', group, context], ['enter', label, context]]; + + // Opening marker. + media = push(media, events.slice(open + 1, open + offset + 3)); + + // Text open. + media = push(media, [['enter', text, context]]); + + // Always populated by defaults. + + // Between. + media = push(media, resolveAll(context.parser.constructs.insideSpan.null, events.slice(open + offset + 4, close - 3), context)); + + // Text close, marker close, label close. + media = push(media, [['exit', text, context], events[close - 2], events[close - 1], ['exit', label, context]]); + + // Reference, resource, or so. + media = push(media, events.slice(close + 1)); + + // Media close. + media = push(media, [['exit', group, context]]); + splice(events, open, events.length, media); + return events; +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeLabelEnd(effects, ok, nok) { + var self = this; + var index = self.events.length; + /** @type {Token} */ + var labelStart; + /** @type {boolean} */ + var defined; + + // Find an opening. + while (index--) { + if ((self.events[index][1].type === 'labelImage' || self.events[index][1].type === 'labelLink') && !self.events[index][1]._balanced) { + labelStart = self.events[index][1]; + break; + } + } + return start; + + /** + * Start of label end. + * + * ```markdown + * > | [a](b) c + * ^ + * > | [a][b] c + * ^ + * > | [a][] b + * ^ + * > | [a] b + * ``` + * + * @type {State} + */ + function start(code) { + // If there is not an okay opening. + if (!labelStart) { + return nok(code); + } + + // If the corresponding label (link) start is marked as inactive, + // it means we’d be wrapping a link, like this: + // + // ```markdown + // > | a [b [c](d) e](f) g. + // ^ + // ``` + // + // We can’t have that, so it’s just balanced brackets. + if (labelStart._inactive) { + return labelEndNok(code); + } + defined = self.parser.defined.includes(normalizeIdentifier(self.sliceSerialize({ + start: labelStart.end, + end: self.now() + }))); + effects.enter('labelEnd'); + effects.enter('labelMarker'); + effects.consume(code); + effects.exit('labelMarker'); + effects.exit('labelEnd'); + return after; + } + + /** + * After `]`. + * + * ```markdown + * > | [a](b) c + * ^ + * > | [a][b] c + * ^ + * > | [a][] b + * ^ + * > | [a] b + * ^ + * ``` + * + * @type {State} + */ + function after(code) { + // Note: `markdown-rs` also parses GFM footnotes here, which for us is in + // an extension. + + // Resource (`[asd](fgh)`)? + if (code === 40) { + return effects.attempt(resourceConstruct, labelEndOk, defined ? labelEndOk : labelEndNok)(code); + } + + // Full (`[asd][fgh]`) or collapsed (`[asd][]`) reference? + if (code === 91) { + return effects.attempt(referenceFullConstruct, labelEndOk, defined ? referenceNotFull : labelEndNok)(code); + } + + // Shortcut (`[asd]`) reference? + return defined ? labelEndOk(code) : labelEndNok(code); + } + + /** + * After `]`, at `[`, but not at a full reference. + * + * > 👉 **Note**: we only get here if the label is defined. + * + * ```markdown + * > | [a][] b + * ^ + * > | [a] b + * ^ + * ``` + * + * @type {State} + */ + function referenceNotFull(code) { + return effects.attempt(referenceCollapsedConstruct, labelEndOk, labelEndNok)(code); + } + + /** + * Done, we found something. + * + * ```markdown + * > | [a](b) c + * ^ + * > | [a][b] c + * ^ + * > | [a][] b + * ^ + * > | [a] b + * ^ + * ``` + * + * @type {State} + */ + function labelEndOk(code) { + // Note: `markdown-rs` does a bunch of stuff here. + return ok(code); + } + + /** + * Done, it’s nothing. + * + * There was an okay opening, but we didn’t match anything. + * + * ```markdown + * > | [a](b c + * ^ + * > | [a][b c + * ^ + * > | [a] b + * ^ + * ``` + * + * @type {State} + */ + function labelEndNok(code) { + labelStart._balanced = true; + return nok(code); + } +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeResource(effects, ok, nok) { + return resourceStart; + + /** + * At a resource. + * + * ```markdown + * > | [a](b) c + * ^ + * ``` + * + * @type {State} + */ + function resourceStart(code) { + effects.enter('resource'); + effects.enter('resourceMarker'); + effects.consume(code); + effects.exit('resourceMarker'); + return resourceBefore; + } + + /** + * In resource, after `(`, at optional whitespace. + * + * ```markdown + * > | [a](b) c + * ^ + * ``` + * + * @type {State} + */ + function resourceBefore(code) { + return markdownLineEndingOrSpace(code) ? factoryWhitespace(effects, resourceOpen)(code) : resourceOpen(code); + } + + /** + * In resource, after optional whitespace, at `)` or a destination. + * + * ```markdown + * > | [a](b) c + * ^ + * ``` + * + * @type {State} + */ + function resourceOpen(code) { + if (code === 41) { + return resourceEnd(code); + } + return factoryDestination(effects, resourceDestinationAfter, resourceDestinationMissing, 'resourceDestination', 'resourceDestinationLiteral', 'resourceDestinationLiteralMarker', 'resourceDestinationRaw', 'resourceDestinationString', 32)(code); + } + + /** + * In resource, after destination, at optional whitespace. + * + * ```markdown + * > | [a](b) c + * ^ + * ``` + * + * @type {State} + */ + function resourceDestinationAfter(code) { + return markdownLineEndingOrSpace(code) ? factoryWhitespace(effects, resourceBetween)(code) : resourceEnd(code); + } + + /** + * At invalid destination. + * + * ```markdown + * > | [a](<<) b + * ^ + * ``` + * + * @type {State} + */ + function resourceDestinationMissing(code) { + return nok(code); + } + + /** + * In resource, after destination and whitespace, at `(` or title. + * + * ```markdown + * > | [a](b ) c + * ^ + * ``` + * + * @type {State} + */ + function resourceBetween(code) { + if (code === 34 || code === 39 || code === 40) { + return factoryTitle(effects, resourceTitleAfter, nok, 'resourceTitle', 'resourceTitleMarker', 'resourceTitleString')(code); + } + return resourceEnd(code); + } + + /** + * In resource, after title, at optional whitespace. + * + * ```markdown + * > | [a](b "c") d + * ^ + * ``` + * + * @type {State} + */ + function resourceTitleAfter(code) { + return markdownLineEndingOrSpace(code) ? factoryWhitespace(effects, resourceEnd)(code) : resourceEnd(code); + } + + /** + * In resource, at `)`. + * + * ```markdown + * > | [a](b) d + * ^ + * ``` + * + * @type {State} + */ + function resourceEnd(code) { + if (code === 41) { + effects.enter('resourceMarker'); + effects.consume(code); + effects.exit('resourceMarker'); + effects.exit('resource'); + return ok; + } + return nok(code); + } +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeReferenceFull(effects, ok, nok) { + var self = this; + return referenceFull; + + /** + * In a reference (full), at the `[`. + * + * ```markdown + * > | [a][b] d + * ^ + * ``` + * + * @type {State} + */ + function referenceFull(code) { + return factoryLabel.call(self, effects, referenceFullAfter, referenceFullMissing, 'reference', 'referenceMarker', 'referenceString')(code); + } + + /** + * In a reference (full), after `]`. + * + * ```markdown + * > | [a][b] d + * ^ + * ``` + * + * @type {State} + */ + function referenceFullAfter(code) { + return self.parser.defined.includes(normalizeIdentifier(self.sliceSerialize(self.events[self.events.length - 1][1]).slice(1, -1))) ? ok(code) : nok(code); + } + + /** + * In reference (full) that was missing. + * + * ```markdown + * > | [a][b d + * ^ + * ``` + * + * @type {State} + */ + function referenceFullMissing(code) { + return nok(code); + } +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeReferenceCollapsed(effects, ok, nok) { + return referenceCollapsedStart; + + /** + * In reference (collapsed), at `[`. + * + * > 👉 **Note**: we only get here if the label is defined. + * + * ```markdown + * > | [a][] d + * ^ + * ``` + * + * @type {State} + */ + function referenceCollapsedStart(code) { + // We only attempt a collapsed label if there’s a `[`. + + effects.enter('reference'); + effects.enter('referenceMarker'); + effects.consume(code); + effects.exit('referenceMarker'); + return referenceCollapsedOpen; + } + + /** + * In reference (collapsed), at `]`. + * + * > 👉 **Note**: we only get here if the label is defined. + * + * ```markdown + * > | [a][] d + * ^ + * ``` + * + * @type {State} + */ + function referenceCollapsedOpen(code) { + if (code === 93) { + effects.enter('referenceMarker'); + effects.consume(code); + effects.exit('referenceMarker'); + effects.exit('reference'); + return ok; + } + return nok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/label-start-image.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + +/** @type {Construct} */ +var labelStartImage = { + name: 'labelStartImage', + tokenize: tokenizeLabelStartImage, + resolveAll: labelEnd.resolveAll +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeLabelStartImage(effects, ok, nok) { + var self = this; + return start; + + /** + * Start of label (image) start. + * + * ```markdown + * > | a ![b] c + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('labelImage'); + effects.enter('labelImageMarker'); + effects.consume(code); + effects.exit('labelImageMarker'); + return open; + } + + /** + * After `!`, at `[`. + * + * ```markdown + * > | a ![b] c + * ^ + * ``` + * + * @type {State} + */ + function open(code) { + if (code === 91) { + effects.enter('labelMarker'); + effects.consume(code); + effects.exit('labelMarker'); + effects.exit('labelImage'); + return after; + } + return nok(code); + } + + /** + * After `![`. + * + * ```markdown + * > | a ![b] c + * ^ + * ``` + * + * This is needed in because, when GFM footnotes are enabled, images never + * form when started with a `^`. + * Instead, links form: + * + * ```markdown + * ![^a](b) + * + * ![^a][b] + * + * [b]: c + * ``` + * + * ```html + *

!^a

+ *

!^a

+ * ``` + * + * @type {State} + */ + function after(code) { + // To do: use a new field to do this, this is still needed for + // `micromark-extension-gfm-footnote`, but the `label-start-link` + // behavior isn’t. + // Hidden footnotes hook. + /* c8 ignore next 3 */ + return code === 94 && '_hiddenFootnoteSupport' in self.parser.constructs ? nok(code) : ok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-util-classify-character/index.js +/** + * @typedef {import('micromark-util-types').Code} Code + */ + + +/** + * Classify whether a code represents whitespace, punctuation, or something + * else. + * + * Used for attention (emphasis, strong), whose sequences can open or close + * based on the class of surrounding characters. + * + * > 👉 **Note**: eof (`null`) is seen as whitespace. + * + * @param {Code} code + * Code. + * @returns {typeof constants.characterGroupWhitespace | typeof constants.characterGroupPunctuation | undefined} + * Group. + */ +function classifyCharacter(code) { + if (code === null || markdownLineEndingOrSpace(code) || unicodeWhitespace(code)) { + return 1; + } + if (unicodePunctuation(code)) { + return 2; + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/attention.js +/** + * @typedef {import('micromark-util-types').Code} Code + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').Event} Event + * @typedef {import('micromark-util-types').Point} Point + * @typedef {import('micromark-util-types').Resolver} Resolver + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').Token} Token + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + + +/** @type {Construct} */ +var attention = { + name: 'attention', + tokenize: tokenizeAttention, + resolveAll: resolveAllAttention +}; + +/** + * Take all events and resolve attention to emphasis or strong. + * + * @type {Resolver} + */ +function resolveAllAttention(events, context) { + var index = -1; + /** @type {number} */ + var open; + /** @type {Token} */ + var group; + /** @type {Token} */ + var text; + /** @type {Token} */ + var openingSequence; + /** @type {Token} */ + var closingSequence; + /** @type {number} */ + var use; + /** @type {Array} */ + var nextEvents; + /** @type {number} */ + var offset; + + // Walk through all events. + // + // Note: performance of this is fine on an mb of normal markdown, but it’s + // a bottleneck for malicious stuff. + while (++index < events.length) { + // Find a token that can close. + if (events[index][0] === 'enter' && events[index][1].type === 'attentionSequence' && events[index][1]._close) { + open = index; + + // Now walk back to find an opener. + while (open--) { + // Find a token that can open the closer. + if (events[open][0] === 'exit' && events[open][1].type === 'attentionSequence' && events[open][1]._open && + // If the markers are the same: + context.sliceSerialize(events[open][1]).charCodeAt(0) === context.sliceSerialize(events[index][1]).charCodeAt(0)) { + // If the opening can close or the closing can open, + // and the close size *is not* a multiple of three, + // but the sum of the opening and closing size *is* multiple of three, + // then don’t match. + if ((events[open][1]._close || events[index][1]._open) && (events[index][1].end.offset - events[index][1].start.offset) % 3 && !((events[open][1].end.offset - events[open][1].start.offset + events[index][1].end.offset - events[index][1].start.offset) % 3)) { + continue; + } + + // Number of markers to use from the sequence. + use = events[open][1].end.offset - events[open][1].start.offset > 1 && events[index][1].end.offset - events[index][1].start.offset > 1 ? 2 : 1; + var start = Object.assign({}, events[open][1].end); + var end = Object.assign({}, events[index][1].start); + movePoint(start, -use); + movePoint(end, use); + openingSequence = { + type: use > 1 ? 'strongSequence' : 'emphasisSequence', + start: start, + end: Object.assign({}, events[open][1].end) + }; + closingSequence = { + type: use > 1 ? 'strongSequence' : 'emphasisSequence', + start: Object.assign({}, events[index][1].start), + end: end + }; + text = { + type: use > 1 ? 'strongText' : 'emphasisText', + start: Object.assign({}, events[open][1].end), + end: Object.assign({}, events[index][1].start) + }; + group = { + type: use > 1 ? 'strong' : 'emphasis', + start: Object.assign({}, openingSequence.start), + end: Object.assign({}, closingSequence.end) + }; + events[open][1].end = Object.assign({}, openingSequence.start); + events[index][1].start = Object.assign({}, closingSequence.end); + nextEvents = []; + + // If there are more markers in the opening, add them before. + if (events[open][1].end.offset - events[open][1].start.offset) { + nextEvents = push(nextEvents, [['enter', events[open][1], context], ['exit', events[open][1], context]]); + } + + // Opening. + nextEvents = push(nextEvents, [['enter', group, context], ['enter', openingSequence, context], ['exit', openingSequence, context], ['enter', text, context]]); + + // Always populated by defaults. + + // Between. + nextEvents = push(nextEvents, resolveAll(context.parser.constructs.insideSpan.null, events.slice(open + 1, index), context)); + + // Closing. + nextEvents = push(nextEvents, [['exit', text, context], ['enter', closingSequence, context], ['exit', closingSequence, context], ['exit', group, context]]); + + // If there are more markers in the closing, add them after. + if (events[index][1].end.offset - events[index][1].start.offset) { + offset = 2; + nextEvents = push(nextEvents, [['enter', events[index][1], context], ['exit', events[index][1], context]]); + } else { + offset = 0; + } + splice(events, open - 1, index - open + 3, nextEvents); + index = open + nextEvents.length - offset - 2; + break; + } + } + } + } + + // Remove remaining sequences. + index = -1; + while (++index < events.length) { + if (events[index][1].type === 'attentionSequence') { + events[index][1].type = 'data'; + } + } + return events; +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeAttention(effects, ok) { + var attentionMarkers = this.parser.constructs.attentionMarkers.null; + var previous = this.previous; + var before = classifyCharacter(previous); + + /** @type {NonNullable} */ + var marker; + return start; + + /** + * Before a sequence. + * + * ```markdown + * > | ** + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + marker = code; + effects.enter('attentionSequence'); + return inside(code); + } + + /** + * In a sequence. + * + * ```markdown + * > | ** + * ^^ + * ``` + * + * @type {State} + */ + function inside(code) { + if (code === marker) { + effects.consume(code); + return inside; + } + var token = effects.exit('attentionSequence'); + + // To do: next major: move this to resolver, just like `markdown-rs`. + var after = classifyCharacter(code); + + // Always populated by defaults. + + var open = !after || after === 2 && before || attentionMarkers.includes(code); + var close = !before || before === 2 && after || attentionMarkers.includes(previous); + token._open = Boolean(marker === 42 ? open : open && (before || !close)); + token._close = Boolean(marker === 42 ? close : close && (after || !open)); + return ok(code); + } +} + +/** + * Move a point a bit. + * + * Note: `move` only works inside lines! It’s not possible to move past other + * chunks (replacement characters, tabs, or line endings). + * + * @param {Point} point + * @param {number} offset + * @returns {void} + */ +function movePoint(point, offset) { + point.column += offset; + point.offset += offset; + point._bufferIndex += offset; +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/autolink.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + +/** @type {Construct} */ +var autolink = { + name: 'autolink', + tokenize: tokenizeAutolink +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeAutolink(effects, ok, nok) { + var size = 0; + return start; + + /** + * Start of an autolink. + * + * ```markdown + * > | ab + * ^ + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('autolink'); + effects.enter('autolinkMarker'); + effects.consume(code); + effects.exit('autolinkMarker'); + effects.enter('autolinkProtocol'); + return open; + } + + /** + * After `<`, at protocol or atext. + * + * ```markdown + * > | ab + * ^ + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function open(code) { + if (asciiAlpha(code)) { + effects.consume(code); + return schemeOrEmailAtext; + } + return emailAtext(code); + } + + /** + * At second byte of protocol or atext. + * + * ```markdown + * > | ab + * ^ + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function schemeOrEmailAtext(code) { + // ASCII alphanumeric and `+`, `-`, and `.`. + if (code === 43 || code === 45 || code === 46 || asciiAlphanumeric(code)) { + // Count the previous alphabetical from `open` too. + size = 1; + return schemeInsideOrEmailAtext(code); + } + return emailAtext(code); + } + + /** + * In ambiguous protocol or atext. + * + * ```markdown + * > | ab + * ^ + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function schemeInsideOrEmailAtext(code) { + if (code === 58) { + effects.consume(code); + size = 0; + return urlInside; + } + + // ASCII alphanumeric and `+`, `-`, and `.`. + if ((code === 43 || code === 45 || code === 46 || asciiAlphanumeric(code)) && size++ < 32) { + effects.consume(code); + return schemeInsideOrEmailAtext; + } + size = 0; + return emailAtext(code); + } + + /** + * After protocol, in URL. + * + * ```markdown + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function urlInside(code) { + if (code === 62) { + effects.exit('autolinkProtocol'); + effects.enter('autolinkMarker'); + effects.consume(code); + effects.exit('autolinkMarker'); + effects.exit('autolink'); + return ok; + } + + // ASCII control, space, or `<`. + if (code === null || code === 32 || code === 60 || asciiControl(code)) { + return nok(code); + } + effects.consume(code); + return urlInside; + } + + /** + * In email atext. + * + * ```markdown + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function emailAtext(code) { + if (code === 64) { + effects.consume(code); + return emailAtSignOrDot; + } + if (asciiAtext(code)) { + effects.consume(code); + return emailAtext; + } + return nok(code); + } + + /** + * In label, after at-sign or dot. + * + * ```markdown + * > | ab + * ^ ^ + * ``` + * + * @type {State} + */ + function emailAtSignOrDot(code) { + return asciiAlphanumeric(code) ? emailLabel(code) : nok(code); + } + + /** + * In label, where `.` and `>` are allowed. + * + * ```markdown + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function emailLabel(code) { + if (code === 46) { + effects.consume(code); + size = 0; + return emailAtSignOrDot; + } + if (code === 62) { + // Exit, then change the token type. + effects.exit('autolinkProtocol').type = 'autolinkEmail'; + effects.enter('autolinkMarker'); + effects.consume(code); + effects.exit('autolinkMarker'); + effects.exit('autolink'); + return ok; + } + return emailValue(code); + } + + /** + * In label, where `.` and `>` are *not* allowed. + * + * Though, this is also used in `emailLabel` to parse other values. + * + * ```markdown + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function emailValue(code) { + // ASCII alphanumeric or `-`. + if ((code === 45 || asciiAlphanumeric(code)) && size++ < 63) { + var next = code === 45 ? emailValue : emailLabel; + effects.consume(code); + return next; + } + return nok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/html-text.js +/** + * @typedef {import('micromark-util-types').Code} Code + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + +/** @type {Construct} */ +var htmlText = { + name: 'htmlText', + tokenize: tokenizeHtmlText +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeHtmlText(effects, ok, nok) { + var self = this; + /** @type {NonNullable | undefined} */ + var marker; + /** @type {number} */ + var index; + /** @type {State} */ + var returnState; + return start; + + /** + * Start of HTML (text). + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('htmlText'); + effects.enter('htmlTextData'); + effects.consume(code); + return open; + } + + /** + * After `<`, at tag name or other stuff. + * + * ```markdown + * > | a c + * ^ + * > | a c + * ^ + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function open(code) { + if (code === 33) { + effects.consume(code); + return declarationOpen; + } + if (code === 47) { + effects.consume(code); + return tagCloseStart; + } + if (code === 63) { + effects.consume(code); + return instruction; + } + + // ASCII alphabetical. + if (asciiAlpha(code)) { + effects.consume(code); + return tagOpen; + } + return nok(code); + } + + /** + * After ` | a c + * ^ + * > | a c + * ^ + * > | a &<]]> c + * ^ + * ``` + * + * @type {State} + */ + function declarationOpen(code) { + if (code === 45) { + effects.consume(code); + return commentOpenInside; + } + if (code === 91) { + effects.consume(code); + index = 0; + return cdataOpenInside; + } + if (asciiAlpha(code)) { + effects.consume(code); + return declaration; + } + return nok(code); + } + + /** + * In a comment, after ` | a c + * ^ + * ``` + * + * @type {State} + */ + function commentOpenInside(code) { + if (code === 45) { + effects.consume(code); + return commentEnd; + } + return nok(code); + } + + /** + * In comment. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function comment(code) { + if (code === null) { + return nok(code); + } + if (code === 45) { + effects.consume(code); + return commentClose; + } + if (markdownLineEnding(code)) { + returnState = comment; + return lineEndingBefore(code); + } + effects.consume(code); + return comment; + } + + /** + * In comment, after `-`. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function commentClose(code) { + if (code === 45) { + effects.consume(code); + return commentEnd; + } + return comment(code); + } + + /** + * In comment, after `--`. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function commentEnd(code) { + return code === 62 ? end(code) : code === 45 ? commentClose(code) : comment(code); + } + + /** + * After ` | a &<]]> b + * ^^^^^^ + * ``` + * + * @type {State} + */ + function cdataOpenInside(code) { + var value = 'CDATA['; + if (code === value.charCodeAt(index++)) { + effects.consume(code); + return index === value.length ? cdata : cdataOpenInside; + } + return nok(code); + } + + /** + * In CDATA. + * + * ```markdown + * > | a &<]]> b + * ^^^ + * ``` + * + * @type {State} + */ + function cdata(code) { + if (code === null) { + return nok(code); + } + if (code === 93) { + effects.consume(code); + return cdataClose; + } + if (markdownLineEnding(code)) { + returnState = cdata; + return lineEndingBefore(code); + } + effects.consume(code); + return cdata; + } + + /** + * In CDATA, after `]`, at another `]`. + * + * ```markdown + * > | a &<]]> b + * ^ + * ``` + * + * @type {State} + */ + function cdataClose(code) { + if (code === 93) { + effects.consume(code); + return cdataEnd; + } + return cdata(code); + } + + /** + * In CDATA, after `]]`, at `>`. + * + * ```markdown + * > | a &<]]> b + * ^ + * ``` + * + * @type {State} + */ + function cdataEnd(code) { + if (code === 62) { + return end(code); + } + if (code === 93) { + effects.consume(code); + return cdataEnd; + } + return cdata(code); + } + + /** + * In declaration. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function declaration(code) { + if (code === null || code === 62) { + return end(code); + } + if (markdownLineEnding(code)) { + returnState = declaration; + return lineEndingBefore(code); + } + effects.consume(code); + return declaration; + } + + /** + * In instruction. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function instruction(code) { + if (code === null) { + return nok(code); + } + if (code === 63) { + effects.consume(code); + return instructionClose; + } + if (markdownLineEnding(code)) { + returnState = instruction; + return lineEndingBefore(code); + } + effects.consume(code); + return instruction; + } + + /** + * In instruction, after `?`, at `>`. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function instructionClose(code) { + return code === 62 ? end(code) : instruction(code); + } + + /** + * After ` | a c + * ^ + * ``` + * + * @type {State} + */ + function tagCloseStart(code) { + // ASCII alphabetical. + if (asciiAlpha(code)) { + effects.consume(code); + return tagClose; + } + return nok(code); + } + + /** + * After ` | a c + * ^ + * ``` + * + * @type {State} + */ + function tagClose(code) { + // ASCII alphanumerical and `-`. + if (code === 45 || asciiAlphanumeric(code)) { + effects.consume(code); + return tagClose; + } + return tagCloseBetween(code); + } + + /** + * In closing tag, after tag name. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function tagCloseBetween(code) { + if (markdownLineEnding(code)) { + returnState = tagCloseBetween; + return lineEndingBefore(code); + } + if (markdownSpace(code)) { + effects.consume(code); + return tagCloseBetween; + } + return end(code); + } + + /** + * After ` | a c + * ^ + * ``` + * + * @type {State} + */ + function tagOpen(code) { + // ASCII alphanumerical and `-`. + if (code === 45 || asciiAlphanumeric(code)) { + effects.consume(code); + return tagOpen; + } + if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) { + return tagOpenBetween(code); + } + return nok(code); + } + + /** + * In opening tag, after tag name. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function tagOpenBetween(code) { + if (code === 47) { + effects.consume(code); + return end; + } + + // ASCII alphabetical and `:` and `_`. + if (code === 58 || code === 95 || asciiAlpha(code)) { + effects.consume(code); + return tagOpenAttributeName; + } + if (markdownLineEnding(code)) { + returnState = tagOpenBetween; + return lineEndingBefore(code); + } + if (markdownSpace(code)) { + effects.consume(code); + return tagOpenBetween; + } + return end(code); + } + + /** + * In attribute name. + * + * ```markdown + * > | a d + * ^ + * ``` + * + * @type {State} + */ + function tagOpenAttributeName(code) { + // ASCII alphabetical and `-`, `.`, `:`, and `_`. + if (code === 45 || code === 46 || code === 58 || code === 95 || asciiAlphanumeric(code)) { + effects.consume(code); + return tagOpenAttributeName; + } + return tagOpenAttributeNameAfter(code); + } + + /** + * After attribute name, before initializer, the end of the tag, or + * whitespace. + * + * ```markdown + * > | a d + * ^ + * ``` + * + * @type {State} + */ + function tagOpenAttributeNameAfter(code) { + if (code === 61) { + effects.consume(code); + return tagOpenAttributeValueBefore; + } + if (markdownLineEnding(code)) { + returnState = tagOpenAttributeNameAfter; + return lineEndingBefore(code); + } + if (markdownSpace(code)) { + effects.consume(code); + return tagOpenAttributeNameAfter; + } + return tagOpenBetween(code); + } + + /** + * Before unquoted, double quoted, or single quoted attribute value, allowing + * whitespace. + * + * ```markdown + * > | a e + * ^ + * ``` + * + * @type {State} + */ + function tagOpenAttributeValueBefore(code) { + if (code === null || code === 60 || code === 61 || code === 62 || code === 96) { + return nok(code); + } + if (code === 34 || code === 39) { + effects.consume(code); + marker = code; + return tagOpenAttributeValueQuoted; + } + if (markdownLineEnding(code)) { + returnState = tagOpenAttributeValueBefore; + return lineEndingBefore(code); + } + if (markdownSpace(code)) { + effects.consume(code); + return tagOpenAttributeValueBefore; + } + effects.consume(code); + return tagOpenAttributeValueUnquoted; + } + + /** + * In double or single quoted attribute value. + * + * ```markdown + * > | a e + * ^ + * ``` + * + * @type {State} + */ + function tagOpenAttributeValueQuoted(code) { + if (code === marker) { + effects.consume(code); + marker = undefined; + return tagOpenAttributeValueQuotedAfter; + } + if (code === null) { + return nok(code); + } + if (markdownLineEnding(code)) { + returnState = tagOpenAttributeValueQuoted; + return lineEndingBefore(code); + } + effects.consume(code); + return tagOpenAttributeValueQuoted; + } + + /** + * In unquoted attribute value. + * + * ```markdown + * > | a e + * ^ + * ``` + * + * @type {State} + */ + function tagOpenAttributeValueUnquoted(code) { + if (code === null || code === 34 || code === 39 || code === 60 || code === 61 || code === 96) { + return nok(code); + } + if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) { + return tagOpenBetween(code); + } + effects.consume(code); + return tagOpenAttributeValueUnquoted; + } + + /** + * After double or single quoted attribute value, before whitespace or the end + * of the tag. + * + * ```markdown + * > | a e + * ^ + * ``` + * + * @type {State} + */ + function tagOpenAttributeValueQuotedAfter(code) { + if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) { + return tagOpenBetween(code); + } + return nok(code); + } + + /** + * In certain circumstances of a tag where only an `>` is allowed. + * + * ```markdown + * > | a e + * ^ + * ``` + * + * @type {State} + */ + function end(code) { + if (code === 62) { + effects.consume(code); + effects.exit('htmlTextData'); + effects.exit('htmlText'); + return ok; + } + return nok(code); + } + + /** + * At eol. + * + * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about + * > empty tokens. + * + * ```markdown + * > | a + * ``` + * + * @type {State} + */ + function lineEndingBefore(code) { + effects.exit('htmlTextData'); + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return lineEndingAfter; + } + + /** + * After eol, at optional whitespace. + * + * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about + * > empty tokens. + * + * ```markdown + * | a + * ^ + * ``` + * + * @type {State} + */ + function lineEndingAfter(code) { + // Always populated by defaults. + + return markdownSpace(code) ? factorySpace(effects, lineEndingAfterPrefix, 'linePrefix', self.parser.constructs.disable.null.includes('codeIndented') ? undefined : 4)(code) : lineEndingAfterPrefix(code); + } + + /** + * After eol, after optional whitespace. + * + * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about + * > empty tokens. + * + * ```markdown + * | a + * ^ + * ``` + * + * @type {State} + */ + function lineEndingAfterPrefix(code) { + effects.enter('htmlTextData'); + return returnState(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/label-start-link.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + +/** @type {Construct} */ +var labelStartLink = { + name: 'labelStartLink', + tokenize: tokenizeLabelStartLink, + resolveAll: labelEnd.resolveAll +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeLabelStartLink(effects, ok, nok) { + var self = this; + return start; + + /** + * Start of label (link) start. + * + * ```markdown + * > | a [b] c + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('labelLink'); + effects.enter('labelMarker'); + effects.consume(code); + effects.exit('labelMarker'); + effects.exit('labelLink'); + return after; + } + + /** @type {State} */ + function after(code) { + // To do: this isn’t needed in `micromark-extension-gfm-footnote`, + // remove. + // Hidden footnotes hook. + /* c8 ignore next 3 */ + return code === 94 && '_hiddenFootnoteSupport' in self.parser.constructs ? nok(code) : ok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/hard-break-escape.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + +/** @type {Construct} */ +var hardBreakEscape = { + name: 'hardBreakEscape', + tokenize: tokenizeHardBreakEscape +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeHardBreakEscape(effects, ok, nok) { + return start; + + /** + * Start of a hard break (escape). + * + * ```markdown + * > | a\ + * ^ + * | b + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('hardBreakEscape'); + effects.consume(code); + return after; + } + + /** + * After `\`, at eol. + * + * ```markdown + * > | a\ + * ^ + * | b + * ``` + * + * @type {State} + */ + function after(code) { + if (markdownLineEnding(code)) { + effects.exit('hardBreakEscape'); + return ok(code); + } + return nok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/code-text.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').Previous} Previous + * @typedef {import('micromark-util-types').Resolver} Resolver + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').Token} Token + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + +/** @type {Construct} */ +var codeText = { + name: 'codeText', + tokenize: tokenizeCodeText, + resolve: resolveCodeText, + previous: previous +}; + +// To do: next major: don’t resolve, like `markdown-rs`. +/** @type {Resolver} */ +function resolveCodeText(events) { + var tailExitIndex = events.length - 4; + var headEnterIndex = 3; + /** @type {number} */ + var index; + /** @type {number | undefined} */ + var enter; + + // If we start and end with an EOL or a space. + if ((events[headEnterIndex][1].type === 'lineEnding' || events[headEnterIndex][1].type === 'space') && (events[tailExitIndex][1].type === 'lineEnding' || events[tailExitIndex][1].type === 'space')) { + index = headEnterIndex; + + // And we have data. + while (++index < tailExitIndex) { + if (events[index][1].type === 'codeTextData') { + // Then we have padding. + events[headEnterIndex][1].type = 'codeTextPadding'; + events[tailExitIndex][1].type = 'codeTextPadding'; + headEnterIndex += 2; + tailExitIndex -= 2; + break; + } + } + } + + // Merge adjacent spaces and data. + index = headEnterIndex - 1; + tailExitIndex++; + while (++index <= tailExitIndex) { + if (enter === undefined) { + if (index !== tailExitIndex && events[index][1].type !== 'lineEnding') { + enter = index; + } + } else if (index === tailExitIndex || events[index][1].type === 'lineEnding') { + events[enter][1].type = 'codeTextData'; + if (index !== enter + 2) { + events[enter][1].end = events[index - 1][1].end; + events.splice(enter + 2, index - enter - 2); + tailExitIndex -= index - enter - 2; + index = enter + 2; + } + enter = undefined; + } + } + return events; +} + +/** + * @this {TokenizeContext} + * @type {Previous} + */ +function previous(code) { + // If there is a previous code, there will always be a tail. + return code !== 96 || this.events[this.events.length - 1][1].type === 'characterEscape'; +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeCodeText(effects, ok, nok) { + var self = this; + var sizeOpen = 0; + /** @type {number} */ + var size; + /** @type {Token} */ + var token; + return start; + + /** + * Start of code (text). + * + * ```markdown + * > | `a` + * ^ + * > | \`a` + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('codeText'); + effects.enter('codeTextSequence'); + return sequenceOpen(code); + } + + /** + * In opening sequence. + * + * ```markdown + * > | `a` + * ^ + * ``` + * + * @type {State} + */ + function sequenceOpen(code) { + if (code === 96) { + effects.consume(code); + sizeOpen++; + return sequenceOpen; + } + effects.exit('codeTextSequence'); + return between(code); + } + + /** + * Between something and something else. + * + * ```markdown + * > | `a` + * ^^ + * ``` + * + * @type {State} + */ + function between(code) { + // EOF. + if (code === null) { + return nok(code); + } + + // To do: next major: don’t do spaces in resolve, but when compiling, + // like `markdown-rs`. + // Tabs don’t work, and virtual spaces don’t make sense. + if (code === 32) { + effects.enter('space'); + effects.consume(code); + effects.exit('space'); + return between; + } + + // Closing fence? Could also be data. + if (code === 96) { + token = effects.enter('codeTextSequence'); + size = 0; + return sequenceClose(code); + } + if (markdownLineEnding(code)) { + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return between; + } + + // Data. + effects.enter('codeTextData'); + return data(code); + } + + /** + * In data. + * + * ```markdown + * > | `a` + * ^ + * ``` + * + * @type {State} + */ + function data(code) { + if (code === null || code === 32 || code === 96 || markdownLineEnding(code)) { + effects.exit('codeTextData'); + return between(code); + } + effects.consume(code); + return data; + } + + /** + * In closing sequence. + * + * ```markdown + * > | `a` + * ^ + * ``` + * + * @type {State} + */ + function sequenceClose(code) { + // More. + if (code === 96) { + effects.consume(code); + size++; + return sequenceClose; + } + + // Done! + if (size === sizeOpen) { + effects.exit('codeTextSequence'); + effects.exit('codeText'); + return ok(code); + } + + // More or less accents: mark as data. + token.type = 'codeTextData'; + return data(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark/lib/constructs.js + +var _document, _flowInitial, _flow, _string, _text; +/** + * @typedef {import('micromark-util-types').Extension} Extension + */ + + + + +/** @satisfies {Extension['document']} */ +var constructs_document = (_document = {}, _defineProperty(_document, 42, list), _defineProperty(_document, 43, list), _defineProperty(_document, 45, list), _defineProperty(_document, 48, list), _defineProperty(_document, 49, list), _defineProperty(_document, 50, list), _defineProperty(_document, 51, list), _defineProperty(_document, 52, list), _defineProperty(_document, 53, list), _defineProperty(_document, 54, list), _defineProperty(_document, 55, list), _defineProperty(_document, 56, list), _defineProperty(_document, 57, list), _defineProperty(_document, 62, blockQuote), _document); + +/** @satisfies {Extension['contentInitial']} */ +var contentInitial = _defineProperty({}, 91, definition); + +/** @satisfies {Extension['flowInitial']} */ +var flowInitial = (_flowInitial = {}, _defineProperty(_flowInitial, -2, codeIndented), _defineProperty(_flowInitial, -1, codeIndented), _defineProperty(_flowInitial, 32, codeIndented), _flowInitial); + +/** @satisfies {Extension['flow']} */ +var constructs_flow = (_flow = {}, _defineProperty(_flow, 35, headingAtx), _defineProperty(_flow, 42, thematicBreak), _defineProperty(_flow, 45, [setextUnderline, thematicBreak]), _defineProperty(_flow, 60, htmlFlow), _defineProperty(_flow, 61, setextUnderline), _defineProperty(_flow, 95, thematicBreak), _defineProperty(_flow, 96, codeFenced), _defineProperty(_flow, 126, codeFenced), _flow); + +/** @satisfies {Extension['string']} */ +var constructs_string = (_string = {}, _defineProperty(_string, 38, characterReference), _defineProperty(_string, 92, characterEscape), _string); + +/** @satisfies {Extension['text']} */ +var constructs_text = (_text = {}, _defineProperty(_text, -5, lineEnding), _defineProperty(_text, -4, lineEnding), _defineProperty(_text, -3, lineEnding), _defineProperty(_text, 33, labelStartImage), _defineProperty(_text, 38, characterReference), _defineProperty(_text, 42, attention), _defineProperty(_text, 60, [autolink, htmlText]), _defineProperty(_text, 91, labelStartLink), _defineProperty(_text, 92, [hardBreakEscape, characterEscape]), _defineProperty(_text, 93, labelEnd), _defineProperty(_text, 95, attention), _defineProperty(_text, 96, codeText), _text); + +/** @satisfies {Extension['insideSpan']} */ +var insideSpan = { + null: [attention, resolver] +}; + +/** @satisfies {Extension['attentionMarkers']} */ +var attentionMarkers = { + null: [42, 95] +}; + +/** @satisfies {Extension['disable']} */ +var disable = { + null: [] +}; +;// CONCATENATED MODULE: ./node_modules/micromark/lib/parse.js + +/** + * @typedef {import('micromark-util-types').Create} Create + * @typedef {import('micromark-util-types').FullNormalizedExtension} FullNormalizedExtension + * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct + * @typedef {import('micromark-util-types').ParseContext} ParseContext + * @typedef {import('micromark-util-types').ParseOptions} ParseOptions + */ + + + + + + + + + +/** + * @param {ParseOptions | null | undefined} [options] + * @returns {ParseContext} + */ +function parse_parse(options) { + var settings = options || {}; + var constructs = /** @type {FullNormalizedExtension} */ + combineExtensions([constructs_namespaceObject].concat(toConsumableArray_toConsumableArray(settings.extensions || []))); + + /** @type {ParseContext} */ + var parser = { + defined: [], + lazy: {}, + constructs: constructs, + content: create(content), + document: create(document_document), + flow: create(flow), + string: create(string), + text: create(text_text) + }; + return parser; + + /** + * @param {InitialConstruct} initial + */ + function create(initial) { + return creator; + /** @type {Create} */ + function creator(from) { + return createTokenizer(parser, initial, from); + } + } +} +;// CONCATENATED MODULE: ./node_modules/micromark/lib/preprocess.js +/** + * @typedef {import('micromark-util-types').Chunk} Chunk + * @typedef {import('micromark-util-types').Code} Code + * @typedef {import('micromark-util-types').Encoding} Encoding + * @typedef {import('micromark-util-types').Value} Value + */ + +/** + * @callback Preprocessor + * @param {Value} value + * @param {Encoding | null | undefined} [encoding] + * @param {boolean | null | undefined} [end=false] + * @returns {Array} + */ + +var search = /[\0\t\n\r]/g; + +/** + * @returns {Preprocessor} + */ +function preprocess() { + var column = 1; + var buffer = ''; + /** @type {boolean | undefined} */ + var start = true; + /** @type {boolean | undefined} */ + var atCarriageReturn; + return preprocessor; + + /** @type {Preprocessor} */ + function preprocessor(value, encoding, end) { + /** @type {Array} */ + var chunks = []; + /** @type {RegExpMatchArray | null} */ + var match; + /** @type {number} */ + var next; + /** @type {number} */ + var startPosition; + /** @type {number} */ + var endPosition; + /** @type {Code} */ + var code; + + // @ts-expect-error `Buffer` does allow an encoding. + value = buffer + value.toString(encoding); + startPosition = 0; + buffer = ''; + if (start) { + // To do: `markdown-rs` actually parses BOMs (byte order mark). + if (value.charCodeAt(0) === 65279) { + startPosition++; + } + start = undefined; + } + while (startPosition < value.length) { + search.lastIndex = startPosition; + match = search.exec(value); + endPosition = match && match.index !== undefined ? match.index : value.length; + code = value.charCodeAt(endPosition); + if (!match) { + buffer = value.slice(startPosition); + break; + } + if (code === 10 && startPosition === endPosition && atCarriageReturn) { + chunks.push(-3); + atCarriageReturn = undefined; + } else { + if (atCarriageReturn) { + chunks.push(-5); + atCarriageReturn = undefined; + } + if (startPosition < endPosition) { + chunks.push(value.slice(startPosition, endPosition)); + column += endPosition - startPosition; + } + switch (code) { + case 0: + { + chunks.push(65533); + column++; + break; + } + case 9: + { + next = Math.ceil(column / 4) * 4; + chunks.push(-2); + while (column++ < next) chunks.push(-1); + break; + } + case 10: + { + chunks.push(-4); + column = 1; + break; + } + default: + { + atCarriageReturn = true; + column = 1; + } + } + } + startPosition = endPosition + 1; + } + if (end) { + if (atCarriageReturn) chunks.push(-5); + if (buffer) chunks.push(buffer); + chunks.push(null); + } + return chunks; + } +} +;// CONCATENATED MODULE: ./node_modules/micromark/lib/postprocess.js +/** + * @typedef {import('micromark-util-types').Event} Event + */ + + + +/** + * @param {Array} events + * @returns {Array} + */ +function postprocess(events) { + while (!subtokenize(events)) { + // Empty + } + return events; +} +;// CONCATENATED MODULE: ./node_modules/micromark-util-decode-numeric-character-reference/index.js +/** + * Turn the number (in string form as either hexa- or plain decimal) coming from + * a numeric character reference into a character. + * + * Sort of like `String.fromCharCode(Number.parseInt(value, base))`, but makes + * non-characters and control characters safe. + * + * @param {string} value + * Value to decode. + * @param {number} base + * Numeric base. + * @returns {string} + * Character. + */ +function decodeNumericCharacterReference(value, base) { + var code = Number.parseInt(value, base); + if ( + // C0 except for HT, LF, FF, CR, space. + code < 9 || code === 11 || code > 13 && code < 32 || + // Control character (DEL) of C0, and C1 controls. + code > 126 && code < 160 || + // Lone high surrogates and low surrogates. + code > 55295 && code < 57344 || + // Noncharacters. + code > 64975 && code < 65008 /* eslint-disable no-bitwise */ || (code & 65535) === 65535 || (code & 65535) === 65534 /* eslint-enable no-bitwise */ || + // Out of range + code > 1114111) { + return "\uFFFD"; + } + return String.fromCharCode(code); +} +;// CONCATENATED MODULE: ./node_modules/micromark-util-decode-string/index.js + + +var characterEscapeOrReference = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi; + +/** + * Decode markdown strings (which occur in places such as fenced code info + * strings, destinations, labels, and titles). + * + * The “string” content type allows character escapes and -references. + * This decodes those. + * + * @param {string} value + * Value to decode. + * @returns {string} + * Decoded value. + */ +function decodeString(value) { + return value.replace(characterEscapeOrReference, decode); +} + +/** + * @param {string} $0 + * @param {string} $1 + * @param {string} $2 + * @returns {string} + */ +function decode($0, $1, $2) { + if ($1) { + // Escape. + return $1; + } + + // Reference. + var head = $2.charCodeAt(0); + if (head === 35) { + var _head = $2.charCodeAt(1); + var hex = _head === 120 || _head === 88; + return decodeNumericCharacterReference($2.slice(hex ? 2 : 1), hex ? 16 : 10); + } + return decodeNamedCharacterReference($2) || $0; +} +;// CONCATENATED MODULE: ./node_modules/mdast-util-from-markdown/lib/index.js + +/** + * @typedef {import('micromark-util-types').Encoding} Encoding + * @typedef {import('micromark-util-types').Event} Event + * @typedef {import('micromark-util-types').ParseOptions} ParseOptions + * @typedef {import('micromark-util-types').Token} Token + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Value} Value + * + * @typedef {import('unist').Parent} UnistParent + * @typedef {import('unist').Point} Point + * + * @typedef {import('mdast').PhrasingContent} PhrasingContent + * @typedef {import('mdast').StaticPhrasingContent} StaticPhrasingContent + * @typedef {import('mdast').Content} Content + * @typedef {import('mdast').Break} Break + * @typedef {import('mdast').Blockquote} Blockquote + * @typedef {import('mdast').Code} Code + * @typedef {import('mdast').Definition} Definition + * @typedef {import('mdast').Emphasis} Emphasis + * @typedef {import('mdast').Heading} Heading + * @typedef {import('mdast').HTML} HTML + * @typedef {import('mdast').Image} Image + * @typedef {import('mdast').ImageReference} ImageReference + * @typedef {import('mdast').InlineCode} InlineCode + * @typedef {import('mdast').Link} Link + * @typedef {import('mdast').LinkReference} LinkReference + * @typedef {import('mdast').List} List + * @typedef {import('mdast').ListItem} ListItem + * @typedef {import('mdast').Paragraph} Paragraph + * @typedef {import('mdast').Root} Root + * @typedef {import('mdast').Strong} Strong + * @typedef {import('mdast').Text} Text + * @typedef {import('mdast').ThematicBreak} ThematicBreak + * @typedef {import('mdast').ReferenceType} ReferenceType + * @typedef {import('../index.js').CompileData} CompileData + */ + +/** + * @typedef {Root | Content} Node + * @typedef {Extract} Parent + * + * @typedef {Omit & {type: 'fragment', children: Array}} Fragment + */ + +/** + * @callback Transform + * Extra transform, to change the AST afterwards. + * @param {Root} tree + * Tree to transform. + * @returns {Root | undefined | null | void} + * New tree or nothing (in which case the current tree is used). + * + * @callback Handle + * Handle a token. + * @param {CompileContext} this + * Context. + * @param {Token} token + * Current token. + * @returns {void} + * Nothing. + * + * @typedef {Record} Handles + * Token types mapping to handles + * + * @callback OnEnterError + * Handle the case where the `right` token is open, but it is closed (by the + * `left` token) or because we reached the end of the document. + * @param {Omit} this + * Context. + * @param {Token | undefined} left + * Left token. + * @param {Token} right + * Right token. + * @returns {void} + * Nothing. + * + * @callback OnExitError + * Handle the case where the `right` token is open but it is closed by + * exiting the `left` token. + * @param {Omit} this + * Context. + * @param {Token} left + * Left token. + * @param {Token} right + * Right token. + * @returns {void} + * Nothing. + * + * @typedef {[Token, OnEnterError | undefined]} TokenTuple + * Open token on the stack, with an optional error handler for when + * that token isn’t closed properly. + */ + +/** + * @typedef Config + * Configuration. + * + * We have our defaults, but extensions will add more. + * @property {Array} canContainEols + * Token types where line endings are used. + * @property {Handles} enter + * Opening handles. + * @property {Handles} exit + * Closing handles. + * @property {Array} transforms + * Tree transforms. + * + * @typedef {Partial} Extension + * Change how markdown tokens from micromark are turned into mdast. + * + * @typedef CompileContext + * mdast compiler context. + * @property {Array} stack + * Stack of nodes. + * @property {Array} tokenStack + * Stack of tokens. + * @property {(key: Key) => CompileData[Key]} getData + * Get data from the key/value store. + * @property {(key: Key, value?: CompileData[Key]) => void} setData + * Set data into the key/value store. + * @property {(this: CompileContext) => void} buffer + * Capture some of the output data. + * @property {(this: CompileContext) => string} resume + * Stop capturing and access the output data. + * @property {(this: CompileContext, node: Kind, token: Token, onError?: OnEnterError) => Kind} enter + * Enter a token. + * @property {(this: CompileContext, token: Token, onError?: OnExitError) => Node} exit + * Exit a token. + * @property {TokenizeContext['sliceSerialize']} sliceSerialize + * Get the string value of a token. + * @property {Config} config + * Configuration. + * + * @typedef FromMarkdownOptions + * Configuration for how to build mdast. + * @property {Array> | null | undefined} [mdastExtensions] + * Extensions for this utility to change how tokens are turned into a tree. + * + * @typedef {ParseOptions & FromMarkdownOptions} Options + * Configuration. + */ + +// To do: micromark: create a registry of tokens? +// To do: next major: don’t return given `Node` from `enter`. +// To do: next major: remove setter/getter. + + + + + + + + + + +var lib_own = {}.hasOwnProperty; + +/** + * @param value + * Markdown to parse. + * @param encoding + * Character encoding for when `value` is `Buffer`. + * @param options + * Configuration. + * @returns + * mdast tree. + */ +var fromMarkdown = +/** + * @type {( + * ((value: Value, encoding: Encoding, options?: Options | null | undefined) => Root) & + * ((value: Value, options?: Options | null | undefined) => Root) + * )} + */ + +/** + * @param {Value} value + * @param {Encoding | Options | null | undefined} [encoding] + * @param {Options | null | undefined} [options] + * @returns {Root} + */ +function fromMarkdown(value, encoding, options) { + if (typeof encoding !== 'string') { + options = encoding; + encoding = undefined; + } + return compiler(options)(postprocess(parse_parse(options).document().write(preprocess()(value, encoding, true)))); +}; + +/** + * Note this compiler only understand complete buffering, not streaming. + * + * @param {Options | null | undefined} [options] + */ +function compiler(options) { + /** @type {Config} */ + var config = { + transforms: [], + canContainEols: ['emphasis', 'fragment', 'heading', 'paragraph', 'strong'], + enter: { + autolink: opener(link), + autolinkProtocol: onenterdata, + autolinkEmail: onenterdata, + atxHeading: opener(heading), + blockQuote: opener(blockQuote), + characterEscape: onenterdata, + characterReference: onenterdata, + codeFenced: opener(codeFlow), + codeFencedFenceInfo: buffer, + codeFencedFenceMeta: buffer, + codeIndented: opener(codeFlow, buffer), + codeText: opener(codeText, buffer), + codeTextData: onenterdata, + data: onenterdata, + codeFlowValue: onenterdata, + definition: opener(definition), + definitionDestinationString: buffer, + definitionLabelString: buffer, + definitionTitleString: buffer, + emphasis: opener(emphasis), + hardBreakEscape: opener(hardBreak), + hardBreakTrailing: opener(hardBreak), + htmlFlow: opener(html, buffer), + htmlFlowData: onenterdata, + htmlText: opener(html, buffer), + htmlTextData: onenterdata, + image: opener(image), + label: buffer, + link: opener(link), + listItem: opener(listItem), + listItemValue: onenterlistitemvalue, + listOrdered: opener(list, onenterlistordered), + listUnordered: opener(list), + paragraph: opener(paragraph), + reference: onenterreference, + referenceString: buffer, + resourceDestinationString: buffer, + resourceTitleString: buffer, + setextHeading: opener(heading), + strong: opener(strong), + thematicBreak: opener(thematicBreak) + }, + exit: { + atxHeading: closer(), + atxHeadingSequence: onexitatxheadingsequence, + autolink: closer(), + autolinkEmail: onexitautolinkemail, + autolinkProtocol: onexitautolinkprotocol, + blockQuote: closer(), + characterEscapeValue: onexitdata, + characterReferenceMarkerHexadecimal: onexitcharacterreferencemarker, + characterReferenceMarkerNumeric: onexitcharacterreferencemarker, + characterReferenceValue: onexitcharacterreferencevalue, + codeFenced: closer(onexitcodefenced), + codeFencedFence: onexitcodefencedfence, + codeFencedFenceInfo: onexitcodefencedfenceinfo, + codeFencedFenceMeta: onexitcodefencedfencemeta, + codeFlowValue: onexitdata, + codeIndented: closer(onexitcodeindented), + codeText: closer(onexitcodetext), + codeTextData: onexitdata, + data: onexitdata, + definition: closer(), + definitionDestinationString: onexitdefinitiondestinationstring, + definitionLabelString: onexitdefinitionlabelstring, + definitionTitleString: onexitdefinitiontitlestring, + emphasis: closer(), + hardBreakEscape: closer(onexithardbreak), + hardBreakTrailing: closer(onexithardbreak), + htmlFlow: closer(onexithtmlflow), + htmlFlowData: onexitdata, + htmlText: closer(onexithtmltext), + htmlTextData: onexitdata, + image: closer(onexitimage), + label: onexitlabel, + labelText: onexitlabeltext, + lineEnding: onexitlineending, + link: closer(onexitlink), + listItem: closer(), + listOrdered: closer(), + listUnordered: closer(), + paragraph: closer(), + referenceString: onexitreferencestring, + resourceDestinationString: onexitresourcedestinationstring, + resourceTitleString: onexitresourcetitlestring, + resource: onexitresource, + setextHeading: closer(onexitsetextheading), + setextHeadingLineSequence: onexitsetextheadinglinesequence, + setextHeadingText: onexitsetextheadingtext, + strong: closer(), + thematicBreak: closer() + } + }; + configure(config, (options || {}).mdastExtensions || []); + + /** @type {CompileData} */ + var data = {}; + return compile; + + /** + * Turn micromark events into an mdast tree. + * + * @param {Array} events + * Events. + * @returns {Root} + * mdast tree. + */ + function compile(events) { + /** @type {Root} */ + var tree = { + type: 'root', + children: [] + }; + /** @type {Omit} */ + var context = { + stack: [tree], + tokenStack: [], + config: config, + enter: enter, + exit: exit, + buffer: buffer, + resume: resume, + setData: setData, + getData: getData + }; + /** @type {Array} */ + var listStack = []; + var index = -1; + while (++index < events.length) { + // We preprocess lists to add `listItem` tokens, and to infer whether + // items the list itself are spread out. + if (events[index][1].type === 'listOrdered' || events[index][1].type === 'listUnordered') { + if (events[index][0] === 'enter') { + listStack.push(index); + } else { + var tail = listStack.pop(); + index = prepareList(events, tail, index); + } + } + } + index = -1; + while (++index < events.length) { + var handler = config[events[index][0]]; + if (lib_own.call(handler, events[index][1].type)) { + handler[events[index][1].type].call(Object.assign({ + sliceSerialize: events[index][2].sliceSerialize + }, context), events[index][1]); + } + } + + // Handle tokens still being open. + if (context.tokenStack.length > 0) { + var _tail = context.tokenStack[context.tokenStack.length - 1]; + var _handler = _tail[1] || defaultOnError; + _handler.call(context, undefined, _tail[0]); + } + + // Figure out `root` position. + tree.position = { + start: lib_point(events.length > 0 ? events[0][1].start : { + line: 1, + column: 1, + offset: 0 + }), + end: lib_point(events.length > 0 ? events[events.length - 2][1].end : { + line: 1, + column: 1, + offset: 0 + }) + }; + + // Call transforms. + index = -1; + while (++index < config.transforms.length) { + tree = config.transforms[index](tree) || tree; + } + return tree; + } + + /** + * @param {Array} events + * @param {number} start + * @param {number} length + * @returns {number} + */ + function prepareList(events, start, length) { + var index = start - 1; + var containerBalance = -1; + var listSpread = false; + /** @type {Token | undefined} */ + var listItem; + /** @type {number | undefined} */ + var lineIndex; + /** @type {number | undefined} */ + var firstBlankLineIndex; + /** @type {boolean | undefined} */ + var atMarker; + while (++index <= length) { + var event = events[index]; + if (event[1].type === 'listUnordered' || event[1].type === 'listOrdered' || event[1].type === 'blockQuote') { + if (event[0] === 'enter') { + containerBalance++; + } else { + containerBalance--; + } + atMarker = undefined; + } else if (event[1].type === 'lineEndingBlank') { + if (event[0] === 'enter') { + if (listItem && !atMarker && !containerBalance && !firstBlankLineIndex) { + firstBlankLineIndex = index; + } + atMarker = undefined; + } + } else if (event[1].type === 'linePrefix' || event[1].type === 'listItemValue' || event[1].type === 'listItemMarker' || event[1].type === 'listItemPrefix' || event[1].type === 'listItemPrefixWhitespace') { + // Empty. + } else { + atMarker = undefined; + } + if (!containerBalance && event[0] === 'enter' && event[1].type === 'listItemPrefix' || containerBalance === -1 && event[0] === 'exit' && (event[1].type === 'listUnordered' || event[1].type === 'listOrdered')) { + if (listItem) { + var tailIndex = index; + lineIndex = undefined; + while (tailIndex--) { + var tailEvent = events[tailIndex]; + if (tailEvent[1].type === 'lineEnding' || tailEvent[1].type === 'lineEndingBlank') { + if (tailEvent[0] === 'exit') continue; + if (lineIndex) { + events[lineIndex][1].type = 'lineEndingBlank'; + listSpread = true; + } + tailEvent[1].type = 'lineEnding'; + lineIndex = tailIndex; + } else if (tailEvent[1].type === 'linePrefix' || tailEvent[1].type === 'blockQuotePrefix' || tailEvent[1].type === 'blockQuotePrefixWhitespace' || tailEvent[1].type === 'blockQuoteMarker' || tailEvent[1].type === 'listItemIndent') { + // Empty + } else { + break; + } + } + if (firstBlankLineIndex && (!lineIndex || firstBlankLineIndex < lineIndex)) { + listItem._spread = true; + } + + // Fix position. + listItem.end = Object.assign({}, lineIndex ? events[lineIndex][1].start : event[1].end); + events.splice(lineIndex || index, 0, ['exit', listItem, event[2]]); + index++; + length++; + } + + // Create a new list item. + if (event[1].type === 'listItemPrefix') { + listItem = { + type: 'listItem', + _spread: false, + start: Object.assign({}, event[1].start), + // @ts-expect-error: we’ll add `end` in a second. + end: undefined + }; + // @ts-expect-error: `listItem` is most definitely defined, TS... + events.splice(index, 0, ['enter', listItem, event[2]]); + index++; + length++; + firstBlankLineIndex = undefined; + atMarker = true; + } + } + } + events[start][1]._spread = listSpread; + return length; + } + + /** + * Set data. + * + * @template {keyof CompileData} Key + * Field type. + * @param {Key} key + * Key of field. + * @param {CompileData[Key]} [value] + * New value. + * @returns {void} + * Nothing. + */ + function setData(key, value) { + data[key] = value; + } + + /** + * Get data. + * + * @template {keyof CompileData} Key + * Field type. + * @param {Key} key + * Key of field. + * @returns {CompileData[Key]} + * Value. + */ + function getData(key) { + return data[key]; + } + + /** + * Create an opener handle. + * + * @param {(token: Token) => Node} create + * Create a node. + * @param {Handle} [and] + * Optional function to also run. + * @returns {Handle} + * Handle. + */ + function opener(create, and) { + return open; + + /** + * @this {CompileContext} + * @param {Token} token + * @returns {void} + */ + function open(token) { + enter.call(this, create(token), token); + if (and) and.call(this, token); + } + } + + /** + * @this {CompileContext} + * @returns {void} + */ + function buffer() { + this.stack.push({ + type: 'fragment', + children: [] + }); + } + + /** + * @template {Node} Kind + * Node type. + * @this {CompileContext} + * Context. + * @param {Kind} node + * Node to enter. + * @param {Token} token + * Corresponding token. + * @param {OnEnterError | undefined} [errorHandler] + * Handle the case where this token is open, but it is closed by something else. + * @returns {Kind} + * The given node. + */ + function enter(node, token, errorHandler) { + var parent = this.stack[this.stack.length - 1]; + // @ts-expect-error: Assume `Node` can exist as a child of `parent`. + parent.children.push(node); + this.stack.push(node); + this.tokenStack.push([token, errorHandler]); + // @ts-expect-error: `end` will be patched later. + node.position = { + start: lib_point(token.start) + }; + return node; + } + + /** + * Create a closer handle. + * + * @param {Handle} [and] + * Optional function to also run. + * @returns {Handle} + * Handle. + */ + function closer(and) { + return close; + + /** + * @this {CompileContext} + * @param {Token} token + * @returns {void} + */ + function close(token) { + if (and) and.call(this, token); + exit.call(this, token); + } + } + + /** + * @this {CompileContext} + * Context. + * @param {Token} token + * Corresponding token. + * @param {OnExitError | undefined} [onExitError] + * Handle the case where another token is open. + * @returns {Node} + * The closed node. + */ + function exit(token, onExitError) { + var node = this.stack.pop(); + var open = this.tokenStack.pop(); + if (!open) { + throw new Error('Cannot close `' + token.type + '` (' + stringifyPosition({ + start: token.start, + end: token.end + }) + '): it’s not open'); + } else if (open[0].type !== token.type) { + if (onExitError) { + onExitError.call(this, token, open[0]); + } else { + var handler = open[1] || defaultOnError; + handler.call(this, token, open[0]); + } + } + node.position.end = lib_point(token.end); + return node; + } + + /** + * @this {CompileContext} + * @returns {string} + */ + function resume() { + return lib_toString(this.stack.pop()); + } + + // + // Handlers. + // + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onenterlistordered() { + setData('expectingFirstListItemValue', true); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onenterlistitemvalue(token) { + if (getData('expectingFirstListItemValue')) { + var ancestor = this.stack[this.stack.length - 2]; + ancestor.start = Number.parseInt(this.sliceSerialize(token), 10); + setData('expectingFirstListItemValue'); + } + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitcodefencedfenceinfo() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.lang = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitcodefencedfencemeta() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.meta = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitcodefencedfence() { + // Exit if this is the closing fence. + if (getData('flowCodeInside')) return; + this.buffer(); + setData('flowCodeInside', true); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitcodefenced() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.value = data.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ''); + setData('flowCodeInside'); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitcodeindented() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.value = data.replace(/(\r?\n|\r)$/g, ''); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitdefinitionlabelstring(token) { + var label = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.label = label; + node.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase(); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitdefinitiontitlestring() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.title = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitdefinitiondestinationstring() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.url = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitatxheadingsequence(token) { + var node = this.stack[this.stack.length - 1]; + if (!node.depth) { + var depth = this.sliceSerialize(token).length; + node.depth = depth; + } + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitsetextheadingtext() { + setData('setextHeadingSlurpLineEnding', true); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitsetextheadinglinesequence(token) { + var node = this.stack[this.stack.length - 1]; + node.depth = this.sliceSerialize(token).charCodeAt(0) === 61 ? 1 : 2; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitsetextheading() { + setData('setextHeadingSlurpLineEnding'); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onenterdata(token) { + var node = this.stack[this.stack.length - 1]; + var tail = node.children[node.children.length - 1]; + if (!tail || tail.type !== 'text') { + // Add a new text node. + tail = text(); + // @ts-expect-error: we’ll add `end` later. + tail.position = { + start: lib_point(token.start) + }; + // @ts-expect-error: Assume `parent` accepts `text`. + node.children.push(tail); + } + this.stack.push(tail); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitdata(token) { + var tail = this.stack.pop(); + tail.value += this.sliceSerialize(token); + tail.position.end = lib_point(token.end); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitlineending(token) { + var context = this.stack[this.stack.length - 1]; + // If we’re at a hard break, include the line ending in there. + if (getData('atHardBreak')) { + var tail = context.children[context.children.length - 1]; + tail.position.end = lib_point(token.end); + setData('atHardBreak'); + return; + } + if (!getData('setextHeadingSlurpLineEnding') && config.canContainEols.includes(context.type)) { + onenterdata.call(this, token); + onexitdata.call(this, token); + } + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexithardbreak() { + setData('atHardBreak', true); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexithtmlflow() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.value = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexithtmltext() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.value = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitcodetext() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.value = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitlink() { + var node = this.stack[this.stack.length - 1]; + // Note: there are also `identifier` and `label` fields on this link node! + // These are used / cleaned here. + // To do: clean. + if (getData('inReference')) { + /** @type {ReferenceType} */ + var referenceType = getData('referenceType') || 'shortcut'; + node.type += 'Reference'; + // @ts-expect-error: mutate. + node.referenceType = referenceType; + // @ts-expect-error: mutate. + delete node.url; + delete node.title; + } else { + // @ts-expect-error: mutate. + delete node.identifier; + // @ts-expect-error: mutate. + delete node.label; + } + setData('referenceType'); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitimage() { + var node = this.stack[this.stack.length - 1]; + // Note: there are also `identifier` and `label` fields on this link node! + // These are used / cleaned here. + // To do: clean. + if (getData('inReference')) { + /** @type {ReferenceType} */ + var referenceType = getData('referenceType') || 'shortcut'; + node.type += 'Reference'; + // @ts-expect-error: mutate. + node.referenceType = referenceType; + // @ts-expect-error: mutate. + delete node.url; + delete node.title; + } else { + // @ts-expect-error: mutate. + delete node.identifier; + // @ts-expect-error: mutate. + delete node.label; + } + setData('referenceType'); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitlabeltext(token) { + var string = this.sliceSerialize(token); + var ancestor = this.stack[this.stack.length - 2]; + // @ts-expect-error: stash this on the node, as it might become a reference + // later. + ancestor.label = decodeString(string); + // @ts-expect-error: same as above. + ancestor.identifier = normalizeIdentifier(string).toLowerCase(); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitlabel() { + var fragment = this.stack[this.stack.length - 1]; + var value = this.resume(); + var node = this.stack[this.stack.length - 1]; + // Assume a reference. + setData('inReference', true); + if (node.type === 'link') { + /** @type {Array} */ + // @ts-expect-error: Assume static phrasing content. + var children = fragment.children; + node.children = children; + } else { + node.alt = value; + } + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitresourcedestinationstring() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.url = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitresourcetitlestring() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.title = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitresource() { + setData('inReference'); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onenterreference() { + setData('referenceType', 'collapsed'); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitreferencestring(token) { + var label = this.resume(); + var node = this.stack[this.stack.length - 1]; + // @ts-expect-error: stash this on the node, as it might become a reference + // later. + node.label = label; + // @ts-expect-error: same as above. + node.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase(); + setData('referenceType', 'full'); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitcharacterreferencemarker(token) { + setData('characterReferenceType', token.type); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitcharacterreferencevalue(token) { + var data = this.sliceSerialize(token); + var type = getData('characterReferenceType'); + /** @type {string} */ + var value; + if (type) { + value = decodeNumericCharacterReference(data, type === 'characterReferenceMarkerNumeric' ? 10 : 16); + setData('characterReferenceType'); + } else { + var result = decodeNamedCharacterReference(data); + value = result; + } + var tail = this.stack.pop(); + tail.value += value; + tail.position.end = lib_point(token.end); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitautolinkprotocol(token) { + onexitdata.call(this, token); + var node = this.stack[this.stack.length - 1]; + node.url = this.sliceSerialize(token); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitautolinkemail(token) { + onexitdata.call(this, token); + var node = this.stack[this.stack.length - 1]; + node.url = 'mailto:' + this.sliceSerialize(token); + } + + // + // Creaters. + // + + /** @returns {Blockquote} */ + function blockQuote() { + return { + type: 'blockquote', + children: [] + }; + } + + /** @returns {Code} */ + function codeFlow() { + return { + type: 'code', + lang: null, + meta: null, + value: '' + }; + } + + /** @returns {InlineCode} */ + function codeText() { + return { + type: 'inlineCode', + value: '' + }; + } + + /** @returns {Definition} */ + function definition() { + return { + type: 'definition', + identifier: '', + label: null, + title: null, + url: '' + }; + } + + /** @returns {Emphasis} */ + function emphasis() { + return { + type: 'emphasis', + children: [] + }; + } + + /** @returns {Heading} */ + function heading() { + // @ts-expect-error `depth` will be set later. + return { + type: 'heading', + depth: undefined, + children: [] + }; + } + + /** @returns {Break} */ + function hardBreak() { + return { + type: 'break' + }; + } + + /** @returns {HTML} */ + function html() { + return { + type: 'html', + value: '' + }; + } + + /** @returns {Image} */ + function image() { + return { + type: 'image', + title: null, + url: '', + alt: null + }; + } + + /** @returns {Link} */ + function link() { + return { + type: 'link', + title: null, + url: '', + children: [] + }; + } + + /** + * @param {Token} token + * @returns {List} + */ + function list(token) { + return { + type: 'list', + ordered: token.type === 'listOrdered', + start: null, + spread: token._spread, + children: [] + }; + } + + /** + * @param {Token} token + * @returns {ListItem} + */ + function listItem(token) { + return { + type: 'listItem', + spread: token._spread, + checked: null, + children: [] + }; + } + + /** @returns {Paragraph} */ + function paragraph() { + return { + type: 'paragraph', + children: [] + }; + } + + /** @returns {Strong} */ + function strong() { + return { + type: 'strong', + children: [] + }; + } + + /** @returns {Text} */ + function text() { + return { + type: 'text', + value: '' + }; + } + + /** @returns {ThematicBreak} */ + function thematicBreak() { + return { + type: 'thematicBreak' + }; + } +} + +/** + * Copy a point-like value. + * + * @param {Point} d + * Point-like value. + * @returns {Point} + * unist point. + */ +function lib_point(d) { + return { + line: d.line, + column: d.column, + offset: d.offset + }; +} + +/** + * @param {Config} combined + * @param {Array>} extensions + * @returns {void} + */ +function configure(combined, extensions) { + var index = -1; + while (++index < extensions.length) { + var value = extensions[index]; + if (Array.isArray(value)) { + configure(combined, value); + } else { + extension(combined, value); + } + } +} + +/** + * @param {Config} combined + * @param {Extension} extension + * @returns {void} + */ +function extension(combined, extension) { + /** @type {keyof Extension} */ + var key; + for (key in extension) { + if (lib_own.call(extension, key)) { + if (key === 'canContainEols') { + var right = extension[key]; + if (right) { + var _combined$key; + (_combined$key = combined[key]).push.apply(_combined$key, toConsumableArray_toConsumableArray(right)); + } + } else if (key === 'transforms') { + var _right = extension[key]; + if (_right) { + var _combined$key2; + (_combined$key2 = combined[key]).push.apply(_combined$key2, toConsumableArray_toConsumableArray(_right)); + } + } else if (key === 'enter' || key === 'exit') { + var _right2 = extension[key]; + if (_right2) { + Object.assign(combined[key], _right2); + } + } + } + } +} + +/** @type {OnEnterError} */ +function defaultOnError(left, right) { + if (left) { + throw new Error('Cannot close `' + left.type + '` (' + stringifyPosition({ + start: left.start, + end: left.end + }) + '): a different token (`' + right.type + '`, ' + stringifyPosition({ + start: right.start, + end: right.end + }) + ') is open'); + } else { + throw new Error('Cannot close document, a token (`' + right.type + '`, ' + stringifyPosition({ + start: right.start, + end: right.end + }) + ') is still open'); + } +} +;// CONCATENATED MODULE: ./node_modules/remark-parse/lib/index.js +/** + * @typedef {import('mdast').Root} Root + * @typedef {import('mdast-util-from-markdown').Options} Options + */ + + + +/** + * @this {import('unified').Processor} + * @type {import('unified').Plugin<[Options?] | void[], string, Root>} + */ +function remarkParse(options) { + var _this = this; + /** @type {import('unified').ParserFunction} */ + var parser = function parser(doc) { + // Assume options. + var settings = /** @type {Options} */_this.data('settings'); + return fromMarkdown(doc, Object.assign({}, settings, options, { + // Note: these options are not in the readme. + // The goal is for them to be set by plugins on `data` instead of being + // passed by users. + extensions: _this.data('micromarkExtensions') || [], + mdastExtensions: _this.data('fromMarkdownExtensions') || [] + })); + }; + Object.assign(this, { + Parser: parser + }); +} +;// CONCATENATED MODULE: ./node_modules/micromark-util-sanitize-uri/index.js + + +/** + * Make a value safe for injection as a URL. + * + * This encodes unsafe characters with percent-encoding and skips already + * encoded sequences (see `normalizeUri`). + * Further unsafe characters are encoded as character references (see + * `micromark-util-encode`). + * + * A regex of allowed protocols can be given, in which case the URL is + * sanitized. + * For example, `/^(https?|ircs?|mailto|xmpp)$/i` can be used for `a[href]`, or + * `/^https?$/i` for `img[src]` (this is what `github.com` allows). + * If the URL includes an unknown protocol (one not matched by `protocol`, such + * as a dangerous example, `javascript:`), the value is ignored. + * + * @param {string | undefined} url + * URI to sanitize. + * @param {RegExp | null | undefined} [protocol] + * Allowed protocols. + * @returns {string} + * Sanitized URI. + */ +function sanitizeUri(url, protocol) { + var value = encode(normalizeUri(url || '')); + if (!protocol) { + return value; + } + var colon = value.indexOf(':'); + var questionMark = value.indexOf('?'); + var numberSign = value.indexOf('#'); + var slash = value.indexOf('/'); + if ( + // If there is no protocol, it’s relative. + colon < 0 || + // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol. + slash > -1 && colon > slash || questionMark > -1 && colon > questionMark || numberSign > -1 && colon > numberSign || + // It is a protocol, it should be allowed. + protocol.test(value.slice(0, colon))) { + return value; + } + return ''; +} + +/** + * Normalize a URL. + * + * Encode unsafe characters with percent-encoding, skipping already encoded + * sequences. + * + * @param {string} value + * URI to normalize. + * @returns {string} + * Normalized URI. + */ +function normalizeUri(value) { + /** @type {Array} */ + var result = []; + var index = -1; + var start = 0; + var skip = 0; + while (++index < value.length) { + var code = value.charCodeAt(index); + /** @type {string} */ + var replace = ''; + + // A correct percent encoded value. + if (code === 37 && asciiAlphanumeric(value.charCodeAt(index + 1)) && asciiAlphanumeric(value.charCodeAt(index + 2))) { + skip = 2; + } + // ASCII. + else if (code < 128) { + if (!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(code))) { + replace = String.fromCharCode(code); + } + } + // Astral. + else if (code > 55295 && code < 57344) { + var next = value.charCodeAt(index + 1); + + // A correct surrogate pair. + if (code < 56320 && next > 56319 && next < 57344) { + replace = String.fromCharCode(code, next); + skip = 1; + } + // Lone surrogate. + else { + replace = "\uFFFD"; + } + } + // Unicode. + else { + replace = String.fromCharCode(code); + } + if (replace) { + result.push(value.slice(start, index), encodeURIComponent(replace)); + start = index + skip + 1; + replace = ''; + } + if (skip) { + index += skip; + skip = 0; + } + } + return result.join('') + value.slice(start); +} +;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/footer.js + +/** + * @typedef {import('hast').Element} Element + * @typedef {import('hast').ElementContent} ElementContent + * + * @typedef {import('./state.js').State} State + */ + + + +/** + * Generate a hast footer for called footnote definitions. + * + * @param {State} state + * Info passed around. + * @returns {Element | undefined} + * `section` element or `undefined`. + */ +function footer(state) { + /** @type {Array} */ + var listItems = []; + var index = -1; + while (++index < state.footnoteOrder.length) { + var def = state.footnoteById[state.footnoteOrder[index]]; + if (!def) { + continue; + } + var content = state.all(def); + var id = String(def.identifier).toUpperCase(); + var safeId = normalizeUri(id.toLowerCase()); + var referenceIndex = 0; + /** @type {Array} */ + var backReferences = []; + while (++referenceIndex <= state.footnoteCounts[id]) { + /** @type {Element} */ + var backReference = { + type: 'element', + tagName: 'a', + properties: { + href: '#' + state.clobberPrefix + 'fnref-' + safeId + (referenceIndex > 1 ? '-' + referenceIndex : ''), + dataFootnoteBackref: true, + className: ['data-footnote-backref'], + ariaLabel: state.footnoteBackLabel + }, + children: [{ + type: 'text', + value: '↩' + }] + }; + if (referenceIndex > 1) { + backReference.children.push({ + type: 'element', + tagName: 'sup', + children: [{ + type: 'text', + value: String(referenceIndex) + }] + }); + } + if (backReferences.length > 0) { + backReferences.push({ + type: 'text', + value: ' ' + }); + } + backReferences.push(backReference); + } + var tail = content[content.length - 1]; + if (tail && tail.type === 'element' && tail.tagName === 'p') { + var _tail$children; + var tailTail = tail.children[tail.children.length - 1]; + if (tailTail && tailTail.type === 'text') { + tailTail.value += ' '; + } else { + tail.children.push({ + type: 'text', + value: ' ' + }); + } + (_tail$children = tail.children).push.apply(_tail$children, backReferences); + } else { + content.push.apply(content, backReferences); + } + + /** @type {Element} */ + var listItem = { + type: 'element', + tagName: 'li', + properties: { + id: state.clobberPrefix + 'fn-' + safeId + }, + children: state.wrap(content, true) + }; + state.patch(def, listItem); + listItems.push(listItem); + } + if (listItems.length === 0) { + return; + } + return { + type: 'element', + tagName: 'section', + properties: { + dataFootnotes: true, + className: ['footnotes'] + }, + children: [{ + type: 'element', + tagName: state.footnoteLabelTagName, + properties: _objectSpread2(_objectSpread2({}, JSON.parse(JSON.stringify(state.footnoteLabelProperties))), {}, { + id: 'footnote-label' + }), + children: [{ + type: 'text', + value: state.footnoteLabel + }] + }, { + type: 'text', + value: '\n' + }, { + type: 'element', + tagName: 'ol', + properties: {}, + children: state.wrap(listItems, true) + }, { + type: 'text', + value: '\n' + }] + }; +} +;// CONCATENATED MODULE: ./node_modules/unist-util-is/lib/index.js +/** + * @typedef {import('unist').Node} Node + * @typedef {import('unist').Parent} Parent + */ + +/** + * @typedef {Record} Props + * @typedef {null | undefined | string | Props | TestFunctionAnything | Array} Test + * Check for an arbitrary node, unaware of TypeScript inferral. + * + * @callback TestFunctionAnything + * Check if a node passes a test, unaware of TypeScript inferral. + * @param {unknown} this + * The given context. + * @param {Node} node + * A node. + * @param {number | null | undefined} [index] + * The node’s position in its parent. + * @param {Parent | null | undefined} [parent] + * The node’s parent. + * @returns {boolean | void} + * Whether this node passes the test. + */ + +/** + * @template {Node} Kind + * Node type. + * @typedef {Kind['type'] | Partial | TestFunctionPredicate | Array | TestFunctionPredicate>} PredicateTest + * Check for a node that can be inferred by TypeScript. + */ + +/** + * Check if a node passes a certain test. + * + * @template {Node} Kind + * Node type. + * @callback TestFunctionPredicate + * Complex test function for a node that can be inferred by TypeScript. + * @param {Node} node + * A node. + * @param {number | null | undefined} [index] + * The node’s position in its parent. + * @param {Parent | null | undefined} [parent] + * The node’s parent. + * @returns {node is Kind} + * Whether this node passes the test. + */ + +/** + * @callback AssertAnything + * Check that an arbitrary value is a node, unaware of TypeScript inferral. + * @param {unknown} [node] + * Anything (typically a node). + * @param {number | null | undefined} [index] + * The node’s position in its parent. + * @param {Parent | null | undefined} [parent] + * The node’s parent. + * @returns {boolean} + * Whether this is a node and passes a test. + */ + +/** + * Check if a node is a node and passes a certain node test. + * + * @template {Node} Kind + * Node type. + * @callback AssertPredicate + * Check that an arbitrary value is a specific node, aware of TypeScript. + * @param {unknown} [node] + * Anything (typically a node). + * @param {number | null | undefined} [index] + * The node’s position in its parent. + * @param {Parent | null | undefined} [parent] + * The node’s parent. + * @returns {node is Kind} + * Whether this is a node and passes a test. + */ + +/** + * Check if `node` is a `Node` and whether it passes the given test. + * + * @param node + * Thing to check, typically `Node`. + * @param test + * A check for a specific node. + * @param index + * The node’s position in its parent. + * @param parent + * The node’s parent. + * @returns + * Whether `node` is a node and passes a test. + */ +var is = +/** + * @type {( + * (() => false) & + * ((node: unknown, test: PredicateTest, index: number, parent: Parent, context?: unknown) => node is Kind) & + * ((node: unknown, test: PredicateTest, index?: null | undefined, parent?: null | undefined, context?: unknown) => node is Kind) & + * ((node: unknown, test: Test, index: number, parent: Parent, context?: unknown) => boolean) & + * ((node: unknown, test?: Test, index?: null | undefined, parent?: null | undefined, context?: unknown) => boolean) + * )} + */ + +/** + * @param {unknown} [node] + * @param {Test} [test] + * @param {number | null | undefined} [index] + * @param {Parent | null | undefined} [parent] + * @param {unknown} [context] + * @returns {boolean} + */ +// eslint-disable-next-line max-params +function is(node, test, index, parent, context) { + var check = convert(test); + if (index !== undefined && index !== null && (typeof index !== 'number' || index < 0 || index === Number.POSITIVE_INFINITY)) { + throw new Error('Expected positive finite index'); + } + if (parent !== undefined && parent !== null && (!is(parent) || !parent.children)) { + throw new Error('Expected parent node'); + } + if ((parent === undefined || parent === null) !== (index === undefined || index === null)) { + throw new Error('Expected both parent and index'); + } + + // @ts-expect-error Looks like a node. + return node && node.type && typeof node.type === 'string' ? Boolean(check.call(context, node, index, parent)) : false; +}; + +/** + * Generate an assertion from a test. + * + * Useful if you’re going to test many nodes, for example when creating a + * utility where something else passes a compatible test. + * + * The created function is a bit faster because it expects valid input only: + * a `node`, `index`, and `parent`. + * + * @param test + * * when nullish, checks if `node` is a `Node`. + * * when `string`, works like passing `(node) => node.type === test`. + * * when `function` checks if function passed the node is true. + * * when `object`, checks that all keys in test are in node, and that they have (strictly) equal values. + * * when `array`, checks if any one of the subtests pass. + * @returns + * An assertion. + */ +var convert = +/** + * @type {( + * ((test: PredicateTest) => AssertPredicate) & + * ((test?: Test) => AssertAnything) + * )} + */ + +/** + * @param {Test} [test] + * @returns {AssertAnything} + */ +function convert(test) { + if (test === undefined || test === null) { + return ok; + } + if (typeof test === 'string') { + return typeFactory(test); + } + if (typeof test === 'object') { + return Array.isArray(test) ? anyFactory(test) : propsFactory(test); + } + if (typeof test === 'function') { + return castFactory(test); + } + throw new Error('Expected function, string, or object as test'); +}; + +/** + * @param {Array} tests + * @returns {AssertAnything} + */ +function anyFactory(tests) { + /** @type {Array} */ + var checks = []; + var index = -1; + while (++index < tests.length) { + checks[index] = convert(tests[index]); + } + return castFactory(any); + + /** + * @this {unknown} + * @param {Array} parameters + * @returns {boolean} + */ + function any() { + var index = -1; + for (var _len = arguments.length, parameters = new Array(_len), _key = 0; _key < _len; _key++) { + parameters[_key] = arguments[_key]; + } + while (++index < checks.length) { + var _checks$index; + if ((_checks$index = checks[index]).call.apply(_checks$index, [this].concat(parameters))) return true; + } + return false; + } +} + +/** + * Turn an object into a test for a node with a certain fields. + * + * @param {Props} check + * @returns {AssertAnything} + */ +function propsFactory(check) { + return castFactory(all); + + /** + * @param {Node} node + * @returns {boolean} + */ + function all(node) { + /** @type {string} */ + var key; + for (key in check) { + // @ts-expect-error: hush, it sure works as an index. + if (node[key] !== check[key]) return false; + } + return true; + } +} + +/** + * Turn a string into a test for a node with a certain type. + * + * @param {string} check + * @returns {AssertAnything} + */ +function typeFactory(check) { + return castFactory(type); + + /** + * @param {Node} node + */ + function type(node) { + return node && node.type === check; + } +} + +/** + * Turn a custom test into a test for a node that passes that test. + * + * @param {TestFunctionAnything} check + * @returns {AssertAnything} + */ +function castFactory(check) { + return assertion; + + /** + * @this {unknown} + * @param {unknown} node + * @param {Array} parameters + * @returns {boolean} + */ + function assertion(node) { + for (var _len2 = arguments.length, parameters = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + parameters[_key2 - 1] = arguments[_key2]; + } + return Boolean(node && typeof node === 'object' && 'type' in node && + // @ts-expect-error: fine. + Boolean(check.call.apply(check, [this, node].concat(parameters)))); + } +} +function ok() { + return true; +} +;// CONCATENATED MODULE: ./node_modules/unist-util-visit-parents/lib/color.browser.js +/** + * @param {string} d + * @returns {string} + */ +function color_browser_color(d) { + return d; +} +;// CONCATENATED MODULE: ./node_modules/unist-util-visit-parents/lib/index.js +/** + * @typedef {import('unist').Node} Node + * @typedef {import('unist').Parent} Parent + * @typedef {import('unist-util-is').Test} Test + */ + +/** + * @typedef {boolean | 'skip'} Action + * Union of the action types. + * + * @typedef {number} Index + * Move to the sibling at `index` next (after node itself is completely + * traversed). + * + * Useful if mutating the tree, such as removing the node the visitor is + * currently on, or any of its previous siblings. + * Results less than 0 or greater than or equal to `children.length` stop + * traversing the parent. + * + * @typedef {[(Action | null | undefined | void)?, (Index | null | undefined)?]} ActionTuple + * List with one or two values, the first an action, the second an index. + * + * @typedef {Action | ActionTuple | Index | null | undefined | void} VisitorResult + * Any value that can be returned from a visitor. + */ + +/** + * @template {Node} [Visited=Node] + * Visited node type. + * @template {Parent} [Ancestor=Parent] + * Ancestor type. + * @callback Visitor + * Handle a node (matching `test`, if given). + * + * Visitors are free to transform `node`. + * They can also transform the parent of node (the last of `ancestors`). + * + * Replacing `node` itself, if `SKIP` is not returned, still causes its + * descendants to be walked (which is a bug). + * + * When adding or removing previous siblings of `node` (or next siblings, in + * case of reverse), the `Visitor` should return a new `Index` to specify the + * sibling to traverse after `node` is traversed. + * Adding or removing next siblings of `node` (or previous siblings, in case + * of reverse) is handled as expected without needing to return a new `Index`. + * + * Removing the children property of an ancestor still results in them being + * traversed. + * @param {Visited} node + * Found node. + * @param {Array} ancestors + * Ancestors of `node`. + * @returns {VisitorResult} + * What to do next. + * + * An `Index` is treated as a tuple of `[CONTINUE, Index]`. + * An `Action` is treated as a tuple of `[Action]`. + * + * Passing a tuple back only makes sense if the `Action` is `SKIP`. + * When the `Action` is `EXIT`, that action can be returned. + * When the `Action` is `CONTINUE`, `Index` can be returned. + */ + +/** + * @template {Node} [Tree=Node] + * Tree type. + * @template {Test} [Check=string] + * Test type. + * @typedef {Visitor, Check>, Extract, Parent>>} BuildVisitor + * Build a typed `Visitor` function from a tree and a test. + * + * It will infer which values are passed as `node` and which as `parents`. + */ + + + + +/** + * Continue traversing as normal. + */ +var CONTINUE = true; + +/** + * Stop traversing immediately. + */ +var EXIT = false; + +/** + * Do not traverse this node’s children. + */ +var SKIP = 'skip'; + +/** + * Visit nodes, with ancestral information. + * + * This algorithm performs *depth-first* *tree traversal* in *preorder* + * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**). + * + * You can choose for which nodes `visitor` is called by passing a `test`. + * For complex tests, you should test yourself in `visitor`, as it will be + * faster and will have improved type information. + * + * Walking the tree is an intensive task. + * Make use of the return values of the visitor when possible. + * Instead of walking a tree multiple times, walk it once, use `unist-util-is` + * to check if a node matches, and then perform different operations. + * + * You can change the tree. + * See `Visitor` for more info. + * + * @param tree + * Tree to traverse. + * @param test + * `unist-util-is`-compatible test + * @param visitor + * Handle each node. + * @param reverse + * Traverse in reverse preorder (NRL) instead of the default preorder (NLR). + * @returns + * Nothing. + */ +var visitParents = +/** + * @type {( + * ((tree: Tree, test: Check, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void) & + * ((tree: Tree, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void) + * )} + */ + +/** + * @param {Node} tree + * @param {Test} test + * @param {Visitor} visitor + * @param {boolean | null | undefined} [reverse] + * @returns {void} + */ +function visitParents(tree, test, visitor, reverse) { + if (typeof test === 'function' && typeof visitor !== 'function') { + reverse = visitor; + // @ts-expect-error no visitor given, so `visitor` is test. + visitor = test; + test = null; + } + var is = convert(test); + var step = reverse ? -1 : 1; + factory(tree, undefined, [])(); + + /** + * @param {Node} node + * @param {number | undefined} index + * @param {Array} parents + */ + function factory(node, index, parents) { + /** @type {Record} */ + // @ts-expect-error: hush + var value = node && typeof node === 'object' ? node : {}; + if (typeof value.type === 'string') { + var name = + // `hast` + typeof value.tagName === 'string' ? value.tagName : + // `xast` + typeof value.name === 'string' ? value.name : undefined; + Object.defineProperty(visit, 'name', { + value: 'node (' + color_browser_color(node.type + (name ? '<' + name + '>' : '')) + ')' + }); + } + return visit; + function visit() { + /** @type {ActionTuple} */ + var result = []; + /** @type {ActionTuple} */ + var subresult; + /** @type {number} */ + var offset; + /** @type {Array} */ + var grandparents; + if (!test || is(node, index, parents[parents.length - 1] || null)) { + result = toResult(visitor(node, parents)); + if (result[0] === EXIT) { + return result; + } + } + + // @ts-expect-error looks like a parent. + if (node.children && result[0] !== SKIP) { + // @ts-expect-error looks like a parent. + offset = (reverse ? node.children.length : -1) + step; + // @ts-expect-error looks like a parent. + grandparents = parents.concat(node); + + // @ts-expect-error looks like a parent. + while (offset > -1 && offset < node.children.length) { + // @ts-expect-error looks like a parent. + subresult = factory(node.children[offset], offset, grandparents)(); + if (subresult[0] === EXIT) { + return subresult; + } + offset = typeof subresult[1] === 'number' ? subresult[1] : offset + step; + } + } + return result; + } + } +}; + +/** + * Turn a return value into a clean result. + * + * @param {VisitorResult} value + * Valid return values from visitors. + * @returns {ActionTuple} + * Clean result. + */ +function toResult(value) { + if (Array.isArray(value)) { + return value; + } + if (typeof value === 'number') { + return [CONTINUE, value]; + } + return [value]; +} +;// CONCATENATED MODULE: ./node_modules/unist-util-visit/lib/index.js +/** + * @typedef {import('unist').Node} Node + * @typedef {import('unist').Parent} Parent + * @typedef {import('unist-util-is').Test} Test + * @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult + */ + +/** + * Check if `Child` can be a child of `Ancestor`. + * + * Returns the ancestor when `Child` can be a child of `Ancestor`, or returns + * `never`. + * + * @template {Node} Ancestor + * Node type. + * @template {Node} Child + * Node type. + * @typedef {( + * Ancestor extends Parent + * ? Child extends Ancestor['children'][number] + * ? Ancestor + * : never + * : never + * )} ParentsOf + */ + +/** + * @template {Node} [Visited=Node] + * Visited node type. + * @template {Parent} [Ancestor=Parent] + * Ancestor type. + * @callback Visitor + * Handle a node (matching `test`, if given). + * + * Visitors are free to transform `node`. + * They can also transform `parent`. + * + * Replacing `node` itself, if `SKIP` is not returned, still causes its + * descendants to be walked (which is a bug). + * + * When adding or removing previous siblings of `node` (or next siblings, in + * case of reverse), the `Visitor` should return a new `Index` to specify the + * sibling to traverse after `node` is traversed. + * Adding or removing next siblings of `node` (or previous siblings, in case + * of reverse) is handled as expected without needing to return a new `Index`. + * + * Removing the children property of `parent` still results in them being + * traversed. + * @param {Visited} node + * Found node. + * @param {Visited extends Node ? number | null : never} index + * Index of `node` in `parent`. + * @param {Ancestor extends Node ? Ancestor | null : never} parent + * Parent of `node`. + * @returns {VisitorResult} + * What to do next. + * + * An `Index` is treated as a tuple of `[CONTINUE, Index]`. + * An `Action` is treated as a tuple of `[Action]`. + * + * Passing a tuple back only makes sense if the `Action` is `SKIP`. + * When the `Action` is `EXIT`, that action can be returned. + * When the `Action` is `CONTINUE`, `Index` can be returned. + */ + +/** + * Build a typed `Visitor` function from a node and all possible parents. + * + * It will infer which values are passed as `node` and which as `parent`. + * + * @template {Node} Visited + * Node type. + * @template {Parent} Ancestor + * Parent type. + * @typedef {Visitor>} BuildVisitorFromMatch + */ + +/** + * Build a typed `Visitor` function from a list of descendants and a test. + * + * It will infer which values are passed as `node` and which as `parent`. + * + * @template {Node} Descendant + * Node type. + * @template {Test} Check + * Test type. + * @typedef {( + * BuildVisitorFromMatch< + * import('unist-util-visit-parents/complex-types.js').Matches, + * Extract + * > + * )} BuildVisitorFromDescendants + */ + +/** + * Build a typed `Visitor` function from a tree and a test. + * + * It will infer which values are passed as `node` and which as `parent`. + * + * @template {Node} [Tree=Node] + * Node type. + * @template {Test} [Check=string] + * Test type. + * @typedef {( + * BuildVisitorFromDescendants< + * import('unist-util-visit-parents/complex-types.js').InclusiveDescendant, + * Check + * > + * )} BuildVisitor + */ + + + +/** + * Visit nodes. + * + * This algorithm performs *depth-first* *tree traversal* in *preorder* + * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**). + * + * You can choose for which nodes `visitor` is called by passing a `test`. + * For complex tests, you should test yourself in `visitor`, as it will be + * faster and will have improved type information. + * + * Walking the tree is an intensive task. + * Make use of the return values of the visitor when possible. + * Instead of walking a tree multiple times, walk it once, use `unist-util-is` + * to check if a node matches, and then perform different operations. + * + * You can change the tree. + * See `Visitor` for more info. + * + * @param tree + * Tree to traverse. + * @param test + * `unist-util-is`-compatible test + * @param visitor + * Handle each node. + * @param reverse + * Traverse in reverse preorder (NRL) instead of the default preorder (NLR). + * @returns + * Nothing. + */ +var visit = +/** + * @type {( + * ((tree: Tree, test: Check, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void) & + * ((tree: Tree, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void) + * )} + */ + +/** + * @param {Node} tree + * @param {Test} test + * @param {Visitor} visitor + * @param {boolean | null | undefined} [reverse] + * @returns {void} + */ +function visit(tree, test, visitor, reverse) { + if (typeof test === 'function' && typeof visitor !== 'function') { + reverse = visitor; + visitor = test; + test = null; + } + visitParents(tree, test, overload, reverse); + + /** + * @param {Node} node + * @param {Array} parents + */ + function overload(node, parents) { + var parent = parents[parents.length - 1]; + return visitor(node, parent ? parent.children.indexOf(node) : null, parent); + } +}; + +;// CONCATENATED MODULE: ./node_modules/unist-util-position/lib/index.js +/** + * @typedef {import('unist').Position} Position + * @typedef {import('unist').Node} Node + * @typedef {import('unist').Point} Point + */ + +/** + * @typedef NodeLike + * @property {string} type + * @property {PositionLike | null | undefined} [position] + * + * @typedef PositionLike + * @property {PointLike | null | undefined} [start] + * @property {PointLike | null | undefined} [end] + * + * @typedef PointLike + * @property {number | null | undefined} [line] + * @property {number | null | undefined} [column] + * @property {number | null | undefined} [offset] + */ + +/** + * Get the starting point of `node`. + * + * @param node + * Node. + * @returns + * Point. + */ +var pointStart = unist_util_position_lib_point('start'); + +/** + * Get the ending point of `node`. + * + * @param node + * Node. + * @returns + * Point. + */ +var pointEnd = unist_util_position_lib_point('end'); + +/** + * Get the positional info of `node`. + * + * @param {NodeLike | Node | null | undefined} [node] + * Node. + * @returns {Position} + * Position. + */ +function unist_util_position_lib_position(node) { + return { + start: pointStart(node), + end: pointEnd(node) + }; +} + +/** + * Get the positional info of `node`. + * + * @param {'start' | 'end'} type + * Side. + * @returns + * Getter. + */ +function unist_util_position_lib_point(type) { + return point; + + /** + * Get the point info of `node` at a bound side. + * + * @param {NodeLike | Node | null | undefined} [node] + * @returns {Point} + */ + function point(node) { + var point = node && node.position && node.position[type] || {}; + + // To do: next major: don’t return points when invalid. + return { + // @ts-expect-error: in practice, null is allowed. + line: point.line || null, + // @ts-expect-error: in practice, null is allowed. + column: point.column || null, + // @ts-expect-error: in practice, null is allowed. + offset: point.offset > -1 ? point.offset : null + }; + } +} +;// CONCATENATED MODULE: ./node_modules/unist-util-generated/lib/index.js +/** + * @typedef PointLike + * @property {number | null | undefined} [line] + * @property {number | null | undefined} [column] + * @property {number | null | undefined} [offset] + * + * @typedef PositionLike + * @property {PointLike | null | undefined} [start] + * @property {PointLike | null | undefined} [end] + * + * @typedef NodeLike + * @property {PositionLike | null | undefined} [position] + */ + +/** + * Check if `node` is generated. + * + * @param {NodeLike | null | undefined} [node] + * Node to check. + * @returns {boolean} + * Whether `node` is generated (does not have positional info). + */ +function generated(node) { + return !node || !node.position || !node.position.start || !node.position.start.line || !node.position.start.column || !node.position.end || !node.position.end.line || !node.position.end.column; +} +;// CONCATENATED MODULE: ./node_modules/mdast-util-definitions/lib/index.js +/** + * @typedef {import('mdast').Root} Root + * @typedef {import('mdast').Content} Content + * @typedef {import('mdast').Definition} Definition + */ + +/** + * @typedef {Root | Content} Node + * + * @callback GetDefinition + * Get a definition by identifier. + * @param {string | null | undefined} [identifier] + * Identifier of definition. + * @returns {Definition | null} + * Definition corresponding to `identifier` or `null`. + */ + + +var mdast_util_definitions_lib_own = {}.hasOwnProperty; + +/** + * Find definitions in `tree`. + * + * Uses CommonMark precedence, which means that earlier definitions are + * preferred over duplicate later definitions. + * + * @param {Node} tree + * Tree to check. + * @returns {GetDefinition} + * Getter. + */ +function definitions(tree) { + /** @type {Record} */ + var cache = Object.create(null); + if (!tree || !tree.type) { + throw new Error('mdast-util-definitions expected node'); + } + visit(tree, 'definition', function (definition) { + var id = clean(definition.identifier); + if (id && !mdast_util_definitions_lib_own.call(cache, id)) { + cache[id] = definition; + } + }); + return definition; + + /** @type {GetDefinition} */ + function definition(identifier) { + var id = clean(identifier); + // To do: next major: return `undefined` when not found. + return id && mdast_util_definitions_lib_own.call(cache, id) ? cache[id] : null; + } +} + +/** + * @param {string | null | undefined} [value] + * @returns {string} + */ +function clean(value) { + return String(value || '').toUpperCase(); +} +;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +/** + * @typedef {import('hast').Element} Element + * @typedef {import('mdast').Blockquote} Blockquote + * @typedef {import('../state.js').State} State + */ + +/** + * Turn an mdast `blockquote` node into hast. + * + * @param {State} state + * Info passed around. + * @param {Blockquote} node + * mdast node. + * @returns {Element} + * hast node. + */ +function blockquote(state, node) { + /** @type {Element} */ + var result = { + type: 'element', + tagName: 'blockquote', + properties: {}, + children: state.wrap(state.all(node), true) + }; + state.patch(node, result); + return state.applyData(node, result); +} +;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/break.js +/** + * @typedef {import('hast').Element} Element + * @typedef {import('hast').Text} Text + * @typedef {import('mdast').Break} Break + * @typedef {import('../state.js').State} State + */ + +/** + * Turn an mdast `break` node into hast. + * + * @param {State} state + * Info passed around. + * @param {Break} node + * mdast node. + * @returns {Array} + * hast element content. + */ +function hardBreak(state, node) { + /** @type {Element} */ + var result = { + type: 'element', + tagName: 'br', + properties: {}, + children: [] + }; + state.patch(node, result); + return [state.applyData(node, result), { + type: 'text', + value: '\n' + }]; +} +;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/code.js +/** + * @typedef {import('hast').Element} Element + * @typedef {import('hast').Properties} Properties + * @typedef {import('mdast').Code} Code + * @typedef {import('../state.js').State} State + + */ + +/** + * Turn an mdast `code` node into hast. + * + * @param {State} state + * Info passed around. + * @param {Code} node + * mdast node. + * @returns {Element} + * hast node. + */ +function code(state, node) { + var value = node.value ? node.value + '\n' : ''; + // To do: next major, use `node.lang` w/o regex, the splitting’s been going + // on for years in remark now. + var lang = node.lang ? node.lang.match(/^[^ \t]+(?=[ \t]|$)/) : null; + /** @type {Properties} */ + var properties = {}; + if (lang) { + properties.className = ['language-' + lang]; + } + + // Create ``. + /** @type {Element} */ + var result = { + type: 'element', + tagName: 'code', + properties: properties, + children: [{ + type: 'text', + value: value + }] + }; + if (node.meta) { + result.data = { + meta: node.meta + }; + } + state.patch(node, result); + result = state.applyData(node, result); + + // Create `
`.
+  result = {
+    type: 'element',
+    tagName: 'pre',
+    properties: {},
+    children: [result]
+  };
+  state.patch(node, result);
+  return result;
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/delete.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').Delete} Delete
+ * @typedef {import('../state.js').State} State
+
+ */
+
+/**
+ * Turn an mdast `delete` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Delete} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function strikethrough(state, node) {
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'del',
+    properties: {},
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/emphasis.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').Emphasis} Emphasis
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `emphasis` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Emphasis} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function emphasis(state, node) {
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'em',
+    properties: {},
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js
+/**
+ * @typedef {import('mdast').FootnoteReference} FootnoteReference
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+/**
+ * Turn an mdast `footnoteReference` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {FootnoteReference} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function footnoteReference(state, node) {
+  var id = String(node.identifier).toUpperCase();
+  var safeId = normalizeUri(id.toLowerCase());
+  var index = state.footnoteOrder.indexOf(id);
+  /** @type {number} */
+  var counter;
+  if (index === -1) {
+    state.footnoteOrder.push(id);
+    state.footnoteCounts[id] = 1;
+    counter = state.footnoteOrder.length;
+  } else {
+    state.footnoteCounts[id]++;
+    counter = index + 1;
+  }
+  var reuseCounter = state.footnoteCounts[id];
+
+  /** @type {Element} */
+  var link = {
+    type: 'element',
+    tagName: 'a',
+    properties: {
+      href: '#' + state.clobberPrefix + 'fn-' + safeId,
+      id: state.clobberPrefix + 'fnref-' + safeId + (reuseCounter > 1 ? '-' + reuseCounter : ''),
+      dataFootnoteRef: true,
+      ariaDescribedBy: ['footnote-label']
+    },
+    children: [{
+      type: 'text',
+      value: String(counter)
+    }]
+  };
+  state.patch(node, link);
+
+  /** @type {Element} */
+  var sup = {
+    type: 'element',
+    tagName: 'sup',
+    properties: {},
+    children: [link]
+  };
+  state.patch(node, sup);
+  return state.applyData(node, sup);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/footnote.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').Footnote} Footnote
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+// To do: when both:
+// * 
+// * 
+// …are archived, remove this (also from mdast).
+// These inline notes are not used in GFM.
+
+/**
+ * Turn an mdast `footnote` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Footnote} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function footnote(state, node) {
+  var footnoteById = state.footnoteById;
+  var no = 1;
+  while (no in footnoteById) no++;
+  var identifier = String(no);
+  footnoteById[identifier] = {
+    type: 'footnoteDefinition',
+    identifier: identifier,
+    children: [{
+      type: 'paragraph',
+      children: node.children
+    }],
+    position: node.position
+  };
+  return footnoteReference(state, {
+    type: 'footnoteReference',
+    identifier: identifier,
+    position: node.position
+  });
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/heading.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').Heading} Heading
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `heading` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Heading} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function heading(state, node) {
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'h' + node.depth,
+    properties: {},
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/html.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').HTML} Html
+ * @typedef {import('../state.js').State} State
+ * @typedef {import('../../index.js').Raw} Raw
+ */
+
+/**
+ * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise
+ * nothing).
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Html} node
+ *   mdast node.
+ * @returns {Raw | Element | null}
+ *   hast node.
+ */
+function html(state, node) {
+  if (state.dangerous) {
+    /** @type {Raw} */
+    var result = {
+      type: 'raw',
+      value: node.value
+    };
+    state.patch(node, result);
+    return state.applyData(node, result);
+  }
+
+  // To do: next major: return `undefined`.
+  return null;
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/revert.js
+/**
+ * @typedef {import('hast').ElementContent} ElementContent
+ *
+ * @typedef {import('mdast').Content} Content
+ * @typedef {import('mdast').Reference} Reference
+ * @typedef {import('mdast').Root} Root
+ *
+ * @typedef {import('./state.js').State} State
+ */
+
+/**
+ * @typedef {Root | Content} Nodes
+ * @typedef {Extract} References
+ */
+
+// To do: next major: always return array.
+
+/**
+ * Return the content of a reference without definition as plain text.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {References} node
+ *   Reference node (image, link).
+ * @returns {ElementContent | Array}
+ *   hast content.
+ */
+function revert(state, node) {
+  var subtype = node.referenceType;
+  var suffix = ']';
+  if (subtype === 'collapsed') {
+    suffix += '[]';
+  } else if (subtype === 'full') {
+    suffix += '[' + (node.label || node.identifier) + ']';
+  }
+  if (node.type === 'imageReference') {
+    return {
+      type: 'text',
+      value: '![' + node.alt + suffix
+    };
+  }
+  var contents = state.all(node);
+  var head = contents[0];
+  if (head && head.type === 'text') {
+    head.value = '[' + head.value;
+  } else {
+    contents.unshift({
+      type: 'text',
+      value: '['
+    });
+  }
+  var tail = contents[contents.length - 1];
+  if (tail && tail.type === 'text') {
+    tail.value += suffix;
+  } else {
+    contents.push({
+      type: 'text',
+      value: suffix
+    });
+  }
+  return contents;
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/image-reference.js
+/**
+ * @typedef {import('hast').ElementContent} ElementContent
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').Properties} Properties
+ * @typedef {import('mdast').ImageReference} ImageReference
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+
+/**
+ * Turn an mdast `imageReference` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {ImageReference} node
+ *   mdast node.
+ * @returns {ElementContent | Array}
+ *   hast node.
+ */
+function imageReference(state, node) {
+  var def = state.definition(node.identifier);
+  if (!def) {
+    return revert(state, node);
+  }
+
+  /** @type {Properties} */
+  var properties = {
+    src: normalizeUri(def.url || ''),
+    alt: node.alt
+  };
+  if (def.title !== null && def.title !== undefined) {
+    properties.title = def.title;
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'img',
+    properties: properties,
+    children: []
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/image.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').Properties} Properties
+ * @typedef {import('mdast').Image} Image
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+/**
+ * Turn an mdast `image` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Image} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function image_image(state, node) {
+  /** @type {Properties} */
+  var properties = {
+    src: normalizeUri(node.url)
+  };
+  if (node.alt !== null && node.alt !== undefined) {
+    properties.alt = node.alt;
+  }
+  if (node.title !== null && node.title !== undefined) {
+    properties.title = node.title;
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'img',
+    properties: properties,
+    children: []
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/inline-code.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').Text} Text
+ * @typedef {import('mdast').InlineCode} InlineCode
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `inlineCode` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {InlineCode} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function inlineCode(state, node) {
+  /** @type {Text} */
+  var text = {
+    type: 'text',
+    value: node.value.replace(/\r?\n|\r/g, ' ')
+  };
+  state.patch(node, text);
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'code',
+    properties: {},
+    children: [text]
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/link-reference.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').ElementContent} ElementContent
+ * @typedef {import('hast').Properties} Properties
+ * @typedef {import('mdast').LinkReference} LinkReference
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+
+/**
+ * Turn an mdast `linkReference` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {LinkReference} node
+ *   mdast node.
+ * @returns {ElementContent | Array}
+ *   hast node.
+ */
+function linkReference(state, node) {
+  var def = state.definition(node.identifier);
+  if (!def) {
+    return revert(state, node);
+  }
+
+  /** @type {Properties} */
+  var properties = {
+    href: normalizeUri(def.url || '')
+  };
+  if (def.title !== null && def.title !== undefined) {
+    properties.title = def.title;
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'a',
+    properties: properties,
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/link.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').Properties} Properties
+ * @typedef {import('mdast').Link} Link
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+/**
+ * Turn an mdast `link` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Link} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function link_link(state, node) {
+  /** @type {Properties} */
+  var properties = {
+    href: normalizeUri(node.url)
+  };
+  if (node.title !== null && node.title !== undefined) {
+    properties.title = node.title;
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'a',
+    properties: properties,
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/list-item.js
+
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').ElementContent} ElementContent
+ * @typedef {import('hast').Properties} Properties
+ * @typedef {import('mdast').Content} Content
+ * @typedef {import('mdast').ListItem} ListItem
+ * @typedef {import('mdast').Parent} Parent
+ * @typedef {import('mdast').Root} Root
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * @typedef {Root | Content} Nodes
+ * @typedef {Extract} Parents
+ */
+
+/**
+ * Turn an mdast `listItem` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {ListItem} node
+ *   mdast node.
+ * @param {Parents | null | undefined} parent
+ *   Parent of `node`.
+ * @returns {Element}
+ *   hast node.
+ */
+function listItem(state, node, parent) {
+  var results = state.all(node);
+  var loose = parent ? listLoose(parent) : listItemLoose(node);
+  /** @type {Properties} */
+  var properties = {};
+  /** @type {Array} */
+  var children = [];
+  if (typeof node.checked === 'boolean') {
+    var head = results[0];
+    /** @type {Element} */
+    var paragraph;
+    if (head && head.type === 'element' && head.tagName === 'p') {
+      paragraph = head;
+    } else {
+      paragraph = {
+        type: 'element',
+        tagName: 'p',
+        properties: {},
+        children: []
+      };
+      results.unshift(paragraph);
+    }
+    if (paragraph.children.length > 0) {
+      paragraph.children.unshift({
+        type: 'text',
+        value: ' '
+      });
+    }
+    paragraph.children.unshift({
+      type: 'element',
+      tagName: 'input',
+      properties: {
+        type: 'checkbox',
+        checked: node.checked,
+        disabled: true
+      },
+      children: []
+    });
+
+    // According to github-markdown-css, this class hides bullet.
+    // See: .
+    properties.className = ['task-list-item'];
+  }
+  var index = -1;
+  while (++index < results.length) {
+    var child = results[index];
+
+    // Add eols before nodes, except if this is a loose, first paragraph.
+    if (loose || index !== 0 || child.type !== 'element' || child.tagName !== 'p') {
+      children.push({
+        type: 'text',
+        value: '\n'
+      });
+    }
+    if (child.type === 'element' && child.tagName === 'p' && !loose) {
+      children.push.apply(children, toConsumableArray_toConsumableArray(child.children));
+    } else {
+      children.push(child);
+    }
+  }
+  var tail = results[results.length - 1];
+
+  // Add a final eol.
+  if (tail && (loose || tail.type !== 'element' || tail.tagName !== 'p')) {
+    children.push({
+      type: 'text',
+      value: '\n'
+    });
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'li',
+    properties: properties,
+    children: children
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+
+/**
+ * @param {Parents} node
+ * @return {Boolean}
+ */
+function listLoose(node) {
+  var loose = false;
+  if (node.type === 'list') {
+    loose = node.spread || false;
+    var children = node.children;
+    var index = -1;
+    while (!loose && ++index < children.length) {
+      loose = listItemLoose(children[index]);
+    }
+  }
+  return loose;
+}
+
+/**
+ * @param {ListItem} node
+ * @return {Boolean}
+ */
+function listItemLoose(node) {
+  var spread = node.spread;
+  return spread === undefined || spread === null ? node.children.length > 1 : spread;
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/list.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').Properties} Properties
+ * @typedef {import('mdast').List} List
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `list` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {List} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function list_list(state, node) {
+  /** @type {Properties} */
+  var properties = {};
+  var results = state.all(node);
+  var index = -1;
+  if (typeof node.start === 'number' && node.start !== 1) {
+    properties.start = node.start;
+  }
+
+  // Like GitHub, add a class for custom styling.
+  while (++index < results.length) {
+    var child = results[index];
+    if (child.type === 'element' && child.tagName === 'li' && child.properties && Array.isArray(child.properties.className) && child.properties.className.includes('task-list-item')) {
+      properties.className = ['contains-task-list'];
+      break;
+    }
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: node.ordered ? 'ol' : 'ul',
+    properties: properties,
+    children: state.wrap(results, true)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/paragraph.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').Paragraph} Paragraph
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `paragraph` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Paragraph} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function paragraph(state, node) {
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'p',
+    properties: {},
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/root.js
+/**
+ * @typedef {import('hast').Root} HastRoot
+ * @typedef {import('hast').Element} HastElement
+ * @typedef {import('mdast').Root} MdastRoot
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `root` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {MdastRoot} node
+ *   mdast node.
+ * @returns {HastRoot | HastElement}
+ *   hast node.
+ */
+function root(state, node) {
+  /** @type {HastRoot} */
+  var result = {
+    type: 'root',
+    children: state.wrap(state.all(node))
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/strong.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').Strong} Strong
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `strong` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Strong} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function strong(state, node) {
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'strong',
+    properties: {},
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/table.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').Table} Table
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+/**
+ * Turn an mdast `table` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Table} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function table(state, node) {
+  var rows = state.all(node);
+  var firstRow = rows.shift();
+  /** @type {Array} */
+  var tableContent = [];
+  if (firstRow) {
+    /** @type {Element} */
+    var head = {
+      type: 'element',
+      tagName: 'thead',
+      properties: {},
+      children: state.wrap([firstRow], true)
+    };
+    state.patch(node.children[0], head);
+    tableContent.push(head);
+  }
+  if (rows.length > 0) {
+    /** @type {Element} */
+    var body = {
+      type: 'element',
+      tagName: 'tbody',
+      properties: {},
+      children: state.wrap(rows, true)
+    };
+    var start = pointStart(node.children[1]);
+    var end = pointEnd(node.children[node.children.length - 1]);
+    if (start.line && end.line) body.position = {
+      start: start,
+      end: end
+    };
+    tableContent.push(body);
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'table',
+    properties: {},
+    children: state.wrap(tableContent, true)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/table-row.js
+/**
+ * @typedef {import('hast').Properties} Properties
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').ElementContent} ElementContent
+ * @typedef {import('mdast').Content} Content
+ * @typedef {import('mdast').Parent} Parent
+ * @typedef {import('mdast').Root} Root
+ * @typedef {import('mdast').TableRow} TableRow
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * @typedef {Root | Content} Nodes
+ * @typedef {Extract} Parents
+ */
+
+/**
+ * Turn an mdast `tableRow` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {TableRow} node
+ *   mdast node.
+ * @param {Parents | null | undefined} parent
+ *   Parent of `node`.
+ * @returns {Element}
+ *   hast node.
+ */
+function tableRow(state, node, parent) {
+  var siblings = parent ? parent.children : undefined;
+  // Generate a body row when without parent.
+  var rowIndex = siblings ? siblings.indexOf(node) : 1;
+  var tagName = rowIndex === 0 ? 'th' : 'td';
+  var align = parent && parent.type === 'table' ? parent.align : undefined;
+  var length = align ? align.length : node.children.length;
+  var cellIndex = -1;
+  /** @type {Array} */
+  var cells = [];
+  while (++cellIndex < length) {
+    // Note: can also be undefined.
+    var cell = node.children[cellIndex];
+    /** @type {Properties} */
+    var properties = {};
+    var alignValue = align ? align[cellIndex] : undefined;
+    if (alignValue) {
+      properties.align = alignValue;
+    }
+
+    /** @type {Element} */
+    var _result = {
+      type: 'element',
+      tagName: tagName,
+      properties: properties,
+      children: []
+    };
+    if (cell) {
+      _result.children = state.all(cell);
+      state.patch(cell, _result);
+      _result = state.applyData(node, _result);
+    }
+    cells.push(_result);
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'tr',
+    properties: {},
+    children: state.wrap(cells, true)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/table-cell.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').TableCell} TableCell
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `tableCell` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {TableCell} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function tableCell(state, node) {
+  // Note: this function is normally not called: see `table-row` for how rows
+  // and their cells are compiled.
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'td',
+    // Assume body cell.
+    properties: {},
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/trim-lines/index.js
+var tab = 9; /* `\t` */
+var space = 32; /* ` ` */
+
+/**
+ * Remove initial and final spaces and tabs at the line breaks in `value`.
+ * Does not trim initial and final spaces and tabs of the value itself.
+ *
+ * @param {string} value
+ *   Value to trim.
+ * @returns {string}
+ *   Trimmed value.
+ */
+function trimLines(value) {
+  var source = String(value);
+  var search = /\r?\n|\r/g;
+  var match = search.exec(source);
+  var last = 0;
+  /** @type {Array} */
+  var lines = [];
+  while (match) {
+    lines.push(trimLine(source.slice(last, match.index), last > 0, true), match[0]);
+    last = match.index + match[0].length;
+    match = search.exec(source);
+  }
+  lines.push(trimLine(source.slice(last), last > 0, false));
+  return lines.join('');
+}
+
+/**
+ * @param {string} value
+ *   Line to trim.
+ * @param {boolean} start
+ *   Whether to trim the start of the line.
+ * @param {boolean} end
+ *   Whether to trim the end of the line.
+ * @returns {string}
+ *   Trimmed line.
+ */
+function trimLine(value, start, end) {
+  var startIndex = 0;
+  var endIndex = value.length;
+  if (start) {
+    var code = value.codePointAt(startIndex);
+    while (code === tab || code === space) {
+      startIndex++;
+      code = value.codePointAt(startIndex);
+    }
+  }
+  if (end) {
+    var _code = value.codePointAt(endIndex - 1);
+    while (_code === tab || _code === space) {
+      endIndex--;
+      _code = value.codePointAt(endIndex - 1);
+    }
+  }
+  return endIndex > startIndex ? value.slice(startIndex, endIndex) : '';
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/text.js
+/**
+ * @typedef {import('hast').Element} HastElement
+ * @typedef {import('hast').Text} HastText
+ * @typedef {import('mdast').Text} MdastText
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+/**
+ * Turn an mdast `text` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {MdastText} node
+ *   mdast node.
+ * @returns {HastText | HastElement}
+ *   hast node.
+ */
+function handlers_text_text(state, node) {
+  /** @type {HastText} */
+  var result = {
+    type: 'text',
+    value: trimLines(String(node.value))
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').ThematicBreak} ThematicBreak
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `thematicBreak` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {ThematicBreak} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function thematic_break_thematicBreak(state, node) {
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'hr',
+    properties: {},
+    children: []
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/index.js
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/**
+ * Default handlers for nodes.
+ */
+var handlers = {
+  blockquote: blockquote,
+  break: hardBreak,
+  code: code,
+  delete: strikethrough,
+  emphasis: emphasis,
+  footnoteReference: footnoteReference,
+  footnote: footnote,
+  heading: heading,
+  html: html,
+  imageReference: imageReference,
+  image: image_image,
+  inlineCode: inlineCode,
+  linkReference: linkReference,
+  link: link_link,
+  listItem: listItem,
+  list: list_list,
+  paragraph: paragraph,
+  root: root,
+  strong: strong,
+  table: table,
+  tableCell: tableCell,
+  tableRow: tableRow,
+  text: handlers_text_text,
+  thematicBreak: thematic_break_thematicBreak,
+  toml: ignore,
+  yaml: ignore,
+  definition: ignore,
+  footnoteDefinition: ignore
+};
+
+// Return nothing for nodes that are ignored.
+function ignore() {
+  // To do: next major: return `undefined`.
+  return null;
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/state.js
+
+
+/**
+ * @typedef {import('hast').Content} HastContent
+ * @typedef {import('hast').Element} HastElement
+ * @typedef {import('hast').ElementContent} HastElementContent
+ * @typedef {import('hast').Properties} HastProperties
+ * @typedef {import('hast').Root} HastRoot
+ * @typedef {import('hast').Text} HastText
+ *
+ * @typedef {import('mdast').Content} MdastContent
+ * @typedef {import('mdast').Definition} MdastDefinition
+ * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition
+ * @typedef {import('mdast').Parent} MdastParent
+ * @typedef {import('mdast').Root} MdastRoot
+ */
+
+/**
+ * @typedef {HastRoot | HastContent} HastNodes
+ * @typedef {MdastRoot | MdastContent} MdastNodes
+ * @typedef {Extract} MdastParents
+ *
+ * @typedef EmbeddedHastFields
+ *   hast fields.
+ * @property {string | null | undefined} [hName]
+ *   Generate a specific element with this tag name instead.
+ * @property {HastProperties | null | undefined} [hProperties]
+ *   Generate an element with these properties instead.
+ * @property {Array | null | undefined} [hChildren]
+ *   Generate an element with this content instead.
+ *
+ * @typedef {Record & EmbeddedHastFields} MdastData
+ *   mdast data with embedded hast fields.
+ *
+ * @typedef {MdastNodes & {data?: MdastData | null | undefined}} MdastNodeWithData
+ *   mdast node with embedded hast data.
+ *
+ * @typedef PointLike
+ *   Point-like value.
+ * @property {number | null | undefined} [line]
+ *   Line.
+ * @property {number | null | undefined} [column]
+ *   Column.
+ * @property {number | null | undefined} [offset]
+ *   Offset.
+ *
+ * @typedef PositionLike
+ *   Position-like value.
+ * @property {PointLike | null | undefined} [start]
+ *   Point-like value.
+ * @property {PointLike | null | undefined} [end]
+ *   Point-like value.
+ *
+ * @callback Handler
+ *   Handle a node.
+ * @param {State} state
+ *   Info passed around.
+ * @param {any} node
+ *   mdast node to handle.
+ * @param {MdastParents | null | undefined} parent
+ *   Parent of `node`.
+ * @returns {HastElementContent | Array | null | undefined}
+ *   hast node.
+ *
+ * @callback HFunctionProps
+ *   Signature of `state` for when props are passed.
+ * @param {MdastNodes | PositionLike | null | undefined} node
+ *   mdast node or unist position.
+ * @param {string} tagName
+ *   HTML tag name.
+ * @param {HastProperties} props
+ *   Properties.
+ * @param {Array | null | undefined} [children]
+ *   hast content.
+ * @returns {HastElement}
+ *   Compiled element.
+ *
+ * @callback HFunctionNoProps
+ *   Signature of `state` for when no props are passed.
+ * @param {MdastNodes | PositionLike | null | undefined} node
+ *   mdast node or unist position.
+ * @param {string} tagName
+ *   HTML tag name.
+ * @param {Array | null | undefined} [children]
+ *   hast content.
+ * @returns {HastElement}
+ *   Compiled element.
+ *
+ * @typedef HFields
+ *   Info on `state`.
+ * @property {boolean} dangerous
+ *   Whether HTML is allowed.
+ * @property {string} clobberPrefix
+ *   Prefix to use to prevent DOM clobbering.
+ * @property {string} footnoteLabel
+ *   Label to use to introduce the footnote section.
+ * @property {string} footnoteLabelTagName
+ *   HTML used for the footnote label.
+ * @property {HastProperties} footnoteLabelProperties
+ *   Properties on the HTML tag used for the footnote label.
+ * @property {string} footnoteBackLabel
+ *   Label to use from backreferences back to their footnote call.
+ * @property {(identifier: string) => MdastDefinition | null} definition
+ *   Definition cache.
+ * @property {Record} footnoteById
+ *   Footnote definitions by their identifier.
+ * @property {Array} footnoteOrder
+ *   Identifiers of order when footnote calls first appear in tree order.
+ * @property {Record} footnoteCounts
+ *   Counts for how often the same footnote was called.
+ * @property {Handlers} handlers
+ *   Applied handlers.
+ * @property {Handler} unknownHandler
+ *   Handler for any none not in `passThrough` or otherwise handled.
+ * @property {(from: MdastNodes, node: HastNodes) => void} patch
+ *   Copy a node’s positional info.
+ * @property {(from: MdastNodes, to: Type) => Type | HastElement} applyData
+ *   Honor the `data` of `from`, and generate an element instead of `node`.
+ * @property {(node: MdastNodes, parent: MdastParents | null | undefined) => HastElementContent | Array | null | undefined} one
+ *   Transform an mdast node to hast.
+ * @property {(node: MdastNodes) => Array} all
+ *   Transform the children of an mdast parent to hast.
+ * @property {(nodes: Array, loose?: boolean | null | undefined) => Array} wrap
+ *   Wrap `nodes` with line endings between each node, adds initial/final line endings when `loose`.
+ * @property {(left: MdastNodeWithData | PositionLike | null | undefined, right: HastElementContent) => HastElementContent} augment
+ *   Like `state` but lower-level and usable on non-elements.
+ *   Deprecated: use `patch` and `applyData`.
+ * @property {Array} passThrough
+ *   List of node types to pass through untouched (except for their children).
+ *
+ * @typedef Options
+ *   Configuration (optional).
+ * @property {boolean | null | undefined} [allowDangerousHtml=false]
+ *   Whether to persist raw HTML in markdown in the hast tree.
+ * @property {string | null | undefined} [clobberPrefix='user-content-']
+ *   Prefix to use before the `id` attribute on footnotes to prevent it from
+ *   *clobbering*.
+ * @property {string | null | undefined} [footnoteBackLabel='Back to content']
+ *   Label to use from backreferences back to their footnote call (affects
+ *   screen readers).
+ * @property {string | null | undefined} [footnoteLabel='Footnotes']
+ *   Label to use for the footnotes section (affects screen readers).
+ * @property {HastProperties | null | undefined} [footnoteLabelProperties={className: ['sr-only']}]
+ *   Properties to use on the footnote label (note that `id: 'footnote-label'`
+ *   is always added as footnote calls use it with `aria-describedby` to
+ *   provide an accessible label).
+ * @property {string | null | undefined} [footnoteLabelTagName='h2']
+ *   Tag name to use for the footnote label.
+ * @property {Handlers | null | undefined} [handlers]
+ *   Extra handlers for nodes.
+ * @property {Array | null | undefined} [passThrough]
+ *   List of custom mdast node types to pass through (keep) in hast (note that
+ *   the node itself is passed, but eventual children are transformed).
+ * @property {Handler | null | undefined} [unknownHandler]
+ *   Handler for all unknown nodes.
+ *
+ * @typedef {Record} Handlers
+ *   Handle nodes.
+ *
+ * @typedef {HFunctionProps & HFunctionNoProps & HFields} State
+ *   Info passed around.
+ */
+
+
+
+
+
+
+var state_own = {}.hasOwnProperty;
+
+/**
+ * Create `state` from an mdast tree.
+ *
+ * @param {MdastNodes} tree
+ *   mdast node to transform.
+ * @param {Options | null | undefined} [options]
+ *   Configuration.
+ * @returns {State}
+ *   `state` function.
+ */
+function createState(tree, options) {
+  var settings = options || {};
+  var dangerous = settings.allowDangerousHtml || false;
+  /** @type {Record} */
+  var footnoteById = {};
+
+  // To do: next major: add `options` to state, remove:
+  // `dangerous`, `clobberPrefix`, `footnoteLabel`, `footnoteLabelTagName`,
+  // `footnoteLabelProperties`, `footnoteBackLabel`, `passThrough`,
+  // `unknownHandler`.
+
+  // To do: next major: move to `state.options.allowDangerousHtml`.
+  state.dangerous = dangerous;
+  // To do: next major: move to `state.options`.
+  state.clobberPrefix = settings.clobberPrefix === undefined || settings.clobberPrefix === null ? 'user-content-' : settings.clobberPrefix;
+  // To do: next major: move to `state.options`.
+  state.footnoteLabel = settings.footnoteLabel || 'Footnotes';
+  // To do: next major: move to `state.options`.
+  state.footnoteLabelTagName = settings.footnoteLabelTagName || 'h2';
+  // To do: next major: move to `state.options`.
+  state.footnoteLabelProperties = settings.footnoteLabelProperties || {
+    className: ['sr-only']
+  };
+  // To do: next major: move to `state.options`.
+  state.footnoteBackLabel = settings.footnoteBackLabel || 'Back to content';
+  // To do: next major: move to `state.options`.
+  state.unknownHandler = settings.unknownHandler;
+  // To do: next major: move to `state.options`.
+  state.passThrough = settings.passThrough;
+  state.handlers = _objectSpread2(_objectSpread2({}, handlers), settings.handlers);
+
+  // To do: next major: replace utility with `definitionById` object, so we
+  // only walk once (as we need footnotes too).
+  state.definition = definitions(tree);
+  state.footnoteById = footnoteById;
+  /** @type {Array} */
+  state.footnoteOrder = [];
+  /** @type {Record} */
+  state.footnoteCounts = {};
+  state.patch = patch;
+  state.applyData = applyData;
+  state.one = oneBound;
+  state.all = allBound;
+  state.wrap = state_wrap;
+  // To do: next major: remove `augment`.
+  state.augment = augment;
+  visit(tree, 'footnoteDefinition', function (definition) {
+    var id = String(definition.identifier).toUpperCase();
+
+    // Mimick CM behavior of link definitions.
+    // See: .
+    if (!state_own.call(footnoteById, id)) {
+      footnoteById[id] = definition;
+    }
+  });
+
+  // @ts-expect-error Hush, it’s fine!
+  return state;
+
+  /**
+   * Finalise the created `right`, a hast node, from `left`, an mdast node.
+   *
+   * @param {MdastNodeWithData | PositionLike | null | undefined} left
+   * @param {HastElementContent} right
+   * @returns {HastElementContent}
+   */
+  /* c8 ignore start */
+  // To do: next major: remove.
+  function augment(left, right) {
+    // Handle `data.hName`, `data.hProperties, `data.hChildren`.
+    if (left && 'data' in left && left.data) {
+      /** @type {MdastData} */
+      var data = left.data;
+      if (data.hName) {
+        if (right.type !== 'element') {
+          right = {
+            type: 'element',
+            tagName: '',
+            properties: {},
+            children: []
+          };
+        }
+        right.tagName = data.hName;
+      }
+      if (right.type === 'element' && data.hProperties) {
+        right.properties = _objectSpread2(_objectSpread2({}, right.properties), data.hProperties);
+      }
+      if ('children' in right && right.children && data.hChildren) {
+        right.children = data.hChildren;
+      }
+    }
+    if (left) {
+      var ctx = 'type' in left ? left : {
+        position: left
+      };
+      if (!generated(ctx)) {
+        // @ts-expect-error: fine.
+        right.position = {
+          start: pointStart(ctx),
+          end: pointEnd(ctx)
+        };
+      }
+    }
+    return right;
+  }
+  /* c8 ignore stop */
+
+  /**
+   * Create an element for `node`.
+   *
+   * @type {HFunctionProps}
+   */
+  /* c8 ignore start */
+  // To do: next major: remove.
+  function state(node, tagName, props, children) {
+    if (Array.isArray(props)) {
+      children = props;
+      props = {};
+    }
+
+    // @ts-expect-error augmenting an element yields an element.
+    return augment(node, {
+      type: 'element',
+      tagName: tagName,
+      properties: props || {},
+      children: children || []
+    });
+  }
+  /* c8 ignore stop */
+
+  /**
+   * Transform an mdast node into a hast node.
+   *
+   * @param {MdastNodes} node
+   *   mdast node.
+   * @param {MdastParents | null | undefined} [parent]
+   *   Parent of `node`.
+   * @returns {HastElementContent | Array | null | undefined}
+   *   Resulting hast node.
+   */
+  function oneBound(node, parent) {
+    // @ts-expect-error: that’s a state :)
+    return state_one(state, node, parent);
+  }
+
+  /**
+   * Transform the children of an mdast node into hast nodes.
+   *
+   * @param {MdastNodes} parent
+   *   mdast node to compile
+   * @returns {Array}
+   *   Resulting hast nodes.
+   */
+  function allBound(parent) {
+    // @ts-expect-error: that’s a state :)
+    return state_all(state, parent);
+  }
+}
+
+/**
+ * Copy a node’s positional info.
+ *
+ * @param {MdastNodes} from
+ *   mdast node to copy from.
+ * @param {HastNodes} to
+ *   hast node to copy into.
+ * @returns {void}
+ *   Nothing.
+ */
+function patch(from, to) {
+  if (from.position) to.position = unist_util_position_lib_position(from);
+}
+
+/**
+ * Honor the `data` of `from` and maybe generate an element instead of `to`.
+ *
+ * @template {HastNodes} Type
+ *   Node type.
+ * @param {MdastNodes} from
+ *   mdast node to use data from.
+ * @param {Type} to
+ *   hast node to change.
+ * @returns {Type | HastElement}
+ *   Nothing.
+ */
+function applyData(from, to) {
+  /** @type {Type | HastElement} */
+  var result = to;
+
+  // Handle `data.hName`, `data.hProperties, `data.hChildren`.
+  if (from && from.data) {
+    var hName = from.data.hName;
+    var hChildren = from.data.hChildren;
+    var hProperties = from.data.hProperties;
+    if (typeof hName === 'string') {
+      // Transforming the node resulted in an element with a different name
+      // than wanted:
+      if (result.type === 'element') {
+        result.tagName = hName;
+      }
+      // Transforming the node resulted in a non-element, which happens for
+      // raw, text, and root nodes (unless custom handlers are passed).
+      // The intent is likely to keep the content around (otherwise: pass
+      // `hChildren`).
+      else {
+        result = {
+          type: 'element',
+          tagName: hName,
+          properties: {},
+          children: []
+        };
+
+        // To do: next major: take the children from the `root`, or inject the
+        // raw/text/comment or so into the element?
+        // if ('children' in node) {
+        //   // @ts-expect-error: assume `children` are allowed in elements.
+        //   result.children = node.children
+        // } else {
+        //   // @ts-expect-error: assume `node` is allowed in elements.
+        //   result.children.push(node)
+        // }
+      }
+    }
+
+    if (result.type === 'element' && hProperties) {
+      result.properties = _objectSpread2(_objectSpread2({}, result.properties), hProperties);
+    }
+    if ('children' in result && result.children && hChildren !== null && hChildren !== undefined) {
+      // @ts-expect-error: assume valid children are defined.
+      result.children = hChildren;
+    }
+  }
+  return result;
+}
+
+/**
+ * Transform an mdast node into a hast node.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {MdastNodes} node
+ *   mdast node.
+ * @param {MdastParents | null | undefined} [parent]
+ *   Parent of `node`.
+ * @returns {HastElementContent | Array | null | undefined}
+ *   Resulting hast node.
+ */
+// To do: next major: do not expose, keep bound.
+function state_one(state, node, parent) {
+  var type = node && node.type;
+
+  // Fail on non-nodes.
+  if (!type) {
+    throw new Error('Expected node, got `' + node + '`');
+  }
+  if (state_own.call(state.handlers, type)) {
+    return state.handlers[type](state, node, parent);
+  }
+  if (state.passThrough && state.passThrough.includes(type)) {
+    // To do: next major: deep clone.
+    // @ts-expect-error: types of passed through nodes are expected to be added manually.
+    return 'children' in node ? _objectSpread2(_objectSpread2({}, node), {}, {
+      children: state_all(state, node)
+    }) : node;
+  }
+  if (state.unknownHandler) {
+    return state.unknownHandler(state, node, parent);
+  }
+  return defaultUnknownHandler(state, node);
+}
+
+/**
+ * Transform the children of an mdast node into hast nodes.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {MdastNodes} parent
+ *   mdast node to compile
+ * @returns {Array}
+ *   Resulting hast nodes.
+ */
+// To do: next major: do not expose, keep bound.
+function state_all(state, parent) {
+  /** @type {Array} */
+  var values = [];
+  if ('children' in parent) {
+    var nodes = parent.children;
+    var index = -1;
+    while (++index < nodes.length) {
+      var result = state_one(state, nodes[index], parent);
+
+      // To do: see if we van clean this? Can we merge texts?
+      if (result) {
+        if (index && nodes[index - 1].type === 'break') {
+          if (!Array.isArray(result) && result.type === 'text') {
+            result.value = result.value.replace(/^\s+/, '');
+          }
+          if (!Array.isArray(result) && result.type === 'element') {
+            var head = result.children[0];
+            if (head && head.type === 'text') {
+              head.value = head.value.replace(/^\s+/, '');
+            }
+          }
+        }
+        if (Array.isArray(result)) {
+          values.push.apply(values, toConsumableArray_toConsumableArray(result));
+        } else {
+          values.push(result);
+        }
+      }
+    }
+  }
+  return values;
+}
+
+/**
+ * Transform an unknown node.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {MdastNodes} node
+ *   Unknown mdast node.
+ * @returns {HastText | HastElement}
+ *   Resulting hast node.
+ */
+function defaultUnknownHandler(state, node) {
+  var data = node.data || {};
+  /** @type {HastText | HastElement} */
+  var result = 'value' in node && !(state_own.call(data, 'hProperties') || state_own.call(data, 'hChildren')) ? {
+    type: 'text',
+    value: node.value
+  } : {
+    type: 'element',
+    tagName: 'div',
+    properties: {},
+    children: state_all(state, node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+
+/**
+ * Wrap `nodes` with line endings between each node.
+ *
+ * @template {HastContent} Type
+ *   Node type.
+ * @param {Array} nodes
+ *   List of nodes to wrap.
+ * @param {boolean | null | undefined} [loose=false]
+ *   Whether to add line endings at start and end.
+ * @returns {Array}
+ *   Wrapped nodes.
+ */
+function state_wrap(nodes, loose) {
+  /** @type {Array} */
+  var result = [];
+  var index = -1;
+  if (loose) {
+    result.push({
+      type: 'text',
+      value: '\n'
+    });
+  }
+  while (++index < nodes.length) {
+    if (index) result.push({
+      type: 'text',
+      value: '\n'
+    });
+    result.push(nodes[index]);
+  }
+  if (loose && nodes.length > 0) {
+    result.push({
+      type: 'text',
+      value: '\n'
+    });
+  }
+  return result;
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/index.js
+/**
+ * @typedef {import('hast').Content} HastContent
+ * @typedef {import('hast').Root} HastRoot
+ *
+ * @typedef {import('mdast').Content} MdastContent
+ * @typedef {import('mdast').Root} MdastRoot
+ *
+ * @typedef {import('./state.js').Options} Options
+ */
+
+/**
+ * @typedef {HastRoot | HastContent} HastNodes
+ * @typedef {MdastRoot | MdastContent} MdastNodes
+ */
+
+
+
+
+/**
+ * Transform mdast to hast.
+ *
+ * ##### Notes
+ *
+ * ###### HTML
+ *
+ * Raw HTML is available in mdast as `html` nodes and can be embedded in hast
+ * as semistandard `raw` nodes.
+ * Most utilities ignore `raw` nodes but two notable ones don’t:
+ *
+ * *   `hast-util-to-html` also has an option `allowDangerousHtml` which will
+ *     output the raw HTML.
+ *     This is typically discouraged as noted by the option name but is useful
+ *     if you completely trust authors
+ * *   `hast-util-raw` can handle the raw embedded HTML strings by parsing them
+ *     into standard hast nodes (`element`, `text`, etc).
+ *     This is a heavy task as it needs a full HTML parser, but it is the only
+ *     way to support untrusted content
+ *
+ * ###### Footnotes
+ *
+ * Many options supported here relate to footnotes.
+ * Footnotes are not specified by CommonMark, which we follow by default.
+ * They are supported by GitHub, so footnotes can be enabled in markdown with
+ * `mdast-util-gfm`.
+ *
+ * The options `footnoteBackLabel` and `footnoteLabel` define natural language
+ * that explains footnotes, which is hidden for sighted users but shown to
+ * assistive technology.
+ * When your page is not in English, you must define translated values.
+ *
+ * Back references use ARIA attributes, but the section label itself uses a
+ * heading that is hidden with an `sr-only` class.
+ * To show it to sighted users, define different attributes in
+ * `footnoteLabelProperties`.
+ *
+ * ###### Clobbering
+ *
+ * Footnotes introduces a problem, as it links footnote calls to footnote
+ * definitions on the page through `id` attributes generated from user content,
+ * which results in DOM clobbering.
+ *
+ * DOM clobbering is this:
+ *
+ * ```html
+ * 

+ * + * ``` + * + * Elements by their ID are made available by browsers on the `window` object, + * which is a security risk. + * Using a prefix solves this problem. + * + * More information on how to handle clobbering and the prefix is explained in + * Example: headings (DOM clobbering) in `rehype-sanitize`. + * + * ###### Unknown nodes + * + * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`. + * The default behavior for unknown nodes is: + * + * * when the node has a `value` (and doesn’t have `data.hName`, + * `data.hProperties`, or `data.hChildren`, see later), create a hast `text` + * node + * * otherwise, create a `
` element (which could be changed with + * `data.hName`), with its children mapped from mdast to hast as well + * + * This behavior can be changed by passing an `unknownHandler`. + * + * @param {MdastNodes} tree + * mdast tree. + * @param {Options | null | undefined} [options] + * Configuration. + * @returns {HastNodes | null | undefined} + * hast tree. + */ +// To do: next major: always return a single `root`. +function toHast(tree, options) { + var state = createState(tree, options); + var node = state.one(tree, null); + var foot = footer(state); + if (foot) { + // @ts-expect-error If there’s a footer, there were definitions, meaning block + // content. + // So assume `node` is a parent node. + node.children.push({ + type: 'text', + value: '\n' + }, foot); + } + + // To do: next major: always return root? + return Array.isArray(node) ? { + type: 'root', + children: node + } : node; +} +;// CONCATENATED MODULE: ./node_modules/remark-rehype/lib/index.js +/** + * @typedef {import('hast').Root} HastRoot + * @typedef {import('mdast').Root} MdastRoot + * @typedef {import('mdast-util-to-hast').Options} Options + * @typedef {import('unified').Processor} Processor + * + * @typedef {import('mdast-util-to-hast')} DoNotTouchAsThisImportIncludesRawInTree + */ + + + +// Note: the `` overload doesn’t seem to work :'( + +/** + * Plugin that turns markdown into HTML to support rehype. + * + * * If a destination processor is given, that processor runs with a new HTML + * (hast) tree (bridge-mode). + * As the given processor runs with a hast tree, and rehype plugins support + * hast, that means rehype plugins can be used with the given processor. + * The hast tree is discarded in the end. + * It’s highly unlikely that you want to do this. + * * The common case is to not pass a destination processor, in which case the + * current processor continues running with a new HTML (hast) tree + * (mutate-mode). + * As the current processor continues with a hast tree, and rehype plugins + * support hast, that means rehype plugins can be used after + * `remark-rehype`. + * It’s likely that this is what you want to do. + * + * @param destination + * Optional unified processor. + * @param options + * Options passed to `mdast-util-to-hast`. + */ +var remarkRehype = /** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */ + +function remarkRehype(destination, options) { + return destination && 'run' in destination ? bridge(destination, options) : mutate(destination || options); +}; +/* harmony default export */ var lib = (remarkRehype); + +/** + * Bridge-mode. + * Runs the destination with the new hast tree. + * + * @type {import('unified').Plugin<[Processor, Options?], MdastRoot>} + */ +function bridge(destination, options) { + return function (node, file, next) { + destination.run(toHast(node, options), file, function (error) { + next(error); + }); + }; +} + +/** + * Mutate-mode. + * Further plugins run on the hast tree. + * + * @type {import('unified').Plugin<[Options?]|void[], MdastRoot, HastRoot>} + */ +function mutate(options) { + // @ts-expect-error: assume a corresponding node is returned by `toHast`. + return function (node) { + return toHast(node, options); + }; +} +// EXTERNAL MODULE: ./node_modules/prop-types/index.js +var prop_types = __webpack_require__(5192); +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/schema.js + + +/** + * @typedef {import('./info.js').Info} Info + * @typedef {Record} Properties + * @typedef {Record} Normal + */ + +var Schema = /*#__PURE__*/_createClass( +/** + * @constructor + * @param {Properties} property + * @param {Normal} normal + * @param {string} [space] + */ +function Schema(property, normal, space) { + _classCallCheck(this, Schema); + this.property = property; + this.normal = normal; + if (space) { + this.space = space; + } +}); + +/** @type {Properties} */ +Schema.prototype.property = {}; +/** @type {Normal} */ +Schema.prototype.normal = {}; +/** @type {string|null} */ +Schema.prototype.space = null; +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/merge.js +/** + * @typedef {import('./schema.js').Properties} Properties + * @typedef {import('./schema.js').Normal} Normal + */ + + + +/** + * @param {Schema[]} definitions + * @param {string} [space] + * @returns {Schema} + */ +function util_merge_merge(definitions, space) { + /** @type {Properties} */ + var property = {}; + /** @type {Normal} */ + var normal = {}; + var index = -1; + while (++index < definitions.length) { + Object.assign(property, definitions[index].property); + Object.assign(normal, definitions[index].normal); + } + return new Schema(property, normal, space); +} +;// CONCATENATED MODULE: ./node_modules/property-information/lib/normalize.js +/** + * @param {string} value + * @returns {string} + */ +function normalize_normalize(value) { + return value.toLowerCase(); +} +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/info.js + + +var Info = /*#__PURE__*/_createClass( +/** + * @constructor + * @param {string} property + * @param {string} attribute + */ +function Info(property, attribute) { + _classCallCheck(this, Info); + /** @type {string} */ + this.property = property; + /** @type {string} */ + this.attribute = attribute; +}); + +/** @type {string|null} */ +Info.prototype.space = null; +Info.prototype.boolean = false; +Info.prototype.booleanish = false; +Info.prototype.overloadedBoolean = false; +Info.prototype.number = false; +Info.prototype.commaSeparated = false; +Info.prototype.spaceSeparated = false; +Info.prototype.commaOrSpaceSeparated = false; +Info.prototype.mustUseProperty = false; +Info.prototype.defined = false; +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/types.js +var powers = 0; +var types_boolean = increment(); +var booleanish = increment(); +var overloadedBoolean = increment(); +var number = increment(); +var spaceSeparated = increment(); +var commaSeparated = increment(); +var commaOrSpaceSeparated = increment(); +function increment() { + return Math.pow(2, ++powers); +} +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/defined-info.js + + + + + + + + +/** @type {Array} */ +// @ts-expect-error: hush. +var checks = Object.keys(types_namespaceObject); +var DefinedInfo = /*#__PURE__*/function (_Info) { + _inherits(DefinedInfo, _Info); + var _super = _createSuper(DefinedInfo); + /** + * @constructor + * @param {string} property + * @param {string} attribute + * @param {number|null} [mask] + * @param {string} [space] + */ + function DefinedInfo(property, attribute, mask, space) { + var _this; + _classCallCheck(this, DefinedInfo); + var index = -1; + _this = _super.call(this, property, attribute); + mark(_assertThisInitialized(_this), 'space', space); + if (typeof mask === 'number') { + while (++index < checks.length) { + var check = checks[index]; + mark(_assertThisInitialized(_this), checks[index], (mask & types_namespaceObject[check]) === types_namespaceObject[check]); + } + } + return _this; + } + return _createClass(DefinedInfo); +}(Info); +DefinedInfo.prototype.defined = true; + +/** + * @param {DefinedInfo} values + * @param {string} key + * @param {unknown} value + */ +function mark(values, key, value) { + if (value) { + // @ts-expect-error: assume `value` matches the expected value of `key`. + values[key] = value; + } +} +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/create.js +/** + * @typedef {import('./schema.js').Properties} Properties + * @typedef {import('./schema.js').Normal} Normal + * + * @typedef {Record} Attributes + * + * @typedef {Object} Definition + * @property {Record} properties + * @property {(attributes: Attributes, property: string) => string} transform + * @property {string} [space] + * @property {Attributes} [attributes] + * @property {Array} [mustUseProperty] + */ + + + + +var create_own = {}.hasOwnProperty; + +/** + * @param {Definition} definition + * @returns {Schema} + */ +function create(definition) { + /** @type {Properties} */ + var property = {}; + /** @type {Normal} */ + var normal = {}; + /** @type {string} */ + var prop; + for (prop in definition.properties) { + if (create_own.call(definition.properties, prop)) { + var value = definition.properties[prop]; + var info = new DefinedInfo(prop, definition.transform(definition.attributes || {}, prop), value, definition.space); + if (definition.mustUseProperty && definition.mustUseProperty.includes(prop)) { + info.mustUseProperty = true; + } + property[prop] = info; + normal[normalize_normalize(prop)] = prop; + normal[normalize_normalize(info.attribute)] = prop; + } + } + return new Schema(property, normal, definition.space); +} +;// CONCATENATED MODULE: ./node_modules/property-information/lib/xlink.js + +var xlink = create({ + space: 'xlink', + transform: function transform(_, prop) { + return 'xlink:' + prop.slice(5).toLowerCase(); + }, + properties: { + xLinkActuate: null, + xLinkArcRole: null, + xLinkHref: null, + xLinkRole: null, + xLinkShow: null, + xLinkTitle: null, + xLinkType: null + } +}); +;// CONCATENATED MODULE: ./node_modules/property-information/lib/xml.js + +var xml = create({ + space: 'xml', + transform: function transform(_, prop) { + return 'xml:' + prop.slice(3).toLowerCase(); + }, + properties: { + xmlLang: null, + xmlBase: null, + xmlSpace: null + } +}); +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/case-sensitive-transform.js +/** + * @param {Record} attributes + * @param {string} attribute + * @returns {string} + */ +function caseSensitiveTransform(attributes, attribute) { + return attribute in attributes ? attributes[attribute] : attribute; +} +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/case-insensitive-transform.js + + +/** + * @param {Record} attributes + * @param {string} property + * @returns {string} + */ +function caseInsensitiveTransform(attributes, property) { + return caseSensitiveTransform(attributes, property.toLowerCase()); +} +;// CONCATENATED MODULE: ./node_modules/property-information/lib/xmlns.js + + +var xmlns = create({ + space: 'xmlns', + attributes: { + xmlnsxlink: 'xmlns:xlink' + }, + transform: caseInsensitiveTransform, + properties: { + xmlns: null, + xmlnsXLink: null + } +}); +;// CONCATENATED MODULE: ./node_modules/property-information/lib/aria.js + + +var aria = create({ + transform: function transform(_, prop) { + return prop === 'role' ? prop : 'aria-' + prop.slice(4).toLowerCase(); + }, + properties: { + ariaActiveDescendant: null, + ariaAtomic: booleanish, + ariaAutoComplete: null, + ariaBusy: booleanish, + ariaChecked: booleanish, + ariaColCount: number, + ariaColIndex: number, + ariaColSpan: number, + ariaControls: spaceSeparated, + ariaCurrent: null, + ariaDescribedBy: spaceSeparated, + ariaDetails: null, + ariaDisabled: booleanish, + ariaDropEffect: spaceSeparated, + ariaErrorMessage: null, + ariaExpanded: booleanish, + ariaFlowTo: spaceSeparated, + ariaGrabbed: booleanish, + ariaHasPopup: null, + ariaHidden: booleanish, + ariaInvalid: null, + ariaKeyShortcuts: null, + ariaLabel: null, + ariaLabelledBy: spaceSeparated, + ariaLevel: number, + ariaLive: null, + ariaModal: booleanish, + ariaMultiLine: booleanish, + ariaMultiSelectable: booleanish, + ariaOrientation: null, + ariaOwns: spaceSeparated, + ariaPlaceholder: null, + ariaPosInSet: number, + ariaPressed: booleanish, + ariaReadOnly: booleanish, + ariaRelevant: null, + ariaRequired: booleanish, + ariaRoleDescription: spaceSeparated, + ariaRowCount: number, + ariaRowIndex: number, + ariaRowSpan: number, + ariaSelected: booleanish, + ariaSetSize: number, + ariaSort: null, + ariaValueMax: number, + ariaValueMin: number, + ariaValueNow: number, + ariaValueText: null, + role: null + } +}); +;// CONCATENATED MODULE: ./node_modules/property-information/lib/html.js + + + +var html_html = create({ + space: 'html', + attributes: { + acceptcharset: 'accept-charset', + classname: 'class', + htmlfor: 'for', + httpequiv: 'http-equiv' + }, + transform: caseInsensitiveTransform, + mustUseProperty: ['checked', 'multiple', 'muted', 'selected'], + properties: { + // Standard Properties. + abbr: null, + accept: commaSeparated, + acceptCharset: spaceSeparated, + accessKey: spaceSeparated, + action: null, + allow: null, + allowFullScreen: types_boolean, + allowPaymentRequest: types_boolean, + allowUserMedia: types_boolean, + alt: null, + as: null, + async: types_boolean, + autoCapitalize: null, + autoComplete: spaceSeparated, + autoFocus: types_boolean, + autoPlay: types_boolean, + capture: types_boolean, + charSet: null, + checked: types_boolean, + cite: null, + className: spaceSeparated, + cols: number, + colSpan: null, + content: null, + contentEditable: booleanish, + controls: types_boolean, + controlsList: spaceSeparated, + coords: number | commaSeparated, + crossOrigin: null, + data: null, + dateTime: null, + decoding: null, + default: types_boolean, + defer: types_boolean, + dir: null, + dirName: null, + disabled: types_boolean, + download: overloadedBoolean, + draggable: booleanish, + encType: null, + enterKeyHint: null, + form: null, + formAction: null, + formEncType: null, + formMethod: null, + formNoValidate: types_boolean, + formTarget: null, + headers: spaceSeparated, + height: number, + hidden: types_boolean, + high: number, + href: null, + hrefLang: null, + htmlFor: spaceSeparated, + httpEquiv: spaceSeparated, + id: null, + imageSizes: null, + imageSrcSet: null, + inputMode: null, + integrity: null, + is: null, + isMap: types_boolean, + itemId: null, + itemProp: spaceSeparated, + itemRef: spaceSeparated, + itemScope: types_boolean, + itemType: spaceSeparated, + kind: null, + label: null, + lang: null, + language: null, + list: null, + loading: null, + loop: types_boolean, + low: number, + manifest: null, + max: null, + maxLength: number, + media: null, + method: null, + min: null, + minLength: number, + multiple: types_boolean, + muted: types_boolean, + name: null, + nonce: null, + noModule: types_boolean, + noValidate: types_boolean, + onAbort: null, + onAfterPrint: null, + onAuxClick: null, + onBeforeMatch: null, + onBeforePrint: null, + onBeforeUnload: null, + onBlur: null, + onCancel: null, + onCanPlay: null, + onCanPlayThrough: null, + onChange: null, + onClick: null, + onClose: null, + onContextLost: null, + onContextMenu: null, + onContextRestored: null, + onCopy: null, + onCueChange: null, + onCut: null, + onDblClick: null, + onDrag: null, + onDragEnd: null, + onDragEnter: null, + onDragExit: null, + onDragLeave: null, + onDragOver: null, + onDragStart: null, + onDrop: null, + onDurationChange: null, + onEmptied: null, + onEnded: null, + onError: null, + onFocus: null, + onFormData: null, + onHashChange: null, + onInput: null, + onInvalid: null, + onKeyDown: null, + onKeyPress: null, + onKeyUp: null, + onLanguageChange: null, + onLoad: null, + onLoadedData: null, + onLoadedMetadata: null, + onLoadEnd: null, + onLoadStart: null, + onMessage: null, + onMessageError: null, + onMouseDown: null, + onMouseEnter: null, + onMouseLeave: null, + onMouseMove: null, + onMouseOut: null, + onMouseOver: null, + onMouseUp: null, + onOffline: null, + onOnline: null, + onPageHide: null, + onPageShow: null, + onPaste: null, + onPause: null, + onPlay: null, + onPlaying: null, + onPopState: null, + onProgress: null, + onRateChange: null, + onRejectionHandled: null, + onReset: null, + onResize: null, + onScroll: null, + onScrollEnd: null, + onSecurityPolicyViolation: null, + onSeeked: null, + onSeeking: null, + onSelect: null, + onSlotChange: null, + onStalled: null, + onStorage: null, + onSubmit: null, + onSuspend: null, + onTimeUpdate: null, + onToggle: null, + onUnhandledRejection: null, + onUnload: null, + onVolumeChange: null, + onWaiting: null, + onWheel: null, + open: types_boolean, + optimum: number, + pattern: null, + ping: spaceSeparated, + placeholder: null, + playsInline: types_boolean, + poster: null, + preload: null, + readOnly: types_boolean, + referrerPolicy: null, + rel: spaceSeparated, + required: types_boolean, + reversed: types_boolean, + rows: number, + rowSpan: number, + sandbox: spaceSeparated, + scope: null, + scoped: types_boolean, + seamless: types_boolean, + selected: types_boolean, + shape: null, + size: number, + sizes: null, + slot: null, + span: number, + spellCheck: booleanish, + src: null, + srcDoc: null, + srcLang: null, + srcSet: null, + start: number, + step: null, + style: null, + tabIndex: number, + target: null, + title: null, + translate: null, + type: null, + typeMustMatch: types_boolean, + useMap: null, + value: booleanish, + width: number, + wrap: null, + // Legacy. + // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis + align: null, + // Several. Use CSS `text-align` instead, + aLink: null, + // ``. Use CSS `a:active {color}` instead + archive: spaceSeparated, + // ``. List of URIs to archives + axis: null, + // `` and ``. Use `scope` on `` + background: null, + // ``. Use CSS `background-image` instead + bgColor: null, + // `` and table elements. Use CSS `background-color` instead + border: number, + // ``. Use CSS `border-width` instead, + borderColor: null, + // `
`. Use CSS `border-color` instead, + bottomMargin: number, + // `` + cellPadding: null, + // `
` + cellSpacing: null, + // `
` + char: null, + // Several table elements. When `align=char`, sets the character to align on + charOff: null, + // Several table elements. When `char`, offsets the alignment + classId: null, + // `` + clear: null, + // `
`. Use CSS `clear` instead + code: null, + // `` + codeBase: null, + // `` + codeType: null, + // `` + color: null, + // `` and `
`. Use CSS instead + compact: types_boolean, + // Lists. Use CSS to reduce space between items instead + declare: types_boolean, + // `` + event: null, + // `
\ No newline at end of file diff --git a/options.js b/options.js new file mode 100644 index 0000000..277dfd9 --- /dev/null +++ b/options.js @@ -0,0 +1,55405 @@ +/******/ (function() { // webpackBootstrap +/******/ var __webpack_modules__ = ({ + +/***/ 6826: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ createCache; } +/* harmony export */ }); +/* harmony import */ var _emotion_sheet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7377); +/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2203); +/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6490); +/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(383); +/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9401); +/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5375); +/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7678); + + + + +var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) { + var previous = 0; + var character = 0; + while (true) { + previous = character; + character = (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .peek */ .fj)(); // &\f + + if (previous === 38 && character === 12) { + points[index] = 1; + } + if ((0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .token */ .r)(character)) { + break; + } + (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .next */ .lp)(); + } + return (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .slice */ .tP)(begin, stylis__WEBPACK_IMPORTED_MODULE_0__/* .position */ .FK); +}; +var toRules = function toRules(parsed, points) { + // pretend we've started with a comma + var index = -1; + var character = 44; + do { + switch ((0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .token */ .r)(character)) { + case 0: + // &\f + if (character === 38 && (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .peek */ .fj)() === 12) { + // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings + // stylis inserts \f after & to know when & where it should replace this sequence with the context selector + // and when it should just concatenate the outer and inner selectors + // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here + points[index] = 1; + } + parsed[index] += identifierWithPointTracking(stylis__WEBPACK_IMPORTED_MODULE_0__/* .position */ .FK - 1, points, index); + break; + case 2: + parsed[index] += (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .delimit */ .iF)(character); + break; + case 4: + // comma + if (character === 44) { + // colon + parsed[++index] = (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .peek */ .fj)() === 58 ? '&\f' : ''; + points[index] = parsed[index].length; + break; + } + + // fallthrough + + default: + parsed[index] += (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .from */ .Dp)(character); + } + } while (character = (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .next */ .lp)()); + return parsed; +}; +var getRules = function getRules(value, points) { + return (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .dealloc */ .cE)(toRules((0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .alloc */ .un)(value), points)); +}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11 + +var fixedElements = /* #__PURE__ */new WeakMap(); +var compat = function compat(element) { + if (element.type !== 'rule' || !element.parent || + // positive .length indicates that this rule contains pseudo + // negative .length indicates that this rule has been already prefixed + element.length < 1) { + return; + } + var value = element.value, + parent = element.parent; + var isImplicitRule = element.column === parent.column && element.line === parent.line; + while (parent.type !== 'rule') { + parent = parent.parent; + if (!parent) return; + } // short-circuit for the simplest case + + if (element.props.length === 1 && value.charCodeAt(0) !== 58 + /* colon */ && !fixedElements.get(parent)) { + return; + } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level) + // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent" + + if (isImplicitRule) { + return; + } + fixedElements.set(element, true); + var points = []; + var rules = getRules(value, points); + var parentRules = parent.props; + for (var i = 0, k = 0; i < rules.length; i++) { + for (var j = 0; j < parentRules.length; j++, k++) { + element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i]; + } + } +}; +var removeLabel = function removeLabel(element) { + if (element.type === 'decl') { + var value = element.value; + if ( + // charcode for l + value.charCodeAt(0) === 108 && + // charcode for b + value.charCodeAt(2) === 98) { + // this ignores label + element["return"] = ''; + element.value = ''; + } + } +}; +var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason'; +var isIgnoringComment = function isIgnoringComment(element) { + return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1; +}; +var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) { + return function (element, index, children) { + if (element.type !== 'rule' || cache.compat) return; + var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g); + if (unsafePseudoClasses) { + var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent` + // + // considering this input: + // .a { + // .b /* comm */ {} + // color: hotpink; + // } + // we get output corresponding to this: + // .a { + // & { + // /* comm */ + // color: hotpink; + // } + // .b {} + // } + + var commentContainer = isNested ? element.parent.children : + // global rule at the root level + children; + for (var i = commentContainer.length - 1; i >= 0; i--) { + var node = commentContainer[i]; + if (node.line < element.line) { + break; + } // it is quite weird but comments are *usually* put at `column: element.column - 1` + // so we seek *from the end* for the node that is earlier than the rule's `element` and check that + // this will also match inputs like this: + // .a { + // /* comm */ + // .b {} + // } + // + // but that is fine + // + // it would be the easiest to change the placement of the comment to be the first child of the rule: + // .a { + // .b { /* comm */ } + // } + // with such inputs we wouldn't have to search for the comment at all + // TODO: consider changing this comment placement in the next major version + + if (node.column < element.column) { + if (isIgnoringComment(node)) { + return; + } + break; + } + } + unsafePseudoClasses.forEach(function (unsafePseudoClass) { + console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\"."); + }); + } + }; +}; +var isImportRule = function isImportRule(element) { + return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64; +}; +var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) { + for (var i = index - 1; i >= 0; i--) { + if (!isImportRule(children[i])) { + return true; + } + } + return false; +}; // use this to remove incorrect elements from further processing +// so they don't get handed to the `sheet` (or anything else) +// as that could potentially lead to additional logs which in turn could be overhelming to the user + +var nullifyElement = function nullifyElement(element) { + element.type = ''; + element.value = ''; + element["return"] = ''; + element.children = ''; + element.props = ''; +}; +var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) { + if (!isImportRule(element)) { + return; + } + if (element.parent) { + console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."); + nullifyElement(element); + } else if (isPrependedWithRegularRules(index, children)) { + console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."); + nullifyElement(element); + } +}; + +/* eslint-disable no-fallthrough */ + +function prefix(value, length) { + switch ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .hash */ .vp)(value, length)) { + // color-adjust + case 5103: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + 'print-' + value + value; + // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function) + + case 5737: + case 4201: + case 3177: + case 3433: + case 1641: + case 4457: + case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break + + case 5572: + case 6356: + case 5844: + case 3191: + case 6645: + case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite, + + case 6391: + case 5879: + case 5623: + case 6135: + case 4599: + case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width) + + case 4215: + case 6389: + case 5109: + case 5365: + case 5621: + case 3829: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + value; + // appearance, user-select, transform, hyphens, text-size-adjust + + case 5349: + case 4246: + case 4810: + case 6968: + case 2756: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__/* .MOZ */ .uj + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + value + value; + // flex, flex-direction + + case 6828: + case 4268: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + value + value; + // order + + case 6165: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + 'flex-' + value + value; + // align-items + + case 5187: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /(\w+).+(:[^]+)/, stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + 'box-$1$2' + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + 'flex-$1$2') + value; + // align-self + + case 5443: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + 'flex-item-' + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /flex-|-self/, '') + value; + // align-content + + case 4675: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + 'flex-line-pack' + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /align-content|flex-|-self/, '') + value; + // flex-shrink + + case 5548: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, 'shrink', 'negative') + value; + // flex-basis + + case 5292: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, 'basis', 'preferred-size') + value; + // flex-grow + + case 6060: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + 'box-' + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, '-grow', '') + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, 'grow', 'positive') + value; + // transition + + case 4554: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /([^-])(transform)/g, '$1' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + '$2') + value; + // cursor + + case 6187: + return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /(zoom-|grab)/, stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + '$1'), /(image-set)/, stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + '$1'), value, '') + value; + // background, background-image + + case 5495: + case 3959: + return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /(image-set\([^]*)/, stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + '$1' + '$`$1'); + // justify-content + + case 4968: + return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /(.+:)(flex-)?(.*)/, stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + 'box-pack:$3' + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + value; + // (margin|padding)-inline-(start|end) + + case 4095: + case 3583: + case 4068: + case 2532: + return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /(.+)-inline(.+)/, stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + '$1$2') + value; + // (min|max)?(width|height|inline-size|block-size) + + case 8116: + case 7059: + case 5753: + case 5535: + case 5445: + case 5701: + case 4933: + case 4677: + case 5533: + case 5789: + case 5021: + case 4765: + // stretch, max-content, min-content, fill-available + if ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .strlen */ .to)(value) - 1 - length > 6) switch ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .charat */ .uO)(value, length + 1)) { + // (m)ax-content, (m)in-content + case 109: + // - + if ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .charat */ .uO)(value, length + 4) !== 45) break; + // (f)ill-available, (f)it-content + + case 102: + return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /(.+:)(.+)-([^]+)/, '$1' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + '$2-$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .MOZ */ .uj + ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .charat */ .uO)(value, length + 3) == 108 ? '$3' : '$2-$3')) + value; + // (s)tretch + + case 115: + return ~(0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .indexof */ .Cw)(value, 'stretch') ? prefix((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, 'stretch', 'fill-available'), length) + value : value; + } + break; + // position: sticky + + case 4949: + // (s)ticky? + if ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .charat */ .uO)(value, length + 1) !== 115) break; + // display: (flex|inline-flex) + + case 6444: + switch ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .charat */ .uO)(value, (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .strlen */ .to)(value) - 3 - (~(0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .indexof */ .Cw)(value, '!important') && 10))) { + // stic(k)y + case 107: + return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, ':', ':' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$) + value; + // (inline-)?fl(e)x + + case 101: + return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .charat */ .uO)(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + '$2$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + '$2box$3') + value; + } + break; + // writing-mode + + case 5936: + switch ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .charat */ .uO)(value, length + 11)) { + // vertical-l(r) + case 114: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /[svh]\w+-[tblr]{2}/, 'tb') + value; + // vertical-r(l) + + case 108: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value; + // horizontal(-)tb + + case 45: + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /[svh]\w+-[tblr]{2}/, 'lr') + value; + } + return stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + value + stylis__WEBPACK_IMPORTED_MODULE_2__.MS + value + value; + } + return value; +} +var prefixer = function prefixer(element, index, children, callback) { + if (element.length > -1) if (!element["return"]) switch (element.type) { + case stylis__WEBPACK_IMPORTED_MODULE_2__/* .DECLARATION */ .h5: + element["return"] = prefix(element.value, element.length); + break; + case stylis__WEBPACK_IMPORTED_MODULE_2__/* .KEYFRAMES */ .lK: + return (0,stylis__WEBPACK_IMPORTED_MODULE_3__/* .serialize */ .q)([(0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .copy */ .JG)(element, { + value: (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(element.value, '@', '@' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$) + })], callback); + case stylis__WEBPACK_IMPORTED_MODULE_2__/* .RULESET */ .Fr: + if (element.length) return (0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .combine */ .$e)(element.props, function (value) { + switch ((0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .match */ .EQ)(value, /(::plac\w+|:read-\w+)/)) { + // :read-(only|write) + case ':read-only': + case ':read-write': + return (0,stylis__WEBPACK_IMPORTED_MODULE_3__/* .serialize */ .q)([(0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .copy */ .JG)(element, { + props: [(0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /:(read-\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .MOZ */ .uj + '$1')] + })], callback); + // :placeholder + + case '::placeholder': + return (0,stylis__WEBPACK_IMPORTED_MODULE_3__/* .serialize */ .q)([(0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .copy */ .JG)(element, { + props: [(0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /:(plac\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .WEBKIT */ .G$ + 'input-$1')] + }), (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .copy */ .JG)(element, { + props: [(0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /:(plac\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_2__/* .MOZ */ .uj + '$1')] + }), (0,stylis__WEBPACK_IMPORTED_MODULE_0__/* .copy */ .JG)(element, { + props: [(0,stylis__WEBPACK_IMPORTED_MODULE_1__/* .replace */ .gx)(value, /:(plac\w+)/, stylis__WEBPACK_IMPORTED_MODULE_2__.MS + 'input-$1')] + })], callback); + } + return ''; + }); + } +}; +var defaultStylisPlugins = [prefixer]; +var createCache = function createCache(options) { + var key = options.key; + if (false) {} + if (key === 'css') { + var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration + // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be) + // note this very very intentionally targets all style elements regardless of the key to ensure + // that creating a cache works inside of render of a React component + + Array.prototype.forEach.call(ssrStyles, function (node) { + // we want to only move elements which have a space in the data-emotion attribute value + // because that indicates that it is an Emotion 11 server-side rendered style elements + // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector + // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes) + // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles + // will not result in the Emotion 10 styles being destroyed + var dataEmotionAttribute = node.getAttribute('data-emotion'); + if (dataEmotionAttribute.indexOf(' ') === -1) { + return; + } + document.head.appendChild(node); + node.setAttribute('data-s', ''); + }); + } + var stylisPlugins = options.stylisPlugins || defaultStylisPlugins; + if (false) {} + var inserted = {}; + var container; + var nodesToHydrate = []; + { + container = options.container || document.head; + Array.prototype.forEach.call( + // this means we will ignore elements which don't have a space in them which + // means that the style elements we're looking at are only Emotion 11 server-rendered style elements + document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) { + var attrib = node.getAttribute("data-emotion").split(' '); // $FlowFixMe + + for (var i = 1; i < attrib.length; i++) { + inserted[attrib[i]] = true; + } + nodesToHydrate.push(node); + }); + } + var _insert; + var omnipresentPlugins = [compat, removeLabel]; + if (false) {} + { + var currentSheet; + var finalizingPlugins = [stylis__WEBPACK_IMPORTED_MODULE_3__/* .stringify */ .P, false ? 0 : (0,stylis__WEBPACK_IMPORTED_MODULE_4__/* .rulesheet */ .cD)(function (rule) { + currentSheet.insert(rule); + })]; + var serializer = (0,stylis__WEBPACK_IMPORTED_MODULE_4__/* .middleware */ .qR)(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)); + var stylis = function stylis(styles) { + return (0,stylis__WEBPACK_IMPORTED_MODULE_3__/* .serialize */ .q)((0,stylis__WEBPACK_IMPORTED_MODULE_5__/* .compile */ .MY)(styles), serializer); + }; + _insert = function insert(selector, serialized, sheet, shouldCache) { + currentSheet = sheet; + if (false) {} + stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles); + if (shouldCache) { + cache.inserted[serialized.name] = true; + } + }; + } + var cache = { + key: key, + sheet: new _emotion_sheet__WEBPACK_IMPORTED_MODULE_6__/* .StyleSheet */ .m({ + key: key, + container: container, + nonce: options.nonce, + speedy: options.speedy, + prepend: options.prepend, + insertionPoint: options.insertionPoint + }), + nonce: options.nonce, + inserted: inserted, + registered: {}, + insert: _insert + }; + cache.sheet.hydrate(nodesToHydrate); + return cache; +}; + + +/***/ }), + +/***/ 7423: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ murmur2; } +/* harmony export */ }); +/* eslint-disable */ +// Inspired by https://github.com/garycourt/murmurhash-js +// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86 +function murmur2(str) { + // 'm' and 'r' are mixing constants generated offline. + // They're not really 'magic', they just happen to work well. + // const m = 0x5bd1e995; + // const r = 24; + // Initialize the hash + var h = 0; // Mix 4 bytes at a time into the hash + + var k, + i = 0, + len = str.length; + for (; len >= 4; ++i, len -= 4) { + k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24; + k = /* Math.imul(k, m): */ + (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16); + k ^= /* k >>> r: */ + k >>> 24; + h = /* Math.imul(k, m): */ + (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^ /* Math.imul(h, m): */ + (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); + } // Handle the last few bytes of the input array + + switch (len) { + case 3: + h ^= (str.charCodeAt(i + 2) & 0xff) << 16; + case 2: + h ^= (str.charCodeAt(i + 1) & 0xff) << 8; + case 1: + h ^= str.charCodeAt(i) & 0xff; + h = /* Math.imul(h, m): */ + (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); + } // Do a few final mixes of the hash to ensure the last few + // bytes are well-incorporated. + + h ^= h >>> 13; + h = /* Math.imul(h, m): */ + (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); + return ((h ^ h >>> 15) >>> 0).toString(36); +} + + +/***/ }), + +/***/ 1097: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ isPropValid; } +/* harmony export */ }); +/* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1816); + +var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23 + +var isPropValid = /* #__PURE__ */(0,_emotion_memoize__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(function (prop) { + return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 + /* o */ && prop.charCodeAt(1) === 110 + /* n */ && prop.charCodeAt(2) < 91; +} +/* Z+1 */); + + + +/***/ }), + +/***/ 1816: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ memoize; } +/* harmony export */ }); +function memoize(fn) { + var cache = Object.create(null); + return function (arg) { + if (cache[arg] === undefined) cache[arg] = fn(arg); + return cache[arg]; + }; +} + + +/***/ }), + +/***/ 3346: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ T: function() { return /* binding */ ThemeContext; }, +/* harmony export */ i: function() { return /* binding */ isBrowser; }, +/* harmony export */ w: function() { return /* binding */ withEmotionCache; } +/* harmony export */ }); +/* unused harmony exports C, E, _, a, b, c, h, u */ +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); +/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6826); +/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(736); +/* harmony import */ var _emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5696); + + + + + + + + + +var isBrowser = "object" !== 'undefined'; +var hasOwnProperty = {}.hasOwnProperty; +var EmotionCacheContext = /* #__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__.createContext( +// we're doing this to avoid preconstruct's dead code elimination in this one case +// because this module is primarily intended for the browser and node +// but it's also required in react native and similar environments sometimes +// and we could have a special build just for that +// but this is much easier and the native packages +// might use a different theme context in the future anyway +typeof HTMLElement !== 'undefined' ? /* #__PURE__ */(0,_emotion_cache__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({ + key: 'css' +}) : null); +if (false) {} +var CacheProvider = EmotionCacheContext.Provider; +var __unsafe_useEmotionCache = function useEmotionCache() { + return useContext(EmotionCacheContext); +}; +var withEmotionCache = function withEmotionCache(func) { + // $FlowFixMe + return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) { + // the cache will never be null in the browser + var cache = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext); + return func(props, cache, ref); + }); +}; +if (!isBrowser) { + withEmotionCache = function withEmotionCache(func) { + return function (props) { + var cache = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext); + if (cache === null) { + // yes, we're potentially creating this on every render + // it doesn't actually matter though since it's only on the server + // so there will only every be a single render + // that could change in the future because of suspense and etc. but for now, + // this works and i don't want to optimise for a future thing that we aren't sure about + cache = (0,_emotion_cache__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({ + key: 'css' + }); + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(EmotionCacheContext.Provider, { + value: cache + }, func(props, cache)); + } else { + return func(props, cache); + } + }; + }; +} +var ThemeContext = /* #__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__.createContext({}); +if (false) {} +var useTheme = function useTheme() { + return React.useContext(ThemeContext); +}; +var getTheme = function getTheme(outerTheme, theme) { + if (typeof theme === 'function') { + var mergedTheme = theme(outerTheme); + if (false) {} + return mergedTheme; + } + if (false) {} + return _extends({}, outerTheme, theme); +}; +var createCacheWithTheme = /* #__PURE__ */(/* unused pure expression or super */ null && (weakMemoize(function (outerTheme) { + return weakMemoize(function (theme) { + return getTheme(outerTheme, theme); + }); +}))); +var ThemeProvider = function ThemeProvider(props) { + var theme = React.useContext(ThemeContext); + if (props.theme !== theme) { + theme = createCacheWithTheme(theme)(props.theme); + } + return /*#__PURE__*/React.createElement(ThemeContext.Provider, { + value: theme + }, props.children); +}; +function withTheme(Component) { + var componentName = Component.displayName || Component.name || 'Component'; + var render = function render(props, ref) { + var theme = React.useContext(ThemeContext); + return /*#__PURE__*/React.createElement(Component, _extends({ + theme: theme, + ref: ref + }, props)); + }; // $FlowFixMe + + var WithTheme = /*#__PURE__*/React.forwardRef(render); + WithTheme.displayName = "WithTheme(" + componentName + ")"; + return hoistNonReactStatics(WithTheme, Component); +} +var getLastPart = function getLastPart(functionName) { + // The match may be something like 'Object.createEmotionProps' or + // 'Loader.prototype.render' + var parts = functionName.split('.'); + return parts[parts.length - 1]; +}; +var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) { + // V8 + var match = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line); + if (match) return getLastPart(match[1]); // Safari / Firefox + + match = /^([A-Za-z0-9$.]+)@/.exec(line); + if (match) return getLastPart(match[1]); + return undefined; +}; +var internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS +// identifiers, thus we only need to replace what is a valid character for JS, +// but not for CSS. + +var sanitizeIdentifier = function sanitizeIdentifier(identifier) { + return identifier.replace(/\$/g, '-'); +}; +var getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) { + if (!stackTrace) return undefined; + var lines = stackTrace.split('\n'); + for (var i = 0; i < lines.length; i++) { + var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just "Error" + + if (!functionName) continue; // If we reach one of these, we have gone too far and should quit + + if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an + // uppercase letter + + if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName); + } + return undefined; +}; +var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__'; +var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__'; +var createEmotionProps = function createEmotionProps(type, props) { + if (false) {} + var newProps = {}; + for (var key in props) { + if (hasOwnProperty.call(props, key)) { + newProps[key] = props[key]; + } + } + newProps[typePropName] = type; // For performance, only call getLabelFromStackTrace in development and when + // the label hasn't already been computed + + if (false) { var label; } + return newProps; +}; +var Insertion = function Insertion(_ref) { + var cache = _ref.cache, + serialized = _ref.serialized, + isStringTag = _ref.isStringTag; + registerStyles(cache, serialized, isStringTag); + useInsertionEffectAlwaysWithSyncFallback(function () { + return insertStyles(cache, serialized, isStringTag); + }); + return null; +}; +var Emotion = /* #__PURE__ */(/* unused pure expression or super */ null && (withEmotionCache(function (props, cache, ref) { + var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works + // not passing the registered cache to serializeStyles because it would + // make certain babel optimisations not possible + + if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) { + cssProp = cache.registered[cssProp]; + } + var WrappedComponent = props[typePropName]; + var registeredStyles = [cssProp]; + var className = ''; + if (typeof props.className === 'string') { + className = getRegisteredStyles(cache.registered, registeredStyles, props.className); + } else if (props.className != null) { + className = props.className + " "; + } + var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext)); + if (false) { var labelFromStack; } + className += cache.key + "-" + serialized.name; + var newProps = {}; + for (var key in props) { + if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && ( true || 0)) { + newProps[key] = props[key]; + } + } + newProps.ref = ref; + newProps.className = className; + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, { + cache: cache, + serialized: serialized, + isStringTag: typeof WrappedComponent === 'string' + }), /*#__PURE__*/React.createElement(WrappedComponent, newProps)); +}))); +if (false) {} +var Emotion$1 = (/* unused pure expression or super */ null && (Emotion)); + + +/***/ }), + +/***/ 736: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ O: function() { return /* binding */ serializeStyles; } +/* harmony export */ }); +/* harmony import */ var _emotion_hash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7423); +/* harmony import */ var _emotion_unitless__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1536); +/* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1816); + + + +var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences"; +var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."; +var hyphenateRegex = /[A-Z]|^ms/g; +var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g; +var isCustomProperty = function isCustomProperty(property) { + return property.charCodeAt(1) === 45; +}; +var isProcessableValue = function isProcessableValue(value) { + return value != null && typeof value !== 'boolean'; +}; +var processStyleName = /* #__PURE__ */(0,_emotion_memoize__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(function (styleName) { + return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase(); +}); +var processStyleValue = function processStyleValue(key, value) { + switch (key) { + case 'animation': + case 'animationName': + { + if (typeof value === 'string') { + return value.replace(animationRegex, function (match, p1, p2) { + cursor = { + name: p1, + styles: p2, + next: cursor + }; + return p1; + }); + } + } + } + if (_emotion_unitless__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) { + return value + 'px'; + } + return value; +}; +if (false) { var hyphenatedCache, hyphenPattern, msPattern, oldProcessStyleValue, contentValues, contentValuePattern; } +var noComponentSelectorMessage = (/* unused pure expression or super */ null && ('Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.')); +function handleInterpolation(mergedProps, registered, interpolation) { + if (interpolation == null) { + return ''; + } + if (interpolation.__emotion_styles !== undefined) { + if (false) {} + return interpolation; + } + switch (typeof interpolation) { + case 'boolean': + { + return ''; + } + case 'object': + { + if (interpolation.anim === 1) { + cursor = { + name: interpolation.name, + styles: interpolation.styles, + next: cursor + }; + return interpolation.name; + } + if (interpolation.styles !== undefined) { + var next = interpolation.next; + if (next !== undefined) { + // not the most efficient thing ever but this is a pretty rare case + // and there will be very few iterations of this generally + while (next !== undefined) { + cursor = { + name: next.name, + styles: next.styles, + next: cursor + }; + next = next.next; + } + } + var styles = interpolation.styles + ";"; + if (false) {} + return styles; + } + return createStringFromObject(mergedProps, registered, interpolation); + } + case 'function': + { + if (mergedProps !== undefined) { + var previousCursor = cursor; + var result = interpolation(mergedProps); + cursor = previousCursor; + return handleInterpolation(mergedProps, registered, result); + } else if (false) {} + break; + } + case 'string': + if (false) { var replaced, matched; } + break; + } // finalize string values (regular strings and functions interpolated into css calls) + + if (registered == null) { + return interpolation; + } + var cached = registered[interpolation]; + return cached !== undefined ? cached : interpolation; +} +function createStringFromObject(mergedProps, registered, obj) { + var string = ''; + if (Array.isArray(obj)) { + for (var i = 0; i < obj.length; i++) { + string += handleInterpolation(mergedProps, registered, obj[i]) + ";"; + } + } else { + for (var _key in obj) { + var value = obj[_key]; + if (typeof value !== 'object') { + if (registered != null && registered[value] !== undefined) { + string += _key + "{" + registered[value] + "}"; + } else if (isProcessableValue(value)) { + string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";"; + } + } else { + if (_key === 'NO_COMPONENT_SELECTOR' && "production" !== 'production') {} + if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) { + for (var _i = 0; _i < value.length; _i++) { + if (isProcessableValue(value[_i])) { + string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";"; + } + } + } else { + var interpolated = handleInterpolation(mergedProps, registered, value); + switch (_key) { + case 'animation': + case 'animationName': + { + string += processStyleName(_key) + ":" + interpolated + ";"; + break; + } + default: + { + if (false) {} + string += _key + "{" + interpolated + "}"; + } + } + } + } + } + } + return string; +} +var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g; +var sourceMapPattern; +if (false) {} // this is the cursor for keyframes +// keyframes are stored on the SerializedStyles object as a linked list + +var cursor; +var serializeStyles = function serializeStyles(args, registered, mergedProps) { + if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) { + return args[0]; + } + var stringMode = true; + var styles = ''; + cursor = undefined; + var strings = args[0]; + if (strings == null || strings.raw === undefined) { + stringMode = false; + styles += handleInterpolation(mergedProps, registered, strings); + } else { + if (false) {} + styles += strings[0]; + } // we start at 1 since we've already handled the first arg + + for (var i = 1; i < args.length; i++) { + styles += handleInterpolation(mergedProps, registered, args[i]); + if (stringMode) { + if (false) {} + styles += strings[i]; + } + } + var sourceMap; + if (false) {} // using a global regex with .exec is stateful so lastIndex has to be reset each time + + labelPattern.lastIndex = 0; + var identifierName = ''; + var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5 + + while ((match = labelPattern.exec(styles)) !== null) { + identifierName += '-' + + // $FlowFixMe we know it's not null + match[1]; + } + var name = (0,_emotion_hash__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(styles) + identifierName; + if (false) {} + return { + name: name, + styles: styles, + next: cursor + }; +}; + + +/***/ }), + +/***/ 7377: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ m: function() { return /* binding */ StyleSheet; } +/* harmony export */ }); +/* + +Based off glamor's StyleSheet, thanks Sunil ❤️ + +high performance StyleSheet for css-in-js systems + +- uses multiple style tags behind the scenes for millions of rules +- uses `insertRule` for appending in production for *much* faster performance + +// usage + +import { StyleSheet } from '@emotion/sheet' + +let styleSheet = new StyleSheet({ key: '', container: document.head }) + +styleSheet.insert('#box { border: 1px solid red; }') +- appends a css rule into the stylesheet + +styleSheet.flush() +- empties the stylesheet of all its contents + +*/ +// $FlowFixMe +function sheetForTag(tag) { + if (tag.sheet) { + // $FlowFixMe + return tag.sheet; + } // this weirdness brought to you by firefox + + /* istanbul ignore next */ + + for (var i = 0; i < document.styleSheets.length; i++) { + if (document.styleSheets[i].ownerNode === tag) { + // $FlowFixMe + return document.styleSheets[i]; + } + } +} +function createStyleElement(options) { + var tag = document.createElement('style'); + tag.setAttribute('data-emotion', options.key); + if (options.nonce !== undefined) { + tag.setAttribute('nonce', options.nonce); + } + tag.appendChild(document.createTextNode('')); + tag.setAttribute('data-s', ''); + return tag; +} +var StyleSheet = /*#__PURE__*/function () { + // Using Node instead of HTMLElement since container may be a ShadowRoot + function StyleSheet(options) { + var _this = this; + this._insertTag = function (tag) { + var before; + if (_this.tags.length === 0) { + if (_this.insertionPoint) { + before = _this.insertionPoint.nextSibling; + } else if (_this.prepend) { + before = _this.container.firstChild; + } else { + before = _this.before; + } + } else { + before = _this.tags[_this.tags.length - 1].nextSibling; + } + _this.container.insertBefore(tag, before); + _this.tags.push(tag); + }; + this.isSpeedy = options.speedy === undefined ? "production" === 'production' : options.speedy; + this.tags = []; + this.ctr = 0; + this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets + + this.key = options.key; + this.container = options.container; + this.prepend = options.prepend; + this.insertionPoint = options.insertionPoint; + this.before = null; + } + var _proto = StyleSheet.prototype; + _proto.hydrate = function hydrate(nodes) { + nodes.forEach(this._insertTag); + }; + _proto.insert = function insert(rule) { + // the max length is how many rules we have per style tag, it's 65000 in speedy mode + // it's 1 in dev because we insert source maps that map a single rule to a location + // and you can only have one source map per style tag + if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) { + this._insertTag(createStyleElement(this)); + } + var tag = this.tags[this.tags.length - 1]; + if (false) { var isImportRule; } + if (this.isSpeedy) { + var sheet = sheetForTag(tag); + try { + // this is the ultrafast version, works across browsers + // the big drawback is that the css won't be editable in devtools + sheet.insertRule(rule, sheet.cssRules.length); + } catch (e) { + if (false) {} + } + } else { + tag.appendChild(document.createTextNode(rule)); + } + this.ctr++; + }; + _proto.flush = function flush() { + // $FlowFixMe + this.tags.forEach(function (tag) { + return tag.parentNode && tag.parentNode.removeChild(tag); + }); + this.tags = []; + this.ctr = 0; + if (false) {} + }; + return StyleSheet; +}(); + + +/***/ }), + +/***/ 7167: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ createStyled; } +/* harmony export */ }); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7462); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); +/* harmony import */ var _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1097); +/* harmony import */ var _emotion_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3346); +/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4911); +/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(736); +/* harmony import */ var _emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5696); + + + + + + + +var testOmitPropsOnStringTag = _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z; +var testOmitPropsOnComponent = function testOmitPropsOnComponent(key) { + return key !== 'theme'; +}; +var getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) { + return typeof tag === 'string' && + // 96 is one less than the char code + // for "a" so this is checking that + // it's a lowercase character + tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent; +}; +var composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) { + var shouldForwardProp; + if (options) { + var optionsShouldForwardProp = options.shouldForwardProp; + shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) { + return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName); + } : optionsShouldForwardProp; + } + if (typeof shouldForwardProp !== 'function' && isReal) { + shouldForwardProp = tag.__emotion_forwardProp; + } + return shouldForwardProp; +}; +var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences"; +var Insertion = function Insertion(_ref) { + var cache = _ref.cache, + serialized = _ref.serialized, + isStringTag = _ref.isStringTag; + (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__/* .registerStyles */ .hC)(cache, serialized, isStringTag); + (0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_2__/* .useInsertionEffectAlwaysWithSyncFallback */ .L)(function () { + return (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__/* .insertStyles */ .My)(cache, serialized, isStringTag); + }); + return null; +}; +var createStyled = function createStyled(tag, options) { + if (false) {} + var isReal = tag.__emotion_real === tag; + var baseTag = isReal && tag.__emotion_base || tag; + var identifierName; + var targetClassName; + if (options !== undefined) { + identifierName = options.label; + targetClassName = options.target; + } + var shouldForwardProp = composeShouldForwardProps(tag, options, isReal); + var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag); + var shouldUseAs = !defaultShouldForwardProp('as'); + return function () { + var args = arguments; + var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : []; + if (identifierName !== undefined) { + styles.push("label:" + identifierName + ";"); + } + if (args[0] == null || args[0].raw === undefined) { + styles.push.apply(styles, args); + } else { + if (false) {} + styles.push(args[0][0]); + var len = args.length; + var i = 1; + for (; i < len; i++) { + if (false) {} + styles.push(args[i], args[0][i]); + } + } // $FlowFixMe: we need to cast StatelessFunctionalComponent to our PrivateStyledComponent class + + var Styled = (0,_emotion_react__WEBPACK_IMPORTED_MODULE_5__.w)(function (props, cache, ref) { + var FinalTag = shouldUseAs && props.as || baseTag; + var className = ''; + var classInterpolations = []; + var mergedProps = props; + if (props.theme == null) { + mergedProps = {}; + for (var key in props) { + mergedProps[key] = props[key]; + } + mergedProps.theme = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_emotion_react__WEBPACK_IMPORTED_MODULE_5__.T); + } + if (typeof props.className === 'string') { + className = (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__/* .getRegisteredStyles */ .fp)(cache.registered, classInterpolations, props.className); + } else if (props.className != null) { + className = props.className + " "; + } + var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_1__/* .serializeStyles */ .O)(styles.concat(classInterpolations), cache.registered, mergedProps); + className += cache.key + "-" + serialized.name; + if (targetClassName !== undefined) { + className += " " + targetClassName; + } + var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp; + var newProps = {}; + for (var _key in props) { + if (shouldUseAs && _key === 'as') continue; + if ( + // $FlowFixMe + finalShouldForwardProp(_key)) { + newProps[_key] = props[_key]; + } + } + newProps.className = className; + newProps.ref = ref; + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Insertion, { + cache: cache, + serialized: serialized, + isStringTag: typeof FinalTag === 'string' + }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(FinalTag, newProps)); + }); + Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")"; + Styled.defaultProps = tag.defaultProps; + Styled.__emotion_real = Styled; + Styled.__emotion_base = baseTag; + Styled.__emotion_styles = styles; + Styled.__emotion_forwardProp = shouldForwardProp; + Object.defineProperty(Styled, 'toString', { + value: function value() { + if (targetClassName === undefined && "production" !== 'production') {} // $FlowFixMe: coerce undefined to string + + return "." + targetClassName; + } + }); + Styled.withComponent = function (nextTag, nextOptions) { + return createStyled(nextTag, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)({}, options, nextOptions, { + shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true) + })).apply(void 0, styles); + }; + return Styled; + }; +}; + + +/***/ }), + +/***/ 3320: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ newStyled; } +/* harmony export */ }); +/* harmony import */ var _base_dist_emotion_styled_base_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7167); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7313); +/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(736); +/* harmony import */ var _emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5696); + + + + + + + + +var tags = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr', +// SVG +'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan']; +var newStyled = _base_dist_emotion_styled_base_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.bind(); +tags.forEach(function (tagName) { + // $FlowFixMe: we can ignore this because its exposed type is defined by the CreateStyled type + newStyled[tagName] = newStyled(tagName); +}); + + +/***/ }), + +/***/ 1536: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ unitlessKeys; } +/* harmony export */ }); +var unitlessKeys = { + animationIterationCount: 1, + aspectRatio: 1, + borderImageOutset: 1, + borderImageSlice: 1, + borderImageWidth: 1, + boxFlex: 1, + boxFlexGroup: 1, + boxOrdinalGroup: 1, + columnCount: 1, + columns: 1, + flex: 1, + flexGrow: 1, + flexPositive: 1, + flexShrink: 1, + flexNegative: 1, + flexOrder: 1, + gridRow: 1, + gridRowEnd: 1, + gridRowSpan: 1, + gridRowStart: 1, + gridColumn: 1, + gridColumnEnd: 1, + gridColumnSpan: 1, + gridColumnStart: 1, + msGridRow: 1, + msGridRowSpan: 1, + msGridColumn: 1, + msGridColumnSpan: 1, + fontWeight: 1, + lineHeight: 1, + opacity: 1, + order: 1, + orphans: 1, + tabSize: 1, + widows: 1, + zIndex: 1, + zoom: 1, + WebkitLineClamp: 1, + // SVG-related properties + fillOpacity: 1, + floodOpacity: 1, + stopOpacity: 1, + strokeDasharray: 1, + strokeDashoffset: 1, + strokeMiterlimit: 1, + strokeOpacity: 1, + strokeWidth: 1 +}; + + +/***/ }), + +/***/ 5696: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +var react__WEBPACK_IMPORTED_MODULE_0___namespace_cache; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ L: function() { return /* binding */ useInsertionEffectAlwaysWithSyncFallback; }, +/* harmony export */ j: function() { return /* binding */ useInsertionEffectWithLayoutFallback; } +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); + +var syncFallback = function syncFallback(create) { + return create(); +}; +var useInsertionEffect = /*#__PURE__*/ (react__WEBPACK_IMPORTED_MODULE_0___namespace_cache || (react__WEBPACK_IMPORTED_MODULE_0___namespace_cache = __webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__, 2)))['useInsertion' + 'Effect'] ? /*#__PURE__*/ (react__WEBPACK_IMPORTED_MODULE_0___namespace_cache || (react__WEBPACK_IMPORTED_MODULE_0___namespace_cache = __webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__, 2)))['useInsertion' + 'Effect'] : false; +var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback; +var useInsertionEffectWithLayoutFallback = useInsertionEffect || react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect; + + +/***/ }), + +/***/ 4911: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ My: function() { return /* binding */ insertStyles; }, +/* harmony export */ fp: function() { return /* binding */ getRegisteredStyles; }, +/* harmony export */ hC: function() { return /* binding */ registerStyles; } +/* harmony export */ }); +var isBrowser = "object" !== 'undefined'; +function getRegisteredStyles(registered, registeredStyles, classNames) { + var rawClassName = ''; + classNames.split(' ').forEach(function (className) { + if (registered[className] !== undefined) { + registeredStyles.push(registered[className] + ";"); + } else { + rawClassName += className + " "; + } + }); + return rawClassName; +} +var registerStyles = function registerStyles(cache, serialized, isStringTag) { + var className = cache.key + "-" + serialized.name; + if ( + // we only need to add the styles to the registered cache if the + // class name could be used further down + // the tree but if it's a string tag, we know it won't + // so we don't have to add it to registered cache. + // this improves memory usage since we can avoid storing the whole style string + (isStringTag === false || + // we need to always store it if we're in compat mode and + // in node since emotion-server relies on whether a style is in + // the registered cache to know whether a style is global or not + // also, note that this check will be dead code eliminated in the browser + isBrowser === false) && cache.registered[className] === undefined) { + cache.registered[className] = serialized.styles; + } +}; +var insertStyles = function insertStyles(cache, serialized, isStringTag) { + registerStyles(cache, serialized, isStringTag); + var className = cache.key + "-" + serialized.name; + if (cache.inserted[serialized.name] === undefined) { + var current = serialized; + do { + cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true); + current = current.next; + } while (current !== undefined); + } +}; + + +/***/ }), + +/***/ 45: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; +var __webpack_unused_export__; + +"use client"; + +var _interopRequireDefault = __webpack_require__(4836); +__webpack_unused_export__ = ({ + value: true +}); +exports.Z = void 0; +var _createSvgIcon = _interopRequireDefault(__webpack_require__(5045)); +var _jsxRuntime = __webpack_require__(6417); +var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { + d: "M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z" +}), 'DarkMode'); +exports.Z = _default; + +/***/ }), + +/***/ 2163: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; +var __webpack_unused_export__; + +"use client"; + +var _interopRequireDefault = __webpack_require__(4836); +__webpack_unused_export__ = ({ + value: true +}); +exports.Z = void 0; +var _createSvgIcon = _interopRequireDefault(__webpack_require__(5045)); +var _jsxRuntime = __webpack_require__(6417); +var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { + d: "m16.24 11.51 1.57-1.57-3.75-3.75-1.57 1.57-4.14-4.13c-.78-.78-2.05-.78-2.83 0l-1.9 1.9c-.78.78-.78 2.05 0 2.83l4.13 4.13L3 17.25V21h3.75l4.76-4.76 4.13 4.13c.95.95 2.23.6 2.83 0l1.9-1.9c.78-.78.78-2.05 0-2.83l-4.13-4.13zm-7.06-.44L5.04 6.94l1.89-1.9L8.2 6.31 7.02 7.5l1.41 1.41 1.19-1.19 1.45 1.45-1.89 1.9zm7.88 7.89-4.13-4.13 1.9-1.9 1.45 1.45-1.19 1.19 1.41 1.41 1.19-1.19 1.27 1.27-1.9 1.9zm3.65-11.92c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.47-.47-1.12-.29-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z" +}), 'DesignServices'); +exports.Z = _default; + +/***/ }), + +/***/ 6306: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; +var __webpack_unused_export__; + +"use client"; + +var _interopRequireDefault = __webpack_require__(4836); +__webpack_unused_export__ = ({ + value: true +}); +exports.Z = void 0; +var _createSvgIcon = _interopRequireDefault(__webpack_require__(5045)); +var _jsxRuntime = __webpack_require__(6417); +var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { + d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" +}), 'ExpandMore'); +exports.Z = _default; + +/***/ }), + +/***/ 5660: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; +var __webpack_unused_export__; + +"use client"; + +var _interopRequireDefault = __webpack_require__(4836); +__webpack_unused_export__ = ({ + value: true +}); +exports.Z = void 0; +var _createSvgIcon = _interopRequireDefault(__webpack_require__(5045)); +var _jsxRuntime = __webpack_require__(6417); +var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { + d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" +}), 'FileDownload'); +exports.Z = _default; + +/***/ }), + +/***/ 2033: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; +var __webpack_unused_export__; + +"use client"; + +var _interopRequireDefault = __webpack_require__(4836); +__webpack_unused_export__ = ({ + value: true +}); +exports.Z = void 0; +var _createSvgIcon = _interopRequireDefault(__webpack_require__(5045)); +var _jsxRuntime = __webpack_require__(6417); +var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { + d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z" +}), 'FileUpload'); +exports.Z = _default; + +/***/ }), + +/***/ 3973: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; +var __webpack_unused_export__; + +"use client"; + +var _interopRequireDefault = __webpack_require__(4836); +__webpack_unused_export__ = ({ + value: true +}); +exports.Z = void 0; +var _createSvgIcon = _interopRequireDefault(__webpack_require__(5045)); +var _jsxRuntime = __webpack_require__(6417); +var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { + d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" +}), 'Info'); +exports.Z = _default; + +/***/ }), + +/***/ 3544: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; +var __webpack_unused_export__; + +"use client"; + +var _interopRequireDefault = __webpack_require__(4836); +__webpack_unused_export__ = ({ + value: true +}); +exports.Z = void 0; +var _createSvgIcon = _interopRequireDefault(__webpack_require__(5045)); +var _jsxRuntime = __webpack_require__(6417); +var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { + d: "M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z" +}), 'LightMode'); +exports.Z = _default; + +/***/ }), + +/***/ 1317: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; +var __webpack_unused_export__; + +"use client"; + +var _interopRequireDefault = __webpack_require__(4836); +__webpack_unused_export__ = ({ + value: true +}); +exports.Z = void 0; +var _createSvgIcon = _interopRequireDefault(__webpack_require__(5045)); +var _jsxRuntime = __webpack_require__(6417); +var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { + d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" +}), 'Menu'); +exports.Z = _default; + +/***/ }), + +/***/ 2495: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; +var __webpack_unused_export__; + +"use client"; + +var _interopRequireDefault = __webpack_require__(4836); +__webpack_unused_export__ = ({ + value: true +}); +exports.Z = void 0; +var _createSvgIcon = _interopRequireDefault(__webpack_require__(5045)); +var _jsxRuntime = __webpack_require__(6417); +var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { + d: "M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z" +}), 'Settings'); +exports.Z = _default; + +/***/ }), + +/***/ 2453: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; +var __webpack_unused_export__; + +"use client"; + +var _interopRequireDefault = __webpack_require__(4836); +__webpack_unused_export__ = ({ + value: true +}); +exports.Z = void 0; +var _createSvgIcon = _interopRequireDefault(__webpack_require__(5045)); +var _jsxRuntime = __webpack_require__(6417); +var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { + d: "M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z" +}), 'Sync'); +exports.Z = _default; + +/***/ }), + +/***/ 5045: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; + +'use client'; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "default", ({ + enumerable: true, + get: function get() { + return _utils.createSvgIcon; + } +})); +var _utils = __webpack_require__(3928); + +/***/ }), + +/***/ 9994: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var blue = { + 50: '#e3f2fd', + 100: '#bbdefb', + 200: '#90caf9', + 300: '#64b5f6', + 400: '#42a5f5', + 500: '#2196f3', + 600: '#1e88e5', + 700: '#1976d2', + 800: '#1565c0', + 900: '#0d47a1', + A100: '#82b1ff', + A200: '#448aff', + A400: '#2979ff', + A700: '#2962ff' +}; +/* harmony default export */ __webpack_exports__.Z = (blue); + +/***/ }), + +/***/ 3961: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var common = { + black: '#000', + white: '#fff' +}; +/* harmony default export */ __webpack_exports__.Z = (common); + +/***/ }), + +/***/ 3837: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var green = { + 50: '#e8f5e9', + 100: '#c8e6c9', + 200: '#a5d6a7', + 300: '#81c784', + 400: '#66bb6a', + 500: '#4caf50', + 600: '#43a047', + 700: '#388e3c', + 800: '#2e7d32', + 900: '#1b5e20', + A100: '#b9f6ca', + A200: '#69f0ae', + A400: '#00e676', + A700: '#00c853' +}; +/* harmony default export */ __webpack_exports__.Z = (green); + +/***/ }), + +/***/ 9749: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var grey = { + 50: '#fafafa', + 100: '#f5f5f5', + 200: '#eeeeee', + 300: '#e0e0e0', + 400: '#bdbdbd', + 500: '#9e9e9e', + 600: '#757575', + 700: '#616161', + 800: '#424242', + 900: '#212121', + A100: '#f5f5f5', + A200: '#eeeeee', + A400: '#bdbdbd', + A700: '#616161' +}; +/* harmony default export */ __webpack_exports__.Z = (grey); + +/***/ }), + +/***/ 5991: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var lightBlue = { + 50: '#e1f5fe', + 100: '#b3e5fc', + 200: '#81d4fa', + 300: '#4fc3f7', + 400: '#29b6f6', + 500: '#03a9f4', + 600: '#039be5', + 700: '#0288d1', + 800: '#0277bd', + 900: '#01579b', + A100: '#80d8ff', + A200: '#40c4ff', + A400: '#00b0ff', + A700: '#0091ea' +}; +/* harmony default export */ __webpack_exports__.Z = (lightBlue); + +/***/ }), + +/***/ 9850: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var orange = { + 50: '#fff3e0', + 100: '#ffe0b2', + 200: '#ffcc80', + 300: '#ffb74d', + 400: '#ffa726', + 500: '#ff9800', + 600: '#fb8c00', + 700: '#f57c00', + 800: '#ef6c00', + 900: '#e65100', + A100: '#ffd180', + A200: '#ffab40', + A400: '#ff9100', + A700: '#ff6d00' +}; +/* harmony default export */ __webpack_exports__.Z = (orange); + +/***/ }), + +/***/ 2316: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var purple = { + 50: '#f3e5f5', + 100: '#e1bee7', + 200: '#ce93d8', + 300: '#ba68c8', + 400: '#ab47bc', + 500: '#9c27b0', + 600: '#8e24aa', + 700: '#7b1fa2', + 800: '#6a1b9a', + 900: '#4a148c', + A100: '#ea80fc', + A200: '#e040fb', + A400: '#d500f9', + A700: '#aa00ff' +}; +/* harmony default export */ __webpack_exports__.Z = (purple); + +/***/ }), + +/***/ 1293: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var red = { + 50: '#ffebee', + 100: '#ffcdd2', + 200: '#ef9a9a', + 300: '#e57373', + 400: '#ef5350', + 500: '#f44336', + 600: '#e53935', + 700: '#d32f2f', + 800: '#c62828', + 900: '#b71c1c', + A100: '#ff8a80', + A200: '#ff5252', + A400: '#ff1744', + A700: '#d50000' +}; +/* harmony default export */ __webpack_exports__.Z = (red); + +/***/ }), + +/***/ 7534: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ createMixins; } +/* harmony export */ }); +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4942); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7462); + + +function createMixins(breakpoints, mixins) { + var _toolbar; + return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({ + toolbar: (_toolbar = { + minHeight: 56 + }, (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_toolbar, breakpoints.up('xs'), { + '@media (orientation: landscape)': { + minHeight: 48 + } + }), (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_toolbar, breakpoints.up('sm'), { + minHeight: 64 + }), _toolbar) + }, mixins); +} + +/***/ }), + +/***/ 4498: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ ZP: function() { return /* binding */ createPalette; } +/* harmony export */ }); +/* unused harmony exports light, dark */ +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(7462); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3366); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7219); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(3019); +/* harmony import */ var _mui_system__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7551); +/* harmony import */ var _colors_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3961); +/* harmony import */ var _colors_grey__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9749); +/* harmony import */ var _colors_purple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2316); +/* harmony import */ var _colors_red__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1293); +/* harmony import */ var _colors_orange__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9850); +/* harmony import */ var _colors_blue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9994); +/* harmony import */ var _colors_lightBlue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5991); +/* harmony import */ var _colors_green__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3837); + + + +var _excluded = ["mode", "contrastThreshold", "tonalOffset"]; + + + + + + + + + + +var light = { + // The colors used to style the text. + text: { + // The most important text. + primary: 'rgba(0, 0, 0, 0.87)', + // Secondary text. + secondary: 'rgba(0, 0, 0, 0.6)', + // Disabled text have even lower visual prominence. + disabled: 'rgba(0, 0, 0, 0.38)' + }, + // The color used to divide different elements. + divider: 'rgba(0, 0, 0, 0.12)', + // The background colors used to style the surfaces. + // Consistency between these values is important. + background: { + paper: _colors_common__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.white, + default: _colors_common__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.white + }, + // The colors used to style the action elements. + action: { + // The color of an active action like an icon button. + active: 'rgba(0, 0, 0, 0.54)', + // The color of an hovered action. + hover: 'rgba(0, 0, 0, 0.04)', + hoverOpacity: 0.04, + // The color of a selected action. + selected: 'rgba(0, 0, 0, 0.08)', + selectedOpacity: 0.08, + // The color of a disabled action. + disabled: 'rgba(0, 0, 0, 0.26)', + // The background color of a disabled action. + disabledBackground: 'rgba(0, 0, 0, 0.12)', + disabledOpacity: 0.38, + focus: 'rgba(0, 0, 0, 0.12)', + focusOpacity: 0.12, + activatedOpacity: 0.12 + } +}; +var dark = { + text: { + primary: _colors_common__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.white, + secondary: 'rgba(255, 255, 255, 0.7)', + disabled: 'rgba(255, 255, 255, 0.5)', + icon: 'rgba(255, 255, 255, 0.5)' + }, + divider: 'rgba(255, 255, 255, 0.12)', + background: { + paper: '#121212', + default: '#121212' + }, + action: { + active: _colors_common__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.white, + hover: 'rgba(255, 255, 255, 0.08)', + hoverOpacity: 0.08, + selected: 'rgba(255, 255, 255, 0.16)', + selectedOpacity: 0.16, + disabled: 'rgba(255, 255, 255, 0.3)', + disabledBackground: 'rgba(255, 255, 255, 0.12)', + disabledOpacity: 0.38, + focus: 'rgba(255, 255, 255, 0.12)', + focusOpacity: 0.12, + activatedOpacity: 0.24 + } +}; +function addLightOrDark(intent, direction, shade, tonalOffset) { + var tonalOffsetLight = tonalOffset.light || tonalOffset; + var tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5; + if (!intent[direction]) { + if (intent.hasOwnProperty(shade)) { + intent[direction] = intent[shade]; + } else if (direction === 'light') { + intent.light = (0,_mui_system__WEBPACK_IMPORTED_MODULE_1__/* .lighten */ .$n)(intent.main, tonalOffsetLight); + } else if (direction === 'dark') { + intent.dark = (0,_mui_system__WEBPACK_IMPORTED_MODULE_1__/* .darken */ ._j)(intent.main, tonalOffsetDark); + } + } +} +function getDefaultPrimary() { + var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light'; + if (mode === 'dark') { + return { + main: _colors_blue__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z[200], + light: _colors_blue__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z[50], + dark: _colors_blue__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z[400] + }; + } + return { + main: _colors_blue__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z[700], + light: _colors_blue__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z[400], + dark: _colors_blue__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z[800] + }; +} +function getDefaultSecondary() { + var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light'; + if (mode === 'dark') { + return { + main: _colors_purple__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z[200], + light: _colors_purple__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z[50], + dark: _colors_purple__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z[400] + }; + } + return { + main: _colors_purple__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z[500], + light: _colors_purple__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z[300], + dark: _colors_purple__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z[700] + }; +} +function getDefaultError() { + var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light'; + if (mode === 'dark') { + return { + main: _colors_red__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z[500], + light: _colors_red__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z[300], + dark: _colors_red__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z[700] + }; + } + return { + main: _colors_red__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z[700], + light: _colors_red__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z[400], + dark: _colors_red__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z[800] + }; +} +function getDefaultInfo() { + var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light'; + if (mode === 'dark') { + return { + main: _colors_lightBlue__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z[400], + light: _colors_lightBlue__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z[300], + dark: _colors_lightBlue__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z[700] + }; + } + return { + main: _colors_lightBlue__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z[700], + light: _colors_lightBlue__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z[500], + dark: _colors_lightBlue__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z[900] + }; +} +function getDefaultSuccess() { + var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light'; + if (mode === 'dark') { + return { + main: _colors_green__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z[400], + light: _colors_green__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z[300], + dark: _colors_green__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z[700] + }; + } + return { + main: _colors_green__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z[800], + light: _colors_green__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z[500], + dark: _colors_green__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z[900] + }; +} +function getDefaultWarning() { + var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light'; + if (mode === 'dark') { + return { + main: _colors_orange__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z[400], + light: _colors_orange__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z[300], + dark: _colors_orange__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z[700] + }; + } + return { + main: '#ed6c02', + // closest to orange[800] that pass 3:1. + light: _colors_orange__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z[500], + dark: _colors_orange__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z[900] + }; +} +function createPalette(palette) { + var _palette$mode = palette.mode, + mode = _palette$mode === void 0 ? 'light' : _palette$mode, + _palette$contrastThre = palette.contrastThreshold, + contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, + _palette$tonalOffset = palette.tonalOffset, + tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, + other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(palette, _excluded); + var primary = palette.primary || getDefaultPrimary(mode); + var secondary = palette.secondary || getDefaultSecondary(mode); + var error = palette.error || getDefaultError(mode); + var info = palette.info || getDefaultInfo(mode); + var success = palette.success || getDefaultSuccess(mode); + var warning = palette.warning || getDefaultWarning(mode); + + // Use the same logic as + // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59 + // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54 + function getContrastText(background) { + var contrastText = (0,_mui_system__WEBPACK_IMPORTED_MODULE_1__/* .getContrastRatio */ .mi)(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary; + if (false) { var contrast; } + return contrastText; + } + var augmentColor = function augmentColor(_ref) { + var color = _ref.color, + name = _ref.name, + _ref$mainShade = _ref.mainShade, + mainShade = _ref$mainShade === void 0 ? 500 : _ref$mainShade, + _ref$lightShade = _ref.lightShade, + lightShade = _ref$lightShade === void 0 ? 300 : _ref$lightShade, + _ref$darkShade = _ref.darkShade, + darkShade = _ref$darkShade === void 0 ? 700 : _ref$darkShade; + color = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)({}, color); + if (!color.main && color[mainShade]) { + color.main = color[mainShade]; + } + if (!color.hasOwnProperty('main')) { + throw new Error( false ? 0 : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(11, name ? " (".concat(name, ")") : '', mainShade)); + } + if (typeof color.main !== 'string') { + throw new Error( false ? 0 : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(12, name ? " (".concat(name, ")") : '', JSON.stringify(color.main))); + } + addLightOrDark(color, 'light', lightShade, tonalOffset); + addLightOrDark(color, 'dark', darkShade, tonalOffset); + if (!color.contrastText) { + color.contrastText = getContrastText(color.main); + } + return color; + }; + var modes = { + dark: dark, + light: light + }; + if (false) {} + var paletteOutput = (0,_mui_utils__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)({ + // A collection of common colors. + common: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)({}, _colors_common__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z), + // prevent mutable object. + // The palette mode, can be light or dark. + mode: mode, + // The colors used to represent primary interface elements for a user. + primary: augmentColor({ + color: primary, + name: 'primary' + }), + // The colors used to represent secondary interface elements for a user. + secondary: augmentColor({ + color: secondary, + name: 'secondary', + mainShade: 'A400', + lightShade: 'A200', + darkShade: 'A700' + }), + // The colors used to represent interface elements that the user should be made aware of. + error: augmentColor({ + color: error, + name: 'error' + }), + // The colors used to represent potentially dangerous actions or important messages. + warning: augmentColor({ + color: warning, + name: 'warning' + }), + // The colors used to present information to the user that is neutral and not necessarily important. + info: augmentColor({ + color: info, + name: 'info' + }), + // The colors used to indicate the successful completion of an action that user triggered. + success: augmentColor({ + color: success, + name: 'success' + }), + // The grey colors. + grey: _colors_grey__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, + // Used by `getContrastText()` to maximize the contrast between + // the background and the text. + contrastThreshold: contrastThreshold, + // Takes a background color and returns the text color that maximizes the contrast. + getContrastText: getContrastText, + // Generate a rich color object. + augmentColor: augmentColor, + // Used by the functions below to shift a color's luminance by approximately + // two indexes within its tonal palette. + // E.g., shift from Red 500 to Red 300 or Red 700. + tonalOffset: tonalOffset + }, modes[mode]), other); + return paletteOutput; +} + +/***/ }), + +/***/ 5669: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* unused harmony export createMuiTheme */ +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(7462); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3366); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7219); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3019); +/* harmony import */ var _mui_system__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7424); +/* harmony import */ var _mui_system__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(5789); +/* harmony import */ var _mui_system__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(3649); +/* harmony import */ var _createMixins__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7534); +/* harmony import */ var _createPalette__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4498); +/* harmony import */ var _createTypography__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9210); +/* harmony import */ var _shadows__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5534); +/* harmony import */ var _createTransitions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(5829); +/* harmony import */ var _zIndex__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(9100); + + + + +var _excluded = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"]; + + + + + + + + + +function createTheme() { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var _options$mixins = options.mixins, + mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, + _options$palette = options.palette, + paletteInput = _options$palette === void 0 ? {} : _options$palette, + _options$transitions = options.transitions, + transitionsInput = _options$transitions === void 0 ? {} : _options$transitions, + _options$typography = options.typography, + typographyInput = _options$typography === void 0 ? {} : _options$typography, + other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(options, _excluded); + if (options.vars) { + throw new Error( false ? 0 : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(18)); + } + var palette = (0,_createPalette__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)(paletteInput); + var systemTheme = (0,_mui_system__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(options); + var muiTheme = (0,_mui_utils__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(systemTheme, { + mixins: (0,_createMixins__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(systemTheme.breakpoints, mixinsInput), + palette: palette, + // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol. + shadows: _shadows__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.slice(), + typography: (0,_createTypography__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(palette, typographyInput), + transitions: (0,_createTransitions__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .ZP)(transitionsInput), + zIndex: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)({}, _zIndex__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z) + }); + muiTheme = (0,_mui_utils__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(muiTheme, other); + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + muiTheme = args.reduce(function (acc, argument) { + return (0,_mui_utils__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(acc, argument); + }, muiTheme); + if (false) { var traverse, stateClasses; } + muiTheme.unstable_sxConfig = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)({}, _mui_system__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, other == null ? void 0 : other.unstable_sxConfig); + muiTheme.unstable_sx = function sx(props) { + return (0,_mui_system__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)({ + sx: props, + theme: this + }); + }; + return muiTheme; +} +var warnedOnce = false; +function createMuiTheme() { + if (false) {} + return createTheme.apply(void 0, arguments); +} +/* harmony default export */ __webpack_exports__.Z = (createTheme); + +/***/ }), + +/***/ 5829: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ ZP: function() { return /* binding */ createTransitions; }, +/* harmony export */ x9: function() { return /* binding */ duration; } +/* harmony export */ }); +/* unused harmony export easing */ +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3366); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7462); + + +var _excluded = ["duration", "easing", "delay"]; +// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves +// to learn the context in which each easing should be used. +var easing = { + // This is the most common easing curve. + easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)', + // Objects enter the screen at full velocity from off-screen and + // slowly decelerate to a resting point. + easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)', + // Objects leave the screen at full velocity. They do not decelerate when off-screen. + easeIn: 'cubic-bezier(0.4, 0, 1, 1)', + // The sharp curve is used by objects that may return to the screen at any time. + sharp: 'cubic-bezier(0.4, 0, 0.6, 1)' +}; + +// Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations +// to learn when use what timing +var duration = { + shortest: 150, + shorter: 200, + short: 250, + // most basic recommended timing + standard: 300, + // this is to be used in complex animations + complex: 375, + // recommended when something is entering screen + enteringScreen: 225, + // recommended when something is leaving screen + leavingScreen: 195 +}; +function formatMs(milliseconds) { + return "".concat(Math.round(milliseconds), "ms"); +} +function getAutoHeightDuration(height) { + if (!height) { + return 0; + } + var constant = height / 36; + + // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10 + return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10); +} +function createTransitions(inputTransitions) { + var mergedEasing = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, easing, inputTransitions.easing); + var mergedDuration = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, duration, inputTransitions.duration); + var create = function create() { + var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all']; + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var _options$duration = options.duration, + durationOption = _options$duration === void 0 ? mergedDuration.standard : _options$duration, + _options$easing = options.easing, + easingOption = _options$easing === void 0 ? mergedEasing.easeInOut : _options$easing, + _options$delay = options.delay, + delay = _options$delay === void 0 ? 0 : _options$delay, + other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(options, _excluded); + if (false) { var isNumber, isString; } + return (Array.isArray(props) ? props : [props]).map(function (animatedProp) { + return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : formatMs(delay)); + }).join(','); + }; + return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({ + getAutoHeightDuration: getAutoHeightDuration, + create: create + }, inputTransitions, { + easing: mergedEasing, + duration: mergedDuration + }); +} + +/***/ }), + +/***/ 9210: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ createTypography; } +/* harmony export */ }); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7462); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3366); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3019); + + +var _excluded = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]; + +function round(value) { + return Math.round(value * 1e5) / 1e5; +} +var caseAllCaps = { + textTransform: 'uppercase' +}; +var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif'; + +/** + * @see @link{https://m2.material.io/design/typography/the-type-system.html} + * @see @link{https://m2.material.io/design/typography/understanding-typography.html} + */ +function createTypography(palette, typography) { + var _ref = typeof typography === 'function' ? typography(palette) : typography, + _ref$fontFamily = _ref.fontFamily, + fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, + _ref$fontSize = _ref.fontSize, + fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize, + _ref$fontWeightLight = _ref.fontWeightLight, + fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, + _ref$fontWeightRegula = _ref.fontWeightRegular, + fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, + _ref$fontWeightMedium = _ref.fontWeightMedium, + fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, + _ref$fontWeightBold = _ref.fontWeightBold, + fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, + _ref$htmlFontSize = _ref.htmlFontSize, + htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, + allVariants = _ref.allVariants, + pxToRem2 = _ref.pxToRem, + other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_ref, _excluded); + if (false) {} + var coef = fontSize / 14; + var pxToRem = pxToRem2 || function (size) { + return "".concat(size / htmlFontSize * coef, "rem"); + }; + var buildVariant = function buildVariant(fontWeight, size, lineHeight, letterSpacing, casing) { + return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({ + fontFamily: fontFamily, + fontWeight: fontWeight, + fontSize: pxToRem(size), + // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/ + lineHeight: lineHeight + }, fontFamily === defaultFontFamily ? { + letterSpacing: "".concat(round(letterSpacing / size), "em") + } : {}, casing, allVariants); + }; + var variants = { + h1: buildVariant(fontWeightLight, 96, 1.167, -1.5), + h2: buildVariant(fontWeightLight, 60, 1.2, -0.5), + h3: buildVariant(fontWeightRegular, 48, 1.167, 0), + h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25), + h5: buildVariant(fontWeightRegular, 24, 1.334, 0), + h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15), + subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15), + subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1), + body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15), + body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15), + button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps), + caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4), + overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps), + // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types. + inherit: { + fontFamily: 'inherit', + fontWeight: 'inherit', + fontSize: 'inherit', + lineHeight: 'inherit', + letterSpacing: 'inherit' + } + }; + return (0,_mui_utils__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({ + htmlFontSize: htmlFontSize, + pxToRem: pxToRem, + fontFamily: fontFamily, + fontSize: fontSize, + fontWeightLight: fontWeightLight, + fontWeightRegular: fontWeightRegular, + fontWeightMedium: fontWeightMedium, + fontWeightBold: fontWeightBold + }, variants), other, { + clone: false // No need to clone deep + }); +} + +/***/ }), + +/***/ 2248: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _createTheme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5669); +'use client'; + + +var defaultTheme = (0,_createTheme__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(); +/* harmony default export */ __webpack_exports__.Z = (defaultTheme); + +/***/ }), + +/***/ 2951: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +/* harmony default export */ __webpack_exports__.Z = ('$$material'); + +/***/ }), + +/***/ 5534: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var shadowKeyUmbraOpacity = 0.2; +var shadowKeyPenumbraOpacity = 0.14; +var shadowAmbientShadowOpacity = 0.12; +function createShadow() { + return ["".concat(arguments.length <= 0 ? undefined : arguments[0], "px ").concat(arguments.length <= 1 ? undefined : arguments[1], "px ").concat(arguments.length <= 2 ? undefined : arguments[2], "px ").concat(arguments.length <= 3 ? undefined : arguments[3], "px rgba(0,0,0,").concat(shadowKeyUmbraOpacity, ")"), "".concat(arguments.length <= 4 ? undefined : arguments[4], "px ").concat(arguments.length <= 5 ? undefined : arguments[5], "px ").concat(arguments.length <= 6 ? undefined : arguments[6], "px ").concat(arguments.length <= 7 ? undefined : arguments[7], "px rgba(0,0,0,").concat(shadowKeyPenumbraOpacity, ")"), "".concat(arguments.length <= 8 ? undefined : arguments[8], "px ").concat(arguments.length <= 9 ? undefined : arguments[9], "px ").concat(arguments.length <= 10 ? undefined : arguments[10], "px ").concat(arguments.length <= 11 ? undefined : arguments[11], "px rgba(0,0,0,").concat(shadowAmbientShadowOpacity, ")")].join(','); +} + +// Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss +var shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)]; +/* harmony default export */ __webpack_exports__.Z = (shadows); + +/***/ }), + +/***/ 7592: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Dz: function() { return /* binding */ slotShouldForwardProp; }, +/* harmony export */ FO: function() { return /* binding */ rootShouldForwardProp; } +/* harmony export */ }); +/* harmony import */ var _mui_system__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5182); +/* harmony import */ var _defaultTheme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2248); +/* harmony import */ var _identifier__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2951); +'use client'; + + + + +var rootShouldForwardProp = function rootShouldForwardProp(prop) { + return (0,_mui_system__WEBPACK_IMPORTED_MODULE_0__/* .shouldForwardProp */ .x9)(prop) && prop !== 'classes'; +}; +var slotShouldForwardProp = _mui_system__WEBPACK_IMPORTED_MODULE_0__/* .shouldForwardProp */ .x9; +var styled = (0,_mui_system__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + themeId: _identifier__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, + defaultTheme: _defaultTheme__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, + rootShouldForwardProp: rootShouldForwardProp +}); +/* harmony default export */ __webpack_exports__.ZP = (styled); + +/***/ }), + +/***/ 7342: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ useThemeProps; } +/* harmony export */ }); +/* harmony import */ var _mui_system__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4614); +/* harmony import */ var _defaultTheme__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2248); +/* harmony import */ var _identifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2951); +'use client'; + + + + +function useThemeProps(_ref) { + var props = _ref.props, + name = _ref.name; + return (0,_mui_system__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({ + props: props, + name: name, + defaultTheme: _defaultTheme__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, + themeId: _identifier__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z + }); +} + +/***/ }), + +/***/ 9100: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +// We need to centralize the zIndex definitions as they work +// like global values in the browser. +var zIndex = { + mobileStepper: 1000, + fab: 1050, + speedDial: 1050, + appBar: 1100, + drawer: 1200, + modal: 1300, + snackbar: 1400, + tooltip: 1500 +}; +/* harmony default export */ __webpack_exports__.Z = (zIndex); + +/***/ }), + +/***/ 1615: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8831); + +/* harmony default export */ __webpack_exports__.Z = (_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z); + +/***/ }), + +/***/ 1171: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ createSvgIcon; } +}); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(7462); +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(7313); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +var objectWithoutPropertiesLoose = __webpack_require__(3366); +// EXTERNAL MODULE: ./node_modules/clsx/dist/clsx.mjs +var clsx = __webpack_require__(4146); +// EXTERNAL MODULE: ./node_modules/@mui/utils/esm/composeClasses/composeClasses.js +var composeClasses = __webpack_require__(1921); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/capitalize.js +var capitalize = __webpack_require__(1615); +// EXTERNAL MODULE: ./node_modules/@mui/material/styles/useThemeProps.js +var useThemeProps = __webpack_require__(7342); +// EXTERNAL MODULE: ./node_modules/@mui/material/styles/styled.js +var styled = __webpack_require__(7592); +// EXTERNAL MODULE: ./node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +var generateUtilityClasses = __webpack_require__(7430); +// EXTERNAL MODULE: ./node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +var generateUtilityClass = __webpack_require__(2298); +;// CONCATENATED MODULE: ./node_modules/@mui/material/SvgIcon/svgIconClasses.js + + +function getSvgIconUtilityClass(slot) { + return (0,generateUtilityClass/* default */.Z)('MuiSvgIcon', slot); +} +var svgIconClasses = (0,generateUtilityClasses/* default */.Z)('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']); +/* harmony default export */ var SvgIcon_svgIconClasses = ((/* unused pure expression or super */ null && (svgIconClasses))); +// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js +var jsx_runtime = __webpack_require__(6417); +;// CONCATENATED MODULE: ./node_modules/@mui/material/SvgIcon/SvgIcon.js +'use client'; + + + +var _excluded = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"]; + + + + + + + + + + +var useUtilityClasses = function useUtilityClasses(ownerState) { + var color = ownerState.color, + fontSize = ownerState.fontSize, + classes = ownerState.classes; + var slots = { + root: ['root', color !== 'inherit' && "color".concat((0,capitalize/* default */.Z)(color)), "fontSize".concat((0,capitalize/* default */.Z)(fontSize))] + }; + return (0,composeClasses/* default */.Z)(slots, getSvgIconUtilityClass, classes); +}; +var SvgIconRoot = (0,styled/* default */.ZP)('svg', { + name: 'MuiSvgIcon', + slot: 'Root', + overridesResolver: function overridesResolver(props, styles) { + var ownerState = props.ownerState; + return [styles.root, ownerState.color !== 'inherit' && styles["color".concat((0,capitalize/* default */.Z)(ownerState.color))], styles["fontSize".concat((0,capitalize/* default */.Z)(ownerState.fontSize))]]; + } +})(function (_ref) { + var theme = _ref.theme, + ownerState = _ref.ownerState; + var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3; + return { + userSelect: 'none', + width: '1em', + height: '1em', + display: 'inline-block', + // the will define the property that has `currentColor` + // e.g. heroicons uses fill="none" and stroke="currentColor" + fill: ownerState.hasSvgAsChild ? undefined : 'currentColor', + flexShrink: 0, + transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', { + duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter + }), + fontSize: { + inherit: 'inherit', + small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem', + medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem', + large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem' + }[ownerState.fontSize], + // TODO v5 deprecate, v6 remove for sx + color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : { + action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active, + disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled, + inherit: undefined + }[ownerState.color] + }; +}); +var SvgIcon = /*#__PURE__*/react.forwardRef(function SvgIcon(inProps, ref) { + var props = (0,useThemeProps/* default */.Z)({ + props: inProps, + name: 'MuiSvgIcon' + }); + var children = props.children, + className = props.className, + _props$color = props.color, + color = _props$color === void 0 ? 'inherit' : _props$color, + _props$component = props.component, + component = _props$component === void 0 ? 'svg' : _props$component, + _props$fontSize = props.fontSize, + fontSize = _props$fontSize === void 0 ? 'medium' : _props$fontSize, + htmlColor = props.htmlColor, + _props$inheritViewBox = props.inheritViewBox, + inheritViewBox = _props$inheritViewBox === void 0 ? false : _props$inheritViewBox, + titleAccess = props.titleAccess, + _props$viewBox = props.viewBox, + viewBox = _props$viewBox === void 0 ? '0 0 24 24' : _props$viewBox, + other = (0,objectWithoutPropertiesLoose/* default */.Z)(props, _excluded); + var hasSvgAsChild = /*#__PURE__*/react.isValidElement(children) && children.type === 'svg'; + var ownerState = (0,esm_extends/* default */.Z)({}, props, { + color: color, + component: component, + fontSize: fontSize, + instanceFontSize: inProps.fontSize, + inheritViewBox: inheritViewBox, + viewBox: viewBox, + hasSvgAsChild: hasSvgAsChild + }); + var more = {}; + if (!inheritViewBox) { + more.viewBox = viewBox; + } + var classes = useUtilityClasses(ownerState); + return /*#__PURE__*/(0,jsx_runtime.jsxs)(SvgIconRoot, (0,esm_extends/* default */.Z)({ + as: component, + className: (0,clsx/* default */.Z)(classes.root, className), + focusable: "false", + color: htmlColor, + "aria-hidden": titleAccess ? undefined : true, + role: titleAccess ? 'img' : undefined, + ref: ref + }, more, other, hasSvgAsChild && children.props, { + ownerState: ownerState, + children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/(0,jsx_runtime.jsx)("title", { + children: titleAccess + }) : null] + })); +}); + false ? 0 : void 0; +SvgIcon.muiName = 'SvgIcon'; +/* harmony default export */ var SvgIcon_SvgIcon = (SvgIcon); +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/createSvgIcon.js +'use client'; + + + + + +/** + * Private module reserved for @mui packages. + */ + +function createSvgIcon(path, displayName) { + function Component(props, ref) { + return /*#__PURE__*/(0,jsx_runtime.jsx)(SvgIcon_SvgIcon, (0,esm_extends/* default */.Z)({ + "data-testid": "".concat(displayName, "Icon"), + ref: ref + }, props, { + children: path + })); + } + if (false) {} + Component.muiName = SvgIcon_SvgIcon.muiName; + return /*#__PURE__*/react.memo( /*#__PURE__*/react.forwardRef(Component)); +} + +/***/ }), + +/***/ 8706: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1636); + +/* harmony default export */ __webpack_exports__.Z = (_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z); + +/***/ }), + +/***/ 3928: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + capitalize: function() { return /* reexport */ capitalize/* default */.Z; }, + createChainedFunction: function() { return /* reexport */ utils_createChainedFunction; }, + createSvgIcon: function() { return /* reexport */ createSvgIcon/* default */.Z; }, + debounce: function() { return /* reexport */ debounce/* default */.Z; }, + deprecatedPropType: function() { return /* reexport */ utils_deprecatedPropType; }, + isMuiElement: function() { return /* reexport */ isMuiElement/* default */.Z; }, + ownerDocument: function() { return /* reexport */ ownerDocument/* default */.Z; }, + ownerWindow: function() { return /* reexport */ ownerWindow/* default */.Z; }, + requirePropFactory: function() { return /* reexport */ utils_requirePropFactory; }, + setRef: function() { return /* reexport */ utils_setRef; }, + unstable_ClassNameGenerator: function() { return /* binding */ unstable_ClassNameGenerator; }, + unstable_useEnhancedEffect: function() { return /* reexport */ useEnhancedEffect/* default */.Z; }, + unstable_useId: function() { return /* reexport */ utils_useId; }, + unsupportedProp: function() { return /* reexport */ utils_unsupportedProp; }, + useControlled: function() { return /* reexport */ useControlled/* default */.Z; }, + useEventCallback: function() { return /* reexport */ useEventCallback/* default */.Z; }, + useForkRef: function() { return /* reexport */ useForkRef/* default */.Z; }, + useIsFocusVisible: function() { return /* reexport */ useIsFocusVisible/* default */.Z; } +}); + +// EXTERNAL MODULE: ./node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +var ClassNameGenerator = __webpack_require__(1271); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/capitalize.js +var capitalize = __webpack_require__(1615); +// EXTERNAL MODULE: ./node_modules/@mui/utils/esm/createChainedFunction.js +var createChainedFunction = __webpack_require__(4246); +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/createChainedFunction.js + +/* harmony default export */ var utils_createChainedFunction = (createChainedFunction/* default */.Z); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/createSvgIcon.js + 2 modules +var createSvgIcon = __webpack_require__(1171); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/debounce.js +var debounce = __webpack_require__(8706); +;// CONCATENATED MODULE: ./node_modules/@mui/utils/esm/deprecatedPropType.js +function deprecatedPropType(validator, reason) { + if (true) { + return function () { + return null; + }; + } + return function (props, propName, componentName, location, propFullName) { + var componentNameSafe = componentName || '<>'; + var propFullNameSafe = propFullName || propName; + if (typeof props[propName] !== 'undefined') { + return new Error("The ".concat(location, " `").concat(propFullNameSafe, "` of ") + "`".concat(componentNameSafe, "` is deprecated. ").concat(reason)); + } + return null; + }; +} +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/deprecatedPropType.js + +/* harmony default export */ var utils_deprecatedPropType = (deprecatedPropType); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/isMuiElement.js + 1 modules +var isMuiElement = __webpack_require__(7816); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/ownerDocument.js +var ownerDocument = __webpack_require__(6106); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/ownerWindow.js +var ownerWindow = __webpack_require__(3533); +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(7462); +;// CONCATENATED MODULE: ./node_modules/@mui/utils/esm/requirePropFactory.js + +function requirePropFactory(componentNameInError, Component) { + if (true) { + return function () { + return null; + }; + } + + // eslint-disable-next-line react/forbid-foreign-prop-types + var prevPropTypes = Component ? (0,esm_extends/* default */.Z)({}, Component.propTypes) : null; + var requireProp = function requireProp(requiredProp) { + return function (props, propName, componentName, location, propFullName) { + var propFullNameSafe = propFullName || propName; + var defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe]; + if (defaultTypeChecker) { + for (var _len = arguments.length, args = new Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { + args[_key - 5] = arguments[_key]; + } + var typeCheckerResult = defaultTypeChecker.apply(void 0, [props, propName, componentName, location, propFullName].concat(args)); + if (typeCheckerResult) { + return typeCheckerResult; + } + } + if (typeof props[propName] !== 'undefined' && !props[requiredProp]) { + return new Error("The prop `".concat(propFullNameSafe, "` of ") + "`".concat(componentNameInError, "` can only be used together with the `").concat(requiredProp, "` prop.")); + } + return null; + }; + }; + return requireProp; +} +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/requirePropFactory.js + +/* harmony default export */ var utils_requirePropFactory = (requirePropFactory); +// EXTERNAL MODULE: ./node_modules/@mui/utils/esm/setRef.js +var setRef = __webpack_require__(9265); +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/setRef.js + +/* harmony default export */ var utils_setRef = (setRef/* default */.Z); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/useEnhancedEffect.js +var useEnhancedEffect = __webpack_require__(3118); +// EXTERNAL MODULE: ./node_modules/@mui/utils/esm/useId/useId.js +var useId = __webpack_require__(8334); +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/useId.js +'use client'; + + +/* harmony default export */ var utils_useId = (useId/* default */.Z); +;// CONCATENATED MODULE: ./node_modules/@mui/utils/esm/unsupportedProp.js +function unsupportedProp(props, propName, componentName, location, propFullName) { + if (true) { + return null; + } + var propFullNameSafe = propFullName || propName; + if (typeof props[propName] !== 'undefined') { + return new Error("The prop `".concat(propFullNameSafe, "` is not supported. Please remove it.")); + } + return null; +} +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/unsupportedProp.js + +/* harmony default export */ var utils_unsupportedProp = (unsupportedProp); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/useControlled.js + 1 modules +var useControlled = __webpack_require__(4951); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/useEventCallback.js +var useEventCallback = __webpack_require__(3236); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/useForkRef.js +var useForkRef = __webpack_require__(6983); +// EXTERNAL MODULE: ./node_modules/@mui/material/utils/useIsFocusVisible.js + 1 modules +var useIsFocusVisible = __webpack_require__(9127); +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/index.js +'use client'; + + + + + + + + + + + + + + + + + + + +// TODO: remove this export once ClassNameGenerator is stable +// eslint-disable-next-line @typescript-eslint/naming-convention +var unstable_ClassNameGenerator = { + configure: function configure(generator) { + if (false) {} + ClassNameGenerator/* default */.Z.configure(generator); + } +}; + +/***/ }), + +/***/ 7816: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ utils_isMuiElement; } +}); + +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(7313); +;// CONCATENATED MODULE: ./node_modules/@mui/utils/esm/isMuiElement.js + +function isMuiElement(element, muiNames) { + return /*#__PURE__*/react.isValidElement(element) && muiNames.indexOf(element.type.muiName) !== -1; +} +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/isMuiElement.js + +/* harmony default export */ var utils_isMuiElement = (isMuiElement); + +/***/ }), + +/***/ 6106: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2504); + +/* harmony default export */ __webpack_exports__.Z = (_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z); + +/***/ }), + +/***/ 3533: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8929); + +/* harmony default export */ __webpack_exports__.Z = (_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z); + +/***/ }), + +/***/ 4951: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ utils_useControlled; } +}); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js +var slicedToArray = __webpack_require__(3324); +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(7313); +;// CONCATENATED MODULE: ./node_modules/@mui/utils/esm/useControlled/useControlled.js +'use client'; + +/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */ + + +function useControlled(_ref) { + var controlled = _ref.controlled, + defaultProp = _ref.default, + name = _ref.name, + _ref$state = _ref.state, + state = _ref$state === void 0 ? 'value' : _ref$state; + // isControlled is ignored in the hook dependency lists as it should never change. + var _React$useRef = react.useRef(controlled !== undefined), + isControlled = _React$useRef.current; + var _React$useState = react.useState(defaultProp), + _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2), + valueState = _React$useState2[0], + setValue = _React$useState2[1]; + var value = isControlled ? controlled : valueState; + if (false) { var _React$useRef2, defaultValue; } + var setValueIfUncontrolled = react.useCallback(function (newValue) { + if (!isControlled) { + setValue(newValue); + } + }, []); + return [value, setValueIfUncontrolled]; +} +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/useControlled.js +'use client'; + + +/* harmony default export */ var utils_useControlled = (useControlled); + +/***/ }), + +/***/ 3118: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5094); +'use client'; + + +/* harmony default export */ __webpack_exports__.Z = (_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z); + +/***/ }), + +/***/ 3236: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6182); +'use client'; + + +/* harmony default export */ __webpack_exports__.Z = (_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z); + +/***/ }), + +/***/ 6983: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1577); +'use client'; + + +/* harmony default export */ __webpack_exports__.Z = (_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z); + +/***/ }), + +/***/ 9127: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ utils_useIsFocusVisible; } +}); + +// EXTERNAL MODULE: ./node_modules/react/index.js +var react = __webpack_require__(7313); +;// CONCATENATED MODULE: ./node_modules/@mui/utils/esm/useIsFocusVisible.js +'use client'; + +// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js + +var hadKeyboardEvent = true; +var hadFocusVisibleRecently = false; +var hadFocusVisibleRecentlyTimeout; +var inputTypesWhitelist = { + text: true, + search: true, + url: true, + tel: true, + email: true, + password: true, + number: true, + date: true, + month: true, + week: true, + time: true, + datetime: true, + 'datetime-local': true +}; + +/** + * Computes whether the given element should automatically trigger the + * `focus-visible` class being added, i.e. whether it should always match + * `:focus-visible` when focused. + * @param {Element} node + * @returns {boolean} + */ +function focusTriggersKeyboardModality(node) { + var type = node.type, + tagName = node.tagName; + if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) { + return true; + } + if (tagName === 'TEXTAREA' && !node.readOnly) { + return true; + } + if (node.isContentEditable) { + return true; + } + return false; +} + +/** + * Keep track of our keyboard modality state with `hadKeyboardEvent`. + * If the most recent user interaction was via the keyboard; + * and the key press did not include a meta, alt/option, or control key; + * then the modality is keyboard. Otherwise, the modality is not keyboard. + * @param {KeyboardEvent} event + */ +function handleKeyDown(event) { + if (event.metaKey || event.altKey || event.ctrlKey) { + return; + } + hadKeyboardEvent = true; +} + +/** + * If at any point a user clicks with a pointing device, ensure that we change + * the modality away from keyboard. + * This avoids the situation where a user presses a key on an already focused + * element, and then clicks on a different element, focusing it with a + * pointing device, while we still think we're in keyboard modality. + */ +function handlePointerDown() { + hadKeyboardEvent = false; +} +function handleVisibilityChange() { + if (this.visibilityState === 'hidden') { + // If the tab becomes active again, the browser will handle calling focus + // on the element (Safari actually calls it twice). + // If this tab change caused a blur on an element with focus-visible, + // re-apply the class when the user switches back to the tab. + if (hadFocusVisibleRecently) { + hadKeyboardEvent = true; + } + } +} +function prepare(doc) { + doc.addEventListener('keydown', handleKeyDown, true); + doc.addEventListener('mousedown', handlePointerDown, true); + doc.addEventListener('pointerdown', handlePointerDown, true); + doc.addEventListener('touchstart', handlePointerDown, true); + doc.addEventListener('visibilitychange', handleVisibilityChange, true); +} +function teardown(doc) { + doc.removeEventListener('keydown', handleKeyDown, true); + doc.removeEventListener('mousedown', handlePointerDown, true); + doc.removeEventListener('pointerdown', handlePointerDown, true); + doc.removeEventListener('touchstart', handlePointerDown, true); + doc.removeEventListener('visibilitychange', handleVisibilityChange, true); +} +function isFocusVisible(event) { + var target = event.target; + try { + return target.matches(':focus-visible'); + } catch (error) { + // Browsers not implementing :focus-visible will throw a SyntaxError. + // We use our own heuristic for those browsers. + // Rethrow might be better if it's not the expected error but do we really + // want to crash if focus-visible malfunctioned? + } + + // No need for validFocusTarget check. The user does that by attaching it to + // focusable events only. + return hadKeyboardEvent || focusTriggersKeyboardModality(target); +} +function useIsFocusVisible() { + var ref = react.useCallback(function (node) { + if (node != null) { + prepare(node.ownerDocument); + } + }, []); + var isFocusVisibleRef = react.useRef(false); + + /** + * Should be called if a blur event is fired + */ + function handleBlurVisible() { + // checking against potential state variable does not suffice if we focus and blur synchronously. + // React wouldn't have time to trigger a re-render so `focusVisible` would be stale. + // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events. + // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751 + // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186). + if (isFocusVisibleRef.current) { + // To detect a tab/window switch, we look for a blur event followed + // rapidly by a visibility change. + // If we don't see a visibility change within 100ms, it's probably a + // regular focus change. + hadFocusVisibleRecently = true; + window.clearTimeout(hadFocusVisibleRecentlyTimeout); + hadFocusVisibleRecentlyTimeout = window.setTimeout(function () { + hadFocusVisibleRecently = false; + }, 100); + isFocusVisibleRef.current = false; + return true; + } + return false; + } + + /** + * Should be called if a blur event is fired + */ + function handleFocusVisible(event) { + if (isFocusVisible(event)) { + isFocusVisibleRef.current = true; + return true; + } + return false; + } + return { + isFocusVisibleRef: isFocusVisibleRef, + onFocus: handleFocusVisible, + onBlur: handleBlurVisible, + ref: ref + }; +} +;// CONCATENATED MODULE: ./node_modules/@mui/material/utils/useIsFocusVisible.js +'use client'; + + +/* harmony default export */ var utils_useIsFocusVisible = (useIsFocusVisible); + +/***/ }), + +/***/ 564: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Co: function() { return /* binding */ internal_processStyles; }, +/* harmony export */ ZP: function() { return /* binding */ styled; } +/* harmony export */ }); +/* harmony import */ var _emotion_styled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3320); +/** + * @mui/styled-engine v5.13.2 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/* eslint-disable no-underscore-dangle */ + +function styled(tag, options) { + var stylesFactory = (0,_emotion_styled__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(tag, options); + if (false) {} + return stylesFactory; +} + +// eslint-disable-next-line @typescript-eslint/naming-convention +var internal_processStyles = function internal_processStyles(tag, processor) { + // Emotion attaches all the styles as `__emotion_styles`. + // Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186 + if (Array.isArray(tag.__emotion_styles)) { + tag.__emotion_styles = processor(tag.__emotion_styles); + } +}; + + + + +/***/ }), + +/***/ 7158: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ E0: function() { return /* binding */ borderRadius; }, +/* harmony export */ NL: function() { return /* binding */ borderTransform; } +/* harmony export */ }); +/* unused harmony exports border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor */ +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6428); +/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7702); +/* harmony import */ var _spacing__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9005); +/* harmony import */ var _breakpoints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4929); + + + + + +function borderTransform(value) { + if (typeof value !== 'number') { + return value; + } + return "".concat(value, "px solid"); +} +var border = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'border', + themeKey: 'borders', + transform: borderTransform +}); +var borderTop = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderTop', + themeKey: 'borders', + transform: borderTransform +}); +var borderRight = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderRight', + themeKey: 'borders', + transform: borderTransform +}); +var borderBottom = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderBottom', + themeKey: 'borders', + transform: borderTransform +}); +var borderLeft = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderLeft', + themeKey: 'borders', + transform: borderTransform +}); +var borderColor = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderColor', + themeKey: 'palette' +}); +var borderTopColor = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderTopColor', + themeKey: 'palette' +}); +var borderRightColor = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderRightColor', + themeKey: 'palette' +}); +var borderBottomColor = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderBottomColor', + themeKey: 'palette' +}); +var borderLeftColor = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'borderLeftColor', + themeKey: 'palette' +}); + +// false positive +// eslint-disable-next-line react/function-component-definition +var borderRadius = function borderRadius(props) { + if (props.borderRadius !== undefined && props.borderRadius !== null) { + var transformer = (0,_spacing__WEBPACK_IMPORTED_MODULE_1__/* .createUnaryUnit */ .eI)(props.theme, 'shape.borderRadius', 4, 'borderRadius'); + var styleFromPropValue = function styleFromPropValue(propValue) { + return { + borderRadius: (0,_spacing__WEBPACK_IMPORTED_MODULE_1__/* .getValue */ .NA)(transformer, propValue) + }; + }; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_2__/* .handleBreakpoints */ .k9)(props, props.borderRadius, styleFromPropValue); + } + return null; +}; +borderRadius.propTypes = false ? 0 : {}; +borderRadius.filterProps = ['borderRadius']; +var borders = (0,_compose__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius); +/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (borders))); + +/***/ }), + +/***/ 4929: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ L7: function() { return /* binding */ removeUnusedBreakpoints; }, +/* harmony export */ P$: function() { return /* binding */ resolveBreakpointValues; }, +/* harmony export */ VO: function() { return /* binding */ values; }, +/* harmony export */ W8: function() { return /* binding */ createEmptyBreakpointObject; }, +/* harmony export */ dt: function() { return /* binding */ mergeBreakpointsInOrder; }, +/* harmony export */ k9: function() { return /* binding */ handleBreakpoints; } +/* harmony export */ }); +/* unused harmony export computeBreakpointsBase */ +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3019); + + + + + + +// The breakpoint **start** at this value. +// For instance with the first breakpoint xs: [xs, sm[. +var values = { + xs: 0, + // phone + sm: 600, + // tablet + md: 900, + // small laptop + lg: 1200, + // desktop + xl: 1536 // large screen +}; + +var defaultBreakpoints = { + // Sorted ASC by size. That's important. + // It can't be configured as it's used statically for propTypes. + keys: ['xs', 'sm', 'md', 'lg', 'xl'], + up: function up(key) { + return "@media (min-width:".concat(values[key], "px)"); + } +}; +function handleBreakpoints(props, propValue, styleFromPropValue) { + var theme = props.theme || {}; + if (Array.isArray(propValue)) { + var themeBreakpoints = theme.breakpoints || defaultBreakpoints; + return propValue.reduce(function (acc, item, index) { + acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]); + return acc; + }, {}); + } + if (typeof propValue === 'object') { + var _themeBreakpoints = theme.breakpoints || defaultBreakpoints; + return Object.keys(propValue).reduce(function (acc, breakpoint) { + // key is breakpoint + if (Object.keys(_themeBreakpoints.values || values).indexOf(breakpoint) !== -1) { + var mediaKey = _themeBreakpoints.up(breakpoint); + acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint); + } else { + var cssKey = breakpoint; + acc[cssKey] = propValue[cssKey]; + } + return acc; + }, {}); + } + var output = styleFromPropValue(propValue); + return output; +} +function breakpoints(styleFunction) { + // false positive + // eslint-disable-next-line react/function-component-definition + var newStyleFunction = function newStyleFunction(props) { + var theme = props.theme || {}; + var base = styleFunction(props); + var themeBreakpoints = theme.breakpoints || defaultBreakpoints; + var extended = themeBreakpoints.keys.reduce(function (acc, key) { + if (props[key]) { + acc = acc || {}; + acc[themeBreakpoints.up(key)] = styleFunction(_extends({ + theme: theme + }, props[key])); + } + return acc; + }, null); + return merge(base, extended); + }; + newStyleFunction.propTypes = false ? 0 : {}; + newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl'].concat(_toConsumableArray(styleFunction.filterProps)); + return newStyleFunction; +} +function createEmptyBreakpointObject() { + var breakpointsInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var _breakpointsInput$key; + var breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce(function (acc, key) { + var breakpointStyleKey = breakpointsInput.up(key); + acc[breakpointStyleKey] = {}; + return acc; + }, {}); + return breakpointsInOrder || {}; +} +function removeUnusedBreakpoints(breakpointKeys, style) { + return breakpointKeys.reduce(function (acc, key) { + var breakpointOutput = acc[key]; + var isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0; + if (isBreakpointUnused) { + delete acc[key]; + } + return acc; + }, style); +} +function mergeBreakpointsInOrder(breakpointsInput) { + var emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput); + for (var _len = arguments.length, styles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + styles[_key - 1] = arguments[_key]; + } + var mergedOutput = [emptyBreakpoints].concat(styles).reduce(function (prev, next) { + return (0,_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(prev, next); + }, {}); + return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput); +} + +// compute base for responsive values; e.g., +// [1,2,3] => {xs: true, sm: true, md: true} +// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true} +function computeBreakpointsBase(breakpointValues, themeBreakpoints) { + // fixed value + if (typeof breakpointValues !== 'object') { + return {}; + } + var base = {}; + var breakpointsKeys = Object.keys(themeBreakpoints); + if (Array.isArray(breakpointValues)) { + breakpointsKeys.forEach(function (breakpoint, i) { + if (i < breakpointValues.length) { + base[breakpoint] = true; + } + }); + } else { + breakpointsKeys.forEach(function (breakpoint) { + if (breakpointValues[breakpoint] != null) { + base[breakpoint] = true; + } + }); + } + return base; +} +function resolveBreakpointValues(_ref) { + var breakpointValues = _ref.values, + themeBreakpoints = _ref.breakpoints, + customBase = _ref.base; + var base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints); + var keys = Object.keys(base); + if (keys.length === 0) { + return breakpointValues; + } + var previous; + return keys.reduce(function (acc, breakpoint, i) { + if (Array.isArray(breakpointValues)) { + acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous]; + previous = i; + } else if (typeof breakpointValues === 'object') { + acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous]; + previous = breakpoint; + } else { + acc[breakpoint] = breakpointValues; + } + return acc; + }, {}); +} +/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (breakpoints))); + +/***/ }), + +/***/ 7551: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ $n: function() { return /* binding */ lighten; }, +/* harmony export */ Fq: function() { return /* binding */ alpha; }, +/* harmony export */ _j: function() { return /* binding */ darken; }, +/* harmony export */ mi: function() { return /* binding */ getContrastRatio; } +/* harmony export */ }); +/* unused harmony exports hexToRgb, decomposeColor, colorChannel, private_safeColorChannel, recomposeColor, rgbToHex, hslToRgb, getLuminance, private_safeAlpha, private_safeDarken, private_safeLighten, emphasize, private_safeEmphasize */ +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7219); + +/* eslint-disable @typescript-eslint/naming-convention */ +/** + * Returns a number whose value is limited to the given range. + * @param {number} value The value to be clamped + * @param {number} min The lower boundary of the output range + * @param {number} max The upper boundary of the output range + * @returns {number} A number in the range [min, max] + */ +function clamp(value) { + var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; + if (false) {} + return Math.min(Math.max(min, value), max); +} + +/** + * Converts a color from CSS hex format to CSS rgb format. + * @param {string} color - Hex color, i.e. #nnn or #nnnnnn + * @returns {string} A CSS rgb color string + */ +function hexToRgb(color) { + color = color.slice(1); + var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), 'g'); + var colors = color.match(re); + if (colors && colors[0].length === 1) { + colors = colors.map(function (n) { + return n + n; + }); + } + return colors ? "rgb".concat(colors.length === 4 ? 'a' : '', "(").concat(colors.map(function (n, index) { + return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000; + }).join(', '), ")") : ''; +} +function intToHex(int) { + var hex = int.toString(16); + return hex.length === 1 ? "0".concat(hex) : hex; +} + +/** + * Returns an object with the type and values of a color. + * + * Note: Does not support rgb % values. + * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color() + * @returns {object} - A MUI color object: {type: string, values: number[]} + */ +function decomposeColor(color) { + // Idempotent + if (color.type) { + return color; + } + if (color.charAt(0) === '#') { + return decomposeColor(hexToRgb(color)); + } + var marker = color.indexOf('('); + var type = color.substring(0, marker); + if (['rgb', 'rgba', 'hsl', 'hsla', 'color'].indexOf(type) === -1) { + throw new Error( false ? 0 : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(9, color)); + } + var values = color.substring(marker + 1, color.length - 1); + var colorSpace; + if (type === 'color') { + values = values.split(' '); + colorSpace = values.shift(); + if (values.length === 4 && values[3].charAt(0) === '/') { + values[3] = values[3].slice(1); + } + if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) { + throw new Error( false ? 0 : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(10, colorSpace)); + } + } else { + values = values.split(','); + } + values = values.map(function (value) { + return parseFloat(value); + }); + return { + type: type, + values: values, + colorSpace: colorSpace + }; +} + +/** + * Returns a channel created from the input color. + * + * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color() + * @returns {string} - The channel for the color, that can be used in rgba or hsla colors + */ +var colorChannel = function colorChannel(color) { + var decomposedColor = decomposeColor(color); + return decomposedColor.values.slice(0, 3).map(function (val, idx) { + return decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? "".concat(val, "%") : val; + }).join(' '); +}; +var private_safeColorChannel = function private_safeColorChannel(color, warning) { + try { + return colorChannel(color); + } catch (error) { + if (warning && "production" !== 'production') {} + return color; + } +}; + +/** + * Converts a color object with type and values to a string. + * @param {object} color - Decomposed color + * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color' + * @param {array} color.values - [n,n,n] or [n,n,n,n] + * @returns {string} A CSS color string + */ +function recomposeColor(color) { + var type = color.type, + colorSpace = color.colorSpace; + var values = color.values; + if (type.indexOf('rgb') !== -1) { + // Only convert the first 3 values to int (i.e. not alpha) + values = values.map(function (n, i) { + return i < 3 ? parseInt(n, 10) : n; + }); + } else if (type.indexOf('hsl') !== -1) { + values[1] = "".concat(values[1], "%"); + values[2] = "".concat(values[2], "%"); + } + if (type.indexOf('color') !== -1) { + values = "".concat(colorSpace, " ").concat(values.join(' ')); + } else { + values = "".concat(values.join(', ')); + } + return "".concat(type, "(").concat(values, ")"); +} + +/** + * Converts a color from CSS rgb format to CSS hex format. + * @param {string} color - RGB color, i.e. rgb(n, n, n) + * @returns {string} A CSS rgb color string, i.e. #nnnnnn + */ +function rgbToHex(color) { + // Idempotent + if (color.indexOf('#') === 0) { + return color; + } + var _decomposeColor = decomposeColor(color), + values = _decomposeColor.values; + return "#".concat(values.map(function (n, i) { + return intToHex(i === 3 ? Math.round(255 * n) : n); + }).join('')); +} + +/** + * Converts a color from hsl format to rgb format. + * @param {string} color - HSL color values + * @returns {string} rgb color values + */ +function hslToRgb(color) { + color = decomposeColor(color); + var _color = color, + values = _color.values; + var h = values[0]; + var s = values[1] / 100; + var l = values[2] / 100; + var a = s * Math.min(l, 1 - l); + var f = function f(n) { + var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12; + return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1); + }; + var type = 'rgb'; + var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)]; + if (color.type === 'hsla') { + type += 'a'; + rgb.push(values[3]); + } + return recomposeColor({ + type: type, + values: rgb + }); +} +/** + * The relative brightness of any point in a color space, + * normalized to 0 for darkest black and 1 for lightest white. + * + * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests + * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color() + * @returns {number} The relative brightness of the color in the range 0 - 1 + */ +function getLuminance(color) { + color = decomposeColor(color); + var rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values; + rgb = rgb.map(function (val) { + if (color.type !== 'color') { + val /= 255; // normalized + } + + return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4); + }); + + // Truncate at 3 digits + return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3)); +} + +/** + * Calculates the contrast ratio between two colors. + * + * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests + * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() + * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() + * @returns {number} A contrast ratio value in the range 0 - 21. + */ +function getContrastRatio(foreground, background) { + var lumA = getLuminance(foreground); + var lumB = getLuminance(background); + return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05); +} + +/** + * Sets the absolute transparency of a color. + * Any existing alpha values are overwritten. + * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color() + * @param {number} value - value to set the alpha channel to in the range 0 - 1 + * @returns {string} A CSS color string. Hex input values are returned as rgb + */ +function alpha(color, value) { + color = decomposeColor(color); + value = clamp(value); + if (color.type === 'rgb' || color.type === 'hsl') { + color.type += 'a'; + } + if (color.type === 'color') { + color.values[3] = "/".concat(value); + } else { + color.values[3] = value; + } + return recomposeColor(color); +} +function private_safeAlpha(color, value, warning) { + try { + return alpha(color, value); + } catch (error) { + if (warning && "production" !== 'production') {} + return color; + } +} + +/** + * Darkens a color. + * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color() + * @param {number} coefficient - multiplier in the range 0 - 1 + * @returns {string} A CSS color string. Hex input values are returned as rgb + */ +function darken(color, coefficient) { + color = decomposeColor(color); + coefficient = clamp(coefficient); + if (color.type.indexOf('hsl') !== -1) { + color.values[2] *= 1 - coefficient; + } else if (color.type.indexOf('rgb') !== -1 || color.type.indexOf('color') !== -1) { + for (var i = 0; i < 3; i += 1) { + color.values[i] *= 1 - coefficient; + } + } + return recomposeColor(color); +} +function private_safeDarken(color, coefficient, warning) { + try { + return darken(color, coefficient); + } catch (error) { + if (warning && "production" !== 'production') {} + return color; + } +} + +/** + * Lightens a color. + * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color() + * @param {number} coefficient - multiplier in the range 0 - 1 + * @returns {string} A CSS color string. Hex input values are returned as rgb + */ +function lighten(color, coefficient) { + color = decomposeColor(color); + coefficient = clamp(coefficient); + if (color.type.indexOf('hsl') !== -1) { + color.values[2] += (100 - color.values[2]) * coefficient; + } else if (color.type.indexOf('rgb') !== -1) { + for (var i = 0; i < 3; i += 1) { + color.values[i] += (255 - color.values[i]) * coefficient; + } + } else if (color.type.indexOf('color') !== -1) { + for (var _i = 0; _i < 3; _i += 1) { + color.values[_i] += (1 - color.values[_i]) * coefficient; + } + } + return recomposeColor(color); +} +function private_safeLighten(color, coefficient, warning) { + try { + return lighten(color, coefficient); + } catch (error) { + if (warning && "production" !== 'production') {} + return color; + } +} + +/** + * Darken or lighten a color, depending on its luminance. + * Light colors are darkened, dark colors are lightened. + * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color() + * @param {number} coefficient=0.15 - multiplier in the range 0 - 1 + * @returns {string} A CSS color string. Hex input values are returned as rgb + */ +function emphasize(color) { + var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15; + return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient); +} +function private_safeEmphasize(color, coefficient, warning) { + try { + return private_safeEmphasize(color, coefficient); + } catch (error) { + if (warning && "production" !== 'production') {} + return color; + } +} + +/***/ }), + +/***/ 7702: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7330); + +function compose() { + for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) { + styles[_key] = arguments[_key]; + } + var handlers = styles.reduce(function (acc, style) { + style.filterProps.forEach(function (prop) { + acc[prop] = style; + }); + return acc; + }, {}); + + // false positive + // eslint-disable-next-line react/function-component-definition + var fn = function fn(props) { + return Object.keys(props).reduce(function (acc, prop) { + if (handlers[prop]) { + return (0,_merge__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(acc, handlers[prop](props)); + } + return acc; + }, {}); + }; + fn.propTypes = false ? 0 : {}; + fn.filterProps = styles.reduce(function (acc, style) { + return acc.concat(style.filterProps); + }, []); + return fn; +} +/* harmony default export */ __webpack_exports__.Z = (compose); + +/***/ }), + +/***/ 5182: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ ZP: function() { return /* binding */ createStyled; }, +/* harmony export */ x9: function() { return /* binding */ shouldForwardProp; } +/* harmony export */ }); +/* unused harmony export systemDefaultTheme */ +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9062); +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3324); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3366); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7462); +/* harmony import */ var _mui_styled_engine__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(564); +/* harmony import */ var _createTheme__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7424); +/* harmony import */ var _propsToClassKey__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(490); +/* harmony import */ var _styleFunctionSx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3649); + + + + +var _excluded = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"]; +/* eslint-disable no-underscore-dangle */ + + + + + +function isEmpty(obj) { + return Object.keys(obj).length === 0; +} + +// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40 +function isStringTag(tag) { + return typeof tag === 'string' && + // 96 is one less than the char code + // for "a" so this is checking that + // it's a lowercase character + tag.charCodeAt(0) > 96; +} +var getStyleOverrides = function getStyleOverrides(name, theme) { + if (theme.components && theme.components[name] && theme.components[name].styleOverrides) { + return theme.components[name].styleOverrides; + } + return null; +}; +var getVariantStyles = function getVariantStyles(name, theme) { + var variants = []; + if (theme && theme.components && theme.components[name] && theme.components[name].variants) { + variants = theme.components[name].variants; + } + var variantsStyles = {}; + variants.forEach(function (definition) { + var key = (0,_propsToClassKey__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(definition.props); + variantsStyles[key] = definition.style; + }); + return variantsStyles; +}; +var variantsResolver = function variantsResolver(props, styles, theme, name) { + var _theme$components; + var _props$ownerState = props.ownerState, + ownerState = _props$ownerState === void 0 ? {} : _props$ownerState; + var variantsStyles = []; + var themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[name]) == null ? void 0 : _theme$components.variants; + if (themeVariants) { + themeVariants.forEach(function (themeVariant) { + var isMatch = true; + Object.keys(themeVariant.props).forEach(function (key) { + if (ownerState[key] !== themeVariant.props[key] && props[key] !== themeVariant.props[key]) { + isMatch = false; + } + }); + if (isMatch) { + variantsStyles.push(styles[(0,_propsToClassKey__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(themeVariant.props)]); + } + }); + } + return variantsStyles; +}; + +// Update /system/styled/#api in case if this changes +function shouldForwardProp(prop) { + return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as'; +} +var systemDefaultTheme = (0,_createTheme__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(); +var lowercaseFirstLetter = function lowercaseFirstLetter(string) { + if (!string) { + return string; + } + return string.charAt(0).toLowerCase() + string.slice(1); +}; +function resolveTheme(_ref) { + var defaultTheme = _ref.defaultTheme, + theme = _ref.theme, + themeId = _ref.themeId; + return isEmpty(theme) ? defaultTheme : theme[themeId] || theme; +} +function defaultOverridesResolver(slot) { + if (!slot) { + return null; + } + return function (props, styles) { + return styles[slot]; + }; +} +function createStyled() { + var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var themeId = input.themeId, + _input$defaultTheme = input.defaultTheme, + defaultTheme = _input$defaultTheme === void 0 ? systemDefaultTheme : _input$defaultTheme, + _input$rootShouldForw = input.rootShouldForwardProp, + rootShouldForwardProp = _input$rootShouldForw === void 0 ? shouldForwardProp : _input$rootShouldForw, + _input$slotShouldForw = input.slotShouldForwardProp, + slotShouldForwardProp = _input$slotShouldForw === void 0 ? shouldForwardProp : _input$slotShouldForw; + var systemSx = function systemSx(props) { + return (0,_styleFunctionSx__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + theme: resolveTheme((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + defaultTheme: defaultTheme, + themeId: themeId + })) + })); + }; + systemSx.__mui_systemSx = true; + return function (tag) { + var inputOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components. + (0,_mui_styled_engine__WEBPACK_IMPORTED_MODULE_4__/* .internal_processStyles */ .Co)(tag, function (styles) { + return styles.filter(function (style) { + return !(style != null && style.__mui_systemSx); + }); + }); + var componentName = inputOptions.name, + componentSlot = inputOptions.slot, + inputSkipVariantsResolver = inputOptions.skipVariantsResolver, + inputSkipSx = inputOptions.skipSx, + _inputOptions$overrid = inputOptions.overridesResolver, + overridesResolver = _inputOptions$overrid === void 0 ? defaultOverridesResolver(lowercaseFirstLetter(componentSlot)) : _inputOptions$overrid, + options = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(inputOptions, _excluded); + + // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots. + var skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : + // TODO v6: remove `Root` in the next major release + // For more details: https://github.com/mui/material-ui/pull/37908 + componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false; + var skipSx = inputSkipSx || false; + var label; + if (false) {} + var shouldForwardPropOption = shouldForwardProp; + + // TODO v6: remove `Root` in the next major release + // For more details: https://github.com/mui/material-ui/pull/37908 + if (componentSlot === 'Root' || componentSlot === 'root') { + shouldForwardPropOption = rootShouldForwardProp; + } else if (componentSlot) { + // any other slot specified + shouldForwardPropOption = slotShouldForwardProp; + } else if (isStringTag(tag)) { + // for string (html) tag, preserve the behavior in emotion & styled-components. + shouldForwardPropOption = undefined; + } + var defaultStyledResolver = (0,_mui_styled_engine__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP)(tag, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({ + shouldForwardProp: shouldForwardPropOption, + label: label + }, options)); + var muiStyledResolver = function muiStyledResolver(styleArg) { + for (var _len = arguments.length, expressions = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + expressions[_key - 1] = arguments[_key]; + } + var expressionsWithDefaultTheme = expressions ? expressions.map(function (stylesArg) { + // On the server Emotion doesn't use React.forwardRef for creating components, so the created + // component stays as a function. This condition makes sure that we do not interpolate functions + // which are basically components used as a selectors. + return typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg ? function (props) { + return stylesArg((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + theme: resolveTheme((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + defaultTheme: defaultTheme, + themeId: themeId + })) + })); + } : stylesArg; + }) : []; + var transformedStyleArg = styleArg; + if (componentName && overridesResolver) { + expressionsWithDefaultTheme.push(function (props) { + var theme = resolveTheme((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + defaultTheme: defaultTheme, + themeId: themeId + })); + var styleOverrides = getStyleOverrides(componentName, theme); + if (styleOverrides) { + var resolvedStyleOverrides = {}; + Object.entries(styleOverrides).forEach(function (_ref2) { + var _ref3 = (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(_ref2, 2), + slotKey = _ref3[0], + slotStyle = _ref3[1]; + resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + theme: theme + })) : slotStyle; + }); + return overridesResolver(props, resolvedStyleOverrides); + } + return null; + }); + } + if (componentName && !skipVariantsResolver) { + expressionsWithDefaultTheme.push(function (props) { + var theme = resolveTheme((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + defaultTheme: defaultTheme, + themeId: themeId + })); + return variantsResolver(props, getVariantStyles(componentName, theme), theme, componentName); + }); + } + if (!skipSx) { + expressionsWithDefaultTheme.push(systemSx); + } + var numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length; + if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) { + var placeholders = new Array(numOfCustomFnsApplied).fill(''); + // If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles. + transformedStyleArg = [].concat((0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(styleArg), (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(placeholders)); + transformedStyleArg.raw = [].concat((0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(styleArg.raw), (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(placeholders)); + } else if (typeof styleArg === 'function' && + // On the server Emotion doesn't use React.forwardRef for creating components, so the created + // component stays as a function. This condition makes sure that we do not interpolate functions + // which are basically components used as a selectors. + styleArg.__emotion_real !== styleArg) { + // If the type is function, we need to define the default theme. + transformedStyleArg = function transformedStyleArg(props) { + return styleArg((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + theme: resolveTheme((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, { + defaultTheme: defaultTheme, + themeId: themeId + })) + })); + }; + } + var Component = defaultStyledResolver.apply(void 0, [transformedStyleArg].concat((0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(expressionsWithDefaultTheme))); + if (false) { var displayName; } + if (tag.muiName) { + Component.muiName = tag.muiName; + } + return Component; + }; + if (defaultStyledResolver.withConfig) { + muiStyledResolver.withConfig = defaultStyledResolver.withConfig; + } + return muiStyledResolver; + }; +} + +/***/ }), + +/***/ 4162: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ createBreakpoints; } +/* harmony export */ }); +/* unused harmony export breakpointKeys */ +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4942); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3366); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7462); + + + +var _excluded = ["values", "unit", "step"]; +// Sorted ASC by size. That's important. +// It can't be configured as it's used statically for propTypes. +var breakpointKeys = (/* unused pure expression or super */ null && (['xs', 'sm', 'md', 'lg', 'xl'])); +var sortBreakpointsValues = function sortBreakpointsValues(values) { + var breakpointsAsArray = Object.keys(values).map(function (key) { + return { + key: key, + val: values[key] + }; + }) || []; + // Sort in ascending order + breakpointsAsArray.sort(function (breakpoint1, breakpoint2) { + return breakpoint1.val - breakpoint2.val; + }); + return breakpointsAsArray.reduce(function (acc, obj) { + return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, acc, (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({}, obj.key, obj.val)); + }, {}); +}; + +// Keep in mind that @media is inclusive by the CSS specification. +function createBreakpoints(breakpoints) { + var _breakpoints$values = breakpoints.values, + values = _breakpoints$values === void 0 ? { + xs: 0, + // phone + sm: 600, + // tablet + md: 900, + // small laptop + lg: 1200, + // desktop + xl: 1536 // large screen + } : _breakpoints$values, + _breakpoints$unit = breakpoints.unit, + unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit, + _breakpoints$step = breakpoints.step, + step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, + other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(breakpoints, _excluded); + var sortedValues = sortBreakpointsValues(values); + var keys = Object.keys(sortedValues); + function up(key) { + var value = typeof values[key] === 'number' ? values[key] : key; + return "@media (min-width:".concat(value).concat(unit, ")"); + } + function down(key) { + var value = typeof values[key] === 'number' ? values[key] : key; + return "@media (max-width:".concat(value - step / 100).concat(unit, ")"); + } + function between(start, end) { + var endIndex = keys.indexOf(end); + return "@media (min-width:".concat(typeof values[start] === 'number' ? values[start] : start).concat(unit, ") and ") + "(max-width:".concat((endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100).concat(unit, ")"); + } + function only(key) { + if (keys.indexOf(key) + 1 < keys.length) { + return between(key, keys[keys.indexOf(key) + 1]); + } + return up(key); + } + function not(key) { + // handle first and last key separately, for better readability + var keyIndex = keys.indexOf(key); + if (keyIndex === 0) { + return up(keys[1]); + } + if (keyIndex === keys.length - 1) { + return down(keys[keyIndex]); + } + return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and'); + } + return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({ + keys: keys, + values: sortedValues, + up: up, + down: down, + between: between, + only: only, + not: not, + unit: unit + }, other); +} + +/***/ }), + +/***/ 8358: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ createSpacing; } +/* harmony export */ }); +/* harmony import */ var _spacing__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9005); + + +// The different signatures imply different meaning for their arguments that can't be expressed structurally. +// We express the difference with variable names. +/* tslint:disable:unified-signatures */ +/* tslint:enable:unified-signatures */ + +function createSpacing() { + var spacingInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8; + // Already transformed. + if (spacingInput.mui) { + return spacingInput; + } + + // Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout. + // Smaller components, such as icons, can align to a 4dp grid. + // https://m2.material.io/design/layout/understanding-layout.html + var transform = (0,_spacing__WEBPACK_IMPORTED_MODULE_0__/* .createUnarySpacing */ .hB)({ + spacing: spacingInput + }); + var spacing = function spacing() { + for (var _len = arguments.length, argsInput = new Array(_len), _key = 0; _key < _len; _key++) { + argsInput[_key] = arguments[_key]; + } + if (false) {} + var args = argsInput.length === 0 ? [1] : argsInput; + return args.map(function (argument) { + var output = transform(argument); + return typeof output === 'number' ? "".concat(output, "px") : output; + }).join(' '); + }; + spacing.mui = true; + return spacing; +} + +/***/ }), + +/***/ 7424: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7462); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3366); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3019); +/* harmony import */ var _createBreakpoints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4162); +/* harmony import */ var _shape__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5821); +/* harmony import */ var _createSpacing__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8358); +/* harmony import */ var _styleFunctionSx_styleFunctionSx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(3649); +/* harmony import */ var _styleFunctionSx_defaultSxConfig__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5789); + + +var _excluded = ["breakpoints", "palette", "spacing", "shape"]; + + + + + + +function createTheme() { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var _options$breakpoints = options.breakpoints, + breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, + _options$palette = options.palette, + paletteInput = _options$palette === void 0 ? {} : _options$palette, + spacingInput = options.spacing, + _options$shape = options.shape, + shapeInput = _options$shape === void 0 ? {} : _options$shape, + other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(options, _excluded); + var breakpoints = (0,_createBreakpoints__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(breakpointsInput); + var spacing = (0,_createSpacing__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(spacingInput); + var muiTheme = (0,_mui_utils__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({ + breakpoints: breakpoints, + direction: 'ltr', + components: {}, + // Inject component definitions. + palette: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({ + mode: 'light' + }, paletteInput), + spacing: spacing, + shape: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({}, _shape__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, shapeInput) + }, other); + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + muiTheme = args.reduce(function (acc, argument) { + return (0,_mui_utils__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(acc, argument); + }, muiTheme); + muiTheme.unstable_sxConfig = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({}, _styleFunctionSx_defaultSxConfig__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, other == null ? void 0 : other.unstable_sxConfig); + muiTheme.unstable_sx = function sx(props) { + return (0,_styleFunctionSx_styleFunctionSx__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)({ + sx: props, + theme: this + }); + }; + return muiTheme; +} +/* harmony default export */ __webpack_exports__.Z = (createTheme); + +/***/ }), + +/***/ 5821: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var shape = { + borderRadius: 4 +}; +/* harmony default export */ __webpack_exports__.Z = (shape); + +/***/ }), + +/***/ 924: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ SG: function() { return /* binding */ gap; }, +/* harmony export */ e$: function() { return /* binding */ columnGap; }, +/* harmony export */ s2: function() { return /* binding */ rowGap; } +/* harmony export */ }); +/* unused harmony exports gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea */ +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6428); +/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7702); +/* harmony import */ var _spacing__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9005); +/* harmony import */ var _breakpoints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4929); + + + + + + +// false positive +// eslint-disable-next-line react/function-component-definition +var gap = function gap(props) { + if (props.gap !== undefined && props.gap !== null) { + var transformer = (0,_spacing__WEBPACK_IMPORTED_MODULE_0__/* .createUnaryUnit */ .eI)(props.theme, 'spacing', 8, 'gap'); + var styleFromPropValue = function styleFromPropValue(propValue) { + return { + gap: (0,_spacing__WEBPACK_IMPORTED_MODULE_0__/* .getValue */ .NA)(transformer, propValue) + }; + }; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_1__/* .handleBreakpoints */ .k9)(props, props.gap, styleFromPropValue); + } + return null; +}; +gap.propTypes = false ? 0 : {}; +gap.filterProps = ['gap']; + +// false positive +// eslint-disable-next-line react/function-component-definition +var columnGap = function columnGap(props) { + if (props.columnGap !== undefined && props.columnGap !== null) { + var transformer = (0,_spacing__WEBPACK_IMPORTED_MODULE_0__/* .createUnaryUnit */ .eI)(props.theme, 'spacing', 8, 'columnGap'); + var styleFromPropValue = function styleFromPropValue(propValue) { + return { + columnGap: (0,_spacing__WEBPACK_IMPORTED_MODULE_0__/* .getValue */ .NA)(transformer, propValue) + }; + }; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_1__/* .handleBreakpoints */ .k9)(props, props.columnGap, styleFromPropValue); + } + return null; +}; +columnGap.propTypes = false ? 0 : {}; +columnGap.filterProps = ['columnGap']; + +// false positive +// eslint-disable-next-line react/function-component-definition +var rowGap = function rowGap(props) { + if (props.rowGap !== undefined && props.rowGap !== null) { + var transformer = (0,_spacing__WEBPACK_IMPORTED_MODULE_0__/* .createUnaryUnit */ .eI)(props.theme, 'spacing', 8, 'rowGap'); + var styleFromPropValue = function styleFromPropValue(propValue) { + return { + rowGap: (0,_spacing__WEBPACK_IMPORTED_MODULE_0__/* .getValue */ .NA)(transformer, propValue) + }; + }; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_1__/* .handleBreakpoints */ .k9)(props, props.rowGap, styleFromPropValue); + } + return null; +}; +rowGap.propTypes = false ? 0 : {}; +rowGap.filterProps = ['rowGap']; +var gridColumn = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridColumn' +}); +var gridRow = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridRow' +}); +var gridAutoFlow = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridAutoFlow' +}); +var gridAutoColumns = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridAutoColumns' +}); +var gridAutoRows = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridAutoRows' +}); +var gridTemplateColumns = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridTemplateColumns' +}); +var gridTemplateRows = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridTemplateRows' +}); +var gridTemplateAreas = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridTemplateAreas' +}); +var gridArea = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP)({ + prop: 'gridArea' +}); +var grid = (0,_compose__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea); +/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (grid))); + +/***/ }), + +/***/ 5882: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ memoize; } +/* harmony export */ }); +function memoize(fn) { + var cache = {}; + return function (arg) { + if (cache[arg] === undefined) { + cache[arg] = fn(arg); + } + return cache[arg]; + }; +} + +/***/ }), + +/***/ 7330: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3019); + +function merge(acc, item) { + if (!item) { + return acc; + } + return (0,_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(acc, item, { + clone: false // No need to clone deep, it's way faster. + }); +} + +/* harmony default export */ __webpack_exports__.Z = (merge); + +/***/ }), + +/***/ 6236: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Sh: function() { return /* binding */ paletteTransform; } +/* harmony export */ }); +/* unused harmony exports color, bgcolor, backgroundColor */ +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6428); +/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7702); + + +function paletteTransform(value, userValue) { + if (userValue === 'grey') { + return userValue; + } + return value; +} +var color = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'color', + themeKey: 'palette', + transform: paletteTransform +}); +var bgcolor = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'bgcolor', + cssProperty: 'backgroundColor', + themeKey: 'palette', + transform: paletteTransform +}); +var backgroundColor = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'backgroundColor', + themeKey: 'palette', + transform: paletteTransform +}); +var palette = (0,_compose__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(color, bgcolor, backgroundColor); +/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (palette))); + +/***/ }), + +/***/ 490: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ propsToClassKey; } +/* harmony export */ }); +/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3366); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8831); + +var _excluded = ["variant"]; + +function isEmpty(string) { + return string.length === 0; +} + +/** + * Generates string classKey based on the properties provided. It starts with the + * variant if defined, and then it appends all other properties in alphabetical order. + * @param {object} props - the properties for which the classKey should be created. + */ +function propsToClassKey(props) { + var variant = props.variant, + other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(props, _excluded); + var classKey = variant || ''; + Object.keys(other).sort().forEach(function (key) { + if (key === 'color') { + classKey += isEmpty(classKey) ? props[key] : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(props[key]); + } else { + classKey += "".concat(isEmpty(classKey) ? key : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(key)).concat((0,_mui_utils__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(props[key].toString())); + } + }); + return classKey; +} + +/***/ }), + +/***/ 9341: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ EB: function() { return /* binding */ sizingTransform; }, +/* harmony export */ kk: function() { return /* binding */ maxWidth; } +/* harmony export */ }); +/* unused harmony exports width, minWidth, height, maxHeight, minHeight, sizeWidth, sizeHeight, boxSizing */ +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6428); +/* harmony import */ var _compose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7702); +/* harmony import */ var _breakpoints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4929); + + + +function sizingTransform(value) { + return value <= 1 && value !== 0 ? "".concat(value * 100, "%") : value; +} +var width = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'width', + transform: sizingTransform +}); +var maxWidth = function maxWidth(props) { + if (props.maxWidth !== undefined && props.maxWidth !== null) { + var styleFromPropValue = function styleFromPropValue(propValue) { + var _props$theme; + var breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || _breakpoints__WEBPACK_IMPORTED_MODULE_1__/* .values */ .VO[propValue]; + return { + maxWidth: breakpoint || sizingTransform(propValue) + }; + }; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_1__/* .handleBreakpoints */ .k9)(props, props.maxWidth, styleFromPropValue); + } + return null; +}; +maxWidth.filterProps = ['maxWidth']; +var minWidth = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'minWidth', + transform: sizingTransform +}); +var height = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'height', + transform: sizingTransform +}); +var maxHeight = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'maxHeight', + transform: sizingTransform +}); +var minHeight = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'minHeight', + transform: sizingTransform +}); +var sizeWidth = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'size', + cssProperty: 'width', + transform: sizingTransform +}); +var sizeHeight = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'size', + cssProperty: 'height', + transform: sizingTransform +}); +var boxSizing = (0,_style__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)({ + prop: 'boxSizing' +}); +var sizing = (0,_compose__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing); +/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (sizing))); + +/***/ }), + +/***/ 9005: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ NA: function() { return /* binding */ getValue; }, +/* harmony export */ e6: function() { return /* binding */ margin; }, +/* harmony export */ eI: function() { return /* binding */ createUnaryUnit; }, +/* harmony export */ hB: function() { return /* binding */ createUnarySpacing; }, +/* harmony export */ o3: function() { return /* binding */ padding; } +/* harmony export */ }); +/* unused harmony exports marginKeys, paddingKeys, getStyleFromPropValue */ +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3324); +/* harmony import */ var _breakpoints__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4929); +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6428); +/* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7330); +/* harmony import */ var _memoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5882); + + + + + + +var properties = { + m: 'margin', + p: 'padding' +}; +var directions = { + t: 'Top', + r: 'Right', + b: 'Bottom', + l: 'Left', + x: ['Left', 'Right'], + y: ['Top', 'Bottom'] +}; +var aliases = { + marginX: 'mx', + marginY: 'my', + paddingX: 'px', + paddingY: 'py' +}; + +// memoize() impact: +// From 300,000 ops/sec +// To 350,000 ops/sec +var getCssProperties = (0,_memoize__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(function (prop) { + // It's not a shorthand notation. + if (prop.length > 2) { + if (aliases[prop]) { + prop = aliases[prop]; + } else { + return [prop]; + } + } + var _prop$split = prop.split(''), + _prop$split2 = (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_prop$split, 2), + a = _prop$split2[0], + b = _prop$split2[1]; + var property = properties[a]; + var direction = directions[b] || ''; + return Array.isArray(direction) ? direction.map(function (dir) { + return property + dir; + }) : [property + direction]; +}); +var marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd']; +var paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd']; +var spacingKeys = [].concat(marginKeys, paddingKeys); +function createUnaryUnit(theme, themeKey, defaultValue, propName) { + var _getPath; + var themeSpacing = (_getPath = (0,_style__WEBPACK_IMPORTED_MODULE_2__/* .getPath */ .DW)(theme, themeKey, false)) != null ? _getPath : defaultValue; + if (typeof themeSpacing === 'number') { + return function (abs) { + if (typeof abs === 'string') { + return abs; + } + if (false) {} + return themeSpacing * abs; + }; + } + if (Array.isArray(themeSpacing)) { + return function (abs) { + if (typeof abs === 'string') { + return abs; + } + if (false) {} + return themeSpacing[abs]; + }; + } + if (typeof themeSpacing === 'function') { + return themeSpacing; + } + if (false) {} + return function () { + return undefined; + }; +} +function createUnarySpacing(theme) { + return createUnaryUnit(theme, 'spacing', 8, 'spacing'); +} +function getValue(transformer, propValue) { + if (typeof propValue === 'string' || propValue == null) { + return propValue; + } + var abs = Math.abs(propValue); + var transformed = transformer(abs); + if (propValue >= 0) { + return transformed; + } + if (typeof transformed === 'number') { + return -transformed; + } + return "-".concat(transformed); +} +function getStyleFromPropValue(cssProperties, transformer) { + return function (propValue) { + return cssProperties.reduce(function (acc, cssProperty) { + acc[cssProperty] = getValue(transformer, propValue); + return acc; + }, {}); + }; +} +function resolveCssProperty(props, keys, prop, transformer) { + // Using a hash computation over an array iteration could be faster, but with only 28 items, + // it's doesn't worth the bundle size. + if (keys.indexOf(prop) === -1) { + return null; + } + var cssProperties = getCssProperties(prop); + var styleFromPropValue = getStyleFromPropValue(cssProperties, transformer); + var propValue = props[prop]; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_3__/* .handleBreakpoints */ .k9)(props, propValue, styleFromPropValue); +} +function style(props, keys) { + var transformer = createUnarySpacing(props.theme); + return Object.keys(props).map(function (prop) { + return resolveCssProperty(props, keys, prop, transformer); + }).reduce(_merge__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {}); +} +function margin(props) { + return style(props, marginKeys); +} +margin.propTypes = false ? 0 : {}; +margin.filterProps = marginKeys; +function padding(props) { + return style(props, paddingKeys); +} +padding.propTypes = false ? 0 : {}; +padding.filterProps = paddingKeys; +function spacing(props) { + return style(props, spacingKeys); +} +spacing.propTypes = false ? 0 : {}; +spacing.filterProps = spacingKeys; +/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (spacing))); + +/***/ }), + +/***/ 6428: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ DW: function() { return /* binding */ getPath; }, +/* harmony export */ Jq: function() { return /* binding */ getStyleValue; } +/* harmony export */ }); +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4942); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8831); +/* harmony import */ var _breakpoints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4929); + + + + +function getPath(obj, path) { + var checkVars = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + if (!path || typeof path !== 'string') { + return null; + } + + // Check if CSS variables are used + if (obj && obj.vars && checkVars) { + var val = "vars.".concat(path).split('.').reduce(function (acc, item) { + return acc && acc[item] ? acc[item] : null; + }, obj); + if (val != null) { + return val; + } + } + return path.split('.').reduce(function (acc, item) { + if (acc && acc[item] != null) { + return acc[item]; + } + return null; + }, obj); +} +function getStyleValue(themeMapping, transform, propValueFinal) { + var userValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : propValueFinal; + var value; + if (typeof themeMapping === 'function') { + value = themeMapping(propValueFinal); + } else if (Array.isArray(themeMapping)) { + value = themeMapping[propValueFinal] || userValue; + } else { + value = getPath(themeMapping, propValueFinal) || userValue; + } + if (transform) { + value = transform(value, userValue, themeMapping); + } + return value; +} +function style(options) { + var prop = options.prop, + _options$cssProperty = options.cssProperty, + cssProperty = _options$cssProperty === void 0 ? options.prop : _options$cssProperty, + themeKey = options.themeKey, + transform = options.transform; + + // false positive + // eslint-disable-next-line react/function-component-definition + var fn = function fn(props) { + if (props[prop] == null) { + return null; + } + var propValue = props[prop]; + var theme = props.theme; + var themeMapping = getPath(theme, themeKey) || {}; + var styleFromPropValue = function styleFromPropValue(propValueFinal) { + var value = getStyleValue(themeMapping, transform, propValueFinal); + if (propValueFinal === value && typeof propValueFinal === 'string') { + // Haven't found value + value = getStyleValue(themeMapping, transform, "".concat(prop).concat(propValueFinal === 'default' ? '' : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(propValueFinal)), propValueFinal); + } + if (cssProperty === false) { + return value; + } + return (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({}, cssProperty, value); + }; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_2__/* .handleBreakpoints */ .k9)(props, propValue, styleFromPropValue); + }; + fn.propTypes = false ? 0 : {}; + fn.filterProps = [prop]; + return fn; +} +/* harmony default export */ __webpack_exports__.ZP = (style); + +/***/ }), + +/***/ 5789: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _spacing__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9005); +/* harmony import */ var _borders__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7158); +/* harmony import */ var _cssGrid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(924); +/* harmony import */ var _palette__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6236); +/* harmony import */ var _sizing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9341); + + + + + +var defaultSxConfig = { + // borders + border: { + themeKey: 'borders', + transform: _borders__WEBPACK_IMPORTED_MODULE_0__/* .borderTransform */ .NL + }, + borderTop: { + themeKey: 'borders', + transform: _borders__WEBPACK_IMPORTED_MODULE_0__/* .borderTransform */ .NL + }, + borderRight: { + themeKey: 'borders', + transform: _borders__WEBPACK_IMPORTED_MODULE_0__/* .borderTransform */ .NL + }, + borderBottom: { + themeKey: 'borders', + transform: _borders__WEBPACK_IMPORTED_MODULE_0__/* .borderTransform */ .NL + }, + borderLeft: { + themeKey: 'borders', + transform: _borders__WEBPACK_IMPORTED_MODULE_0__/* .borderTransform */ .NL + }, + borderColor: { + themeKey: 'palette' + }, + borderTopColor: { + themeKey: 'palette' + }, + borderRightColor: { + themeKey: 'palette' + }, + borderBottomColor: { + themeKey: 'palette' + }, + borderLeftColor: { + themeKey: 'palette' + }, + borderRadius: { + themeKey: 'shape.borderRadius', + style: _borders__WEBPACK_IMPORTED_MODULE_0__/* .borderRadius */ .E0 + }, + // palette + color: { + themeKey: 'palette', + transform: _palette__WEBPACK_IMPORTED_MODULE_1__/* .paletteTransform */ .Sh + }, + bgcolor: { + themeKey: 'palette', + cssProperty: 'backgroundColor', + transform: _palette__WEBPACK_IMPORTED_MODULE_1__/* .paletteTransform */ .Sh + }, + backgroundColor: { + themeKey: 'palette', + transform: _palette__WEBPACK_IMPORTED_MODULE_1__/* .paletteTransform */ .Sh + }, + // spacing + p: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + pt: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + pr: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + pb: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + pl: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + px: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + py: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + padding: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingTop: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingRight: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingBottom: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingLeft: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingX: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingY: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingInline: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingInlineStart: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingInlineEnd: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingBlock: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingBlockStart: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + paddingBlockEnd: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .padding */ .o3 + }, + m: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + mt: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + mr: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + mb: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + ml: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + mx: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + my: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + margin: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginTop: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginRight: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginBottom: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginLeft: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginX: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginY: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginInline: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginInlineStart: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginInlineEnd: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginBlock: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginBlockStart: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + marginBlockEnd: { + style: _spacing__WEBPACK_IMPORTED_MODULE_2__/* .margin */ .e6 + }, + // display + displayPrint: { + cssProperty: false, + transform: function transform(value) { + return { + '@media print': { + display: value + } + }; + } + }, + display: {}, + overflow: {}, + textOverflow: {}, + visibility: {}, + whiteSpace: {}, + // flexbox + flexBasis: {}, + flexDirection: {}, + flexWrap: {}, + justifyContent: {}, + alignItems: {}, + alignContent: {}, + order: {}, + flex: {}, + flexGrow: {}, + flexShrink: {}, + alignSelf: {}, + justifyItems: {}, + justifySelf: {}, + // grid + gap: { + style: _cssGrid__WEBPACK_IMPORTED_MODULE_3__/* .gap */ .SG + }, + rowGap: { + style: _cssGrid__WEBPACK_IMPORTED_MODULE_3__/* .rowGap */ .s2 + }, + columnGap: { + style: _cssGrid__WEBPACK_IMPORTED_MODULE_3__/* .columnGap */ .e$ + }, + gridColumn: {}, + gridRow: {}, + gridAutoFlow: {}, + gridAutoColumns: {}, + gridAutoRows: {}, + gridTemplateColumns: {}, + gridTemplateRows: {}, + gridTemplateAreas: {}, + gridArea: {}, + // positions + position: {}, + zIndex: { + themeKey: 'zIndex' + }, + top: {}, + right: {}, + bottom: {}, + left: {}, + // shadows + boxShadow: { + themeKey: 'shadows' + }, + // sizing + width: { + transform: _sizing__WEBPACK_IMPORTED_MODULE_4__/* .sizingTransform */ .EB + }, + maxWidth: { + style: _sizing__WEBPACK_IMPORTED_MODULE_4__/* .maxWidth */ .kk + }, + minWidth: { + transform: _sizing__WEBPACK_IMPORTED_MODULE_4__/* .sizingTransform */ .EB + }, + height: { + transform: _sizing__WEBPACK_IMPORTED_MODULE_4__/* .sizingTransform */ .EB + }, + maxHeight: { + transform: _sizing__WEBPACK_IMPORTED_MODULE_4__/* .sizingTransform */ .EB + }, + minHeight: { + transform: _sizing__WEBPACK_IMPORTED_MODULE_4__/* .sizingTransform */ .EB + }, + boxSizing: {}, + // typography + fontFamily: { + themeKey: 'typography' + }, + fontSize: { + themeKey: 'typography' + }, + fontStyle: { + themeKey: 'typography' + }, + fontWeight: { + themeKey: 'typography' + }, + letterSpacing: {}, + textTransform: {}, + lineHeight: {}, + textAlign: {}, + typography: { + cssProperty: false, + themeKey: 'typography' + } +}; +/* harmony default export */ __webpack_exports__.Z = (defaultSxConfig); + +/***/ }), + +/***/ 3649: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* unused harmony export unstable_createStyleFunctionSx */ +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4942); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8831); +/* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7330); +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6428); +/* harmony import */ var _breakpoints__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4929); +/* harmony import */ var _defaultSxConfig__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5789); + + + + + + +function objectsHaveSameKeys() { + for (var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++) { + objects[_key] = arguments[_key]; + } + var allKeys = objects.reduce(function (keys, object) { + return keys.concat(Object.keys(object)); + }, []); + var union = new Set(allKeys); + return objects.every(function (object) { + return union.size === Object.keys(object).length; + }); +} +function callIfFn(maybeFn, arg) { + return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn; +} + +// eslint-disable-next-line @typescript-eslint/naming-convention +function unstable_createStyleFunctionSx() { + function getThemeValue(prop, val, theme, config) { + var _props; + var props = (_props = {}, (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_props, prop, val), (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_props, "theme", theme), _props); + var options = config[prop]; + if (!options) { + return (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, prop, val); + } + var _options$cssProperty = options.cssProperty, + cssProperty = _options$cssProperty === void 0 ? prop : _options$cssProperty, + themeKey = options.themeKey, + transform = options.transform, + style = options.style; + if (val == null) { + return null; + } + + // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123 + if (themeKey === 'typography' && val === 'inherit') { + return (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, prop, val); + } + var themeMapping = (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .getPath */ .DW)(theme, themeKey) || {}; + if (style) { + return style(props); + } + var styleFromPropValue = function styleFromPropValue(propValueFinal) { + var value = (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .getStyleValue */ .Jq)(themeMapping, transform, propValueFinal); + if (propValueFinal === value && typeof propValueFinal === 'string') { + // Haven't found value + value = (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .getStyleValue */ .Jq)(themeMapping, transform, "".concat(prop).concat(propValueFinal === 'default' ? '' : (0,_mui_utils__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(propValueFinal)), propValueFinal); + } + if (cssProperty === false) { + return value; + } + return (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, cssProperty, value); + }; + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_3__/* .handleBreakpoints */ .k9)(props, val, styleFromPropValue); + } + function styleFunctionSx(props) { + var _theme$unstable_sxCon; + var _ref4 = props || {}, + sx = _ref4.sx, + _ref4$theme = _ref4.theme, + theme = _ref4$theme === void 0 ? {} : _ref4$theme; + if (!sx) { + return null; // Emotion & styled-components will neglect null + } + + var config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : _defaultSxConfig__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z; + + /* + * Receive `sxInput` as object or callback + * and then recursively check keys & values to create media query object styles. + * (the result will be used in `styled`) + */ + function traverse(sxInput) { + var sxObject = sxInput; + if (typeof sxInput === 'function') { + sxObject = sxInput(theme); + } else if (typeof sxInput !== 'object') { + // value + return sxInput; + } + if (!sxObject) { + return null; + } + var emptyBreakpoints = (0,_breakpoints__WEBPACK_IMPORTED_MODULE_3__/* .createEmptyBreakpointObject */ .W8)(theme.breakpoints); + var breakpointsKeys = Object.keys(emptyBreakpoints); + var css = emptyBreakpoints; + Object.keys(sxObject).forEach(function (styleKey) { + var value = callIfFn(sxObject[styleKey], theme); + if (value !== null && value !== undefined) { + if (typeof value === 'object') { + if (config[styleKey]) { + css = (0,_merge__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(css, getThemeValue(styleKey, value, theme, config)); + } else { + var breakpointsValues = (0,_breakpoints__WEBPACK_IMPORTED_MODULE_3__/* .handleBreakpoints */ .k9)({ + theme: theme + }, value, function (x) { + return (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, styleKey, x); + }); + if (objectsHaveSameKeys(breakpointsValues, value)) { + css[styleKey] = styleFunctionSx({ + sx: value, + theme: theme + }); + } else { + css = (0,_merge__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(css, breakpointsValues); + } + } + } else { + css = (0,_merge__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(css, getThemeValue(styleKey, value, theme, config)); + } + } + }); + return (0,_breakpoints__WEBPACK_IMPORTED_MODULE_3__/* .removeUnusedBreakpoints */ .L7)(breakpointsKeys, css); + } + return Array.isArray(sx) ? sx.map(traverse) : traverse(sx); + } + return styleFunctionSx; +} +var styleFunctionSx = unstable_createStyleFunctionSx(); +styleFunctionSx.filterProps = ['sx']; +/* harmony default export */ __webpack_exports__.Z = (styleFunctionSx); + +/***/ }), + +/***/ 6728: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* unused harmony export systemDefaultTheme */ +/* harmony import */ var _createTheme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7424); +/* harmony import */ var _useThemeWithoutDefault__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4976); +'use client'; + + + +var systemDefaultTheme = (0,_createTheme__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(); +function useTheme() { + var defaultTheme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : systemDefaultTheme; + return (0,_useThemeWithoutDefault__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(defaultTheme); +} +/* harmony default export */ __webpack_exports__.Z = (useTheme); + +/***/ }), + +/***/ 4290: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ getThemeProps; } +/* harmony export */ }); +/* harmony import */ var _mui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9023); + +function getThemeProps(params) { + var theme = params.theme, + name = params.name, + props = params.props; + if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) { + return props; + } + return (0,_mui_utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(theme.components[name].defaultProps, props); +} + +/***/ }), + +/***/ 4614: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ useThemeProps; } +/* harmony export */ }); +/* harmony import */ var _getThemeProps__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4290); +/* harmony import */ var _useTheme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6728); +'use client'; + + + +function useThemeProps(_ref) { + var props = _ref.props, + name = _ref.name, + defaultTheme = _ref.defaultTheme, + themeId = _ref.themeId; + var theme = (0,_useTheme__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(defaultTheme); + if (themeId) { + theme = theme[themeId] || theme; + } + var mergedProps = (0,_getThemeProps__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({ + theme: theme, + name: name, + props: props + }); + return mergedProps; +} + +/***/ }), + +/***/ 4976: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); +/* harmony import */ var _mui_styled_engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3346); +'use client'; + + + +function isObjectEmpty(obj) { + return Object.keys(obj).length === 0; +} +function useTheme() { + var defaultTheme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var contextTheme = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_mui_styled_engine__WEBPACK_IMPORTED_MODULE_1__.T); + return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme; +} +/* harmony default export */ __webpack_exports__.Z = (useTheme); + +/***/ }), + +/***/ 1271: +/***/ (function(__unused_webpack_module, __webpack_exports__) { + +"use strict"; +var defaultGenerator = function defaultGenerator(componentName) { + return componentName; +}; +var createClassNameGenerator = function createClassNameGenerator() { + var _generate = defaultGenerator; + return { + configure: function configure(generator) { + _generate = generator; + }, + generate: function generate(componentName) { + return _generate(componentName); + }, + reset: function reset() { + _generate = defaultGenerator; + } + }; +}; +var ClassNameGenerator = createClassNameGenerator(); +/* harmony default export */ __webpack_exports__.Z = (ClassNameGenerator); + +/***/ }), + +/***/ 8831: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ capitalize; } +/* harmony export */ }); +/* harmony import */ var _formatMuiErrorMessage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7219); + +// It should to be noted that this function isn't equivalent to `text-transform: capitalize`. +// +// A strict capitalization should uppercase the first letter of each word in the sentence. +// We only handle the first word. +function capitalize(string) { + if (typeof string !== 'string') { + throw new Error( false ? 0 : (0,_formatMuiErrorMessage__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(7)); + } + return string.charAt(0).toUpperCase() + string.slice(1); +} + +/***/ }), + +/***/ 1921: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ composeClasses; } +/* harmony export */ }); +function composeClasses(slots, getUtilityClass) { + var classes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + var output = {}; + Object.keys(slots).forEach( + // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`. + // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208 + function (slot) { + output[slot] = slots[slot].reduce(function (acc, key) { + if (key) { + var utilityClass = getUtilityClass(key); + if (utilityClass !== '') { + acc.push(utilityClass); + } + if (classes && classes[key]) { + acc.push(classes[key]); + } + } + return acc; + }, []).join(' '); + }); + return output; +} + +/***/ }), + +/***/ 4246: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ createChainedFunction; } +/* harmony export */ }); +/** + * Safe chained function. + * + * Will only create a new function if needed, + * otherwise will pass back existing functions or null. + */ +function createChainedFunction() { + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { + funcs[_key] = arguments[_key]; + } + return funcs.reduce(function (acc, func) { + if (func == null) { + return acc; + } + return function chainedFunction() { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + acc.apply(this, args); + func.apply(this, args); + }; + }, function () {}); +} + +/***/ }), + +/***/ 1636: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ debounce; } +/* harmony export */ }); +// Corresponds to 10 frames at 60 Hz. +// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B. +function debounce(func) { + var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166; + var timeout; + function debounced() { + var _this = this; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + var later = function later() { + // @ts-ignore + func.apply(_this, args); + }; + clearTimeout(timeout); + timeout = setTimeout(later, wait); + } + debounced.clear = function () { + clearTimeout(timeout); + }; + return debounced; +} + +/***/ }), + +/***/ 3019: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ P: function() { return /* binding */ isPlainObject; }, +/* harmony export */ Z: function() { return /* binding */ deepmerge; } +/* harmony export */ }); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7462); + +function isPlainObject(item) { + return item !== null && typeof item === 'object' && item.constructor === Object; +} +function deepClone(source) { + if (!isPlainObject(source)) { + return source; + } + var output = {}; + Object.keys(source).forEach(function (key) { + output[key] = deepClone(source[key]); + }); + return output; +} +function deepmerge(target, source) { + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : { + clone: true + }; + var output = options.clone ? (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, target) : target; + if (isPlainObject(target) && isPlainObject(source)) { + Object.keys(source).forEach(function (key) { + // Avoid prototype pollution + if (key === '__proto__') { + return; + } + if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) { + // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type. + output[key] = deepmerge(target[key], source[key], options); + } else if (options.clone) { + output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key]; + } else { + output[key] = source[key]; + } + }); + } + return output; +} + +/***/ }), + +/***/ 7219: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ formatMuiErrorMessage; } +/* harmony export */ }); +/** + * WARNING: Don't import this directly. + * Use `MuiError` from `@mui/utils/macros/MuiError.macro` instead. + * @param {number} code + */ +function formatMuiErrorMessage(code) { + // Apply babel-plugin-transform-template-literals in loose mode + // loose mode is safe iff we're concatenating primitives + // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose + /* eslint-disable prefer-template */ + var url = 'https://mui.com/production-error/?code=' + code; + for (var i = 1; i < arguments.length; i += 1) { + // rest params over-transpile for this case + // eslint-disable-next-line prefer-rest-params + url += '&args[]=' + encodeURIComponent(arguments[i]); + } + return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.'; + /* eslint-enable prefer-template */ +} + +/***/ }), + +/***/ 2298: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ generateUtilityClass; } +/* harmony export */ }); +/* harmony import */ var _ClassNameGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1271); + + +// If GlobalStateSlot is changed, GLOBAL_STATE_CLASSES in +// \packages\api-docs-builder\utils\parseSlotsAndClasses.ts must be updated accordingly. +var globalStateClassesMapping = { + active: 'active', + checked: 'checked', + completed: 'completed', + disabled: 'disabled', + readOnly: 'readOnly', + error: 'error', + expanded: 'expanded', + focused: 'focused', + focusVisible: 'focusVisible', + required: 'required', + selected: 'selected' +}; +function generateUtilityClass(componentName, slot) { + var globalStatePrefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Mui'; + var globalStateClass = globalStateClassesMapping[slot]; + return globalStateClass ? "".concat(globalStatePrefix, "-").concat(globalStateClass) : "".concat(_ClassNameGenerator__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.generate(componentName), "-").concat(slot); +} + +/***/ }), + +/***/ 7430: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ generateUtilityClasses; } +/* harmony export */ }); +/* harmony import */ var _generateUtilityClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2298); + +function generateUtilityClasses(componentName, slots) { + var globalStatePrefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Mui'; + var result = {}; + slots.forEach(function (slot) { + result[slot] = (0,_generateUtilityClass__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(componentName, slot, globalStatePrefix); + }); + return result; +} + +/***/ }), + +/***/ 2504: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ ownerDocument; } +/* harmony export */ }); +function ownerDocument(node) { + return node && node.ownerDocument || document; +} + +/***/ }), + +/***/ 8929: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ ownerWindow; } +/* harmony export */ }); +/* harmony import */ var _ownerDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2504); + +function ownerWindow(node) { + var doc = (0,_ownerDocument__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(node); + return doc.defaultView || window; +} + +/***/ }), + +/***/ 9023: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ resolveProps; } +/* harmony export */ }); +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7462); + +/** + * Add keys, values of `defaultProps` that does not exist in `props` + * @param {object} defaultProps + * @param {object} props + * @returns {object} resolved props + */ +function resolveProps(defaultProps, props) { + var output = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, props); + Object.keys(defaultProps).forEach(function (propName) { + if (propName.toString().match(/^(components|slots)$/)) { + output[propName] = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, defaultProps[propName], output[propName]); + } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) { + var defaultSlotProps = defaultProps[propName] || {}; + var slotProps = props[propName]; + output[propName] = {}; + if (!slotProps || !Object.keys(slotProps)) { + // Reduce the iteration if the slot props is empty + output[propName] = defaultSlotProps; + } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) { + // Reduce the iteration if the default slot props is empty + output[propName] = slotProps; + } else { + output[propName] = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, slotProps); + Object.keys(defaultSlotProps).forEach(function (slotPropName) { + output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]); + }); + } + } else if (output[propName] === undefined) { + output[propName] = defaultProps[propName]; + } + }); + return output; +} + +/***/ }), + +/***/ 9265: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ setRef; } +/* harmony export */ }); +/** + * TODO v5: consider making it private + * + * passes {value} to {ref} + * + * WARNING: Be sure to only call this inside a callback that is passed as a ref. + * Otherwise, make sure to cleanup the previous {ref} if it changes. See + * https://github.com/mui/material-ui/issues/13539 + * + * Useful if you want to expose the ref of an inner component to the public API + * while still using it inside the component. + * @param ref A ref callback or ref object. If anything falsy, this is a no-op. + */ +function setRef(ref, value) { + if (typeof ref === 'function') { + ref(value); + } else if (ref) { + ref.current = value; + } +} + +/***/ }), + +/***/ 5094: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); +'use client'; + + +var useEnhancedEffect = typeof window !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect; +/* harmony default export */ __webpack_exports__.Z = (useEnhancedEffect); + +/***/ }), + +/***/ 6182: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); +/* harmony import */ var _useEnhancedEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5094); +'use client'; + + + + +/** + * https://github.com/facebook/react/issues/14099#issuecomment-440013892 + */ + +function useEventCallback(fn) { + var ref = react__WEBPACK_IMPORTED_MODULE_0__.useRef(fn); + (0,_useEnhancedEffect__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(function () { + ref.current = fn; + }); + return react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function () { + return ( + // @ts-expect-error hide `this` + // tslint:disable-next-line:ban-comma-operator + (0, ref.current).apply(void 0, arguments) + ); + }, []); +} +/* harmony default export */ __webpack_exports__.Z = (useEventCallback); + +/***/ }), + +/***/ 1577: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ useForkRef; } +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); +/* harmony import */ var _setRef__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9265); +'use client'; + + + +function useForkRef() { + for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) { + refs[_key] = arguments[_key]; + } + /** + * This will create a new function if the refs passed to this hook change and are all defined. + * This means react will call the old forkRef with `null` and the new forkRef + * with the ref. Cleanup naturally emerges from this behavior. + */ + return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () { + if (refs.every(function (ref) { + return ref == null; + })) { + return null; + } + return function (instance) { + refs.forEach(function (ref) { + (0,_setRef__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(ref, instance); + }); + }; + // eslint-disable-next-line react-hooks/exhaustive-deps + }, refs); +} + +/***/ }), + +/***/ 8334: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +var react__WEBPACK_IMPORTED_MODULE_0___namespace_cache; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ useId; } +/* harmony export */ }); +/* harmony import */ var _home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3324); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7313); +'use client'; + + + +var globalId = 0; +function useGlobalId(idOverride) { + var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(idOverride), + _React$useState2 = (0,_home_runner_work_kiss_translator_kiss_translator_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_React$useState, 2), + defaultId = _React$useState2[0], + setDefaultId = _React$useState2[1]; + var id = idOverride || defaultId; + react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () { + if (defaultId == null) { + // Fallback to this default id when possible. + // Use the incrementing value for client-side rendering only. + // We can't use it server-side. + // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem + globalId += 1; + setDefaultId("mui-".concat(globalId)); + } + }, [defaultId]); + return id; +} + +// downstream bundlers may remove unnecessary concatenation, but won't remove toString call -- Workaround for https://github.com/webpack/webpack/issues/14814 +var maybeReactUseId = /*#__PURE__*/ (react__WEBPACK_IMPORTED_MODULE_0___namespace_cache || (react__WEBPACK_IMPORTED_MODULE_0___namespace_cache = __webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__, 2)))['useId'.toString()]; +/** + * + * @example
+ * @param idOverride + * @returns {string} + */ +function useId(idOverride) { + if (maybeReactUseId !== undefined) { + var reactId = maybeReactUseId(); + return idOverride != null ? idOverride : reactId; + } + // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime. + return useGlobalId(idOverride); +} + +/***/ }), + +/***/ 2354: +/***/ (function(module) { + +"use strict"; + + +var hasOwn = Object.prototype.hasOwnProperty; +var toStr = Object.prototype.toString; +var defineProperty = Object.defineProperty; +var gOPD = Object.getOwnPropertyDescriptor; +var isArray = function isArray(arr) { + if (typeof Array.isArray === 'function') { + return Array.isArray(arr); + } + return toStr.call(arr) === '[object Array]'; +}; +var isPlainObject = function isPlainObject(obj) { + if (!obj || toStr.call(obj) !== '[object Object]') { + return false; + } + var hasOwnConstructor = hasOwn.call(obj, 'constructor'); + var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf'); + // Not own constructor property must be Object + if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) { + return false; + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + var key; + for (key in obj) {/**/} + return typeof key === 'undefined' || hasOwn.call(obj, key); +}; + +// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target +var setProperty = function setProperty(target, options) { + if (defineProperty && options.name === '__proto__') { + defineProperty(target, options.name, { + enumerable: true, + configurable: true, + value: options.newValue, + writable: true + }); + } else { + target[options.name] = options.newValue; + } +}; + +// Return undefined instead of __proto__ if '__proto__' is not an own property +var getProperty = function getProperty(obj, name) { + if (name === '__proto__') { + if (!hasOwn.call(obj, name)) { + return void 0; + } else if (gOPD) { + // In early versions of node, obj['__proto__'] is buggy when obj has + // __proto__ as an own property. Object.getOwnPropertyDescriptor() works. + return gOPD(obj, name).value; + } + } + return obj[name]; +}; +module.exports = function extend() { + var options, name, src, copy, copyIsArray, clone; + var target = arguments[0]; + var i = 1; + var length = arguments.length; + var deep = false; + + // Handle a deep copy situation + if (typeof target === 'boolean') { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + if (target == null || typeof target !== 'object' && typeof target !== 'function') { + target = {}; + } + for (; i < length; ++i) { + options = arguments[i]; + // Only deal with non-null/undefined values + if (options != null) { + // Extend the base object + for (name in options) { + src = getProperty(target, name); + copy = getProperty(options, name); + + // Prevent never-ending loop + if (target !== copy) { + // Recurse if we're merging plain objects or arrays + if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) { + if (copyIsArray) { + copyIsArray = false; + clone = src && isArray(src) ? src : []; + } else { + clone = src && isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + setProperty(target, { + name: name, + newValue: extend(deep, clone, copy) + }); + + // Don't bring in undefined values + } else if (typeof copy !== 'undefined') { + setProperty(target, { + name: name, + newValue: copy + }); + } + } + } + } + } + + // Return the modified object + return target; +}; + +/***/ }), + +/***/ 7861: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +"use strict"; + + +var reactIs = __webpack_require__(9456); + +/** + * Copyright 2015, Yahoo! Inc. + * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. + */ +var REACT_STATICS = { + childContextTypes: true, + contextType: true, + contextTypes: true, + defaultProps: true, + displayName: true, + getDefaultProps: true, + getDerivedStateFromError: true, + getDerivedStateFromProps: true, + mixins: true, + propTypes: true, + type: true +}; +var KNOWN_STATICS = { + name: true, + length: true, + prototype: true, + caller: true, + callee: true, + arguments: true, + arity: true +}; +var FORWARD_REF_STATICS = { + '$$typeof': true, + render: true, + defaultProps: true, + displayName: true, + propTypes: true +}; +var MEMO_STATICS = { + '$$typeof': true, + compare: true, + defaultProps: true, + displayName: true, + propTypes: true, + type: true +}; +var TYPE_STATICS = {}; +TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; +TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; +function getStatics(component) { + // React v16.11 and below + if (reactIs.isMemo(component)) { + return MEMO_STATICS; + } // React v16.12 and above + + return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; +} +var defineProperty = Object.defineProperty; +var getOwnPropertyNames = Object.getOwnPropertyNames; +var getOwnPropertySymbols = Object.getOwnPropertySymbols; +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; +var getPrototypeOf = Object.getPrototypeOf; +var objectPrototype = Object.prototype; +function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { + if (typeof sourceComponent !== 'string') { + // don't hoist over string (html) components + if (objectPrototype) { + var inheritedComponent = getPrototypeOf(sourceComponent); + if (inheritedComponent && inheritedComponent !== objectPrototype) { + hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); + } + } + var keys = getOwnPropertyNames(sourceComponent); + if (getOwnPropertySymbols) { + keys = keys.concat(getOwnPropertySymbols(sourceComponent)); + } + var targetStatics = getStatics(targetComponent); + var sourceStatics = getStatics(sourceComponent); + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { + var descriptor = getOwnPropertyDescriptor(sourceComponent, key); + try { + // Avoid failures from read-only properties + defineProperty(targetComponent, key, descriptor); + } catch (e) {} + } + } + } + return targetComponent; +} +module.exports = hoistNonReactStatics; + +/***/ }), + +/***/ 229: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var b = "function" === typeof Symbol && Symbol.for, + c = b ? Symbol.for("react.element") : 60103, + d = b ? Symbol.for("react.portal") : 60106, + e = b ? Symbol.for("react.fragment") : 60107, + f = b ? Symbol.for("react.strict_mode") : 60108, + g = b ? Symbol.for("react.profiler") : 60114, + h = b ? Symbol.for("react.provider") : 60109, + k = b ? Symbol.for("react.context") : 60110, + l = b ? Symbol.for("react.async_mode") : 60111, + m = b ? Symbol.for("react.concurrent_mode") : 60111, + n = b ? Symbol.for("react.forward_ref") : 60112, + p = b ? Symbol.for("react.suspense") : 60113, + q = b ? Symbol.for("react.suspense_list") : 60120, + r = b ? Symbol.for("react.memo") : 60115, + t = b ? Symbol.for("react.lazy") : 60116, + v = b ? Symbol.for("react.block") : 60121, + w = b ? Symbol.for("react.fundamental") : 60117, + x = b ? Symbol.for("react.responder") : 60118, + y = b ? Symbol.for("react.scope") : 60119; +function z(a) { + if ("object" === typeof a && null !== a) { + var u = a.$$typeof; + switch (u) { + case c: + switch (a = a.type, a) { + case l: + case m: + case e: + case g: + case f: + case p: + return a; + default: + switch (a = a && a.$$typeof, a) { + case k: + case n: + case t: + case r: + case h: + return a; + default: + return u; + } + } + case d: + return u; + } + } +} +function A(a) { + return z(a) === m; +} +exports.AsyncMode = l; +exports.ConcurrentMode = m; +exports.ContextConsumer = k; +exports.ContextProvider = h; +exports.Element = c; +exports.ForwardRef = n; +exports.Fragment = e; +exports.Lazy = t; +exports.Memo = r; +exports.Portal = d; +exports.Profiler = g; +exports.StrictMode = f; +exports.Suspense = p; +exports.isAsyncMode = function (a) { + return A(a) || z(a) === l; +}; +exports.isConcurrentMode = A; +exports.isContextConsumer = function (a) { + return z(a) === k; +}; +exports.isContextProvider = function (a) { + return z(a) === h; +}; +exports.isElement = function (a) { + return "object" === typeof a && null !== a && a.$$typeof === c; +}; +exports.isForwardRef = function (a) { + return z(a) === n; +}; +exports.isFragment = function (a) { + return z(a) === e; +}; +exports.isLazy = function (a) { + return z(a) === t; +}; +exports.isMemo = function (a) { + return z(a) === r; +}; +exports.isPortal = function (a) { + return z(a) === d; +}; +exports.isProfiler = function (a) { + return z(a) === g; +}; +exports.isStrictMode = function (a) { + return z(a) === f; +}; +exports.isSuspense = function (a) { + return z(a) === p; +}; +exports.isValidElementType = function (a) { + return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v); +}; +exports.typeOf = z; + +/***/ }), + +/***/ 9456: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +"use strict"; + + +if (true) { + module.exports = __webpack_require__(229); +} else {} + +/***/ }), + +/***/ 6949: +/***/ (function(module) { + +// http://www.w3.org/TR/CSS21/grammar.html +// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027 +var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g; +var NEWLINE_REGEX = /\n/g; +var WHITESPACE_REGEX = /^\s*/; + +// declaration +var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/; +var COLON_REGEX = /^:\s*/; +var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/; +var SEMICOLON_REGEX = /^[;\s]*/; + +// https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Polyfill +var TRIM_REGEX = /^\s+|\s+$/g; + +// strings +var NEWLINE = '\n'; +var FORWARD_SLASH = '/'; +var ASTERISK = '*'; +var EMPTY_STRING = ''; + +// types +var TYPE_COMMENT = 'comment'; +var TYPE_DECLARATION = 'declaration'; + +/** + * @param {String} style + * @param {Object} [options] + * @return {Object[]} + * @throws {TypeError} + * @throws {Error} + */ +module.exports = function (style, options) { + if (typeof style !== 'string') { + throw new TypeError('First argument must be a string'); + } + if (!style) return []; + options = options || {}; + + /** + * Positional. + */ + var lineno = 1; + var column = 1; + + /** + * Update lineno and column based on `str`. + * + * @param {String} str + */ + function updatePosition(str) { + var lines = str.match(NEWLINE_REGEX); + if (lines) lineno += lines.length; + var i = str.lastIndexOf(NEWLINE); + column = ~i ? str.length - i : column + str.length; + } + + /** + * Mark position and patch `node.position`. + * + * @return {Function} + */ + function position() { + var start = { + line: lineno, + column: column + }; + return function (node) { + node.position = new Position(start); + whitespace(); + return node; + }; + } + + /** + * Store position information for a node. + * + * @constructor + * @property {Object} start + * @property {Object} end + * @property {undefined|String} source + */ + function Position(start) { + this.start = start; + this.end = { + line: lineno, + column: column + }; + this.source = options.source; + } + + /** + * Non-enumerable source string. + */ + Position.prototype.content = style; + var errorsList = []; + + /** + * Error `msg`. + * + * @param {String} msg + * @throws {Error} + */ + function error(msg) { + var err = new Error(options.source + ':' + lineno + ':' + column + ': ' + msg); + err.reason = msg; + err.filename = options.source; + err.line = lineno; + err.column = column; + err.source = style; + if (options.silent) { + errorsList.push(err); + } else { + throw err; + } + } + + /** + * Match `re` and return captures. + * + * @param {RegExp} re + * @return {undefined|Array} + */ + function match(re) { + var m = re.exec(style); + if (!m) return; + var str = m[0]; + updatePosition(str); + style = style.slice(str.length); + return m; + } + + /** + * Parse whitespace. + */ + function whitespace() { + match(WHITESPACE_REGEX); + } + + /** + * Parse comments. + * + * @param {Object[]} [rules] + * @return {Object[]} + */ + function comments(rules) { + var c; + rules = rules || []; + while (c = comment()) { + if (c !== false) { + rules.push(c); + } + } + return rules; + } + + /** + * Parse comment. + * + * @return {Object} + * @throws {Error} + */ + function comment() { + var pos = position(); + if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return; + var i = 2; + while (EMPTY_STRING != style.charAt(i) && (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))) { + ++i; + } + i += 2; + if (EMPTY_STRING === style.charAt(i - 1)) { + return error('End of comment missing'); + } + var str = style.slice(2, i - 2); + column += 2; + updatePosition(str); + style = style.slice(i); + column += 2; + return pos({ + type: TYPE_COMMENT, + comment: str + }); + } + + /** + * Parse declaration. + * + * @return {Object} + * @throws {Error} + */ + function declaration() { + var pos = position(); + + // prop + var prop = match(PROPERTY_REGEX); + if (!prop) return; + comment(); + + // : + if (!match(COLON_REGEX)) return error("property missing ':'"); + + // val + var val = match(VALUE_REGEX); + var ret = pos({ + type: TYPE_DECLARATION, + property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)), + value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING + }); + + // ; + match(SEMICOLON_REGEX); + return ret; + } + + /** + * Parse declarations. + * + * @return {Object[]} + */ + function declarations() { + var decls = []; + comments(decls); + + // declarations + var decl; + while (decl = declaration()) { + if (decl !== false) { + decls.push(decl); + comments(decls); + } + } + return decls; + } + whitespace(); + return declarations(); +}; + +/** + * Trim `str`. + * + * @param {String} str + * @return {String} + */ +function trim(str) { + return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING; +} + +/***/ }), + +/***/ 3110: +/***/ (function(module) { + +/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */ + +module.exports = function isBuffer(obj) { + return obj != null && obj.constructor != null && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj); +}; + +/***/ }), + +/***/ 1729: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var ReactPropTypesSecret = __webpack_require__(9165); +function emptyFunction() {} +function emptyFunctionWithReset() {} +emptyFunctionWithReset.resetWarningCache = emptyFunction; +module.exports = function () { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types'); + err.name = 'Invariant Violation'; + throw err; + } + ; + shim.isRequired = shim; + function getShim() { + return shim; + } + ; + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bigint: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + any: shim, + arrayOf: getShim, + element: shim, + elementType: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim, + checkPropTypes: emptyFunctionWithReset, + resetWarningCache: emptyFunction + }; + ReactPropTypes.PropTypes = ReactPropTypes; + return ReactPropTypes; +}; + +/***/ }), + +/***/ 5192: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { + +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +if (false) { var throwOnDirectAccess, ReactIs; } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(1729)(); +} + +/***/ }), + +/***/ 9165: +/***/ (function(module) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + + +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; +module.exports = ReactPropTypesSecret; + +/***/ }), + +/***/ 534: +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + +"use strict"; +/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/* + Modernizr 3.0.0pre (Custom Build) | MIT +*/ + + +var aa = __webpack_require__(7313), + ca = __webpack_require__(2224); +function p(a) { + for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]); + return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; +} +var da = new Set(), + ea = {}; +function fa(a, b) { + ha(a, b); + ha(a + "Capture", b); +} +function ha(a, b) { + ea[a] = b; + for (a = 0; a < b.length; a++) da.add(b[a]); +} +var ia = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement), + ja = Object.prototype.hasOwnProperty, + ka = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, + la = {}, + ma = {}; +function oa(a) { + if (ja.call(ma, a)) return !0; + if (ja.call(la, a)) return !1; + if (ka.test(a)) return ma[a] = !0; + la[a] = !0; + return !1; +} +function pa(a, b, c, d) { + if (null !== c && 0 === c.type) return !1; + switch (typeof b) { + case "function": + case "symbol": + return !0; + case "boolean": + if (d) return !1; + if (null !== c) return !c.acceptsBooleans; + a = a.toLowerCase().slice(0, 5); + return "data-" !== a && "aria-" !== a; + default: + return !1; + } +} +function qa(a, b, c, d) { + if (null === b || "undefined" === typeof b || pa(a, b, c, d)) return !0; + if (d) return !1; + if (null !== c) switch (c.type) { + case 3: + return !b; + case 4: + return !1 === b; + case 5: + return isNaN(b); + case 6: + return isNaN(b) || 1 > b; + } + return !1; +} +function v(a, b, c, d, e, f, g) { + this.acceptsBooleans = 2 === b || 3 === b || 4 === b; + this.attributeName = d; + this.attributeNamespace = e; + this.mustUseProperty = c; + this.propertyName = a; + this.type = b; + this.sanitizeURL = f; + this.removeEmptyString = g; +} +var z = {}; +"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function (a) { + z[a] = new v(a, 0, !1, a, null, !1, !1); +}); +[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function (a) { + var b = a[0]; + z[b] = new v(b, 1, !1, a[1], null, !1, !1); +}); +["contentEditable", "draggable", "spellCheck", "value"].forEach(function (a) { + z[a] = new v(a, 2, !1, a.toLowerCase(), null, !1, !1); +}); +["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (a) { + z[a] = new v(a, 2, !1, a, null, !1, !1); +}); +"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function (a) { + z[a] = new v(a, 3, !1, a.toLowerCase(), null, !1, !1); +}); +["checked", "multiple", "muted", "selected"].forEach(function (a) { + z[a] = new v(a, 3, !0, a, null, !1, !1); +}); +["capture", "download"].forEach(function (a) { + z[a] = new v(a, 4, !1, a, null, !1, !1); +}); +["cols", "rows", "size", "span"].forEach(function (a) { + z[a] = new v(a, 6, !1, a, null, !1, !1); +}); +["rowSpan", "start"].forEach(function (a) { + z[a] = new v(a, 5, !1, a.toLowerCase(), null, !1, !1); +}); +var ra = /[\-:]([a-z])/g; +function sa(a) { + return a[1].toUpperCase(); +} +"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function (a) { + var b = a.replace(ra, sa); + z[b] = new v(b, 1, !1, a, null, !1, !1); +}); +"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function (a) { + var b = a.replace(ra, sa); + z[b] = new v(b, 1, !1, a, "http://www.w3.org/1999/xlink", !1, !1); +}); +["xml:base", "xml:lang", "xml:space"].forEach(function (a) { + var b = a.replace(ra, sa); + z[b] = new v(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace", !1, !1); +}); +["tabIndex", "crossOrigin"].forEach(function (a) { + z[a] = new v(a, 1, !1, a.toLowerCase(), null, !1, !1); +}); +z.xlinkHref = new v("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1); +["src", "href", "action", "formAction"].forEach(function (a) { + z[a] = new v(a, 1, !1, a.toLowerCase(), null, !0, !0); +}); +function ta(a, b, c, d) { + var e = z.hasOwnProperty(b) ? z[b] : null; + if (null !== e ? 0 !== e.type : d || !(2 < b.length) || "o" !== b[0] && "O" !== b[0] || "n" !== b[1] && "N" !== b[1]) qa(b, c, e, d) && (c = null), d || null === e ? oa(b) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, "" + c)) : e.mustUseProperty ? a[e.propertyName] = null === c ? 3 === e.type ? !1 : "" : c : (b = e.attributeName, d = e.attributeNamespace, null === c ? a.removeAttribute(b) : (e = e.type, c = 3 === e || 4 === e && !0 === c ? "" : "" + c, d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c))); +} +var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + va = Symbol.for("react.element"), + wa = Symbol.for("react.portal"), + ya = Symbol.for("react.fragment"), + za = Symbol.for("react.strict_mode"), + Aa = Symbol.for("react.profiler"), + Ba = Symbol.for("react.provider"), + Ca = Symbol.for("react.context"), + Da = Symbol.for("react.forward_ref"), + Ea = Symbol.for("react.suspense"), + Fa = Symbol.for("react.suspense_list"), + Ga = Symbol.for("react.memo"), + Ha = Symbol.for("react.lazy"); +Symbol.for("react.scope"); +Symbol.for("react.debug_trace_mode"); +var Ia = Symbol.for("react.offscreen"); +Symbol.for("react.legacy_hidden"); +Symbol.for("react.cache"); +Symbol.for("react.tracing_marker"); +var Ja = Symbol.iterator; +function Ka(a) { + if (null === a || "object" !== typeof a) return null; + a = Ja && a[Ja] || a["@@iterator"]; + return "function" === typeof a ? a : null; +} +var A = Object.assign, + La; +function Ma(a) { + if (void 0 === La) try { + throw Error(); + } catch (c) { + var b = c.stack.trim().match(/\n( *(at )?)/); + La = b && b[1] || ""; + } + return "\n" + La + a; +} +var Na = !1; +function Oa(a, b) { + if (!a || Na) return ""; + Na = !0; + var c = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + if (b) { + if (b = function b() { + throw Error(); + }, Object.defineProperty(b.prototype, "props", { + set: function set() { + throw Error(); + } + }), "object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(b, []); + } catch (l) { + var d = l; + } + Reflect.construct(a, [], b); + } else { + try { + b.call(); + } catch (l) { + d = l; + } + a.call(b.prototype); + } + } else { + try { + throw Error(); + } catch (l) { + d = l; + } + a(); + } + } catch (l) { + if (l && d && "string" === typeof l.stack) { + for (var e = l.stack.split("\n"), f = d.stack.split("\n"), g = e.length - 1, h = f.length - 1; 1 <= g && 0 <= h && e[g] !== f[h];) h--; + for (; 1 <= g && 0 <= h; g--, h--) if (e[g] !== f[h]) { + if (1 !== g || 1 !== h) { + do if (g--, h--, 0 > h || e[g] !== f[h]) { + var k = "\n" + e[g].replace(" at new ", " at "); + a.displayName && k.includes("") && (k = k.replace("", a.displayName)); + return k; + } while (1 <= g && 0 <= h); + } + break; + } + } + } finally { + Na = !1, Error.prepareStackTrace = c; + } + return (a = a ? a.displayName || a.name : "") ? Ma(a) : ""; +} +function Pa(a) { + switch (a.tag) { + case 5: + return Ma(a.type); + case 16: + return Ma("Lazy"); + case 13: + return Ma("Suspense"); + case 19: + return Ma("SuspenseList"); + case 0: + case 2: + case 15: + return a = Oa(a.type, !1), a; + case 11: + return a = Oa(a.type.render, !1), a; + case 1: + return a = Oa(a.type, !0), a; + default: + return ""; + } +} +function Qa(a) { + if (null == a) return null; + if ("function" === typeof a) return a.displayName || a.name || null; + if ("string" === typeof a) return a; + switch (a) { + case ya: + return "Fragment"; + case wa: + return "Portal"; + case Aa: + return "Profiler"; + case za: + return "StrictMode"; + case Ea: + return "Suspense"; + case Fa: + return "SuspenseList"; + } + if ("object" === typeof a) switch (a.$$typeof) { + case Ca: + return (a.displayName || "Context") + ".Consumer"; + case Ba: + return (a._context.displayName || "Context") + ".Provider"; + case Da: + var b = a.render; + a = a.displayName; + a || (a = b.displayName || b.name || "", a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"); + return a; + case Ga: + return b = a.displayName || null, null !== b ? b : Qa(a.type) || "Memo"; + case Ha: + b = a._payload; + a = a._init; + try { + return Qa(a(b)); + } catch (c) {} + } + return null; +} +function Ra(a) { + var b = a.type; + switch (a.tag) { + case 24: + return "Cache"; + case 9: + return (b.displayName || "Context") + ".Consumer"; + case 10: + return (b._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return a = b.render, a = a.displayName || a.name || "", b.displayName || ("" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"); + case 7: + return "Fragment"; + case 5: + return b; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return Qa(b); + case 8: + return b === za ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 17: + case 2: + case 14: + case 15: + if ("function" === typeof b) return b.displayName || b.name || null; + if ("string" === typeof b) return b; + } + return null; +} +function Sa(a) { + switch (typeof a) { + case "boolean": + case "number": + case "string": + case "undefined": + return a; + case "object": + return a; + default: + return ""; + } +} +function Ta(a) { + var b = a.type; + return (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b || "radio" === b); +} +function Ua(a) { + var b = Ta(a) ? "checked" : "value", + c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b), + d = "" + a[b]; + if (!a.hasOwnProperty(b) && "undefined" !== typeof c && "function" === typeof c.get && "function" === typeof c.set) { + var e = c.get, + f = c.set; + Object.defineProperty(a, b, { + configurable: !0, + get: function get() { + return e.call(this); + }, + set: function set(a) { + d = "" + a; + f.call(this, a); + } + }); + Object.defineProperty(a, b, { + enumerable: c.enumerable + }); + return { + getValue: function getValue() { + return d; + }, + setValue: function setValue(a) { + d = "" + a; + }, + stopTracking: function stopTracking() { + a._valueTracker = null; + delete a[b]; + } + }; + } +} +function Va(a) { + a._valueTracker || (a._valueTracker = Ua(a)); +} +function Wa(a) { + if (!a) return !1; + var b = a._valueTracker; + if (!b) return !0; + var c = b.getValue(); + var d = ""; + a && (d = Ta(a) ? a.checked ? "true" : "false" : a.value); + a = d; + return a !== c ? (b.setValue(a), !0) : !1; +} +function Xa(a) { + a = a || ("undefined" !== typeof document ? document : void 0); + if ("undefined" === typeof a) return null; + try { + return a.activeElement || a.body; + } catch (b) { + return a.body; + } +} +function Ya(a, b) { + var c = b.checked; + return A({}, b, { + defaultChecked: void 0, + defaultValue: void 0, + value: void 0, + checked: null != c ? c : a._wrapperState.initialChecked + }); +} +function Za(a, b) { + var c = null == b.defaultValue ? "" : b.defaultValue, + d = null != b.checked ? b.checked : b.defaultChecked; + c = Sa(null != b.value ? b.value : c); + a._wrapperState = { + initialChecked: d, + initialValue: c, + controlled: "checkbox" === b.type || "radio" === b.type ? null != b.checked : null != b.value + }; +} +function ab(a, b) { + b = b.checked; + null != b && ta(a, "checked", b, !1); +} +function bb(a, b) { + ab(a, b); + var c = Sa(b.value), + d = b.type; + if (null != c) { + if ("number" === d) { + if (0 === c && "" === a.value || a.value != c) a.value = "" + c; + } else a.value !== "" + c && (a.value = "" + c); + } else if ("submit" === d || "reset" === d) { + a.removeAttribute("value"); + return; + } + b.hasOwnProperty("value") ? cb(a, b.type, c) : b.hasOwnProperty("defaultValue") && cb(a, b.type, Sa(b.defaultValue)); + null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked); +} +function db(a, b, c) { + if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) { + var d = b.type; + if (!("submit" !== d && "reset" !== d || void 0 !== b.value && null !== b.value)) return; + b = "" + a._wrapperState.initialValue; + c || b === a.value || (a.value = b); + a.defaultValue = b; + } + c = a.name; + "" !== c && (a.name = ""); + a.defaultChecked = !!a._wrapperState.initialChecked; + "" !== c && (a.name = c); +} +function cb(a, b, c) { + if ("number" !== b || Xa(a.ownerDocument) !== a) null == c ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c && (a.defaultValue = "" + c); +} +var eb = Array.isArray; +function fb(a, b, c, d) { + a = a.options; + if (b) { + b = {}; + for (var e = 0; e < c.length; e++) b["$" + c[e]] = !0; + for (c = 0; c < a.length; c++) e = b.hasOwnProperty("$" + a[c].value), a[c].selected !== e && (a[c].selected = e), e && d && (a[c].defaultSelected = !0); + } else { + c = "" + Sa(c); + b = null; + for (e = 0; e < a.length; e++) { + if (a[e].value === c) { + a[e].selected = !0; + d && (a[e].defaultSelected = !0); + return; + } + null !== b || a[e].disabled || (b = a[e]); + } + null !== b && (b.selected = !0); + } +} +function gb(a, b) { + if (null != b.dangerouslySetInnerHTML) throw Error(p(91)); + return A({}, b, { + value: void 0, + defaultValue: void 0, + children: "" + a._wrapperState.initialValue + }); +} +function hb(a, b) { + var c = b.value; + if (null == c) { + c = b.children; + b = b.defaultValue; + if (null != c) { + if (null != b) throw Error(p(92)); + if (eb(c)) { + if (1 < c.length) throw Error(p(93)); + c = c[0]; + } + b = c; + } + null == b && (b = ""); + c = b; + } + a._wrapperState = { + initialValue: Sa(c) + }; +} +function ib(a, b) { + var c = Sa(b.value), + d = Sa(b.defaultValue); + null != c && (c = "" + c, c !== a.value && (a.value = c), null == b.defaultValue && a.defaultValue !== c && (a.defaultValue = c)); + null != d && (a.defaultValue = "" + d); +} +function jb(a) { + var b = a.textContent; + b === a._wrapperState.initialValue && "" !== b && null !== b && (a.value = b); +} +function kb(a) { + switch (a) { + case "svg": + return "http://www.w3.org/2000/svg"; + case "math": + return "http://www.w3.org/1998/Math/MathML"; + default: + return "http://www.w3.org/1999/xhtml"; + } +} +function lb(a, b) { + return null == a || "http://www.w3.org/1999/xhtml" === a ? kb(b) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b ? "http://www.w3.org/1999/xhtml" : a; +} +var mb, + nb = function (a) { + return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function (b, c, d, e) { + MSApp.execUnsafeLocalFunction(function () { + return a(b, c, d, e); + }); + } : a; + }(function (a, b) { + if ("http://www.w3.org/2000/svg" !== a.namespaceURI || "innerHTML" in a) a.innerHTML = b;else { + mb = mb || document.createElement("div"); + mb.innerHTML = "" + b.valueOf().toString() + ""; + for (b = mb.firstChild; a.firstChild;) a.removeChild(a.firstChild); + for (; b.firstChild;) a.appendChild(b.firstChild); + } + }); +function ob(a, b) { + if (b) { + var c = a.firstChild; + if (c && c === a.lastChild && 3 === c.nodeType) { + c.nodeValue = b; + return; + } + } + a.textContent = b; +} +var pb = { + animationIterationCount: !0, + aspectRatio: !0, + borderImageOutset: !0, + borderImageSlice: !0, + borderImageWidth: !0, + boxFlex: !0, + boxFlexGroup: !0, + boxOrdinalGroup: !0, + columnCount: !0, + columns: !0, + flex: !0, + flexGrow: !0, + flexPositive: !0, + flexShrink: !0, + flexNegative: !0, + flexOrder: !0, + gridArea: !0, + gridRow: !0, + gridRowEnd: !0, + gridRowSpan: !0, + gridRowStart: !0, + gridColumn: !0, + gridColumnEnd: !0, + gridColumnSpan: !0, + gridColumnStart: !0, + fontWeight: !0, + lineClamp: !0, + lineHeight: !0, + opacity: !0, + order: !0, + orphans: !0, + tabSize: !0, + widows: !0, + zIndex: !0, + zoom: !0, + fillOpacity: !0, + floodOpacity: !0, + stopOpacity: !0, + strokeDasharray: !0, + strokeDashoffset: !0, + strokeMiterlimit: !0, + strokeOpacity: !0, + strokeWidth: !0 + }, + qb = ["Webkit", "ms", "Moz", "O"]; +Object.keys(pb).forEach(function (a) { + qb.forEach(function (b) { + b = b + a.charAt(0).toUpperCase() + a.substring(1); + pb[b] = pb[a]; + }); +}); +function rb(a, b, c) { + return null == b || "boolean" === typeof b || "" === b ? "" : c || "number" !== typeof b || 0 === b || pb.hasOwnProperty(a) && pb[a] ? ("" + b).trim() : b + "px"; +} +function sb(a, b) { + a = a.style; + for (var c in b) if (b.hasOwnProperty(c)) { + var d = 0 === c.indexOf("--"), + e = rb(c, b[c], d); + "float" === c && (c = "cssFloat"); + d ? a.setProperty(c, e) : a[c] = e; + } +} +var tb = A({ + menuitem: !0 +}, { + area: !0, + base: !0, + br: !0, + col: !0, + embed: !0, + hr: !0, + img: !0, + input: !0, + keygen: !0, + link: !0, + meta: !0, + param: !0, + source: !0, + track: !0, + wbr: !0 +}); +function ub(a, b) { + if (b) { + if (tb[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) throw Error(p(137, a)); + if (null != b.dangerouslySetInnerHTML) { + if (null != b.children) throw Error(p(60)); + if ("object" !== typeof b.dangerouslySetInnerHTML || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p(61)); + } + if (null != b.style && "object" !== typeof b.style) throw Error(p(62)); + } +} +function vb(a, b) { + if (-1 === a.indexOf("-")) return "string" === typeof b.is; + switch (a) { + case "annotation-xml": + case "color-profile": + case "font-face": + case "font-face-src": + case "font-face-uri": + case "font-face-format": + case "font-face-name": + case "missing-glyph": + return !1; + default: + return !0; + } +} +var wb = null; +function xb(a) { + a = a.target || a.srcElement || window; + a.correspondingUseElement && (a = a.correspondingUseElement); + return 3 === a.nodeType ? a.parentNode : a; +} +var yb = null, + zb = null, + Ab = null; +function Bb(a) { + if (a = Cb(a)) { + if ("function" !== typeof yb) throw Error(p(280)); + var b = a.stateNode; + b && (b = Db(b), yb(a.stateNode, a.type, b)); + } +} +function Eb(a) { + zb ? Ab ? Ab.push(a) : Ab = [a] : zb = a; +} +function Fb() { + if (zb) { + var a = zb, + b = Ab; + Ab = zb = null; + Bb(a); + if (b) for (a = 0; a < b.length; a++) Bb(b[a]); + } +} +function Gb(a, b) { + return a(b); +} +function Hb() {} +var Ib = !1; +function Jb(a, b, c) { + if (Ib) return a(b, c); + Ib = !0; + try { + return Gb(a, b, c); + } finally { + if (Ib = !1, null !== zb || null !== Ab) Hb(), Fb(); + } +} +function Kb(a, b) { + var c = a.stateNode; + if (null === c) return null; + var d = Db(c); + if (null === d) return null; + c = d[b]; + a: switch (b) { + case "onClick": + case "onClickCapture": + case "onDoubleClick": + case "onDoubleClickCapture": + case "onMouseDown": + case "onMouseDownCapture": + case "onMouseMove": + case "onMouseMoveCapture": + case "onMouseUp": + case "onMouseUpCapture": + case "onMouseEnter": + (d = !d.disabled) || (a = a.type, d = !("button" === a || "input" === a || "select" === a || "textarea" === a)); + a = !d; + break a; + default: + a = !1; + } + if (a) return null; + if (c && "function" !== typeof c) throw Error(p(231, b, typeof c)); + return c; +} +var Lb = !1; +if (ia) try { + var Mb = {}; + Object.defineProperty(Mb, "passive", { + get: function get() { + Lb = !0; + } + }); + window.addEventListener("test", Mb, Mb); + window.removeEventListener("test", Mb, Mb); +} catch (a) { + Lb = !1; +} +function Nb(a, b, c, d, e, f, g, h, k) { + var l = Array.prototype.slice.call(arguments, 3); + try { + b.apply(c, l); + } catch (m) { + this.onError(m); + } +} +var Ob = !1, + Pb = null, + Qb = !1, + Rb = null, + Sb = { + onError: function onError(a) { + Ob = !0; + Pb = a; + } + }; +function Tb(a, b, c, d, e, f, g, h, k) { + Ob = !1; + Pb = null; + Nb.apply(Sb, arguments); +} +function Ub(a, b, c, d, e, f, g, h, k) { + Tb.apply(this, arguments); + if (Ob) { + if (Ob) { + var l = Pb; + Ob = !1; + Pb = null; + } else throw Error(p(198)); + Qb || (Qb = !0, Rb = l); + } +} +function Vb(a) { + var b = a, + c = a; + if (a.alternate) for (; b.return;) b = b.return;else { + a = b; + do b = a, 0 !== (b.flags & 4098) && (c = b.return), a = b.return; while (a); + } + return 3 === b.tag ? c : null; +} +function Wb(a) { + if (13 === a.tag) { + var b = a.memoizedState; + null === b && (a = a.alternate, null !== a && (b = a.memoizedState)); + if (null !== b) return b.dehydrated; + } + return null; +} +function Xb(a) { + if (Vb(a) !== a) throw Error(p(188)); +} +function Yb(a) { + var b = a.alternate; + if (!b) { + b = Vb(a); + if (null === b) throw Error(p(188)); + return b !== a ? null : a; + } + for (var c = a, d = b;;) { + var e = c.return; + if (null === e) break; + var f = e.alternate; + if (null === f) { + d = e.return; + if (null !== d) { + c = d; + continue; + } + break; + } + if (e.child === f.child) { + for (f = e.child; f;) { + if (f === c) return Xb(e), a; + if (f === d) return Xb(e), b; + f = f.sibling; + } + throw Error(p(188)); + } + if (c.return !== d.return) c = e, d = f;else { + for (var g = !1, h = e.child; h;) { + if (h === c) { + g = !0; + c = e; + d = f; + break; + } + if (h === d) { + g = !0; + d = e; + c = f; + break; + } + h = h.sibling; + } + if (!g) { + for (h = f.child; h;) { + if (h === c) { + g = !0; + c = f; + d = e; + break; + } + if (h === d) { + g = !0; + d = f; + c = e; + break; + } + h = h.sibling; + } + if (!g) throw Error(p(189)); + } + } + if (c.alternate !== d) throw Error(p(190)); + } + if (3 !== c.tag) throw Error(p(188)); + return c.stateNode.current === c ? a : b; +} +function Zb(a) { + a = Yb(a); + return null !== a ? $b(a) : null; +} +function $b(a) { + if (5 === a.tag || 6 === a.tag) return a; + for (a = a.child; null !== a;) { + var b = $b(a); + if (null !== b) return b; + a = a.sibling; + } + return null; +} +var ac = ca.unstable_scheduleCallback, + bc = ca.unstable_cancelCallback, + cc = ca.unstable_shouldYield, + dc = ca.unstable_requestPaint, + B = ca.unstable_now, + ec = ca.unstable_getCurrentPriorityLevel, + fc = ca.unstable_ImmediatePriority, + gc = ca.unstable_UserBlockingPriority, + hc = ca.unstable_NormalPriority, + ic = ca.unstable_LowPriority, + jc = ca.unstable_IdlePriority, + kc = null, + lc = null; +function mc(a) { + if (lc && "function" === typeof lc.onCommitFiberRoot) try { + lc.onCommitFiberRoot(kc, a, void 0, 128 === (a.current.flags & 128)); + } catch (b) {} +} +var oc = Math.clz32 ? Math.clz32 : nc, + pc = Math.log, + qc = Math.LN2; +function nc(a) { + a >>>= 0; + return 0 === a ? 32 : 31 - (pc(a) / qc | 0) | 0; +} +var rc = 64, + sc = 4194304; +function tc(a) { + switch (a & -a) { + case 1: + return 1; + case 2: + return 2; + case 4: + return 4; + case 8: + return 8; + case 16: + return 16; + case 32: + return 32; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return a & 4194240; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return a & 130023424; + case 134217728: + return 134217728; + case 268435456: + return 268435456; + case 536870912: + return 536870912; + case 1073741824: + return 1073741824; + default: + return a; + } +} +function uc(a, b) { + var c = a.pendingLanes; + if (0 === c) return 0; + var d = 0, + e = a.suspendedLanes, + f = a.pingedLanes, + g = c & 268435455; + if (0 !== g) { + var h = g & ~e; + 0 !== h ? d = tc(h) : (f &= g, 0 !== f && (d = tc(f))); + } else g = c & ~e, 0 !== g ? d = tc(g) : 0 !== f && (d = tc(f)); + if (0 === d) return 0; + if (0 !== b && b !== d && 0 === (b & e) && (e = d & -d, f = b & -b, e >= f || 16 === e && 0 !== (f & 4194240))) return b; + 0 !== (d & 4) && (d |= c & 16); + b = a.entangledLanes; + if (0 !== b) for (a = a.entanglements, b &= d; 0 < b;) c = 31 - oc(b), e = 1 << c, d |= a[c], b &= ~e; + return d; +} +function vc(a, b) { + switch (a) { + case 1: + case 2: + case 4: + return b + 250; + case 8: + case 16: + case 32: + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return b + 5E3; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return -1; + case 134217728: + case 268435456: + case 536870912: + case 1073741824: + return -1; + default: + return -1; + } +} +function wc(a, b) { + for (var c = a.suspendedLanes, d = a.pingedLanes, e = a.expirationTimes, f = a.pendingLanes; 0 < f;) { + var g = 31 - oc(f), + h = 1 << g, + k = e[g]; + if (-1 === k) { + if (0 === (h & c) || 0 !== (h & d)) e[g] = vc(h, b); + } else k <= b && (a.expiredLanes |= h); + f &= ~h; + } +} +function xc(a) { + a = a.pendingLanes & -1073741825; + return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0; +} +function yc() { + var a = rc; + rc <<= 1; + 0 === (rc & 4194240) && (rc = 64); + return a; +} +function zc(a) { + for (var b = [], c = 0; 31 > c; c++) b.push(a); + return b; +} +function Ac(a, b, c) { + a.pendingLanes |= b; + 536870912 !== b && (a.suspendedLanes = 0, a.pingedLanes = 0); + a = a.eventTimes; + b = 31 - oc(b); + a[b] = c; +} +function Bc(a, b) { + var c = a.pendingLanes & ~b; + a.pendingLanes = b; + a.suspendedLanes = 0; + a.pingedLanes = 0; + a.expiredLanes &= b; + a.mutableReadLanes &= b; + a.entangledLanes &= b; + b = a.entanglements; + var d = a.eventTimes; + for (a = a.expirationTimes; 0 < c;) { + var e = 31 - oc(c), + f = 1 << e; + b[e] = 0; + d[e] = -1; + a[e] = -1; + c &= ~f; + } +} +function Cc(a, b) { + var c = a.entangledLanes |= b; + for (a = a.entanglements; c;) { + var d = 31 - oc(c), + e = 1 << d; + e & b | a[d] & b && (a[d] |= b); + c &= ~e; + } +} +var C = 0; +function Dc(a) { + a &= -a; + return 1 < a ? 4 < a ? 0 !== (a & 268435455) ? 16 : 536870912 : 4 : 1; +} +var Ec, + Fc, + Gc, + Hc, + Ic, + Jc = !1, + Kc = [], + Lc = null, + Mc = null, + Nc = null, + Oc = new Map(), + Pc = new Map(), + Qc = [], + Rc = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); +function Sc(a, b) { + switch (a) { + case "focusin": + case "focusout": + Lc = null; + break; + case "dragenter": + case "dragleave": + Mc = null; + break; + case "mouseover": + case "mouseout": + Nc = null; + break; + case "pointerover": + case "pointerout": + Oc.delete(b.pointerId); + break; + case "gotpointercapture": + case "lostpointercapture": + Pc.delete(b.pointerId); + } +} +function Tc(a, b, c, d, e, f) { + if (null === a || a.nativeEvent !== f) return a = { + blockedOn: b, + domEventName: c, + eventSystemFlags: d, + nativeEvent: f, + targetContainers: [e] + }, null !== b && (b = Cb(b), null !== b && Fc(b)), a; + a.eventSystemFlags |= d; + b = a.targetContainers; + null !== e && -1 === b.indexOf(e) && b.push(e); + return a; +} +function Uc(a, b, c, d, e) { + switch (b) { + case "focusin": + return Lc = Tc(Lc, a, b, c, d, e), !0; + case "dragenter": + return Mc = Tc(Mc, a, b, c, d, e), !0; + case "mouseover": + return Nc = Tc(Nc, a, b, c, d, e), !0; + case "pointerover": + var f = e.pointerId; + Oc.set(f, Tc(Oc.get(f) || null, a, b, c, d, e)); + return !0; + case "gotpointercapture": + return f = e.pointerId, Pc.set(f, Tc(Pc.get(f) || null, a, b, c, d, e)), !0; + } + return !1; +} +function Vc(a) { + var b = Wc(a.target); + if (null !== b) { + var c = Vb(b); + if (null !== c) if (b = c.tag, 13 === b) { + if (b = Wb(c), null !== b) { + a.blockedOn = b; + Ic(a.priority, function () { + Gc(c); + }); + return; + } + } else if (3 === b && c.stateNode.current.memoizedState.isDehydrated) { + a.blockedOn = 3 === c.tag ? c.stateNode.containerInfo : null; + return; + } + } + a.blockedOn = null; +} +function Xc(a) { + if (null !== a.blockedOn) return !1; + for (var b = a.targetContainers; 0 < b.length;) { + var c = Yc(a.domEventName, a.eventSystemFlags, b[0], a.nativeEvent); + if (null === c) { + c = a.nativeEvent; + var d = new c.constructor(c.type, c); + wb = d; + c.target.dispatchEvent(d); + wb = null; + } else return b = Cb(c), null !== b && Fc(b), a.blockedOn = c, !1; + b.shift(); + } + return !0; +} +function Zc(a, b, c) { + Xc(a) && c.delete(b); +} +function $c() { + Jc = !1; + null !== Lc && Xc(Lc) && (Lc = null); + null !== Mc && Xc(Mc) && (Mc = null); + null !== Nc && Xc(Nc) && (Nc = null); + Oc.forEach(Zc); + Pc.forEach(Zc); +} +function ad(a, b) { + a.blockedOn === b && (a.blockedOn = null, Jc || (Jc = !0, ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c))); +} +function bd(a) { + function b(b) { + return ad(b, a); + } + if (0 < Kc.length) { + ad(Kc[0], a); + for (var c = 1; c < Kc.length; c++) { + var d = Kc[c]; + d.blockedOn === a && (d.blockedOn = null); + } + } + null !== Lc && ad(Lc, a); + null !== Mc && ad(Mc, a); + null !== Nc && ad(Nc, a); + Oc.forEach(b); + Pc.forEach(b); + for (c = 0; c < Qc.length; c++) d = Qc[c], d.blockedOn === a && (d.blockedOn = null); + for (; 0 < Qc.length && (c = Qc[0], null === c.blockedOn);) Vc(c), null === c.blockedOn && Qc.shift(); +} +var cd = ua.ReactCurrentBatchConfig, + dd = !0; +function ed(a, b, c, d) { + var e = C, + f = cd.transition; + cd.transition = null; + try { + C = 1, fd(a, b, c, d); + } finally { + C = e, cd.transition = f; + } +} +function gd(a, b, c, d) { + var e = C, + f = cd.transition; + cd.transition = null; + try { + C = 4, fd(a, b, c, d); + } finally { + C = e, cd.transition = f; + } +} +function fd(a, b, c, d) { + if (dd) { + var e = Yc(a, b, c, d); + if (null === e) hd(a, b, d, id, c), Sc(a, d);else if (Uc(e, a, b, c, d)) d.stopPropagation();else if (Sc(a, d), b & 4 && -1 < Rc.indexOf(a)) { + for (; null !== e;) { + var f = Cb(e); + null !== f && Ec(f); + f = Yc(a, b, c, d); + null === f && hd(a, b, d, id, c); + if (f === e) break; + e = f; + } + null !== e && d.stopPropagation(); + } else hd(a, b, d, null, c); + } +} +var id = null; +function Yc(a, b, c, d) { + id = null; + a = xb(d); + a = Wc(a); + if (null !== a) if (b = Vb(a), null === b) a = null;else if (c = b.tag, 13 === c) { + a = Wb(b); + if (null !== a) return a; + a = null; + } else if (3 === c) { + if (b.stateNode.current.memoizedState.isDehydrated) return 3 === b.tag ? b.stateNode.containerInfo : null; + a = null; + } else b !== a && (a = null); + id = a; + return null; +} +function jd(a) { + switch (a) { + case "cancel": + case "click": + case "close": + case "contextmenu": + case "copy": + case "cut": + case "auxclick": + case "dblclick": + case "dragend": + case "dragstart": + case "drop": + case "focusin": + case "focusout": + case "input": + case "invalid": + case "keydown": + case "keypress": + case "keyup": + case "mousedown": + case "mouseup": + case "paste": + case "pause": + case "play": + case "pointercancel": + case "pointerdown": + case "pointerup": + case "ratechange": + case "reset": + case "resize": + case "seeked": + case "submit": + case "touchcancel": + case "touchend": + case "touchstart": + case "volumechange": + case "change": + case "selectionchange": + case "textInput": + case "compositionstart": + case "compositionend": + case "compositionupdate": + case "beforeblur": + case "afterblur": + case "beforeinput": + case "blur": + case "fullscreenchange": + case "focus": + case "hashchange": + case "popstate": + case "select": + case "selectstart": + return 1; + case "drag": + case "dragenter": + case "dragexit": + case "dragleave": + case "dragover": + case "mousemove": + case "mouseout": + case "mouseover": + case "pointermove": + case "pointerout": + case "pointerover": + case "scroll": + case "toggle": + case "touchmove": + case "wheel": + case "mouseenter": + case "mouseleave": + case "pointerenter": + case "pointerleave": + return 4; + case "message": + switch (ec()) { + case fc: + return 1; + case gc: + return 4; + case hc: + case ic: + return 16; + case jc: + return 536870912; + default: + return 16; + } + default: + return 16; + } +} +var kd = null, + ld = null, + md = null; +function nd() { + if (md) return md; + var a, + b = ld, + c = b.length, + d, + e = "value" in kd ? kd.value : kd.textContent, + f = e.length; + for (a = 0; a < c && b[a] === e[a]; a++); + var g = c - a; + for (d = 1; d <= g && b[c - d] === e[f - d]; d++); + return md = e.slice(a, 1 < d ? 1 - d : void 0); +} +function od(a) { + var b = a.keyCode; + "charCode" in a ? (a = a.charCode, 0 === a && 13 === b && (a = 13)) : a = b; + 10 === a && (a = 13); + return 32 <= a || 13 === a ? a : 0; +} +function pd() { + return !0; +} +function qd() { + return !1; +} +function rd(a) { + function b(b, d, e, f, g) { + this._reactName = b; + this._targetInst = e; + this.type = d; + this.nativeEvent = f; + this.target = g; + this.currentTarget = null; + for (var c in a) a.hasOwnProperty(c) && (b = a[c], this[c] = b ? b(f) : f[c]); + this.isDefaultPrevented = (null != f.defaultPrevented ? f.defaultPrevented : !1 === f.returnValue) ? pd : qd; + this.isPropagationStopped = qd; + return this; + } + A(b.prototype, { + preventDefault: function preventDefault() { + this.defaultPrevented = !0; + var a = this.nativeEvent; + a && (a.preventDefault ? a.preventDefault() : "unknown" !== typeof a.returnValue && (a.returnValue = !1), this.isDefaultPrevented = pd); + }, + stopPropagation: function stopPropagation() { + var a = this.nativeEvent; + a && (a.stopPropagation ? a.stopPropagation() : "unknown" !== typeof a.cancelBubble && (a.cancelBubble = !0), this.isPropagationStopped = pd); + }, + persist: function persist() {}, + isPersistent: pd + }); + return b; +} +var sd = { + eventPhase: 0, + bubbles: 0, + cancelable: 0, + timeStamp: function timeStamp(a) { + return a.timeStamp || Date.now(); + }, + defaultPrevented: 0, + isTrusted: 0 + }, + td = rd(sd), + ud = A({}, sd, { + view: 0, + detail: 0 + }), + vd = rd(ud), + wd, + xd, + yd, + Ad = A({}, ud, { + screenX: 0, + screenY: 0, + clientX: 0, + clientY: 0, + pageX: 0, + pageY: 0, + ctrlKey: 0, + shiftKey: 0, + altKey: 0, + metaKey: 0, + getModifierState: zd, + button: 0, + buttons: 0, + relatedTarget: function relatedTarget(a) { + return void 0 === a.relatedTarget ? a.fromElement === a.srcElement ? a.toElement : a.fromElement : a.relatedTarget; + }, + movementX: function movementX(a) { + if ("movementX" in a) return a.movementX; + a !== yd && (yd && "mousemove" === a.type ? (wd = a.screenX - yd.screenX, xd = a.screenY - yd.screenY) : xd = wd = 0, yd = a); + return wd; + }, + movementY: function movementY(a) { + return "movementY" in a ? a.movementY : xd; + } + }), + Bd = rd(Ad), + Cd = A({}, Ad, { + dataTransfer: 0 + }), + Dd = rd(Cd), + Ed = A({}, ud, { + relatedTarget: 0 + }), + Fd = rd(Ed), + Gd = A({}, sd, { + animationName: 0, + elapsedTime: 0, + pseudoElement: 0 + }), + Hd = rd(Gd), + Id = A({}, sd, { + clipboardData: function clipboardData(a) { + return "clipboardData" in a ? a.clipboardData : window.clipboardData; + } + }), + Jd = rd(Id), + Kd = A({}, sd, { + data: 0 + }), + Ld = rd(Kd), + Md = { + Esc: "Escape", + Spacebar: " ", + Left: "ArrowLeft", + Up: "ArrowUp", + Right: "ArrowRight", + Down: "ArrowDown", + Del: "Delete", + Win: "OS", + Menu: "ContextMenu", + Apps: "ContextMenu", + Scroll: "ScrollLock", + MozPrintableKey: "Unidentified" + }, + Nd = { + 8: "Backspace", + 9: "Tab", + 12: "Clear", + 13: "Enter", + 16: "Shift", + 17: "Control", + 18: "Alt", + 19: "Pause", + 20: "CapsLock", + 27: "Escape", + 32: " ", + 33: "PageUp", + 34: "PageDown", + 35: "End", + 36: "Home", + 37: "ArrowLeft", + 38: "ArrowUp", + 39: "ArrowRight", + 40: "ArrowDown", + 45: "Insert", + 46: "Delete", + 112: "F1", + 113: "F2", + 114: "F3", + 115: "F4", + 116: "F5", + 117: "F6", + 118: "F7", + 119: "F8", + 120: "F9", + 121: "F10", + 122: "F11", + 123: "F12", + 144: "NumLock", + 145: "ScrollLock", + 224: "Meta" + }, + Od = { + Alt: "altKey", + Control: "ctrlKey", + Meta: "metaKey", + Shift: "shiftKey" + }; +function Pd(a) { + var b = this.nativeEvent; + return b.getModifierState ? b.getModifierState(a) : (a = Od[a]) ? !!b[a] : !1; +} +function zd() { + return Pd; +} +var Qd = A({}, ud, { + key: function key(a) { + if (a.key) { + var b = Md[a.key] || a.key; + if ("Unidentified" !== b) return b; + } + return "keypress" === a.type ? (a = od(a), 13 === a ? "Enter" : String.fromCharCode(a)) : "keydown" === a.type || "keyup" === a.type ? Nd[a.keyCode] || "Unidentified" : ""; + }, + code: 0, + location: 0, + ctrlKey: 0, + shiftKey: 0, + altKey: 0, + metaKey: 0, + repeat: 0, + locale: 0, + getModifierState: zd, + charCode: function charCode(a) { + return "keypress" === a.type ? od(a) : 0; + }, + keyCode: function keyCode(a) { + return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; + }, + which: function which(a) { + return "keypress" === a.type ? od(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; + } + }), + Rd = rd(Qd), + Sd = A({}, Ad, { + pointerId: 0, + width: 0, + height: 0, + pressure: 0, + tangentialPressure: 0, + tiltX: 0, + tiltY: 0, + twist: 0, + pointerType: 0, + isPrimary: 0 + }), + Td = rd(Sd), + Ud = A({}, ud, { + touches: 0, + targetTouches: 0, + changedTouches: 0, + altKey: 0, + metaKey: 0, + ctrlKey: 0, + shiftKey: 0, + getModifierState: zd + }), + Vd = rd(Ud), + Wd = A({}, sd, { + propertyName: 0, + elapsedTime: 0, + pseudoElement: 0 + }), + Xd = rd(Wd), + Yd = A({}, Ad, { + deltaX: function deltaX(a) { + return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0; + }, + deltaY: function deltaY(a) { + return "deltaY" in a ? a.deltaY : "wheelDeltaY" in a ? -a.wheelDeltaY : "wheelDelta" in a ? -a.wheelDelta : 0; + }, + deltaZ: 0, + deltaMode: 0 + }), + Zd = rd(Yd), + $d = [9, 13, 27, 32], + ae = ia && "CompositionEvent" in window, + be = null; +ia && "documentMode" in document && (be = document.documentMode); +var ce = ia && "TextEvent" in window && !be, + de = ia && (!ae || be && 8 < be && 11 >= be), + ee = String.fromCharCode(32), + fe = !1; +function ge(a, b) { + switch (a) { + case "keyup": + return -1 !== $d.indexOf(b.keyCode); + case "keydown": + return 229 !== b.keyCode; + case "keypress": + case "mousedown": + case "focusout": + return !0; + default: + return !1; + } +} +function he(a) { + a = a.detail; + return "object" === typeof a && "data" in a ? a.data : null; +} +var ie = !1; +function je(a, b) { + switch (a) { + case "compositionend": + return he(b); + case "keypress": + if (32 !== b.which) return null; + fe = !0; + return ee; + case "textInput": + return a = b.data, a === ee && fe ? null : a; + default: + return null; + } +} +function ke(a, b) { + if (ie) return "compositionend" === a || !ae && ge(a, b) ? (a = nd(), md = ld = kd = null, ie = !1, a) : null; + switch (a) { + case "paste": + return null; + case "keypress": + if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) { + if (b.char && 1 < b.char.length) return b.char; + if (b.which) return String.fromCharCode(b.which); + } + return null; + case "compositionend": + return de && "ko" !== b.locale ? null : b.data; + default: + return null; + } +} +var le = { + color: !0, + date: !0, + datetime: !0, + "datetime-local": !0, + email: !0, + month: !0, + number: !0, + password: !0, + range: !0, + search: !0, + tel: !0, + text: !0, + time: !0, + url: !0, + week: !0 +}; +function me(a) { + var b = a && a.nodeName && a.nodeName.toLowerCase(); + return "input" === b ? !!le[a.type] : "textarea" === b ? !0 : !1; +} +function ne(a, b, c, d) { + Eb(d); + b = oe(b, "onChange"); + 0 < b.length && (c = new td("onChange", "change", null, c, d), a.push({ + event: c, + listeners: b + })); +} +var pe = null, + qe = null; +function re(a) { + se(a, 0); +} +function te(a) { + var b = ue(a); + if (Wa(b)) return a; +} +function ve(a, b) { + if ("change" === a) return b; +} +var we = !1; +if (ia) { + var xe; + if (ia) { + var ye = ("oninput" in document); + if (!ye) { + var ze = document.createElement("div"); + ze.setAttribute("oninput", "return;"); + ye = "function" === typeof ze.oninput; + } + xe = ye; + } else xe = !1; + we = xe && (!document.documentMode || 9 < document.documentMode); +} +function Ae() { + pe && (pe.detachEvent("onpropertychange", Be), qe = pe = null); +} +function Be(a) { + if ("value" === a.propertyName && te(qe)) { + var b = []; + ne(b, qe, a, xb(a)); + Jb(re, b); + } +} +function Ce(a, b, c) { + "focusin" === a ? (Ae(), pe = b, qe = c, pe.attachEvent("onpropertychange", Be)) : "focusout" === a && Ae(); +} +function De(a) { + if ("selectionchange" === a || "keyup" === a || "keydown" === a) return te(qe); +} +function Ee(a, b) { + if ("click" === a) return te(b); +} +function Fe(a, b) { + if ("input" === a || "change" === a) return te(b); +} +function Ge(a, b) { + return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b; +} +var He = "function" === typeof Object.is ? Object.is : Ge; +function Ie(a, b) { + if (He(a, b)) return !0; + if ("object" !== typeof a || null === a || "object" !== typeof b || null === b) return !1; + var c = Object.keys(a), + d = Object.keys(b); + if (c.length !== d.length) return !1; + for (d = 0; d < c.length; d++) { + var e = c[d]; + if (!ja.call(b, e) || !He(a[e], b[e])) return !1; + } + return !0; +} +function Je(a) { + for (; a && a.firstChild;) a = a.firstChild; + return a; +} +function Ke(a, b) { + var c = Je(a); + a = 0; + for (var d; c;) { + if (3 === c.nodeType) { + d = a + c.textContent.length; + if (a <= b && d >= b) return { + node: c, + offset: b - a + }; + a = d; + } + a: { + for (; c;) { + if (c.nextSibling) { + c = c.nextSibling; + break a; + } + c = c.parentNode; + } + c = void 0; + } + c = Je(c); + } +} +function Le(a, b) { + return a && b ? a === b ? !0 : a && 3 === a.nodeType ? !1 : b && 3 === b.nodeType ? Le(a, b.parentNode) : "contains" in a ? a.contains(b) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b) & 16) : !1 : !1; +} +function Me() { + for (var a = window, b = Xa(); b instanceof a.HTMLIFrameElement;) { + try { + var c = "string" === typeof b.contentWindow.location.href; + } catch (d) { + c = !1; + } + if (c) a = b.contentWindow;else break; + b = Xa(a.document); + } + return b; +} +function Ne(a) { + var b = a && a.nodeName && a.nodeName.toLowerCase(); + return b && ("input" === b && ("text" === a.type || "search" === a.type || "tel" === a.type || "url" === a.type || "password" === a.type) || "textarea" === b || "true" === a.contentEditable); +} +function Oe(a) { + var b = Me(), + c = a.focusedElem, + d = a.selectionRange; + if (b !== c && c && c.ownerDocument && Le(c.ownerDocument.documentElement, c)) { + if (null !== d && Ne(c)) if (b = d.start, a = d.end, void 0 === a && (a = b), "selectionStart" in c) c.selectionStart = b, c.selectionEnd = Math.min(a, c.value.length);else if (a = (b = c.ownerDocument || document) && b.defaultView || window, a.getSelection) { + a = a.getSelection(); + var e = c.textContent.length, + f = Math.min(d.start, e); + d = void 0 === d.end ? f : Math.min(d.end, e); + !a.extend && f > d && (e = d, d = f, f = e); + e = Ke(c, f); + var g = Ke(c, d); + e && g && (1 !== a.rangeCount || a.anchorNode !== e.node || a.anchorOffset !== e.offset || a.focusNode !== g.node || a.focusOffset !== g.offset) && (b = b.createRange(), b.setStart(e.node, e.offset), a.removeAllRanges(), f > d ? (a.addRange(b), a.extend(g.node, g.offset)) : (b.setEnd(g.node, g.offset), a.addRange(b))); + } + b = []; + for (a = c; a = a.parentNode;) 1 === a.nodeType && b.push({ + element: a, + left: a.scrollLeft, + top: a.scrollTop + }); + "function" === typeof c.focus && c.focus(); + for (c = 0; c < b.length; c++) a = b[c], a.element.scrollLeft = a.left, a.element.scrollTop = a.top; + } +} +var Pe = ia && "documentMode" in document && 11 >= document.documentMode, + Qe = null, + Re = null, + Se = null, + Te = !1; +function Ue(a, b, c) { + var d = c.window === c ? c.document : 9 === c.nodeType ? c : c.ownerDocument; + Te || null == Qe || Qe !== Xa(d) || (d = Qe, "selectionStart" in d && Ne(d) ? d = { + start: d.selectionStart, + end: d.selectionEnd + } : (d = (d.ownerDocument && d.ownerDocument.defaultView || window).getSelection(), d = { + anchorNode: d.anchorNode, + anchorOffset: d.anchorOffset, + focusNode: d.focusNode, + focusOffset: d.focusOffset + }), Se && Ie(Se, d) || (Se = d, d = oe(Re, "onSelect"), 0 < d.length && (b = new td("onSelect", "select", null, b, c), a.push({ + event: b, + listeners: d + }), b.target = Qe))); +} +function Ve(a, b) { + var c = {}; + c[a.toLowerCase()] = b.toLowerCase(); + c["Webkit" + a] = "webkit" + b; + c["Moz" + a] = "moz" + b; + return c; +} +var We = { + animationend: Ve("Animation", "AnimationEnd"), + animationiteration: Ve("Animation", "AnimationIteration"), + animationstart: Ve("Animation", "AnimationStart"), + transitionend: Ve("Transition", "TransitionEnd") + }, + Xe = {}, + Ye = {}; +ia && (Ye = document.createElement("div").style, "AnimationEvent" in window || (delete We.animationend.animation, delete We.animationiteration.animation, delete We.animationstart.animation), "TransitionEvent" in window || delete We.transitionend.transition); +function Ze(a) { + if (Xe[a]) return Xe[a]; + if (!We[a]) return a; + var b = We[a], + c; + for (c in b) if (b.hasOwnProperty(c) && c in Ye) return Xe[a] = b[c]; + return a; +} +var $e = Ze("animationend"), + af = Ze("animationiteration"), + bf = Ze("animationstart"), + cf = Ze("transitionend"), + df = new Map(), + ef = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); +function ff(a, b) { + df.set(a, b); + fa(b, [a]); +} +for (var gf = 0; gf < ef.length; gf++) { + var hf = ef[gf], + jf = hf.toLowerCase(), + kf = hf[0].toUpperCase() + hf.slice(1); + ff(jf, "on" + kf); +} +ff($e, "onAnimationEnd"); +ff(af, "onAnimationIteration"); +ff(bf, "onAnimationStart"); +ff("dblclick", "onDoubleClick"); +ff("focusin", "onFocus"); +ff("focusout", "onBlur"); +ff(cf, "onTransitionEnd"); +ha("onMouseEnter", ["mouseout", "mouseover"]); +ha("onMouseLeave", ["mouseout", "mouseover"]); +ha("onPointerEnter", ["pointerout", "pointerover"]); +ha("onPointerLeave", ["pointerout", "pointerover"]); +fa("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")); +fa("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")); +fa("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]); +fa("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); +fa("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); +fa("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); +var lf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), + mf = new Set("cancel close invalid load scroll toggle".split(" ").concat(lf)); +function nf(a, b, c) { + var d = a.type || "unknown-event"; + a.currentTarget = c; + Ub(d, b, void 0, a); + a.currentTarget = null; +} +function se(a, b) { + b = 0 !== (b & 4); + for (var c = 0; c < a.length; c++) { + var d = a[c], + e = d.event; + d = d.listeners; + a: { + var f = void 0; + if (b) for (var g = d.length - 1; 0 <= g; g--) { + var h = d[g], + k = h.instance, + l = h.currentTarget; + h = h.listener; + if (k !== f && e.isPropagationStopped()) break a; + nf(e, h, l); + f = k; + } else for (g = 0; g < d.length; g++) { + h = d[g]; + k = h.instance; + l = h.currentTarget; + h = h.listener; + if (k !== f && e.isPropagationStopped()) break a; + nf(e, h, l); + f = k; + } + } + } + if (Qb) throw a = Rb, Qb = !1, Rb = null, a; +} +function D(a, b) { + var c = b[of]; + void 0 === c && (c = b[of] = new Set()); + var d = a + "__bubble"; + c.has(d) || (pf(b, a, 2, !1), c.add(d)); +} +function qf(a, b, c) { + var d = 0; + b && (d |= 4); + pf(c, a, d, b); +} +var rf = "_reactListening" + Math.random().toString(36).slice(2); +function sf(a) { + if (!a[rf]) { + a[rf] = !0; + da.forEach(function (b) { + "selectionchange" !== b && (mf.has(b) || qf(b, !1, a), qf(b, !0, a)); + }); + var b = 9 === a.nodeType ? a : a.ownerDocument; + null === b || b[rf] || (b[rf] = !0, qf("selectionchange", !1, b)); + } +} +function pf(a, b, c, d) { + switch (jd(b)) { + case 1: + var e = ed; + break; + case 4: + e = gd; + break; + default: + e = fd; + } + c = e.bind(null, b, c, a); + e = void 0; + !Lb || "touchstart" !== b && "touchmove" !== b && "wheel" !== b || (e = !0); + d ? void 0 !== e ? a.addEventListener(b, c, { + capture: !0, + passive: e + }) : a.addEventListener(b, c, !0) : void 0 !== e ? a.addEventListener(b, c, { + passive: e + }) : a.addEventListener(b, c, !1); +} +function hd(a, b, c, d, e) { + var f = d; + if (0 === (b & 1) && 0 === (b & 2) && null !== d) a: for (;;) { + if (null === d) return; + var g = d.tag; + if (3 === g || 4 === g) { + var h = d.stateNode.containerInfo; + if (h === e || 8 === h.nodeType && h.parentNode === e) break; + if (4 === g) for (g = d.return; null !== g;) { + var k = g.tag; + if (3 === k || 4 === k) if (k = g.stateNode.containerInfo, k === e || 8 === k.nodeType && k.parentNode === e) return; + g = g.return; + } + for (; null !== h;) { + g = Wc(h); + if (null === g) return; + k = g.tag; + if (5 === k || 6 === k) { + d = f = g; + continue a; + } + h = h.parentNode; + } + } + d = d.return; + } + Jb(function () { + var d = f, + e = xb(c), + g = []; + a: { + var h = df.get(a); + if (void 0 !== h) { + var k = td, + n = a; + switch (a) { + case "keypress": + if (0 === od(c)) break a; + case "keydown": + case "keyup": + k = Rd; + break; + case "focusin": + n = "focus"; + k = Fd; + break; + case "focusout": + n = "blur"; + k = Fd; + break; + case "beforeblur": + case "afterblur": + k = Fd; + break; + case "click": + if (2 === c.button) break a; + case "auxclick": + case "dblclick": + case "mousedown": + case "mousemove": + case "mouseup": + case "mouseout": + case "mouseover": + case "contextmenu": + k = Bd; + break; + case "drag": + case "dragend": + case "dragenter": + case "dragexit": + case "dragleave": + case "dragover": + case "dragstart": + case "drop": + k = Dd; + break; + case "touchcancel": + case "touchend": + case "touchmove": + case "touchstart": + k = Vd; + break; + case $e: + case af: + case bf: + k = Hd; + break; + case cf: + k = Xd; + break; + case "scroll": + k = vd; + break; + case "wheel": + k = Zd; + break; + case "copy": + case "cut": + case "paste": + k = Jd; + break; + case "gotpointercapture": + case "lostpointercapture": + case "pointercancel": + case "pointerdown": + case "pointermove": + case "pointerout": + case "pointerover": + case "pointerup": + k = Td; + } + var t = 0 !== (b & 4), + J = !t && "scroll" === a, + x = t ? null !== h ? h + "Capture" : null : h; + t = []; + for (var w = d, u; null !== w;) { + u = w; + var F = u.stateNode; + 5 === u.tag && null !== F && (u = F, null !== x && (F = Kb(w, x), null != F && t.push(tf(w, F, u)))); + if (J) break; + w = w.return; + } + 0 < t.length && (h = new k(h, n, null, c, e), g.push({ + event: h, + listeners: t + })); + } + } + if (0 === (b & 7)) { + a: { + h = "mouseover" === a || "pointerover" === a; + k = "mouseout" === a || "pointerout" === a; + if (h && c !== wb && (n = c.relatedTarget || c.fromElement) && (Wc(n) || n[uf])) break a; + if (k || h) { + h = e.window === e ? e : (h = e.ownerDocument) ? h.defaultView || h.parentWindow : window; + if (k) { + if (n = c.relatedTarget || c.toElement, k = d, n = n ? Wc(n) : null, null !== n && (J = Vb(n), n !== J || 5 !== n.tag && 6 !== n.tag)) n = null; + } else k = null, n = d; + if (k !== n) { + t = Bd; + F = "onMouseLeave"; + x = "onMouseEnter"; + w = "mouse"; + if ("pointerout" === a || "pointerover" === a) t = Td, F = "onPointerLeave", x = "onPointerEnter", w = "pointer"; + J = null == k ? h : ue(k); + u = null == n ? h : ue(n); + h = new t(F, w + "leave", k, c, e); + h.target = J; + h.relatedTarget = u; + F = null; + Wc(e) === d && (t = new t(x, w + "enter", n, c, e), t.target = u, t.relatedTarget = J, F = t); + J = F; + if (k && n) b: { + t = k; + x = n; + w = 0; + for (u = t; u; u = vf(u)) w++; + u = 0; + for (F = x; F; F = vf(F)) u++; + for (; 0 < w - u;) t = vf(t), w--; + for (; 0 < u - w;) x = vf(x), u--; + for (; w--;) { + if (t === x || null !== x && t === x.alternate) break b; + t = vf(t); + x = vf(x); + } + t = null; + } else t = null; + null !== k && wf(g, h, k, t, !1); + null !== n && null !== J && wf(g, J, n, t, !0); + } + } + } + a: { + h = d ? ue(d) : window; + k = h.nodeName && h.nodeName.toLowerCase(); + if ("select" === k || "input" === k && "file" === h.type) var na = ve;else if (me(h)) { + if (we) na = Fe;else { + na = De; + var xa = Ce; + } + } else (k = h.nodeName) && "input" === k.toLowerCase() && ("checkbox" === h.type || "radio" === h.type) && (na = Ee); + if (na && (na = na(a, d))) { + ne(g, na, c, e); + break a; + } + xa && xa(a, h, d); + "focusout" === a && (xa = h._wrapperState) && xa.controlled && "number" === h.type && cb(h, "number", h.value); + } + xa = d ? ue(d) : window; + switch (a) { + case "focusin": + if (me(xa) || "true" === xa.contentEditable) Qe = xa, Re = d, Se = null; + break; + case "focusout": + Se = Re = Qe = null; + break; + case "mousedown": + Te = !0; + break; + case "contextmenu": + case "mouseup": + case "dragend": + Te = !1; + Ue(g, c, e); + break; + case "selectionchange": + if (Pe) break; + case "keydown": + case "keyup": + Ue(g, c, e); + } + var $a; + if (ae) b: { + switch (a) { + case "compositionstart": + var ba = "onCompositionStart"; + break b; + case "compositionend": + ba = "onCompositionEnd"; + break b; + case "compositionupdate": + ba = "onCompositionUpdate"; + break b; + } + ba = void 0; + } else ie ? ge(a, c) && (ba = "onCompositionEnd") : "keydown" === a && 229 === c.keyCode && (ba = "onCompositionStart"); + ba && (de && "ko" !== c.locale && (ie || "onCompositionStart" !== ba ? "onCompositionEnd" === ba && ie && ($a = nd()) : (kd = e, ld = "value" in kd ? kd.value : kd.textContent, ie = !0)), xa = oe(d, ba), 0 < xa.length && (ba = new Ld(ba, a, null, c, e), g.push({ + event: ba, + listeners: xa + }), $a ? ba.data = $a : ($a = he(c), null !== $a && (ba.data = $a)))); + if ($a = ce ? je(a, c) : ke(a, c)) d = oe(d, "onBeforeInput"), 0 < d.length && (e = new Ld("onBeforeInput", "beforeinput", null, c, e), g.push({ + event: e, + listeners: d + }), e.data = $a); + } + se(g, b); + }); +} +function tf(a, b, c) { + return { + instance: a, + listener: b, + currentTarget: c + }; +} +function oe(a, b) { + for (var c = b + "Capture", d = []; null !== a;) { + var e = a, + f = e.stateNode; + 5 === e.tag && null !== f && (e = f, f = Kb(a, c), null != f && d.unshift(tf(a, f, e)), f = Kb(a, b), null != f && d.push(tf(a, f, e))); + a = a.return; + } + return d; +} +function vf(a) { + if (null === a) return null; + do a = a.return; while (a && 5 !== a.tag); + return a ? a : null; +} +function wf(a, b, c, d, e) { + for (var f = b._reactName, g = []; null !== c && c !== d;) { + var h = c, + k = h.alternate, + l = h.stateNode; + if (null !== k && k === d) break; + 5 === h.tag && null !== l && (h = l, e ? (k = Kb(c, f), null != k && g.unshift(tf(c, k, h))) : e || (k = Kb(c, f), null != k && g.push(tf(c, k, h)))); + c = c.return; + } + 0 !== g.length && a.push({ + event: b, + listeners: g + }); +} +var xf = /\r\n?/g, + yf = /\u0000|\uFFFD/g; +function zf(a) { + return ("string" === typeof a ? a : "" + a).replace(xf, "\n").replace(yf, ""); +} +function Af(a, b, c) { + b = zf(b); + if (zf(a) !== b && c) throw Error(p(425)); +} +function Bf() {} +var Cf = null, + Df = null; +function Ef(a, b) { + return "textarea" === a || "noscript" === a || "string" === typeof b.children || "number" === typeof b.children || "object" === typeof b.dangerouslySetInnerHTML && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html; +} +var Ff = "function" === typeof setTimeout ? setTimeout : void 0, + Gf = "function" === typeof clearTimeout ? clearTimeout : void 0, + Hf = "function" === typeof Promise ? Promise : void 0, + Jf = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof Hf ? function (a) { + return Hf.resolve(null).then(a).catch(If); + } : Ff; +function If(a) { + setTimeout(function () { + throw a; + }); +} +function Kf(a, b) { + var c = b, + d = 0; + do { + var e = c.nextSibling; + a.removeChild(c); + if (e && 8 === e.nodeType) if (c = e.data, "/$" === c) { + if (0 === d) { + a.removeChild(e); + bd(b); + return; + } + d--; + } else "$" !== c && "$?" !== c && "$!" !== c || d++; + c = e; + } while (c); + bd(b); +} +function Lf(a) { + for (; null != a; a = a.nextSibling) { + var b = a.nodeType; + if (1 === b || 3 === b) break; + if (8 === b) { + b = a.data; + if ("$" === b || "$!" === b || "$?" === b) break; + if ("/$" === b) return null; + } + } + return a; +} +function Mf(a) { + a = a.previousSibling; + for (var b = 0; a;) { + if (8 === a.nodeType) { + var c = a.data; + if ("$" === c || "$!" === c || "$?" === c) { + if (0 === b) return a; + b--; + } else "/$" === c && b++; + } + a = a.previousSibling; + } + return null; +} +var Nf = Math.random().toString(36).slice(2), + Of = "__reactFiber$" + Nf, + Pf = "__reactProps$" + Nf, + uf = "__reactContainer$" + Nf, + of = "__reactEvents$" + Nf, + Qf = "__reactListeners$" + Nf, + Rf = "__reactHandles$" + Nf; +function Wc(a) { + var b = a[Of]; + if (b) return b; + for (var c = a.parentNode; c;) { + if (b = c[uf] || c[Of]) { + c = b.alternate; + if (null !== b.child || null !== c && null !== c.child) for (a = Mf(a); null !== a;) { + if (c = a[Of]) return c; + a = Mf(a); + } + return b; + } + a = c; + c = a.parentNode; + } + return null; +} +function Cb(a) { + a = a[Of] || a[uf]; + return !a || 5 !== a.tag && 6 !== a.tag && 13 !== a.tag && 3 !== a.tag ? null : a; +} +function ue(a) { + if (5 === a.tag || 6 === a.tag) return a.stateNode; + throw Error(p(33)); +} +function Db(a) { + return a[Pf] || null; +} +var Sf = [], + Tf = -1; +function Uf(a) { + return { + current: a + }; +} +function E(a) { + 0 > Tf || (a.current = Sf[Tf], Sf[Tf] = null, Tf--); +} +function G(a, b) { + Tf++; + Sf[Tf] = a.current; + a.current = b; +} +var Vf = {}, + H = Uf(Vf), + Wf = Uf(!1), + Xf = Vf; +function Yf(a, b) { + var c = a.type.contextTypes; + if (!c) return Vf; + var d = a.stateNode; + if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext; + var e = {}, + f; + for (f in c) e[f] = b[f]; + d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b, a.__reactInternalMemoizedMaskedChildContext = e); + return e; +} +function Zf(a) { + a = a.childContextTypes; + return null !== a && void 0 !== a; +} +function $f() { + E(Wf); + E(H); +} +function ag(a, b, c) { + if (H.current !== Vf) throw Error(p(168)); + G(H, b); + G(Wf, c); +} +function bg(a, b, c) { + var d = a.stateNode; + b = b.childContextTypes; + if ("function" !== typeof d.getChildContext) return c; + d = d.getChildContext(); + for (var e in d) if (!(e in b)) throw Error(p(108, Ra(a) || "Unknown", e)); + return A({}, c, d); +} +function cg(a) { + a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || Vf; + Xf = H.current; + G(H, a); + G(Wf, Wf.current); + return !0; +} +function dg(a, b, c) { + var d = a.stateNode; + if (!d) throw Error(p(169)); + c ? (a = bg(a, b, Xf), d.__reactInternalMemoizedMergedChildContext = a, E(Wf), E(H), G(H, a)) : E(Wf); + G(Wf, c); +} +var eg = null, + fg = !1, + gg = !1; +function hg(a) { + null === eg ? eg = [a] : eg.push(a); +} +function ig(a) { + fg = !0; + hg(a); +} +function jg() { + if (!gg && null !== eg) { + gg = !0; + var a = 0, + b = C; + try { + var c = eg; + for (C = 1; a < c.length; a++) { + var d = c[a]; + do d = d(!0); while (null !== d); + } + eg = null; + fg = !1; + } catch (e) { + throw null !== eg && (eg = eg.slice(a + 1)), ac(fc, jg), e; + } finally { + C = b, gg = !1; + } + } + return null; +} +var kg = [], + lg = 0, + mg = null, + ng = 0, + og = [], + pg = 0, + qg = null, + rg = 1, + sg = ""; +function tg(a, b) { + kg[lg++] = ng; + kg[lg++] = mg; + mg = a; + ng = b; +} +function ug(a, b, c) { + og[pg++] = rg; + og[pg++] = sg; + og[pg++] = qg; + qg = a; + var d = rg; + a = sg; + var e = 32 - oc(d) - 1; + d &= ~(1 << e); + c += 1; + var f = 32 - oc(b) + e; + if (30 < f) { + var g = e - e % 5; + f = (d & (1 << g) - 1).toString(32); + d >>= g; + e -= g; + rg = 1 << 32 - oc(b) + e | c << e | d; + sg = f + a; + } else rg = 1 << f | c << e | d, sg = a; +} +function vg(a) { + null !== a.return && (tg(a, 1), ug(a, 1, 0)); +} +function wg(a) { + for (; a === mg;) mg = kg[--lg], kg[lg] = null, ng = kg[--lg], kg[lg] = null; + for (; a === qg;) qg = og[--pg], og[pg] = null, sg = og[--pg], og[pg] = null, rg = og[--pg], og[pg] = null; +} +var xg = null, + yg = null, + I = !1, + zg = null; +function Ag(a, b) { + var c = Bg(5, null, null, 0); + c.elementType = "DELETED"; + c.stateNode = b; + c.return = a; + b = a.deletions; + null === b ? (a.deletions = [c], a.flags |= 16) : b.push(c); +} +function Cg(a, b) { + switch (a.tag) { + case 5: + var c = a.type; + b = 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b; + return null !== b ? (a.stateNode = b, xg = a, yg = Lf(b.firstChild), !0) : !1; + case 6: + return b = "" === a.pendingProps || 3 !== b.nodeType ? null : b, null !== b ? (a.stateNode = b, xg = a, yg = null, !0) : !1; + case 13: + return b = 8 !== b.nodeType ? null : b, null !== b ? (c = null !== qg ? { + id: rg, + overflow: sg + } : null, a.memoizedState = { + dehydrated: b, + treeContext: c, + retryLane: 1073741824 + }, c = Bg(18, null, null, 0), c.stateNode = b, c.return = a, a.child = c, xg = a, yg = null, !0) : !1; + default: + return !1; + } +} +function Dg(a) { + return 0 !== (a.mode & 1) && 0 === (a.flags & 128); +} +function Eg(a) { + if (I) { + var b = yg; + if (b) { + var c = b; + if (!Cg(a, b)) { + if (Dg(a)) throw Error(p(418)); + b = Lf(c.nextSibling); + var d = xg; + b && Cg(a, b) ? Ag(d, c) : (a.flags = a.flags & -4097 | 2, I = !1, xg = a); + } + } else { + if (Dg(a)) throw Error(p(418)); + a.flags = a.flags & -4097 | 2; + I = !1; + xg = a; + } + } +} +function Fg(a) { + for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag;) a = a.return; + xg = a; +} +function Gg(a) { + if (a !== xg) return !1; + if (!I) return Fg(a), I = !0, !1; + var b; + (b = 3 !== a.tag) && !(b = 5 !== a.tag) && (b = a.type, b = "head" !== b && "body" !== b && !Ef(a.type, a.memoizedProps)); + if (b && (b = yg)) { + if (Dg(a)) throw Hg(), Error(p(418)); + for (; b;) Ag(a, b), b = Lf(b.nextSibling); + } + Fg(a); + if (13 === a.tag) { + a = a.memoizedState; + a = null !== a ? a.dehydrated : null; + if (!a) throw Error(p(317)); + a: { + a = a.nextSibling; + for (b = 0; a;) { + if (8 === a.nodeType) { + var c = a.data; + if ("/$" === c) { + if (0 === b) { + yg = Lf(a.nextSibling); + break a; + } + b--; + } else "$" !== c && "$!" !== c && "$?" !== c || b++; + } + a = a.nextSibling; + } + yg = null; + } + } else yg = xg ? Lf(a.stateNode.nextSibling) : null; + return !0; +} +function Hg() { + for (var a = yg; a;) a = Lf(a.nextSibling); +} +function Ig() { + yg = xg = null; + I = !1; +} +function Jg(a) { + null === zg ? zg = [a] : zg.push(a); +} +var Kg = ua.ReactCurrentBatchConfig; +function Lg(a, b) { + if (a && a.defaultProps) { + b = A({}, b); + a = a.defaultProps; + for (var c in a) void 0 === b[c] && (b[c] = a[c]); + return b; + } + return b; +} +var Mg = Uf(null), + Ng = null, + Og = null, + Pg = null; +function Qg() { + Pg = Og = Ng = null; +} +function Rg(a) { + var b = Mg.current; + E(Mg); + a._currentValue = b; +} +function Sg(a, b, c) { + for (; null !== a;) { + var d = a.alternate; + (a.childLanes & b) !== b ? (a.childLanes |= b, null !== d && (d.childLanes |= b)) : null !== d && (d.childLanes & b) !== b && (d.childLanes |= b); + if (a === c) break; + a = a.return; + } +} +function Tg(a, b) { + Ng = a; + Pg = Og = null; + a = a.dependencies; + null !== a && null !== a.firstContext && (0 !== (a.lanes & b) && (Ug = !0), a.firstContext = null); +} +function Vg(a) { + var b = a._currentValue; + if (Pg !== a) if (a = { + context: a, + memoizedValue: b, + next: null + }, null === Og) { + if (null === Ng) throw Error(p(308)); + Og = a; + Ng.dependencies = { + lanes: 0, + firstContext: a + }; + } else Og = Og.next = a; + return b; +} +var Wg = null; +function Xg(a) { + null === Wg ? Wg = [a] : Wg.push(a); +} +function Yg(a, b, c, d) { + var e = b.interleaved; + null === e ? (c.next = c, Xg(b)) : (c.next = e.next, e.next = c); + b.interleaved = c; + return Zg(a, d); +} +function Zg(a, b) { + a.lanes |= b; + var c = a.alternate; + null !== c && (c.lanes |= b); + c = a; + for (a = a.return; null !== a;) a.childLanes |= b, c = a.alternate, null !== c && (c.childLanes |= b), c = a, a = a.return; + return 3 === c.tag ? c.stateNode : null; +} +var $g = !1; +function ah(a) { + a.updateQueue = { + baseState: a.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: { + pending: null, + interleaved: null, + lanes: 0 + }, + effects: null + }; +} +function bh(a, b) { + a = a.updateQueue; + b.updateQueue === a && (b.updateQueue = { + baseState: a.baseState, + firstBaseUpdate: a.firstBaseUpdate, + lastBaseUpdate: a.lastBaseUpdate, + shared: a.shared, + effects: a.effects + }); +} +function ch(a, b) { + return { + eventTime: a, + lane: b, + tag: 0, + payload: null, + callback: null, + next: null + }; +} +function dh(a, b, c) { + var d = a.updateQueue; + if (null === d) return null; + d = d.shared; + if (0 !== (K & 2)) { + var e = d.pending; + null === e ? b.next = b : (b.next = e.next, e.next = b); + d.pending = b; + return Zg(a, c); + } + e = d.interleaved; + null === e ? (b.next = b, Xg(d)) : (b.next = e.next, e.next = b); + d.interleaved = b; + return Zg(a, c); +} +function eh(a, b, c) { + b = b.updateQueue; + if (null !== b && (b = b.shared, 0 !== (c & 4194240))) { + var d = b.lanes; + d &= a.pendingLanes; + c |= d; + b.lanes = c; + Cc(a, c); + } +} +function fh(a, b) { + var c = a.updateQueue, + d = a.alternate; + if (null !== d && (d = d.updateQueue, c === d)) { + var e = null, + f = null; + c = c.firstBaseUpdate; + if (null !== c) { + do { + var g = { + eventTime: c.eventTime, + lane: c.lane, + tag: c.tag, + payload: c.payload, + callback: c.callback, + next: null + }; + null === f ? e = f = g : f = f.next = g; + c = c.next; + } while (null !== c); + null === f ? e = f = b : f = f.next = b; + } else e = f = b; + c = { + baseState: d.baseState, + firstBaseUpdate: e, + lastBaseUpdate: f, + shared: d.shared, + effects: d.effects + }; + a.updateQueue = c; + return; + } + a = c.lastBaseUpdate; + null === a ? c.firstBaseUpdate = b : a.next = b; + c.lastBaseUpdate = b; +} +function gh(a, b, c, d) { + var e = a.updateQueue; + $g = !1; + var f = e.firstBaseUpdate, + g = e.lastBaseUpdate, + h = e.shared.pending; + if (null !== h) { + e.shared.pending = null; + var k = h, + l = k.next; + k.next = null; + null === g ? f = l : g.next = l; + g = k; + var m = a.alternate; + null !== m && (m = m.updateQueue, h = m.lastBaseUpdate, h !== g && (null === h ? m.firstBaseUpdate = l : h.next = l, m.lastBaseUpdate = k)); + } + if (null !== f) { + var q = e.baseState; + g = 0; + m = l = k = null; + h = f; + do { + var r = h.lane, + y = h.eventTime; + if ((d & r) === r) { + null !== m && (m = m.next = { + eventTime: y, + lane: 0, + tag: h.tag, + payload: h.payload, + callback: h.callback, + next: null + }); + a: { + var n = a, + t = h; + r = b; + y = c; + switch (t.tag) { + case 1: + n = t.payload; + if ("function" === typeof n) { + q = n.call(y, q, r); + break a; + } + q = n; + break a; + case 3: + n.flags = n.flags & -65537 | 128; + case 0: + n = t.payload; + r = "function" === typeof n ? n.call(y, q, r) : n; + if (null === r || void 0 === r) break a; + q = A({}, q, r); + break a; + case 2: + $g = !0; + } + } + null !== h.callback && 0 !== h.lane && (a.flags |= 64, r = e.effects, null === r ? e.effects = [h] : r.push(h)); + } else y = { + eventTime: y, + lane: r, + tag: h.tag, + payload: h.payload, + callback: h.callback, + next: null + }, null === m ? (l = m = y, k = q) : m = m.next = y, g |= r; + h = h.next; + if (null === h) if (h = e.shared.pending, null === h) break;else r = h, h = r.next, r.next = null, e.lastBaseUpdate = r, e.shared.pending = null; + } while (1); + null === m && (k = q); + e.baseState = k; + e.firstBaseUpdate = l; + e.lastBaseUpdate = m; + b = e.shared.interleaved; + if (null !== b) { + e = b; + do g |= e.lane, e = e.next; while (e !== b); + } else null === f && (e.shared.lanes = 0); + hh |= g; + a.lanes = g; + a.memoizedState = q; + } +} +function ih(a, b, c) { + a = b.effects; + b.effects = null; + if (null !== a) for (b = 0; b < a.length; b++) { + var d = a[b], + e = d.callback; + if (null !== e) { + d.callback = null; + d = c; + if ("function" !== typeof e) throw Error(p(191, e)); + e.call(d); + } + } +} +var jh = new aa.Component().refs; +function kh(a, b, c, d) { + b = a.memoizedState; + c = c(d, b); + c = null === c || void 0 === c ? b : A({}, b, c); + a.memoizedState = c; + 0 === a.lanes && (a.updateQueue.baseState = c); +} +var nh = { + isMounted: function isMounted(a) { + return (a = a._reactInternals) ? Vb(a) === a : !1; + }, + enqueueSetState: function enqueueSetState(a, b, c) { + a = a._reactInternals; + var d = L(), + e = lh(a), + f = ch(d, e); + f.payload = b; + void 0 !== c && null !== c && (f.callback = c); + b = dh(a, f, e); + null !== b && (mh(b, a, e, d), eh(b, a, e)); + }, + enqueueReplaceState: function enqueueReplaceState(a, b, c) { + a = a._reactInternals; + var d = L(), + e = lh(a), + f = ch(d, e); + f.tag = 1; + f.payload = b; + void 0 !== c && null !== c && (f.callback = c); + b = dh(a, f, e); + null !== b && (mh(b, a, e, d), eh(b, a, e)); + }, + enqueueForceUpdate: function enqueueForceUpdate(a, b) { + a = a._reactInternals; + var c = L(), + d = lh(a), + e = ch(c, d); + e.tag = 2; + void 0 !== b && null !== b && (e.callback = b); + b = dh(a, e, d); + null !== b && (mh(b, a, d, c), eh(b, a, d)); + } +}; +function oh(a, b, c, d, e, f, g) { + a = a.stateNode; + return "function" === typeof a.shouldComponentUpdate ? a.shouldComponentUpdate(d, f, g) : b.prototype && b.prototype.isPureReactComponent ? !Ie(c, d) || !Ie(e, f) : !0; +} +function ph(a, b, c) { + var d = !1, + e = Vf; + var f = b.contextType; + "object" === typeof f && null !== f ? f = Vg(f) : (e = Zf(b) ? Xf : H.current, d = b.contextTypes, f = (d = null !== d && void 0 !== d) ? Yf(a, e) : Vf); + b = new b(c, f); + a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null; + b.updater = nh; + a.stateNode = b; + b._reactInternals = a; + d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = e, a.__reactInternalMemoizedMaskedChildContext = f); + return b; +} +function qh(a, b, c, d) { + a = b.state; + "function" === typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d); + "function" === typeof b.UNSAFE_componentWillReceiveProps && b.UNSAFE_componentWillReceiveProps(c, d); + b.state !== a && nh.enqueueReplaceState(b, b.state, null); +} +function rh(a, b, c, d) { + var e = a.stateNode; + e.props = c; + e.state = a.memoizedState; + e.refs = jh; + ah(a); + var f = b.contextType; + "object" === typeof f && null !== f ? e.context = Vg(f) : (f = Zf(b) ? Xf : H.current, e.context = Yf(a, f)); + e.state = a.memoizedState; + f = b.getDerivedStateFromProps; + "function" === typeof f && (kh(a, b, f, c), e.state = a.memoizedState); + "function" === typeof b.getDerivedStateFromProps || "function" === typeof e.getSnapshotBeforeUpdate || "function" !== typeof e.UNSAFE_componentWillMount && "function" !== typeof e.componentWillMount || (b = e.state, "function" === typeof e.componentWillMount && e.componentWillMount(), "function" === typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), b !== e.state && nh.enqueueReplaceState(e, e.state, null), gh(a, c, e, d), e.state = a.memoizedState); + "function" === typeof e.componentDidMount && (a.flags |= 4194308); +} +function sh(a, b, c) { + a = c.ref; + if (null !== a && "function" !== typeof a && "object" !== typeof a) { + if (c._owner) { + c = c._owner; + if (c) { + if (1 !== c.tag) throw Error(p(309)); + var d = c.stateNode; + } + if (!d) throw Error(p(147, a)); + var e = d, + f = "" + a; + if (null !== b && null !== b.ref && "function" === typeof b.ref && b.ref._stringRef === f) return b.ref; + b = function b(a) { + var b = e.refs; + b === jh && (b = e.refs = {}); + null === a ? delete b[f] : b[f] = a; + }; + b._stringRef = f; + return b; + } + if ("string" !== typeof a) throw Error(p(284)); + if (!c._owner) throw Error(p(290, a)); + } + return a; +} +function th(a, b) { + a = Object.prototype.toString.call(b); + throw Error(p(31, "[object Object]" === a ? "object with keys {" + Object.keys(b).join(", ") + "}" : a)); +} +function uh(a) { + var b = a._init; + return b(a._payload); +} +function vh(a) { + function b(b, c) { + if (a) { + var d = b.deletions; + null === d ? (b.deletions = [c], b.flags |= 16) : d.push(c); + } + } + function c(c, d) { + if (!a) return null; + for (; null !== d;) b(c, d), d = d.sibling; + return null; + } + function d(a, b) { + for (a = new Map(); null !== b;) null !== b.key ? a.set(b.key, b) : a.set(b.index, b), b = b.sibling; + return a; + } + function e(a, b) { + a = wh(a, b); + a.index = 0; + a.sibling = null; + return a; + } + function f(b, c, d) { + b.index = d; + if (!a) return b.flags |= 1048576, c; + d = b.alternate; + if (null !== d) return d = d.index, d < c ? (b.flags |= 2, c) : d; + b.flags |= 2; + return c; + } + function g(b) { + a && null === b.alternate && (b.flags |= 2); + return b; + } + function h(a, b, c, d) { + if (null === b || 6 !== b.tag) return b = xh(c, a.mode, d), b.return = a, b; + b = e(b, c); + b.return = a; + return b; + } + function k(a, b, c, d) { + var f = c.type; + if (f === ya) return m(a, b, c.props.children, d, c.key); + if (null !== b && (b.elementType === f || "object" === typeof f && null !== f && f.$$typeof === Ha && uh(f) === b.type)) return d = e(b, c.props), d.ref = sh(a, b, c), d.return = a, d; + d = yh(c.type, c.key, c.props, null, a.mode, d); + d.ref = sh(a, b, c); + d.return = a; + return d; + } + function l(a, b, c, d) { + if (null === b || 4 !== b.tag || b.stateNode.containerInfo !== c.containerInfo || b.stateNode.implementation !== c.implementation) return b = zh(c, a.mode, d), b.return = a, b; + b = e(b, c.children || []); + b.return = a; + return b; + } + function m(a, b, c, d, f) { + if (null === b || 7 !== b.tag) return b = Ah(c, a.mode, d, f), b.return = a, b; + b = e(b, c); + b.return = a; + return b; + } + function q(a, b, c) { + if ("string" === typeof b && "" !== b || "number" === typeof b) return b = xh("" + b, a.mode, c), b.return = a, b; + if ("object" === typeof b && null !== b) { + switch (b.$$typeof) { + case va: + return c = yh(b.type, b.key, b.props, null, a.mode, c), c.ref = sh(a, null, b), c.return = a, c; + case wa: + return b = zh(b, a.mode, c), b.return = a, b; + case Ha: + var d = b._init; + return q(a, d(b._payload), c); + } + if (eb(b) || Ka(b)) return b = Ah(b, a.mode, c, null), b.return = a, b; + th(a, b); + } + return null; + } + function r(a, b, c, d) { + var e = null !== b ? b.key : null; + if ("string" === typeof c && "" !== c || "number" === typeof c) return null !== e ? null : h(a, b, "" + c, d); + if ("object" === typeof c && null !== c) { + switch (c.$$typeof) { + case va: + return c.key === e ? k(a, b, c, d) : null; + case wa: + return c.key === e ? l(a, b, c, d) : null; + case Ha: + return e = c._init, r(a, b, e(c._payload), d); + } + if (eb(c) || Ka(c)) return null !== e ? null : m(a, b, c, d, null); + th(a, c); + } + return null; + } + function y(a, b, c, d, e) { + if ("string" === typeof d && "" !== d || "number" === typeof d) return a = a.get(c) || null, h(b, a, "" + d, e); + if ("object" === typeof d && null !== d) { + switch (d.$$typeof) { + case va: + return a = a.get(null === d.key ? c : d.key) || null, k(b, a, d, e); + case wa: + return a = a.get(null === d.key ? c : d.key) || null, l(b, a, d, e); + case Ha: + var f = d._init; + return y(a, b, c, f(d._payload), e); + } + if (eb(d) || Ka(d)) return a = a.get(c) || null, m(b, a, d, e, null); + th(b, d); + } + return null; + } + function n(e, g, h, k) { + for (var l = null, m = null, u = g, w = g = 0, x = null; null !== u && w < h.length; w++) { + u.index > w ? (x = u, u = null) : x = u.sibling; + var n = r(e, u, h[w], k); + if (null === n) { + null === u && (u = x); + break; + } + a && u && null === n.alternate && b(e, u); + g = f(n, g, w); + null === m ? l = n : m.sibling = n; + m = n; + u = x; + } + if (w === h.length) return c(e, u), I && tg(e, w), l; + if (null === u) { + for (; w < h.length; w++) u = q(e, h[w], k), null !== u && (g = f(u, g, w), null === m ? l = u : m.sibling = u, m = u); + I && tg(e, w); + return l; + } + for (u = d(e, u); w < h.length; w++) x = y(u, e, w, h[w], k), null !== x && (a && null !== x.alternate && u.delete(null === x.key ? w : x.key), g = f(x, g, w), null === m ? l = x : m.sibling = x, m = x); + a && u.forEach(function (a) { + return b(e, a); + }); + I && tg(e, w); + return l; + } + function t(e, g, h, k) { + var l = Ka(h); + if ("function" !== typeof l) throw Error(p(150)); + h = l.call(h); + if (null == h) throw Error(p(151)); + for (var u = l = null, m = g, w = g = 0, x = null, n = h.next(); null !== m && !n.done; w++, n = h.next()) { + m.index > w ? (x = m, m = null) : x = m.sibling; + var t = r(e, m, n.value, k); + if (null === t) { + null === m && (m = x); + break; + } + a && m && null === t.alternate && b(e, m); + g = f(t, g, w); + null === u ? l = t : u.sibling = t; + u = t; + m = x; + } + if (n.done) return c(e, m), I && tg(e, w), l; + if (null === m) { + for (; !n.done; w++, n = h.next()) n = q(e, n.value, k), null !== n && (g = f(n, g, w), null === u ? l = n : u.sibling = n, u = n); + I && tg(e, w); + return l; + } + for (m = d(e, m); !n.done; w++, n = h.next()) n = y(m, e, w, n.value, k), null !== n && (a && null !== n.alternate && m.delete(null === n.key ? w : n.key), g = f(n, g, w), null === u ? l = n : u.sibling = n, u = n); + a && m.forEach(function (a) { + return b(e, a); + }); + I && tg(e, w); + return l; + } + function J(a, d, f, h) { + "object" === typeof f && null !== f && f.type === ya && null === f.key && (f = f.props.children); + if ("object" === typeof f && null !== f) { + switch (f.$$typeof) { + case va: + a: { + for (var k = f.key, l = d; null !== l;) { + if (l.key === k) { + k = f.type; + if (k === ya) { + if (7 === l.tag) { + c(a, l.sibling); + d = e(l, f.props.children); + d.return = a; + a = d; + break a; + } + } else if (l.elementType === k || "object" === typeof k && null !== k && k.$$typeof === Ha && uh(k) === l.type) { + c(a, l.sibling); + d = e(l, f.props); + d.ref = sh(a, l, f); + d.return = a; + a = d; + break a; + } + c(a, l); + break; + } else b(a, l); + l = l.sibling; + } + f.type === ya ? (d = Ah(f.props.children, a.mode, h, f.key), d.return = a, a = d) : (h = yh(f.type, f.key, f.props, null, a.mode, h), h.ref = sh(a, d, f), h.return = a, a = h); + } + return g(a); + case wa: + a: { + for (l = f.key; null !== d;) { + if (d.key === l) { + if (4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation) { + c(a, d.sibling); + d = e(d, f.children || []); + d.return = a; + a = d; + break a; + } else { + c(a, d); + break; + } + } else b(a, d); + d = d.sibling; + } + d = zh(f, a.mode, h); + d.return = a; + a = d; + } + return g(a); + case Ha: + return l = f._init, J(a, d, l(f._payload), h); + } + if (eb(f)) return n(a, d, f, h); + if (Ka(f)) return t(a, d, f, h); + th(a, f); + } + return "string" === typeof f && "" !== f || "number" === typeof f ? (f = "" + f, null !== d && 6 === d.tag ? (c(a, d.sibling), d = e(d, f), d.return = a, a = d) : (c(a, d), d = xh(f, a.mode, h), d.return = a, a = d), g(a)) : c(a, d); + } + return J; +} +var Bh = vh(!0), + Ch = vh(!1), + Dh = {}, + Eh = Uf(Dh), + Fh = Uf(Dh), + Gh = Uf(Dh); +function Hh(a) { + if (a === Dh) throw Error(p(174)); + return a; +} +function Ih(a, b) { + G(Gh, b); + G(Fh, a); + G(Eh, Dh); + a = b.nodeType; + switch (a) { + case 9: + case 11: + b = (b = b.documentElement) ? b.namespaceURI : lb(null, ""); + break; + default: + a = 8 === a ? b.parentNode : b, b = a.namespaceURI || null, a = a.tagName, b = lb(b, a); + } + E(Eh); + G(Eh, b); +} +function Jh() { + E(Eh); + E(Fh); + E(Gh); +} +function Kh(a) { + Hh(Gh.current); + var b = Hh(Eh.current); + var c = lb(b, a.type); + b !== c && (G(Fh, a), G(Eh, c)); +} +function Lh(a) { + Fh.current === a && (E(Eh), E(Fh)); +} +var M = Uf(0); +function Mh(a) { + for (var b = a; null !== b;) { + if (13 === b.tag) { + var c = b.memoizedState; + if (null !== c && (c = c.dehydrated, null === c || "$?" === c.data || "$!" === c.data)) return b; + } else if (19 === b.tag && void 0 !== b.memoizedProps.revealOrder) { + if (0 !== (b.flags & 128)) return b; + } else if (null !== b.child) { + b.child.return = b; + b = b.child; + continue; + } + if (b === a) break; + for (; null === b.sibling;) { + if (null === b.return || b.return === a) return null; + b = b.return; + } + b.sibling.return = b.return; + b = b.sibling; + } + return null; +} +var Nh = []; +function Oh() { + for (var a = 0; a < Nh.length; a++) Nh[a]._workInProgressVersionPrimary = null; + Nh.length = 0; +} +var Ph = ua.ReactCurrentDispatcher, + Qh = ua.ReactCurrentBatchConfig, + Rh = 0, + N = null, + O = null, + P = null, + Sh = !1, + Th = !1, + Uh = 0, + Vh = 0; +function Q() { + throw Error(p(321)); +} +function Wh(a, b) { + if (null === b) return !1; + for (var c = 0; c < b.length && c < a.length; c++) if (!He(a[c], b[c])) return !1; + return !0; +} +function Xh(a, b, c, d, e, f) { + Rh = f; + N = b; + b.memoizedState = null; + b.updateQueue = null; + b.lanes = 0; + Ph.current = null === a || null === a.memoizedState ? Yh : Zh; + a = c(d, e); + if (Th) { + f = 0; + do { + Th = !1; + Uh = 0; + if (25 <= f) throw Error(p(301)); + f += 1; + P = O = null; + b.updateQueue = null; + Ph.current = $h; + a = c(d, e); + } while (Th); + } + Ph.current = ai; + b = null !== O && null !== O.next; + Rh = 0; + P = O = N = null; + Sh = !1; + if (b) throw Error(p(300)); + return a; +} +function bi() { + var a = 0 !== Uh; + Uh = 0; + return a; +} +function ci() { + var a = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, + next: null + }; + null === P ? N.memoizedState = P = a : P = P.next = a; + return P; +} +function di() { + if (null === O) { + var a = N.alternate; + a = null !== a ? a.memoizedState : null; + } else a = O.next; + var b = null === P ? N.memoizedState : P.next; + if (null !== b) P = b, O = a;else { + if (null === a) throw Error(p(310)); + O = a; + a = { + memoizedState: O.memoizedState, + baseState: O.baseState, + baseQueue: O.baseQueue, + queue: O.queue, + next: null + }; + null === P ? N.memoizedState = P = a : P = P.next = a; + } + return P; +} +function ei(a, b) { + return "function" === typeof b ? b(a) : b; +} +function fi(a) { + var b = di(), + c = b.queue; + if (null === c) throw Error(p(311)); + c.lastRenderedReducer = a; + var d = O, + e = d.baseQueue, + f = c.pending; + if (null !== f) { + if (null !== e) { + var g = e.next; + e.next = f.next; + f.next = g; + } + d.baseQueue = e = f; + c.pending = null; + } + if (null !== e) { + f = e.next; + d = d.baseState; + var h = g = null, + k = null, + l = f; + do { + var m = l.lane; + if ((Rh & m) === m) null !== k && (k = k.next = { + lane: 0, + action: l.action, + hasEagerState: l.hasEagerState, + eagerState: l.eagerState, + next: null + }), d = l.hasEagerState ? l.eagerState : a(d, l.action);else { + var q = { + lane: m, + action: l.action, + hasEagerState: l.hasEagerState, + eagerState: l.eagerState, + next: null + }; + null === k ? (h = k = q, g = d) : k = k.next = q; + N.lanes |= m; + hh |= m; + } + l = l.next; + } while (null !== l && l !== f); + null === k ? g = d : k.next = h; + He(d, b.memoizedState) || (Ug = !0); + b.memoizedState = d; + b.baseState = g; + b.baseQueue = k; + c.lastRenderedState = d; + } + a = c.interleaved; + if (null !== a) { + e = a; + do f = e.lane, N.lanes |= f, hh |= f, e = e.next; while (e !== a); + } else null === e && (c.lanes = 0); + return [b.memoizedState, c.dispatch]; +} +function gi(a) { + var b = di(), + c = b.queue; + if (null === c) throw Error(p(311)); + c.lastRenderedReducer = a; + var d = c.dispatch, + e = c.pending, + f = b.memoizedState; + if (null !== e) { + c.pending = null; + var g = e = e.next; + do f = a(f, g.action), g = g.next; while (g !== e); + He(f, b.memoizedState) || (Ug = !0); + b.memoizedState = f; + null === b.baseQueue && (b.baseState = f); + c.lastRenderedState = f; + } + return [f, d]; +} +function hi() {} +function ii(a, b) { + var c = N, + d = di(), + e = b(), + f = !He(d.memoizedState, e); + f && (d.memoizedState = e, Ug = !0); + d = d.queue; + ji(ki.bind(null, c, d, a), [a]); + if (d.getSnapshot !== b || f || null !== P && P.memoizedState.tag & 1) { + c.flags |= 2048; + li(9, mi.bind(null, c, d, e, b), void 0, null); + if (null === R) throw Error(p(349)); + 0 !== (Rh & 30) || ni(c, b, e); + } + return e; +} +function ni(a, b, c) { + a.flags |= 16384; + a = { + getSnapshot: b, + value: c + }; + b = N.updateQueue; + null === b ? (b = { + lastEffect: null, + stores: null + }, N.updateQueue = b, b.stores = [a]) : (c = b.stores, null === c ? b.stores = [a] : c.push(a)); +} +function mi(a, b, c, d) { + b.value = c; + b.getSnapshot = d; + oi(b) && pi(a); +} +function ki(a, b, c) { + return c(function () { + oi(b) && pi(a); + }); +} +function oi(a) { + var b = a.getSnapshot; + a = a.value; + try { + var c = b(); + return !He(a, c); + } catch (d) { + return !0; + } +} +function pi(a) { + var b = Zg(a, 1); + null !== b && mh(b, a, 1, -1); +} +function qi(a) { + var b = ci(); + "function" === typeof a && (a = a()); + b.memoizedState = b.baseState = a; + a = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: ei, + lastRenderedState: a + }; + b.queue = a; + a = a.dispatch = ri.bind(null, N, a); + return [b.memoizedState, a]; +} +function li(a, b, c, d) { + a = { + tag: a, + create: b, + destroy: c, + deps: d, + next: null + }; + b = N.updateQueue; + null === b ? (b = { + lastEffect: null, + stores: null + }, N.updateQueue = b, b.lastEffect = a.next = a) : (c = b.lastEffect, null === c ? b.lastEffect = a.next = a : (d = c.next, c.next = a, a.next = d, b.lastEffect = a)); + return a; +} +function si() { + return di().memoizedState; +} +function ti(a, b, c, d) { + var e = ci(); + N.flags |= a; + e.memoizedState = li(1 | b, c, void 0, void 0 === d ? null : d); +} +function ui(a, b, c, d) { + var e = di(); + d = void 0 === d ? null : d; + var f = void 0; + if (null !== O) { + var g = O.memoizedState; + f = g.destroy; + if (null !== d && Wh(d, g.deps)) { + e.memoizedState = li(b, c, f, d); + return; + } + } + N.flags |= a; + e.memoizedState = li(1 | b, c, f, d); +} +function vi(a, b) { + return ti(8390656, 8, a, b); +} +function ji(a, b) { + return ui(2048, 8, a, b); +} +function wi(a, b) { + return ui(4, 2, a, b); +} +function xi(a, b) { + return ui(4, 4, a, b); +} +function yi(a, b) { + if ("function" === typeof b) return a = a(), b(a), function () { + b(null); + }; + if (null !== b && void 0 !== b) return a = a(), b.current = a, function () { + b.current = null; + }; +} +function zi(a, b, c) { + c = null !== c && void 0 !== c ? c.concat([a]) : null; + return ui(4, 4, yi.bind(null, b, a), c); +} +function Ai() {} +function Bi(a, b) { + var c = di(); + b = void 0 === b ? null : b; + var d = c.memoizedState; + if (null !== d && null !== b && Wh(b, d[1])) return d[0]; + c.memoizedState = [a, b]; + return a; +} +function Ci(a, b) { + var c = di(); + b = void 0 === b ? null : b; + var d = c.memoizedState; + if (null !== d && null !== b && Wh(b, d[1])) return d[0]; + a = a(); + c.memoizedState = [a, b]; + return a; +} +function Di(a, b, c) { + if (0 === (Rh & 21)) return a.baseState && (a.baseState = !1, Ug = !0), a.memoizedState = c; + He(c, b) || (c = yc(), N.lanes |= c, hh |= c, a.baseState = !0); + return b; +} +function Ei(a, b) { + var c = C; + C = 0 !== c && 4 > c ? c : 4; + a(!0); + var d = Qh.transition; + Qh.transition = {}; + try { + a(!1), b(); + } finally { + C = c, Qh.transition = d; + } +} +function Fi() { + return di().memoizedState; +} +function Gi(a, b, c) { + var d = lh(a); + c = { + lane: d, + action: c, + hasEagerState: !1, + eagerState: null, + next: null + }; + if (Hi(a)) Ii(b, c);else if (c = Yg(a, b, c, d), null !== c) { + var e = L(); + mh(c, a, d, e); + Ji(c, b, d); + } +} +function ri(a, b, c) { + var d = lh(a), + e = { + lane: d, + action: c, + hasEagerState: !1, + eagerState: null, + next: null + }; + if (Hi(a)) Ii(b, e);else { + var f = a.alternate; + if (0 === a.lanes && (null === f || 0 === f.lanes) && (f = b.lastRenderedReducer, null !== f)) try { + var g = b.lastRenderedState, + h = f(g, c); + e.hasEagerState = !0; + e.eagerState = h; + if (He(h, g)) { + var k = b.interleaved; + null === k ? (e.next = e, Xg(b)) : (e.next = k.next, k.next = e); + b.interleaved = e; + return; + } + } catch (l) {} finally {} + c = Yg(a, b, e, d); + null !== c && (e = L(), mh(c, a, d, e), Ji(c, b, d)); + } +} +function Hi(a) { + var b = a.alternate; + return a === N || null !== b && b === N; +} +function Ii(a, b) { + Th = Sh = !0; + var c = a.pending; + null === c ? b.next = b : (b.next = c.next, c.next = b); + a.pending = b; +} +function Ji(a, b, c) { + if (0 !== (c & 4194240)) { + var d = b.lanes; + d &= a.pendingLanes; + c |= d; + b.lanes = c; + Cc(a, c); + } +} +var ai = { + readContext: Vg, + useCallback: Q, + useContext: Q, + useEffect: Q, + useImperativeHandle: Q, + useInsertionEffect: Q, + useLayoutEffect: Q, + useMemo: Q, + useReducer: Q, + useRef: Q, + useState: Q, + useDebugValue: Q, + useDeferredValue: Q, + useTransition: Q, + useMutableSource: Q, + useSyncExternalStore: Q, + useId: Q, + unstable_isNewReconciler: !1 + }, + Yh = { + readContext: Vg, + useCallback: function useCallback(a, b) { + ci().memoizedState = [a, void 0 === b ? null : b]; + return a; + }, + useContext: Vg, + useEffect: vi, + useImperativeHandle: function useImperativeHandle(a, b, c) { + c = null !== c && void 0 !== c ? c.concat([a]) : null; + return ti(4194308, 4, yi.bind(null, b, a), c); + }, + useLayoutEffect: function useLayoutEffect(a, b) { + return ti(4194308, 4, a, b); + }, + useInsertionEffect: function useInsertionEffect(a, b) { + return ti(4, 2, a, b); + }, + useMemo: function useMemo(a, b) { + var c = ci(); + b = void 0 === b ? null : b; + a = a(); + c.memoizedState = [a, b]; + return a; + }, + useReducer: function useReducer(a, b, c) { + var d = ci(); + b = void 0 !== c ? c(b) : b; + d.memoizedState = d.baseState = b; + a = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: a, + lastRenderedState: b + }; + d.queue = a; + a = a.dispatch = Gi.bind(null, N, a); + return [d.memoizedState, a]; + }, + useRef: function useRef(a) { + var b = ci(); + a = { + current: a + }; + return b.memoizedState = a; + }, + useState: qi, + useDebugValue: Ai, + useDeferredValue: function useDeferredValue(a) { + return ci().memoizedState = a; + }, + useTransition: function useTransition() { + var a = qi(!1), + b = a[0]; + a = Ei.bind(null, a[1]); + ci().memoizedState = a; + return [b, a]; + }, + useMutableSource: function useMutableSource() {}, + useSyncExternalStore: function useSyncExternalStore(a, b, c) { + var d = N, + e = ci(); + if (I) { + if (void 0 === c) throw Error(p(407)); + c = c(); + } else { + c = b(); + if (null === R) throw Error(p(349)); + 0 !== (Rh & 30) || ni(d, b, c); + } + e.memoizedState = c; + var f = { + value: c, + getSnapshot: b + }; + e.queue = f; + vi(ki.bind(null, d, f, a), [a]); + d.flags |= 2048; + li(9, mi.bind(null, d, f, c, b), void 0, null); + return c; + }, + useId: function useId() { + var a = ci(), + b = R.identifierPrefix; + if (I) { + var c = sg; + var d = rg; + c = (d & ~(1 << 32 - oc(d) - 1)).toString(32) + c; + b = ":" + b + "R" + c; + c = Uh++; + 0 < c && (b += "H" + c.toString(32)); + b += ":"; + } else c = Vh++, b = ":" + b + "r" + c.toString(32) + ":"; + return a.memoizedState = b; + }, + unstable_isNewReconciler: !1 + }, + Zh = { + readContext: Vg, + useCallback: Bi, + useContext: Vg, + useEffect: ji, + useImperativeHandle: zi, + useInsertionEffect: wi, + useLayoutEffect: xi, + useMemo: Ci, + useReducer: fi, + useRef: si, + useState: function useState() { + return fi(ei); + }, + useDebugValue: Ai, + useDeferredValue: function useDeferredValue(a) { + var b = di(); + return Di(b, O.memoizedState, a); + }, + useTransition: function useTransition() { + var a = fi(ei)[0], + b = di().memoizedState; + return [a, b]; + }, + useMutableSource: hi, + useSyncExternalStore: ii, + useId: Fi, + unstable_isNewReconciler: !1 + }, + $h = { + readContext: Vg, + useCallback: Bi, + useContext: Vg, + useEffect: ji, + useImperativeHandle: zi, + useInsertionEffect: wi, + useLayoutEffect: xi, + useMemo: Ci, + useReducer: gi, + useRef: si, + useState: function useState() { + return gi(ei); + }, + useDebugValue: Ai, + useDeferredValue: function useDeferredValue(a) { + var b = di(); + return null === O ? b.memoizedState = a : Di(b, O.memoizedState, a); + }, + useTransition: function useTransition() { + var a = gi(ei)[0], + b = di().memoizedState; + return [a, b]; + }, + useMutableSource: hi, + useSyncExternalStore: ii, + useId: Fi, + unstable_isNewReconciler: !1 + }; +function Ki(a, b) { + try { + var c = "", + d = b; + do c += Pa(d), d = d.return; while (d); + var e = c; + } catch (f) { + e = "\nError generating stack: " + f.message + "\n" + f.stack; + } + return { + value: a, + source: b, + stack: e, + digest: null + }; +} +function Li(a, b, c) { + return { + value: a, + source: null, + stack: null != c ? c : null, + digest: null != b ? b : null + }; +} +function Mi(a, b) { + try { + console.error(b.value); + } catch (c) { + setTimeout(function () { + throw c; + }); + } +} +var Ni = "function" === typeof WeakMap ? WeakMap : Map; +function Oi(a, b, c) { + c = ch(-1, c); + c.tag = 3; + c.payload = { + element: null + }; + var d = b.value; + c.callback = function () { + Pi || (Pi = !0, Qi = d); + Mi(a, b); + }; + return c; +} +function Ri(a, b, c) { + c = ch(-1, c); + c.tag = 3; + var d = a.type.getDerivedStateFromError; + if ("function" === typeof d) { + var e = b.value; + c.payload = function () { + return d(e); + }; + c.callback = function () { + Mi(a, b); + }; + } + var f = a.stateNode; + null !== f && "function" === typeof f.componentDidCatch && (c.callback = function () { + Mi(a, b); + "function" !== typeof d && (null === Si ? Si = new Set([this]) : Si.add(this)); + var c = b.stack; + this.componentDidCatch(b.value, { + componentStack: null !== c ? c : "" + }); + }); + return c; +} +function Ti(a, b, c) { + var d = a.pingCache; + if (null === d) { + d = a.pingCache = new Ni(); + var e = new Set(); + d.set(b, e); + } else e = d.get(b), void 0 === e && (e = new Set(), d.set(b, e)); + e.has(c) || (e.add(c), a = Ui.bind(null, a, b, c), b.then(a, a)); +} +function Vi(a) { + do { + var b; + if (b = 13 === a.tag) b = a.memoizedState, b = null !== b ? null !== b.dehydrated ? !0 : !1 : !0; + if (b) return a; + a = a.return; + } while (null !== a); + return null; +} +function Wi(a, b, c, d, e) { + if (0 === (a.mode & 1)) return a === b ? a.flags |= 65536 : (a.flags |= 128, c.flags |= 131072, c.flags &= -52805, 1 === c.tag && (null === c.alternate ? c.tag = 17 : (b = ch(-1, 1), b.tag = 2, dh(c, b, 1))), c.lanes |= 1), a; + a.flags |= 65536; + a.lanes = e; + return a; +} +var Xi = ua.ReactCurrentOwner, + Ug = !1; +function Yi(a, b, c, d) { + b.child = null === a ? Ch(b, null, c, d) : Bh(b, a.child, c, d); +} +function Zi(a, b, c, d, e) { + c = c.render; + var f = b.ref; + Tg(b, e); + d = Xh(a, b, c, d, f, e); + c = bi(); + if (null !== a && !Ug) return b.updateQueue = a.updateQueue, b.flags &= -2053, a.lanes &= ~e, $i(a, b, e); + I && c && vg(b); + b.flags |= 1; + Yi(a, b, d, e); + return b.child; +} +function aj(a, b, c, d, e) { + if (null === a) { + var f = c.type; + if ("function" === typeof f && !bj(f) && void 0 === f.defaultProps && null === c.compare && void 0 === c.defaultProps) return b.tag = 15, b.type = f, cj(a, b, f, d, e); + a = yh(c.type, null, d, b, b.mode, e); + a.ref = b.ref; + a.return = b; + return b.child = a; + } + f = a.child; + if (0 === (a.lanes & e)) { + var g = f.memoizedProps; + c = c.compare; + c = null !== c ? c : Ie; + if (c(g, d) && a.ref === b.ref) return $i(a, b, e); + } + b.flags |= 1; + a = wh(f, d); + a.ref = b.ref; + a.return = b; + return b.child = a; +} +function cj(a, b, c, d, e) { + if (null !== a) { + var f = a.memoizedProps; + if (Ie(f, d) && a.ref === b.ref) if (Ug = !1, b.pendingProps = d = f, 0 !== (a.lanes & e)) 0 !== (a.flags & 131072) && (Ug = !0);else return b.lanes = a.lanes, $i(a, b, e); + } + return dj(a, b, c, d, e); +} +function ej(a, b, c) { + var d = b.pendingProps, + e = d.children, + f = null !== a ? a.memoizedState : null; + if ("hidden" === d.mode) { + if (0 === (b.mode & 1)) b.memoizedState = { + baseLanes: 0, + cachePool: null, + transitions: null + }, G(fj, gj), gj |= c;else { + if (0 === (c & 1073741824)) return a = null !== f ? f.baseLanes | c : c, b.lanes = b.childLanes = 1073741824, b.memoizedState = { + baseLanes: a, + cachePool: null, + transitions: null + }, b.updateQueue = null, G(fj, gj), gj |= a, null; + b.memoizedState = { + baseLanes: 0, + cachePool: null, + transitions: null + }; + d = null !== f ? f.baseLanes : c; + G(fj, gj); + gj |= d; + } + } else null !== f ? (d = f.baseLanes | c, b.memoizedState = null) : d = c, G(fj, gj), gj |= d; + Yi(a, b, e, c); + return b.child; +} +function hj(a, b) { + var c = b.ref; + if (null === a && null !== c || null !== a && a.ref !== c) b.flags |= 512, b.flags |= 2097152; +} +function dj(a, b, c, d, e) { + var f = Zf(c) ? Xf : H.current; + f = Yf(b, f); + Tg(b, e); + c = Xh(a, b, c, d, f, e); + d = bi(); + if (null !== a && !Ug) return b.updateQueue = a.updateQueue, b.flags &= -2053, a.lanes &= ~e, $i(a, b, e); + I && d && vg(b); + b.flags |= 1; + Yi(a, b, c, e); + return b.child; +} +function ij(a, b, c, d, e) { + if (Zf(c)) { + var f = !0; + cg(b); + } else f = !1; + Tg(b, e); + if (null === b.stateNode) jj(a, b), ph(b, c, d), rh(b, c, d, e), d = !0;else if (null === a) { + var g = b.stateNode, + h = b.memoizedProps; + g.props = h; + var k = g.context, + l = c.contextType; + "object" === typeof l && null !== l ? l = Vg(l) : (l = Zf(c) ? Xf : H.current, l = Yf(b, l)); + var m = c.getDerivedStateFromProps, + q = "function" === typeof m || "function" === typeof g.getSnapshotBeforeUpdate; + q || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && qh(b, g, d, l); + $g = !1; + var r = b.memoizedState; + g.state = r; + gh(b, d, g, e); + k = b.memoizedState; + h !== d || r !== k || Wf.current || $g ? ("function" === typeof m && (kh(b, c, m, d), k = b.memoizedState), (h = $g || oh(b, c, h, d, r, k, l)) ? (q || "function" !== typeof g.UNSAFE_componentWillMount && "function" !== typeof g.componentWillMount || ("function" === typeof g.componentWillMount && g.componentWillMount(), "function" === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), "function" === typeof g.componentDidMount && (b.flags |= 4194308)) : ("function" === typeof g.componentDidMount && (b.flags |= 4194308), b.memoizedProps = d, b.memoizedState = k), g.props = d, g.state = k, g.context = l, d = h) : ("function" === typeof g.componentDidMount && (b.flags |= 4194308), d = !1); + } else { + g = b.stateNode; + bh(a, b); + h = b.memoizedProps; + l = b.type === b.elementType ? h : Lg(b.type, h); + g.props = l; + q = b.pendingProps; + r = g.context; + k = c.contextType; + "object" === typeof k && null !== k ? k = Vg(k) : (k = Zf(c) ? Xf : H.current, k = Yf(b, k)); + var y = c.getDerivedStateFromProps; + (m = "function" === typeof y || "function" === typeof g.getSnapshotBeforeUpdate) || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== q || r !== k) && qh(b, g, d, k); + $g = !1; + r = b.memoizedState; + g.state = r; + gh(b, d, g, e); + var n = b.memoizedState; + h !== q || r !== n || Wf.current || $g ? ("function" === typeof y && (kh(b, c, y, d), n = b.memoizedState), (l = $g || oh(b, c, l, d, r, n, k) || !1) ? (m || "function" !== typeof g.UNSAFE_componentWillUpdate && "function" !== typeof g.componentWillUpdate || ("function" === typeof g.componentWillUpdate && g.componentWillUpdate(d, n, k), "function" === typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, n, k)), "function" === typeof g.componentDidUpdate && (b.flags |= 4), "function" === typeof g.getSnapshotBeforeUpdate && (b.flags |= 1024)) : ("function" !== typeof g.componentDidUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 1024), b.memoizedProps = d, b.memoizedState = n), g.props = d, g.state = n, g.context = k, d = l) : ("function" !== typeof g.componentDidUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 1024), d = !1); + } + return kj(a, b, c, d, f, e); +} +function kj(a, b, c, d, e, f) { + hj(a, b); + var g = 0 !== (b.flags & 128); + if (!d && !g) return e && dg(b, c, !1), $i(a, b, f); + d = b.stateNode; + Xi.current = b; + var h = g && "function" !== typeof c.getDerivedStateFromError ? null : d.render(); + b.flags |= 1; + null !== a && g ? (b.child = Bh(b, a.child, null, f), b.child = Bh(b, null, h, f)) : Yi(a, b, h, f); + b.memoizedState = d.state; + e && dg(b, c, !0); + return b.child; +} +function lj(a) { + var b = a.stateNode; + b.pendingContext ? ag(a, b.pendingContext, b.pendingContext !== b.context) : b.context && ag(a, b.context, !1); + Ih(a, b.containerInfo); +} +function mj(a, b, c, d, e) { + Ig(); + Jg(e); + b.flags |= 256; + Yi(a, b, c, d); + return b.child; +} +var nj = { + dehydrated: null, + treeContext: null, + retryLane: 0 +}; +function oj(a) { + return { + baseLanes: a, + cachePool: null, + transitions: null + }; +} +function pj(a, b, c) { + var d = b.pendingProps, + e = M.current, + f = !1, + g = 0 !== (b.flags & 128), + h; + (h = g) || (h = null !== a && null === a.memoizedState ? !1 : 0 !== (e & 2)); + if (h) f = !0, b.flags &= -129;else if (null === a || null !== a.memoizedState) e |= 1; + G(M, e & 1); + if (null === a) { + Eg(b); + a = b.memoizedState; + if (null !== a && (a = a.dehydrated, null !== a)) return 0 === (b.mode & 1) ? b.lanes = 1 : "$!" === a.data ? b.lanes = 8 : b.lanes = 1073741824, null; + g = d.children; + a = d.fallback; + return f ? (d = b.mode, f = b.child, g = { + mode: "hidden", + children: g + }, 0 === (d & 1) && null !== f ? (f.childLanes = 0, f.pendingProps = g) : f = qj(g, d, 0, null), a = Ah(a, d, c, null), f.return = b, a.return = b, f.sibling = a, b.child = f, b.child.memoizedState = oj(c), b.memoizedState = nj, a) : rj(b, g); + } + e = a.memoizedState; + if (null !== e && (h = e.dehydrated, null !== h)) return sj(a, b, g, d, h, e, c); + if (f) { + f = d.fallback; + g = b.mode; + e = a.child; + h = e.sibling; + var k = { + mode: "hidden", + children: d.children + }; + 0 === (g & 1) && b.child !== e ? (d = b.child, d.childLanes = 0, d.pendingProps = k, b.deletions = null) : (d = wh(e, k), d.subtreeFlags = e.subtreeFlags & 14680064); + null !== h ? f = wh(h, f) : (f = Ah(f, g, c, null), f.flags |= 2); + f.return = b; + d.return = b; + d.sibling = f; + b.child = d; + d = f; + f = b.child; + g = a.child.memoizedState; + g = null === g ? oj(c) : { + baseLanes: g.baseLanes | c, + cachePool: null, + transitions: g.transitions + }; + f.memoizedState = g; + f.childLanes = a.childLanes & ~c; + b.memoizedState = nj; + return d; + } + f = a.child; + a = f.sibling; + d = wh(f, { + mode: "visible", + children: d.children + }); + 0 === (b.mode & 1) && (d.lanes = c); + d.return = b; + d.sibling = null; + null !== a && (c = b.deletions, null === c ? (b.deletions = [a], b.flags |= 16) : c.push(a)); + b.child = d; + b.memoizedState = null; + return d; +} +function rj(a, b) { + b = qj({ + mode: "visible", + children: b + }, a.mode, 0, null); + b.return = a; + return a.child = b; +} +function tj(a, b, c, d) { + null !== d && Jg(d); + Bh(b, a.child, null, c); + a = rj(b, b.pendingProps.children); + a.flags |= 2; + b.memoizedState = null; + return a; +} +function sj(a, b, c, d, e, f, g) { + if (c) { + if (b.flags & 256) return b.flags &= -257, d = Li(Error(p(422))), tj(a, b, g, d); + if (null !== b.memoizedState) return b.child = a.child, b.flags |= 128, null; + f = d.fallback; + e = b.mode; + d = qj({ + mode: "visible", + children: d.children + }, e, 0, null); + f = Ah(f, e, g, null); + f.flags |= 2; + d.return = b; + f.return = b; + d.sibling = f; + b.child = d; + 0 !== (b.mode & 1) && Bh(b, a.child, null, g); + b.child.memoizedState = oj(g); + b.memoizedState = nj; + return f; + } + if (0 === (b.mode & 1)) return tj(a, b, g, null); + if ("$!" === e.data) { + d = e.nextSibling && e.nextSibling.dataset; + if (d) var h = d.dgst; + d = h; + f = Error(p(419)); + d = Li(f, d, void 0); + return tj(a, b, g, d); + } + h = 0 !== (g & a.childLanes); + if (Ug || h) { + d = R; + if (null !== d) { + switch (g & -g) { + case 4: + e = 2; + break; + case 16: + e = 8; + break; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + e = 32; + break; + case 536870912: + e = 268435456; + break; + default: + e = 0; + } + e = 0 !== (e & (d.suspendedLanes | g)) ? 0 : e; + 0 !== e && e !== f.retryLane && (f.retryLane = e, Zg(a, e), mh(d, a, e, -1)); + } + uj(); + d = Li(Error(p(421))); + return tj(a, b, g, d); + } + if ("$?" === e.data) return b.flags |= 128, b.child = a.child, b = vj.bind(null, a), e._reactRetry = b, null; + a = f.treeContext; + yg = Lf(e.nextSibling); + xg = b; + I = !0; + zg = null; + null !== a && (og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, rg = a.id, sg = a.overflow, qg = b); + b = rj(b, d.children); + b.flags |= 4096; + return b; +} +function wj(a, b, c) { + a.lanes |= b; + var d = a.alternate; + null !== d && (d.lanes |= b); + Sg(a.return, b, c); +} +function xj(a, b, c, d, e) { + var f = a.memoizedState; + null === f ? a.memoizedState = { + isBackwards: b, + rendering: null, + renderingStartTime: 0, + last: d, + tail: c, + tailMode: e + } : (f.isBackwards = b, f.rendering = null, f.renderingStartTime = 0, f.last = d, f.tail = c, f.tailMode = e); +} +function yj(a, b, c) { + var d = b.pendingProps, + e = d.revealOrder, + f = d.tail; + Yi(a, b, d.children, c); + d = M.current; + if (0 !== (d & 2)) d = d & 1 | 2, b.flags |= 128;else { + if (null !== a && 0 !== (a.flags & 128)) a: for (a = b.child; null !== a;) { + if (13 === a.tag) null !== a.memoizedState && wj(a, c, b);else if (19 === a.tag) wj(a, c, b);else if (null !== a.child) { + a.child.return = a; + a = a.child; + continue; + } + if (a === b) break a; + for (; null === a.sibling;) { + if (null === a.return || a.return === b) break a; + a = a.return; + } + a.sibling.return = a.return; + a = a.sibling; + } + d &= 1; + } + G(M, d); + if (0 === (b.mode & 1)) b.memoizedState = null;else switch (e) { + case "forwards": + c = b.child; + for (e = null; null !== c;) a = c.alternate, null !== a && null === Mh(a) && (e = c), c = c.sibling; + c = e; + null === c ? (e = b.child, b.child = null) : (e = c.sibling, c.sibling = null); + xj(b, !1, e, c, f); + break; + case "backwards": + c = null; + e = b.child; + for (b.child = null; null !== e;) { + a = e.alternate; + if (null !== a && null === Mh(a)) { + b.child = e; + break; + } + a = e.sibling; + e.sibling = c; + c = e; + e = a; + } + xj(b, !0, c, null, f); + break; + case "together": + xj(b, !1, null, null, void 0); + break; + default: + b.memoizedState = null; + } + return b.child; +} +function jj(a, b) { + 0 === (b.mode & 1) && null !== a && (a.alternate = null, b.alternate = null, b.flags |= 2); +} +function $i(a, b, c) { + null !== a && (b.dependencies = a.dependencies); + hh |= b.lanes; + if (0 === (c & b.childLanes)) return null; + if (null !== a && b.child !== a.child) throw Error(p(153)); + if (null !== b.child) { + a = b.child; + c = wh(a, a.pendingProps); + b.child = c; + for (c.return = b; null !== a.sibling;) a = a.sibling, c = c.sibling = wh(a, a.pendingProps), c.return = b; + c.sibling = null; + } + return b.child; +} +function zj(a, b, c) { + switch (b.tag) { + case 3: + lj(b); + Ig(); + break; + case 5: + Kh(b); + break; + case 1: + Zf(b.type) && cg(b); + break; + case 4: + Ih(b, b.stateNode.containerInfo); + break; + case 10: + var d = b.type._context, + e = b.memoizedProps.value; + G(Mg, d._currentValue); + d._currentValue = e; + break; + case 13: + d = b.memoizedState; + if (null !== d) { + if (null !== d.dehydrated) return G(M, M.current & 1), b.flags |= 128, null; + if (0 !== (c & b.child.childLanes)) return pj(a, b, c); + G(M, M.current & 1); + a = $i(a, b, c); + return null !== a ? a.sibling : null; + } + G(M, M.current & 1); + break; + case 19: + d = 0 !== (c & b.childLanes); + if (0 !== (a.flags & 128)) { + if (d) return yj(a, b, c); + b.flags |= 128; + } + e = b.memoizedState; + null !== e && (e.rendering = null, e.tail = null, e.lastEffect = null); + G(M, M.current); + if (d) break;else return null; + case 22: + case 23: + return b.lanes = 0, ej(a, b, c); + } + return $i(a, b, c); +} +var Aj, Bj, Cj, Dj; +Aj = function Aj(a, b) { + for (var c = b.child; null !== c;) { + if (5 === c.tag || 6 === c.tag) a.appendChild(c.stateNode);else if (4 !== c.tag && null !== c.child) { + c.child.return = c; + c = c.child; + continue; + } + if (c === b) break; + for (; null === c.sibling;) { + if (null === c.return || c.return === b) return; + c = c.return; + } + c.sibling.return = c.return; + c = c.sibling; + } +}; +Bj = function Bj() {}; +Cj = function Cj(a, b, c, d) { + var e = a.memoizedProps; + if (e !== d) { + a = b.stateNode; + Hh(Eh.current); + var f = null; + switch (c) { + case "input": + e = Ya(a, e); + d = Ya(a, d); + f = []; + break; + case "select": + e = A({}, e, { + value: void 0 + }); + d = A({}, d, { + value: void 0 + }); + f = []; + break; + case "textarea": + e = gb(a, e); + d = gb(a, d); + f = []; + break; + default: + "function" !== typeof e.onClick && "function" === typeof d.onClick && (a.onclick = Bf); + } + ub(c, d); + var g; + c = null; + for (l in e) if (!d.hasOwnProperty(l) && e.hasOwnProperty(l) && null != e[l]) if ("style" === l) { + var h = e[l]; + for (g in h) h.hasOwnProperty(g) && (c || (c = {}), c[g] = ""); + } else "dangerouslySetInnerHTML" !== l && "children" !== l && "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && "autoFocus" !== l && (ea.hasOwnProperty(l) ? f || (f = []) : (f = f || []).push(l, null)); + for (l in d) { + var k = d[l]; + h = null != e ? e[l] : void 0; + if (d.hasOwnProperty(l) && k !== h && (null != k || null != h)) if ("style" === l) { + if (h) { + for (g in h) !h.hasOwnProperty(g) || k && k.hasOwnProperty(g) || (c || (c = {}), c[g] = ""); + for (g in k) k.hasOwnProperty(g) && h[g] !== k[g] && (c || (c = {}), c[g] = k[g]); + } else c || (f || (f = []), f.push(l, c)), c = k; + } else "dangerouslySetInnerHTML" === l ? (k = k ? k.__html : void 0, h = h ? h.__html : void 0, null != k && h !== k && (f = f || []).push(l, k)) : "children" === l ? "string" !== typeof k && "number" !== typeof k || (f = f || []).push(l, "" + k) : "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && (ea.hasOwnProperty(l) ? (null != k && "onScroll" === l && D("scroll", a), f || h === k || (f = [])) : (f = f || []).push(l, k)); + } + c && (f = f || []).push("style", c); + var l = f; + if (b.updateQueue = l) b.flags |= 4; + } +}; +Dj = function Dj(a, b, c, d) { + c !== d && (b.flags |= 4); +}; +function Ej(a, b) { + if (!I) switch (a.tailMode) { + case "hidden": + b = a.tail; + for (var c = null; null !== b;) null !== b.alternate && (c = b), b = b.sibling; + null === c ? a.tail = null : c.sibling = null; + break; + case "collapsed": + c = a.tail; + for (var d = null; null !== c;) null !== c.alternate && (d = c), c = c.sibling; + null === d ? b || null === a.tail ? a.tail = null : a.tail.sibling = null : d.sibling = null; + } +} +function S(a) { + var b = null !== a.alternate && a.alternate.child === a.child, + c = 0, + d = 0; + if (b) for (var e = a.child; null !== e;) c |= e.lanes | e.childLanes, d |= e.subtreeFlags & 14680064, d |= e.flags & 14680064, e.return = a, e = e.sibling;else for (e = a.child; null !== e;) c |= e.lanes | e.childLanes, d |= e.subtreeFlags, d |= e.flags, e.return = a, e = e.sibling; + a.subtreeFlags |= d; + a.childLanes = c; + return b; +} +function Fj(a, b, c) { + var d = b.pendingProps; + wg(b); + switch (b.tag) { + case 2: + case 16: + case 15: + case 0: + case 11: + case 7: + case 8: + case 12: + case 9: + case 14: + return S(b), null; + case 1: + return Zf(b.type) && $f(), S(b), null; + case 3: + d = b.stateNode; + Jh(); + E(Wf); + E(H); + Oh(); + d.pendingContext && (d.context = d.pendingContext, d.pendingContext = null); + if (null === a || null === a.child) Gg(b) ? b.flags |= 4 : null === a || a.memoizedState.isDehydrated && 0 === (b.flags & 256) || (b.flags |= 1024, null !== zg && (Gj(zg), zg = null)); + Bj(a, b); + S(b); + return null; + case 5: + Lh(b); + var e = Hh(Gh.current); + c = b.type; + if (null !== a && null != b.stateNode) Cj(a, b, c, d, e), a.ref !== b.ref && (b.flags |= 512, b.flags |= 2097152);else { + if (!d) { + if (null === b.stateNode) throw Error(p(166)); + S(b); + return null; + } + a = Hh(Eh.current); + if (Gg(b)) { + d = b.stateNode; + c = b.type; + var f = b.memoizedProps; + d[Of] = b; + d[Pf] = f; + a = 0 !== (b.mode & 1); + switch (c) { + case "dialog": + D("cancel", d); + D("close", d); + break; + case "iframe": + case "object": + case "embed": + D("load", d); + break; + case "video": + case "audio": + for (e = 0; e < lf.length; e++) D(lf[e], d); + break; + case "source": + D("error", d); + break; + case "img": + case "image": + case "link": + D("error", d); + D("load", d); + break; + case "details": + D("toggle", d); + break; + case "input": + Za(d, f); + D("invalid", d); + break; + case "select": + d._wrapperState = { + wasMultiple: !!f.multiple + }; + D("invalid", d); + break; + case "textarea": + hb(d, f), D("invalid", d); + } + ub(c, f); + e = null; + for (var g in f) if (f.hasOwnProperty(g)) { + var h = f[g]; + "children" === g ? "string" === typeof h ? d.textContent !== h && (!0 !== f.suppressHydrationWarning && Af(d.textContent, h, a), e = ["children", h]) : "number" === typeof h && d.textContent !== "" + h && (!0 !== f.suppressHydrationWarning && Af(d.textContent, h, a), e = ["children", "" + h]) : ea.hasOwnProperty(g) && null != h && "onScroll" === g && D("scroll", d); + } + switch (c) { + case "input": + Va(d); + db(d, f, !0); + break; + case "textarea": + Va(d); + jb(d); + break; + case "select": + case "option": + break; + default: + "function" === typeof f.onClick && (d.onclick = Bf); + } + d = e; + b.updateQueue = d; + null !== d && (b.flags |= 4); + } else { + g = 9 === e.nodeType ? e : e.ownerDocument; + "http://www.w3.org/1999/xhtml" === a && (a = kb(c)); + "http://www.w3.org/1999/xhtml" === a ? "script" === c ? (a = g.createElement("div"), a.innerHTML = " + * ^ + * ``` + * + * @type {State} + */ + function continuationRawTagOpen(code) { + if (code === 47) { + effects.consume(code); + buffer = ''; + return continuationRawEndTag; + } + return continuation(code); + } + + /** + * In raw continuation, after ` | + * ^^^^^^ + * ``` + * + * @type {State} + */ + function continuationRawEndTag(code) { + if (code === 62) { + var name = buffer.toLowerCase(); + if (htmlRawNames.includes(name)) { + effects.consume(code); + return continuationClose; + } + return continuation(code); + } + if (asciiAlpha(code) && buffer.length < 8) { + effects.consume(code); + // @ts-expect-error: not null. + buffer += String.fromCharCode(code); + return continuationRawEndTag; + } + return continuation(code); + } + + /** + * In cdata continuation, after `]`, expecting `]>`. + * + * ```markdown + * > | &<]]> + * ^ + * ``` + * + * @type {State} + */ + function continuationCdataInside(code) { + if (code === 93) { + effects.consume(code); + return continuationDeclarationInside; + } + return continuation(code); + } + + /** + * In declaration or instruction continuation, at `>`. + * + * ```markdown + * > | + * ^ + * > | + * ^ + * > | + * ^ + * > | + * ^ + * > | &<]]> + * ^ + * ``` + * + * @type {State} + */ + function continuationDeclarationInside(code) { + if (code === 62) { + effects.consume(code); + return continuationClose; + } + + // More dashes. + if (code === 45 && marker === 2) { + effects.consume(code); + return continuationDeclarationInside; + } + return continuation(code); + } + + /** + * In closed continuation: everything we get until the eol/eof is part of it. + * + * ```markdown + * > | + * ^ + * ``` + * + * @type {State} + */ + function continuationClose(code) { + if (code === null || markdownLineEnding(code)) { + effects.exit('htmlFlowData'); + return continuationAfter(code); + } + effects.consume(code); + return continuationClose; + } + + /** + * Done. + * + * ```markdown + * > | + * ^ + * ``` + * + * @type {State} + */ + function continuationAfter(code) { + effects.exit('htmlFlow'); + // // Feel free to interrupt. + // tokenizer.interrupt = false + // // No longer concrete. + // tokenizer.concrete = false + return ok(code); + } +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeNonLazyContinuationStart(effects, ok, nok) { + var self = this; + return start; + + /** + * At eol, before continuation. + * + * ```markdown + * > | * ```js + * ^ + * | b + * ``` + * + * @type {State} + */ + function start(code) { + if (markdownLineEnding(code)) { + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return after; + } + return nok(code); + } + + /** + * A continuation. + * + * ```markdown + * | * ```js + * > | b + * ^ + * ``` + * + * @type {State} + */ + function after(code) { + return self.parser.lazy[self.now().line] ? nok(code) : ok(code); + } +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeBlankLineBefore(effects, ok, nok) { + return start; + + /** + * Before eol, expecting blank line. + * + * ```markdown + * > |
+ * ^ + * | + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return effects.attempt(blankLine, ok, nok); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/code-fenced.js +/** + * @typedef {import('micromark-util-types').Code} Code + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + +/** @type {Construct} */ +var nonLazyContinuation = { + tokenize: tokenizeNonLazyContinuation, + partial: true +}; + +/** @type {Construct} */ +var codeFenced = { + name: 'codeFenced', + tokenize: tokenizeCodeFenced, + concrete: true +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeCodeFenced(effects, ok, nok) { + var self = this; + /** @type {Construct} */ + var closeStart = { + tokenize: tokenizeCloseStart, + partial: true + }; + var initialPrefix = 0; + var sizeOpen = 0; + /** @type {NonNullable} */ + var marker; + return start; + + /** + * Start of code. + * + * ```markdown + * > | ~~~js + * ^ + * | alert(1) + * | ~~~ + * ``` + * + * @type {State} + */ + function start(code) { + // To do: parse whitespace like `markdown-rs`. + return beforeSequenceOpen(code); + } + + /** + * In opening fence, after prefix, at sequence. + * + * ```markdown + * > | ~~~js + * ^ + * | alert(1) + * | ~~~ + * ``` + * + * @type {State} + */ + function beforeSequenceOpen(code) { + var tail = self.events[self.events.length - 1]; + initialPrefix = tail && tail[1].type === 'linePrefix' ? tail[2].sliceSerialize(tail[1], true).length : 0; + marker = code; + effects.enter('codeFenced'); + effects.enter('codeFencedFence'); + effects.enter('codeFencedFenceSequence'); + return sequenceOpen(code); + } + + /** + * In opening fence sequence. + * + * ```markdown + * > | ~~~js + * ^ + * | alert(1) + * | ~~~ + * ``` + * + * @type {State} + */ + function sequenceOpen(code) { + if (code === marker) { + sizeOpen++; + effects.consume(code); + return sequenceOpen; + } + if (sizeOpen < 3) { + return nok(code); + } + effects.exit('codeFencedFenceSequence'); + return markdownSpace(code) ? factorySpace(effects, infoBefore, 'whitespace')(code) : infoBefore(code); + } + + /** + * In opening fence, after the sequence (and optional whitespace), before info. + * + * ```markdown + * > | ~~~js + * ^ + * | alert(1) + * | ~~~ + * ``` + * + * @type {State} + */ + function infoBefore(code) { + if (code === null || markdownLineEnding(code)) { + effects.exit('codeFencedFence'); + return self.interrupt ? ok(code) : effects.check(nonLazyContinuation, atNonLazyBreak, after)(code); + } + effects.enter('codeFencedFenceInfo'); + effects.enter('chunkString', { + contentType: 'string' + }); + return info(code); + } + + /** + * In info. + * + * ```markdown + * > | ~~~js + * ^ + * | alert(1) + * | ~~~ + * ``` + * + * @type {State} + */ + function info(code) { + if (code === null || markdownLineEnding(code)) { + effects.exit('chunkString'); + effects.exit('codeFencedFenceInfo'); + return infoBefore(code); + } + if (markdownSpace(code)) { + effects.exit('chunkString'); + effects.exit('codeFencedFenceInfo'); + return factorySpace(effects, metaBefore, 'whitespace')(code); + } + if (code === 96 && code === marker) { + return nok(code); + } + effects.consume(code); + return info; + } + + /** + * In opening fence, after info and whitespace, before meta. + * + * ```markdown + * > | ~~~js eval + * ^ + * | alert(1) + * | ~~~ + * ``` + * + * @type {State} + */ + function metaBefore(code) { + if (code === null || markdownLineEnding(code)) { + return infoBefore(code); + } + effects.enter('codeFencedFenceMeta'); + effects.enter('chunkString', { + contentType: 'string' + }); + return meta(code); + } + + /** + * In meta. + * + * ```markdown + * > | ~~~js eval + * ^ + * | alert(1) + * | ~~~ + * ``` + * + * @type {State} + */ + function meta(code) { + if (code === null || markdownLineEnding(code)) { + effects.exit('chunkString'); + effects.exit('codeFencedFenceMeta'); + return infoBefore(code); + } + if (code === 96 && code === marker) { + return nok(code); + } + effects.consume(code); + return meta; + } + + /** + * At eol/eof in code, before a non-lazy closing fence or content. + * + * ```markdown + * > | ~~~js + * ^ + * > | alert(1) + * ^ + * | ~~~ + * ``` + * + * @type {State} + */ + function atNonLazyBreak(code) { + return effects.attempt(closeStart, after, contentBefore)(code); + } + + /** + * Before code content, not a closing fence, at eol. + * + * ```markdown + * | ~~~js + * > | alert(1) + * ^ + * | ~~~ + * ``` + * + * @type {State} + */ + function contentBefore(code) { + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return contentStart; + } + + /** + * Before code content, not a closing fence. + * + * ```markdown + * | ~~~js + * > | alert(1) + * ^ + * | ~~~ + * ``` + * + * @type {State} + */ + function contentStart(code) { + return initialPrefix > 0 && markdownSpace(code) ? factorySpace(effects, beforeContentChunk, 'linePrefix', initialPrefix + 1)(code) : beforeContentChunk(code); + } + + /** + * Before code content, after optional prefix. + * + * ```markdown + * | ~~~js + * > | alert(1) + * ^ + * | ~~~ + * ``` + * + * @type {State} + */ + function beforeContentChunk(code) { + if (code === null || markdownLineEnding(code)) { + return effects.check(nonLazyContinuation, atNonLazyBreak, after)(code); + } + effects.enter('codeFlowValue'); + return contentChunk(code); + } + + /** + * In code content. + * + * ```markdown + * | ~~~js + * > | alert(1) + * ^^^^^^^^ + * | ~~~ + * ``` + * + * @type {State} + */ + function contentChunk(code) { + if (code === null || markdownLineEnding(code)) { + effects.exit('codeFlowValue'); + return beforeContentChunk(code); + } + effects.consume(code); + return contentChunk; + } + + /** + * After code. + * + * ```markdown + * | ~~~js + * | alert(1) + * > | ~~~ + * ^ + * ``` + * + * @type {State} + */ + function after(code) { + effects.exit('codeFenced'); + return ok(code); + } + + /** + * @this {TokenizeContext} + * @type {Tokenizer} + */ + function tokenizeCloseStart(effects, ok, nok) { + var size = 0; + return startBefore; + + /** + * + * + * @type {State} + */ + function startBefore(code) { + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return start; + } + + /** + * Before closing fence, at optional whitespace. + * + * ```markdown + * | ~~~js + * | alert(1) + * > | ~~~ + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + // Always populated by defaults. + + // To do: `enter` here or in next state? + effects.enter('codeFencedFence'); + return markdownSpace(code) ? factorySpace(effects, beforeSequenceClose, 'linePrefix', self.parser.constructs.disable.null.includes('codeIndented') ? undefined : 4)(code) : beforeSequenceClose(code); + } + + /** + * In closing fence, after optional whitespace, at sequence. + * + * ```markdown + * | ~~~js + * | alert(1) + * > | ~~~ + * ^ + * ``` + * + * @type {State} + */ + function beforeSequenceClose(code) { + if (code === marker) { + effects.enter('codeFencedFenceSequence'); + return sequenceClose(code); + } + return nok(code); + } + + /** + * In closing fence sequence. + * + * ```markdown + * | ~~~js + * | alert(1) + * > | ~~~ + * ^ + * ``` + * + * @type {State} + */ + function sequenceClose(code) { + if (code === marker) { + size++; + effects.consume(code); + return sequenceClose; + } + if (size >= sizeOpen) { + effects.exit('codeFencedFenceSequence'); + return markdownSpace(code) ? factorySpace(effects, sequenceCloseAfter, 'whitespace')(code) : sequenceCloseAfter(code); + } + return nok(code); + } + + /** + * After closing fence sequence, after optional whitespace. + * + * ```markdown + * | ~~~js + * | alert(1) + * > | ~~~ + * ^ + * ``` + * + * @type {State} + */ + function sequenceCloseAfter(code) { + if (code === null || markdownLineEnding(code)) { + effects.exit('codeFencedFence'); + return ok(code); + } + return nok(code); + } + } +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeNonLazyContinuation(effects, ok, nok) { + var self = this; + return start; + + /** + * + * + * @type {State} + */ + function start(code) { + if (code === null) { + return nok(code); + } + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return lineStart; + } + + /** + * + * + * @type {State} + */ + function lineStart(code) { + return self.parser.lazy[self.now().line] ? nok(code) : ok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/decode-named-character-reference/index.dom.js +/// + +/* eslint-env browser */ + +var index_dom_element = document.createElement('i'); + +/** + * @param {string} value + * @returns {string|false} + */ +function decodeNamedCharacterReference(value) { + var characterReference = '&' + value + ';'; + index_dom_element.innerHTML = characterReference; + var char = index_dom_element.textContent; + + // Some named character references do not require the closing semicolon + // (`¬`, for instance), which leads to situations where parsing the assumed + // named reference of `¬it;` will result in the string `¬it;`. + // When we encounter a trailing semicolon after parsing, and the character + // reference to decode was not a semicolon (`;`), we can assume that the + // matching was not complete. + // @ts-expect-error: TypeScript is wrong that `textContent` on elements can + // yield `null`. + if (char.charCodeAt(char.length - 1) === 59 /* `;` */ && value !== 'semi') { + return false; + } + + // If the decoded string is equal to the input, the character reference was + // not valid. + // @ts-expect-error: TypeScript is wrong that `textContent` on elements can + // yield `null`. + return char === characterReference ? false : char; +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/character-reference.js +/** + * @typedef {import('micromark-util-types').Code} Code + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + +/** @type {Construct} */ +var characterReference = { + name: 'characterReference', + tokenize: tokenizeCharacterReference +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeCharacterReference(effects, ok, nok) { + var self = this; + var size = 0; + /** @type {number} */ + var max; + /** @type {(code: Code) => boolean} */ + var test; + return start; + + /** + * Start of character reference. + * + * ```markdown + * > | a&b + * ^ + * > | a{b + * ^ + * > | a b + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('characterReference'); + effects.enter('characterReferenceMarker'); + effects.consume(code); + effects.exit('characterReferenceMarker'); + return open; + } + + /** + * After `&`, at `#` for numeric references or alphanumeric for named + * references. + * + * ```markdown + * > | a&b + * ^ + * > | a{b + * ^ + * > | a b + * ^ + * ``` + * + * @type {State} + */ + function open(code) { + if (code === 35) { + effects.enter('characterReferenceMarkerNumeric'); + effects.consume(code); + effects.exit('characterReferenceMarkerNumeric'); + return numeric; + } + effects.enter('characterReferenceValue'); + max = 31; + test = asciiAlphanumeric; + return value(code); + } + + /** + * After `#`, at `x` for hexadecimals or digit for decimals. + * + * ```markdown + * > | a{b + * ^ + * > | a b + * ^ + * ``` + * + * @type {State} + */ + function numeric(code) { + if (code === 88 || code === 120) { + effects.enter('characterReferenceMarkerHexadecimal'); + effects.consume(code); + effects.exit('characterReferenceMarkerHexadecimal'); + effects.enter('characterReferenceValue'); + max = 6; + test = asciiHexDigit; + return value; + } + effects.enter('characterReferenceValue'); + max = 7; + test = asciiDigit; + return value(code); + } + + /** + * After markers (`&#x`, `&#`, or `&`), in value, before `;`. + * + * The character reference kind defines what and how many characters are + * allowed. + * + * ```markdown + * > | a&b + * ^^^ + * > | a{b + * ^^^ + * > | a b + * ^ + * ``` + * + * @type {State} + */ + function value(code) { + if (code === 59 && size) { + var token = effects.exit('characterReferenceValue'); + if (test === asciiAlphanumeric && !decodeNamedCharacterReference(self.sliceSerialize(token))) { + return nok(code); + } + + // To do: `markdown-rs` uses a different name: + // `CharacterReferenceMarkerSemi`. + effects.enter('characterReferenceMarker'); + effects.consume(code); + effects.exit('characterReferenceMarker'); + effects.exit('characterReference'); + return ok; + } + if (test(code) && size++ < max) { + effects.consume(code); + return value; + } + return nok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/character-escape.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + +/** @type {Construct} */ +var characterEscape = { + name: 'characterEscape', + tokenize: tokenizeCharacterEscape +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeCharacterEscape(effects, ok, nok) { + return start; + + /** + * Start of character escape. + * + * ```markdown + * > | a\*b + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('characterEscape'); + effects.enter('escapeMarker'); + effects.consume(code); + effects.exit('escapeMarker'); + return inside; + } + + /** + * After `\`, at punctuation. + * + * ```markdown + * > | a\*b + * ^ + * ``` + * + * @type {State} + */ + function inside(code) { + // ASCII punctuation. + if (asciiPunctuation(code)) { + effects.enter('characterEscapeValue'); + effects.consume(code); + effects.exit('characterEscapeValue'); + effects.exit('characterEscape'); + return ok; + } + return nok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/line-ending.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + +/** @type {Construct} */ +var lineEnding = { + name: 'lineEnding', + tokenize: tokenizeLineEnding +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeLineEnding(effects, ok) { + return start; + + /** @type {State} */ + function start(code) { + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return factorySpace(effects, ok, 'linePrefix'); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/label-end.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').Event} Event + * @typedef {import('micromark-util-types').Resolver} Resolver + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').Token} Token + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + + + + + + + +/** @type {Construct} */ +var labelEnd = { + name: 'labelEnd', + tokenize: tokenizeLabelEnd, + resolveTo: resolveToLabelEnd, + resolveAll: resolveAllLabelEnd +}; + +/** @type {Construct} */ +var resourceConstruct = { + tokenize: tokenizeResource +}; +/** @type {Construct} */ +var referenceFullConstruct = { + tokenize: tokenizeReferenceFull +}; +/** @type {Construct} */ +var referenceCollapsedConstruct = { + tokenize: tokenizeReferenceCollapsed +}; + +/** @type {Resolver} */ +function resolveAllLabelEnd(events) { + var index = -1; + while (++index < events.length) { + var token = events[index][1]; + if (token.type === 'labelImage' || token.type === 'labelLink' || token.type === 'labelEnd') { + // Remove the marker. + events.splice(index + 1, token.type === 'labelImage' ? 4 : 2); + token.type = 'data'; + index++; + } + } + return events; +} + +/** @type {Resolver} */ +function resolveToLabelEnd(events, context) { + var index = events.length; + var offset = 0; + /** @type {Token} */ + var token; + /** @type {number | undefined} */ + var open; + /** @type {number | undefined} */ + var close; + /** @type {Array} */ + var media; + + // Find an opening. + while (index--) { + token = events[index][1]; + if (open) { + // If we see another link, or inactive link label, we’ve been here before. + if (token.type === 'link' || token.type === 'labelLink' && token._inactive) { + break; + } + + // Mark other link openings as inactive, as we can’t have links in + // links. + if (events[index][0] === 'enter' && token.type === 'labelLink') { + token._inactive = true; + } + } else if (close) { + if (events[index][0] === 'enter' && (token.type === 'labelImage' || token.type === 'labelLink') && !token._balanced) { + open = index; + if (token.type !== 'labelLink') { + offset = 2; + break; + } + } + } else if (token.type === 'labelEnd') { + close = index; + } + } + var group = { + type: events[open][1].type === 'labelLink' ? 'link' : 'image', + start: Object.assign({}, events[open][1].start), + end: Object.assign({}, events[events.length - 1][1].end) + }; + var label = { + type: 'label', + start: Object.assign({}, events[open][1].start), + end: Object.assign({}, events[close][1].end) + }; + var text = { + type: 'labelText', + start: Object.assign({}, events[open + offset + 2][1].end), + end: Object.assign({}, events[close - 2][1].start) + }; + media = [['enter', group, context], ['enter', label, context]]; + + // Opening marker. + media = push(media, events.slice(open + 1, open + offset + 3)); + + // Text open. + media = push(media, [['enter', text, context]]); + + // Always populated by defaults. + + // Between. + media = push(media, resolveAll(context.parser.constructs.insideSpan.null, events.slice(open + offset + 4, close - 3), context)); + + // Text close, marker close, label close. + media = push(media, [['exit', text, context], events[close - 2], events[close - 1], ['exit', label, context]]); + + // Reference, resource, or so. + media = push(media, events.slice(close + 1)); + + // Media close. + media = push(media, [['exit', group, context]]); + splice(events, open, events.length, media); + return events; +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeLabelEnd(effects, ok, nok) { + var self = this; + var index = self.events.length; + /** @type {Token} */ + var labelStart; + /** @type {boolean} */ + var defined; + + // Find an opening. + while (index--) { + if ((self.events[index][1].type === 'labelImage' || self.events[index][1].type === 'labelLink') && !self.events[index][1]._balanced) { + labelStart = self.events[index][1]; + break; + } + } + return start; + + /** + * Start of label end. + * + * ```markdown + * > | [a](b) c + * ^ + * > | [a][b] c + * ^ + * > | [a][] b + * ^ + * > | [a] b + * ``` + * + * @type {State} + */ + function start(code) { + // If there is not an okay opening. + if (!labelStart) { + return nok(code); + } + + // If the corresponding label (link) start is marked as inactive, + // it means we’d be wrapping a link, like this: + // + // ```markdown + // > | a [b [c](d) e](f) g. + // ^ + // ``` + // + // We can’t have that, so it’s just balanced brackets. + if (labelStart._inactive) { + return labelEndNok(code); + } + defined = self.parser.defined.includes(normalizeIdentifier(self.sliceSerialize({ + start: labelStart.end, + end: self.now() + }))); + effects.enter('labelEnd'); + effects.enter('labelMarker'); + effects.consume(code); + effects.exit('labelMarker'); + effects.exit('labelEnd'); + return after; + } + + /** + * After `]`. + * + * ```markdown + * > | [a](b) c + * ^ + * > | [a][b] c + * ^ + * > | [a][] b + * ^ + * > | [a] b + * ^ + * ``` + * + * @type {State} + */ + function after(code) { + // Note: `markdown-rs` also parses GFM footnotes here, which for us is in + // an extension. + + // Resource (`[asd](fgh)`)? + if (code === 40) { + return effects.attempt(resourceConstruct, labelEndOk, defined ? labelEndOk : labelEndNok)(code); + } + + // Full (`[asd][fgh]`) or collapsed (`[asd][]`) reference? + if (code === 91) { + return effects.attempt(referenceFullConstruct, labelEndOk, defined ? referenceNotFull : labelEndNok)(code); + } + + // Shortcut (`[asd]`) reference? + return defined ? labelEndOk(code) : labelEndNok(code); + } + + /** + * After `]`, at `[`, but not at a full reference. + * + * > 👉 **Note**: we only get here if the label is defined. + * + * ```markdown + * > | [a][] b + * ^ + * > | [a] b + * ^ + * ``` + * + * @type {State} + */ + function referenceNotFull(code) { + return effects.attempt(referenceCollapsedConstruct, labelEndOk, labelEndNok)(code); + } + + /** + * Done, we found something. + * + * ```markdown + * > | [a](b) c + * ^ + * > | [a][b] c + * ^ + * > | [a][] b + * ^ + * > | [a] b + * ^ + * ``` + * + * @type {State} + */ + function labelEndOk(code) { + // Note: `markdown-rs` does a bunch of stuff here. + return ok(code); + } + + /** + * Done, it’s nothing. + * + * There was an okay opening, but we didn’t match anything. + * + * ```markdown + * > | [a](b c + * ^ + * > | [a][b c + * ^ + * > | [a] b + * ^ + * ``` + * + * @type {State} + */ + function labelEndNok(code) { + labelStart._balanced = true; + return nok(code); + } +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeResource(effects, ok, nok) { + return resourceStart; + + /** + * At a resource. + * + * ```markdown + * > | [a](b) c + * ^ + * ``` + * + * @type {State} + */ + function resourceStart(code) { + effects.enter('resource'); + effects.enter('resourceMarker'); + effects.consume(code); + effects.exit('resourceMarker'); + return resourceBefore; + } + + /** + * In resource, after `(`, at optional whitespace. + * + * ```markdown + * > | [a](b) c + * ^ + * ``` + * + * @type {State} + */ + function resourceBefore(code) { + return markdownLineEndingOrSpace(code) ? factoryWhitespace(effects, resourceOpen)(code) : resourceOpen(code); + } + + /** + * In resource, after optional whitespace, at `)` or a destination. + * + * ```markdown + * > | [a](b) c + * ^ + * ``` + * + * @type {State} + */ + function resourceOpen(code) { + if (code === 41) { + return resourceEnd(code); + } + return factoryDestination(effects, resourceDestinationAfter, resourceDestinationMissing, 'resourceDestination', 'resourceDestinationLiteral', 'resourceDestinationLiteralMarker', 'resourceDestinationRaw', 'resourceDestinationString', 32)(code); + } + + /** + * In resource, after destination, at optional whitespace. + * + * ```markdown + * > | [a](b) c + * ^ + * ``` + * + * @type {State} + */ + function resourceDestinationAfter(code) { + return markdownLineEndingOrSpace(code) ? factoryWhitespace(effects, resourceBetween)(code) : resourceEnd(code); + } + + /** + * At invalid destination. + * + * ```markdown + * > | [a](<<) b + * ^ + * ``` + * + * @type {State} + */ + function resourceDestinationMissing(code) { + return nok(code); + } + + /** + * In resource, after destination and whitespace, at `(` or title. + * + * ```markdown + * > | [a](b ) c + * ^ + * ``` + * + * @type {State} + */ + function resourceBetween(code) { + if (code === 34 || code === 39 || code === 40) { + return factoryTitle(effects, resourceTitleAfter, nok, 'resourceTitle', 'resourceTitleMarker', 'resourceTitleString')(code); + } + return resourceEnd(code); + } + + /** + * In resource, after title, at optional whitespace. + * + * ```markdown + * > | [a](b "c") d + * ^ + * ``` + * + * @type {State} + */ + function resourceTitleAfter(code) { + return markdownLineEndingOrSpace(code) ? factoryWhitespace(effects, resourceEnd)(code) : resourceEnd(code); + } + + /** + * In resource, at `)`. + * + * ```markdown + * > | [a](b) d + * ^ + * ``` + * + * @type {State} + */ + function resourceEnd(code) { + if (code === 41) { + effects.enter('resourceMarker'); + effects.consume(code); + effects.exit('resourceMarker'); + effects.exit('resource'); + return ok; + } + return nok(code); + } +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeReferenceFull(effects, ok, nok) { + var self = this; + return referenceFull; + + /** + * In a reference (full), at the `[`. + * + * ```markdown + * > | [a][b] d + * ^ + * ``` + * + * @type {State} + */ + function referenceFull(code) { + return factoryLabel.call(self, effects, referenceFullAfter, referenceFullMissing, 'reference', 'referenceMarker', 'referenceString')(code); + } + + /** + * In a reference (full), after `]`. + * + * ```markdown + * > | [a][b] d + * ^ + * ``` + * + * @type {State} + */ + function referenceFullAfter(code) { + return self.parser.defined.includes(normalizeIdentifier(self.sliceSerialize(self.events[self.events.length - 1][1]).slice(1, -1))) ? ok(code) : nok(code); + } + + /** + * In reference (full) that was missing. + * + * ```markdown + * > | [a][b d + * ^ + * ``` + * + * @type {State} + */ + function referenceFullMissing(code) { + return nok(code); + } +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeReferenceCollapsed(effects, ok, nok) { + return referenceCollapsedStart; + + /** + * In reference (collapsed), at `[`. + * + * > 👉 **Note**: we only get here if the label is defined. + * + * ```markdown + * > | [a][] d + * ^ + * ``` + * + * @type {State} + */ + function referenceCollapsedStart(code) { + // We only attempt a collapsed label if there’s a `[`. + + effects.enter('reference'); + effects.enter('referenceMarker'); + effects.consume(code); + effects.exit('referenceMarker'); + return referenceCollapsedOpen; + } + + /** + * In reference (collapsed), at `]`. + * + * > 👉 **Note**: we only get here if the label is defined. + * + * ```markdown + * > | [a][] d + * ^ + * ``` + * + * @type {State} + */ + function referenceCollapsedOpen(code) { + if (code === 93) { + effects.enter('referenceMarker'); + effects.consume(code); + effects.exit('referenceMarker'); + effects.exit('reference'); + return ok; + } + return nok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/label-start-image.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + +/** @type {Construct} */ +var labelStartImage = { + name: 'labelStartImage', + tokenize: tokenizeLabelStartImage, + resolveAll: labelEnd.resolveAll +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeLabelStartImage(effects, ok, nok) { + var self = this; + return start; + + /** + * Start of label (image) start. + * + * ```markdown + * > | a ![b] c + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('labelImage'); + effects.enter('labelImageMarker'); + effects.consume(code); + effects.exit('labelImageMarker'); + return open; + } + + /** + * After `!`, at `[`. + * + * ```markdown + * > | a ![b] c + * ^ + * ``` + * + * @type {State} + */ + function open(code) { + if (code === 91) { + effects.enter('labelMarker'); + effects.consume(code); + effects.exit('labelMarker'); + effects.exit('labelImage'); + return after; + } + return nok(code); + } + + /** + * After `![`. + * + * ```markdown + * > | a ![b] c + * ^ + * ``` + * + * This is needed in because, when GFM footnotes are enabled, images never + * form when started with a `^`. + * Instead, links form: + * + * ```markdown + * ![^a](b) + * + * ![^a][b] + * + * [b]: c + * ``` + * + * ```html + *

!^a

+ *

!^a

+ * ``` + * + * @type {State} + */ + function after(code) { + // To do: use a new field to do this, this is still needed for + // `micromark-extension-gfm-footnote`, but the `label-start-link` + // behavior isn’t. + // Hidden footnotes hook. + /* c8 ignore next 3 */ + return code === 94 && '_hiddenFootnoteSupport' in self.parser.constructs ? nok(code) : ok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-util-classify-character/index.js +/** + * @typedef {import('micromark-util-types').Code} Code + */ + + +/** + * Classify whether a code represents whitespace, punctuation, or something + * else. + * + * Used for attention (emphasis, strong), whose sequences can open or close + * based on the class of surrounding characters. + * + * > 👉 **Note**: eof (`null`) is seen as whitespace. + * + * @param {Code} code + * Code. + * @returns {typeof constants.characterGroupWhitespace | typeof constants.characterGroupPunctuation | undefined} + * Group. + */ +function classifyCharacter(code) { + if (code === null || markdownLineEndingOrSpace(code) || unicodeWhitespace(code)) { + return 1; + } + if (unicodePunctuation(code)) { + return 2; + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/attention.js +/** + * @typedef {import('micromark-util-types').Code} Code + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').Event} Event + * @typedef {import('micromark-util-types').Point} Point + * @typedef {import('micromark-util-types').Resolver} Resolver + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').Token} Token + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + + +/** @type {Construct} */ +var attention = { + name: 'attention', + tokenize: tokenizeAttention, + resolveAll: resolveAllAttention +}; + +/** + * Take all events and resolve attention to emphasis or strong. + * + * @type {Resolver} + */ +function resolveAllAttention(events, context) { + var index = -1; + /** @type {number} */ + var open; + /** @type {Token} */ + var group; + /** @type {Token} */ + var text; + /** @type {Token} */ + var openingSequence; + /** @type {Token} */ + var closingSequence; + /** @type {number} */ + var use; + /** @type {Array} */ + var nextEvents; + /** @type {number} */ + var offset; + + // Walk through all events. + // + // Note: performance of this is fine on an mb of normal markdown, but it’s + // a bottleneck for malicious stuff. + while (++index < events.length) { + // Find a token that can close. + if (events[index][0] === 'enter' && events[index][1].type === 'attentionSequence' && events[index][1]._close) { + open = index; + + // Now walk back to find an opener. + while (open--) { + // Find a token that can open the closer. + if (events[open][0] === 'exit' && events[open][1].type === 'attentionSequence' && events[open][1]._open && + // If the markers are the same: + context.sliceSerialize(events[open][1]).charCodeAt(0) === context.sliceSerialize(events[index][1]).charCodeAt(0)) { + // If the opening can close or the closing can open, + // and the close size *is not* a multiple of three, + // but the sum of the opening and closing size *is* multiple of three, + // then don’t match. + if ((events[open][1]._close || events[index][1]._open) && (events[index][1].end.offset - events[index][1].start.offset) % 3 && !((events[open][1].end.offset - events[open][1].start.offset + events[index][1].end.offset - events[index][1].start.offset) % 3)) { + continue; + } + + // Number of markers to use from the sequence. + use = events[open][1].end.offset - events[open][1].start.offset > 1 && events[index][1].end.offset - events[index][1].start.offset > 1 ? 2 : 1; + var start = Object.assign({}, events[open][1].end); + var end = Object.assign({}, events[index][1].start); + movePoint(start, -use); + movePoint(end, use); + openingSequence = { + type: use > 1 ? 'strongSequence' : 'emphasisSequence', + start: start, + end: Object.assign({}, events[open][1].end) + }; + closingSequence = { + type: use > 1 ? 'strongSequence' : 'emphasisSequence', + start: Object.assign({}, events[index][1].start), + end: end + }; + text = { + type: use > 1 ? 'strongText' : 'emphasisText', + start: Object.assign({}, events[open][1].end), + end: Object.assign({}, events[index][1].start) + }; + group = { + type: use > 1 ? 'strong' : 'emphasis', + start: Object.assign({}, openingSequence.start), + end: Object.assign({}, closingSequence.end) + }; + events[open][1].end = Object.assign({}, openingSequence.start); + events[index][1].start = Object.assign({}, closingSequence.end); + nextEvents = []; + + // If there are more markers in the opening, add them before. + if (events[open][1].end.offset - events[open][1].start.offset) { + nextEvents = push(nextEvents, [['enter', events[open][1], context], ['exit', events[open][1], context]]); + } + + // Opening. + nextEvents = push(nextEvents, [['enter', group, context], ['enter', openingSequence, context], ['exit', openingSequence, context], ['enter', text, context]]); + + // Always populated by defaults. + + // Between. + nextEvents = push(nextEvents, resolveAll(context.parser.constructs.insideSpan.null, events.slice(open + 1, index), context)); + + // Closing. + nextEvents = push(nextEvents, [['exit', text, context], ['enter', closingSequence, context], ['exit', closingSequence, context], ['exit', group, context]]); + + // If there are more markers in the closing, add them after. + if (events[index][1].end.offset - events[index][1].start.offset) { + offset = 2; + nextEvents = push(nextEvents, [['enter', events[index][1], context], ['exit', events[index][1], context]]); + } else { + offset = 0; + } + splice(events, open - 1, index - open + 3, nextEvents); + index = open + nextEvents.length - offset - 2; + break; + } + } + } + } + + // Remove remaining sequences. + index = -1; + while (++index < events.length) { + if (events[index][1].type === 'attentionSequence') { + events[index][1].type = 'data'; + } + } + return events; +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeAttention(effects, ok) { + var attentionMarkers = this.parser.constructs.attentionMarkers.null; + var previous = this.previous; + var before = classifyCharacter(previous); + + /** @type {NonNullable} */ + var marker; + return start; + + /** + * Before a sequence. + * + * ```markdown + * > | ** + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + marker = code; + effects.enter('attentionSequence'); + return inside(code); + } + + /** + * In a sequence. + * + * ```markdown + * > | ** + * ^^ + * ``` + * + * @type {State} + */ + function inside(code) { + if (code === marker) { + effects.consume(code); + return inside; + } + var token = effects.exit('attentionSequence'); + + // To do: next major: move this to resolver, just like `markdown-rs`. + var after = classifyCharacter(code); + + // Always populated by defaults. + + var open = !after || after === 2 && before || attentionMarkers.includes(code); + var close = !before || before === 2 && after || attentionMarkers.includes(previous); + token._open = Boolean(marker === 42 ? open : open && (before || !close)); + token._close = Boolean(marker === 42 ? close : close && (after || !open)); + return ok(code); + } +} + +/** + * Move a point a bit. + * + * Note: `move` only works inside lines! It’s not possible to move past other + * chunks (replacement characters, tabs, or line endings). + * + * @param {Point} point + * @param {number} offset + * @returns {void} + */ +function movePoint(point, offset) { + point.column += offset; + point.offset += offset; + point._bufferIndex += offset; +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/autolink.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + +/** @type {Construct} */ +var autolink = { + name: 'autolink', + tokenize: tokenizeAutolink +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeAutolink(effects, ok, nok) { + var size = 0; + return start; + + /** + * Start of an autolink. + * + * ```markdown + * > | ab + * ^ + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('autolink'); + effects.enter('autolinkMarker'); + effects.consume(code); + effects.exit('autolinkMarker'); + effects.enter('autolinkProtocol'); + return open; + } + + /** + * After `<`, at protocol or atext. + * + * ```markdown + * > | ab + * ^ + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function open(code) { + if (asciiAlpha(code)) { + effects.consume(code); + return schemeOrEmailAtext; + } + return emailAtext(code); + } + + /** + * At second byte of protocol or atext. + * + * ```markdown + * > | ab + * ^ + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function schemeOrEmailAtext(code) { + // ASCII alphanumeric and `+`, `-`, and `.`. + if (code === 43 || code === 45 || code === 46 || asciiAlphanumeric(code)) { + // Count the previous alphabetical from `open` too. + size = 1; + return schemeInsideOrEmailAtext(code); + } + return emailAtext(code); + } + + /** + * In ambiguous protocol or atext. + * + * ```markdown + * > | ab + * ^ + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function schemeInsideOrEmailAtext(code) { + if (code === 58) { + effects.consume(code); + size = 0; + return urlInside; + } + + // ASCII alphanumeric and `+`, `-`, and `.`. + if ((code === 43 || code === 45 || code === 46 || asciiAlphanumeric(code)) && size++ < 32) { + effects.consume(code); + return schemeInsideOrEmailAtext; + } + size = 0; + return emailAtext(code); + } + + /** + * After protocol, in URL. + * + * ```markdown + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function urlInside(code) { + if (code === 62) { + effects.exit('autolinkProtocol'); + effects.enter('autolinkMarker'); + effects.consume(code); + effects.exit('autolinkMarker'); + effects.exit('autolink'); + return ok; + } + + // ASCII control, space, or `<`. + if (code === null || code === 32 || code === 60 || asciiControl(code)) { + return nok(code); + } + effects.consume(code); + return urlInside; + } + + /** + * In email atext. + * + * ```markdown + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function emailAtext(code) { + if (code === 64) { + effects.consume(code); + return emailAtSignOrDot; + } + if (asciiAtext(code)) { + effects.consume(code); + return emailAtext; + } + return nok(code); + } + + /** + * In label, after at-sign or dot. + * + * ```markdown + * > | ab + * ^ ^ + * ``` + * + * @type {State} + */ + function emailAtSignOrDot(code) { + return asciiAlphanumeric(code) ? emailLabel(code) : nok(code); + } + + /** + * In label, where `.` and `>` are allowed. + * + * ```markdown + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function emailLabel(code) { + if (code === 46) { + effects.consume(code); + size = 0; + return emailAtSignOrDot; + } + if (code === 62) { + // Exit, then change the token type. + effects.exit('autolinkProtocol').type = 'autolinkEmail'; + effects.enter('autolinkMarker'); + effects.consume(code); + effects.exit('autolinkMarker'); + effects.exit('autolink'); + return ok; + } + return emailValue(code); + } + + /** + * In label, where `.` and `>` are *not* allowed. + * + * Though, this is also used in `emailLabel` to parse other values. + * + * ```markdown + * > | ab + * ^ + * ``` + * + * @type {State} + */ + function emailValue(code) { + // ASCII alphanumeric or `-`. + if ((code === 45 || asciiAlphanumeric(code)) && size++ < 63) { + var next = code === 45 ? emailValue : emailLabel; + effects.consume(code); + return next; + } + return nok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/html-text.js +/** + * @typedef {import('micromark-util-types').Code} Code + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + +/** @type {Construct} */ +var htmlText = { + name: 'htmlText', + tokenize: tokenizeHtmlText +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeHtmlText(effects, ok, nok) { + var self = this; + /** @type {NonNullable | undefined} */ + var marker; + /** @type {number} */ + var index; + /** @type {State} */ + var returnState; + return start; + + /** + * Start of HTML (text). + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('htmlText'); + effects.enter('htmlTextData'); + effects.consume(code); + return open; + } + + /** + * After `<`, at tag name or other stuff. + * + * ```markdown + * > | a c + * ^ + * > | a c + * ^ + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function open(code) { + if (code === 33) { + effects.consume(code); + return declarationOpen; + } + if (code === 47) { + effects.consume(code); + return tagCloseStart; + } + if (code === 63) { + effects.consume(code); + return instruction; + } + + // ASCII alphabetical. + if (asciiAlpha(code)) { + effects.consume(code); + return tagOpen; + } + return nok(code); + } + + /** + * After ` | a c + * ^ + * > | a c + * ^ + * > | a &<]]> c + * ^ + * ``` + * + * @type {State} + */ + function declarationOpen(code) { + if (code === 45) { + effects.consume(code); + return commentOpenInside; + } + if (code === 91) { + effects.consume(code); + index = 0; + return cdataOpenInside; + } + if (asciiAlpha(code)) { + effects.consume(code); + return declaration; + } + return nok(code); + } + + /** + * In a comment, after ` | a c + * ^ + * ``` + * + * @type {State} + */ + function commentOpenInside(code) { + if (code === 45) { + effects.consume(code); + return commentEnd; + } + return nok(code); + } + + /** + * In comment. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function comment(code) { + if (code === null) { + return nok(code); + } + if (code === 45) { + effects.consume(code); + return commentClose; + } + if (markdownLineEnding(code)) { + returnState = comment; + return lineEndingBefore(code); + } + effects.consume(code); + return comment; + } + + /** + * In comment, after `-`. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function commentClose(code) { + if (code === 45) { + effects.consume(code); + return commentEnd; + } + return comment(code); + } + + /** + * In comment, after `--`. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function commentEnd(code) { + return code === 62 ? end(code) : code === 45 ? commentClose(code) : comment(code); + } + + /** + * After ` | a &<]]> b + * ^^^^^^ + * ``` + * + * @type {State} + */ + function cdataOpenInside(code) { + var value = 'CDATA['; + if (code === value.charCodeAt(index++)) { + effects.consume(code); + return index === value.length ? cdata : cdataOpenInside; + } + return nok(code); + } + + /** + * In CDATA. + * + * ```markdown + * > | a &<]]> b + * ^^^ + * ``` + * + * @type {State} + */ + function cdata(code) { + if (code === null) { + return nok(code); + } + if (code === 93) { + effects.consume(code); + return cdataClose; + } + if (markdownLineEnding(code)) { + returnState = cdata; + return lineEndingBefore(code); + } + effects.consume(code); + return cdata; + } + + /** + * In CDATA, after `]`, at another `]`. + * + * ```markdown + * > | a &<]]> b + * ^ + * ``` + * + * @type {State} + */ + function cdataClose(code) { + if (code === 93) { + effects.consume(code); + return cdataEnd; + } + return cdata(code); + } + + /** + * In CDATA, after `]]`, at `>`. + * + * ```markdown + * > | a &<]]> b + * ^ + * ``` + * + * @type {State} + */ + function cdataEnd(code) { + if (code === 62) { + return end(code); + } + if (code === 93) { + effects.consume(code); + return cdataEnd; + } + return cdata(code); + } + + /** + * In declaration. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function declaration(code) { + if (code === null || code === 62) { + return end(code); + } + if (markdownLineEnding(code)) { + returnState = declaration; + return lineEndingBefore(code); + } + effects.consume(code); + return declaration; + } + + /** + * In instruction. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function instruction(code) { + if (code === null) { + return nok(code); + } + if (code === 63) { + effects.consume(code); + return instructionClose; + } + if (markdownLineEnding(code)) { + returnState = instruction; + return lineEndingBefore(code); + } + effects.consume(code); + return instruction; + } + + /** + * In instruction, after `?`, at `>`. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function instructionClose(code) { + return code === 62 ? end(code) : instruction(code); + } + + /** + * After ` | a c + * ^ + * ``` + * + * @type {State} + */ + function tagCloseStart(code) { + // ASCII alphabetical. + if (asciiAlpha(code)) { + effects.consume(code); + return tagClose; + } + return nok(code); + } + + /** + * After ` | a c + * ^ + * ``` + * + * @type {State} + */ + function tagClose(code) { + // ASCII alphanumerical and `-`. + if (code === 45 || asciiAlphanumeric(code)) { + effects.consume(code); + return tagClose; + } + return tagCloseBetween(code); + } + + /** + * In closing tag, after tag name. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function tagCloseBetween(code) { + if (markdownLineEnding(code)) { + returnState = tagCloseBetween; + return lineEndingBefore(code); + } + if (markdownSpace(code)) { + effects.consume(code); + return tagCloseBetween; + } + return end(code); + } + + /** + * After ` | a c + * ^ + * ``` + * + * @type {State} + */ + function tagOpen(code) { + // ASCII alphanumerical and `-`. + if (code === 45 || asciiAlphanumeric(code)) { + effects.consume(code); + return tagOpen; + } + if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) { + return tagOpenBetween(code); + } + return nok(code); + } + + /** + * In opening tag, after tag name. + * + * ```markdown + * > | a c + * ^ + * ``` + * + * @type {State} + */ + function tagOpenBetween(code) { + if (code === 47) { + effects.consume(code); + return end; + } + + // ASCII alphabetical and `:` and `_`. + if (code === 58 || code === 95 || asciiAlpha(code)) { + effects.consume(code); + return tagOpenAttributeName; + } + if (markdownLineEnding(code)) { + returnState = tagOpenBetween; + return lineEndingBefore(code); + } + if (markdownSpace(code)) { + effects.consume(code); + return tagOpenBetween; + } + return end(code); + } + + /** + * In attribute name. + * + * ```markdown + * > | a d + * ^ + * ``` + * + * @type {State} + */ + function tagOpenAttributeName(code) { + // ASCII alphabetical and `-`, `.`, `:`, and `_`. + if (code === 45 || code === 46 || code === 58 || code === 95 || asciiAlphanumeric(code)) { + effects.consume(code); + return tagOpenAttributeName; + } + return tagOpenAttributeNameAfter(code); + } + + /** + * After attribute name, before initializer, the end of the tag, or + * whitespace. + * + * ```markdown + * > | a d + * ^ + * ``` + * + * @type {State} + */ + function tagOpenAttributeNameAfter(code) { + if (code === 61) { + effects.consume(code); + return tagOpenAttributeValueBefore; + } + if (markdownLineEnding(code)) { + returnState = tagOpenAttributeNameAfter; + return lineEndingBefore(code); + } + if (markdownSpace(code)) { + effects.consume(code); + return tagOpenAttributeNameAfter; + } + return tagOpenBetween(code); + } + + /** + * Before unquoted, double quoted, or single quoted attribute value, allowing + * whitespace. + * + * ```markdown + * > | a e + * ^ + * ``` + * + * @type {State} + */ + function tagOpenAttributeValueBefore(code) { + if (code === null || code === 60 || code === 61 || code === 62 || code === 96) { + return nok(code); + } + if (code === 34 || code === 39) { + effects.consume(code); + marker = code; + return tagOpenAttributeValueQuoted; + } + if (markdownLineEnding(code)) { + returnState = tagOpenAttributeValueBefore; + return lineEndingBefore(code); + } + if (markdownSpace(code)) { + effects.consume(code); + return tagOpenAttributeValueBefore; + } + effects.consume(code); + return tagOpenAttributeValueUnquoted; + } + + /** + * In double or single quoted attribute value. + * + * ```markdown + * > | a e + * ^ + * ``` + * + * @type {State} + */ + function tagOpenAttributeValueQuoted(code) { + if (code === marker) { + effects.consume(code); + marker = undefined; + return tagOpenAttributeValueQuotedAfter; + } + if (code === null) { + return nok(code); + } + if (markdownLineEnding(code)) { + returnState = tagOpenAttributeValueQuoted; + return lineEndingBefore(code); + } + effects.consume(code); + return tagOpenAttributeValueQuoted; + } + + /** + * In unquoted attribute value. + * + * ```markdown + * > | a e + * ^ + * ``` + * + * @type {State} + */ + function tagOpenAttributeValueUnquoted(code) { + if (code === null || code === 34 || code === 39 || code === 60 || code === 61 || code === 96) { + return nok(code); + } + if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) { + return tagOpenBetween(code); + } + effects.consume(code); + return tagOpenAttributeValueUnquoted; + } + + /** + * After double or single quoted attribute value, before whitespace or the end + * of the tag. + * + * ```markdown + * > | a e + * ^ + * ``` + * + * @type {State} + */ + function tagOpenAttributeValueQuotedAfter(code) { + if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) { + return tagOpenBetween(code); + } + return nok(code); + } + + /** + * In certain circumstances of a tag where only an `>` is allowed. + * + * ```markdown + * > | a e + * ^ + * ``` + * + * @type {State} + */ + function end(code) { + if (code === 62) { + effects.consume(code); + effects.exit('htmlTextData'); + effects.exit('htmlText'); + return ok; + } + return nok(code); + } + + /** + * At eol. + * + * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about + * > empty tokens. + * + * ```markdown + * > | a + * ``` + * + * @type {State} + */ + function lineEndingBefore(code) { + effects.exit('htmlTextData'); + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return lineEndingAfter; + } + + /** + * After eol, at optional whitespace. + * + * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about + * > empty tokens. + * + * ```markdown + * | a + * ^ + * ``` + * + * @type {State} + */ + function lineEndingAfter(code) { + // Always populated by defaults. + + return markdownSpace(code) ? factorySpace(effects, lineEndingAfterPrefix, 'linePrefix', self.parser.constructs.disable.null.includes('codeIndented') ? undefined : 4)(code) : lineEndingAfterPrefix(code); + } + + /** + * After eol, after optional whitespace. + * + * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about + * > empty tokens. + * + * ```markdown + * | a + * ^ + * ``` + * + * @type {State} + */ + function lineEndingAfterPrefix(code) { + effects.enter('htmlTextData'); + return returnState(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/label-start-link.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + + +/** @type {Construct} */ +var labelStartLink = { + name: 'labelStartLink', + tokenize: tokenizeLabelStartLink, + resolveAll: labelEnd.resolveAll +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeLabelStartLink(effects, ok, nok) { + var self = this; + return start; + + /** + * Start of label (link) start. + * + * ```markdown + * > | a [b] c + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('labelLink'); + effects.enter('labelMarker'); + effects.consume(code); + effects.exit('labelMarker'); + effects.exit('labelLink'); + return after; + } + + /** @type {State} */ + function after(code) { + // To do: this isn’t needed in `micromark-extension-gfm-footnote`, + // remove. + // Hidden footnotes hook. + /* c8 ignore next 3 */ + return code === 94 && '_hiddenFootnoteSupport' in self.parser.constructs ? nok(code) : ok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/hard-break-escape.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + +/** @type {Construct} */ +var hardBreakEscape = { + name: 'hardBreakEscape', + tokenize: tokenizeHardBreakEscape +}; + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeHardBreakEscape(effects, ok, nok) { + return start; + + /** + * Start of a hard break (escape). + * + * ```markdown + * > | a\ + * ^ + * | b + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('hardBreakEscape'); + effects.consume(code); + return after; + } + + /** + * After `\`, at eol. + * + * ```markdown + * > | a\ + * ^ + * | b + * ``` + * + * @type {State} + */ + function after(code) { + if (markdownLineEnding(code)) { + effects.exit('hardBreakEscape'); + return ok(code); + } + return nok(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/code-text.js +/** + * @typedef {import('micromark-util-types').Construct} Construct + * @typedef {import('micromark-util-types').Previous} Previous + * @typedef {import('micromark-util-types').Resolver} Resolver + * @typedef {import('micromark-util-types').State} State + * @typedef {import('micromark-util-types').Token} Token + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Tokenizer} Tokenizer + */ + + +/** @type {Construct} */ +var codeText = { + name: 'codeText', + tokenize: tokenizeCodeText, + resolve: resolveCodeText, + previous: previous +}; + +// To do: next major: don’t resolve, like `markdown-rs`. +/** @type {Resolver} */ +function resolveCodeText(events) { + var tailExitIndex = events.length - 4; + var headEnterIndex = 3; + /** @type {number} */ + var index; + /** @type {number | undefined} */ + var enter; + + // If we start and end with an EOL or a space. + if ((events[headEnterIndex][1].type === 'lineEnding' || events[headEnterIndex][1].type === 'space') && (events[tailExitIndex][1].type === 'lineEnding' || events[tailExitIndex][1].type === 'space')) { + index = headEnterIndex; + + // And we have data. + while (++index < tailExitIndex) { + if (events[index][1].type === 'codeTextData') { + // Then we have padding. + events[headEnterIndex][1].type = 'codeTextPadding'; + events[tailExitIndex][1].type = 'codeTextPadding'; + headEnterIndex += 2; + tailExitIndex -= 2; + break; + } + } + } + + // Merge adjacent spaces and data. + index = headEnterIndex - 1; + tailExitIndex++; + while (++index <= tailExitIndex) { + if (enter === undefined) { + if (index !== tailExitIndex && events[index][1].type !== 'lineEnding') { + enter = index; + } + } else if (index === tailExitIndex || events[index][1].type === 'lineEnding') { + events[enter][1].type = 'codeTextData'; + if (index !== enter + 2) { + events[enter][1].end = events[index - 1][1].end; + events.splice(enter + 2, index - enter - 2); + tailExitIndex -= index - enter - 2; + index = enter + 2; + } + enter = undefined; + } + } + return events; +} + +/** + * @this {TokenizeContext} + * @type {Previous} + */ +function previous(code) { + // If there is a previous code, there will always be a tail. + return code !== 96 || this.events[this.events.length - 1][1].type === 'characterEscape'; +} + +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeCodeText(effects, ok, nok) { + var self = this; + var sizeOpen = 0; + /** @type {number} */ + var size; + /** @type {Token} */ + var token; + return start; + + /** + * Start of code (text). + * + * ```markdown + * > | `a` + * ^ + * > | \`a` + * ^ + * ``` + * + * @type {State} + */ + function start(code) { + effects.enter('codeText'); + effects.enter('codeTextSequence'); + return sequenceOpen(code); + } + + /** + * In opening sequence. + * + * ```markdown + * > | `a` + * ^ + * ``` + * + * @type {State} + */ + function sequenceOpen(code) { + if (code === 96) { + effects.consume(code); + sizeOpen++; + return sequenceOpen; + } + effects.exit('codeTextSequence'); + return between(code); + } + + /** + * Between something and something else. + * + * ```markdown + * > | `a` + * ^^ + * ``` + * + * @type {State} + */ + function between(code) { + // EOF. + if (code === null) { + return nok(code); + } + + // To do: next major: don’t do spaces in resolve, but when compiling, + // like `markdown-rs`. + // Tabs don’t work, and virtual spaces don’t make sense. + if (code === 32) { + effects.enter('space'); + effects.consume(code); + effects.exit('space'); + return between; + } + + // Closing fence? Could also be data. + if (code === 96) { + token = effects.enter('codeTextSequence'); + size = 0; + return sequenceClose(code); + } + if (markdownLineEnding(code)) { + effects.enter('lineEnding'); + effects.consume(code); + effects.exit('lineEnding'); + return between; + } + + // Data. + effects.enter('codeTextData'); + return data(code); + } + + /** + * In data. + * + * ```markdown + * > | `a` + * ^ + * ``` + * + * @type {State} + */ + function data(code) { + if (code === null || code === 32 || code === 96 || markdownLineEnding(code)) { + effects.exit('codeTextData'); + return between(code); + } + effects.consume(code); + return data; + } + + /** + * In closing sequence. + * + * ```markdown + * > | `a` + * ^ + * ``` + * + * @type {State} + */ + function sequenceClose(code) { + // More. + if (code === 96) { + effects.consume(code); + size++; + return sequenceClose; + } + + // Done! + if (size === sizeOpen) { + effects.exit('codeTextSequence'); + effects.exit('codeText'); + return ok(code); + } + + // More or less accents: mark as data. + token.type = 'codeTextData'; + return data(code); + } +} +;// CONCATENATED MODULE: ./node_modules/micromark/lib/constructs.js + +var _document, _flowInitial, _flow, _string, _text; +/** + * @typedef {import('micromark-util-types').Extension} Extension + */ + + + + +/** @satisfies {Extension['document']} */ +var constructs_document = (_document = {}, (0,defineProperty/* default */.Z)(_document, 42, list), (0,defineProperty/* default */.Z)(_document, 43, list), (0,defineProperty/* default */.Z)(_document, 45, list), (0,defineProperty/* default */.Z)(_document, 48, list), (0,defineProperty/* default */.Z)(_document, 49, list), (0,defineProperty/* default */.Z)(_document, 50, list), (0,defineProperty/* default */.Z)(_document, 51, list), (0,defineProperty/* default */.Z)(_document, 52, list), (0,defineProperty/* default */.Z)(_document, 53, list), (0,defineProperty/* default */.Z)(_document, 54, list), (0,defineProperty/* default */.Z)(_document, 55, list), (0,defineProperty/* default */.Z)(_document, 56, list), (0,defineProperty/* default */.Z)(_document, 57, list), (0,defineProperty/* default */.Z)(_document, 62, blockQuote), _document); + +/** @satisfies {Extension['contentInitial']} */ +var contentInitial = (0,defineProperty/* default */.Z)({}, 91, definition); + +/** @satisfies {Extension['flowInitial']} */ +var flowInitial = (_flowInitial = {}, (0,defineProperty/* default */.Z)(_flowInitial, -2, codeIndented), (0,defineProperty/* default */.Z)(_flowInitial, -1, codeIndented), (0,defineProperty/* default */.Z)(_flowInitial, 32, codeIndented), _flowInitial); + +/** @satisfies {Extension['flow']} */ +var constructs_flow = (_flow = {}, (0,defineProperty/* default */.Z)(_flow, 35, headingAtx), (0,defineProperty/* default */.Z)(_flow, 42, thematicBreak), (0,defineProperty/* default */.Z)(_flow, 45, [setextUnderline, thematicBreak]), (0,defineProperty/* default */.Z)(_flow, 60, htmlFlow), (0,defineProperty/* default */.Z)(_flow, 61, setextUnderline), (0,defineProperty/* default */.Z)(_flow, 95, thematicBreak), (0,defineProperty/* default */.Z)(_flow, 96, codeFenced), (0,defineProperty/* default */.Z)(_flow, 126, codeFenced), _flow); + +/** @satisfies {Extension['string']} */ +var constructs_string = (_string = {}, (0,defineProperty/* default */.Z)(_string, 38, characterReference), (0,defineProperty/* default */.Z)(_string, 92, characterEscape), _string); + +/** @satisfies {Extension['text']} */ +var constructs_text = (_text = {}, (0,defineProperty/* default */.Z)(_text, -5, lineEnding), (0,defineProperty/* default */.Z)(_text, -4, lineEnding), (0,defineProperty/* default */.Z)(_text, -3, lineEnding), (0,defineProperty/* default */.Z)(_text, 33, labelStartImage), (0,defineProperty/* default */.Z)(_text, 38, characterReference), (0,defineProperty/* default */.Z)(_text, 42, attention), (0,defineProperty/* default */.Z)(_text, 60, [autolink, htmlText]), (0,defineProperty/* default */.Z)(_text, 91, labelStartLink), (0,defineProperty/* default */.Z)(_text, 92, [hardBreakEscape, characterEscape]), (0,defineProperty/* default */.Z)(_text, 93, labelEnd), (0,defineProperty/* default */.Z)(_text, 95, attention), (0,defineProperty/* default */.Z)(_text, 96, codeText), _text); + +/** @satisfies {Extension['insideSpan']} */ +var insideSpan = { + null: [attention, resolver] +}; + +/** @satisfies {Extension['attentionMarkers']} */ +var attentionMarkers = { + null: [42, 95] +}; + +/** @satisfies {Extension['disable']} */ +var disable = { + null: [] +}; +;// CONCATENATED MODULE: ./node_modules/micromark/lib/parse.js + +/** + * @typedef {import('micromark-util-types').Create} Create + * @typedef {import('micromark-util-types').FullNormalizedExtension} FullNormalizedExtension + * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct + * @typedef {import('micromark-util-types').ParseContext} ParseContext + * @typedef {import('micromark-util-types').ParseOptions} ParseOptions + */ + + + + + + + + + +/** + * @param {ParseOptions | null | undefined} [options] + * @returns {ParseContext} + */ +function parse(options) { + var settings = options || {}; + var constructs = /** @type {FullNormalizedExtension} */ + combineExtensions([constructs_namespaceObject].concat((0,toConsumableArray/* default */.Z)(settings.extensions || []))); + + /** @type {ParseContext} */ + var parser = { + defined: [], + lazy: {}, + constructs: constructs, + content: create(content), + document: create(document_document), + flow: create(flow), + string: create(string), + text: create(text_text) + }; + return parser; + + /** + * @param {InitialConstruct} initial + */ + function create(initial) { + return creator; + /** @type {Create} */ + function creator(from) { + return createTokenizer(parser, initial, from); + } + } +} +;// CONCATENATED MODULE: ./node_modules/micromark/lib/preprocess.js +/** + * @typedef {import('micromark-util-types').Chunk} Chunk + * @typedef {import('micromark-util-types').Code} Code + * @typedef {import('micromark-util-types').Encoding} Encoding + * @typedef {import('micromark-util-types').Value} Value + */ + +/** + * @callback Preprocessor + * @param {Value} value + * @param {Encoding | null | undefined} [encoding] + * @param {boolean | null | undefined} [end=false] + * @returns {Array} + */ + +var search = /[\0\t\n\r]/g; + +/** + * @returns {Preprocessor} + */ +function preprocess() { + var column = 1; + var buffer = ''; + /** @type {boolean | undefined} */ + var start = true; + /** @type {boolean | undefined} */ + var atCarriageReturn; + return preprocessor; + + /** @type {Preprocessor} */ + function preprocessor(value, encoding, end) { + /** @type {Array} */ + var chunks = []; + /** @type {RegExpMatchArray | null} */ + var match; + /** @type {number} */ + var next; + /** @type {number} */ + var startPosition; + /** @type {number} */ + var endPosition; + /** @type {Code} */ + var code; + + // @ts-expect-error `Buffer` does allow an encoding. + value = buffer + value.toString(encoding); + startPosition = 0; + buffer = ''; + if (start) { + // To do: `markdown-rs` actually parses BOMs (byte order mark). + if (value.charCodeAt(0) === 65279) { + startPosition++; + } + start = undefined; + } + while (startPosition < value.length) { + search.lastIndex = startPosition; + match = search.exec(value); + endPosition = match && match.index !== undefined ? match.index : value.length; + code = value.charCodeAt(endPosition); + if (!match) { + buffer = value.slice(startPosition); + break; + } + if (code === 10 && startPosition === endPosition && atCarriageReturn) { + chunks.push(-3); + atCarriageReturn = undefined; + } else { + if (atCarriageReturn) { + chunks.push(-5); + atCarriageReturn = undefined; + } + if (startPosition < endPosition) { + chunks.push(value.slice(startPosition, endPosition)); + column += endPosition - startPosition; + } + switch (code) { + case 0: + { + chunks.push(65533); + column++; + break; + } + case 9: + { + next = Math.ceil(column / 4) * 4; + chunks.push(-2); + while (column++ < next) chunks.push(-1); + break; + } + case 10: + { + chunks.push(-4); + column = 1; + break; + } + default: + { + atCarriageReturn = true; + column = 1; + } + } + } + startPosition = endPosition + 1; + } + if (end) { + if (atCarriageReturn) chunks.push(-5); + if (buffer) chunks.push(buffer); + chunks.push(null); + } + return chunks; + } +} +;// CONCATENATED MODULE: ./node_modules/micromark/lib/postprocess.js +/** + * @typedef {import('micromark-util-types').Event} Event + */ + + + +/** + * @param {Array} events + * @returns {Array} + */ +function postprocess(events) { + while (!subtokenize(events)) { + // Empty + } + return events; +} +;// CONCATENATED MODULE: ./node_modules/micromark-util-decode-numeric-character-reference/index.js +/** + * Turn the number (in string form as either hexa- or plain decimal) coming from + * a numeric character reference into a character. + * + * Sort of like `String.fromCharCode(Number.parseInt(value, base))`, but makes + * non-characters and control characters safe. + * + * @param {string} value + * Value to decode. + * @param {number} base + * Numeric base. + * @returns {string} + * Character. + */ +function decodeNumericCharacterReference(value, base) { + var code = Number.parseInt(value, base); + if ( + // C0 except for HT, LF, FF, CR, space. + code < 9 || code === 11 || code > 13 && code < 32 || + // Control character (DEL) of C0, and C1 controls. + code > 126 && code < 160 || + // Lone high surrogates and low surrogates. + code > 55295 && code < 57344 || + // Noncharacters. + code > 64975 && code < 65008 /* eslint-disable no-bitwise */ || (code & 65535) === 65535 || (code & 65535) === 65534 /* eslint-enable no-bitwise */ || + // Out of range + code > 1114111) { + return "\uFFFD"; + } + return String.fromCharCode(code); +} +;// CONCATENATED MODULE: ./node_modules/micromark-util-decode-string/index.js + + +var characterEscapeOrReference = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi; + +/** + * Decode markdown strings (which occur in places such as fenced code info + * strings, destinations, labels, and titles). + * + * The “string” content type allows character escapes and -references. + * This decodes those. + * + * @param {string} value + * Value to decode. + * @returns {string} + * Decoded value. + */ +function decodeString(value) { + return value.replace(characterEscapeOrReference, decode); +} + +/** + * @param {string} $0 + * @param {string} $1 + * @param {string} $2 + * @returns {string} + */ +function decode($0, $1, $2) { + if ($1) { + // Escape. + return $1; + } + + // Reference. + var head = $2.charCodeAt(0); + if (head === 35) { + var _head = $2.charCodeAt(1); + var hex = _head === 120 || _head === 88; + return decodeNumericCharacterReference($2.slice(hex ? 2 : 1), hex ? 16 : 10); + } + return decodeNamedCharacterReference($2) || $0; +} +;// CONCATENATED MODULE: ./node_modules/mdast-util-from-markdown/lib/index.js + +/** + * @typedef {import('micromark-util-types').Encoding} Encoding + * @typedef {import('micromark-util-types').Event} Event + * @typedef {import('micromark-util-types').ParseOptions} ParseOptions + * @typedef {import('micromark-util-types').Token} Token + * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext + * @typedef {import('micromark-util-types').Value} Value + * + * @typedef {import('unist').Parent} UnistParent + * @typedef {import('unist').Point} Point + * + * @typedef {import('mdast').PhrasingContent} PhrasingContent + * @typedef {import('mdast').StaticPhrasingContent} StaticPhrasingContent + * @typedef {import('mdast').Content} Content + * @typedef {import('mdast').Break} Break + * @typedef {import('mdast').Blockquote} Blockquote + * @typedef {import('mdast').Code} Code + * @typedef {import('mdast').Definition} Definition + * @typedef {import('mdast').Emphasis} Emphasis + * @typedef {import('mdast').Heading} Heading + * @typedef {import('mdast').HTML} HTML + * @typedef {import('mdast').Image} Image + * @typedef {import('mdast').ImageReference} ImageReference + * @typedef {import('mdast').InlineCode} InlineCode + * @typedef {import('mdast').Link} Link + * @typedef {import('mdast').LinkReference} LinkReference + * @typedef {import('mdast').List} List + * @typedef {import('mdast').ListItem} ListItem + * @typedef {import('mdast').Paragraph} Paragraph + * @typedef {import('mdast').Root} Root + * @typedef {import('mdast').Strong} Strong + * @typedef {import('mdast').Text} Text + * @typedef {import('mdast').ThematicBreak} ThematicBreak + * @typedef {import('mdast').ReferenceType} ReferenceType + * @typedef {import('../index.js').CompileData} CompileData + */ + +/** + * @typedef {Root | Content} Node + * @typedef {Extract} Parent + * + * @typedef {Omit & {type: 'fragment', children: Array}} Fragment + */ + +/** + * @callback Transform + * Extra transform, to change the AST afterwards. + * @param {Root} tree + * Tree to transform. + * @returns {Root | undefined | null | void} + * New tree or nothing (in which case the current tree is used). + * + * @callback Handle + * Handle a token. + * @param {CompileContext} this + * Context. + * @param {Token} token + * Current token. + * @returns {void} + * Nothing. + * + * @typedef {Record} Handles + * Token types mapping to handles + * + * @callback OnEnterError + * Handle the case where the `right` token is open, but it is closed (by the + * `left` token) or because we reached the end of the document. + * @param {Omit} this + * Context. + * @param {Token | undefined} left + * Left token. + * @param {Token} right + * Right token. + * @returns {void} + * Nothing. + * + * @callback OnExitError + * Handle the case where the `right` token is open but it is closed by + * exiting the `left` token. + * @param {Omit} this + * Context. + * @param {Token} left + * Left token. + * @param {Token} right + * Right token. + * @returns {void} + * Nothing. + * + * @typedef {[Token, OnEnterError | undefined]} TokenTuple + * Open token on the stack, with an optional error handler for when + * that token isn’t closed properly. + */ + +/** + * @typedef Config + * Configuration. + * + * We have our defaults, but extensions will add more. + * @property {Array} canContainEols + * Token types where line endings are used. + * @property {Handles} enter + * Opening handles. + * @property {Handles} exit + * Closing handles. + * @property {Array} transforms + * Tree transforms. + * + * @typedef {Partial} Extension + * Change how markdown tokens from micromark are turned into mdast. + * + * @typedef CompileContext + * mdast compiler context. + * @property {Array} stack + * Stack of nodes. + * @property {Array} tokenStack + * Stack of tokens. + * @property {(key: Key) => CompileData[Key]} getData + * Get data from the key/value store. + * @property {(key: Key, value?: CompileData[Key]) => void} setData + * Set data into the key/value store. + * @property {(this: CompileContext) => void} buffer + * Capture some of the output data. + * @property {(this: CompileContext) => string} resume + * Stop capturing and access the output data. + * @property {(this: CompileContext, node: Kind, token: Token, onError?: OnEnterError) => Kind} enter + * Enter a token. + * @property {(this: CompileContext, token: Token, onError?: OnExitError) => Node} exit + * Exit a token. + * @property {TokenizeContext['sliceSerialize']} sliceSerialize + * Get the string value of a token. + * @property {Config} config + * Configuration. + * + * @typedef FromMarkdownOptions + * Configuration for how to build mdast. + * @property {Array> | null | undefined} [mdastExtensions] + * Extensions for this utility to change how tokens are turned into a tree. + * + * @typedef {ParseOptions & FromMarkdownOptions} Options + * Configuration. + */ + +// To do: micromark: create a registry of tokens? +// To do: next major: don’t return given `Node` from `enter`. +// To do: next major: remove setter/getter. + + + + + + + + + + +var lib_own = {}.hasOwnProperty; + +/** + * @param value + * Markdown to parse. + * @param encoding + * Character encoding for when `value` is `Buffer`. + * @param options + * Configuration. + * @returns + * mdast tree. + */ +var fromMarkdown = +/** + * @type {( + * ((value: Value, encoding: Encoding, options?: Options | null | undefined) => Root) & + * ((value: Value, options?: Options | null | undefined) => Root) + * )} + */ + +/** + * @param {Value} value + * @param {Encoding | Options | null | undefined} [encoding] + * @param {Options | null | undefined} [options] + * @returns {Root} + */ +function fromMarkdown(value, encoding, options) { + if (typeof encoding !== 'string') { + options = encoding; + encoding = undefined; + } + return compiler(options)(postprocess(parse(options).document().write(preprocess()(value, encoding, true)))); +}; + +/** + * Note this compiler only understand complete buffering, not streaming. + * + * @param {Options | null | undefined} [options] + */ +function compiler(options) { + /** @type {Config} */ + var config = { + transforms: [], + canContainEols: ['emphasis', 'fragment', 'heading', 'paragraph', 'strong'], + enter: { + autolink: opener(link), + autolinkProtocol: onenterdata, + autolinkEmail: onenterdata, + atxHeading: opener(heading), + blockQuote: opener(blockQuote), + characterEscape: onenterdata, + characterReference: onenterdata, + codeFenced: opener(codeFlow), + codeFencedFenceInfo: buffer, + codeFencedFenceMeta: buffer, + codeIndented: opener(codeFlow, buffer), + codeText: opener(codeText, buffer), + codeTextData: onenterdata, + data: onenterdata, + codeFlowValue: onenterdata, + definition: opener(definition), + definitionDestinationString: buffer, + definitionLabelString: buffer, + definitionTitleString: buffer, + emphasis: opener(emphasis), + hardBreakEscape: opener(hardBreak), + hardBreakTrailing: opener(hardBreak), + htmlFlow: opener(html, buffer), + htmlFlowData: onenterdata, + htmlText: opener(html, buffer), + htmlTextData: onenterdata, + image: opener(image), + label: buffer, + link: opener(link), + listItem: opener(listItem), + listItemValue: onenterlistitemvalue, + listOrdered: opener(list, onenterlistordered), + listUnordered: opener(list), + paragraph: opener(paragraph), + reference: onenterreference, + referenceString: buffer, + resourceDestinationString: buffer, + resourceTitleString: buffer, + setextHeading: opener(heading), + strong: opener(strong), + thematicBreak: opener(thematicBreak) + }, + exit: { + atxHeading: closer(), + atxHeadingSequence: onexitatxheadingsequence, + autolink: closer(), + autolinkEmail: onexitautolinkemail, + autolinkProtocol: onexitautolinkprotocol, + blockQuote: closer(), + characterEscapeValue: onexitdata, + characterReferenceMarkerHexadecimal: onexitcharacterreferencemarker, + characterReferenceMarkerNumeric: onexitcharacterreferencemarker, + characterReferenceValue: onexitcharacterreferencevalue, + codeFenced: closer(onexitcodefenced), + codeFencedFence: onexitcodefencedfence, + codeFencedFenceInfo: onexitcodefencedfenceinfo, + codeFencedFenceMeta: onexitcodefencedfencemeta, + codeFlowValue: onexitdata, + codeIndented: closer(onexitcodeindented), + codeText: closer(onexitcodetext), + codeTextData: onexitdata, + data: onexitdata, + definition: closer(), + definitionDestinationString: onexitdefinitiondestinationstring, + definitionLabelString: onexitdefinitionlabelstring, + definitionTitleString: onexitdefinitiontitlestring, + emphasis: closer(), + hardBreakEscape: closer(onexithardbreak), + hardBreakTrailing: closer(onexithardbreak), + htmlFlow: closer(onexithtmlflow), + htmlFlowData: onexitdata, + htmlText: closer(onexithtmltext), + htmlTextData: onexitdata, + image: closer(onexitimage), + label: onexitlabel, + labelText: onexitlabeltext, + lineEnding: onexitlineending, + link: closer(onexitlink), + listItem: closer(), + listOrdered: closer(), + listUnordered: closer(), + paragraph: closer(), + referenceString: onexitreferencestring, + resourceDestinationString: onexitresourcedestinationstring, + resourceTitleString: onexitresourcetitlestring, + resource: onexitresource, + setextHeading: closer(onexitsetextheading), + setextHeadingLineSequence: onexitsetextheadinglinesequence, + setextHeadingText: onexitsetextheadingtext, + strong: closer(), + thematicBreak: closer() + } + }; + configure(config, (options || {}).mdastExtensions || []); + + /** @type {CompileData} */ + var data = {}; + return compile; + + /** + * Turn micromark events into an mdast tree. + * + * @param {Array} events + * Events. + * @returns {Root} + * mdast tree. + */ + function compile(events) { + /** @type {Root} */ + var tree = { + type: 'root', + children: [] + }; + /** @type {Omit} */ + var context = { + stack: [tree], + tokenStack: [], + config: config, + enter: enter, + exit: exit, + buffer: buffer, + resume: resume, + setData: setData, + getData: getData + }; + /** @type {Array} */ + var listStack = []; + var index = -1; + while (++index < events.length) { + // We preprocess lists to add `listItem` tokens, and to infer whether + // items the list itself are spread out. + if (events[index][1].type === 'listOrdered' || events[index][1].type === 'listUnordered') { + if (events[index][0] === 'enter') { + listStack.push(index); + } else { + var tail = listStack.pop(); + index = prepareList(events, tail, index); + } + } + } + index = -1; + while (++index < events.length) { + var handler = config[events[index][0]]; + if (lib_own.call(handler, events[index][1].type)) { + handler[events[index][1].type].call(Object.assign({ + sliceSerialize: events[index][2].sliceSerialize + }, context), events[index][1]); + } + } + + // Handle tokens still being open. + if (context.tokenStack.length > 0) { + var _tail = context.tokenStack[context.tokenStack.length - 1]; + var _handler = _tail[1] || defaultOnError; + _handler.call(context, undefined, _tail[0]); + } + + // Figure out `root` position. + tree.position = { + start: lib_point(events.length > 0 ? events[0][1].start : { + line: 1, + column: 1, + offset: 0 + }), + end: lib_point(events.length > 0 ? events[events.length - 2][1].end : { + line: 1, + column: 1, + offset: 0 + }) + }; + + // Call transforms. + index = -1; + while (++index < config.transforms.length) { + tree = config.transforms[index](tree) || tree; + } + return tree; + } + + /** + * @param {Array} events + * @param {number} start + * @param {number} length + * @returns {number} + */ + function prepareList(events, start, length) { + var index = start - 1; + var containerBalance = -1; + var listSpread = false; + /** @type {Token | undefined} */ + var listItem; + /** @type {number | undefined} */ + var lineIndex; + /** @type {number | undefined} */ + var firstBlankLineIndex; + /** @type {boolean | undefined} */ + var atMarker; + while (++index <= length) { + var event = events[index]; + if (event[1].type === 'listUnordered' || event[1].type === 'listOrdered' || event[1].type === 'blockQuote') { + if (event[0] === 'enter') { + containerBalance++; + } else { + containerBalance--; + } + atMarker = undefined; + } else if (event[1].type === 'lineEndingBlank') { + if (event[0] === 'enter') { + if (listItem && !atMarker && !containerBalance && !firstBlankLineIndex) { + firstBlankLineIndex = index; + } + atMarker = undefined; + } + } else if (event[1].type === 'linePrefix' || event[1].type === 'listItemValue' || event[1].type === 'listItemMarker' || event[1].type === 'listItemPrefix' || event[1].type === 'listItemPrefixWhitespace') { + // Empty. + } else { + atMarker = undefined; + } + if (!containerBalance && event[0] === 'enter' && event[1].type === 'listItemPrefix' || containerBalance === -1 && event[0] === 'exit' && (event[1].type === 'listUnordered' || event[1].type === 'listOrdered')) { + if (listItem) { + var tailIndex = index; + lineIndex = undefined; + while (tailIndex--) { + var tailEvent = events[tailIndex]; + if (tailEvent[1].type === 'lineEnding' || tailEvent[1].type === 'lineEndingBlank') { + if (tailEvent[0] === 'exit') continue; + if (lineIndex) { + events[lineIndex][1].type = 'lineEndingBlank'; + listSpread = true; + } + tailEvent[1].type = 'lineEnding'; + lineIndex = tailIndex; + } else if (tailEvent[1].type === 'linePrefix' || tailEvent[1].type === 'blockQuotePrefix' || tailEvent[1].type === 'blockQuotePrefixWhitespace' || tailEvent[1].type === 'blockQuoteMarker' || tailEvent[1].type === 'listItemIndent') { + // Empty + } else { + break; + } + } + if (firstBlankLineIndex && (!lineIndex || firstBlankLineIndex < lineIndex)) { + listItem._spread = true; + } + + // Fix position. + listItem.end = Object.assign({}, lineIndex ? events[lineIndex][1].start : event[1].end); + events.splice(lineIndex || index, 0, ['exit', listItem, event[2]]); + index++; + length++; + } + + // Create a new list item. + if (event[1].type === 'listItemPrefix') { + listItem = { + type: 'listItem', + _spread: false, + start: Object.assign({}, event[1].start), + // @ts-expect-error: we’ll add `end` in a second. + end: undefined + }; + // @ts-expect-error: `listItem` is most definitely defined, TS... + events.splice(index, 0, ['enter', listItem, event[2]]); + index++; + length++; + firstBlankLineIndex = undefined; + atMarker = true; + } + } + } + events[start][1]._spread = listSpread; + return length; + } + + /** + * Set data. + * + * @template {keyof CompileData} Key + * Field type. + * @param {Key} key + * Key of field. + * @param {CompileData[Key]} [value] + * New value. + * @returns {void} + * Nothing. + */ + function setData(key, value) { + data[key] = value; + } + + /** + * Get data. + * + * @template {keyof CompileData} Key + * Field type. + * @param {Key} key + * Key of field. + * @returns {CompileData[Key]} + * Value. + */ + function getData(key) { + return data[key]; + } + + /** + * Create an opener handle. + * + * @param {(token: Token) => Node} create + * Create a node. + * @param {Handle} [and] + * Optional function to also run. + * @returns {Handle} + * Handle. + */ + function opener(create, and) { + return open; + + /** + * @this {CompileContext} + * @param {Token} token + * @returns {void} + */ + function open(token) { + enter.call(this, create(token), token); + if (and) and.call(this, token); + } + } + + /** + * @this {CompileContext} + * @returns {void} + */ + function buffer() { + this.stack.push({ + type: 'fragment', + children: [] + }); + } + + /** + * @template {Node} Kind + * Node type. + * @this {CompileContext} + * Context. + * @param {Kind} node + * Node to enter. + * @param {Token} token + * Corresponding token. + * @param {OnEnterError | undefined} [errorHandler] + * Handle the case where this token is open, but it is closed by something else. + * @returns {Kind} + * The given node. + */ + function enter(node, token, errorHandler) { + var parent = this.stack[this.stack.length - 1]; + // @ts-expect-error: Assume `Node` can exist as a child of `parent`. + parent.children.push(node); + this.stack.push(node); + this.tokenStack.push([token, errorHandler]); + // @ts-expect-error: `end` will be patched later. + node.position = { + start: lib_point(token.start) + }; + return node; + } + + /** + * Create a closer handle. + * + * @param {Handle} [and] + * Optional function to also run. + * @returns {Handle} + * Handle. + */ + function closer(and) { + return close; + + /** + * @this {CompileContext} + * @param {Token} token + * @returns {void} + */ + function close(token) { + if (and) and.call(this, token); + exit.call(this, token); + } + } + + /** + * @this {CompileContext} + * Context. + * @param {Token} token + * Corresponding token. + * @param {OnExitError | undefined} [onExitError] + * Handle the case where another token is open. + * @returns {Node} + * The closed node. + */ + function exit(token, onExitError) { + var node = this.stack.pop(); + var open = this.tokenStack.pop(); + if (!open) { + throw new Error('Cannot close `' + token.type + '` (' + stringifyPosition({ + start: token.start, + end: token.end + }) + '): it’s not open'); + } else if (open[0].type !== token.type) { + if (onExitError) { + onExitError.call(this, token, open[0]); + } else { + var handler = open[1] || defaultOnError; + handler.call(this, token, open[0]); + } + } + node.position.end = lib_point(token.end); + return node; + } + + /** + * @this {CompileContext} + * @returns {string} + */ + function resume() { + return lib_toString(this.stack.pop()); + } + + // + // Handlers. + // + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onenterlistordered() { + setData('expectingFirstListItemValue', true); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onenterlistitemvalue(token) { + if (getData('expectingFirstListItemValue')) { + var ancestor = this.stack[this.stack.length - 2]; + ancestor.start = Number.parseInt(this.sliceSerialize(token), 10); + setData('expectingFirstListItemValue'); + } + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitcodefencedfenceinfo() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.lang = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitcodefencedfencemeta() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.meta = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitcodefencedfence() { + // Exit if this is the closing fence. + if (getData('flowCodeInside')) return; + this.buffer(); + setData('flowCodeInside', true); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitcodefenced() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.value = data.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ''); + setData('flowCodeInside'); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitcodeindented() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.value = data.replace(/(\r?\n|\r)$/g, ''); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitdefinitionlabelstring(token) { + var label = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.label = label; + node.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase(); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitdefinitiontitlestring() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.title = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitdefinitiondestinationstring() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.url = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitatxheadingsequence(token) { + var node = this.stack[this.stack.length - 1]; + if (!node.depth) { + var depth = this.sliceSerialize(token).length; + node.depth = depth; + } + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitsetextheadingtext() { + setData('setextHeadingSlurpLineEnding', true); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitsetextheadinglinesequence(token) { + var node = this.stack[this.stack.length - 1]; + node.depth = this.sliceSerialize(token).charCodeAt(0) === 61 ? 1 : 2; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitsetextheading() { + setData('setextHeadingSlurpLineEnding'); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onenterdata(token) { + var node = this.stack[this.stack.length - 1]; + var tail = node.children[node.children.length - 1]; + if (!tail || tail.type !== 'text') { + // Add a new text node. + tail = text(); + // @ts-expect-error: we’ll add `end` later. + tail.position = { + start: lib_point(token.start) + }; + // @ts-expect-error: Assume `parent` accepts `text`. + node.children.push(tail); + } + this.stack.push(tail); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitdata(token) { + var tail = this.stack.pop(); + tail.value += this.sliceSerialize(token); + tail.position.end = lib_point(token.end); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitlineending(token) { + var context = this.stack[this.stack.length - 1]; + // If we’re at a hard break, include the line ending in there. + if (getData('atHardBreak')) { + var tail = context.children[context.children.length - 1]; + tail.position.end = lib_point(token.end); + setData('atHardBreak'); + return; + } + if (!getData('setextHeadingSlurpLineEnding') && config.canContainEols.includes(context.type)) { + onenterdata.call(this, token); + onexitdata.call(this, token); + } + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexithardbreak() { + setData('atHardBreak', true); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexithtmlflow() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.value = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexithtmltext() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.value = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitcodetext() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.value = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitlink() { + var node = this.stack[this.stack.length - 1]; + // Note: there are also `identifier` and `label` fields on this link node! + // These are used / cleaned here. + // To do: clean. + if (getData('inReference')) { + /** @type {ReferenceType} */ + var referenceType = getData('referenceType') || 'shortcut'; + node.type += 'Reference'; + // @ts-expect-error: mutate. + node.referenceType = referenceType; + // @ts-expect-error: mutate. + delete node.url; + delete node.title; + } else { + // @ts-expect-error: mutate. + delete node.identifier; + // @ts-expect-error: mutate. + delete node.label; + } + setData('referenceType'); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitimage() { + var node = this.stack[this.stack.length - 1]; + // Note: there are also `identifier` and `label` fields on this link node! + // These are used / cleaned here. + // To do: clean. + if (getData('inReference')) { + /** @type {ReferenceType} */ + var referenceType = getData('referenceType') || 'shortcut'; + node.type += 'Reference'; + // @ts-expect-error: mutate. + node.referenceType = referenceType; + // @ts-expect-error: mutate. + delete node.url; + delete node.title; + } else { + // @ts-expect-error: mutate. + delete node.identifier; + // @ts-expect-error: mutate. + delete node.label; + } + setData('referenceType'); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitlabeltext(token) { + var string = this.sliceSerialize(token); + var ancestor = this.stack[this.stack.length - 2]; + // @ts-expect-error: stash this on the node, as it might become a reference + // later. + ancestor.label = decodeString(string); + // @ts-expect-error: same as above. + ancestor.identifier = normalizeIdentifier(string).toLowerCase(); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitlabel() { + var fragment = this.stack[this.stack.length - 1]; + var value = this.resume(); + var node = this.stack[this.stack.length - 1]; + // Assume a reference. + setData('inReference', true); + if (node.type === 'link') { + /** @type {Array} */ + // @ts-expect-error: Assume static phrasing content. + var children = fragment.children; + node.children = children; + } else { + node.alt = value; + } + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitresourcedestinationstring() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.url = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitresourcetitlestring() { + var data = this.resume(); + var node = this.stack[this.stack.length - 1]; + node.title = data; + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitresource() { + setData('inReference'); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onenterreference() { + setData('referenceType', 'collapsed'); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitreferencestring(token) { + var label = this.resume(); + var node = this.stack[this.stack.length - 1]; + // @ts-expect-error: stash this on the node, as it might become a reference + // later. + node.label = label; + // @ts-expect-error: same as above. + node.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase(); + setData('referenceType', 'full'); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + + function onexitcharacterreferencemarker(token) { + setData('characterReferenceType', token.type); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitcharacterreferencevalue(token) { + var data = this.sliceSerialize(token); + var type = getData('characterReferenceType'); + /** @type {string} */ + var value; + if (type) { + value = decodeNumericCharacterReference(data, type === 'characterReferenceMarkerNumeric' ? 10 : 16); + setData('characterReferenceType'); + } else { + var result = decodeNamedCharacterReference(data); + value = result; + } + var tail = this.stack.pop(); + tail.value += value; + tail.position.end = lib_point(token.end); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitautolinkprotocol(token) { + onexitdata.call(this, token); + var node = this.stack[this.stack.length - 1]; + node.url = this.sliceSerialize(token); + } + + /** + * @this {CompileContext} + * @type {Handle} + */ + function onexitautolinkemail(token) { + onexitdata.call(this, token); + var node = this.stack[this.stack.length - 1]; + node.url = 'mailto:' + this.sliceSerialize(token); + } + + // + // Creaters. + // + + /** @returns {Blockquote} */ + function blockQuote() { + return { + type: 'blockquote', + children: [] + }; + } + + /** @returns {Code} */ + function codeFlow() { + return { + type: 'code', + lang: null, + meta: null, + value: '' + }; + } + + /** @returns {InlineCode} */ + function codeText() { + return { + type: 'inlineCode', + value: '' + }; + } + + /** @returns {Definition} */ + function definition() { + return { + type: 'definition', + identifier: '', + label: null, + title: null, + url: '' + }; + } + + /** @returns {Emphasis} */ + function emphasis() { + return { + type: 'emphasis', + children: [] + }; + } + + /** @returns {Heading} */ + function heading() { + // @ts-expect-error `depth` will be set later. + return { + type: 'heading', + depth: undefined, + children: [] + }; + } + + /** @returns {Break} */ + function hardBreak() { + return { + type: 'break' + }; + } + + /** @returns {HTML} */ + function html() { + return { + type: 'html', + value: '' + }; + } + + /** @returns {Image} */ + function image() { + return { + type: 'image', + title: null, + url: '', + alt: null + }; + } + + /** @returns {Link} */ + function link() { + return { + type: 'link', + title: null, + url: '', + children: [] + }; + } + + /** + * @param {Token} token + * @returns {List} + */ + function list(token) { + return { + type: 'list', + ordered: token.type === 'listOrdered', + start: null, + spread: token._spread, + children: [] + }; + } + + /** + * @param {Token} token + * @returns {ListItem} + */ + function listItem(token) { + return { + type: 'listItem', + spread: token._spread, + checked: null, + children: [] + }; + } + + /** @returns {Paragraph} */ + function paragraph() { + return { + type: 'paragraph', + children: [] + }; + } + + /** @returns {Strong} */ + function strong() { + return { + type: 'strong', + children: [] + }; + } + + /** @returns {Text} */ + function text() { + return { + type: 'text', + value: '' + }; + } + + /** @returns {ThematicBreak} */ + function thematicBreak() { + return { + type: 'thematicBreak' + }; + } +} + +/** + * Copy a point-like value. + * + * @param {Point} d + * Point-like value. + * @returns {Point} + * unist point. + */ +function lib_point(d) { + return { + line: d.line, + column: d.column, + offset: d.offset + }; +} + +/** + * @param {Config} combined + * @param {Array>} extensions + * @returns {void} + */ +function configure(combined, extensions) { + var index = -1; + while (++index < extensions.length) { + var value = extensions[index]; + if (Array.isArray(value)) { + configure(combined, value); + } else { + extension(combined, value); + } + } +} + +/** + * @param {Config} combined + * @param {Extension} extension + * @returns {void} + */ +function extension(combined, extension) { + /** @type {keyof Extension} */ + var key; + for (key in extension) { + if (lib_own.call(extension, key)) { + if (key === 'canContainEols') { + var right = extension[key]; + if (right) { + var _combined$key; + (_combined$key = combined[key]).push.apply(_combined$key, (0,toConsumableArray/* default */.Z)(right)); + } + } else if (key === 'transforms') { + var _right = extension[key]; + if (_right) { + var _combined$key2; + (_combined$key2 = combined[key]).push.apply(_combined$key2, (0,toConsumableArray/* default */.Z)(_right)); + } + } else if (key === 'enter' || key === 'exit') { + var _right2 = extension[key]; + if (_right2) { + Object.assign(combined[key], _right2); + } + } + } + } +} + +/** @type {OnEnterError} */ +function defaultOnError(left, right) { + if (left) { + throw new Error('Cannot close `' + left.type + '` (' + stringifyPosition({ + start: left.start, + end: left.end + }) + '): a different token (`' + right.type + '`, ' + stringifyPosition({ + start: right.start, + end: right.end + }) + ') is open'); + } else { + throw new Error('Cannot close document, a token (`' + right.type + '`, ' + stringifyPosition({ + start: right.start, + end: right.end + }) + ') is still open'); + } +} +;// CONCATENATED MODULE: ./node_modules/remark-parse/lib/index.js +/** + * @typedef {import('mdast').Root} Root + * @typedef {import('mdast-util-from-markdown').Options} Options + */ + + + +/** + * @this {import('unified').Processor} + * @type {import('unified').Plugin<[Options?] | void[], string, Root>} + */ +function remarkParse(options) { + var _this = this; + /** @type {import('unified').ParserFunction} */ + var parser = function parser(doc) { + // Assume options. + var settings = /** @type {Options} */_this.data('settings'); + return fromMarkdown(doc, Object.assign({}, settings, options, { + // Note: these options are not in the readme. + // The goal is for them to be set by plugins on `data` instead of being + // passed by users. + extensions: _this.data('micromarkExtensions') || [], + mdastExtensions: _this.data('fromMarkdownExtensions') || [] + })); + }; + Object.assign(this, { + Parser: parser + }); +} +;// CONCATENATED MODULE: ./node_modules/micromark-util-sanitize-uri/index.js + + +/** + * Make a value safe for injection as a URL. + * + * This encodes unsafe characters with percent-encoding and skips already + * encoded sequences (see `normalizeUri`). + * Further unsafe characters are encoded as character references (see + * `micromark-util-encode`). + * + * A regex of allowed protocols can be given, in which case the URL is + * sanitized. + * For example, `/^(https?|ircs?|mailto|xmpp)$/i` can be used for `a[href]`, or + * `/^https?$/i` for `img[src]` (this is what `github.com` allows). + * If the URL includes an unknown protocol (one not matched by `protocol`, such + * as a dangerous example, `javascript:`), the value is ignored. + * + * @param {string | undefined} url + * URI to sanitize. + * @param {RegExp | null | undefined} [protocol] + * Allowed protocols. + * @returns {string} + * Sanitized URI. + */ +function sanitizeUri(url, protocol) { + var value = encode(normalizeUri(url || '')); + if (!protocol) { + return value; + } + var colon = value.indexOf(':'); + var questionMark = value.indexOf('?'); + var numberSign = value.indexOf('#'); + var slash = value.indexOf('/'); + if ( + // If there is no protocol, it’s relative. + colon < 0 || + // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol. + slash > -1 && colon > slash || questionMark > -1 && colon > questionMark || numberSign > -1 && colon > numberSign || + // It is a protocol, it should be allowed. + protocol.test(value.slice(0, colon))) { + return value; + } + return ''; +} + +/** + * Normalize a URL. + * + * Encode unsafe characters with percent-encoding, skipping already encoded + * sequences. + * + * @param {string} value + * URI to normalize. + * @returns {string} + * Normalized URI. + */ +function normalizeUri(value) { + /** @type {Array} */ + var result = []; + var index = -1; + var start = 0; + var skip = 0; + while (++index < value.length) { + var code = value.charCodeAt(index); + /** @type {string} */ + var replace = ''; + + // A correct percent encoded value. + if (code === 37 && asciiAlphanumeric(value.charCodeAt(index + 1)) && asciiAlphanumeric(value.charCodeAt(index + 2))) { + skip = 2; + } + // ASCII. + else if (code < 128) { + if (!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(code))) { + replace = String.fromCharCode(code); + } + } + // Astral. + else if (code > 55295 && code < 57344) { + var next = value.charCodeAt(index + 1); + + // A correct surrogate pair. + if (code < 56320 && next > 56319 && next < 57344) { + replace = String.fromCharCode(code, next); + skip = 1; + } + // Lone surrogate. + else { + replace = "\uFFFD"; + } + } + // Unicode. + else { + replace = String.fromCharCode(code); + } + if (replace) { + result.push(value.slice(start, index), encodeURIComponent(replace)); + start = index + skip + 1; + replace = ''; + } + if (skip) { + index += skip; + skip = 0; + } + } + return result.join('') + value.slice(start); +} +;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/footer.js + +/** + * @typedef {import('hast').Element} Element + * @typedef {import('hast').ElementContent} ElementContent + * + * @typedef {import('./state.js').State} State + */ + + + +/** + * Generate a hast footer for called footnote definitions. + * + * @param {State} state + * Info passed around. + * @returns {Element | undefined} + * `section` element or `undefined`. + */ +function footer(state) { + /** @type {Array} */ + var listItems = []; + var index = -1; + while (++index < state.footnoteOrder.length) { + var def = state.footnoteById[state.footnoteOrder[index]]; + if (!def) { + continue; + } + var content = state.all(def); + var id = String(def.identifier).toUpperCase(); + var safeId = normalizeUri(id.toLowerCase()); + var referenceIndex = 0; + /** @type {Array} */ + var backReferences = []; + while (++referenceIndex <= state.footnoteCounts[id]) { + /** @type {Element} */ + var backReference = { + type: 'element', + tagName: 'a', + properties: { + href: '#' + state.clobberPrefix + 'fnref-' + safeId + (referenceIndex > 1 ? '-' + referenceIndex : ''), + dataFootnoteBackref: true, + className: ['data-footnote-backref'], + ariaLabel: state.footnoteBackLabel + }, + children: [{ + type: 'text', + value: '↩' + }] + }; + if (referenceIndex > 1) { + backReference.children.push({ + type: 'element', + tagName: 'sup', + children: [{ + type: 'text', + value: String(referenceIndex) + }] + }); + } + if (backReferences.length > 0) { + backReferences.push({ + type: 'text', + value: ' ' + }); + } + backReferences.push(backReference); + } + var tail = content[content.length - 1]; + if (tail && tail.type === 'element' && tail.tagName === 'p') { + var _tail$children; + var tailTail = tail.children[tail.children.length - 1]; + if (tailTail && tailTail.type === 'text') { + tailTail.value += ' '; + } else { + tail.children.push({ + type: 'text', + value: ' ' + }); + } + (_tail$children = tail.children).push.apply(_tail$children, backReferences); + } else { + content.push.apply(content, backReferences); + } + + /** @type {Element} */ + var listItem = { + type: 'element', + tagName: 'li', + properties: { + id: state.clobberPrefix + 'fn-' + safeId + }, + children: state.wrap(content, true) + }; + state.patch(def, listItem); + listItems.push(listItem); + } + if (listItems.length === 0) { + return; + } + return { + type: 'element', + tagName: 'section', + properties: { + dataFootnotes: true, + className: ['footnotes'] + }, + children: [{ + type: 'element', + tagName: state.footnoteLabelTagName, + properties: _objectSpread2(_objectSpread2({}, JSON.parse(JSON.stringify(state.footnoteLabelProperties))), {}, { + id: 'footnote-label' + }), + children: [{ + type: 'text', + value: state.footnoteLabel + }] + }, { + type: 'text', + value: '\n' + }, { + type: 'element', + tagName: 'ol', + properties: {}, + children: state.wrap(listItems, true) + }, { + type: 'text', + value: '\n' + }] + }; +} +;// CONCATENATED MODULE: ./node_modules/unist-util-is/lib/index.js +/** + * @typedef {import('unist').Node} Node + * @typedef {import('unist').Parent} Parent + */ + +/** + * @typedef {Record} Props + * @typedef {null | undefined | string | Props | TestFunctionAnything | Array} Test + * Check for an arbitrary node, unaware of TypeScript inferral. + * + * @callback TestFunctionAnything + * Check if a node passes a test, unaware of TypeScript inferral. + * @param {unknown} this + * The given context. + * @param {Node} node + * A node. + * @param {number | null | undefined} [index] + * The node’s position in its parent. + * @param {Parent | null | undefined} [parent] + * The node’s parent. + * @returns {boolean | void} + * Whether this node passes the test. + */ + +/** + * @template {Node} Kind + * Node type. + * @typedef {Kind['type'] | Partial | TestFunctionPredicate | Array | TestFunctionPredicate>} PredicateTest + * Check for a node that can be inferred by TypeScript. + */ + +/** + * Check if a node passes a certain test. + * + * @template {Node} Kind + * Node type. + * @callback TestFunctionPredicate + * Complex test function for a node that can be inferred by TypeScript. + * @param {Node} node + * A node. + * @param {number | null | undefined} [index] + * The node’s position in its parent. + * @param {Parent | null | undefined} [parent] + * The node’s parent. + * @returns {node is Kind} + * Whether this node passes the test. + */ + +/** + * @callback AssertAnything + * Check that an arbitrary value is a node, unaware of TypeScript inferral. + * @param {unknown} [node] + * Anything (typically a node). + * @param {number | null | undefined} [index] + * The node’s position in its parent. + * @param {Parent | null | undefined} [parent] + * The node’s parent. + * @returns {boolean} + * Whether this is a node and passes a test. + */ + +/** + * Check if a node is a node and passes a certain node test. + * + * @template {Node} Kind + * Node type. + * @callback AssertPredicate + * Check that an arbitrary value is a specific node, aware of TypeScript. + * @param {unknown} [node] + * Anything (typically a node). + * @param {number | null | undefined} [index] + * The node’s position in its parent. + * @param {Parent | null | undefined} [parent] + * The node’s parent. + * @returns {node is Kind} + * Whether this is a node and passes a test. + */ + +/** + * Check if `node` is a `Node` and whether it passes the given test. + * + * @param node + * Thing to check, typically `Node`. + * @param test + * A check for a specific node. + * @param index + * The node’s position in its parent. + * @param parent + * The node’s parent. + * @returns + * Whether `node` is a node and passes a test. + */ +var is = +/** + * @type {( + * (() => false) & + * ((node: unknown, test: PredicateTest, index: number, parent: Parent, context?: unknown) => node is Kind) & + * ((node: unknown, test: PredicateTest, index?: null | undefined, parent?: null | undefined, context?: unknown) => node is Kind) & + * ((node: unknown, test: Test, index: number, parent: Parent, context?: unknown) => boolean) & + * ((node: unknown, test?: Test, index?: null | undefined, parent?: null | undefined, context?: unknown) => boolean) + * )} + */ + +/** + * @param {unknown} [node] + * @param {Test} [test] + * @param {number | null | undefined} [index] + * @param {Parent | null | undefined} [parent] + * @param {unknown} [context] + * @returns {boolean} + */ +// eslint-disable-next-line max-params +function is(node, test, index, parent, context) { + var check = convert(test); + if (index !== undefined && index !== null && (typeof index !== 'number' || index < 0 || index === Number.POSITIVE_INFINITY)) { + throw new Error('Expected positive finite index'); + } + if (parent !== undefined && parent !== null && (!is(parent) || !parent.children)) { + throw new Error('Expected parent node'); + } + if ((parent === undefined || parent === null) !== (index === undefined || index === null)) { + throw new Error('Expected both parent and index'); + } + + // @ts-expect-error Looks like a node. + return node && node.type && typeof node.type === 'string' ? Boolean(check.call(context, node, index, parent)) : false; +}; + +/** + * Generate an assertion from a test. + * + * Useful if you’re going to test many nodes, for example when creating a + * utility where something else passes a compatible test. + * + * The created function is a bit faster because it expects valid input only: + * a `node`, `index`, and `parent`. + * + * @param test + * * when nullish, checks if `node` is a `Node`. + * * when `string`, works like passing `(node) => node.type === test`. + * * when `function` checks if function passed the node is true. + * * when `object`, checks that all keys in test are in node, and that they have (strictly) equal values. + * * when `array`, checks if any one of the subtests pass. + * @returns + * An assertion. + */ +var convert = +/** + * @type {( + * ((test: PredicateTest) => AssertPredicate) & + * ((test?: Test) => AssertAnything) + * )} + */ + +/** + * @param {Test} [test] + * @returns {AssertAnything} + */ +function convert(test) { + if (test === undefined || test === null) { + return ok; + } + if (typeof test === 'string') { + return typeFactory(test); + } + if (typeof test === 'object') { + return Array.isArray(test) ? anyFactory(test) : propsFactory(test); + } + if (typeof test === 'function') { + return castFactory(test); + } + throw new Error('Expected function, string, or object as test'); +}; + +/** + * @param {Array} tests + * @returns {AssertAnything} + */ +function anyFactory(tests) { + /** @type {Array} */ + var checks = []; + var index = -1; + while (++index < tests.length) { + checks[index] = convert(tests[index]); + } + return castFactory(any); + + /** + * @this {unknown} + * @param {Array} parameters + * @returns {boolean} + */ + function any() { + var index = -1; + for (var _len = arguments.length, parameters = new Array(_len), _key = 0; _key < _len; _key++) { + parameters[_key] = arguments[_key]; + } + while (++index < checks.length) { + var _checks$index; + if ((_checks$index = checks[index]).call.apply(_checks$index, [this].concat(parameters))) return true; + } + return false; + } +} + +/** + * Turn an object into a test for a node with a certain fields. + * + * @param {Props} check + * @returns {AssertAnything} + */ +function propsFactory(check) { + return castFactory(all); + + /** + * @param {Node} node + * @returns {boolean} + */ + function all(node) { + /** @type {string} */ + var key; + for (key in check) { + // @ts-expect-error: hush, it sure works as an index. + if (node[key] !== check[key]) return false; + } + return true; + } +} + +/** + * Turn a string into a test for a node with a certain type. + * + * @param {string} check + * @returns {AssertAnything} + */ +function typeFactory(check) { + return castFactory(type); + + /** + * @param {Node} node + */ + function type(node) { + return node && node.type === check; + } +} + +/** + * Turn a custom test into a test for a node that passes that test. + * + * @param {TestFunctionAnything} check + * @returns {AssertAnything} + */ +function castFactory(check) { + return assertion; + + /** + * @this {unknown} + * @param {unknown} node + * @param {Array} parameters + * @returns {boolean} + */ + function assertion(node) { + for (var _len2 = arguments.length, parameters = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + parameters[_key2 - 1] = arguments[_key2]; + } + return Boolean(node && typeof node === 'object' && 'type' in node && + // @ts-expect-error: fine. + Boolean(check.call.apply(check, [this, node].concat(parameters)))); + } +} +function ok() { + return true; +} +;// CONCATENATED MODULE: ./node_modules/unist-util-visit-parents/lib/color.browser.js +/** + * @param {string} d + * @returns {string} + */ +function color(d) { + return d; +} +;// CONCATENATED MODULE: ./node_modules/unist-util-visit-parents/lib/index.js +/** + * @typedef {import('unist').Node} Node + * @typedef {import('unist').Parent} Parent + * @typedef {import('unist-util-is').Test} Test + */ + +/** + * @typedef {boolean | 'skip'} Action + * Union of the action types. + * + * @typedef {number} Index + * Move to the sibling at `index` next (after node itself is completely + * traversed). + * + * Useful if mutating the tree, such as removing the node the visitor is + * currently on, or any of its previous siblings. + * Results less than 0 or greater than or equal to `children.length` stop + * traversing the parent. + * + * @typedef {[(Action | null | undefined | void)?, (Index | null | undefined)?]} ActionTuple + * List with one or two values, the first an action, the second an index. + * + * @typedef {Action | ActionTuple | Index | null | undefined | void} VisitorResult + * Any value that can be returned from a visitor. + */ + +/** + * @template {Node} [Visited=Node] + * Visited node type. + * @template {Parent} [Ancestor=Parent] + * Ancestor type. + * @callback Visitor + * Handle a node (matching `test`, if given). + * + * Visitors are free to transform `node`. + * They can also transform the parent of node (the last of `ancestors`). + * + * Replacing `node` itself, if `SKIP` is not returned, still causes its + * descendants to be walked (which is a bug). + * + * When adding or removing previous siblings of `node` (or next siblings, in + * case of reverse), the `Visitor` should return a new `Index` to specify the + * sibling to traverse after `node` is traversed. + * Adding or removing next siblings of `node` (or previous siblings, in case + * of reverse) is handled as expected without needing to return a new `Index`. + * + * Removing the children property of an ancestor still results in them being + * traversed. + * @param {Visited} node + * Found node. + * @param {Array} ancestors + * Ancestors of `node`. + * @returns {VisitorResult} + * What to do next. + * + * An `Index` is treated as a tuple of `[CONTINUE, Index]`. + * An `Action` is treated as a tuple of `[Action]`. + * + * Passing a tuple back only makes sense if the `Action` is `SKIP`. + * When the `Action` is `EXIT`, that action can be returned. + * When the `Action` is `CONTINUE`, `Index` can be returned. + */ + +/** + * @template {Node} [Tree=Node] + * Tree type. + * @template {Test} [Check=string] + * Test type. + * @typedef {Visitor, Check>, Extract, Parent>>} BuildVisitor + * Build a typed `Visitor` function from a tree and a test. + * + * It will infer which values are passed as `node` and which as `parents`. + */ + + + + +/** + * Continue traversing as normal. + */ +var CONTINUE = true; + +/** + * Stop traversing immediately. + */ +var EXIT = false; + +/** + * Do not traverse this node’s children. + */ +var SKIP = 'skip'; + +/** + * Visit nodes, with ancestral information. + * + * This algorithm performs *depth-first* *tree traversal* in *preorder* + * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**). + * + * You can choose for which nodes `visitor` is called by passing a `test`. + * For complex tests, you should test yourself in `visitor`, as it will be + * faster and will have improved type information. + * + * Walking the tree is an intensive task. + * Make use of the return values of the visitor when possible. + * Instead of walking a tree multiple times, walk it once, use `unist-util-is` + * to check if a node matches, and then perform different operations. + * + * You can change the tree. + * See `Visitor` for more info. + * + * @param tree + * Tree to traverse. + * @param test + * `unist-util-is`-compatible test + * @param visitor + * Handle each node. + * @param reverse + * Traverse in reverse preorder (NRL) instead of the default preorder (NLR). + * @returns + * Nothing. + */ +var visitParents = +/** + * @type {( + * ((tree: Tree, test: Check, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void) & + * ((tree: Tree, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void) + * )} + */ + +/** + * @param {Node} tree + * @param {Test} test + * @param {Visitor} visitor + * @param {boolean | null | undefined} [reverse] + * @returns {void} + */ +function visitParents(tree, test, visitor, reverse) { + if (typeof test === 'function' && typeof visitor !== 'function') { + reverse = visitor; + // @ts-expect-error no visitor given, so `visitor` is test. + visitor = test; + test = null; + } + var is = convert(test); + var step = reverse ? -1 : 1; + factory(tree, undefined, [])(); + + /** + * @param {Node} node + * @param {number | undefined} index + * @param {Array} parents + */ + function factory(node, index, parents) { + /** @type {Record} */ + // @ts-expect-error: hush + var value = node && typeof node === 'object' ? node : {}; + if (typeof value.type === 'string') { + var name = + // `hast` + typeof value.tagName === 'string' ? value.tagName : + // `xast` + typeof value.name === 'string' ? value.name : undefined; + Object.defineProperty(visit, 'name', { + value: 'node (' + color(node.type + (name ? '<' + name + '>' : '')) + ')' + }); + } + return visit; + function visit() { + /** @type {ActionTuple} */ + var result = []; + /** @type {ActionTuple} */ + var subresult; + /** @type {number} */ + var offset; + /** @type {Array} */ + var grandparents; + if (!test || is(node, index, parents[parents.length - 1] || null)) { + result = toResult(visitor(node, parents)); + if (result[0] === EXIT) { + return result; + } + } + + // @ts-expect-error looks like a parent. + if (node.children && result[0] !== SKIP) { + // @ts-expect-error looks like a parent. + offset = (reverse ? node.children.length : -1) + step; + // @ts-expect-error looks like a parent. + grandparents = parents.concat(node); + + // @ts-expect-error looks like a parent. + while (offset > -1 && offset < node.children.length) { + // @ts-expect-error looks like a parent. + subresult = factory(node.children[offset], offset, grandparents)(); + if (subresult[0] === EXIT) { + return subresult; + } + offset = typeof subresult[1] === 'number' ? subresult[1] : offset + step; + } + } + return result; + } + } +}; + +/** + * Turn a return value into a clean result. + * + * @param {VisitorResult} value + * Valid return values from visitors. + * @returns {ActionTuple} + * Clean result. + */ +function toResult(value) { + if (Array.isArray(value)) { + return value; + } + if (typeof value === 'number') { + return [CONTINUE, value]; + } + return [value]; +} +;// CONCATENATED MODULE: ./node_modules/unist-util-visit/lib/index.js +/** + * @typedef {import('unist').Node} Node + * @typedef {import('unist').Parent} Parent + * @typedef {import('unist-util-is').Test} Test + * @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult + */ + +/** + * Check if `Child` can be a child of `Ancestor`. + * + * Returns the ancestor when `Child` can be a child of `Ancestor`, or returns + * `never`. + * + * @template {Node} Ancestor + * Node type. + * @template {Node} Child + * Node type. + * @typedef {( + * Ancestor extends Parent + * ? Child extends Ancestor['children'][number] + * ? Ancestor + * : never + * : never + * )} ParentsOf + */ + +/** + * @template {Node} [Visited=Node] + * Visited node type. + * @template {Parent} [Ancestor=Parent] + * Ancestor type. + * @callback Visitor + * Handle a node (matching `test`, if given). + * + * Visitors are free to transform `node`. + * They can also transform `parent`. + * + * Replacing `node` itself, if `SKIP` is not returned, still causes its + * descendants to be walked (which is a bug). + * + * When adding or removing previous siblings of `node` (or next siblings, in + * case of reverse), the `Visitor` should return a new `Index` to specify the + * sibling to traverse after `node` is traversed. + * Adding or removing next siblings of `node` (or previous siblings, in case + * of reverse) is handled as expected without needing to return a new `Index`. + * + * Removing the children property of `parent` still results in them being + * traversed. + * @param {Visited} node + * Found node. + * @param {Visited extends Node ? number | null : never} index + * Index of `node` in `parent`. + * @param {Ancestor extends Node ? Ancestor | null : never} parent + * Parent of `node`. + * @returns {VisitorResult} + * What to do next. + * + * An `Index` is treated as a tuple of `[CONTINUE, Index]`. + * An `Action` is treated as a tuple of `[Action]`. + * + * Passing a tuple back only makes sense if the `Action` is `SKIP`. + * When the `Action` is `EXIT`, that action can be returned. + * When the `Action` is `CONTINUE`, `Index` can be returned. + */ + +/** + * Build a typed `Visitor` function from a node and all possible parents. + * + * It will infer which values are passed as `node` and which as `parent`. + * + * @template {Node} Visited + * Node type. + * @template {Parent} Ancestor + * Parent type. + * @typedef {Visitor>} BuildVisitorFromMatch + */ + +/** + * Build a typed `Visitor` function from a list of descendants and a test. + * + * It will infer which values are passed as `node` and which as `parent`. + * + * @template {Node} Descendant + * Node type. + * @template {Test} Check + * Test type. + * @typedef {( + * BuildVisitorFromMatch< + * import('unist-util-visit-parents/complex-types.js').Matches, + * Extract + * > + * )} BuildVisitorFromDescendants + */ + +/** + * Build a typed `Visitor` function from a tree and a test. + * + * It will infer which values are passed as `node` and which as `parent`. + * + * @template {Node} [Tree=Node] + * Node type. + * @template {Test} [Check=string] + * Test type. + * @typedef {( + * BuildVisitorFromDescendants< + * import('unist-util-visit-parents/complex-types.js').InclusiveDescendant, + * Check + * > + * )} BuildVisitor + */ + + + +/** + * Visit nodes. + * + * This algorithm performs *depth-first* *tree traversal* in *preorder* + * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**). + * + * You can choose for which nodes `visitor` is called by passing a `test`. + * For complex tests, you should test yourself in `visitor`, as it will be + * faster and will have improved type information. + * + * Walking the tree is an intensive task. + * Make use of the return values of the visitor when possible. + * Instead of walking a tree multiple times, walk it once, use `unist-util-is` + * to check if a node matches, and then perform different operations. + * + * You can change the tree. + * See `Visitor` for more info. + * + * @param tree + * Tree to traverse. + * @param test + * `unist-util-is`-compatible test + * @param visitor + * Handle each node. + * @param reverse + * Traverse in reverse preorder (NRL) instead of the default preorder (NLR). + * @returns + * Nothing. + */ +var visit = +/** + * @type {( + * ((tree: Tree, test: Check, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void) & + * ((tree: Tree, visitor: BuildVisitor, reverse?: boolean | null | undefined) => void) + * )} + */ + +/** + * @param {Node} tree + * @param {Test} test + * @param {Visitor} visitor + * @param {boolean | null | undefined} [reverse] + * @returns {void} + */ +function visit(tree, test, visitor, reverse) { + if (typeof test === 'function' && typeof visitor !== 'function') { + reverse = visitor; + visitor = test; + test = null; + } + visitParents(tree, test, overload, reverse); + + /** + * @param {Node} node + * @param {Array} parents + */ + function overload(node, parents) { + var parent = parents[parents.length - 1]; + return visitor(node, parent ? parent.children.indexOf(node) : null, parent); + } +}; + +;// CONCATENATED MODULE: ./node_modules/unist-util-position/lib/index.js +/** + * @typedef {import('unist').Position} Position + * @typedef {import('unist').Node} Node + * @typedef {import('unist').Point} Point + */ + +/** + * @typedef NodeLike + * @property {string} type + * @property {PositionLike | null | undefined} [position] + * + * @typedef PositionLike + * @property {PointLike | null | undefined} [start] + * @property {PointLike | null | undefined} [end] + * + * @typedef PointLike + * @property {number | null | undefined} [line] + * @property {number | null | undefined} [column] + * @property {number | null | undefined} [offset] + */ + +/** + * Get the starting point of `node`. + * + * @param node + * Node. + * @returns + * Point. + */ +var pointStart = unist_util_position_lib_point('start'); + +/** + * Get the ending point of `node`. + * + * @param node + * Node. + * @returns + * Point. + */ +var pointEnd = unist_util_position_lib_point('end'); + +/** + * Get the positional info of `node`. + * + * @param {NodeLike | Node | null | undefined} [node] + * Node. + * @returns {Position} + * Position. + */ +function lib_position(node) { + return { + start: pointStart(node), + end: pointEnd(node) + }; +} + +/** + * Get the positional info of `node`. + * + * @param {'start' | 'end'} type + * Side. + * @returns + * Getter. + */ +function unist_util_position_lib_point(type) { + return point; + + /** + * Get the point info of `node` at a bound side. + * + * @param {NodeLike | Node | null | undefined} [node] + * @returns {Point} + */ + function point(node) { + var point = node && node.position && node.position[type] || {}; + + // To do: next major: don’t return points when invalid. + return { + // @ts-expect-error: in practice, null is allowed. + line: point.line || null, + // @ts-expect-error: in practice, null is allowed. + column: point.column || null, + // @ts-expect-error: in practice, null is allowed. + offset: point.offset > -1 ? point.offset : null + }; + } +} +;// CONCATENATED MODULE: ./node_modules/unist-util-generated/lib/index.js +/** + * @typedef PointLike + * @property {number | null | undefined} [line] + * @property {number | null | undefined} [column] + * @property {number | null | undefined} [offset] + * + * @typedef PositionLike + * @property {PointLike | null | undefined} [start] + * @property {PointLike | null | undefined} [end] + * + * @typedef NodeLike + * @property {PositionLike | null | undefined} [position] + */ + +/** + * Check if `node` is generated. + * + * @param {NodeLike | null | undefined} [node] + * Node to check. + * @returns {boolean} + * Whether `node` is generated (does not have positional info). + */ +function generated(node) { + return !node || !node.position || !node.position.start || !node.position.start.line || !node.position.start.column || !node.position.end || !node.position.end.line || !node.position.end.column; +} +;// CONCATENATED MODULE: ./node_modules/mdast-util-definitions/lib/index.js +/** + * @typedef {import('mdast').Root} Root + * @typedef {import('mdast').Content} Content + * @typedef {import('mdast').Definition} Definition + */ + +/** + * @typedef {Root | Content} Node + * + * @callback GetDefinition + * Get a definition by identifier. + * @param {string | null | undefined} [identifier] + * Identifier of definition. + * @returns {Definition | null} + * Definition corresponding to `identifier` or `null`. + */ + + +var mdast_util_definitions_lib_own = {}.hasOwnProperty; + +/** + * Find definitions in `tree`. + * + * Uses CommonMark precedence, which means that earlier definitions are + * preferred over duplicate later definitions. + * + * @param {Node} tree + * Tree to check. + * @returns {GetDefinition} + * Getter. + */ +function definitions(tree) { + /** @type {Record} */ + var cache = Object.create(null); + if (!tree || !tree.type) { + throw new Error('mdast-util-definitions expected node'); + } + visit(tree, 'definition', function (definition) { + var id = clean(definition.identifier); + if (id && !mdast_util_definitions_lib_own.call(cache, id)) { + cache[id] = definition; + } + }); + return definition; + + /** @type {GetDefinition} */ + function definition(identifier) { + var id = clean(identifier); + // To do: next major: return `undefined` when not found. + return id && mdast_util_definitions_lib_own.call(cache, id) ? cache[id] : null; + } +} + +/** + * @param {string | null | undefined} [value] + * @returns {string} + */ +function clean(value) { + return String(value || '').toUpperCase(); +} +;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +/** + * @typedef {import('hast').Element} Element + * @typedef {import('mdast').Blockquote} Blockquote + * @typedef {import('../state.js').State} State + */ + +/** + * Turn an mdast `blockquote` node into hast. + * + * @param {State} state + * Info passed around. + * @param {Blockquote} node + * mdast node. + * @returns {Element} + * hast node. + */ +function blockquote(state, node) { + /** @type {Element} */ + var result = { + type: 'element', + tagName: 'blockquote', + properties: {}, + children: state.wrap(state.all(node), true) + }; + state.patch(node, result); + return state.applyData(node, result); +} +;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/break.js +/** + * @typedef {import('hast').Element} Element + * @typedef {import('hast').Text} Text + * @typedef {import('mdast').Break} Break + * @typedef {import('../state.js').State} State + */ + +/** + * Turn an mdast `break` node into hast. + * + * @param {State} state + * Info passed around. + * @param {Break} node + * mdast node. + * @returns {Array} + * hast element content. + */ +function hardBreak(state, node) { + /** @type {Element} */ + var result = { + type: 'element', + tagName: 'br', + properties: {}, + children: [] + }; + state.patch(node, result); + return [state.applyData(node, result), { + type: 'text', + value: '\n' + }]; +} +;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/code.js +/** + * @typedef {import('hast').Element} Element + * @typedef {import('hast').Properties} Properties + * @typedef {import('mdast').Code} Code + * @typedef {import('../state.js').State} State + + */ + +/** + * Turn an mdast `code` node into hast. + * + * @param {State} state + * Info passed around. + * @param {Code} node + * mdast node. + * @returns {Element} + * hast node. + */ +function code(state, node) { + var value = node.value ? node.value + '\n' : ''; + // To do: next major, use `node.lang` w/o regex, the splitting’s been going + // on for years in remark now. + var lang = node.lang ? node.lang.match(/^[^ \t]+(?=[ \t]|$)/) : null; + /** @type {Properties} */ + var properties = {}; + if (lang) { + properties.className = ['language-' + lang]; + } + + // Create ``. + /** @type {Element} */ + var result = { + type: 'element', + tagName: 'code', + properties: properties, + children: [{ + type: 'text', + value: value + }] + }; + if (node.meta) { + result.data = { + meta: node.meta + }; + } + state.patch(node, result); + result = state.applyData(node, result); + + // Create `
`.
+  result = {
+    type: 'element',
+    tagName: 'pre',
+    properties: {},
+    children: [result]
+  };
+  state.patch(node, result);
+  return result;
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/delete.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').Delete} Delete
+ * @typedef {import('../state.js').State} State
+
+ */
+
+/**
+ * Turn an mdast `delete` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Delete} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function strikethrough(state, node) {
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'del',
+    properties: {},
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/emphasis.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').Emphasis} Emphasis
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `emphasis` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Emphasis} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function emphasis(state, node) {
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'em',
+    properties: {},
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js
+/**
+ * @typedef {import('mdast').FootnoteReference} FootnoteReference
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+/**
+ * Turn an mdast `footnoteReference` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {FootnoteReference} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function footnoteReference(state, node) {
+  var id = String(node.identifier).toUpperCase();
+  var safeId = normalizeUri(id.toLowerCase());
+  var index = state.footnoteOrder.indexOf(id);
+  /** @type {number} */
+  var counter;
+  if (index === -1) {
+    state.footnoteOrder.push(id);
+    state.footnoteCounts[id] = 1;
+    counter = state.footnoteOrder.length;
+  } else {
+    state.footnoteCounts[id]++;
+    counter = index + 1;
+  }
+  var reuseCounter = state.footnoteCounts[id];
+
+  /** @type {Element} */
+  var link = {
+    type: 'element',
+    tagName: 'a',
+    properties: {
+      href: '#' + state.clobberPrefix + 'fn-' + safeId,
+      id: state.clobberPrefix + 'fnref-' + safeId + (reuseCounter > 1 ? '-' + reuseCounter : ''),
+      dataFootnoteRef: true,
+      ariaDescribedBy: ['footnote-label']
+    },
+    children: [{
+      type: 'text',
+      value: String(counter)
+    }]
+  };
+  state.patch(node, link);
+
+  /** @type {Element} */
+  var sup = {
+    type: 'element',
+    tagName: 'sup',
+    properties: {},
+    children: [link]
+  };
+  state.patch(node, sup);
+  return state.applyData(node, sup);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/footnote.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').Footnote} Footnote
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+// To do: when both:
+// * 
+// * 
+// …are archived, remove this (also from mdast).
+// These inline notes are not used in GFM.
+
+/**
+ * Turn an mdast `footnote` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Footnote} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function footnote(state, node) {
+  var footnoteById = state.footnoteById;
+  var no = 1;
+  while (no in footnoteById) no++;
+  var identifier = String(no);
+  footnoteById[identifier] = {
+    type: 'footnoteDefinition',
+    identifier: identifier,
+    children: [{
+      type: 'paragraph',
+      children: node.children
+    }],
+    position: node.position
+  };
+  return footnoteReference(state, {
+    type: 'footnoteReference',
+    identifier: identifier,
+    position: node.position
+  });
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/heading.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').Heading} Heading
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `heading` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Heading} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function heading(state, node) {
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'h' + node.depth,
+    properties: {},
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/html.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').HTML} Html
+ * @typedef {import('../state.js').State} State
+ * @typedef {import('../../index.js').Raw} Raw
+ */
+
+/**
+ * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise
+ * nothing).
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Html} node
+ *   mdast node.
+ * @returns {Raw | Element | null}
+ *   hast node.
+ */
+function html(state, node) {
+  if (state.dangerous) {
+    /** @type {Raw} */
+    var result = {
+      type: 'raw',
+      value: node.value
+    };
+    state.patch(node, result);
+    return state.applyData(node, result);
+  }
+
+  // To do: next major: return `undefined`.
+  return null;
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/revert.js
+/**
+ * @typedef {import('hast').ElementContent} ElementContent
+ *
+ * @typedef {import('mdast').Content} Content
+ * @typedef {import('mdast').Reference} Reference
+ * @typedef {import('mdast').Root} Root
+ *
+ * @typedef {import('./state.js').State} State
+ */
+
+/**
+ * @typedef {Root | Content} Nodes
+ * @typedef {Extract} References
+ */
+
+// To do: next major: always return array.
+
+/**
+ * Return the content of a reference without definition as plain text.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {References} node
+ *   Reference node (image, link).
+ * @returns {ElementContent | Array}
+ *   hast content.
+ */
+function revert(state, node) {
+  var subtype = node.referenceType;
+  var suffix = ']';
+  if (subtype === 'collapsed') {
+    suffix += '[]';
+  } else if (subtype === 'full') {
+    suffix += '[' + (node.label || node.identifier) + ']';
+  }
+  if (node.type === 'imageReference') {
+    return {
+      type: 'text',
+      value: '![' + node.alt + suffix
+    };
+  }
+  var contents = state.all(node);
+  var head = contents[0];
+  if (head && head.type === 'text') {
+    head.value = '[' + head.value;
+  } else {
+    contents.unshift({
+      type: 'text',
+      value: '['
+    });
+  }
+  var tail = contents[contents.length - 1];
+  if (tail && tail.type === 'text') {
+    tail.value += suffix;
+  } else {
+    contents.push({
+      type: 'text',
+      value: suffix
+    });
+  }
+  return contents;
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/image-reference.js
+/**
+ * @typedef {import('hast').ElementContent} ElementContent
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').Properties} Properties
+ * @typedef {import('mdast').ImageReference} ImageReference
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+
+/**
+ * Turn an mdast `imageReference` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {ImageReference} node
+ *   mdast node.
+ * @returns {ElementContent | Array}
+ *   hast node.
+ */
+function imageReference(state, node) {
+  var def = state.definition(node.identifier);
+  if (!def) {
+    return revert(state, node);
+  }
+
+  /** @type {Properties} */
+  var properties = {
+    src: normalizeUri(def.url || ''),
+    alt: node.alt
+  };
+  if (def.title !== null && def.title !== undefined) {
+    properties.title = def.title;
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'img',
+    properties: properties,
+    children: []
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/image.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').Properties} Properties
+ * @typedef {import('mdast').Image} Image
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+/**
+ * Turn an mdast `image` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Image} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function image_image(state, node) {
+  /** @type {Properties} */
+  var properties = {
+    src: normalizeUri(node.url)
+  };
+  if (node.alt !== null && node.alt !== undefined) {
+    properties.alt = node.alt;
+  }
+  if (node.title !== null && node.title !== undefined) {
+    properties.title = node.title;
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'img',
+    properties: properties,
+    children: []
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/inline-code.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').Text} Text
+ * @typedef {import('mdast').InlineCode} InlineCode
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `inlineCode` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {InlineCode} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function inlineCode(state, node) {
+  /** @type {Text} */
+  var text = {
+    type: 'text',
+    value: node.value.replace(/\r?\n|\r/g, ' ')
+  };
+  state.patch(node, text);
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'code',
+    properties: {},
+    children: [text]
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/link-reference.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').ElementContent} ElementContent
+ * @typedef {import('hast').Properties} Properties
+ * @typedef {import('mdast').LinkReference} LinkReference
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+
+/**
+ * Turn an mdast `linkReference` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {LinkReference} node
+ *   mdast node.
+ * @returns {ElementContent | Array}
+ *   hast node.
+ */
+function linkReference(state, node) {
+  var def = state.definition(node.identifier);
+  if (!def) {
+    return revert(state, node);
+  }
+
+  /** @type {Properties} */
+  var properties = {
+    href: normalizeUri(def.url || '')
+  };
+  if (def.title !== null && def.title !== undefined) {
+    properties.title = def.title;
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'a',
+    properties: properties,
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/link.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').Properties} Properties
+ * @typedef {import('mdast').Link} Link
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+/**
+ * Turn an mdast `link` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Link} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function link_link(state, node) {
+  /** @type {Properties} */
+  var properties = {
+    href: normalizeUri(node.url)
+  };
+  if (node.title !== null && node.title !== undefined) {
+    properties.title = node.title;
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'a',
+    properties: properties,
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/list-item.js
+
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').ElementContent} ElementContent
+ * @typedef {import('hast').Properties} Properties
+ * @typedef {import('mdast').Content} Content
+ * @typedef {import('mdast').ListItem} ListItem
+ * @typedef {import('mdast').Parent} Parent
+ * @typedef {import('mdast').Root} Root
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * @typedef {Root | Content} Nodes
+ * @typedef {Extract} Parents
+ */
+
+/**
+ * Turn an mdast `listItem` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {ListItem} node
+ *   mdast node.
+ * @param {Parents | null | undefined} parent
+ *   Parent of `node`.
+ * @returns {Element}
+ *   hast node.
+ */
+function listItem(state, node, parent) {
+  var results = state.all(node);
+  var loose = parent ? listLoose(parent) : listItemLoose(node);
+  /** @type {Properties} */
+  var properties = {};
+  /** @type {Array} */
+  var children = [];
+  if (typeof node.checked === 'boolean') {
+    var head = results[0];
+    /** @type {Element} */
+    var paragraph;
+    if (head && head.type === 'element' && head.tagName === 'p') {
+      paragraph = head;
+    } else {
+      paragraph = {
+        type: 'element',
+        tagName: 'p',
+        properties: {},
+        children: []
+      };
+      results.unshift(paragraph);
+    }
+    if (paragraph.children.length > 0) {
+      paragraph.children.unshift({
+        type: 'text',
+        value: ' '
+      });
+    }
+    paragraph.children.unshift({
+      type: 'element',
+      tagName: 'input',
+      properties: {
+        type: 'checkbox',
+        checked: node.checked,
+        disabled: true
+      },
+      children: []
+    });
+
+    // According to github-markdown-css, this class hides bullet.
+    // See: .
+    properties.className = ['task-list-item'];
+  }
+  var index = -1;
+  while (++index < results.length) {
+    var child = results[index];
+
+    // Add eols before nodes, except if this is a loose, first paragraph.
+    if (loose || index !== 0 || child.type !== 'element' || child.tagName !== 'p') {
+      children.push({
+        type: 'text',
+        value: '\n'
+      });
+    }
+    if (child.type === 'element' && child.tagName === 'p' && !loose) {
+      children.push.apply(children, (0,toConsumableArray/* default */.Z)(child.children));
+    } else {
+      children.push(child);
+    }
+  }
+  var tail = results[results.length - 1];
+
+  // Add a final eol.
+  if (tail && (loose || tail.type !== 'element' || tail.tagName !== 'p')) {
+    children.push({
+      type: 'text',
+      value: '\n'
+    });
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'li',
+    properties: properties,
+    children: children
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+
+/**
+ * @param {Parents} node
+ * @return {Boolean}
+ */
+function listLoose(node) {
+  var loose = false;
+  if (node.type === 'list') {
+    loose = node.spread || false;
+    var children = node.children;
+    var index = -1;
+    while (!loose && ++index < children.length) {
+      loose = listItemLoose(children[index]);
+    }
+  }
+  return loose;
+}
+
+/**
+ * @param {ListItem} node
+ * @return {Boolean}
+ */
+function listItemLoose(node) {
+  var spread = node.spread;
+  return spread === undefined || spread === null ? node.children.length > 1 : spread;
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/list.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').Properties} Properties
+ * @typedef {import('mdast').List} List
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `list` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {List} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function list_list(state, node) {
+  /** @type {Properties} */
+  var properties = {};
+  var results = state.all(node);
+  var index = -1;
+  if (typeof node.start === 'number' && node.start !== 1) {
+    properties.start = node.start;
+  }
+
+  // Like GitHub, add a class for custom styling.
+  while (++index < results.length) {
+    var child = results[index];
+    if (child.type === 'element' && child.tagName === 'li' && child.properties && Array.isArray(child.properties.className) && child.properties.className.includes('task-list-item')) {
+      properties.className = ['contains-task-list'];
+      break;
+    }
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: node.ordered ? 'ol' : 'ul',
+    properties: properties,
+    children: state.wrap(results, true)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/paragraph.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').Paragraph} Paragraph
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `paragraph` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Paragraph} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function paragraph(state, node) {
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'p',
+    properties: {},
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/root.js
+/**
+ * @typedef {import('hast').Root} HastRoot
+ * @typedef {import('hast').Element} HastElement
+ * @typedef {import('mdast').Root} MdastRoot
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `root` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {MdastRoot} node
+ *   mdast node.
+ * @returns {HastRoot | HastElement}
+ *   hast node.
+ */
+function root(state, node) {
+  /** @type {HastRoot} */
+  var result = {
+    type: 'root',
+    children: state.wrap(state.all(node))
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/strong.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').Strong} Strong
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `strong` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Strong} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function strong(state, node) {
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'strong',
+    properties: {},
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/table.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').Table} Table
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+/**
+ * Turn an mdast `table` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {Table} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function table(state, node) {
+  var rows = state.all(node);
+  var firstRow = rows.shift();
+  /** @type {Array} */
+  var tableContent = [];
+  if (firstRow) {
+    /** @type {Element} */
+    var head = {
+      type: 'element',
+      tagName: 'thead',
+      properties: {},
+      children: state.wrap([firstRow], true)
+    };
+    state.patch(node.children[0], head);
+    tableContent.push(head);
+  }
+  if (rows.length > 0) {
+    /** @type {Element} */
+    var body = {
+      type: 'element',
+      tagName: 'tbody',
+      properties: {},
+      children: state.wrap(rows, true)
+    };
+    var start = pointStart(node.children[1]);
+    var end = pointEnd(node.children[node.children.length - 1]);
+    if (start.line && end.line) body.position = {
+      start: start,
+      end: end
+    };
+    tableContent.push(body);
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'table',
+    properties: {},
+    children: state.wrap(tableContent, true)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/table-row.js
+/**
+ * @typedef {import('hast').Properties} Properties
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('hast').ElementContent} ElementContent
+ * @typedef {import('mdast').Content} Content
+ * @typedef {import('mdast').Parent} Parent
+ * @typedef {import('mdast').Root} Root
+ * @typedef {import('mdast').TableRow} TableRow
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * @typedef {Root | Content} Nodes
+ * @typedef {Extract} Parents
+ */
+
+/**
+ * Turn an mdast `tableRow` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {TableRow} node
+ *   mdast node.
+ * @param {Parents | null | undefined} parent
+ *   Parent of `node`.
+ * @returns {Element}
+ *   hast node.
+ */
+function tableRow(state, node, parent) {
+  var siblings = parent ? parent.children : undefined;
+  // Generate a body row when without parent.
+  var rowIndex = siblings ? siblings.indexOf(node) : 1;
+  var tagName = rowIndex === 0 ? 'th' : 'td';
+  var align = parent && parent.type === 'table' ? parent.align : undefined;
+  var length = align ? align.length : node.children.length;
+  var cellIndex = -1;
+  /** @type {Array} */
+  var cells = [];
+  while (++cellIndex < length) {
+    // Note: can also be undefined.
+    var cell = node.children[cellIndex];
+    /** @type {Properties} */
+    var properties = {};
+    var alignValue = align ? align[cellIndex] : undefined;
+    if (alignValue) {
+      properties.align = alignValue;
+    }
+
+    /** @type {Element} */
+    var _result = {
+      type: 'element',
+      tagName: tagName,
+      properties: properties,
+      children: []
+    };
+    if (cell) {
+      _result.children = state.all(cell);
+      state.patch(cell, _result);
+      _result = state.applyData(node, _result);
+    }
+    cells.push(_result);
+  }
+
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'tr',
+    properties: {},
+    children: state.wrap(cells, true)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/table-cell.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').TableCell} TableCell
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `tableCell` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {TableCell} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function tableCell(state, node) {
+  // Note: this function is normally not called: see `table-row` for how rows
+  // and their cells are compiled.
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'td',
+    // Assume body cell.
+    properties: {},
+    children: state.all(node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/trim-lines/index.js
+var tab = 9; /* `\t` */
+var space = 32; /* ` ` */
+
+/**
+ * Remove initial and final spaces and tabs at the line breaks in `value`.
+ * Does not trim initial and final spaces and tabs of the value itself.
+ *
+ * @param {string} value
+ *   Value to trim.
+ * @returns {string}
+ *   Trimmed value.
+ */
+function trimLines(value) {
+  var source = String(value);
+  var search = /\r?\n|\r/g;
+  var match = search.exec(source);
+  var last = 0;
+  /** @type {Array} */
+  var lines = [];
+  while (match) {
+    lines.push(trimLine(source.slice(last, match.index), last > 0, true), match[0]);
+    last = match.index + match[0].length;
+    match = search.exec(source);
+  }
+  lines.push(trimLine(source.slice(last), last > 0, false));
+  return lines.join('');
+}
+
+/**
+ * @param {string} value
+ *   Line to trim.
+ * @param {boolean} start
+ *   Whether to trim the start of the line.
+ * @param {boolean} end
+ *   Whether to trim the end of the line.
+ * @returns {string}
+ *   Trimmed line.
+ */
+function trimLine(value, start, end) {
+  var startIndex = 0;
+  var endIndex = value.length;
+  if (start) {
+    var code = value.codePointAt(startIndex);
+    while (code === tab || code === space) {
+      startIndex++;
+      code = value.codePointAt(startIndex);
+    }
+  }
+  if (end) {
+    var _code = value.codePointAt(endIndex - 1);
+    while (_code === tab || _code === space) {
+      endIndex--;
+      _code = value.codePointAt(endIndex - 1);
+    }
+  }
+  return endIndex > startIndex ? value.slice(startIndex, endIndex) : '';
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/text.js
+/**
+ * @typedef {import('hast').Element} HastElement
+ * @typedef {import('hast').Text} HastText
+ * @typedef {import('mdast').Text} MdastText
+ * @typedef {import('../state.js').State} State
+ */
+
+
+
+/**
+ * Turn an mdast `text` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {MdastText} node
+ *   mdast node.
+ * @returns {HastText | HastElement}
+ *   hast node.
+ */
+function handlers_text_text(state, node) {
+  /** @type {HastText} */
+  var result = {
+    type: 'text',
+    value: trimLines(String(node.value))
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js
+/**
+ * @typedef {import('hast').Element} Element
+ * @typedef {import('mdast').ThematicBreak} ThematicBreak
+ * @typedef {import('../state.js').State} State
+ */
+
+/**
+ * Turn an mdast `thematicBreak` node into hast.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {ThematicBreak} node
+ *   mdast node.
+ * @returns {Element}
+ *   hast node.
+ */
+function thematic_break_thematicBreak(state, node) {
+  /** @type {Element} */
+  var result = {
+    type: 'element',
+    tagName: 'hr',
+    properties: {},
+    children: []
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/index.js
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/**
+ * Default handlers for nodes.
+ */
+var handlers = {
+  blockquote: blockquote,
+  break: hardBreak,
+  code: code,
+  delete: strikethrough,
+  emphasis: emphasis,
+  footnoteReference: footnoteReference,
+  footnote: footnote,
+  heading: heading,
+  html: html,
+  imageReference: imageReference,
+  image: image_image,
+  inlineCode: inlineCode,
+  linkReference: linkReference,
+  link: link_link,
+  listItem: listItem,
+  list: list_list,
+  paragraph: paragraph,
+  root: root,
+  strong: strong,
+  table: table,
+  tableCell: tableCell,
+  tableRow: tableRow,
+  text: handlers_text_text,
+  thematicBreak: thematic_break_thematicBreak,
+  toml: ignore,
+  yaml: ignore,
+  definition: ignore,
+  footnoteDefinition: ignore
+};
+
+// Return nothing for nodes that are ignored.
+function ignore() {
+  // To do: next major: return `undefined`.
+  return null;
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/state.js
+
+
+/**
+ * @typedef {import('hast').Content} HastContent
+ * @typedef {import('hast').Element} HastElement
+ * @typedef {import('hast').ElementContent} HastElementContent
+ * @typedef {import('hast').Properties} HastProperties
+ * @typedef {import('hast').Root} HastRoot
+ * @typedef {import('hast').Text} HastText
+ *
+ * @typedef {import('mdast').Content} MdastContent
+ * @typedef {import('mdast').Definition} MdastDefinition
+ * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition
+ * @typedef {import('mdast').Parent} MdastParent
+ * @typedef {import('mdast').Root} MdastRoot
+ */
+
+/**
+ * @typedef {HastRoot | HastContent} HastNodes
+ * @typedef {MdastRoot | MdastContent} MdastNodes
+ * @typedef {Extract} MdastParents
+ *
+ * @typedef EmbeddedHastFields
+ *   hast fields.
+ * @property {string | null | undefined} [hName]
+ *   Generate a specific element with this tag name instead.
+ * @property {HastProperties | null | undefined} [hProperties]
+ *   Generate an element with these properties instead.
+ * @property {Array | null | undefined} [hChildren]
+ *   Generate an element with this content instead.
+ *
+ * @typedef {Record & EmbeddedHastFields} MdastData
+ *   mdast data with embedded hast fields.
+ *
+ * @typedef {MdastNodes & {data?: MdastData | null | undefined}} MdastNodeWithData
+ *   mdast node with embedded hast data.
+ *
+ * @typedef PointLike
+ *   Point-like value.
+ * @property {number | null | undefined} [line]
+ *   Line.
+ * @property {number | null | undefined} [column]
+ *   Column.
+ * @property {number | null | undefined} [offset]
+ *   Offset.
+ *
+ * @typedef PositionLike
+ *   Position-like value.
+ * @property {PointLike | null | undefined} [start]
+ *   Point-like value.
+ * @property {PointLike | null | undefined} [end]
+ *   Point-like value.
+ *
+ * @callback Handler
+ *   Handle a node.
+ * @param {State} state
+ *   Info passed around.
+ * @param {any} node
+ *   mdast node to handle.
+ * @param {MdastParents | null | undefined} parent
+ *   Parent of `node`.
+ * @returns {HastElementContent | Array | null | undefined}
+ *   hast node.
+ *
+ * @callback HFunctionProps
+ *   Signature of `state` for when props are passed.
+ * @param {MdastNodes | PositionLike | null | undefined} node
+ *   mdast node or unist position.
+ * @param {string} tagName
+ *   HTML tag name.
+ * @param {HastProperties} props
+ *   Properties.
+ * @param {Array | null | undefined} [children]
+ *   hast content.
+ * @returns {HastElement}
+ *   Compiled element.
+ *
+ * @callback HFunctionNoProps
+ *   Signature of `state` for when no props are passed.
+ * @param {MdastNodes | PositionLike | null | undefined} node
+ *   mdast node or unist position.
+ * @param {string} tagName
+ *   HTML tag name.
+ * @param {Array | null | undefined} [children]
+ *   hast content.
+ * @returns {HastElement}
+ *   Compiled element.
+ *
+ * @typedef HFields
+ *   Info on `state`.
+ * @property {boolean} dangerous
+ *   Whether HTML is allowed.
+ * @property {string} clobberPrefix
+ *   Prefix to use to prevent DOM clobbering.
+ * @property {string} footnoteLabel
+ *   Label to use to introduce the footnote section.
+ * @property {string} footnoteLabelTagName
+ *   HTML used for the footnote label.
+ * @property {HastProperties} footnoteLabelProperties
+ *   Properties on the HTML tag used for the footnote label.
+ * @property {string} footnoteBackLabel
+ *   Label to use from backreferences back to their footnote call.
+ * @property {(identifier: string) => MdastDefinition | null} definition
+ *   Definition cache.
+ * @property {Record} footnoteById
+ *   Footnote definitions by their identifier.
+ * @property {Array} footnoteOrder
+ *   Identifiers of order when footnote calls first appear in tree order.
+ * @property {Record} footnoteCounts
+ *   Counts for how often the same footnote was called.
+ * @property {Handlers} handlers
+ *   Applied handlers.
+ * @property {Handler} unknownHandler
+ *   Handler for any none not in `passThrough` or otherwise handled.
+ * @property {(from: MdastNodes, node: HastNodes) => void} patch
+ *   Copy a node’s positional info.
+ * @property {(from: MdastNodes, to: Type) => Type | HastElement} applyData
+ *   Honor the `data` of `from`, and generate an element instead of `node`.
+ * @property {(node: MdastNodes, parent: MdastParents | null | undefined) => HastElementContent | Array | null | undefined} one
+ *   Transform an mdast node to hast.
+ * @property {(node: MdastNodes) => Array} all
+ *   Transform the children of an mdast parent to hast.
+ * @property {(nodes: Array, loose?: boolean | null | undefined) => Array} wrap
+ *   Wrap `nodes` with line endings between each node, adds initial/final line endings when `loose`.
+ * @property {(left: MdastNodeWithData | PositionLike | null | undefined, right: HastElementContent) => HastElementContent} augment
+ *   Like `state` but lower-level and usable on non-elements.
+ *   Deprecated: use `patch` and `applyData`.
+ * @property {Array} passThrough
+ *   List of node types to pass through untouched (except for their children).
+ *
+ * @typedef Options
+ *   Configuration (optional).
+ * @property {boolean | null | undefined} [allowDangerousHtml=false]
+ *   Whether to persist raw HTML in markdown in the hast tree.
+ * @property {string | null | undefined} [clobberPrefix='user-content-']
+ *   Prefix to use before the `id` attribute on footnotes to prevent it from
+ *   *clobbering*.
+ * @property {string | null | undefined} [footnoteBackLabel='Back to content']
+ *   Label to use from backreferences back to their footnote call (affects
+ *   screen readers).
+ * @property {string | null | undefined} [footnoteLabel='Footnotes']
+ *   Label to use for the footnotes section (affects screen readers).
+ * @property {HastProperties | null | undefined} [footnoteLabelProperties={className: ['sr-only']}]
+ *   Properties to use on the footnote label (note that `id: 'footnote-label'`
+ *   is always added as footnote calls use it with `aria-describedby` to
+ *   provide an accessible label).
+ * @property {string | null | undefined} [footnoteLabelTagName='h2']
+ *   Tag name to use for the footnote label.
+ * @property {Handlers | null | undefined} [handlers]
+ *   Extra handlers for nodes.
+ * @property {Array | null | undefined} [passThrough]
+ *   List of custom mdast node types to pass through (keep) in hast (note that
+ *   the node itself is passed, but eventual children are transformed).
+ * @property {Handler | null | undefined} [unknownHandler]
+ *   Handler for all unknown nodes.
+ *
+ * @typedef {Record} Handlers
+ *   Handle nodes.
+ *
+ * @typedef {HFunctionProps & HFunctionNoProps & HFields} State
+ *   Info passed around.
+ */
+
+
+
+
+
+
+var state_own = {}.hasOwnProperty;
+
+/**
+ * Create `state` from an mdast tree.
+ *
+ * @param {MdastNodes} tree
+ *   mdast node to transform.
+ * @param {Options | null | undefined} [options]
+ *   Configuration.
+ * @returns {State}
+ *   `state` function.
+ */
+function createState(tree, options) {
+  var settings = options || {};
+  var dangerous = settings.allowDangerousHtml || false;
+  /** @type {Record} */
+  var footnoteById = {};
+
+  // To do: next major: add `options` to state, remove:
+  // `dangerous`, `clobberPrefix`, `footnoteLabel`, `footnoteLabelTagName`,
+  // `footnoteLabelProperties`, `footnoteBackLabel`, `passThrough`,
+  // `unknownHandler`.
+
+  // To do: next major: move to `state.options.allowDangerousHtml`.
+  state.dangerous = dangerous;
+  // To do: next major: move to `state.options`.
+  state.clobberPrefix = settings.clobberPrefix === undefined || settings.clobberPrefix === null ? 'user-content-' : settings.clobberPrefix;
+  // To do: next major: move to `state.options`.
+  state.footnoteLabel = settings.footnoteLabel || 'Footnotes';
+  // To do: next major: move to `state.options`.
+  state.footnoteLabelTagName = settings.footnoteLabelTagName || 'h2';
+  // To do: next major: move to `state.options`.
+  state.footnoteLabelProperties = settings.footnoteLabelProperties || {
+    className: ['sr-only']
+  };
+  // To do: next major: move to `state.options`.
+  state.footnoteBackLabel = settings.footnoteBackLabel || 'Back to content';
+  // To do: next major: move to `state.options`.
+  state.unknownHandler = settings.unknownHandler;
+  // To do: next major: move to `state.options`.
+  state.passThrough = settings.passThrough;
+  state.handlers = _objectSpread2(_objectSpread2({}, handlers), settings.handlers);
+
+  // To do: next major: replace utility with `definitionById` object, so we
+  // only walk once (as we need footnotes too).
+  state.definition = definitions(tree);
+  state.footnoteById = footnoteById;
+  /** @type {Array} */
+  state.footnoteOrder = [];
+  /** @type {Record} */
+  state.footnoteCounts = {};
+  state.patch = patch;
+  state.applyData = applyData;
+  state.one = oneBound;
+  state.all = allBound;
+  state.wrap = state_wrap;
+  // To do: next major: remove `augment`.
+  state.augment = augment;
+  visit(tree, 'footnoteDefinition', function (definition) {
+    var id = String(definition.identifier).toUpperCase();
+
+    // Mimick CM behavior of link definitions.
+    // See: .
+    if (!state_own.call(footnoteById, id)) {
+      footnoteById[id] = definition;
+    }
+  });
+
+  // @ts-expect-error Hush, it’s fine!
+  return state;
+
+  /**
+   * Finalise the created `right`, a hast node, from `left`, an mdast node.
+   *
+   * @param {MdastNodeWithData | PositionLike | null | undefined} left
+   * @param {HastElementContent} right
+   * @returns {HastElementContent}
+   */
+  /* c8 ignore start */
+  // To do: next major: remove.
+  function augment(left, right) {
+    // Handle `data.hName`, `data.hProperties, `data.hChildren`.
+    if (left && 'data' in left && left.data) {
+      /** @type {MdastData} */
+      var data = left.data;
+      if (data.hName) {
+        if (right.type !== 'element') {
+          right = {
+            type: 'element',
+            tagName: '',
+            properties: {},
+            children: []
+          };
+        }
+        right.tagName = data.hName;
+      }
+      if (right.type === 'element' && data.hProperties) {
+        right.properties = _objectSpread2(_objectSpread2({}, right.properties), data.hProperties);
+      }
+      if ('children' in right && right.children && data.hChildren) {
+        right.children = data.hChildren;
+      }
+    }
+    if (left) {
+      var ctx = 'type' in left ? left : {
+        position: left
+      };
+      if (!generated(ctx)) {
+        // @ts-expect-error: fine.
+        right.position = {
+          start: pointStart(ctx),
+          end: pointEnd(ctx)
+        };
+      }
+    }
+    return right;
+  }
+  /* c8 ignore stop */
+
+  /**
+   * Create an element for `node`.
+   *
+   * @type {HFunctionProps}
+   */
+  /* c8 ignore start */
+  // To do: next major: remove.
+  function state(node, tagName, props, children) {
+    if (Array.isArray(props)) {
+      children = props;
+      props = {};
+    }
+
+    // @ts-expect-error augmenting an element yields an element.
+    return augment(node, {
+      type: 'element',
+      tagName: tagName,
+      properties: props || {},
+      children: children || []
+    });
+  }
+  /* c8 ignore stop */
+
+  /**
+   * Transform an mdast node into a hast node.
+   *
+   * @param {MdastNodes} node
+   *   mdast node.
+   * @param {MdastParents | null | undefined} [parent]
+   *   Parent of `node`.
+   * @returns {HastElementContent | Array | null | undefined}
+   *   Resulting hast node.
+   */
+  function oneBound(node, parent) {
+    // @ts-expect-error: that’s a state :)
+    return state_one(state, node, parent);
+  }
+
+  /**
+   * Transform the children of an mdast node into hast nodes.
+   *
+   * @param {MdastNodes} parent
+   *   mdast node to compile
+   * @returns {Array}
+   *   Resulting hast nodes.
+   */
+  function allBound(parent) {
+    // @ts-expect-error: that’s a state :)
+    return state_all(state, parent);
+  }
+}
+
+/**
+ * Copy a node’s positional info.
+ *
+ * @param {MdastNodes} from
+ *   mdast node to copy from.
+ * @param {HastNodes} to
+ *   hast node to copy into.
+ * @returns {void}
+ *   Nothing.
+ */
+function patch(from, to) {
+  if (from.position) to.position = lib_position(from);
+}
+
+/**
+ * Honor the `data` of `from` and maybe generate an element instead of `to`.
+ *
+ * @template {HastNodes} Type
+ *   Node type.
+ * @param {MdastNodes} from
+ *   mdast node to use data from.
+ * @param {Type} to
+ *   hast node to change.
+ * @returns {Type | HastElement}
+ *   Nothing.
+ */
+function applyData(from, to) {
+  /** @type {Type | HastElement} */
+  var result = to;
+
+  // Handle `data.hName`, `data.hProperties, `data.hChildren`.
+  if (from && from.data) {
+    var hName = from.data.hName;
+    var hChildren = from.data.hChildren;
+    var hProperties = from.data.hProperties;
+    if (typeof hName === 'string') {
+      // Transforming the node resulted in an element with a different name
+      // than wanted:
+      if (result.type === 'element') {
+        result.tagName = hName;
+      }
+      // Transforming the node resulted in a non-element, which happens for
+      // raw, text, and root nodes (unless custom handlers are passed).
+      // The intent is likely to keep the content around (otherwise: pass
+      // `hChildren`).
+      else {
+        result = {
+          type: 'element',
+          tagName: hName,
+          properties: {},
+          children: []
+        };
+
+        // To do: next major: take the children from the `root`, or inject the
+        // raw/text/comment or so into the element?
+        // if ('children' in node) {
+        //   // @ts-expect-error: assume `children` are allowed in elements.
+        //   result.children = node.children
+        // } else {
+        //   // @ts-expect-error: assume `node` is allowed in elements.
+        //   result.children.push(node)
+        // }
+      }
+    }
+
+    if (result.type === 'element' && hProperties) {
+      result.properties = _objectSpread2(_objectSpread2({}, result.properties), hProperties);
+    }
+    if ('children' in result && result.children && hChildren !== null && hChildren !== undefined) {
+      // @ts-expect-error: assume valid children are defined.
+      result.children = hChildren;
+    }
+  }
+  return result;
+}
+
+/**
+ * Transform an mdast node into a hast node.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {MdastNodes} node
+ *   mdast node.
+ * @param {MdastParents | null | undefined} [parent]
+ *   Parent of `node`.
+ * @returns {HastElementContent | Array | null | undefined}
+ *   Resulting hast node.
+ */
+// To do: next major: do not expose, keep bound.
+function state_one(state, node, parent) {
+  var type = node && node.type;
+
+  // Fail on non-nodes.
+  if (!type) {
+    throw new Error('Expected node, got `' + node + '`');
+  }
+  if (state_own.call(state.handlers, type)) {
+    return state.handlers[type](state, node, parent);
+  }
+  if (state.passThrough && state.passThrough.includes(type)) {
+    // To do: next major: deep clone.
+    // @ts-expect-error: types of passed through nodes are expected to be added manually.
+    return 'children' in node ? _objectSpread2(_objectSpread2({}, node), {}, {
+      children: state_all(state, node)
+    }) : node;
+  }
+  if (state.unknownHandler) {
+    return state.unknownHandler(state, node, parent);
+  }
+  return defaultUnknownHandler(state, node);
+}
+
+/**
+ * Transform the children of an mdast node into hast nodes.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {MdastNodes} parent
+ *   mdast node to compile
+ * @returns {Array}
+ *   Resulting hast nodes.
+ */
+// To do: next major: do not expose, keep bound.
+function state_all(state, parent) {
+  /** @type {Array} */
+  var values = [];
+  if ('children' in parent) {
+    var nodes = parent.children;
+    var index = -1;
+    while (++index < nodes.length) {
+      var result = state_one(state, nodes[index], parent);
+
+      // To do: see if we van clean this? Can we merge texts?
+      if (result) {
+        if (index && nodes[index - 1].type === 'break') {
+          if (!Array.isArray(result) && result.type === 'text') {
+            result.value = result.value.replace(/^\s+/, '');
+          }
+          if (!Array.isArray(result) && result.type === 'element') {
+            var head = result.children[0];
+            if (head && head.type === 'text') {
+              head.value = head.value.replace(/^\s+/, '');
+            }
+          }
+        }
+        if (Array.isArray(result)) {
+          values.push.apply(values, (0,toConsumableArray/* default */.Z)(result));
+        } else {
+          values.push(result);
+        }
+      }
+    }
+  }
+  return values;
+}
+
+/**
+ * Transform an unknown node.
+ *
+ * @param {State} state
+ *   Info passed around.
+ * @param {MdastNodes} node
+ *   Unknown mdast node.
+ * @returns {HastText | HastElement}
+ *   Resulting hast node.
+ */
+function defaultUnknownHandler(state, node) {
+  var data = node.data || {};
+  /** @type {HastText | HastElement} */
+  var result = 'value' in node && !(state_own.call(data, 'hProperties') || state_own.call(data, 'hChildren')) ? {
+    type: 'text',
+    value: node.value
+  } : {
+    type: 'element',
+    tagName: 'div',
+    properties: {},
+    children: state_all(state, node)
+  };
+  state.patch(node, result);
+  return state.applyData(node, result);
+}
+
+/**
+ * Wrap `nodes` with line endings between each node.
+ *
+ * @template {HastContent} Type
+ *   Node type.
+ * @param {Array} nodes
+ *   List of nodes to wrap.
+ * @param {boolean | null | undefined} [loose=false]
+ *   Whether to add line endings at start and end.
+ * @returns {Array}
+ *   Wrapped nodes.
+ */
+function state_wrap(nodes, loose) {
+  /** @type {Array} */
+  var result = [];
+  var index = -1;
+  if (loose) {
+    result.push({
+      type: 'text',
+      value: '\n'
+    });
+  }
+  while (++index < nodes.length) {
+    if (index) result.push({
+      type: 'text',
+      value: '\n'
+    });
+    result.push(nodes[index]);
+  }
+  if (loose && nodes.length > 0) {
+    result.push({
+      type: 'text',
+      value: '\n'
+    });
+  }
+  return result;
+}
+;// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/index.js
+/**
+ * @typedef {import('hast').Content} HastContent
+ * @typedef {import('hast').Root} HastRoot
+ *
+ * @typedef {import('mdast').Content} MdastContent
+ * @typedef {import('mdast').Root} MdastRoot
+ *
+ * @typedef {import('./state.js').Options} Options
+ */
+
+/**
+ * @typedef {HastRoot | HastContent} HastNodes
+ * @typedef {MdastRoot | MdastContent} MdastNodes
+ */
+
+
+
+
+/**
+ * Transform mdast to hast.
+ *
+ * ##### Notes
+ *
+ * ###### HTML
+ *
+ * Raw HTML is available in mdast as `html` nodes and can be embedded in hast
+ * as semistandard `raw` nodes.
+ * Most utilities ignore `raw` nodes but two notable ones don’t:
+ *
+ * *   `hast-util-to-html` also has an option `allowDangerousHtml` which will
+ *     output the raw HTML.
+ *     This is typically discouraged as noted by the option name but is useful
+ *     if you completely trust authors
+ * *   `hast-util-raw` can handle the raw embedded HTML strings by parsing them
+ *     into standard hast nodes (`element`, `text`, etc).
+ *     This is a heavy task as it needs a full HTML parser, but it is the only
+ *     way to support untrusted content
+ *
+ * ###### Footnotes
+ *
+ * Many options supported here relate to footnotes.
+ * Footnotes are not specified by CommonMark, which we follow by default.
+ * They are supported by GitHub, so footnotes can be enabled in markdown with
+ * `mdast-util-gfm`.
+ *
+ * The options `footnoteBackLabel` and `footnoteLabel` define natural language
+ * that explains footnotes, which is hidden for sighted users but shown to
+ * assistive technology.
+ * When your page is not in English, you must define translated values.
+ *
+ * Back references use ARIA attributes, but the section label itself uses a
+ * heading that is hidden with an `sr-only` class.
+ * To show it to sighted users, define different attributes in
+ * `footnoteLabelProperties`.
+ *
+ * ###### Clobbering
+ *
+ * Footnotes introduces a problem, as it links footnote calls to footnote
+ * definitions on the page through `id` attributes generated from user content,
+ * which results in DOM clobbering.
+ *
+ * DOM clobbering is this:
+ *
+ * ```html
+ * 

+ * + * ``` + * + * Elements by their ID are made available by browsers on the `window` object, + * which is a security risk. + * Using a prefix solves this problem. + * + * More information on how to handle clobbering and the prefix is explained in + * Example: headings (DOM clobbering) in `rehype-sanitize`. + * + * ###### Unknown nodes + * + * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`. + * The default behavior for unknown nodes is: + * + * * when the node has a `value` (and doesn’t have `data.hName`, + * `data.hProperties`, or `data.hChildren`, see later), create a hast `text` + * node + * * otherwise, create a `
` element (which could be changed with + * `data.hName`), with its children mapped from mdast to hast as well + * + * This behavior can be changed by passing an `unknownHandler`. + * + * @param {MdastNodes} tree + * mdast tree. + * @param {Options | null | undefined} [options] + * Configuration. + * @returns {HastNodes | null | undefined} + * hast tree. + */ +// To do: next major: always return a single `root`. +function toHast(tree, options) { + var state = createState(tree, options); + var node = state.one(tree, null); + var foot = footer(state); + if (foot) { + // @ts-expect-error If there’s a footer, there were definitions, meaning block + // content. + // So assume `node` is a parent node. + node.children.push({ + type: 'text', + value: '\n' + }, foot); + } + + // To do: next major: always return root? + return Array.isArray(node) ? { + type: 'root', + children: node + } : node; +} +;// CONCATENATED MODULE: ./node_modules/remark-rehype/lib/index.js +/** + * @typedef {import('hast').Root} HastRoot + * @typedef {import('mdast').Root} MdastRoot + * @typedef {import('mdast-util-to-hast').Options} Options + * @typedef {import('unified').Processor} Processor + * + * @typedef {import('mdast-util-to-hast')} DoNotTouchAsThisImportIncludesRawInTree + */ + + + +// Note: the `` overload doesn’t seem to work :'( + +/** + * Plugin that turns markdown into HTML to support rehype. + * + * * If a destination processor is given, that processor runs with a new HTML + * (hast) tree (bridge-mode). + * As the given processor runs with a hast tree, and rehype plugins support + * hast, that means rehype plugins can be used with the given processor. + * The hast tree is discarded in the end. + * It’s highly unlikely that you want to do this. + * * The common case is to not pass a destination processor, in which case the + * current processor continues running with a new HTML (hast) tree + * (mutate-mode). + * As the current processor continues with a hast tree, and rehype plugins + * support hast, that means rehype plugins can be used after + * `remark-rehype`. + * It’s likely that this is what you want to do. + * + * @param destination + * Optional unified processor. + * @param options + * Options passed to `mdast-util-to-hast`. + */ +var remarkRehype = /** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */ + +function remarkRehype(destination, options) { + return destination && 'run' in destination ? bridge(destination, options) : mutate(destination || options); +}; +/* harmony default export */ var lib = (remarkRehype); + +/** + * Bridge-mode. + * Runs the destination with the new hast tree. + * + * @type {import('unified').Plugin<[Processor, Options?], MdastRoot>} + */ +function bridge(destination, options) { + return function (node, file, next) { + destination.run(toHast(node, options), file, function (error) { + next(error); + }); + }; +} + +/** + * Mutate-mode. + * Further plugins run on the hast tree. + * + * @type {import('unified').Plugin<[Options?]|void[], MdastRoot, HastRoot>} + */ +function mutate(options) { + // @ts-expect-error: assume a corresponding node is returned by `toHast`. + return function (node) { + return toHast(node, options); + }; +} +// EXTERNAL MODULE: ./node_modules/prop-types/index.js +var prop_types = __webpack_require__(5192); +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/schema.js + + +/** + * @typedef {import('./info.js').Info} Info + * @typedef {Record} Properties + * @typedef {Record} Normal + */ + +var Schema = /*#__PURE__*/createClass_createClass( +/** + * @constructor + * @param {Properties} property + * @param {Normal} normal + * @param {string} [space] + */ +function Schema(property, normal, space) { + classCallCheck_classCallCheck(this, Schema); + this.property = property; + this.normal = normal; + if (space) { + this.space = space; + } +}); + +/** @type {Properties} */ +Schema.prototype.property = {}; +/** @type {Normal} */ +Schema.prototype.normal = {}; +/** @type {string|null} */ +Schema.prototype.space = null; +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/merge.js +/** + * @typedef {import('./schema.js').Properties} Properties + * @typedef {import('./schema.js').Normal} Normal + */ + + + +/** + * @param {Schema[]} definitions + * @param {string} [space] + * @returns {Schema} + */ +function merge_merge(definitions, space) { + /** @type {Properties} */ + var property = {}; + /** @type {Normal} */ + var normal = {}; + var index = -1; + while (++index < definitions.length) { + Object.assign(property, definitions[index].property); + Object.assign(normal, definitions[index].normal); + } + return new Schema(property, normal, space); +} +;// CONCATENATED MODULE: ./node_modules/property-information/lib/normalize.js +/** + * @param {string} value + * @returns {string} + */ +function normalize_normalize(value) { + return value.toLowerCase(); +} +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/info.js + + +var Info = /*#__PURE__*/createClass_createClass( +/** + * @constructor + * @param {string} property + * @param {string} attribute + */ +function Info(property, attribute) { + classCallCheck_classCallCheck(this, Info); + /** @type {string} */ + this.property = property; + /** @type {string} */ + this.attribute = attribute; +}); + +/** @type {string|null} */ +Info.prototype.space = null; +Info.prototype.boolean = false; +Info.prototype.booleanish = false; +Info.prototype.overloadedBoolean = false; +Info.prototype.number = false; +Info.prototype.commaSeparated = false; +Info.prototype.spaceSeparated = false; +Info.prototype.commaOrSpaceSeparated = false; +Info.prototype.mustUseProperty = false; +Info.prototype.defined = false; +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/types.js +var powers = 0; +var types_boolean = increment(); +var booleanish = increment(); +var overloadedBoolean = increment(); +var number = increment(); +var spaceSeparated = increment(); +var commaSeparated = increment(); +var commaOrSpaceSeparated = increment(); +function increment() { + return Math.pow(2, ++powers); +} +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/defined-info.js + + + + + + + + +/** @type {Array} */ +// @ts-expect-error: hush. +var checks = Object.keys(types_namespaceObject); +var DefinedInfo = /*#__PURE__*/function (_Info) { + _inherits(DefinedInfo, _Info); + var _super = _createSuper(DefinedInfo); + /** + * @constructor + * @param {string} property + * @param {string} attribute + * @param {number|null} [mask] + * @param {string} [space] + */ + function DefinedInfo(property, attribute, mask, space) { + var _this; + classCallCheck_classCallCheck(this, DefinedInfo); + var index = -1; + _this = _super.call(this, property, attribute); + mark(_assertThisInitialized(_this), 'space', space); + if (typeof mask === 'number') { + while (++index < checks.length) { + var check = checks[index]; + mark(_assertThisInitialized(_this), checks[index], (mask & types_namespaceObject[check]) === types_namespaceObject[check]); + } + } + return _this; + } + return createClass_createClass(DefinedInfo); +}(Info); +DefinedInfo.prototype.defined = true; + +/** + * @param {DefinedInfo} values + * @param {string} key + * @param {unknown} value + */ +function mark(values, key, value) { + if (value) { + // @ts-expect-error: assume `value` matches the expected value of `key`. + values[key] = value; + } +} +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/create.js +/** + * @typedef {import('./schema.js').Properties} Properties + * @typedef {import('./schema.js').Normal} Normal + * + * @typedef {Record} Attributes + * + * @typedef {Object} Definition + * @property {Record} properties + * @property {(attributes: Attributes, property: string) => string} transform + * @property {string} [space] + * @property {Attributes} [attributes] + * @property {Array} [mustUseProperty] + */ + + + + +var create_own = {}.hasOwnProperty; + +/** + * @param {Definition} definition + * @returns {Schema} + */ +function create(definition) { + /** @type {Properties} */ + var property = {}; + /** @type {Normal} */ + var normal = {}; + /** @type {string} */ + var prop; + for (prop in definition.properties) { + if (create_own.call(definition.properties, prop)) { + var value = definition.properties[prop]; + var info = new DefinedInfo(prop, definition.transform(definition.attributes || {}, prop), value, definition.space); + if (definition.mustUseProperty && definition.mustUseProperty.includes(prop)) { + info.mustUseProperty = true; + } + property[prop] = info; + normal[normalize_normalize(prop)] = prop; + normal[normalize_normalize(info.attribute)] = prop; + } + } + return new Schema(property, normal, definition.space); +} +;// CONCATENATED MODULE: ./node_modules/property-information/lib/xlink.js + +var xlink = create({ + space: 'xlink', + transform: function transform(_, prop) { + return 'xlink:' + prop.slice(5).toLowerCase(); + }, + properties: { + xLinkActuate: null, + xLinkArcRole: null, + xLinkHref: null, + xLinkRole: null, + xLinkShow: null, + xLinkTitle: null, + xLinkType: null + } +}); +;// CONCATENATED MODULE: ./node_modules/property-information/lib/xml.js + +var xml = create({ + space: 'xml', + transform: function transform(_, prop) { + return 'xml:' + prop.slice(3).toLowerCase(); + }, + properties: { + xmlLang: null, + xmlBase: null, + xmlSpace: null + } +}); +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/case-sensitive-transform.js +/** + * @param {Record} attributes + * @param {string} attribute + * @returns {string} + */ +function caseSensitiveTransform(attributes, attribute) { + return attribute in attributes ? attributes[attribute] : attribute; +} +;// CONCATENATED MODULE: ./node_modules/property-information/lib/util/case-insensitive-transform.js + + +/** + * @param {Record} attributes + * @param {string} property + * @returns {string} + */ +function caseInsensitiveTransform(attributes, property) { + return caseSensitiveTransform(attributes, property.toLowerCase()); +} +;// CONCATENATED MODULE: ./node_modules/property-information/lib/xmlns.js + + +var xmlns = create({ + space: 'xmlns', + attributes: { + xmlnsxlink: 'xmlns:xlink' + }, + transform: caseInsensitiveTransform, + properties: { + xmlns: null, + xmlnsXLink: null + } +}); +;// CONCATENATED MODULE: ./node_modules/property-information/lib/aria.js + + +var aria = create({ + transform: function transform(_, prop) { + return prop === 'role' ? prop : 'aria-' + prop.slice(4).toLowerCase(); + }, + properties: { + ariaActiveDescendant: null, + ariaAtomic: booleanish, + ariaAutoComplete: null, + ariaBusy: booleanish, + ariaChecked: booleanish, + ariaColCount: number, + ariaColIndex: number, + ariaColSpan: number, + ariaControls: spaceSeparated, + ariaCurrent: null, + ariaDescribedBy: spaceSeparated, + ariaDetails: null, + ariaDisabled: booleanish, + ariaDropEffect: spaceSeparated, + ariaErrorMessage: null, + ariaExpanded: booleanish, + ariaFlowTo: spaceSeparated, + ariaGrabbed: booleanish, + ariaHasPopup: null, + ariaHidden: booleanish, + ariaInvalid: null, + ariaKeyShortcuts: null, + ariaLabel: null, + ariaLabelledBy: spaceSeparated, + ariaLevel: number, + ariaLive: null, + ariaModal: booleanish, + ariaMultiLine: booleanish, + ariaMultiSelectable: booleanish, + ariaOrientation: null, + ariaOwns: spaceSeparated, + ariaPlaceholder: null, + ariaPosInSet: number, + ariaPressed: booleanish, + ariaReadOnly: booleanish, + ariaRelevant: null, + ariaRequired: booleanish, + ariaRoleDescription: spaceSeparated, + ariaRowCount: number, + ariaRowIndex: number, + ariaRowSpan: number, + ariaSelected: booleanish, + ariaSetSize: number, + ariaSort: null, + ariaValueMax: number, + ariaValueMin: number, + ariaValueNow: number, + ariaValueText: null, + role: null + } +}); +;// CONCATENATED MODULE: ./node_modules/property-information/lib/html.js + + + +var html_html = create({ + space: 'html', + attributes: { + acceptcharset: 'accept-charset', + classname: 'class', + htmlfor: 'for', + httpequiv: 'http-equiv' + }, + transform: caseInsensitiveTransform, + mustUseProperty: ['checked', 'multiple', 'muted', 'selected'], + properties: { + // Standard Properties. + abbr: null, + accept: commaSeparated, + acceptCharset: spaceSeparated, + accessKey: spaceSeparated, + action: null, + allow: null, + allowFullScreen: types_boolean, + allowPaymentRequest: types_boolean, + allowUserMedia: types_boolean, + alt: null, + as: null, + async: types_boolean, + autoCapitalize: null, + autoComplete: spaceSeparated, + autoFocus: types_boolean, + autoPlay: types_boolean, + capture: types_boolean, + charSet: null, + checked: types_boolean, + cite: null, + className: spaceSeparated, + cols: number, + colSpan: null, + content: null, + contentEditable: booleanish, + controls: types_boolean, + controlsList: spaceSeparated, + coords: number | commaSeparated, + crossOrigin: null, + data: null, + dateTime: null, + decoding: null, + default: types_boolean, + defer: types_boolean, + dir: null, + dirName: null, + disabled: types_boolean, + download: overloadedBoolean, + draggable: booleanish, + encType: null, + enterKeyHint: null, + form: null, + formAction: null, + formEncType: null, + formMethod: null, + formNoValidate: types_boolean, + formTarget: null, + headers: spaceSeparated, + height: number, + hidden: types_boolean, + high: number, + href: null, + hrefLang: null, + htmlFor: spaceSeparated, + httpEquiv: spaceSeparated, + id: null, + imageSizes: null, + imageSrcSet: null, + inputMode: null, + integrity: null, + is: null, + isMap: types_boolean, + itemId: null, + itemProp: spaceSeparated, + itemRef: spaceSeparated, + itemScope: types_boolean, + itemType: spaceSeparated, + kind: null, + label: null, + lang: null, + language: null, + list: null, + loading: null, + loop: types_boolean, + low: number, + manifest: null, + max: null, + maxLength: number, + media: null, + method: null, + min: null, + minLength: number, + multiple: types_boolean, + muted: types_boolean, + name: null, + nonce: null, + noModule: types_boolean, + noValidate: types_boolean, + onAbort: null, + onAfterPrint: null, + onAuxClick: null, + onBeforeMatch: null, + onBeforePrint: null, + onBeforeUnload: null, + onBlur: null, + onCancel: null, + onCanPlay: null, + onCanPlayThrough: null, + onChange: null, + onClick: null, + onClose: null, + onContextLost: null, + onContextMenu: null, + onContextRestored: null, + onCopy: null, + onCueChange: null, + onCut: null, + onDblClick: null, + onDrag: null, + onDragEnd: null, + onDragEnter: null, + onDragExit: null, + onDragLeave: null, + onDragOver: null, + onDragStart: null, + onDrop: null, + onDurationChange: null, + onEmptied: null, + onEnded: null, + onError: null, + onFocus: null, + onFormData: null, + onHashChange: null, + onInput: null, + onInvalid: null, + onKeyDown: null, + onKeyPress: null, + onKeyUp: null, + onLanguageChange: null, + onLoad: null, + onLoadedData: null, + onLoadedMetadata: null, + onLoadEnd: null, + onLoadStart: null, + onMessage: null, + onMessageError: null, + onMouseDown: null, + onMouseEnter: null, + onMouseLeave: null, + onMouseMove: null, + onMouseOut: null, + onMouseOver: null, + onMouseUp: null, + onOffline: null, + onOnline: null, + onPageHide: null, + onPageShow: null, + onPaste: null, + onPause: null, + onPlay: null, + onPlaying: null, + onPopState: null, + onProgress: null, + onRateChange: null, + onRejectionHandled: null, + onReset: null, + onResize: null, + onScroll: null, + onScrollEnd: null, + onSecurityPolicyViolation: null, + onSeeked: null, + onSeeking: null, + onSelect: null, + onSlotChange: null, + onStalled: null, + onStorage: null, + onSubmit: null, + onSuspend: null, + onTimeUpdate: null, + onToggle: null, + onUnhandledRejection: null, + onUnload: null, + onVolumeChange: null, + onWaiting: null, + onWheel: null, + open: types_boolean, + optimum: number, + pattern: null, + ping: spaceSeparated, + placeholder: null, + playsInline: types_boolean, + poster: null, + preload: null, + readOnly: types_boolean, + referrerPolicy: null, + rel: spaceSeparated, + required: types_boolean, + reversed: types_boolean, + rows: number, + rowSpan: number, + sandbox: spaceSeparated, + scope: null, + scoped: types_boolean, + seamless: types_boolean, + selected: types_boolean, + shape: null, + size: number, + sizes: null, + slot: null, + span: number, + spellCheck: booleanish, + src: null, + srcDoc: null, + srcLang: null, + srcSet: null, + start: number, + step: null, + style: null, + tabIndex: number, + target: null, + title: null, + translate: null, + type: null, + typeMustMatch: types_boolean, + useMap: null, + value: booleanish, + width: number, + wrap: null, + // Legacy. + // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis + align: null, + // Several. Use CSS `text-align` instead, + aLink: null, + // ``. Use CSS `a:active {color}` instead + archive: spaceSeparated, + // ``. List of URIs to archives + axis: null, + // `
` and ``. Use `scope` on `` + background: null, + // ``. Use CSS `background-image` instead + bgColor: null, + // `` and table elements. Use CSS `background-color` instead + border: number, + // ``. Use CSS `border-width` instead, + borderColor: null, + // `
`. Use CSS `border-color` instead, + bottomMargin: number, + // `` + cellPadding: null, + // `
` + cellSpacing: null, + // `
` + char: null, + // Several table elements. When `align=char`, sets the character to align on + charOff: null, + // Several table elements. When `char`, offsets the alignment + classId: null, + // `` + clear: null, + // `
`. Use CSS `clear` instead + code: null, + // `` + codeBase: null, + // `` + codeType: null, + // `` + color: null, + // `` and `
`. Use CSS instead + compact: types_boolean, + // Lists. Use CSS to reduce space between items instead + declare: types_boolean, + // `` + event: null, + // `