From e709879d406fe16742ebb5de176a3a1ae8ca7712 Mon Sep 17 00:00:00 2001 From: "Peter.Morton" Date: Wed, 30 Jul 2025 19:31:36 -0500 Subject: [PATCH] need to package onEngagementLoad as you are not allowed to eval() inside of an extension --- browser-extension/README.md | 10 ++ browser-extension/icon.png | Bin 826 -> 0 bytes browser-extension/images/icon-128.png | Bin 0 -> 5809 bytes browser-extension/images/icon-16.png | Bin 0 -> 533 bytes browser-extension/images/icon-32.png | Bin 0 -> 961 bytes browser-extension/images/icon-48.png | Bin 0 -> 1527 bytes browser-extension/manifest.json | 30 +++-- browser-extension/service-worker.js | 9 +- .../src/pages/panel/adaptivecards.min.js | 3 + .../src/pages/panel/ivas-messenger-ui.min.js | 18 ++- .../src/pages/panel/onEngagementLoad.js | 113 ++++++++++++++++++ .../src/pages/side-panel/index.html | 1 + 12 files changed, 161 insertions(+), 23 deletions(-) create mode 100644 browser-extension/README.md delete mode 100644 browser-extension/icon.png create mode 100644 browser-extension/images/icon-128.png create mode 100644 browser-extension/images/icon-16.png create mode 100644 browser-extension/images/icon-32.png create mode 100644 browser-extension/images/icon-48.png create mode 100644 browser-extension/src/pages/panel/adaptivecards.min.js create mode 100644 browser-extension/src/pages/panel/onEngagementLoad.js diff --git a/browser-extension/README.md b/browser-extension/README.md new file mode 100644 index 0000000..d80558e --- /dev/null +++ b/browser-extension/README.md @@ -0,0 +1,10 @@ +# Chrome Browser Extension + +This is an example Chrome Browser Extension for adding IVAS Messenger as a side-panel extension. + +## Configuration + +1. Configure your IVA studio domain and token in the (/src/pages/panel/index.js) file +1. Load the extension into Chrome. As this is in development, this extension needs to be loaded by using the 'Load unpacked' method. +1. Once loaded, copy the 'ID:' that is generated to your Messenger Domains, and also add it to the End Point for you Engagement. + diff --git a/browser-extension/icon.png b/browser-extension/icon.png deleted file mode 100644 index 32c6c4be824074986a33bc4dd97924eac91bc03f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 826 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSoCO|{#S9GG!XV7ZFl&wkP>``W z$lZxy-8q?;Kn_c~qpu?a!^VE@KZ&di3{2-eT^vIy7~kHt%@%Q#Y54g6sPT*fMFozH zW*fggb*TkFMIq{pa_D9l>k{OR7RyEF}(1 z$SSp(*vu%B@PFdYee3ei%bne3kix*~!F=mH)A=VWjX?$}t^H&=QS1WW8R-KjR!*-H z-`=ml`|qH&cI0=~JKP!`=^u-H=ESX-zNCI%b+qlv|Np}EdH?*_C~R2yuI8JsBD02% z)SH*D&6C$#upW?Pn8S#L@IKi3W6vg;y}fD6YnH8xIlE0gfuZ%szfZ1@n-_k)wvpXw zN;5WX$YQ)X))u+7b-N18ye7R~D}6X+!E?rGJ`m0c}(w!#;cMeb#x}>%8m;q?QUHlnx320HG=ZuJeyE{|h|uzo}t#nemT6t~x4;poJmc zfPVsFt)Qs@0JU+C{+eO`)65nK9Zdl6=JCxn4306Zf9Ux0x044Qu??t4{DCEOicMk+$OYDRcI08rto!WHy97Y~eWU5y6Z zWUnrLz5oyy8M~6sBklwgt?G9>K6eLoXY&DP$tWEyo~pm$zUKl%xUZTsBA>b|p~;pK z_XigdkraH+sR(Cs?#QQjWSyp%G_U2W-#tDeH2cq?0PgyGw_GI6s78mJU*q(Zd(_|f z?Yd8Mbt2f00V&`;3Kv5JWPS(bV8M#rfNfyH_W!ld{7G_0%zR819b_iA9`K+*xB`%* zN-Vi!E4fqc&^E`#nkQ(O$jQM4lw$HfV!k|o5@LIaTwt=@dHNOtlVT*}pGZTp6x5uk zNgb-X!a8TBR@#W^RGJ6%$!lnf`wadubs?RfD@5i5OlE5H#JkMVq7riYA3ISLcwbA!${$BTJw=g(leahCspAkru!(W}A zRd(*Qp?qlm^4_zKn6+O?e_An+J@=db!@=G=KgZuQ*v?5R5~`tO?71W~s~wKj z5hL{pP#3tCnF7;~&H!Jj;WSA%%%`#K!V#X*N8muUyjNAn6LQGFnsBvnFirA(>1_VP z>8$8pksw@J?C}m=?14aREK^XykaYA0Qnbz4bbqu)U(;L=Y_;!v zXHCi#q$KF*|AzO4Or4#6LDWG}i30vmYlpA5l8Kfp23#d4_UfS&!^XEbXP`=3-ZCTQkhe&!syBYC%j9#A>DgZ>NI^`*#OB1(ydVsrO!HfRapOxbFzJW7q| zldayPV2)TlZ(clf)iwv8y~V)*YOXa1MYD|~4?+TQv~6x76A89V4UtK6dnc03a*eRI z;IqDQHdDY!#8(-*X@N=zajHxMQ)!kNalXtRTK5(KOiRpTcv{@EdyBE$+sR9YXCni= z`+NI?nwX=^v3aBYAO48SN`i9JV(O`Saj+;K@|RO-7({U=#lSGSu-CBXgw4yr&4FDy zU>5qYm`Y!y*70@N4_!ZHLEd-*JOvOX1*{o0@@;u5iiirYNX)EdSO|k-CM9W!?R&;% zglM4!sI?b|@a8gY-b%pHEdlkoSomb*I5e>C9NU3&Eo{+?0@g!>p`XJO}DoBme;>@h)N-&HGi;(wVbX__?6iwfY z)UP?47>qa_F4&|1%DH(DAOI+m#Fq0J|K-EC%M)lw;&?@!U~F`&=U;z^VPjYA&++Ns zI|~|wjJ%K6C;`39(F$b)u>C`V z{O!dfI-Z>dniZczcloRd5yCCGVke&5z~iB$PcDYHxo#^J3m?iohWoml$llhHv1N&@B-Bo3r{i^|PjM~%PkVulA zftPzn?(&`*7BkE^kQs|ih#+rltAeYYKiS1!$Wl!&qK{oy0S+qcvWp#nuh29jCr2ZXvp=)*0ACJsiy? zNILv%vBeLBgfPcliwCq^s}?>95LN<{MdZNVq4};V@JWYxSj`hcjaCUAZl3Z%E#fM^ zs2q+{$9s$OouKqr2mhQHXQTAENTLS5@uN^s?EY@Aj?J<5{QQiSc)J#HIG`8Cc-%+* z?%Ps4N)f|d@68rx%}?unGf7yEEiAj6?)*4@wpX$9Q1?FCEj7tf!Mv;RA_#!W zeSN;AQbwK|Wr|az2^z@R+*31Q*ifgxsJ)*^Vbdp{{EZ_Pi68uqKg>~vQBu8`bo@>T z%x)@Z#Mo$Z!1z>%iPuzUX&r&V1m%!vtVkED2*l2CI9~7Q1=|6-)S2tdbbtHIiS2*59k#)HKf?I}A&uQPnEI{m>o^RhbOKw*~a00_uPcfv;#r>H7{J zR6plnWimRWh=3iOr=c3opQpQh0Mkf~lQDThl!AF^w0yn6(e|(~D896rmf&SRt|`}Q&$Na0 z-(k2OM3MJ7WiL&*Zm?Y$|J>b(cw8!GHJHRsLGdlR+oTh{y5kdh=UgA}I;RAkwR7su zvOJHty?q75YMilHIj?d82+WuK`^FDtn{0+Qn_dwB$)^I=QapYSry9>=2fSSfM!(Z} zw4L$^gcrBN?Qxc;ji#h(T_{0O|D5o(ssB>DeZ$+FZs|0P&t*IkPZiVnLQlR)&rN%i z$1*EPIt@@}4uYSRFoAPGdDlxFrX`soVN^_6imxbMjz8>q z7?C3*6Ty6ykJLaCW=Avd_5%m|VQ!&Tm zp=?+lD_|vehGkv*Ty3pY^c@vJq=!aEHSMLMEx2>Z zgK>O$lCm&}*+&vGgiz8j;C>$cUnE4|G-8^RbZ8Orx#Cm#`gN;``1Sni-|mQ4#g`Wud{nr z{{FcsOIhQpQgyRvQBdk0Hj(w2yJ3KD>d!&2NC?~~&#YUA`FHaMsYw9<-uLoQf;PZC zMgM4Pm28(yT{KKNl7BU=(tBkX+C88AkR6>)E$^;kwjZiu456_aCH@o?&TKRGgDK8@ zuD)v3Tx_RUV^L!Eo7Sx`77PeplFk_rNKsa*41GxDpl;`!I+Cl`>6TE`jThRGy}w9}~?_Bjl(5d3QaGzmnqF-97r7IQ0vp zATr6E<2XF5;;M1!L-%imZHDKhFcOf5o5fPm*P!%Y5OI|>g!AFpUV~=27?quu9;VrT zN0@K`udw#`EEpAWrUy)tQCAC0rq*g-=ixbDO(qqdS(KoH-y_u5tkyX{1yyhzr&&j~ z%REJmOa&UZ%R!2c@5HV*ilNvx1gQk~YgL*?ofo_5uiy zroOPKl+0B9)}Rw1p4^NpK&6Sz>c$9N3Mq7J6Xu0Le#cL z3p~l{b;_(nH2S6Q=EfV z9{P>tqWjOC5$o~rO_m%ovCD&M_bbaZV$zT0)3!<5_XXUf-&QXf>f=;SMVUy~x6d*} z4(v$9wj9UJ9!EUAzxgOFl0h@sBFzp@HCtNT9ugf@4T4#(+pq>9z05UT90T+arH|8S zwXL`t0fRGl(XKU%!jUP9=4TOEFrJIm(tWW&bST zz%G;aES%)wu(NZ>84n+&?xGp=n&oSMls)Mg*|p zph6+1%;zUL-n?8qu+o~23MlHEFZ$f8@|Bkqh&h%$P(uu6KHl@Wx+_OB)QR4!Q)-#7 zM~oR0S6C{PCT_~_1`K(2}b52u5Yv(-Z#P`IIku4zpBSe)LH-yr09} z^=0pADiGeJ?am}EDXeEPCe9f>DuTwoW%D_VAgmQACN+pYvCiH%+2HE-W~~3-Jfqr= zal%nCWtewn^$K7%Oa2CTDNXh_1Uenke~eGx&%-2pE0H)CQe33Da#u7y5@cygUEc@h zzFwAu*4_AvjaM$Pu~mVp_oZ4tm#eTp9d0tfm0Yf48wm;u*NUe6DY08F)*)bt`9RBC ziP!eU(8RlJ&fv*WVt{{}wQiTTLV^L?u0|3P6KVQj`!yifCqpQ70iRzdj&9Qc+k^mr zkVcAdvh3lfF5Rg{dIP=n&};mc-95o(S(?;6`C%unTqL&sHtOa^3c6%m<^7r zX8Pf6EkxX;8bR>IS-xnsS?#)~t2VNtWOf(7OMOtbE($vQT~g`URcr7of!89>i$0VqS8V$JuQ$Vd%+#~wZxA)MLY=(>~qVlnR% zF6M&-j^}S;G%w>rU5lIR&)V8KiCPQY7vbc2NFR*YnR(1*Yv7h2%@y-@_)2hETezGt?c*k6-z&!X zZNG3K-L;ZY07g6SD&_0)^=~m*S>_)$$Lp6ZHS5#|Ax6EHNY;r%-!T*r~{kL#2RX~4)$2r zO9q+gNxYy!V!WGxf#%sWk`xhfXE_%H=Nu}5^rr?d(bnJsR6p?85V9*w@5Ybeau_6|WRn(=E zWV6NXabriu4qb>yaFt4#?u;+BYVwav807k~C#_ysLhPjJ(|tkNX~+nG+LWqIVq=ZV zqRB*Cze=WU7;$3dz`?%0UoU@hZk&)fr>jgPU|L?W?bhASNr$QRBd8;@2rx0U?tZA7 z8iuj|R(^6ZZ}L5Y4U;Kth+Z9RwEs5<4b|diw6(ku z(7~QMO~A|;i;L5}Jo+JPgik(mPXRdG$J?*>ksvu@jR;!DBjDI>HjUr4UVX%4MvxrH z`)@c5c^P1^u>GPFdqx6iVi!{0-DnM8rs4NLp$feOW56Sn#Ds24GOm^0?Xi5;U|7wO z?%y4~b>uk(XO*Jdu8rRMGQ#T7eA$1IPvmkVeLQ&?~$?#q9eZ4N_Npo0B zBfae95fwIOVbX=J?l$voOMsKl)=4~y6j-bxrWKb#{(Bd5Jn7g`~``m4*t-?B@k zT+PQPE=k~T<>VB1&g36}(0U{C7ZxSO`XeT#YxVhk!pTkx2HamPdDVQb3s~hHrhRHk z7aj-c2|8H_tnb>~eJ`bTU&SvKG6`)JJH&!$afQG|loz{WA$1iDeE1Zy;)-ulN8Q|g zQJHFGx}`!kB{`v=abj9+EKw7J`MSMD z_7rYZ9i>>EG3x#A@ooMi7}iq&quS>_V|8wIT3MxLllzv{r84_Y0v~NJu}R*lnI0iY zGaGn;RXz~xwv4%Mo%7w?(m!wgof$t`^UwZwp` Mk`}y5(KP6P0Ppji7ytkO literal 0 HcmV?d00001 diff --git a/browser-extension/images/icon-16.png b/browser-extension/images/icon-16.png new file mode 100644 index 0000000000000000000000000000000000000000..d9f861363355e65c6433706da9ab8c973589d86c GIT binary patch literal 533 zcmV+w0_y#VP)z@;j|==^1poj5AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy32;bRa{vGf6951U69E94oEQKA00(qQO+^Rk2ObsEg8A(ZG9$I=5q`H1DJ*#eD+J^*q>R#=Vkj zj(KFrZ#;E$e20{N_h2hlB9ur;xrK>NQQ+?_#qss?bJLMv#qiGX96M*`C+~F3V zO9p(T(EUR?f9Id30VD;RVHyr-V-3%AJF4*1n&gWthbRkB(YJ2L&DpKPOe21b_J9e& zQw=^76}~m6m`(e~@V97hJ28-Tun|F0=-1$E#Y%`1DXDUq3KyTmovmx5e&{@DN^BRI;?CrqW$S`7RT X$aR&z5*~jw00000NkvXXu0mjf?AFth literal 0 HcmV?d00001 diff --git a/browser-extension/images/icon-32.png b/browser-extension/images/icon-32.png new file mode 100644 index 0000000000000000000000000000000000000000..34262cda7b678b1833a72524b5afc5d199f2e978 GIT binary patch literal 961 zcmV;y13vtTP)z@;j|==^1poj5AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy32;bRa{vGf6951U69E94oEQKA00(qQO+^Rk2Obs<3~=Y7F#rGq z7fD1xR7l6|R?lx#RTw?zyKiPJAV1Vf%8xVxQc26ggxW}2BN!4FEJ zIo~Bu3ommSUh?`MV8s+hmL021-L zaeZ0JJs05f&e~^(6_EsL9v80hY&lw~0wAgB@O!S{>d8bdJyY_2IhoXn50axjuZ0f} z7W`KuX@)zXM#^sXp$`NAe1EU|XlqT&^61+X_jctC0=%H9yU92AEdzi!TCty|Qy~z_ zO?jOB(BPkjkWThtTU$uNs^a+{gw$p0B5|;o{vAtz2MG4=)xnJk@dV>QTQabpY*aaQ zCmx)MXv_pa;^JIkqEuz0Rd&7Uj_z)B7C_+0F6?|O0t6uTx^zQT@1V>&5Z&;kEyf7| zfgAGd-@k+-qQ5KMm=9oGyC`ZMc1 zuydoRBp_%&L^E12pYf@9Xs!T4S_1%q@BhqS|2=LJ5Yny2xI9US06f{Mi3Jz#iCSX?z*xmil#=H5QPrO-3Py4DGr1K@ zgGFoKn&v2gH_LHxAqNALz@;j|==^1poj5AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy32;bRa{vGf6951U69E94oEQKA00(qQO+^Rk2Obs;GMcOGSpWb9 zO-V#SR9M69SzT{bRTN$8oO|b^g9v^g7$pWpMf^;p7>PnOCK^8?k@zV8!AJjr@x@nt zQ=_5*F&d2oNr)f_wju=@q^4BCq=+Ecc0TXf%ZEGD-j>wTnU-L}$z)z;=I+(K*Is*_ zUGfd#YB~;A*|`Sj8lY={=KDm`eIOz-7(sym0YRc9z&Tx>ctw(>-xLT02M~lbeIlj> zDmY&^NrgAD=z2sXq@4R7uZr;~U_G+yDY^^HYc0GP&?P&fDXKG#3iUWQ!QxGpOB z9F+osQT2eM!;N=-0cJ|lE6bD3Pvx(RnI@Qk0RzLy>$?o_v*(cT?tnXaw&5Yd2m{PX z1&?PRU}OpZ8xFPcfm$hsgSpnv4f^Uxbu_d`Y8qT_*P%ubCmnF@O24Yu_^$*JE8=SR z>aJL5;WmNi%i-f*!AETYk^}I`&+hD~5;%iH`Vy}%`Hc??5~oeBUS4IlFC?gO1{iQ) zpx$?}2w9tLPoZZl-*d9!vV0+O2+utjmuQ-{x$K2UBJbD=;Q%*k{Nx81J>@#kA#>Xg zCUqkK0}K#A@UEp?f72Lgyp-G2hQ%ZI-xe|Re38dbRlYnO1qYGs0}`=)DBu4_Ia3Z$ zSe$b&t^putmp)xDJ&YR)llrI{wChMR3J0(wr51HTx$llO)S@RLkR+d4U0mWqa8uZf zMLukJXhDlTO}Y%1?ZY1tE?H||*M zIl*`{XwUIlf4#uYXBmwYz8~rOd9VRZ`s;Guo?a6iCu8#V{2CR#z}9pTFVwVkALuB; zW-8ic4Ob^_*;lP1&OD5UsCz~6zI-K{o|RGMu{(>7j_K3_MIAp?-~DGUWn}Z6olbjx zd#Y>TOf}1{2)L!oZSIDeHH1N%ALWu#I=RxAYFOBI2&0VB`P}Rabp}Ylu*Ex%1)E3) z33}j(RsKd;8sJ7}>sNyq*Czrzd0w9$%|OtESay&hDtLW#5a-Gv73gLJ;@)M2wKt8x z3Dmlq>#J^!T_$z__8bkTm7B5KXI(PD^;HW!19i2~2rytlgjd%xP8v}1a(7r5dnzI% zC=h>_ZA-6rf@}E&a4txl#t-nH_9V41NeZ3tl>=?I_FH@ zFtc5m!4F+J*8qGy7!CfF+_%(cMvHD;6mPn>>T_6jeJqkqufs9JmLIC{MW+^+l>M3u zKxw<4Q(?#9i}x(eM`%j7!E)X|^I$FSm3Mh&YJBo+ZO88=5>y6*=7vKPCSqG(e10s9 z_lkoD@c7DN_gy8n*dd?+>^z*Du0^sIb>{rm;S7=a{r?nthw2Q8(}eR|Sd2^gD5Ent zSGMd)c<3==gAB zio#8_vrta#^IkK!R0cIq85%z$mfv%zZjxG-ElU!CCx(;vPc`o~hDC+dcb1tbC>VCZ7)vtKoCoT=t(e(&~le*3{tnQZgD z2yuVEofs+1HZgOsZ2020+~9D1O72DzY&(z$-q;SBjsRUyy!%Kc$*dhj>m96ob0*g| zn%RwxsTU;hgP%%^7lnMYoglcc53Av$@s{K4H@s|nEldZQ*tCmG2d4lDB0n literal 0 HcmV?d00001 diff --git a/browser-extension/manifest.json b/browser-extension/manifest.json index 656958c..1381b5e 100644 --- a/browser-extension/manifest.json +++ b/browser-extension/manifest.json @@ -6,18 +6,30 @@ "background": { "service_worker": "service-worker.js" }, - "side_panel": { - "default_path": "src/pages/side-panel/index.html" - }, + "side_panel": { + "default_path": "src/pages/side-panel/index.html" + }, "permissions": ["sidePanel", "storage"], "content_security_policy": { "extension_pages": "script-src 'self'; object-src 'self'" }, - "action": { - "default_icon": "icon.png" + "icons": { + "16": "images/icon-16.png", + "32": "images/icon-32.png", + "48": "images/icon-48.png", + "128": "images/icon-128.png" }, - "web_accessible_resources": [ { - "matches": [ "*://*/*" ], - "resources": [ "assets/js/*.js", "assets/css/*.css", "assets/svg/*.svg", "assets/png/*.png", "icon.svg", "blob/*" ] - } ] + "web_accessible_resources": [ + { + "matches": ["*://*/*"], + "resources": [ + "assets/js/*.js", + "assets/css/*.css", + "assets/svg/*.svg", + "assets/png/*.png", + "icon.svg", + "blob/*" + ] + } + ] } diff --git a/browser-extension/service-worker.js b/browser-extension/service-worker.js index 52ae962..dd3db75 100644 --- a/browser-extension/service-worker.js +++ b/browser-extension/service-worker.js @@ -1,11 +1,4 @@ // Allows users to open the side panel by clicking on the action toolbar icon chrome.sidePanel .setPanelBehavior({ openPanelOnActionClick: true }) - .catch((error) => console.error(error)); - -chrome.action.onClicked.addListener(() => { - chrome.tabs.create({ - url: 'mainpage.html' - }); - console.log('Opened a tab with a sandboxed page!'); -}); + .catch((error) => console.error(error)); \ No newline at end of file diff --git a/browser-extension/src/pages/panel/adaptivecards.min.js b/browser-extension/src/pages/panel/adaptivecards.min.js new file mode 100644 index 0000000..5b0f7ad --- /dev/null +++ b/browser-extension/src/pages/panel/adaptivecards.min.js @@ -0,0 +1,3 @@ +/*! For license information please see adaptivecards.min.js.LICENSE.txt */ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AdaptiveCards=t():e.AdaptiveCards=t()}(this,(function(){return(()=>{"use strict";var e={920:function(e,t){var i,n,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LoginRequestResponse=t.ErrorResponse=t.SuccessResponse=t.ActivityResponse=t.ActivityRequestError=t.ActivityRequestTrigger=void 0,(n=t.ActivityRequestTrigger||(t.ActivityRequestTrigger={})).Automatic="automatic",n.Manual="manual";t.ActivityRequestError=function(e,t){this.code=e,this.message=t};var o=function(e){this.request=e};t.ActivityResponse=o;var s=function(e){function t(t,i){var n=e.call(this,t)||this;return n.request=t,n.rawContent=i,n}return r(t,e),t}(o);t.SuccessResponse=s;var a=function(e){function t(t,i){var n=e.call(this,t)||this;return n.request=t,n.error=i,n}return r(t,e),t}(o);t.ErrorResponse=a;var l=function(e){function t(t,i){var n=e.call(this,t)||this;n.request=t,n._auth=i;for(var r=0,o=n._auth.buttons;r0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0?"Stopping automatic refreshes after "+t+" consecutive refreshes.":"The card has a refresh section, but automatic refreshes are disabled."),(a.GlobalSettings.applets.refresh.allowManualRefreshesAfterAutomaticRefreshes||a.GlobalSettings.applets.refresh.mode===o.RefreshMode.Manual)&&(d(o.LogLevel.Info,"Showing manual refresh button."),this.showManualRefreshButton(this._card.refresh.action)))}catch(e){d(o.LogLevel.Error,"setCard: "+e)}},e.prototype.internalExecuteAction=function(e,t,i){if(e instanceof c.UniversalAction){if(!this.channelAdapter)throw new Error("internalExecuteAction: No channel adapter set.");var n=this.createActivityRequest(e,t,i);n&&n.retryAsync()}this.onAction&&this.onAction(this,e)},e.prototype.createProgressOverlay=function(e){if(!this._progressOverlay)if(this.onCreateProgressOverlay)this._progressOverlay=this.onCreateProgressOverlay(this,e);else{this._progressOverlay=document.createElement("div"),this._progressOverlay.className="aaf-progress-overlay";var t=document.createElement("div");t.className="aaf-spinner",t.style.width="28px",t.style.height="28px",this._progressOverlay.appendChild(t)}return this._progressOverlay},e.prototype.removeProgressOverlay=function(e){this.onRemoveProgressOverlay&&this.onRemoveProgressOverlay(this,e),void 0!==this._progressOverlay&&(this.renderedElement.removeChild(this._progressOverlay),this._progressOverlay=void 0)},e.prototype.activityRequestSucceeded=function(e,t){this.onActivityRequestSucceeded&&this.onActivityRequestSucceeded(this,e,t)},e.prototype.activityRequestFailed=function(e){return this.onActivityRequestFailed?this.onActivityRequestFailed(this,e):a.GlobalSettings.applets.defaultTimeBetweenRetryAttempts},e.prototype.showAuthCodeInputDialog=function(t){var i=this;if(!this.onShowAuthCodeInputDialog||this.onShowAuthCodeInputDialog(this,t)){var n=this.createMagicCodeInputCard(t.attemptNumber);n.render(),n.onExecuteAction=function(n){if(i.card&&n instanceof c.SubmitAction)switch(n.id){case e._submitMagicCodeActionId:var r=void 0;n.data&&"string"==typeof n.data.magicCode&&(r=n.data.magicCode),r?(i.displayCard(i.card),t.authCode=r,t.retryAsync()):alert("Please enter the magic code you received.");break;case e._cancelMagicCodeAuthActionId:d(o.LogLevel.Warning,"Authentication cancelled by user."),i.displayCard(i.card);break;default:d(o.LogLevel.Error,"Unexpected action taken from magic code input card (id = "+n.id+")"),alert(p.Strings.magicCodeInputCard.somethingWentWrong())}},this.displayCard(n)}},e.prototype.internalSendActivityRequestAsync=function(e){return n(this,void 0,void 0,(function(){var t;return r(this,(function(i){switch(i.label){case 0:if(!this.channelAdapter)throw new Error("internalSendActivityRequestAsync: channelAdapter is not set.");return(t=e.action)instanceof c.ExecuteAction?[4,this.internalSendExecuteRequestAsync(e)]:[3,2];case 1:case 3:return i.sent(),[3,5];case 2:return t instanceof c.DataQuery?[4,this.internalSendDataQueryRequestAsync(e)]:[3,4];case 4:throw new Error("internalSendActivityRequestAsync: Unhandled Action Type");case 5:return[2]}}))}))},e.prototype.internalSendExecuteRequestAsync=function(e){return n(this,void 0,void 0,(function(){var t,i,n,s;return r(this,(function(c){switch(c.label){case 0:if(!this.channelAdapter)throw new Error("internalSendExecuteRequestAsync: channelAdapter is not set.");void 0!==(t=this.createProgressOverlay(e))&&this.renderedElement.appendChild(t),i=!1,n=function(){var t,n,c,u,h,f,m;return r(this,(function(r){switch(r.label){case 0:t=void 0,1===e.attemptNumber?d(o.LogLevel.Info,"Sending activity request to channel (attempt "+e.attemptNumber+")"):d(o.LogLevel.Info,"Re-sending activity request to channel (attempt "+e.attemptNumber+")"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s.channelAdapter.sendRequestAsync(e)];case 2:return t=r.sent(),[3,4];case 3:return n=r.sent(),d(o.LogLevel.Error,"Activity request failed: "+n),s.removeProgressOverlay(e),i=!0,[3,4];case 4:if(!t)return[3,10];if(!(t instanceof l.SuccessResponse))return[3,5];if(s.removeProgressOverlay(e),void 0===t.rawContent)throw new Error("internalSendExecuteRequestAsync: Action.Execute result is undefined");c=t.rawContent;try{c=JSON.parse(t.rawContent)}catch(e){}if("string"==typeof c)d(o.LogLevel.Info,"The activity request returned a string after "+e.attemptNumber+" attempt(s)."),s.activityRequestSucceeded(t,c);else{if("object"!=typeof c||"AdaptiveCard"!==c.type)throw new Error("internalSendExecuteRequestAsync: Action.Execute result is of unsupported type ("+typeof t.rawContent+")");d(o.LogLevel.Info,"The activity request returned an Adaptive Card after "+e.attemptNumber+" attempt(s)."),s.internalSetCard(c,e.consecutiveActions),s.activityRequestSucceeded(t,s.card)}return i=!0,[3,10];case 5:return t instanceof l.ErrorResponse?(u=s.activityRequestFailed(t))>=0&&e.attemptNumber=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},s=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0||t.lineThickness&&t.lineThickness>0){var n=document.createElement("div");n.className=e.makeCssClassName("ac-"+(i===p.Orientation.Horizontal?"horizontal":"vertical")+"-separator"),n.setAttribute("aria-hidden","true");var r=t.lineColor?u.stringToCssColor(t.lineColor):"";return i===p.Orientation.Horizontal?t.lineThickness?(n.style.paddingTop=t.spacing/2+"px",n.style.marginBottom=t.spacing/2+"px",n.style.borderBottom=t.lineThickness+"px solid "+r):n.style.height=t.spacing+"px":t.lineThickness?(n.style.paddingLeft=t.spacing/2+"px",n.style.marginRight=t.spacing/2+"px",n.style.borderRight=t.lineThickness+"px solid "+r):n.style.width=t.spacing+"px",n.style.overflow="hidden",n.style.flex="0 0 auto",n}}t.renderSeparation=C;var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._truncatedDueToOverflow=!1,t}return r(t,e),Object.defineProperty(t.prototype,"lang",{get:function(){return this.getValue(t.langProperty)||(this.parent?this.parent.lang:void 0)},set:function(e){this.setValue(t.langProperty,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getValue(t.isVisibleProperty)},set:function(e){c.GlobalSettings.useAdvancedCardBottomTruncation&&!e&&this.undoOverflowTruncation(),this.isVisible!==e&&(this.setValue(t.isVisibleProperty,e),this.updateRenderedElementVisibility(),this._renderedElement&&Ie(this)),this._renderedElement&&this._renderedElement.setAttribute("aria-expanded",e.toString())},enumerable:!1,configurable:!0}),t.prototype.internalRenderSeparator=function(){var e=C(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.spacing),lineThickness:this.separator?this.hostConfig.separator.lineThickness:void 0,lineColor:this.separator?this.hostConfig.separator.lineColor:void 0},this.separatorOrientation);if(c.GlobalSettings.alwaysBleedSeparators&&e&&this.separatorOrientation===p.Orientation.Horizontal){var t=this.getParentContainer();if(t&&t.getEffectivePadding()){var i=this.hostConfig.paddingDefinitionToSpacingDefinition(t.getEffectivePadding());e.style.marginLeft="-"+i.left+"px",e.style.marginRight="-"+i.right+"px"}}return e},t.prototype.updateRenderedElementVisibility=function(){var e=this.isDesignMode()||this.isVisible?this._defaultRenderedElementDisplayMode:"none";this._renderedElement&&(e?this._renderedElement.style.display=e:this._renderedElement.style.removeProperty("display")),this._separatorElement&&(this.parent&&this.parent.isFirstElement(this)?this._separatorElement.style.display="none":e?this._separatorElement.style.display=e:this._separatorElement.style.removeProperty("display"))},t.prototype.hideElementDueToOverflow=function(){this._renderedElement&&this.isVisible&&(this._renderedElement.style.visibility="hidden",this.isVisible=!1,Ie(this,!1))},t.prototype.showElementHiddenDueToOverflow=function(){this._renderedElement&&!this.isVisible&&(this._renderedElement.style.removeProperty("visibility"),this.isVisible=!0,Ie(this,!1))},t.prototype.handleOverflow=function(e){if(this.isVisible||this.isHiddenDueToOverflow()){var t=this.truncateOverflow(e);this._truncatedDueToOverflow=t||this._truncatedDueToOverflow,t?t&&!this.isVisible&&this.showElementHiddenDueToOverflow():this.hideElementDueToOverflow()}},t.prototype.resetOverflow=function(){var e=!1;return this._truncatedDueToOverflow&&(this.undoOverflowTruncation(),this._truncatedDueToOverflow=!1,e=!0),this.isHiddenDueToOverflow()&&this.showElementHiddenDueToOverflow(),e},t.prototype.getDefaultSerializationContext=function(){return new $e},t.prototype.createPlaceholderElement=function(){var e=this.getEffectiveStyleDefinition(),t=u.stringToCssColor(e.foregroundColors.default.subtle),i=document.createElement("div");return i.style.border="1px dashed "+t,i.style.padding="4px",i.style.minHeight="32px",i.style.fontSize="10px",t&&(i.style.color=t),i.innerText=y.Strings.defaults.emptyElementText(this.getJsonTypeName()),i},t.prototype.adjustRenderedElementSize=function(e){"auto"===this.height?e.style.flex="0 0 auto":e.style.flex="1 1 auto"},t.prototype.updateInputsVisualState=function(e){var t=this.getAllInputs(),i=e?G.MouseEnterOnCard:G.MouseLeaveOnCard;t.forEach((function(e){return e.updateVisualState(i)}))},t.prototype.isDisplayed=function(){return void 0!==this._renderedElement&&this.isVisible&&this._renderedElement.offsetHeight>0},t.prototype.overrideInternalRender=function(){return this.internalRender()},t.prototype.applyPadding=function(){if(this.separatorElement&&this.separatorOrientation===p.Orientation.Horizontal)if(c.GlobalSettings.alwaysBleedSeparators&&!this.isBleeding()){var e=new c.PaddingDefinition;this.getImmediateSurroundingPadding(e);var t=this.hostConfig.paddingDefinitionToSpacingDefinition(e);this.separatorElement.style.marginLeft="-"+t.left+"px",this.separatorElement.style.marginRight="-"+t.right+"px"}else this.separatorElement.style.marginRight="0",this.separatorElement.style.marginLeft="0"},t.prototype.truncateOverflow=function(e){return!1},t.prototype.undoOverflowTruncation=function(){},t.prototype.getDefaultPadding=function(){return new c.PaddingDefinition},t.prototype.getHasBackground=function(e){return void 0===e&&(e=!1),!1},t.prototype.getHasBorder=function(){return!1},t.prototype.getPadding=function(){return this._padding},t.prototype.setPadding=function(e){this._padding=e},t.prototype.shouldSerialize=function(e){return void 0!==e.elementRegistry.findByName(this.getJsonTypeName())},Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"separatorOrientation",{get:function(){return p.Orientation.Horizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultStyle",{get:function(){return p.ContainerStyle.Default},enumerable:!1,configurable:!0}),t.prototype.parse=function(t,i){e.prototype.parse.call(this,t,i||new $e)},t.prototype.asString=function(){return""},t.prototype.isBleeding=function(){return!1},t.prototype.getEffectiveStyle=function(){return this.parent?this.parent.getEffectiveStyle():this.defaultStyle},t.prototype.getEffectiveStyleDefinition=function(){return this.hostConfig.containerStyles.getStyleByName(this.getEffectiveStyle())},t.prototype.getEffectiveTextStyleDefinition=function(){return this.parent?this.parent.getEffectiveTextStyleDefinition():this.hostConfig.textStyles.default},t.prototype.getForbiddenActionTypes=function(){return[]},t.prototype.getImmediateSurroundingPadding=function(e,t,i,n,r){if(void 0===t&&(t=!0),void 0===i&&(i=!0),void 0===n&&(n=!0),void 0===r&&(r=!0),this.parent){var o=t&&this.parent.isTopElement(this),s=i&&this.parent.isRightMostElement(this),a=n&&this.parent.isBottomElement(this),l=r&&this.parent.isLeftMostElement(this),c=this.parent.getEffectivePadding();c&&(o&&c.top!==p.Spacing.None&&(e.top=c.top,o=!1),s&&c.right!==p.Spacing.None&&(e.right=c.right,s=!1),a&&c.bottom!==p.Spacing.None&&(e.bottom=c.bottom,a=!1),l&&c.left!==p.Spacing.None&&(e.left=c.left,l=!1)),(o||s||a||l)&&this.parent.getImmediateSurroundingPadding(e,o,s,a,l)}},t.prototype.getActionCount=function(){return 0},t.prototype.getActionAt=function(e){throw new Error(y.Strings.errors.indexOutOfRange(e))},t.prototype.indexOfAction=function(e){for(var t=0;t0&&(this.renderedElement.style.maxHeight=this._computedLineHeight*this.maxLines+"px");var n=null!==(i=null===(e=t._ttRoundtripPolicy)||void 0===e?void 0:e.createHTML(this._originalInnerHtml))&&void 0!==i?i:this._originalInnerHtml;this.renderedElement.innerHTML=n}},t.prototype.truncateIfSupported=function(e){if(void 0!==this.renderedElement){var t=this.renderedElement.children,i=!t.length;if(i||1===t.length&&"p"===t[0].tagName.toLowerCase()&&!t[0].children.length){var n=i?this.renderedElement:t[0];return u.truncateText(n,e,this._computedLineHeight),!0}}return!1},t.prototype.setText=function(t){e.prototype.setText.call(this,t),this._processedText=void 0},t.prototype.internalRender=function(){var e,i,n=this;if(this._processedText=void 0,this.text){var r=this.preProcessPropertyValue(E.textProperty),o=this.hostConfig,s=void 0;if(this.forElementId){var a=document.createElement("label");a.htmlFor=this.forElementId,s=a}else s=document.createElement("div");if(s.classList.add(o.makeCssClassName("ac-textBlock")),s.style.overflow="hidden",this.applyStylesTo(s),"heading"===this.style){s.setAttribute("role","heading");var l=this.hostConfig.textBlock.headingLevel;void 0!==l&&l>0&&s.setAttribute("aria-level",l.toString())}if(this.selectAction&&o.supportsInteractivity&&(s.onclick=function(e){n.selectAction&&n.selectAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,n.selectAction.execute())},this.selectAction.setupElementForAccessibility(s),this.selectAction.isEffectivelyEnabled()&&s.classList.add(o.makeCssClassName("ac-selectable"))),!this._processedText){this._treatAsPlainText=!0;var p=h.formatText(this.lang,r);if(this.useMarkdown&&p){c.GlobalSettings.allowMarkForTextHighlighting&&(p=p.replace(//g,"===").replace(/<\/mark>/g,"/==/"));var d=Ne.applyMarkdown(p);if(d.didProcess&&d.outputHtml){if(this._processedText=d.outputHtml,this._treatAsPlainText=!1,c.GlobalSettings.allowMarkForTextHighlighting&&this._processedText){var f="",m=this.getEffectiveStyleDefinition();m.highlightBackgroundColor&&(f+="background-color: "+m.highlightBackgroundColor+";"),m.highlightForegroundColor&&(f+="color: "+m.highlightForegroundColor+";"),f&&(f='style="'+f+'"'),this._processedText=this._processedText.replace(/===/g,"").replace(/\/==\//g,"")}}else this._processedText=p,this._treatAsPlainText=!0}else this._processedText=p,this._treatAsPlainText=!0}if(this._processedText||(this._processedText=""),this._treatAsPlainText)s.innerText=this._processedText;else{var g=null!==(i=null===(e=t._ttMarkdownPolicy)||void 0===e?void 0:e.createHTML(this._processedText))&&void 0!==i?i:this._processedText;s.innerHTML=g}if(s.firstElementChild instanceof HTMLElement){var y=s.firstElementChild;y.style.marginTop="0px",y.style.width="100%",this.wrap||(y.style.overflow="hidden",y.style.textOverflow="ellipsis")}s.lastElementChild instanceof HTMLElement&&(s.lastElementChild.style.marginBottom="0px");for(var v=s.getElementsByTagName("a"),b=function(e){e.classList.add(o.makeCssClassName("ac-anchor")),e.target="_blank",e.onclick=function(t){Ae(n,e,t)&&(t.preventDefault(),t.cancelBubble=!0)},e.oncontextmenu=function(t){return!Ae(n,e,t)||(t.preventDefault(),t.cancelBubble=!0,!1)}},C=0,w=Array.from(v);C0&&(s.style.overflow="hidden",u.isInternetExplorer()||!c.GlobalSettings.useWebkitLineClamp?s.style.maxHeight=this._computedLineHeight*this.maxLines+"px":(s.style.removeProperty("line-height"),s.style.display="-webkit-box",s.style.webkitBoxOrient="vertical",s.style.webkitLineClamp=this.maxLines.toString()))):(s.style.whiteSpace="nowrap",s.style.textOverflow="ellipsis"),(c.GlobalSettings.useAdvancedTextBlockTruncation||c.GlobalSettings.useAdvancedCardBottomTruncation)&&(this._originalInnerHtml=s.innerHTML),s}},t.prototype.truncateOverflow=function(e){return e>=this._computedLineHeight&&this.truncateIfSupported(e)},t.prototype.undoOverflowTruncation=function(){if(this.restoreOriginalContent(),c.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines){var e=this._computedLineHeight*this.maxLines;this.truncateIfSupported(e)}},t.prototype.applyStylesTo=function(t){switch(e.prototype.applyStylesTo.call(this,t),this.getEffectiveHorizontalAlignment()){case p.HorizontalAlignment.Center:t.style.textAlign="center";break;case p.HorizontalAlignment.Right:t.style.textAlign="end";break;default:t.style.textAlign="start"}var i=this.hostConfig.lineHeights;if(i)switch(this.effectiveSize){case p.TextSize.Small:this._computedLineHeight=i.small;break;case p.TextSize.Medium:this._computedLineHeight=i.medium;break;case p.TextSize.Large:this._computedLineHeight=i.large;break;case p.TextSize.ExtraLarge:this._computedLineHeight=i.extraLarge;break;default:this._computedLineHeight=i.default}else this._computedLineHeight=1.33*this.getFontSize(this.hostConfig.getFontTypeDefinition(this.effectiveFontType));t.style.lineHeight=this._computedLineHeight+"px"},t.prototype.getJsonTypeName=function(){return"TextBlock"},t.prototype.getEffectiveTextStyleDefinition=function(){return this.style?this.hostConfig.textStyles.getStyleByName(this.style):e.prototype.getEffectiveTextStyleDefinition.call(this)},t.prototype.updateLayout=function(t){void 0===t&&(t=!1),e.prototype.updateLayout.call(this,t),c.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines&&this.isDisplayed()&&(this.restoreOriginalContent(),this.truncateIfSupported(this._computedLineHeight*this.maxLines))},t.wrapProperty=new m.BoolProperty(m.Versions.v1_0,"wrap",!1),t.maxLinesProperty=new m.NumProperty(m.Versions.v1_0,"maxLines"),t.styleProperty=new m.ValueSetProperty(m.Versions.v1_5,"style",[{value:"default"},{value:"columnHeader"},{value:"heading"}]),t._ttMarkdownPolicy="undefined"==typeof window||null===(i=window.trustedTypes)||void 0===i?void 0:i.createPolicy("adaptivecards#markdownPassthroughPolicy",{createHTML:function(e){return e}}),t._ttRoundtripPolicy="undefined"==typeof window||null===(n=window.trustedTypes)||void 0===n?void 0:n.createPolicy("adaptivecards#restoreContentsPolicy",{createHTML:function(e){return e}}),o([(0,m.property)(t.wrapProperty)],t.prototype,"wrap",void 0),o([(0,m.property)(t.maxLinesProperty)],t.prototype,"maxLines",void 0),o([(0,m.property)(t.styleProperty)],t.prototype,"style",void 0),t}(E);t.TextBlock=x;var P=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.italic=!1,t.strikethrough=!1,t.highlight=!1,t.underline=!1,t}return r(t,e),t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.add(E.selectActionProperty)},t.prototype.internalRender=function(){var e=this;if(this.text){var t=this.preProcessPropertyValue(E.textProperty),i=this.hostConfig,n=h.formatText(this.lang,t);n||(n="");var r=document.createElement("span");if(r.classList.add(i.makeCssClassName("ac-textRun")),this.applyStylesTo(r),this.selectAction&&i.supportsInteractivity){var o=document.createElement("a");o.classList.add(i.makeCssClassName("ac-anchor"));var s=this.selectAction.getHref();o.href=s||"",o.target="_blank",o.onclick=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(o),o.innerText=n,r.appendChild(o)}else r.innerText=n;return r}},t.prototype.applyStylesTo=function(t){if(e.prototype.applyStylesTo.call(this,t),this.italic&&(t.style.fontStyle="italic"),this.strikethrough&&(t.style.textDecoration="line-through"),this.highlight){var i=this.getColorDefinition(this.getEffectiveStyleDefinition().foregroundColors,this.effectiveColor),n=u.stringToCssColor(this.effectiveIsSubtle?i.highlightColors.subtle:i.highlightColors.default);n&&(t.style.backgroundColor=n)}this.underline&&(t.style.textDecoration="underline")},t.prototype.getJsonTypeName=function(){return"TextRun"},Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInline",{get:function(){return!0},enumerable:!1,configurable:!0}),t.italicProperty=new m.BoolProperty(m.Versions.v1_2,"italic",!1),t.strikethroughProperty=new m.BoolProperty(m.Versions.v1_2,"strikethrough",!1),t.highlightProperty=new m.BoolProperty(m.Versions.v1_2,"highlight",!1),t.underlineProperty=new m.BoolProperty(m.Versions.v1_3,"underline",!1),o([(0,m.property)(t.italicProperty)],t.prototype,"italic",void 0),o([(0,m.property)(t.strikethroughProperty)],t.prototype,"strikethrough",void 0),o([(0,m.property)(t.highlightProperty)],t.prototype,"highlight",void 0),o([(0,m.property)(t.underlineProperty)],t.prototype,"underline",void 0),t}(E);t.TextRun=P;var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._inlines=[],t}return r(t,e),t.prototype.internalAddInline=function(e,t){if(void 0===t&&(t=!1),!e.isInline)throw new Error(y.Strings.errors.elementCannotBeUsedAsInline());if(void 0!==e.parent&&!t&&e.parent!==this)throw new Error(y.Strings.errors.inlineAlreadyParented());e.setParent(this),this._inlines.push(e)},t.prototype.internalParse=function(t,i){if(e.prototype.internalParse.call(this,t,i),this._inlines=[],Array.isArray(t.inlines))for(var n=0,r=t.inlines;n0){for(var n=[],r=0,o=this._inlines;r0){var e=void 0;if(this.forElementId){var t=document.createElement("label");t.htmlFor=this.forElementId,e=t}else e=document.createElement("div");switch(e.className=this.hostConfig.makeCssClassName("ac-richTextBlock"),this.getEffectiveHorizontalAlignment()){case p.HorizontalAlignment.Center:e.style.textAlign="center";break;case p.HorizontalAlignment.Right:e.style.textAlign="end";break;default:e.style.textAlign="start"}for(var i=0,n=0,r=this._inlines;n0)return e}},t.prototype.asString=function(){for(var e="",t=0,i=this._inlines;t=0&&e=0&&(this._inlines[t].setParent(void 0),this._inlines.splice(t,1),!0)},t}(w);t.RichTextBlock=_;var A=function(e){function t(t,i){var n=e.call(this)||this;return n.name=t,n.value=i,n}return r(t,e),t.prototype.getSchemaKey=function(){return"Fact"},t.titleProperty=new m.StringProperty(m.Versions.v1_0,"title"),t.valueProperty=new m.StringProperty(m.Versions.v1_0,"value"),o([(0,m.property)(t.titleProperty)],t.prototype,"name",void 0),o([(0,m.property)(t.valueProperty)],t.prototype,"value",void 0),t}(m.SerializableObject);t.Fact=A;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.internalRender=function(){var e=void 0,t=this.hostConfig;if(this.facts.length>0){(e=document.createElement("table")).style.borderWidth="0px",e.style.borderSpacing="0px",e.style.borderStyle="none",e.style.borderCollapse="collapse",e.style.display="block",e.style.overflow="hidden",e.classList.add(t.makeCssClassName("ac-factset")),e.setAttribute("role","presentation");for(var i=0;i0&&(n.style.marginTop=t.factSet.spacing+"px");var r=document.createElement("td");r.style.padding="0",r.classList.add(t.makeCssClassName("ac-fact-title")),t.factSet.title.maxWidth&&(r.style.maxWidth=t.factSet.title.maxWidth+"px"),r.style.verticalAlign="top";var o=new x;o.setParent(this),o.text=!this.facts[i].name&&this.isDesignMode()?"Title":this.facts[i].name,o.size=t.factSet.title.size,o.color=t.factSet.title.color,o.isSubtle=t.factSet.title.isSubtle,o.weight=t.factSet.title.weight,o.wrap=t.factSet.title.wrap,o.spacing=p.Spacing.None,u.appendChild(r,o.render()),u.appendChild(n,r),(r=document.createElement("td")).style.width="10px",u.appendChild(n,r),(r=document.createElement("td")).style.padding="0",r.style.verticalAlign="top",r.classList.add(t.makeCssClassName("ac-fact-value")),(o=new x).setParent(this),o.text=this.facts[i].value,o.size=t.factSet.value.size,o.color=t.factSet.value.color,o.isSubtle=t.factSet.value.isSubtle,o.weight=t.factSet.value.weight,o.wrap=t.factSet.value.wrap,o.spacing=p.Spacing.None,u.appendChild(r,o.render()),u.appendChild(n,r),u.appendChild(e,n)}}return e},t.prototype.getJsonTypeName=function(){return"FactSet"},t.factsProperty=new m.SerializableObjectCollectionProperty(m.Versions.v1_0,"facts",A),o([(0,m.property)(t.factsProperty)],t.prototype,"facts",void 0),t}(w);t.FactSet=T;var I=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.targetVersion=t,o.name=i,o.internalName=n,o.fallbackProperty=r,o}return r(t,e),t.prototype.getInternalName=function(){return this.internalName},t.prototype.parse=function(e,t,i){var n=void 0,r=t[this.name];if(void 0===r)return this.defaultValue;var o=!1;if("string"==typeof r){try{var s=c.SizeAndUnit.parse(r,!0);s.unit===p.SizeUnit.Pixel&&(n=s.physicalSize,o=!0)}catch(e){}!o&&this.fallbackProperty&&(o=this.fallbackProperty.isValidValue(r,i))}return o||i.logParseEvent(e,p.ValidationEvent.InvalidPropertyValue,y.Strings.errors.invalidPropertyValue(r,this.name)),n},t.prototype.toJSON=function(e,t,i,n){n.serializeValue(t,this.name,"number"!=typeof i||isNaN(i)?void 0:i+"px")},t}(m.PropertyDefinition),O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.size=p.Size.Auto,t.style=p.ImageStyle.Default,t}return r(t,e),t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(w.heightProperty)},t.prototype.applySize=function(e){if(this.pixelWidth||this.pixelHeight)this.pixelWidth&&(e.style.width=this.pixelWidth+"px"),this.pixelHeight&&(e.style.height=this.pixelHeight+"px");else if(this.maxHeight){switch(this.size){case p.Size.Small:e.style.height=this.hostConfig.imageSizes.small+"px";break;case p.Size.Large:e.style.height=this.hostConfig.imageSizes.large+"px";break;default:e.style.height=this.hostConfig.imageSizes.medium+"px"}e.style.maxHeight=this.maxHeight+"px"}else{switch(this.size){case p.Size.Stretch:e.style.width="100%";break;case p.Size.Auto:e.style.maxWidth="100%";break;case p.Size.Small:e.style.width=this.hostConfig.imageSizes.small+"px";break;case p.Size.Large:e.style.width=this.hostConfig.imageSizes.large+"px";break;case p.Size.Medium:e.style.width=this.hostConfig.imageSizes.medium+"px"}e.style.maxHeight="100%"}},Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.internalRender=function(){var e=this,i=void 0;if(this.url){(i=document.createElement("div")).style.display="flex",i.style.alignItems="flex-start";var n=this.hostConfig;switch(this.getEffectiveHorizontalAlignment()){case p.HorizontalAlignment.Center:i.style.justifyContent="center";break;case p.HorizontalAlignment.Right:i.style.justifyContent="flex-end";break;default:i.style.justifyContent="flex-start"}var r=document.createElement("img");this.renderedImageElement=r,r.onload=function(t){_e(e)},r.onerror=function(t){if(e.renderedElement){var i=e.getRootElement();if(b(e.renderedElement),i&&i.designMode){var n=document.createElement("div");n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.backgroundColor="#EEEEEE",n.style.color="black",n.innerText=":-(",n.style.padding="10px",e.applySize(n),e.renderedElement.appendChild(n)}}_e(e)},r.style.minWidth="0",r.classList.add(n.makeCssClassName("ac-image")),this.selectAction&&n.supportsInteractivity&&(r.onkeypress=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&("Enter"===t.code||"Space"===t.code)&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},r.onclick=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(r),this.selectAction.isEffectivelyEnabled()&&r.classList.add(n.makeCssClassName("ac-selectable"))),this.applySize(r),this.style===p.ImageStyle.Person&&(r.style.borderRadius="50%",r.style.backgroundPosition="50% 50%",r.style.backgroundRepeat="no-repeat");var o=u.stringToCssColor(this.backgroundColor);o&&(r.style.backgroundColor=o),this.setImageSource(r);var s=this.preProcessPropertyValue(t.altTextProperty);s&&(r.alt=s),i.appendChild(r)}return i},t.prototype.getJsonTypeName=function(){return"Image"},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.selectAction&&t.push(this.selectAction),t},t.prototype.getActionById=function(t){var i=e.prototype.getActionById.call(this,t);return!i&&this.selectAction&&(i=this.selectAction.getActionById(t)),i},t.prototype.getResourceInformation=function(){return this.url?[{url:this.url,mimeType:"image"}]:[]},t.prototype.setImageSource=function(e){var i=new M(this.forceLoad,this.url);i.configureImage(this),e.src=this.preProcessPropertyValue(t.urlProperty),i.resetImage(this)},t.urlProperty=new m.StringProperty(m.Versions.v1_0,"url"),t.altTextProperty=new m.StringProperty(m.Versions.v1_0,"altText"),t.backgroundColorProperty=new m.StringProperty(m.Versions.v1_1,"backgroundColor"),t.styleProperty=new m.EnumProperty(m.Versions.v1_0,"style",p.ImageStyle,p.ImageStyle.Default),t.sizeProperty=new m.EnumProperty(m.Versions.v1_0,"size",p.Size,p.Size.Auto),t.pixelWidthProperty=new I(m.Versions.v1_1,"width","pixelWidth"),t.pixelHeightProperty=new I(m.Versions.v1_1,"height","pixelHeight",w.heightProperty),t.selectActionProperty=new S(m.Versions.v1_1,"selectAction",["Action.ShowCard"]),t.shouldForceLoadProperty=new m.BoolProperty(m.Versions.v1_6,"forceLoad",!1),o([(0,m.property)(t.urlProperty)],t.prototype,"url",void 0),o([(0,m.property)(t.altTextProperty)],t.prototype,"altText",void 0),o([(0,m.property)(t.backgroundColorProperty)],t.prototype,"backgroundColor",void 0),o([(0,m.property)(t.sizeProperty)],t.prototype,"size",void 0),o([(0,m.property)(t.styleProperty)],t.prototype,"style",void 0),o([(0,m.property)(t.pixelWidthProperty)],t.prototype,"pixelWidth",void 0),o([(0,m.property)(t.pixelHeightProperty)],t.prototype,"pixelHeight",void 0),o([(0,m.property)(t.selectActionProperty)],t.prototype,"selectAction",void 0),o([(0,m.property)(t.shouldForceLoadProperty)],t.prototype,"forceLoad",void 0),t}(w);t.Image=O;var M=function(){function e(e,t){this.doForceLoad=e,this.url=t,t&&t.length&&e&&(this.uniqueHash="?"+Date.now(),this.urlWithForceLoadOption=t+this.uniqueHash)}return e.prototype.configureImage=function(e){this.urlWithForceLoadOption&&this.urlWithForceLoadOption.length&&(e.url=this.urlWithForceLoadOption)},e.prototype.resetImage=function(e){e.url=this.url},e}(),V=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allowVerticalOverflow=!1,t}return r(t,e),t.prototype.populateSchema=function(i){e.prototype.populateSchema.call(this,i),this.isSelectable||i.remove(t.selectActionProperty)},t.prototype.isElementAllowed=function(e){return this.hostConfig.supportsInteractivity||!e.isInteractive},t.prototype.applyPadding=function(){if(e.prototype.applyPadding.call(this),this.renderedElement){var t=new c.SpacingDefinition;this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=t.top+"px",this.renderedElement.style.paddingRight=t.right+"px",this.renderedElement.style.paddingBottom=t.bottom+"px",this.renderedElement.style.paddingLeft=t.left+"px",this.renderedElement.style.marginRight="0",this.renderedElement.style.marginLeft="0"}},Object.defineProperty(t.prototype,"isSelectable",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.forbiddenChildElements=function(){return[]},t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this);for(var t=0;t0){(e=document.createElement("div")).style.display="flex",e.style.flexWrap="wrap";for(var t=0,i=this._images;t0?this._images[0]:void 0},t.prototype.getLastVisibleRenderedItem=function(){return this._images&&this._images.length>0?this._images[this._images.length-1]:void 0},t.prototype.removeItem=function(e){if(e instanceof O){var t=this._images.indexOf(e);if(t>=0)return this._images.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},t.prototype.getJsonTypeName=function(){return"ImageSet"},t.prototype.addImage=function(e){if(e.parent)throw new Error("This image already belongs to another ImageSet");this._images.push(e),e.setParent(this)},t.prototype.indexOf=function(e){return e instanceof O?this._images.indexOf(e):-1},t.imagesProperty=new m.SerializableObjectCollectionProperty(m.Versions.v1_0,"images",O,(function(e,t){t.setParent(e)})),t.imageSizeProperty=new m.EnumProperty(m.Versions.v1_0,"imageSize",p.ImageSize,p.ImageSize.Medium),t.imagePresentationStyle=new m.EnumProperty(m.Versions.v1_6,"style",p.ImageSetPresentationStyle,p.ImageSetPresentationStyle.Default),t.pixelOffset=new m.NumProperty(m.Versions.v1_6,"offset",0,void 0),o([(0,m.property)(t.imagesProperty)],t.prototype,"_images",void 0),o([(0,m.property)(t.imageSizeProperty)],t.prototype,"imageSize",void 0),o([(0,m.property)(t.imagePresentationStyle)],t.prototype,"presentationStyle",void 0),o([(0,m.property)(t.pixelOffset)],t.prototype,"pixelOffset",void 0),t}(V);t.ImageSet=k;var z=function(){function e(e,t,i){this.sign45=.7071,this.maxImageCounts=2,this.offset=0,this.normalizationConstant=0,this.border=5,this.dimension=0,this.dimension=t,this.normalizationConstant=2*(t*this.sign45-.5*t),this.offset=this.sign45*(Math.max(e,-t)-this.normalizationConstant),this.style=i||""}return e.prototype.moveImageRight=function(e){e.style.marginLeft=this.offset+"px"},e.prototype.moveImageUp=function(e){e.style.marginBottom=this.offset+this.dimension+"px"},e.prototype.moveImageDown=function(e){e.style.marginTop=this.offset+this.dimension+"px"},e.prototype.makeImageRound=function(e){e.style.borderRadius="50%",e.style.backgroundPosition="50% 50%",e.style.backgroundRepeat="no-repeat"},e.prototype.applyBorder=function(e){e.style.height=this.dimension+2*this.border+"px",e.style.border=this.border+"px solid "+this.style},e.prototype.configureImageForBottomLeft=function(e){this.moveImageDown(e),this.makeImageRound(e),this.applyBorder(e),e.style.zIndex="2"},e.prototype.configureImageForTopRight=function(e){this.moveImageUp(e),this.moveImageRight(e),this.makeImageRound(e),e.style.zIndex="1"},e.prototype.configureImagesArrayAsStackedLayout=function(e){1==e.length?e[0].renderedImageElement&&this.makeImageRound(e[0].renderedImageElement):e.length<=this.maxImageCounts&&e[0].renderedImageElement&&e[1].renderedImageElement&&(this.configureImageForBottomLeft(e[0].renderedImageElement),this.configureImageForTopRight(e[1].renderedImageElement))},e.parseNumericPixelDimension=function(e){if("px"==(null==e?void 0:e.substring(e.length-2)))return parseInt(e.substring(0,e.length-2))},e}(),L=function(e){function t(t,i){var n=e.call(this)||this;return n.url=t,n.mimeType=i,n}return r(t,e),t.prototype.isValid=function(){return!(!this.mimeType||!this.url)},t.mimeTypeProperty=new m.StringProperty(m.Versions.v1_1,"mimeType"),t.urlProperty=new m.StringProperty(m.Versions.v1_1,"url"),o([(0,m.property)(t.mimeTypeProperty)],t.prototype,"mimeType",void 0),o([(0,m.property)(t.urlProperty)],t.prototype,"url",void 0),t}(m.SerializableObject);t.ContentSource=L;var D=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r.label=n,r}return r(t,e),t.prototype.getSchemaKey=function(){return"CaptionSource"},t.prototype.render=function(){var e=void 0;return this.isValid()&&((e=document.createElement("track")).src=this.url,e.kind="captions",e.label=this.label),e},t.labelProperty=new m.StringProperty(m.Versions.v1_6,"label"),o([(0,m.property)(t.labelProperty)],t.prototype,"label",void 0),t}(L);t.CaptionSource=D;var N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getSchemaKey=function(){return"MediaSource"},t.prototype.render=function(){var e=void 0;return this.isValid()&&((e=document.createElement("source")).src=this.url,e.type=this.mimeType),e},t}(L);t.MediaSource=N;var R=function(){function e(){}return e.prototype.play=function(){},Object.defineProperty(e.prototype,"posterUrl",{get:function(){return this._posterUrl},set:function(e){this._posterUrl=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedMediaType",{get:function(){},enumerable:!1,configurable:!0}),e}();t.MediaPlayer=R;var $=function(e){function t(t){var i=e.call(this)||this;return i.owner=t,i._selectedSources=[],i._captionSources=[],i.processSources(),i}return r(t,e),t.prototype.processSources=function(){var e;this._selectedSources=[],this._captionSources=[],this._selectedMediaType=void 0;for(var i=0,n=this.owner.sources;i=0&&(this._selectedMediaType=t.supportedMediaTypes[s])}o[0]===this._selectedMediaType&&this._selectedSources.push(r)}}(e=this._captionSources).push.apply(e,this.owner.captionSources)},t.prototype.canPlay=function(){return this._selectedSources.length>0},t.prototype.fetchVideoDetails=function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){return[2]}))}))},t.prototype.render=function(){"video"===this._selectedMediaType?this._mediaElement=document.createElement("video"):this._mediaElement=document.createElement("audio"),this._mediaElement.setAttribute("aria-label",this.owner.altText?this.owner.altText:y.Strings.defaults.mediaPlayerAriaLabel()),this._mediaElement.setAttribute("webkit-playsinline",""),this._mediaElement.setAttribute("playsinline",""),this._mediaElement.setAttribute("crossorigin",""),this._mediaElement.autoplay=!0,this._mediaElement.controls=!0,u.isMobileOS()&&(this._mediaElement.muted=!0),this._mediaElement.preload="none",this._mediaElement.style.width="100%";for(var e=0,t=this.owner.sources;e=2&&(n._videoId=t[1]),n}return r(t,e),t.prototype.canPlay=function(){return void 0!==this._videoId},t.prototype.render=function(){var e=document.createElement("div");e.style.position="relative",e.style.width="100%",e.style.height="0",e.style.paddingBottom="56.25%";var t=document.createElement("iframe");return t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.src=this.getEmbedVideoUrl(),t.frameBorder="0",this.iFrameTitle&&(t.title=this.iFrameTitle),t.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",t.allowFullscreen=!0,e.appendChild(t),e},Object.defineProperty(t.prototype,"videoId",{get:function(){return this._videoId},enumerable:!1,configurable:!0}),t}(B);t.IFrameMediaMediaPlayer=H;var j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.fetchVideoDetails=function(){return s(this,void 0,void 0,(function(){var e,t,i;return a(this,(function(n){switch(n.label){case 0:return e="https://vimeo.com/api/oembed.json?url="+this.getEmbedVideoUrl(),[4,fetch(e)];case 1:return(t=n.sent()).ok?[4,t.json()]:[3,3];case 2:i=n.sent(),this.posterUrl=i.thumbnail_url,n.label=3;case 3:return[2]}}))}))},t.prototype.getEmbedVideoUrl=function(){return"https://player.vimeo.com/video/"+this.videoId+"?autoplay=1"},t}(H);t.VimeoPlayer=j;var F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.fetchVideoDetails=function(){return s(this,void 0,void 0,(function(){var e,t,i;return a(this,(function(n){switch(n.label){case 0:return e="https://api.dailymotion.com/video/"+this.videoId+"?fields=thumbnail_720_url",[4,fetch(e)];case 1:return(t=n.sent()).ok?[4,t.json()]:[3,3];case 2:i=n.sent(),this.posterUrl=i.thumbnail_720_url,n.label=3;case 3:return[2]}}))}))},t.prototype.getEmbedVideoUrl=function(){return"https://www.dailymotion.com/embed/video/"+this.videoId+"?autoplay=1"},t}(H);t.DailymotionPlayer=F;var W=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.iFrameTitle=i,t.length>=3&&void 0!==t[2]&&(n._startTimeIndex=parseInt(t[2])),n}return r(t,e),t.prototype.fetchVideoDetails=function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){return this.posterUrl=this.videoId?"https://img.youtube.com/vi/"+this.videoId+"/maxresdefault.jpg":void 0,[2]}))}))},t.prototype.getEmbedVideoUrl=function(){var e="https://www.youtube.com/embed/"+this.videoId+"?autoplay=1";return void 0!==this._startTimeIndex&&(e+="&start="+this._startTimeIndex),e},t}(H);t.YouTubePlayer=W;var G,q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sources=[],t.captionSources=[],t}return r(t,e),t.prototype.createMediaPlayer=function(){for(var e=0,i=t.customMediaPlayers;e0?this._renderedInputControlElement.setAttribute("aria-labelledby",e.join(" ")):this._renderedInputControlElement.removeAttribute("aria-labelledby")}},Object.defineProperty(t.prototype,"isNullable",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputControlElement",{get:function(){return this._renderedInputControlElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputControlContainerElement",{get:function(){return this._inputControlContainerElement},enumerable:!1,configurable:!0}),t.prototype.overrideInternalRender=function(){var e=this,t=this.hostConfig;this._outerContainerElement=document.createElement("div"),this._outerContainerElement.style.display="flex",this.labelPosition===p.InputLabelPosition.Inline?this._outerContainerElement.style.flexDirection="row":this._outerContainerElement.style.flexDirection="column";var i=u.generateUniqueId();if(this.label){var n=new _;n.setParent(this),n.forElementId=i;var r=new P(this.label);if(n.addInline(r),this.isRequired){r.init(t.inputs.label.requiredInputs);var o=new P(t.inputs.label.requiredInputs.suffix);o.color=t.inputs.label.requiredInputs.suffixColor,o.ariaHidden=!0,n.addInline(o)}else r.init(t.inputs.label.optionalInputs);this._renderedLabelElement=n.render(),this._renderedLabelElement&&(this._renderedLabelElement.id=u.generateUniqueId(),this.labelPosition===p.InputLabelPosition.Inline?this._renderedLabelElement.style.alignSelf="center":this._renderedLabelElement.style.marginBottom=t.getEffectiveSpacing(t.inputs.label.inputSpacing)+"px",this._outerContainerElement.appendChild(this._renderedLabelElement))}if(this._inputControlContainerElement=document.createElement("div"),this._inputControlContainerElement.className=t.makeCssClassName("ac-input-container"),this._inputControlContainerElement.style.display="flex","stretch"===this.height&&(this._inputControlContainerElement.style.alignItems="stretch",this._inputControlContainerElement.style.flex="1 1 auto"),this._renderedInputControlElement=this.internalRender(),this._renderedInputControlElement){if(this._renderedInputControlElement.id=i,this._renderedInputControlElement.style.minWidth="0px",this.isNullable&&this.isRequired&&(this._renderedInputControlElement.setAttribute("aria-required","true"),this._renderedInputControlElement.classList.add(t.makeCssClassName("ac-input-required"))),this._inputControlContainerElement.appendChild(this._renderedInputControlElement),this._outerContainerElement.appendChild(this._inputControlContainerElement),this._renderedLabelElement&&this.labelPosition===p.InputLabelPosition.Inline)if(this.labelWidth){if(this.labelWidth.unit==p.SizeUnit.Weight){var s=this.labelWidth.physicalSize;this._renderedLabelElement.style.width=s.toString()+"%",this._inputControlContainerElement.style.width=(100-s).toString()+"%"}else if(this.labelWidth.unit==p.SizeUnit.Pixel){var a=this.labelWidth.physicalSize;this._renderedLabelElement.style.width=a.toString()+"px"}}else{var l=t.inputs.label.width;this._renderedLabelElement.style.width=l.toString()+"%",this._inputControlContainerElement.style.width=100-l+"%"}return this.updateVisualState(G.InitialRender),this._renderedInputControlElement&&(this._renderedInputControlElement.onblur=function(t){e.updateVisualState(G.FocusLeave)}),this.updateInputControlAriaLabelledBy(),this._outerContainerElement}this.resetDirtyState()},t.prototype.valueChanged=function(){var e,t,i;this.getRootElement().updateActionsEnabledState(),this.isValid()&&this.resetValidationFailureCue(),this.onValueChanged&&this.onValueChanged(this),(i=(t=(e=this).getRootElement())&&t.onInputValueChanged?t.onInputValueChanged:Ne.onInputValueChanged)&&i(e)},t.prototype.resetValidationFailureCue=function(){this.renderedInputControlElement&&(this instanceof Q&&this.isDynamicTypeahead()?this.removeValidationFailureCue():this.renderedInputControlElement.classList.remove(this.hostConfig.makeCssClassName("ac-input-validation-failed")),this.updateInputControlAriaLabelledBy(),this._renderedErrorMessageElement&&(this._outerContainerElement.removeChild(this._renderedErrorMessageElement),this._renderedErrorMessageElement=void 0))},t.prototype.showValidationErrorMessage=function(){if(this.renderedElement&&this.errorMessage&&c.GlobalSettings.displayInputValidationErrors){var e=new x;e.setParent(this),e.text=this.errorMessage,e.wrap=!0,e.init(this.hostConfig.inputs.errorMessage),this._renderedErrorMessageElement=e.render(),this._renderedErrorMessageElement&&(this._renderedErrorMessageElement.id=u.generateUniqueId(),this._outerContainerElement.appendChild(this._renderedErrorMessageElement),this.updateInputControlAriaLabelledBy())}},Object.defineProperty(t.prototype,"allowRevealOnHoverStyle",{get:function(){return this.hostConfig.inputs&&this.hostConfig.inputs.allowRevealOnHoverStyle},enumerable:!1,configurable:!0}),t.prototype.shouldHideInputAdornersForRevealOnHover=function(e,t){var i=e===document.activeElement,n=this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onhover"),r=e.classList.contains(n);return t===G.InitialRender||t===G.FocusLeave&&!r||t===G.MouseLeaveOnCard&&!i},t.prototype.updateVisualState=function(e){this.allowRevealOnHoverStyle&&this._renderedInputControlElement&&this.inputStyle===p.InputStyle.RevealOnHover&&(e===G.InitialRender?this._renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onrender")):e===G.MouseEnterOnCard?this._renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onhover")):e===G.MouseLeaveOnCard&&this._renderedInputControlElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onhover")))},t.prototype.focus=function(){this._renderedInputControlElement&&this._renderedInputControlElement.focus()},t.prototype.isValid=function(){return!0},t.prototype.isDirty=function(){return this.value!==this._oldValue},t.prototype.resetDirtyState=function(){this._oldValue=this.value},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.id||t.addFailure(this,p.ValidationEvent.PropertyCantBeNull,y.Strings.errors.inputsMustHaveUniqueId()),this.isRequired&&(this.label||t.addFailure(this,p.ValidationEvent.RequiredInputsShouldHaveLabel,"Required inputs should have a label"),this.errorMessage||t.addFailure(this,p.ValidationEvent.RequiredInputsShouldHaveErrorMessage,"Required inputs should have an error message"))},t.prototype.validateValue=function(){this.resetValidationFailureCue();var e=this.isRequired?this.isSet()&&this.isValid():this.isValid();return!e&&this.renderedInputControlElement&&(this instanceof Q&&this.isDynamicTypeahead()?this.showValidationFailureCue():this.renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName("ac-input-validation-failed")),this.showValidationErrorMessage()),e},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),[this]},t.prototype.render=function(){var t=e.prototype.render.call(this);return this.resetDirtyState(),t},Object.defineProperty(t.prototype,"isInteractive",{get:function(){return!0},enumerable:!1,configurable:!0}),t.labelProperty=new m.StringProperty(m.Versions.v1_3,"label",!0),t.isRequiredProperty=new m.BoolProperty(m.Versions.v1_3,"isRequired",!1),t.errorMessageProperty=new m.StringProperty(m.Versions.v1_3,"errorMessage",!0),t.inputStyleProperty=new m.EnumProperty(m.Versions.v1_6,"inputStyle",p.InputStyle,p.InputStyle.Default,[{value:p.InputStyle.RevealOnHover},{value:p.InputStyle.Default}]),t.labelWidthProperty=new m.CustomProperty(m.Versions.v1_6,"labelWidth",(function(e,t,i,n){var r=t.defaultValue,o=i[t.name],s=!1;if("number"!=typeof o||isNaN(o))if("string"==typeof o)try{r=c.SizeAndUnit.parse(o)}catch(e){s=!0}else s=!0;else((r=new c.SizeAndUnit(o,p.SizeUnit.Weight)).physicalSize<0||r.physicalSize>100)&&(s=!0);return s&&(n.logParseEvent(e,p.ValidationEvent.InvalidPropertyValue,y.Strings.errors.invalidInputLabelWidth()),r=void 0),r}),(function(e,t,i,n,r){n instanceof c.SizeAndUnit&&(n.unit===p.SizeUnit.Pixel?r.serializeValue(i,"labelWidth",n.physicalSize+"px"):r.serializeNumber(i,"labelWidth",n.physicalSize))}),void 0),t.labelPositionProperty=new m.EnumProperty(m.Versions.v1_6,"labelPosition",p.InputLabelPosition,p.InputLabelPosition.Above,[{value:p.InputLabelPosition.Inline},{value:p.InputLabelPosition.Above}]),o([(0,m.property)(t.labelProperty)],t.prototype,"label",void 0),o([(0,m.property)(t.isRequiredProperty)],t.prototype,"isRequired",void 0),o([(0,m.property)(t.errorMessageProperty)],t.prototype,"errorMessage",void 0),o([(0,m.property)(t.inputStyleProperty)],t.prototype,"inputStyle",void 0),o([(0,m.property)(t.labelWidthProperty)],t.prototype,"labelWidth",void 0),o([(0,m.property)(t.labelPositionProperty)],t.prototype,"labelPosition",void 0),t}(w);t.Input=U;var J=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMultiline=!1,t.style=p.InputTextStyle.Text,t}return r(t,e),t.prototype.setupInput=function(e){var t=this;e.style.flex="1 1 auto",e.tabIndex=this.isDesignMode()?-1:0,this.placeholder&&(e.placeholder=this.placeholder,e.setAttribute("aria-label",this.placeholder)),this.defaultValue&&(e.value=this.defaultValue),this.maxLength&&this.maxLength>0&&(e.maxLength=this.maxLength),e.oninput=function(){t.valueChanged()},e.onkeypress=function(e){e.ctrlKey&&"Enter"===e.code&&t.inlineAction&&t.inlineAction.isEffectivelyEnabled()&&t.inlineAction.execute()}},t.prototype.internalRender=function(){var e;return this.isMultiline&&this.style!==p.InputTextStyle.Password?((e=document.createElement("textarea")).className=this.hostConfig.makeCssClassName("ac-input","ac-textInput","ac-multiline"),"stretch"===this.height&&(e.style.height="initial")):((e=document.createElement("input")).className=this.hostConfig.makeCssClassName("ac-input","ac-textInput"),e.type=p.InputTextStyle[this.style].toLowerCase()),this.setupInput(e),e},t.prototype.overrideInternalRender=function(){var t=this,i=e.prototype.overrideInternalRender.call(this);if(this.inlineAction){var n=document.createElement("button");if(n.className=this.hostConfig.makeCssClassName(this.inlineAction.isEffectivelyEnabled()?"ac-inlineActionButton":"ac-inlineActionButton-disabled"),n.onclick=function(e){t.inlineAction&&t.inlineAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,t.inlineAction.execute())},this.inlineAction.iconUrl){n.classList.add("iconOnly");var r=document.createElement("img");r.style.height="100%",r.setAttribute("role","presentation"),r.style.display="none",r.onload=function(){r.style.removeProperty("display")},r.onerror=function(){n.removeChild(r),n.classList.remove("iconOnly"),n.classList.add("textOnly"),n.textContent=t.inlineAction&&t.inlineAction.title?t.inlineAction.title:y.Strings.defaults.inlineActionTitle()},r.src=this.inlineAction.iconUrl,n.appendChild(r),n.title=this.inlineAction.title?this.inlineAction.title:y.Strings.defaults.inlineActionTitle()}else n.classList.add("textOnly"),n.textContent=this.inlineAction.title?this.inlineAction.title:y.Strings.defaults.inlineActionTitle();this.inlineAction.setupElementForAccessibility(n,!0),n.style.marginLeft="8px",this.inputControlContainerElement.appendChild(n)}return i},t.prototype.updateVisualState=function(t){this.allowRevealOnHoverStyle&&(this.inlineAction||this.isMultiline||e.prototype.updateVisualState.call(this,t))},t.prototype.getJsonTypeName=function(){return"Input.Text"},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.inlineAction&&t.push(this.inlineAction),t},t.prototype.getActionById=function(t){var i=e.prototype.getActionById.call(this,t);return!i&&this.inlineAction&&(i=this.inlineAction.getActionById(t)),i},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){return!this.value||!this.regex||new RegExp(this.regex,"g").test(this.value)},Object.defineProperty(t.prototype,"value",{get:function(){return this.renderedInputControlElement?(this.isMultiline,this.renderedInputControlElement.value):void 0},enumerable:!1,configurable:!0}),t.valueProperty=new m.StringProperty(m.Versions.v1_0,"value"),t.maxLengthProperty=new m.NumProperty(m.Versions.v1_0,"maxLength"),t.isMultilineProperty=new m.BoolProperty(m.Versions.v1_0,"isMultiline",!1),t.placeholderProperty=new m.StringProperty(m.Versions.v1_0,"placeholder"),t.styleProperty=new m.EnumProperty(m.Versions.v1_0,"style",p.InputTextStyle,p.InputTextStyle.Text,[{value:p.InputTextStyle.Text},{value:p.InputTextStyle.Tel},{value:p.InputTextStyle.Url},{value:p.InputTextStyle.Email},{value:p.InputTextStyle.Password,targetVersion:m.Versions.v1_5}]),t.inlineActionProperty=new S(m.Versions.v1_0,"inlineAction",["Action.ShowCard"]),t.regexProperty=new m.StringProperty(m.Versions.v1_3,"regex",!0),o([(0,m.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),o([(0,m.property)(t.maxLengthProperty)],t.prototype,"maxLength",void 0),o([(0,m.property)(t.isMultilineProperty)],t.prototype,"isMultiline",void 0),o([(0,m.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),o([(0,m.property)(t.styleProperty)],t.prototype,"style",void 0),o([(0,m.property)(t.inlineActionProperty)],t.prototype,"inlineAction",void 0),o([(0,m.property)(t.regexProperty)],t.prototype,"regex",void 0),t}(U);t.TextInput=J;var X=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.valueOn="true",t.valueOff="false",t.wrap=!1,t}return r(t,e),t.prototype.updateInputControlAriaLabelledBy=function(){if(this._checkboxInputElement){var e=this.getAllLabelIds().join(" ");this._checkboxInputLabelElement&&this._checkboxInputLabelElement.id&&(e+=" "+this._checkboxInputLabelElement.id),e?this._checkboxInputElement.setAttribute("aria-labelledby",e):this._checkboxInputElement.removeAttribute("aria-labelledby")}},t.prototype.internalRender=function(){var e=this,t=document.createElement("div");if(t.className=this.hostConfig.makeCssClassName("ac-input","ac-toggleInput"),t.style.width="100%",t.style.display="flex",t.style.alignItems="center",this._checkboxInputElement=document.createElement("input"),this._checkboxInputElement.id=u.generateUniqueId(),this._checkboxInputElement.type="checkbox",this._checkboxInputElement.style.display="inline-block",this._checkboxInputElement.style.verticalAlign="middle",this._checkboxInputElement.style.margin="0",this._checkboxInputElement.style.flex="0 0 auto",this.title&&this._checkboxInputElement.setAttribute("aria-label",this.title),this.isRequired&&this._checkboxInputElement.setAttribute("aria-required","true"),this._checkboxInputElement.tabIndex=this.isDesignMode()?-1:0,this.defaultValue===this.valueOn&&(this._checkboxInputElement.checked=!0),this._oldCheckboxValue=this._checkboxInputElement.checked,this._checkboxInputElement.onchange=function(){e.valueChanged()},u.appendChild(t,this._checkboxInputElement),this.title||this.isDesignMode()){var i=new x;if(i.setParent(this),i.forElementId=this._checkboxInputElement.id,i.hostConfig=this.hostConfig,i.text=this.title?this.title:this.getJsonTypeName(),i.useMarkdown=c.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,i.wrap=this.wrap,this._checkboxInputLabelElement=i.render(),this._checkboxInputLabelElement){this._checkboxInputLabelElement.id=u.generateUniqueId(),this._checkboxInputLabelElement.style.display="inline-block",this._checkboxInputLabelElement.style.flex="1 1 auto",this._checkboxInputLabelElement.style.marginLeft="6px",this._checkboxInputLabelElement.style.verticalAlign="middle";var n=document.createElement("div");n.style.width="6px",u.appendChild(t,n),u.appendChild(t,this._checkboxInputLabelElement)}}return t},Object.defineProperty(t.prototype,"isNullable",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateVisualState=function(e){},t.prototype.getJsonTypeName=function(){return"Input.Toggle"},t.prototype.focus=function(){this._checkboxInputElement&&this._checkboxInputElement.focus()},t.prototype.isSet=function(){return this.isRequired?this.value===this.valueOn:!!this.value},t.prototype.isDirty=function(){return!!this._checkboxInputElement&&this._checkboxInputElement.checked!==this._oldCheckboxValue},Object.defineProperty(t.prototype,"value",{get:function(){return this._checkboxInputElement?this._checkboxInputElement.checked?this.valueOn:this.valueOff:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new m.StringProperty(m.Versions.v1_0,"value"),t.titleProperty=new m.StringProperty(m.Versions.v1_0,"title"),t.valueOnProperty=new m.StringProperty(m.Versions.v1_0,"valueOn",!0,void 0,"true",(function(e){return"true"})),t.valueOffProperty=new m.StringProperty(m.Versions.v1_0,"valueOff",!0,void 0,"false",(function(e){return"false"})),t.wrapProperty=new m.BoolProperty(m.Versions.v1_2,"wrap",!1),o([(0,m.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),o([(0,m.property)(t.titleProperty)],t.prototype,"title",void 0),o([(0,m.property)(t.valueOnProperty)],t.prototype,"valueOn",void 0),o([(0,m.property)(t.valueOffProperty)],t.prototype,"valueOff",void 0),o([(0,m.property)(t.wrapProperty)],t.prototype,"wrap",void 0),t}(U);t.ToggleInput=X;var Y=function(e){function t(t,i){var n=e.call(this)||this;return n.title=t,n.value=i,n}return r(t,e),t.prototype.getSchemaKey=function(){return"Choice"},t.titleProperty=new m.StringProperty(m.Versions.v1_0,"title"),t.valueProperty=new m.StringProperty(m.Versions.v1_0,"value"),o([(0,m.property)(t.titleProperty)],t.prototype,"title",void 0),o([(0,m.property)(t.valueProperty)],t.prototype,"value",void 0),t}(m.SerializableObject);t.Choice=Y;var K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getSchemaKey=function(){return"choices.data"},t.typeProperty=new m.StringProperty(m.Versions.v1_6,"type",!0,new RegExp("^Data.Query$")),t.datasetProperty=new m.StringProperty(m.Versions.v1_6,"dataset"),t.countProperty=new m.NumProperty(m.Versions.v1_6,"count"),t.skipProperty=new m.NumProperty(m.Versions.v1_6,"skip"),o([(0,m.property)(t.typeProperty)],t.prototype,"type",void 0),o([(0,m.property)(t.datasetProperty)],t.prototype,"dataset",void 0),o([(0,m.property)(t.countProperty)],t.prototype,"count",void 0),o([(0,m.property)(t.skipProperty)],t.prototype,"skip",void 0),t}(m.SerializableObject);t.ChoiceSetInputDataQuery=K;var Q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMultiSelect=!1,t.wrap=!1,t.choices=[],t}return r(t,e),Object.defineProperty(t.prototype,"isCompact",{get:function(){return!this.style||"compact"===this.style},set:function(e){this.style=e?void 0:"expanded"},enumerable:!1,configurable:!0}),t.getUniqueCategoryName=function(){var e="__ac-category"+t._uniqueCategoryCounter;return t._uniqueCategoryCounter++,e},t.prototype.isDynamicTypeahead=function(){return this.hostConfig.inputs.allowDynamicallyFilteredChoiceSet&&!!this.choicesData&&!!this.choicesData.dataset&&"Data.Query"===this.choicesData.type},t.prototype.getFilterForDynamicSearch=function(){var e;return null===(e=this._textInput)||void 0===e?void 0:e.value},t.prototype.getDropdownElement=function(){var e;return null===(e=this._filteredChoiceSet)||void 0===e?void 0:e.dropdown},t.prototype.renderChoices=function(e,t){var i;null===(i=this._filteredChoiceSet)||void 0===i||i.processResponse(e,t)},t.prototype.showLoadingIndicator=function(){var e;null===(e=this._filteredChoiceSet)||void 0===e||e.showLoadingIndicator()},t.prototype.removeLoadingIndicator=function(){var e;null===(e=this._filteredChoiceSet)||void 0===e||e.removeLoadingIndicator()},t.prototype.showErrorIndicator=function(e,t){var i;null===(i=this._filteredChoiceSet)||void 0===i||i.showErrorIndicator(e,t)},t.prototype.showValidationFailureCue=function(){var e;null===(e=this._textInput)||void 0===e||e.classList.add(this.hostConfig.makeCssClassName("ac-input-validation-failed"))},t.prototype.removeValidationFailureCue=function(){var e;null===(e=this._textInput)||void 0===e||e.classList.remove(this.hostConfig.makeCssClassName("ac-input-validation-failed"))},t.prototype.createPlaceholderOptionWhenValueDoesNotExist=function(){if(!this.value){var e=document.createElement("option");return e.selected=!0,e.disabled=!0,e.hidden=!0,e.value="",this.placeholder&&(e.text=this.placeholder),e}},t.prototype.internalApplyAriaCurrent=function(){if(this._selectElement){var e=this._selectElement.options;if(e)for(var t=0,i=Array.from(e);t=0&&(l.checked=!0),l.onchange=function(){n.valueChanged()},this._toggleInputs.push(l);var p=document.createElement("div");p.style.display="flex",p.style.alignItems="center",u.appendChild(p,l);var d=new x;d.setParent(this),d.forElementId=l.id,d.hostConfig=this.hostConfig,d.text=a.title?a.title:"Choice "+this._toggleInputs.length,d.useMarkdown=c.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,d.wrap=this.wrap;var h=d.render();if(this._labels.push(h),h){h.id=u.generateUniqueId(),h.style.display="inline-block",h.style.flex="1 1 auto",h.style.marginLeft="6px",h.style.verticalAlign="middle";var f=document.createElement("div");f.style.width="6px",u.appendChild(p,f),u.appendChild(p,h)}u.appendChild(r,p)}return r},t.prototype.updateInputControlAriaLabelledBy=function(){if((this.isMultiSelect||"expanded"===this.style)&&this._toggleInputs&&this._labels)for(var t=this.getAllLabelIds(),i=0;i0&&this._toggleInputs[0].focus():this._textInput?this._textInput.focus():e.prototype.focus.call(this)},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),0===this.choices.length&&t.addFailure(this,p.ValidationEvent.CollectionCantBeEmpty,y.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(var i=0,n=this.choices;i0?this._selectElement.value:void 0;if(this._textInput){for(var n=0,r=this.choices;n0)for(var s=0,a=this._toggleInputs;s"+t+""),r.tabIndex=-1,r.onclick=function(){r.classList.remove(n.hostConfig.makeCssClassName("ac-choiceSetInput-choice-highlighted")),n._highlightedChoiceId=-1,n._textInput&&(n._textInput.value=r.innerText,n._textInput.focus()),n._dropdown&&n._dropdown.classList.remove(n.hostConfig.makeCssClassName("ac-choiceSetInput-filtered-dropdown-open"))},r.onmousemove=function(){n._highlightedChoiceId!==i&&n.highlightChoice(i,!1)},r},e.prototype.highlightChoice=function(e,t){if(void 0===t&&(t=!0),this._visibleChoiceCount>0){var i=document.getElementById("ac-choiceSetInput-"+this._choiceSetId+"-choice-"+this._highlightedChoiceId),n=document.getElementById("ac-choiceSetInput-"+this._choiceSetId+"-choice-"+e);n?(null==i||i.classList.remove(this.hostConfig.makeCssClassName("ac-choiceSetInput-choice-highlighted")),n.classList.add(this.hostConfig.makeCssClassName("ac-choiceSetInput-choice-highlighted")),t&&n.scrollIntoView(),this._highlightedChoiceId=e):i&&0!==this._highlightedChoiceId?this.highlightChoice(0):this.highlightChoice(this._visibleChoiceCount-1)}},e.prototype.filterChoices=function(){for(var e,t,i=(null===(e=this._textInput)||void 0===e?void 0:e.value.toLowerCase().trim())||"",n=0,r=l(l([],this._choices,!0),this._dynamicChoices,!0);n=this.min),void 0!==this.max&&(e=e&&this.value<=this.max),e},Object.defineProperty(t.prototype,"value",{get:function(){return this._numberInputElement?this._numberInputElement.valueAsNumber:void 0},set:function(e){e&&this._numberInputElement&&(this._numberInputElement.value=e.toString())},enumerable:!1,configurable:!0}),t.valueProperty=new m.NumProperty(m.Versions.v1_0,"value"),t.placeholderProperty=new m.StringProperty(m.Versions.v1_0,"placeholder"),t.minProperty=new m.NumProperty(m.Versions.v1_0,"min"),t.maxProperty=new m.NumProperty(m.Versions.v1_0,"max"),o([(0,m.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),o([(0,m.property)(t.minProperty)],t.prototype,"min",void 0),o([(0,m.property)(t.maxProperty)],t.prototype,"max",void 0),o([(0,m.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(U);t.NumberInput=ee;var te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.internalRender=function(){var e=this;return this._dateInputElement=document.createElement("input"),this._dateInputElement.setAttribute("type","date"),this.min&&this._dateInputElement.setAttribute("min",this.min),this.max&&this._dateInputElement.setAttribute("max",this.max),this.placeholder&&(this._dateInputElement.placeholder=this.placeholder,this._dateInputElement.setAttribute("aria-label",this.placeholder)),this._dateInputElement.tabIndex=this.isDesignMode()?-1:0,this._dateInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-dateInput"),this._dateInputElement.style.width="100%",this._dateInputElement.oninput=function(){e.valueChanged()},this.defaultValue&&(this._dateInputElement.value=this.defaultValue),this._dateInputElement},t.prototype.updateVisualState=function(t){if(this.allowRevealOnHoverStyle&&(e.prototype.updateVisualState.call(this,t),this._dateInputElement&&this.inputStyle===p.InputStyle.RevealOnHover)){var i=this.shouldHideInputAdornersForRevealOnHover(this._dateInputElement,t);i?this._dateInputElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")):this._dateInputElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")),Oe(this._dateInputElement,i)}},t.prototype.getJsonTypeName=function(){return"Input.Date"},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=new Date(this.value),t=!0;if(this.min){var i=new Date(this.min);t=t&&e>=i}if(this.max){var n=new Date(this.max);t=t&&e<=n}return t},Object.defineProperty(t.prototype,"value",{get:function(){return this._dateInputElement?this._dateInputElement.value:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new m.StringProperty(m.Versions.v1_0,"value"),t.placeholderProperty=new m.StringProperty(m.Versions.v1_0,"placeholder"),t.minProperty=new m.StringProperty(m.Versions.v1_0,"min"),t.maxProperty=new m.StringProperty(m.Versions.v1_0,"max"),o([(0,m.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),o([(0,m.property)(t.minProperty)],t.prototype,"min",void 0),o([(0,m.property)(t.maxProperty)],t.prototype,"max",void 0),o([(0,m.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(U);t.DateInput=te;var ie=function(e){function t(t,i){var n=e.call(this,t,i,(function(e,t,i,n){var r=i[t.name];if("string"==typeof r&&r&&/^[0-9]{2}:[0-9]{2}$/.test(r))return r}),(function(e,t,i,n,r){r.serializeValue(i,t.name,n)}))||this;return n.targetVersion=t,n.name=i,n}return r(t,e),t}(m.CustomProperty);t.TimeProperty=ie;var ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.convertTimeStringToDate=function(e){return new Date("1973-09-04T"+e+":00Z")},t.prototype.internalRender=function(){var e=this;return this._timeInputElement=document.createElement("input"),this._timeInputElement.setAttribute("type","time"),this.min&&this._timeInputElement.setAttribute("min",this.min),this.max&&this._timeInputElement.setAttribute("max",this.max),this._timeInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-timeInput"),this._timeInputElement.style.width="100%",this._timeInputElement.oninput=function(){e.valueChanged()},this.placeholder&&(this._timeInputElement.placeholder=this.placeholder,this._timeInputElement.setAttribute("aria-label",this.placeholder)),this._timeInputElement.tabIndex=this.isDesignMode()?-1:0,this.defaultValue&&(this._timeInputElement.value=this.defaultValue),this._timeInputElement},t.prototype.updateVisualState=function(t){if(this.allowRevealOnHoverStyle&&(e.prototype.updateVisualState.call(this,t),this._timeInputElement&&this.inputStyle===p.InputStyle.RevealOnHover)){var i=this.shouldHideInputAdornersForRevealOnHover(this._timeInputElement,t);i?this._timeInputElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")):this._timeInputElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")),Oe(this._timeInputElement,i)}},t.prototype.getJsonTypeName=function(){return"Input.Time"},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=t.convertTimeStringToDate(this.value),i=!0;if(this.min){var n=t.convertTimeStringToDate(this.min);i=i&&e>=n}if(this.max){var r=t.convertTimeStringToDate(this.max);i=i&&e<=r}return i},Object.defineProperty(t.prototype,"value",{get:function(){return this._timeInputElement?this._timeInputElement.value:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new ie(m.Versions.v1_0,"value"),t.placeholderProperty=new m.StringProperty(m.Versions.v1_0,"placeholder"),t.minProperty=new ie(m.Versions.v1_0,"min"),t.maxProperty=new ie(m.Versions.v1_0,"max"),o([(0,m.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),o([(0,m.property)(t.minProperty)],t.prototype,"min",void 0),o([(0,m.property)(t.maxProperty)],t.prototype,"max",void 0),o([(0,m.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(U);t.TimeInput=ne;var re=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=p.ActionStyle.Default,t.mode=p.ActionMode.Primary,t._state=0,t._isFocusable=!0,t}return r(t,e),t.prototype.renderButtonContent=function(){if(this.renderedElement){var e=this.hostConfig,t=document.createElement("div");if(t.style.overflow="hidden",t.style.textOverflow="ellipsis",e.actions.iconPlacement===p.ActionIconPlacement.AboveTitle||e.actions.allowTitleToWrap||(t.style.whiteSpace="nowrap"),this.title&&(t.innerText=this.title),this.iconUrl){var i=document.createElement("img");i.src=this.iconUrl,i.style.width=e.actions.iconSize+"px",i.style.height=e.actions.iconSize+"px",i.style.flex="0 0 auto",e.actions.iconPlacement===p.ActionIconPlacement.AboveTitle?(this.renderedElement.classList.add("iconAbove"),this.renderedElement.style.flexDirection="column",this.title&&(i.style.marginBottom="6px")):(this.renderedElement.classList.add("iconLeft"),i.style.maxHeight="100%",this.title&&(i.style.marginRight="6px")),this.renderedElement.appendChild(i),this.renderedElement.appendChild(t)}else this.renderedElement.classList.add("noIcon"),this.renderedElement.appendChild(t)}},t.prototype.getParentContainer=function(){return this.parent instanceof Ee?this.parent:this.parent?this.parent.getParentContainer():void 0},t.prototype.isDesignMode=function(){var e=this.getRootObject();return e instanceof w&&e.isDesignMode()},t.prototype.updateCssClasses=function(){var e,t;if(this.parent&&this.renderedElement){var i=this.parent.hostConfig;this.renderedElement.className=i.makeCssClassName(this.isEffectivelyEnabled()?"ac-pushButton":"ac-pushButton-disabled");var n=this.getParentContainer();if(n){var r=n.getEffectiveStyle();r&&this.renderedElement.classList.add("style-"+r)}switch(this.renderedElement.tabIndex=!this.isDesignMode()&&this.isFocusable?0:-1,this._state){case 0:break;case 1:this.renderedElement.classList.add(i.makeCssClassName("expanded"));break;case 2:this.renderedElement.classList.add(i.makeCssClassName("subdued"))}this.style&&this.isEffectivelyEnabled()&&(this.style===p.ActionStyle.Positive?(e=this.renderedElement.classList).add.apply(e,i.makeCssClassNames("primary","style-positive")):(t=this.renderedElement.classList).add.apply(t,i.makeCssClassNames("style-"+this.style.toLowerCase())))}},t.prototype.getDefaultSerializationContext=function(){return new $e},t.prototype.internalGetReferencedInputs=function(){return{}},t.prototype.internalPrepareForExecution=function(e){},t.prototype.internalValidateInputs=function(e){var t=[];if(e)for(var i=0,n=Object.keys(e);i0?(t[0].focus(),!1):(this.internalPrepareForExecution(e),!0)},t.prototype.remove=function(){return!!this._actionCollection&&this._actionCollection.removeAction(this)},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),[]},t.prototype.getAllActions=function(){return[this]},t.prototype.getResourceInformation=function(){return this.iconUrl?[{url:this.iconUrl,mimeType:"image"}]:[]},t.prototype.getActionById=function(e){return this.id===e?this:void 0},t.prototype.getReferencedInputs=function(){return this.internalGetReferencedInputs()},t.prototype.validateInputs=function(){return this.internalValidateInputs(this.getReferencedInputs())},t.prototype.updateEnabledState=function(){},t.prototype.isEffectivelyEnabled=function(){return this.isEnabled},Object.defineProperty(t.prototype,"isPrimary",{get:function(){return this.style===p.ActionStyle.Positive},set:function(e){e?this.style=p.ActionStyle.Positive:this.style===p.ActionStyle.Positive&&(this.style=p.ActionStyle.Default)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hostConfig",{get:function(){return this.parent?this.parent.hostConfig:d.defaultHostConfig},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(this._state=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusable",{get:function(){return this._isFocusable},set:function(e){this._isFocusable!==e&&(this._isFocusable=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),t.titleProperty=new m.StringProperty(m.Versions.v1_0,"title"),t.iconUrlProperty=new m.StringProperty(m.Versions.v1_1,"iconUrl"),t.styleProperty=new m.ValueSetProperty(m.Versions.v1_2,"style",[{value:p.ActionStyle.Default},{value:p.ActionStyle.Positive},{value:p.ActionStyle.Destructive}],p.ActionStyle.Default),t.modeProperty=new m.ValueSetProperty(m.Versions.v1_5,"mode",[{value:p.ActionMode.Primary},{value:p.ActionMode.Secondary}],p.ActionMode.Primary),t.tooltipProperty=new m.StringProperty(m.Versions.v1_5,"tooltip"),t.isEnabledProperty=new m.BoolProperty(m.Versions.v1_5,"isEnabled",!0),t.roleProperty=new m.EnumProperty(m.Versions.v1_6,"role",p.ActionRole),o([(0,m.property)(t.titleProperty)],t.prototype,"title",void 0),o([(0,m.property)(t.iconUrlProperty)],t.prototype,"iconUrl",void 0),o([(0,m.property)(t.styleProperty)],t.prototype,"style",void 0),o([(0,m.property)(t.modeProperty)],t.prototype,"mode",void 0),o([(0,m.property)(t.tooltipProperty)],t.prototype,"tooltip",void 0),o([(0,m.property)(t.isEnabledProperty)],t.prototype,"isEnabled",void 0),o([(0,m.property)(t.roleProperty)],t.prototype,"role",void 0),t}(f.CardObject);t.Action=re;var oe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabledUnlessAssociatedInputsChange=!1,t._isPrepared=!1,t._areReferencedInputsDirty=!1,t}return r(t,e),t.prototype.internalGetReferencedInputs=function(){var e={};if("none"!==this.associatedInputs){for(var t=this.parent,i=[];t;)i.push.apply(i,t.getAllInputs(!1)),t=t.parent;for(var n=0,r=i;n0?this._renderedElement.setAttribute("aria-controls",e.join(" ")):this._renderedElement.removeAttribute("aria-controls"))}},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.targetElements||t.addFailure(this,p.ValidationEvent.PropertyCantBeNull,y.Strings.errors.propertyMustBeSet("targetElements"))},t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.render=function(){e.prototype.render.call(this),this.updateAriaControlsAttribute()},t.prototype.execute=function(){if(e.prototype.execute.call(this),this.parent)for(var t=0,i=Object.keys(this.targetElements);t0)for(var i=0,n=this.headers;i0?this._owner.hostConfig.actions.showCard.inlineTopMargin+"px":"0px";var e=this._owner.getEffectivePadding();this._owner.getImmediateSurroundingPadding(e);var t=this._owner.hostConfig.paddingDefinitionToSpacingDefinition(e);this._actionCard&&(this._actionCard.style.paddingLeft=t.left+"px",this._actionCard.style.paddingRight=t.right+"px",this._actionCard.style.marginLeft="-"+t.left+"px",this._actionCard.style.marginRight="-"+t.right+"px",0===t.bottom||this._owner.isDesignMode()||(this._actionCard.style.paddingBottom=t.bottom+"px",this._actionCard.style.marginBottom="-"+t.bottom+"px"),u.appendChild(this._actionCardContainer,this._actionCard))}else this._actionCardContainer.style.marginTop="0px"},e.prototype.layoutChanged=function(){this._owner.getRootElement().updateLayout()},e.prototype.showActionCard=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!0),e.card.suppressStyle=t;var n=e.card.renderedElement&&!this._owner.isDesignMode()?e.card.renderedElement:e.card.render();this._actionCard=n,this._expandedAction=e,this.refreshContainer(),i&&(this.layoutChanged(),Te(e,!0))},e.prototype.collapseExpandedAction=function(){for(var e=0,t=this._renderedActions;ethis._owner.hostConfig.actions.maxActions&&e.addFailure(this._owner,p.ValidationEvent.TooManyActions,y.Strings.errors.tooManyActions(this._owner.hostConfig.actions.maxActions)),this._items.length>0&&!this._owner.hostConfig.supportsInteractivity&&e.addFailure(this._owner,p.ValidationEvent.InteractivityNotAllowed,y.Strings.errors.interactivityNotAllowed());for(var t=0,i=this._items;t0){this._overflowAction||(this._overflowAction=new ge(a),this._overflowAction.setParent(this._owner),this._overflowAction._actionCollection=this);var h=this._owner instanceof Ne&&!this._owner.parent;d=!function(e,t){var i=e.parent?e.parent.getRootElement():void 0,n=i&&i.onRenderOverflowActions?i.onRenderOverflowActions:Ne.onRenderOverflowActions;return void 0!==n&&n(e.getActions(),t)}(this._overflowAction,h)}this._overflowAction&&d&&s.push(this._overflowAction)}for(var f=0;f0)){var g=document.createElement("div");e===p.Orientation.Horizontal?(g.style.flex="0 0 auto",g.style.width=t.actions.buttonSpacing+"px"):g.style.height=t.actions.buttonSpacing+"px",u.appendChild(r,g)}}var y=document.createElement("div");y.style.overflow="hidden",y.appendChild(r),u.appendChild(i,y)}u.appendChild(i,this._actionCardContainer);for(var v=0,b=this._renderedActions;v0?i:void 0}},e.prototype.addAction=function(e){if(!e)throw new Error("The action parameter cannot be null.");if(e.parent&&e.parent!==this._owner||!(this._items.indexOf(e)<0))throw new Error(y.Strings.errors.actionAlreadyParented());this._items.push(e),e.parent||e.setParent(this._owner),e._actionCollection=this},e.prototype.removeAction=function(e){this.expandedAction&&this._expandedAction===e&&this.collapseExpandedAction();var t=this._items.indexOf(e);if(t>=0){this._items.splice(t,1),e.setParent(void 0),e._actionCollection=void 0;for(var i=0;i=0&&t=this._items.length?this._items.push(e):this._items.splice(t,0,e),e.setParent(this)},t.prototype.getItemsCollectionPropertyName=function(){return"items"},t.prototype.applyBackground=function(){this.backgroundImage.isValid()&&this.renderedElement&&this.backgroundImage.apply(this),e.prototype.applyBackground.call(this)},t.prototype.applyRTL=function(e){void 0!==this.rtl&&(e.dir=this.rtl?"rtl":"ltr")},t.prototype.internalRender=function(){this._renderedItems=[];var e=this.hostConfig,t=document.createElement("div");switch(this.applyRTL(t),t.classList.add(e.makeCssClassName("ac-container")),t.style.display="flex",t.style.flexDirection="column",c.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight="-webkit-min-content"),this.getEffectiveVerticalContentAlignment()){case p.VerticalAlignment.Center:t.style.justifyContent="center";break;case p.VerticalAlignment.Bottom:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}if(this._items.length>0)for(var i=0,n=this._items;i0&&r.separatorElement&&(r.separatorElement.style.flex="0 0 auto",u.appendChild(t,r.separatorElement)),u.appendChild(t,o),this._renderedItems.push(r))}else if(this.isDesignMode()){var s=this.createPlaceholderElement();s.style.width="100%",s.style.height="100%",t.appendChild(s)}return t},t.prototype.truncateOverflow=function(e){if(this.renderedElement){for(var t=this.renderedElement.offsetTop+e+1,i=function(e){var n=e.renderedElement;if(n)switch(u.getFitStatus(n,t)){case p.ContainerFitStatus.FullyInContainer:e.resetOverflow()&&i(e);break;case p.ContainerFitStatus.Overflowing:var r=t-n.offsetTop;e.handleOverflow(r);break;case p.ContainerFitStatus.FullyOutOfContainer:e.handleOverflow(0)}},n=0,r=this._items;n0)for(var e=0,t=this._renderedItems;e0)for(var e=this._renderedItems.length-1;e>=0;e--)if(this._renderedItems[e].isVisible)return this._renderedItems[e]},t.prototype.getJsonTypeName=function(){return"Container"},t.prototype.isFirstElement=function(e){for(var t=this.isDesignMode(),i=0,n=this._items;i=0;i--)if(this._items[i].isVisible||t)return this._items[i]===e;return!1},t.prototype.isRtl=function(){if(void 0!==this.rtl)return this.rtl;var e=this.getParentContainer();return!!e&&e.isRtl()},t.prototype.isBleedingAtTop=function(){var e=this.getFirstVisibleRenderedItem();return this.isBleeding()||!!e&&e.isBleedingAtTop()},t.prototype.isBleedingAtBottom=function(){var e=this.getLastVisibleRenderedItem();return this.isBleeding()||!!e&&e.isBleedingAtBottom()&&e.getEffectiveStyle()===this.getEffectiveStyle()},t.prototype.indexOf=function(e){return this._items.indexOf(e)},t.prototype.addItem=function(e){this.insertItemAt(e,-1,!1)},t.prototype.insertItemBefore=function(e,t){this.insertItemAt(e,this._items.indexOf(t),!1)},t.prototype.insertItemAfter=function(e,t){this.insertItemAt(e,this._items.indexOf(t)+1,!1)},t.prototype.removeItem=function(e){var t=this._items.indexOf(e);return t>=0&&(this._items.splice(t,1),e.setParent(void 0),this.updateLayout(),!0)},t.prototype.clear=function(){this._items=[],this._renderedItems=[]},t.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return this.backgroundImage.isValid()&&t.push({url:this.backgroundImage.url,mimeType:"image"}),t},t.prototype.getActionById=function(t){var i=e.prototype.getActionById.call(this,t);if(!i&&(this.selectAction&&(i=this.selectAction.getActionById(t)),!i))for(var n=0,r=this._items;n0?this._computedWeight:this.width.physicalSize)+"%")},t.prototype.shouldSerialize=function(e){return!0},Object.defineProperty(t.prototype,"separatorOrientation",{get:function(){return p.Orientation.Vertical},enumerable:!1,configurable:!0}),t.prototype.getJsonTypeName=function(){return"Column"},Object.defineProperty(t.prototype,"hasVisibleSeparator",{get:function(){return!!(this.parent&&this.parent instanceof Pe)&&void 0!==this.separatorElement&&!this.parent.isLeftMostElement(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t.widthProperty=new m.CustomProperty(m.Versions.v1_0,"width",(function(e,t,i,n){var r=t.defaultValue,o=i[t.name],s=!1;if("number"!=typeof o||isNaN(o))if("auto"===o||"stretch"===o)r=o;else if("string"==typeof o)try{(r=c.SizeAndUnit.parse(o)).unit===p.SizeUnit.Pixel&&t.targetVersion.compareTo(n.targetVersion)>0&&(s=!0)}catch(e){s=!0}else s=!0;else r=new c.SizeAndUnit(o,p.SizeUnit.Weight);return s&&(n.logParseEvent(e,p.ValidationEvent.InvalidPropertyValue,y.Strings.errors.invalidColumnWidth(o)),r="auto"),r}),(function(e,t,i,n,r){n instanceof c.SizeAndUnit?n.unit===p.SizeUnit.Pixel?r.serializeValue(i,"width",n.physicalSize+"px"):r.serializeNumber(i,"width",n.physicalSize):r.serializeValue(i,"width",n)}),"stretch"),o([(0,m.property)(t.widthProperty)],t.prototype,"width",void 0),t}(Ee);t.Column=xe;var Pe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._columns=[],t}return r(t,e),t.prototype.createColumnInstance=function(e,t){return t.parseCardObject(this,e,[],!this.isDesignMode(),(function(e){return e&&"Column"!==e?void 0:new xe}),(function(e,i){t.logParseEvent(void 0,p.ValidationEvent.ElementTypeNotAllowed,y.Strings.errors.elementTypeNotAllowed(e))}))},t.prototype.internalRender=function(){if(this._renderedColumns=[],this._columns.length>0){var e=this.hostConfig,t=document.createElement("div");switch(t.className=e.makeCssClassName("ac-columnSet"),t.style.display="flex",c.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight="-webkit-min-content"),this.getEffectiveHorizontalAlignment()){case p.HorizontalAlignment.Center:t.style.justifyContent="center";break;case p.HorizontalAlignment.Right:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}for(var i=0,n=0,r=this._columns;n0){var l=100/i*a.width.physicalSize;a._computedWeight=l}var d=a.render();d&&(this._renderedColumns.length>0&&a.separatorElement&&(a.separatorElement.style.flex="0 0 auto",u.appendChild(t,a.separatorElement)),u.appendChild(t,d),this._renderedColumns.push(a))}return this._renderedColumns.length>0?t:void 0}},t.prototype.truncateOverflow=function(e){for(var t=0,i=this._columns;t0)for(var e=0,t=this._columns;e0)for(var e=0,t=this._columns;e0?this._renderedColumns[0]:void 0},t.prototype.getLastVisibleRenderedItem=function(){return this.renderedElement&&this._renderedColumns&&this._renderedColumns.length>0?this._renderedColumns[this._renderedColumns.length-1]:void 0},t.prototype.getColumnAt=function(e){return this._columns[e]},t.prototype.getItemAt=function(e){return this.getColumnAt(e)},t.prototype.getJsonTypeName=function(){return"ColumnSet"},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var i=0,n=0,r=0,o=this._columns;r0&&n>0&&t.addFailure(this,p.ValidationEvent.Hint,y.Strings.hints.dontUseWeightedAndStrecthedColumnsInSameSet())},t.prototype.addColumn=function(e){if(e.parent)throw new Error(y.Strings.errors.columnAlreadyBelongsToAnotherSet());this._columns.push(e),e.setParent(this)},t.prototype.removeItem=function(e){if(e instanceof xe){var t=this._columns.indexOf(e);if(t>=0)return this._columns.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},t.prototype.indexOf=function(e){return e instanceof xe?this._columns.indexOf(e):-1},t.prototype.isLeftMostElement=function(e){return 0===this._columns.indexOf(e)},t.prototype.isRightMostElement=function(e){return this._columns.indexOf(e)===this._columns.length-1},t.prototype.isTopElement=function(e){return this._columns.indexOf(e)>=0},t.prototype.isBottomElement=function(e){return this._columns.indexOf(e)>=0},t.prototype.getActionById=function(e){for(var t=void 0,i=0,n=this._columns;i0?t:void 0}},t.prototype.getHasExpandedAction=function(){return 0!==this.renderedActionCount&&(1===this.renderedActionCount?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction)},Object.defineProperty(t.prototype,"renderedActionCount",{get:function(){return this._actionCollection.renderedActionCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderIfEmpty",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this._actionCollection.releaseDOMResources()},t.prototype.getActionCount=function(){return this._actionCollection.getActionCount()},t.prototype.getActionAt=function(t){return t>=0&&t=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.CardObject=t.ValidationResults=void 0;var s=i(10),a=i(653),l=i(764),p=i(233),c=i(475),u=function(){function e(){this.allIds={},this.validationEvents=[]}return e.prototype.addFailure=function(e,t,i){this.validationEvents.push({phase:s.ValidationPhase.Validation,source:e,event:t,message:i})},e}();t.ValidationResults=u;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._shouldFallback=!1,t}return r(t,e),t.prototype.getSchemaKey=function(){return this.getJsonTypeName()},Object.defineProperty(t.prototype,"requires",{get:function(){return this.getValue(t.requiresProperty)},enumerable:!1,configurable:!0}),t.prototype.contains=function(e){return!!this._renderedElement&&this._renderedElement.contains(e)},t.prototype.preProcessPropertyValue=function(e,t){var i=void 0===t?this.getValue(e):t;if(l.GlobalSettings.allowPreProcessingPropertyValues){for(var n=this;n&&!n.onPreProcessPropertyValue;)n=n.parent;if(n&&n.onPreProcessPropertyValue)return n.onPreProcessPropertyValue(this,e,i)}return i},t.prototype.setParent=function(e){this._parent=e},t.prototype.setShouldFallback=function(e){this._shouldFallback=e},t.prototype.shouldFallback=function(){return this._shouldFallback||!this.requires.areAllMet(this.hostConfig.hostCapabilities)},t.prototype.getRootObject=function(){for(var e=this;e.parent;)e=e.parent;return e},t.prototype.internalValidateProperties=function(e){this.id&&(e.allIds.hasOwnProperty(this.id)?(1===e.allIds[this.id]&&e.addFailure(this,s.ValidationEvent.DuplicateId,a.Strings.errors.duplicateId(this.id)),e.allIds[this.id]+=1):e.allIds[this.id]=1)},t.prototype.validateProperties=function(){var e=new u;return this.internalValidateProperties(e),e},t.prototype.findDOMNodeOwner=function(e){return this.contains(e)?this:void 0},t.prototype.releaseDOMResources=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedElement",{get:function(){return this._renderedElement},enumerable:!1,configurable:!0}),t.typeNameProperty=new c.StringProperty(c.Versions.v1_0,"type",void 0,void 0,void 0,(function(e){return e.getJsonTypeName()})),t.idProperty=new c.StringProperty(c.Versions.v1_0,"id"),t.requiresProperty=new c.SerializableObjectProperty(c.Versions.v1_2,"requires",p.HostCapabilities,!1,new p.HostCapabilities),o([(0,c.property)(t.idProperty)],t.prototype,"id",void 0),o([(0,c.property)(t.requiresProperty)],t.prototype,"requires",null),t}(c.SerializableObject);t.CardObject=d},343:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},s=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r0&&0<=e&&e=0)return this._pages.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},t.prototype.getFirstVisibleRenderedItem=function(){var e;return this.renderedElement&&(null===(e=this._renderedPages)||void 0===e?void 0:e.length)>0?this._renderedPages[0]:void 0},t.prototype.getLastVisibleRenderedItem=function(){var e;return this.renderedElement&&(null===(e=this._renderedPages)||void 0===e?void 0:e.length)>0?this._renderedPages[this._renderedPages.length-1]:void 0},Object.defineProperty(t.prototype,"currentPageId",{get:function(){var e,t;if(null===(t=null===(e=this._carousel)||void 0===e?void 0:e.slides)||void 0===t?void 0:t.length)return this._carousel.slides[this._carousel.activeIndex].id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPageIndex",{get:function(){var e;return null===(e=this._carousel)||void 0===e?void 0:e.realIndex},enumerable:!1,configurable:!0}),t.prototype.internalParse=function(t,i){e.prototype.internalParse.call(this,t,i),this._pages=[];var n=t.pages;if(Array.isArray(n))for(var r=0,o=n;rthis.hostConfig.carousel.maxCarouselPages&&console.warn(d.Strings.errors.tooManyCarouselPages),this._pages.length>0)for(var u=0;u0?t:void 0}},t.prototype.applyRTL=function(t){e.prototype.applyRTL.call(this,this._carouselPageContainer),this.rtl&&t.classList.add(this.hostConfig.makeCssClassName("ac-carousel-pagination-rtl"))},t.prototype.validateOrientationProperties=function(){this.carouselHeight||(this.carouselOrientation=l.Orientation.Horizontal)},t.prototype.updateCssForHorizontalCarousel=function(e,t){e.classList.add(this.hostConfig.makeCssClassName("ac-carousel-left")),t.classList.add(this.hostConfig.makeCssClassName("ac-carousel-right"))},t.prototype.updateCssForVerticalCarousel=function(e,t,i){this._containerForAdorners.classList.add(this.hostConfig.makeCssClassName("ac-carousel-container-vertical")),e.classList.add(this.hostConfig.makeCssClassName("ac-carousel-navigation-vertical")),t.classList.add(this.hostConfig.makeCssClassName("ac-carousel-up")),i.classList.add(this.hostConfig.makeCssClassName("ac-carousel-down"))},t.prototype.initializeCarouselControl=function(e,t,i,n,r){var o,s,a,p=this,c=void 0!==r&&r?i:t,u=void 0!==r&&r?t:i,f=l.Orientation.Horizontal===this.carouselOrientation?u:i,m=l.Orientation.Horizontal===this.carouselOrientation?c:t,g={loop:!this.isDesignMode()&&this.carouselLoop,modules:[h.Navigation,h.Pagination,h.Scrollbar,h.A11y,h.History,h.Keyboard],pagination:{el:n,clickable:!0},navigation:{prevEl:f,nextEl:m},a11y:{enabled:!0},keyboard:{enabled:!1,onlyInViewport:!0},direction:this.carouselOrientation===l.Orientation.Horizontal?"horizontal":"vertical",resizeObserver:!1,initialSlide:this._currentIndex};this.timer&&!this.isDesignMode()&&(null===(o=g.modules)||void 0===o||o.push(h.Autoplay),g.autoplay={delay:this.timer,pauseOnMouseEnter:!0});var y=new h.Swiper(e,g);e.addEventListener("mouseenter",(function(e){var t;null===(t=y.autoplay)||void 0===t||t.stop()})),e.addEventListener("mouseleave",(function(e){var t;null===(t=y.autoplay)||void 0===t||t.start()})),y.on("navigationNext",(function(e){p.raiseCarouselEvent(l.CarouselInteractionEvent.NavigationNext)})),y.on("navigationPrev",(function(e){p.raiseCarouselEvent(l.CarouselInteractionEvent.NavigationPrevious)})),y.on("slideChangeTransitionEnd",(function(e){p.currentIndex=e.realIndex,p.raiseCarouselEvent(l.CarouselInteractionEvent.Pagination)})),y.on("autoplay",(function(){p.raiseCarouselEvent(l.CarouselInteractionEvent.Autoplay)})),y.on("paginationRender",(function(e,t){e.pagination.bullets.forEach((function(t,i){t.addEventListener("keypress",(function(t){"Enter"==t.key&&(t.preventDefault(),e.slideTo(i+1))}))}))})),y.on("destroy",(function(){p.destroyResizeObserver()})),i.title=null!==(s=i.ariaLabel)&&void 0!==s?s:d.Strings.defaults.carouselNavigationPreviousTooltip(),t.title=null!==(a=t.ariaLabel)&&void 0!==a?a:d.Strings.defaults.carouselNavigationNextTooltip(),this._carousel=y,this.createResizeObserver()},t.prototype.createCarouselPageInstance=function(e,t){return t.parseCardObject(this,e,this.forbiddenChildElements(),!this.isDesignMode(),(function(e){return e&&"CarouselPage"!==e?void 0:new g}),(function(e,i){t.logParseEvent(void 0,u.ValidationEvent.ElementTypeNotAllowed,d.Strings.errors.elementTypeNotAllowed(e))}))},t.prototype.slideTo=function(e){var t;null===(t=this._carousel)||void 0===t||t.slideTo(e)},Object.defineProperty(t.prototype,"carouselPageContainer",{get:function(){return this._carouselPageContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this._currentIndex},set:function(e){this._currentIndex=e},enumerable:!1,configurable:!0}),t.prototype.createCarouselEvent=function(e){var t;return null!=this.currentPageIndex&&(t=this.getItemAt(this.currentPageIndex).id),new v(e,this.id,t,this.currentPageIndex)},t.prototype.raiseCarouselEvent=function(e){var t=this.parent?this.parent.getRootElement():void 0,i=t&&t.onCarouselEvent?t.onCarouselEvent:a.AdaptiveCard.onCarouselEvent;i&&e==l.CarouselInteractionEvent.Pagination&&i(this.createCarouselEvent(this.previousEventType)),this.previousEventType=e},t.prototype.createResizeObserver=function(){var e,t=this;this.checkIfCarouselInValidStateForResizeEvent()&&(this._observer=new ResizeObserver((function(e){var i,n,r,o,s=null===(i=t._carousel)||void 0===i?void 0:i.width,a=null===(n=t._carousel)||void 0===n?void 0:n.height,l=s,p=a;e.forEach((function(e){var i,n=e.contentBoxSize,r=e.contentRect,o=e.target;o&&o!==(null===(i=t._carousel)||void 0===i?void 0:i.el)||(l=r?r.width:(n[0]||n).inlineSize,p=r?r.height:(n[0]||n).blockSize)})),l===s&&p===a||t.checkIfCarouselInValidStateForResizeEvent()&&(null===(r=t._carousel)||void 0===r||r.emit("beforeResize"),null===(o=t._carousel)||void 0===o||o.emit("resize"))})),this._observer.observe(null===(e=this._carousel)||void 0===e?void 0:e.el))},t.prototype.destroyResizeObserver=function(){var e;this._observer&&this._observer.unobserve&&(null===(e=this._carousel)||void 0===e?void 0:e.el)&&(this._observer.unobserve(this._carousel.el),this._observer=null)},t.prototype.checkIfCarouselInValidStateForResizeEvent=function(){return this._carousel&&!this._carousel.destroyed},t.timerProperty=new p.NumProperty(p.Versions.v1_6,"timer",void 0),t.initialPageProperty=new p.NumProperty(p.Versions.v1_6,"initialPage",0),t.loopProperty=new p.BoolProperty(p.Versions.v1_6,"loop",!0),t.orientationProperty=new p.EnumProperty(p.Versions.v1_6,"orientation",l.Orientation,l.Orientation.Horizontal),t.carouselHeightProperty=new p.PixelSizeProperty(p.Versions.v1_6,"heightInPixels"),o([(0,p.property)(t.timerProperty)],t.prototype,"timer",null),o([(0,p.property)(t.initialPageProperty)],t.prototype,"initialPageIndex",null),o([(0,p.property)(t.loopProperty)],t.prototype,"carouselLoop",void 0),o([(0,p.property)(t.orientationProperty)],t.prototype,"carouselOrientation",void 0),o([(0,p.property)(t.carouselHeightProperty)],t.prototype,"carouselHeight",void 0),t}(a.Container);t.Carousel=y;var v=function(e,t,i,n){this.type=e,this.carouselId=t,this.activeCarouselPageId=i,this.activeCarouselPageIndex=n};t.CarouselEvent=v,c.GlobalRegistry.defaultElements.register("Carousel",y,p.Versions.v1_6)},213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelAdapter=void 0;t.ChannelAdapter=function(){}},846:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;var i=function(){function e(){this._items=[]}return e.prototype.get=function(e){return this._items[e]},e.prototype.add=function(e){this._items.push(e),this.onItemAdded&&this.onItemAdded(e)},e.prototype.remove=function(e){var t=this._items.indexOf(e);t>=0&&(this._items=this._items.splice(t,1),this.onItemRemoved&&this.onItemRemoved(e))},e.prototype.indexOf=function(e){return this._items.indexOf(e)},Object.defineProperty(e.prototype,"length",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),e}();t.Collection=i},994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Constants=void 0;var i=function(){function e(){}return e.keys={tab:"Tab",enter:"Enter",escape:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",delete:"Delete"},e}();t.Constants=i},441:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(57),t),r(i(467),t)},57:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MenuItem=void 0;var n=i(699),r=i(994),o=function(){function e(e,t){this._isEnabled=!0,this.key=e,this._value=t}return e.prototype.click=function(){this.isEnabled&&this.onClick&&this.onClick(this)},e.prototype.updateCssClasses=function(){if(this._element){var e=this._hostConfig?this._hostConfig:n.defaultHostConfig;this._element.className=e.makeCssClassName("ac-ctrl"),this._element.classList.add(e.makeCssClassName(this.isEnabled?"ac-ctrl-dropdown-item":"ac-ctrl-dropdown-item-disabled")),this.isEnabled||this._element.classList.add(e.makeCssClassName("ac-disabled"))}},e.prototype.toString=function(){return this.value},e.prototype.render=function(e){var t=this;return this._hostConfig=e,this._element||(this._element=document.createElement("span"),this._element.innerText=this.value,this._element.setAttribute("role","menuitem"),this.isEnabled||this._element.setAttribute("aria-disabled","true"),this._element.setAttribute("aria-current","false"),this._element.onmouseup=function(e){t.click()},this._element.onkeydown=function(e){e.key===r.Constants.keys.enter&&(e.cancelBubble=!0,t.click())},this.updateCssClasses()),this._element},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this._element&&(this._element.innerText=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._isEnabled},set:function(e){this._isEnabled!==e&&(this._isEnabled=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),e}();t.MenuItem=o},866:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopupControl=void 0;var n=i(994),r=i(755),o=i(699),s=function(){function e(){this._isOpen=!1}return e.prototype.keyDown=function(e){e.key===n.Constants.keys.escape&&this.closePopup(!0)},e.prototype.render=function(e){var t=this,i=document.createElement("div");return i.tabIndex=0,i.className=this.hostConfig.makeCssClassName("ac-ctrl","ac-ctrl-popup-container"),i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.onkeydown=function(e){return t.keyDown(e),!e.cancelBubble},i.appendChild(this.renderContent()),i},e.prototype.focus=function(){this._popupElement&&this._popupElement.firstElementChild.focus()},e.prototype.popup=function(e){var t,i,n,o,s,a=this;if(!this._isOpen){this._overlayElement=document.createElement("div"),this._overlayElement.className=this.hostConfig.makeCssClassName("ac-ctrl-overlay"),this._overlayElement.tabIndex=0,this._overlayElement.style.width=document.documentElement.scrollWidth+"px",this._overlayElement.style.height=document.documentElement.scrollHeight+"px",this._overlayElement.onfocus=function(e){a.closePopup(!0)},document.body.appendChild(this._overlayElement);var l=e.getBoundingClientRect();this._popupElement=this.render(l),(t=this._popupElement.classList).remove.apply(t,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideLeftToRight","ac-ctrl-slideRightToLeft","ac-ctrl-slideTopToBottom","ac-ctrl-slideRightToLeft")),window.addEventListener("resize",(function(e){a.closePopup(!0)}));var p=e.getAttribute("aria-label");p&&this._popupElement.setAttribute("aria-label",p),this._overlayElement.appendChild(this._popupElement);var c,u=this._popupElement.getBoundingClientRect(),d=window.innerHeight-l.bottom,h=l.top,f=window.innerWidth-l.right,m=l.left,g=l.left+r.getScrollX();if(h=u.width?(g=r.getScrollX()+l.right,(i=this._popupElement.classList).add.apply(i,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideLeftToRight"))):(g=r.getScrollX()+l.left-u.width,(n=this._popupElement.classList).add.apply(n,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideRightToLeft")))}else d>=u.height?(c=r.getScrollY()+l.bottom,(o=this._popupElement.classList).add.apply(o,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideTopToBottom"))):(c=r.getScrollY()+l.top-u.height,(s=this._popupElement.classList).add.apply(s,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideBottomToTop"))),f=this._renderedItems.length)&&(i=0),this.selectedIndex=i,t.cancelBubble=!0}},Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){e>=0&&e{Object.defineProperty(t,"__esModule",{value:!0}),t.ActionRole=t.CarouselInteractionEvent=t.LogLevel=t.RefreshMode=t.TypeErrorType=t.ContainerFitStatus=t.ValidationEvent=t.ValidationPhase=t.InputLabelPosition=t.InputTextStyle=t.ActionIconPlacement=t.FillMode=t.Orientation=t.ShowCardActionMode=t.ImageStyle=t.ActionAlignment=t.VerticalAlignment=t.HorizontalAlignment=t.TextColor=t.Spacing=t.FontType=t.TextWeight=t.InputStyle=t.TextSize=t.SizeUnit=t.ImageSetPresentationStyle=t.ImageSize=t.Size=t.ActionMode=t.ActionStyle=t.ContainerStyle=void 0;var i=function(){function e(){}return e.Default="default",e.Emphasis="emphasis",e.Accent="accent",e.Good="good",e.Attention="attention",e.Warning="warning",e}();t.ContainerStyle=i;var n=function(){function e(){}return e.Default="default",e.Positive="positive",e.Destructive="destructive",e}();t.ActionStyle=n;var r,o,s,a,l,p,c,u,d,h,f,m,g,y,v,b,C,w,S,E,x,P,_,A,T,I,O,M,V=function(){function e(){}return e.Primary="primary",e.Secondary="secondary",e}();t.ActionMode=V,(M=t.Size||(t.Size={}))[M.Auto=0]="Auto",M[M.Stretch=1]="Stretch",M[M.Small=2]="Small",M[M.Medium=3]="Medium",M[M.Large=4]="Large",(O=t.ImageSize||(t.ImageSize={}))[O.Small=0]="Small",O[O.Medium=1]="Medium",O[O.Large=2]="Large",(I=t.ImageSetPresentationStyle||(t.ImageSetPresentationStyle={}))[I.Default=0]="Default",I[I.Stacked=1]="Stacked",(T=t.SizeUnit||(t.SizeUnit={}))[T.Weight=0]="Weight",T[T.Pixel=1]="Pixel",(A=t.TextSize||(t.TextSize={}))[A.Small=0]="Small",A[A.Default=1]="Default",A[A.Medium=2]="Medium",A[A.Large=3]="Large",A[A.ExtraLarge=4]="ExtraLarge",(_=t.InputStyle||(t.InputStyle={}))[_.RevealOnHover=0]="RevealOnHover",_[_.Default=1]="Default",(P=t.TextWeight||(t.TextWeight={}))[P.Lighter=0]="Lighter",P[P.Default=1]="Default",P[P.Bolder=2]="Bolder",(x=t.FontType||(t.FontType={}))[x.Default=0]="Default",x[x.Monospace=1]="Monospace",(E=t.Spacing||(t.Spacing={}))[E.None=0]="None",E[E.Small=1]="Small",E[E.Default=2]="Default",E[E.Medium=3]="Medium",E[E.Large=4]="Large",E[E.ExtraLarge=5]="ExtraLarge",E[E.Padding=6]="Padding",(S=t.TextColor||(t.TextColor={}))[S.Default=0]="Default",S[S.Dark=1]="Dark",S[S.Light=2]="Light",S[S.Accent=3]="Accent",S[S.Good=4]="Good",S[S.Warning=5]="Warning",S[S.Attention=6]="Attention",(w=t.HorizontalAlignment||(t.HorizontalAlignment={}))[w.Left=0]="Left",w[w.Center=1]="Center",w[w.Right=2]="Right",(C=t.VerticalAlignment||(t.VerticalAlignment={}))[C.Top=0]="Top",C[C.Center=1]="Center",C[C.Bottom=2]="Bottom",(b=t.ActionAlignment||(t.ActionAlignment={}))[b.Left=0]="Left",b[b.Center=1]="Center",b[b.Right=2]="Right",b[b.Stretch=3]="Stretch",(v=t.ImageStyle||(t.ImageStyle={}))[v.Default=0]="Default",v[v.Person=1]="Person",(y=t.ShowCardActionMode||(t.ShowCardActionMode={}))[y.Inline=0]="Inline",y[y.Popup=1]="Popup",(g=t.Orientation||(t.Orientation={}))[g.Horizontal=0]="Horizontal",g[g.Vertical=1]="Vertical",(m=t.FillMode||(t.FillMode={}))[m.Cover=0]="Cover",m[m.RepeatHorizontally=1]="RepeatHorizontally",m[m.RepeatVertically=2]="RepeatVertically",m[m.Repeat=3]="Repeat",(f=t.ActionIconPlacement||(t.ActionIconPlacement={}))[f.LeftOfTitle=0]="LeftOfTitle",f[f.AboveTitle=1]="AboveTitle",(h=t.InputTextStyle||(t.InputTextStyle={}))[h.Text=0]="Text",h[h.Tel=1]="Tel",h[h.Url=2]="Url",h[h.Email=3]="Email",h[h.Password=4]="Password",(d=t.InputLabelPosition||(t.InputLabelPosition={}))[d.Inline=0]="Inline",d[d.Above=1]="Above",(u=t.ValidationPhase||(t.ValidationPhase={}))[u.Parse=0]="Parse",u[u.ToJSON=1]="ToJSON",u[u.Validation=2]="Validation",(c=t.ValidationEvent||(t.ValidationEvent={}))[c.Hint=0]="Hint",c[c.ActionTypeNotAllowed=1]="ActionTypeNotAllowed",c[c.CollectionCantBeEmpty=2]="CollectionCantBeEmpty",c[c.Deprecated=3]="Deprecated",c[c.ElementTypeNotAllowed=4]="ElementTypeNotAllowed",c[c.InteractivityNotAllowed=5]="InteractivityNotAllowed",c[c.InvalidPropertyValue=6]="InvalidPropertyValue",c[c.MissingCardType=7]="MissingCardType",c[c.PropertyCantBeNull=8]="PropertyCantBeNull",c[c.TooManyActions=9]="TooManyActions",c[c.UnknownActionType=10]="UnknownActionType",c[c.UnknownElementType=11]="UnknownElementType",c[c.UnsupportedCardVersion=12]="UnsupportedCardVersion",c[c.DuplicateId=13]="DuplicateId",c[c.UnsupportedProperty=14]="UnsupportedProperty",c[c.RequiredInputsShouldHaveLabel=15]="RequiredInputsShouldHaveLabel",c[c.RequiredInputsShouldHaveErrorMessage=16]="RequiredInputsShouldHaveErrorMessage",c[c.Other=17]="Other",(p=t.ContainerFitStatus||(t.ContainerFitStatus={}))[p.FullyInContainer=0]="FullyInContainer",p[p.Overflowing=1]="Overflowing",p[p.FullyOutOfContainer=2]="FullyOutOfContainer",(l=t.TypeErrorType||(t.TypeErrorType={}))[l.UnknownType=0]="UnknownType",l[l.ForbiddenType=1]="ForbiddenType",(a=t.RefreshMode||(t.RefreshMode={}))[a.Disabled=0]="Disabled",a[a.Manual=1]="Manual",a[a.Automatic=2]="Automatic",(s=t.LogLevel||(t.LogLevel={}))[s.Info=0]="Info",s[s.Warning=1]="Warning",s[s.Error=2]="Error",(o=t.CarouselInteractionEvent||(t.CarouselInteractionEvent={}))[o.NavigationNext=0]="NavigationNext",o[o.NavigationPrevious=1]="NavigationPrevious",o[o.Pagination=2]="Pagination",o[o.Autoplay=3]="Autoplay",(r=t.ActionRole||(t.ActionRole={}))[r.Button=0]="Button",r[r.Link=1]="Link",r[r.Tab=2]="Tab",r[r.Menu=3]="Menu",r[r.MenuItem=4]="MenuItem"},233:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0}),t.HostCapabilities=void 0;var o=i(475),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._capabilities={},t}return r(t,e),t.prototype.getSchemaKey=function(){return"HostCapabilities"},t.prototype.internalParse=function(t,i){if(e.prototype.internalParse.call(this,t,i),t)for(var n in t){var r=t[n];if("string"==typeof r)if("*"===r)this.addCapability(n,"*");else{var s=o.Version.parse(r,i);(null==s?void 0:s.isValid)&&this.addCapability(n,s)}}},t.prototype.internalToJSON=function(t,i){for(var n in e.prototype.internalToJSON.call(this,t,i),this._capabilities)t[n]=this._capabilities[n]},t.prototype.addCapability=function(e,t){this._capabilities[e]=t},t.prototype.removeCapability=function(e){delete this._capabilities[e]},t.prototype.clear=function(){this._capabilities={}},t.prototype.hasCapability=function(e,t){return!!this._capabilities.hasOwnProperty(e)&&("*"===t||"*"===this._capabilities[e]||t.compareTo(this._capabilities[e])<=0)},t.prototype.areAllMet=function(e){for(var t in this._capabilities)if(!e.hasCapability(t,this._capabilities[t]))return!1;return!0},t}(o.SerializableObject);t.HostCapabilities=s},699:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHostConfig=t.HostConfig=t.CarouselConfig=t.FontTypeSet=t.FontTypeDefinition=t.ContainerStyleSet=t.ContainerStyleDefinition=t.ColorSetDefinition=t.ActionsConfig=t.ShowCardActionConfig=t.FactSetConfig=t.FactTitleDefinition=t.FactTextDefinition=t.InputConfig=t.InputLabelConfig=t.RequiredInputLabelTextDefinition=t.TextBlockConfig=t.TextStyleSet=t.TextStyleDefinition=t.BaseTextDefinition=t.TableConfig=t.MediaConfig=t.ImageSetConfig=t.AdaptiveCardConfig=t.TextColorDefinition=t.ColorDefinition=void 0;var o=i(10),s=i(755),a=i(764),l=i(233);function p(e,t,i){if("string"==typeof t){var n=s.parseEnum(e,t,i);return void 0!==n?n:i}return"number"==typeof t?t:i}var c=function(){function e(e,t){this.default="#000000",this.subtle="#666666",e&&(this.default=e),t&&(this.subtle=t)}return e.prototype.parse=function(e){e&&(this.default=e.default||this.default,this.subtle=e.subtle||this.subtle)},e}();t.ColorDefinition=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.highlightColors=new c("#22000000","#11000000"),t}return r(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&this.highlightColors.parse(t.highlightColors)},t}(c);t.TextColorDefinition=u;var d=function(e){this.allowCustomStyle=!1,e&&(this.allowCustomStyle=e.allowCustomStyle||this.allowCustomStyle)};t.AdaptiveCardConfig=d;var h=function(){function e(e){this.imageSize=o.Size.Medium,this.maxImageHeight=100,e&&(this.imageSize=null!=e.imageSize?e.imageSize:this.imageSize,this.maxImageHeight=s.parseNumber(e.maxImageHeight,100))}return e.prototype.toJSON=function(){return{imageSize:o.Size[this.imageSize],maxImageHeight:this.maxImageHeight}},e}();t.ImageSetConfig=h;var f=function(){function e(e){this.allowInlinePlayback=!0,e&&(this.defaultPoster=e.defaultPoster,this.allowInlinePlayback=e.allowInlinePlayback||this.allowInlinePlayback)}return e.prototype.toJSON=function(){return{defaultPoster:this.defaultPoster,allowInlinePlayback:this.allowInlinePlayback}},e}();t.MediaConfig=f;var m=function(){function e(e){this.cellSpacing=8,e&&(this.cellSpacing=e.cellSpacing&&"number"==typeof e.cellSpacing?e.cellSpacing:this.cellSpacing)}return e.prototype.toJSON=function(){return{cellSpacing:this.cellSpacing}},e}();t.TableConfig=m;var g=function(){function e(e){this.size=o.TextSize.Default,this.color=o.TextColor.Default,this.isSubtle=!1,this.weight=o.TextWeight.Default,this.parse(e)}return e.prototype.parse=function(e){e&&(this.size=p(o.TextSize,e.size,this.size),this.color=p(o.TextColor,e.color,this.color),this.isSubtle=void 0!==e.isSubtle&&"boolean"==typeof e.isSubtle?e.isSubtle:this.isSubtle,this.weight=p(o.TextWeight,e.weight,this.getDefaultWeight()))},e.prototype.getDefaultWeight=function(){return o.TextWeight.Default},e.prototype.toJSON=function(){return{size:o.TextSize[this.size],color:o.TextColor[this.color],isSubtle:this.isSubtle,weight:o.TextWeight[this.weight]}},e}();t.BaseTextDefinition=g;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fontType=o.FontType.Default,t}return r(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.fontType=p(o.FontType,t.fontType,this.fontType))},t}(g);t.TextStyleDefinition=y;var v=function(){function e(e){this.default=new y,this.heading=new y({size:"Large",weight:"Bolder"}),this.columnHeader=new y({weight:"Bolder"}),e&&(this.heading.parse(e.heading),this.columnHeader.parse(e.columnHeader))}return e.prototype.getStyleByName=function(e){switch(e.toLowerCase()){case"heading":return this.heading;case"columnHeader":return this.columnHeader;default:return this.default}},e}();t.TextStyleSet=v;var b=function(e){e&&(this.headingLevel=s.parseNumber(e.headingLevel))};t.TextBlockConfig=b;var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.suffix=" *",t.suffixColor=o.TextColor.Attention,t}return r(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.suffix=t.suffix||this.suffix,this.suffixColor=p(o.TextColor,t.suffixColor,this.suffixColor))},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.suffix=this.suffix,t.suffixColor=o.TextColor[this.suffixColor],t},t}(g);t.RequiredInputLabelTextDefinition=C;var w=function(e){this.inputSpacing=o.Spacing.Small,this.width=30,this.requiredInputs=new C,this.optionalInputs=new g,e&&(this.inputSpacing=p(o.Spacing,e.inputSpacing,this.inputSpacing),this.requiredInputs=new C(e.requiredInputs),this.optionalInputs=new g(e.optionalInputs),this.width=null!=e.width?e.width:this.width)};t.InputLabelConfig=w;var S=function(e){this.label=new w,this.errorMessage=new g({color:o.TextColor.Attention}),this.debounceTimeInMilliSeconds=0,this.allowDynamicallyFilteredChoiceSet=!0,this.allowRevealOnHoverStyle=!1,e&&(this.label=new w(e.label),this.errorMessage=new g(e.errorMessage),this.allowRevealOnHoverStyle=e.allowRevealOnHoverStyle||this.allowRevealOnHoverStyle,this.allowDynamicallyFilteredChoiceSet=e.allowDynamicallyFilteredChoiceSet||this.allowDynamicallyFilteredChoiceSet,this.debounceTimeInMilliSeconds=e.debounceTimeInMilliSeconds||this.debounceTimeInMilliSeconds)};t.InputConfig=S;var E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.wrap=!0,t}return r(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.wrap=null!=t.wrap?t.wrap:this.wrap)},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.wrap=this.wrap,t},t}(g);t.FactTextDefinition=E;var x=function(e){function t(t){var i=e.call(this,t)||this;return i.maxWidth=150,i.weight=o.TextWeight.Bolder,t&&(i.maxWidth=null!=t.maxWidth?t.maxWidth:i.maxWidth,i.weight=p(o.TextWeight,t.weight,o.TextWeight.Bolder)),i}return r(t,e),t.prototype.getDefaultWeight=function(){return o.TextWeight.Bolder},t}(E);t.FactTitleDefinition=x;var P=function(e){this.title=new x,this.value=new E,this.spacing=10,e&&(this.title=new x(e.title),this.value=new E(e.value),this.spacing=e.spacing&&null!=e.spacing?e.spacing&&e.spacing:this.spacing)};t.FactSetConfig=P;var _=function(){function e(e){this.actionMode=o.ShowCardActionMode.Inline,this.inlineTopMargin=16,this.style=o.ContainerStyle.Emphasis,e&&(this.actionMode=p(o.ShowCardActionMode,e.actionMode,o.ShowCardActionMode.Inline),this.inlineTopMargin=null!=e.inlineTopMargin?e.inlineTopMargin:this.inlineTopMargin,this.style=e.style&&"string"==typeof e.style?e.style:o.ContainerStyle.Emphasis)}return e.prototype.toJSON=function(){return{actionMode:o.ShowCardActionMode[this.actionMode],inlineTopMargin:this.inlineTopMargin,style:this.style}},e}();t.ShowCardActionConfig=_;var A=function(){function e(e){if(this.maxActions=5,this.spacing=o.Spacing.Default,this.buttonSpacing=20,this.showCard=new _,this.preExpandSingleShowCardAction=!1,this.actionsOrientation=o.Orientation.Horizontal,this.actionAlignment=o.ActionAlignment.Left,this.iconPlacement=o.ActionIconPlacement.LeftOfTitle,this.allowTitleToWrap=!1,this.iconSize=16,e){this.maxActions=null!=e.maxActions?e.maxActions:this.maxActions,this.spacing=p(o.Spacing,e.spacing&&e.spacing,o.Spacing.Default),this.buttonSpacing=null!=e.buttonSpacing?e.buttonSpacing:this.buttonSpacing,this.showCard=new _(e.showCard),this.preExpandSingleShowCardAction=s.parseBool(e.preExpandSingleShowCardAction,!1),this.actionsOrientation=p(o.Orientation,e.actionsOrientation,o.Orientation.Horizontal),this.actionAlignment=p(o.ActionAlignment,e.actionAlignment,o.ActionAlignment.Left),this.iconPlacement=p(o.ActionIconPlacement,e.iconPlacement,o.ActionIconPlacement.LeftOfTitle),this.allowTitleToWrap=null!=e.allowTitleToWrap?e.allowTitleToWrap:this.allowTitleToWrap;try{var t=a.SizeAndUnit.parse(e.iconSize);t.unit===o.SizeUnit.Pixel&&(this.iconSize=t.physicalSize)}catch(e){}}}return e.prototype.toJSON=function(){return{maxActions:this.maxActions,spacing:o.Spacing[this.spacing],buttonSpacing:this.buttonSpacing,showCard:this.showCard,preExpandSingleShowCardAction:this.preExpandSingleShowCardAction,actionsOrientation:o.Orientation[this.actionsOrientation],actionAlignment:o.ActionAlignment[this.actionAlignment]}},e}();t.ActionsConfig=A;var T=function(){function e(e){this.default=new u,this.dark=new u,this.light=new u,this.accent=new u,this.good=new u,this.warning=new u,this.attention=new u,this.parse(e)}return e.prototype.parseSingleColor=function(e,t){e&&this[t].parse(e[t])},e.prototype.parse=function(e){e&&(this.parseSingleColor(e,"default"),this.parseSingleColor(e,"dark"),this.parseSingleColor(e,"light"),this.parseSingleColor(e,"accent"),this.parseSingleColor(e,"good"),this.parseSingleColor(e,"warning"),this.parseSingleColor(e,"attention"))},e}();t.ColorSetDefinition=T;var I=function(){function e(e){this.foregroundColors=new T({default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#E69500",subtle:"#DDE69500"},attention:{default:"#CC3300",subtle:"#DDCC3300"}}),this.parse(e)}return e.prototype.parse=function(e){e&&(this.backgroundColor=e.backgroundColor,this.foregroundColors.parse(e.foregroundColors),this.highlightBackgroundColor=e.highlightBackgroundColor,this.highlightForegroundColor=e.highlightForegroundColor,this.borderColor=e.borderColor)},Object.defineProperty(e.prototype,"isBuiltIn",{get:function(){return!1},enumerable:!1,configurable:!0}),e}();t.ContainerStyleDefinition=I;var O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),Object.defineProperty(t.prototype,"isBuiltIn",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(I),M=function(){function e(e){if(this._allStyles={},this._allStyles[o.ContainerStyle.Default]=new O,this._allStyles[o.ContainerStyle.Emphasis]=new O,this._allStyles[o.ContainerStyle.Accent]=new O,this._allStyles[o.ContainerStyle.Good]=new O,this._allStyles[o.ContainerStyle.Attention]=new O,this._allStyles[o.ContainerStyle.Warning]=new O,e){this._allStyles[o.ContainerStyle.Default].parse(e[o.ContainerStyle.Default]),this._allStyles[o.ContainerStyle.Emphasis].parse(e[o.ContainerStyle.Emphasis]),this._allStyles[o.ContainerStyle.Accent].parse(e[o.ContainerStyle.Accent]),this._allStyles[o.ContainerStyle.Good].parse(e[o.ContainerStyle.Good]),this._allStyles[o.ContainerStyle.Attention].parse(e[o.ContainerStyle.Attention]),this._allStyles[o.ContainerStyle.Warning].parse(e[o.ContainerStyle.Warning]);var t=e.customStyles;if(t&&Array.isArray(t))for(var i=0,n=t;i0&&(i.customStyles=t),i},e.prototype.getStyleByName=function(e,t){return e&&this._allStyles.hasOwnProperty(e)?this._allStyles[e]:t||this._allStyles[o.ContainerStyle.Default]},Object.defineProperty(e.prototype,"default",{get:function(){return this._allStyles[o.ContainerStyle.Default]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"emphasis",{get:function(){return this._allStyles[o.ContainerStyle.Emphasis]},enumerable:!1,configurable:!0}),e}();t.ContainerStyleSet=M;var V=function(){function e(e){this.fontFamily="Segoe UI,Segoe,Segoe WP,Helvetica Neue,Helvetica,sans-serif",this.fontSizes={small:12,default:14,medium:17,large:21,extraLarge:26},this.fontWeights={lighter:200,default:400,bolder:600},e&&(this.fontFamily=e)}return e.prototype.parse=function(e){this.fontFamily=e.fontFamily||this.fontFamily,this.fontSizes={small:e.fontSizes&&e.fontSizes.small||this.fontSizes.small,default:e.fontSizes&&e.fontSizes.default||this.fontSizes.default,medium:e.fontSizes&&e.fontSizes.medium||this.fontSizes.medium,large:e.fontSizes&&e.fontSizes.large||this.fontSizes.large,extraLarge:e.fontSizes&&e.fontSizes.extraLarge||this.fontSizes.extraLarge},this.fontWeights={lighter:e.fontWeights&&e.fontWeights.lighter||this.fontWeights.lighter,default:e.fontWeights&&e.fontWeights.default||this.fontWeights.default,bolder:e.fontWeights&&e.fontWeights.bolder||this.fontWeights.bolder}},e.monospace=new e("'Courier New', Courier, monospace"),e}();t.FontTypeDefinition=V;var k=function(){function e(e){this.default=new V,this.monospace=new V("'Courier New', Courier, monospace"),e&&(this.default.parse(e.default),this.monospace.parse(e.monospace))}return e.prototype.getStyleDefinition=function(e){switch(e){case o.FontType.Monospace:return this.monospace;case o.FontType.Default:default:return this.default}},e}();t.FontTypeSet=k;var z=function(){function e(e){this.maxCarouselPages=10,this.minAutoplayDelay=5e3,e&&(this.maxCarouselPages=null!=e.maxCarouselPages?e.maxCarouselPages:this.maxCarouselPages,this.minAutoplayDelay=null!=e.minAutoplayDelay?e.minAutoplayDelay:this.minAutoplayDelay)}return e.prototype.toJSON=function(){return{maxCarouselPages:this.maxCarouselPages,minAutoplayDelay:this.minAutoplayDelay}},e}();t.CarouselConfig=z;var L=function(){function e(e){this.hostCapabilities=new l.HostCapabilities,this.choiceSetInputValueSeparator=",",this.supportsInteractivity=!0,this.spacing={small:3,default:8,medium:20,large:30,extraLarge:40,padding:15},this.separator={lineThickness:1,lineColor:"#EEEEEE"},this.imageSizes={small:40,medium:80,large:160},this.containerStyles=new M,this.inputs=new S,this.actions=new A,this.adaptiveCard=new d,this.imageSet=new h,this.media=new f,this.factSet=new P,this.table=new m,this.textStyles=new v,this.textBlock=new b,this.carousel=new z,this.alwaysAllowBleed=!1,e&&(("string"==typeof e||e instanceof String)&&(e=JSON.parse(e)),this.choiceSetInputValueSeparator=e&&"string"==typeof e.choiceSetInputValueSeparator?e.choiceSetInputValueSeparator:this.choiceSetInputValueSeparator,this.supportsInteractivity=e&&"boolean"==typeof e.supportsInteractivity?e.supportsInteractivity:this.supportsInteractivity,this._legacyFontType=new V,this._legacyFontType.parse(e),e.fontTypes&&(this.fontTypes=new k(e.fontTypes)),e.lineHeights&&(this.lineHeights={small:e.lineHeights.small,default:e.lineHeights.default,medium:e.lineHeights.medium,large:e.lineHeights.large,extraLarge:e.lineHeights.extraLarge}),this.imageSizes={small:e.imageSizes&&e.imageSizes.small||this.imageSizes.small,medium:e.imageSizes&&e.imageSizes.medium||this.imageSizes.medium,large:e.imageSizes&&e.imageSizes.large||this.imageSizes.large},this.containerStyles=new M(e.containerStyles),this.spacing={small:e.spacing&&e.spacing.small||this.spacing.small,default:e.spacing&&e.spacing.default||this.spacing.default,medium:e.spacing&&e.spacing.medium||this.spacing.medium,large:e.spacing&&e.spacing.large||this.spacing.large,extraLarge:e.spacing&&e.spacing.extraLarge||this.spacing.extraLarge,padding:e.spacing&&e.spacing.padding||this.spacing.padding},this.separator={lineThickness:e.separator&&e.separator.lineThickness||this.separator.lineThickness,lineColor:e.separator&&e.separator.lineColor||this.separator.lineColor},this.inputs=new S(e.inputs||this.inputs),this.actions=new A(e.actions||this.actions),this.adaptiveCard=new d(e.adaptiveCard||this.adaptiveCard),this.imageSet=new h(e.imageSet),this.factSet=new P(e.factSet),this.textStyles=new v(e.textStyles),this.textBlock=new b(e.textBlock),this.carousel=new z(e.carousel))}return e.prototype.getFontTypeDefinition=function(e){return this.fontTypes?this.fontTypes.getStyleDefinition(e):e===o.FontType.Monospace?V.monospace:this._legacyFontType},e.prototype.getEffectiveSpacing=function(e){switch(e){case o.Spacing.Small:return this.spacing.small;case o.Spacing.Default:return this.spacing.default;case o.Spacing.Medium:return this.spacing.medium;case o.Spacing.Large:return this.spacing.large;case o.Spacing.ExtraLarge:return this.spacing.extraLarge;case o.Spacing.Padding:return this.spacing.padding;default:return 0}},e.prototype.paddingDefinitionToSpacingDefinition=function(e){return new a.SpacingDefinition(this.getEffectiveSpacing(e.top),this.getEffectiveSpacing(e.right),this.getEffectiveSpacing(e.bottom),this.getEffectiveSpacing(e.left))},e.prototype.makeCssClassNames=function(){for(var e=[],t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalRegistry=t.CardObjectRegistry=void 0;var n=i(475),r=function(){function e(){this._items={}}return e.prototype.findByName=function(e){return this._items.hasOwnProperty(e)?this._items[e]:void 0},e.prototype.clear=function(){this._items={}},e.prototype.copyTo=function(e){for(var t=0,i=Object.keys(this._items);te.major?1:this.majore.minor?1:this.minor=0};var u=function(){function e(e){void 0===e&&(e=c.latest),this._validationEvents=[],this.targetVersion=e}return e.prototype.isTemplateString=function(e){return"string"==typeof e&&e.startsWith("${")},e.prototype.tryDeleteValue=function(e,t){o.GlobalSettings.enableFullJsonRoundTrip||delete e[t]},e.prototype.tryDeleteDefaultValue=function(e,t){o.GlobalSettings.enableFullJsonRoundTrip&&this.isTemplateString(e[t])||delete e[t]},e.prototype.serializeValue=function(e,t,i,n,r){void 0===n&&(n=void 0),void 0===r&&(r=!1),null==i?o.GlobalSettings.enableFullJsonRoundTrip&&!r||delete e[t]:i===n?o.GlobalSettings.enableFullJsonRoundTrip&&!r&&this.isTemplateString(e[t])||delete e[t]:e[t]=i},e.prototype.serializeString=function(e,t,i,n){null==i?this.tryDeleteValue(e,t):i===n?this.tryDeleteDefaultValue(e,t):e[t]=i},e.prototype.serializeBool=function(e,t,i,n){null==i?this.tryDeleteValue(e,t):i===n?this.tryDeleteDefaultValue(e,t):e[t]=i},e.prototype.serializeNumber=function(e,t,i,n){null==i||isNaN(i)?this.tryDeleteValue(e,t):i===n?this.tryDeleteDefaultValue(e,t):e[t]=i},e.prototype.serializeEnum=function(e,t,i,n,r){void 0===r&&(r=void 0),null==n?this.tryDeleteValue(t,i):n===r?this.tryDeleteDefaultValue(t,i):t[i]=e[n]},e.prototype.serializeArray=function(e,t,i){var n=[];if(i)for(var r=0,o=i;r=0&&a._values.push({value:p})}return a}return r(t,e),t.prototype.parse=function(e,t,i){var n=t[this.name];if("string"!=typeof n)return this.defaultValue;var r=s.getEnumValueByName(this.enumType,n);if(void 0!==r)for(var o=0,p=this.values;o0?n:this.onGetInitialValue?this.onGetInitialValue(e):void 0},t.prototype.toJSON=function(e,t,i,n){n.serializeArray(t,this.name,i)},t}(h);t.SerializableObjectCollectionProperty=S;var E=function(e){function t(t,i,n,r,o,s){var a=e.call(this,t,i,o,s)||this;if(a.targetVersion=t,a.name=i,a.onParse=n,a.onToJSON=r,a.defaultValue=o,a.onGetInitialValue=s,!a.onParse)throw new Error("CustomPropertyDefinition instances must have an onParse handler.");if(!a.onToJSON)throw new Error("CustomPropertyDefinition instances must have an onToJSON handler.");return a}return r(t,e),t.prototype.parse=function(e,t,i){return this.onParse(e,this,t,i)},t.prototype.toJSON=function(e,t,i,n){this.onToJSON(e,this,t,i,n)},t}(h);t.CustomProperty=E;var x=function(){function e(){this._properties=[]}return e.prototype.indexOf=function(e){for(var t=0;t=0))break;this._properties.splice(o,1)}},e.prototype.getItemAt=function(e){return this._properties[e]},e.prototype.getCount=function(){return this._properties.length},e}();t.SerializableObjectSchema=x,t.property=function(e){return function(t,i){var n=Object.getOwnPropertyDescriptor(t,i)||{};n.get||n.set||(n.get=function(){return this.getValue(e)},n.set=function(t){this.setValue(e,t)},Object.defineProperty(t,i,n))}};var P=function(){function e(){this._propertyBag={},this._rawProperties={},this.maxVersion=e.defaultMaxVersion;for(var t=this.getSchema(),i=0;i0){var s=n.sort((function(e,t){return e.sequentialNumber>t.sequentialNumber?1:e.sequentialNumber{Object.defineProperty(t,"__esModule",{value:!0}),t.UUID=t.SizeAndUnit=t.PaddingDefinition=t.SpacingDefinition=t.StringWithSubstitutions=t.ContentTypes=t.GlobalSettings=void 0;var n=i(10),r=function(){function e(){}return e.useAdvancedTextBlockTruncation=!0,e.useAdvancedCardBottomTruncation=!1,e.useMarkdownInRadioButtonAndCheckbox=!0,e.allowMarkForTextHighlighting=!1,e.alwaysBleedSeparators=!1,e.enableFullJsonRoundTrip=!1,e.displayInputValidationErrors=!0,e.allowPreProcessingPropertyValues=!1,e.setTabIndexAtCardRoot=!0,e.enableFallback=!0,e.useWebkitLineClamp=!0,e.allowMoreThanMaxActionsInOverflowMenu=!1,e.removePaddingFromContainersWithBackgroundImage=!1,e.resetInputsDirtyStateAfterActionExecution=!0,e.applets={logEnabled:!0,logLevel:n.LogLevel.Error,maximumRetryAttempts:3,defaultTimeBetweenRetryAttempts:3e3,authPromptWidth:400,authPromptHeight:600,refresh:{mode:n.RefreshMode.Manual,timeBetweenAutomaticRefreshes:3e3,maximumConsecutiveAutomaticRefreshes:3,allowManualRefreshesAfterAutomaticRefreshes:!0}},e}();t.GlobalSettings=r,t.ContentTypes={applicationJson:"application/json",applicationXWwwFormUrlencoded:"application/x-www-form-urlencoded"};var o=function(){function e(){this._isProcessed=!1}return e.prototype.getReferencedInputs=function(e,t){if(!t)throw new Error("The referencedInputs parameter cannot be null.");if(this._original)for(var i=0,n=e;i=s)return r.physicalSize=parseInt(o[1]),3===o.length&&"px"===o[2]&&(r.unit=n.SizeUnit.Pixel),r}throw new Error("Invalid size: "+t)},e}();t.SizeAndUnit=s;var a=function(){function e(){}return e.generate=function(){var t=4294967295*Math.random()|0,i=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return e.lut[255&t]+e.lut[t>>8&255]+e.lut[t>>16&255]+e.lut[t>>24&255]+"-"+e.lut[255&i]+e.lut[i>>8&255]+"-"+e.lut[i>>16&15|64]+e.lut[i>>24&255]+"-"+e.lut[63&n|128]+e.lut[n>>8&255]+"-"+e.lut[n>>16&255]+e.lut[n>>24&255]+e.lut[255&r]+e.lut[r>>8&255]+e.lut[r>>16&255]+e.lut[r>>24&255]},e.initialize=function(){for(var t=0;t<256;t++)e.lut[t]=(t<16?"0":"")+t.toString(16)},e.lut=[],e}();t.UUID=a,a.initialize()},653:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Strings=void 0;var i=function(){function e(){}return e.errors={unknownElementType:function(e){return'Unknown element type "'+e+'". Fallback will be used if present.'},unknownActionType:function(e){return'Unknown action type "'+e+'". Fallback will be used if present.'},elementTypeNotAllowed:function(e){return'Element type "'+e+'" is not allowed in this context.'},actionTypeNotAllowed:function(e){return'Action type "'+e+'" is not allowed in this context.'},invalidPropertyValue:function(e,t){return'Invalid value "'+e+'" for property "'+t+'".'},showCardMustHaveCard:function(){return'"An Action.ShowCard must have its "card" property set to a valid AdaptiveCard object.'},invalidColumnWidth:function(e){return'Invalid column width "'+e+'" - defaulting to "auto".'},invalidCardVersion:function(e){return'Invalid card version. Defaulting to "'+e+'".'},invalidVersionString:function(e){return'Invalid version string "'+e+'".'},propertyValueNotSupported:function(e,t,i,n){return'Value "'+e+'" for property "'+t+'" is supported in version '+i+", but you are using version "+n+"."},propertyNotSupported:function(e,t,i){return'Property "'+e+'" is supported in version '+t+", but you are using version "+i+"."},indexOutOfRange:function(e){return"Index out of range ("+e+")."},elementCannotBeUsedAsInline:function(){return"RichTextBlock.addInline: the specified card element cannot be used as a RichTextBlock inline."},inlineAlreadyParented:function(){return"RichTextBlock.addInline: the specified inline already belongs to another RichTextBlock."},interactivityNotAllowed:function(){return"Interactivity is not allowed."},inputsMustHaveUniqueId:function(){return"All inputs must have a unique Id."},choiceSetMustHaveAtLeastOneChoice:function(){return"An Input.ChoiceSet must have at least one choice defined."},choiceSetChoicesMustHaveTitleAndValue:function(){return"All choices in an Input.ChoiceSet must have their title and value properties set."},propertyMustBeSet:function(e){return'Property "'+e+'" must be set.'},actionHttpHeadersMustHaveNameAndValue:function(){return"All headers of an Action.Http must have their name and value properties set."},tooManyActions:function(e){return"Maximum number of actions exceeded ("+e+")."},tooLittleTimeDelay:function(e){return"Autoplay Delay is too short ("+e+")."},tooManyCarouselPages:function(e){return"Maximum number of Carousel pages exceeded ("+e+")."},invalidInitialPageIndex:function(e){return"InitialPage for carousel is invalid ("+e+")."},columnAlreadyBelongsToAnotherSet:function(){return"This column already belongs to another ColumnSet."},invalidCardType:function(){return'Invalid or missing card type. Make sure the card\'s type property is set to "AdaptiveCard".'},unsupportedCardVersion:function(e,t){return"The specified card version ("+e+") is not supported or still in preview. The latest released card version is "+t+"."},duplicateId:function(e){return'Duplicate Id "'+e+'".'},markdownProcessingNotEnabled:function(){return"Markdown processing isn't enabled. Please see https://www.npmjs.com/package/adaptivecards#supporting-markdown"},processMarkdownEventRemoved:function(){return"The processMarkdown event has been removed. Please update your code and set onProcessMarkdown instead."},elementAlreadyParented:function(){return"The element already belongs to another container."},actionAlreadyParented:function(){return"The action already belongs to another element."},elementTypeNotStandalone:function(e){return"Elements of type "+e+" cannot be used as standalone elements."},invalidInputLabelWidth:function(){return"Invalid input label width. Defaulting to label width from host config."}},e.magicCodeInputCard={tryAgain:function(){return"That didn't work... let's try again."},pleaseLogin:function(){return'Please login in the popup. You will obtain a magic code. Paste that code below and select "Submit"'},enterMagicCode:function(){return"Enter magic code"},pleaseEnterMagicCodeYouReceived:function(){return"Please enter the magic code you received."},submit:function(){return"Submit"},cancel:function(){return"Cancel"},somethingWentWrong:function(){return"Something went wrong. This action can't be handled."},authenticationFailed:function(){return"Authentication failed."}},e.runtime={automaticRefreshPaused:function(){return"Automatic refresh paused."},clckToRestartAutomaticRefresh:function(){return"Click to restart."},refreshThisCard:function(){return"Refresh this card"}},e.hints={dontUseWeightedAndStrecthedColumnsInSameSet:function(){return"It is not recommended to use weighted and stretched columns in the same ColumnSet, because in such a situation stretched columns will always get the minimum amount of space."}},e.defaults={inlineActionTitle:function(){return"Inline Action"},overflowButtonText:function(){return"..."},overflowButtonTooltip:function(){return"More options"},emptyElementText:function(e){return"Empty "+e},mediaPlayerAriaLabel:function(){return"Media content"},mediaPlayerPlayMedia:function(){return"Play media"},youTubeVideoPlayer:function(){return"YouTube video player"},vimeoVideoPlayer:function(){return"Vimeo video player"},dailymotionVideoPlayer:function(){return"Dailymotion video player"},carouselNavigationPreviousTooltip:function(){return"Previous carousel page"},carouselNavigationNextTooltip:function(){return"Next carousel page"}},e}();t.Strings=i},74:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.Table=t.TableRow=t.TableCell=t.StylableContainer=t.TableColumnDefinition=void 0;var s=i(651),a=i(10),l=i(432),p=i(475),c=i(764),u=i(653),d=i(755),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.width=new c.SizeAndUnit(1,a.SizeUnit.Weight),t}return r(t,e),t.prototype.getSchemaKey=function(){return"ColumnDefinition"},t.horizontalCellContentAlignmentProperty=new p.EnumProperty(p.Versions.v1_5,"horizontalCellContentAlignment",a.HorizontalAlignment),t.verticalCellContentAlignmentProperty=new p.EnumProperty(p.Versions.v1_5,"verticalCellContentAlignment",a.VerticalAlignment),t.widthProperty=new p.CustomProperty(p.Versions.v1_5,"width",(function(e,t,i,n){var r=t.defaultValue,o=i[t.name],s=!1;if("number"!=typeof o||isNaN(o))if("string"==typeof o)try{r=c.SizeAndUnit.parse(o)}catch(e){s=!0}else s=!0;else r=new c.SizeAndUnit(o,a.SizeUnit.Weight);return s&&n.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,u.Strings.errors.invalidColumnWidth(o)),r}),(function(e,t,i,n,r){n.unit===a.SizeUnit.Pixel?r.serializeValue(i,"width",n.physicalSize+"px"):r.serializeNumber(i,"width",n.physicalSize)}),new c.SizeAndUnit(1,a.SizeUnit.Weight)),o([(0,p.property)(t.horizontalCellContentAlignmentProperty)],t.prototype,"horizontalCellContentAlignment",void 0),o([(0,p.property)(t.verticalCellContentAlignmentProperty)],t.prototype,"verticalCellContentAlignment",void 0),o([(0,p.property)(t.widthProperty)],t.prototype,"width",void 0),t}(p.SerializableObject);t.TableColumnDefinition=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._items=[],t}return r(t,e),t.prototype.parseItem=function(e,t){var i=this;return t.parseCardObject(this,e,[],!this.isDesignMode(),(function(e){return i.createItemInstance(e)}),(function(e,i){t.logParseEvent(void 0,a.ValidationEvent.ElementTypeNotAllowed,u.Strings.errors.elementTypeNotAllowed(e))}))},t.prototype.internalAddItem=function(e){if(e.parent)throw new Error(u.Strings.errors.elementAlreadyParented());this._items.push(e),e.setParent(this)},t.prototype.internalRemoveItem=function(e){var t=this._items.indexOf(e);return t>=0&&(this._items.splice(t,1),e.setParent(void 0),this.updateLayout(),!0)},t.prototype.internalIndexOf=function(e){return this._items.indexOf(e)},t.prototype.internalParse=function(t,i){e.prototype.internalParse.call(this,t,i),this._items=[];var n=t[this.getCollectionPropertyName()];if(Array.isArray(n))for(var r=0,o=n;r0?this.getItemAt(0):void 0},t.prototype.getLastVisibleRenderedItem=function(){return this.getItemCount()>0?this.getItemAt(this.getItemCount()-1):void 0},t}(s.StylableCardElementContainer);t.StylableContainer=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._columnIndex=-1,t._cellType="data",t}return r(t,e),t.prototype.getHasBorder=function(){return this.parentRow.parentTable.showGridLines},t.prototype.applyBorder=function(){if(this.renderedElement&&this.getHasBorder()){var e=this.hostConfig.containerStyles.getStyleByName(this.parentRow.parentTable.gridStyle);if(e.borderColor){var t=(0,d.stringToCssColor)(e.borderColor);t&&(this.renderedElement.style.borderRight="1px solid "+t,this.renderedElement.style.borderBottom="1px solid "+t)}}},t.prototype.getDefaultPadding=function(){return this.getHasBackground()||this.getHasBorder()?new c.PaddingDefinition(a.Spacing.Small,a.Spacing.Small,a.Spacing.Small,a.Spacing.Small):e.prototype.getDefaultPadding.call(this)},t.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);return t&&(t.setAttribute("role","data"===this.cellType?"cell":"columnheader"),t.style.minWidth="0","header"===this.cellType&&t.setAttribute("scope","col")),t},t.prototype.shouldSerialize=function(e){return!0},t.prototype.getJsonTypeName=function(){return"TableCell"},t.prototype.getEffectiveTextStyleDefinition=function(){return"header"===this.cellType?this.hostConfig.textStyles.columnHeader:e.prototype.getEffectiveTextStyleDefinition.call(this)},t.prototype.getEffectiveHorizontalAlignment=function(){if(void 0!==this.horizontalAlignment)return this.horizontalAlignment;if(void 0!==this.parentRow.horizontalCellContentAlignment)return this.parentRow.horizontalCellContentAlignment;if(this.columnIndex>=0){var t=this.parentRow.parentTable.getColumnAt(this.columnIndex).horizontalCellContentAlignment;if(void 0!==t)return t}return void 0!==this.parentRow.parentTable.horizontalCellContentAlignment?this.parentRow.parentTable.horizontalCellContentAlignment:e.prototype.getEffectiveHorizontalAlignment.call(this)},t.prototype.getEffectiveVerticalContentAlignment=function(){if(void 0!==this.verticalContentAlignment)return this.verticalContentAlignment;if(void 0!==this.parentRow.verticalCellContentAlignment)return this.parentRow.verticalCellContentAlignment;if(this.columnIndex>=0){var t=this.parentRow.parentTable.getColumnAt(this.columnIndex).verticalCellContentAlignment;if(void 0!==t)return t}return void 0!==this.parentRow.parentTable.verticalCellContentAlignment?this.parentRow.parentTable.verticalCellContentAlignment:e.prototype.getEffectiveVerticalContentAlignment.call(this)},Object.defineProperty(t.prototype,"columnIndex",{get:function(){return this._columnIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellType",{get:function(){return this._cellType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentRow",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t}(s.Container);t.TableCell=m;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getDefaultPadding=function(){return new c.PaddingDefinition(a.Spacing.None,a.Spacing.None,a.Spacing.None,a.Spacing.None)},t.prototype.applyBackground=function(){if(this.renderedElement){var e=this.hostConfig.containerStyles.getStyleByName(this.style,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));if(e.backgroundColor){var t=(0,d.stringToCssColor)(e.backgroundColor);t&&(this.renderedElement.style.backgroundColor=t)}}},t.prototype.getCollectionPropertyName=function(){return"cells"},t.prototype.createItemInstance=function(e){return e&&"TableCell"!==e?void 0:new m},t.prototype.internalRender=function(){var e=this.getIsFirstRow(),t=this.hostConfig.table.cellSpacing,i=document.createElement("div");i.setAttribute("role","row"),i.style.display="flex",i.style.flexDirection="row";for(var n=0;n0&&!this.parentTable.showGridLines&&t>0&&(o.style.marginLeft=t+"px"),i.appendChild(o)}}return i.children.length>0?i:void 0},t.prototype.shouldSerialize=function(e){return!0},t.prototype.addCell=function(e){this.internalAddItem(e)},t.prototype.removeCellAt=function(e){return e>=0&&e0){for(var e=0,t=0,i=this._columns;t0&&!this.showGridLines&&u>0){var m=document.createElement("div");m.setAttribute("aria-hidden","true"),m.style.height=u+"px",s.appendChild(m)}s.appendChild(f)}}return s}},t.prototype.addColumn=function(e){this._columns.push(e),this.ensureRowsHaveEnoughCells()},t.prototype.removeColumn=function(e){var t=this._columns.indexOf(e);t>=0&&(this.removeCellsFromColumn(t),this._columns.splice(t,1))},t.prototype.getColumnCount=function(){return this._columns.length},t.prototype.getColumnAt=function(e){return this._columns[e]},t.prototype.addRow=function(e){this.internalAddItem(e),e.ensureHasEnoughCells(this.getColumnCount())},t.prototype.indexOf=function(e){return e instanceof g?this.internalIndexOf(e):-1},t.prototype.getJsonTypeName=function(){return"Table"},t._columnsProperty=new p.SerializableObjectCollectionProperty(p.Versions.v1_5,"columns",h),t.firstRowAsHeadersProperty=new p.BoolProperty(p.Versions.v1_5,"firstRowAsHeaders",!0),t.showGridLinesProperty=new p.BoolProperty(p.Versions.v1_5,"showGridLines",!0),t.gridStyleProperty=new s.ContainerStyleProperty(p.Versions.v1_5,"gridStyle"),t.horizontalCellContentAlignmentProperty=new p.EnumProperty(p.Versions.v1_5,"horizontalCellContentAlignment",a.HorizontalAlignment),t.verticalCellContentAlignmentProperty=new p.EnumProperty(p.Versions.v1_5,"verticalCellContentAlignment",a.VerticalAlignment),o([(0,p.property)(t._columnsProperty)],t.prototype,"_columns",void 0),o([(0,p.property)(t.firstRowAsHeadersProperty)],t.prototype,"firstRowAsHeaders",void 0),o([(0,p.property)(t.showGridLinesProperty)],t.prototype,"showGridLines",void 0),o([(0,p.property)(t.gridStyleProperty)],t.prototype,"gridStyle",null),o([(0,p.property)(t.horizontalCellContentAlignmentProperty)],t.prototype,"horizontalCellContentAlignment",void 0),o([(0,p.property)(t.verticalCellContentAlignmentProperty)],t.prototype,"verticalCellContentAlignment",void 0),t}(f);t.Table=y,l.GlobalRegistry.defaultElements.register("Table",y,p.Versions.v1_5)},639:function(e,t){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.formatText=void 0;var r=function(){function e(e){this._regularExpression=e}return e.prototype.format=function(e,t){var i;if(t){for(var n=t;null!=(i=this._regularExpression.exec(t));)n=n.replace(i[0],this.internalFormat(e,i));return n}return t},e}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.internalFormat=function(e,t){var i=new Date(Date.parse(t[1])),n=void 0!==t[2]?t[2].toLowerCase():"compact";return"compact"!==n?i.toLocaleDateString(e,{day:"numeric",weekday:n,month:n,year:"numeric"}):i.toLocaleDateString()},t}(r),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.internalFormat=function(e,t){return new Date(Date.parse(t[1])).toLocaleTimeString(e,{hour:"numeric",minute:"2-digit"})},t}(r);t.formatText=function(e,t){for(var i=t,n=0,r=[new o(/\{{2}DATE\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))(?:, ?(COMPACT|LONG|SHORT))?\)\}{2}/g),new s(/\{{2}TIME\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))\)\}{2}/g)];n{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=t.addCancelSelectActionEventHandler=t.clearElementChildren=t.getScrollY=t.getScrollX=t.getFitStatus=t.truncate=t.truncateText=t.stringToCssColor=t.parseEnum=t.getEnumValueByName=t.parseBool=t.parseNumber=t.parseString=t.appendChild=t.generateUniqueId=t.isMobileOS=t.isInternetExplorer=void 0;var r=i(10),o=i(764);function s(e,t){for(var i in e){var n=parseInt(i,10);if(n>=0){var r=e[i];if(r&&"string"==typeof r&&r.toLowerCase()===t.toLowerCase())return n}}}function a(e,t,i,n,r){var o=function(){return t-e.scrollHeight>=-1};if(!o()){for(var s=function(e){for(var t=[],i=p(e,-1);i=r-1){for(var d=p(i,c);d"!==e[t++];);return t}t.truncate=function(e,t,i){a(e,t,e.innerHTML,(function(t,i){var n,r=t.substring(0,i)+"...",o=null!==(n=null==l?void 0:l.createHTML(r))&&void 0!==n?n:r;e.innerHTML=o}),i)},t.getFitStatus=function(e,t){var i=e.offsetTop;return i+e.clientHeight<=t?r.ContainerFitStatus.FullyInContainer:i{function n(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function r(e={},t={}){Object.keys(t).forEach((i=>{void 0===e[i]?e[i]=t[i]:n(t[i])&&n(e[i])&&Object.keys(t[i]).length>0&&r(e[i],t[i])}))}i.r(t),i.d(t,{A11y:()=>ce,Autoplay:()=>he,Controller:()=>pe,EffectCards:()=>Ve,EffectCoverflow:()=>Oe,EffectCreative:()=>Me,EffectCube:()=>Ae,EffectFade:()=>_e,EffectFlip:()=>Ie,FreeMode:()=>me,Grid:()=>ge,HashNavigation:()=>de,History:()=>ue,Keyboard:()=>Z,Lazy:()=>le,Manipulation:()=>Se,Mousewheel:()=>ee,Navigation:()=>ie,Pagination:()=>re,Parallax:()=>se,Scrollbar:()=>oe,Swiper:()=>K,Thumbs:()=>fe,Virtual:()=>Q,Zoom:()=>ae,default:()=>K});const o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function s(){const e="undefined"!=typeof document?document:{};return r(e,o),e}const a={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function l(){const e="undefined"!=typeof window?window:{};return r(e,a),e}class p extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function c(e=[]){const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...c(e)):t.push(e)})),t}function u(e,t){return Array.prototype.filter.call(e,t)}function d(e,t){const i=l(),n=s();let r=[];if(!t&&e instanceof p)return e;if(!e)return new p(r);if("string"==typeof e){const i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let e="div";0===i.indexOf("e.split(" "))));return this.forEach((e=>{e.classList.add(...t)})),this},removeClass:function(...e){const t=c(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...t)})),this},hasClass:function(...e){const t=c(e.map((e=>e.split(" "))));return u(this,(e=>t.filter((t=>e.classList.contains(t))).length>0)).length>0},toggleClass:function(...e){const t=c(e.map((e=>e.split(" "))));this.forEach((e=>{t.forEach((t=>{e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let i=0;i=0;e-=1){const i=s[e];n&&i.listener===n||n&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===n?(o.removeEventListener(t,i.proxyListener,r),s.splice(e,1)):n||(o.removeEventListener(t,i.proxyListener,r),s.splice(e,1))}}}return this},trigger:function(...e){const t=l(),i=e[0].split(" "),n=e[1];for(let r=0;rt>0)),r.dispatchEvent(i),r.dom7EventData=[],delete r.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function i(n){n.target===this&&(e.call(this,n),t.off("transitionend",i))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=l();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=l(),t=s(),i=this[0],n=i.getBoundingClientRect(),r=t.body,o=i.clientTop||r.clientTop||0,a=i.clientLeft||r.clientLeft||0,p=i===e?e.scrollY:i.scrollTop,c=i===e?e.scrollX:i.scrollLeft;return{top:n.top+p-o,left:n.left+c-a}}return null},css:function(e,t){const i=l();let n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n{e.apply(t,[t,i])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;tt-1)return d([]);if(e<0){const i=t+e;return d(i<0?[]:[this[i]])}return d([this[e]])},append:function(...e){let t;const i=s();for(let n=0;n=0;n-=1)this[i].insertBefore(r.childNodes[n],this[i].childNodes[0])}else if(e instanceof p)for(n=0;n0?e?this[0].nextElementSibling&&d(this[0].nextElementSibling).is(e)?d([this[0].nextElementSibling]):d([]):this[0].nextElementSibling?d([this[0].nextElementSibling]):d([]):d([])},nextAll:function(e){const t=[];let i=this[0];if(!i)return d([]);for(;i.nextElementSibling;){const n=i.nextElementSibling;e?d(n).is(e)&&t.push(n):t.push(n),i=n}return d(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&d(t.previousElementSibling).is(e)?d([t.previousElementSibling]):d([]):t.previousElementSibling?d([t.previousElementSibling]):d([])}return d([])},prevAll:function(e){const t=[];let i=this[0];if(!i)return d([]);for(;i.previousElementSibling;){const n=i.previousElementSibling;e?d(n).is(e)&&t.push(n):t.push(n),i=n}return d(t)},parent:function(e){const t=[];for(let i=0;i{Object.defineProperty(d.fn,e,{value:m[e],writable:!0})}));const g=d;function y(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function v(){return Date.now()}function b(e,t){void 0===t&&(t="x");const i=l();let n,r,o;const s=function(e){const t=l();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(r=s.transform||s.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map((e=>e.replace(",","."))).join(", ")),o=new i.WebKitCSSMatrix("none"===r?"":r)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===t&&(r=i.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=i.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}function C(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function w(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function S(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let i=1;it.indexOf(e)<0));for(let t=0,r=i.length;to?"next":"prev",u=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,d=()=>{s=(new Date).getTime(),null===a&&(a=s);const e=Math.max(Math.min((s-a)/p,1),0),l=.5-Math.cos(e*Math.PI)/2;let c=o+l*(i-o);if(u(c,i)&&(c=i),t.wrapperEl.scrollTo({[n]:c}),u(c,i))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:c})})),void r.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=r.requestAnimationFrame(d)};d()}let P,_,A;function T(){return P||(P=function(){const e=l(),t=s();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const i=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,i)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),P}const I={on(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;const r=i?"unshift":"push";return e.split(" ").forEach((e=>{n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][r](t)})),n},once(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;function r(){n.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var i=arguments.length,o=new Array(i),s=0;s=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach(((n,r)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&i.eventsListeners[e].splice(r,1)}))})),i):i},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,i,n;for(var r=arguments.length,o=new Array(r),s=0;s{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(n,[t,...i])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(n,i)}))})),e}},O={updateSize:function(){const e=this;let t,i;const n=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:n[0].clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:n[0].clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10),i=i-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function i(e,i){return parseFloat(e.getPropertyValue(t(i))||0)}const n=e.params,{$wrapperEl:r,size:o,rtlTranslate:s,wrongRTL:a}=e,l=e.virtual&&n.virtual.enabled,p=l?e.virtual.slides.length:e.slides.length,c=r.children(`.${e.params.slideClass}`),u=l?e.virtual.slides.length:c.length;let d=[];const h=[],f=[];let m=n.slidesOffsetBefore;"function"==typeof m&&(m=n.slidesOffsetBefore.call(e));let g=n.slidesOffsetAfter;"function"==typeof g&&(g=n.slidesOffsetAfter.call(e));const y=e.snapGrid.length,v=e.slidesGrid.length;let b=n.spaceBetween,C=-m,w=0,S=0;if(void 0===o)return;"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*o),e.virtualSize=-b,s?c.css({marginLeft:"",marginBottom:"",marginTop:""}):c.css({marginRight:"",marginBottom:"",marginTop:""}),n.centeredSlides&&n.cssMode&&(E(e.wrapperEl,"--swiper-centered-offset-before",""),E(e.wrapperEl,"--swiper-centered-offset-after",""));const x=n.grid&&n.grid.rows>1&&e.grid;let P;x&&e.grid.initSlides(u);const _="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>void 0!==n.breakpoints[e].slidesPerView)).length>0;for(let r=0;r1&&d.push(e.virtualSize-o)}if(0===d.length&&(d=[0]),0!==n.spaceBetween){const i=e.isHorizontal()&&s?"marginLeft":t("marginRight");c.filter(((e,t)=>!n.cssMode||t!==c.length-1)).css({[i]:`${b}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(n.spaceBetween?n.spaceBetween:0)})),e-=n.spaceBetween;const t=e-o;d=d.map((e=>e<0?-m:e>t?t+g:e))}if(n.centerInsufficientSlides){let e=0;if(f.forEach((t=>{e+=t+(n.spaceBetween?n.spaceBetween:0)})),e-=n.spaceBetween,e{d[i]=e-t})),h.forEach(((e,i)=>{h[i]=e+t}))}}if(Object.assign(e,{slides:c,snapGrid:d,slidesGrid:h,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){E(e.wrapperEl,"--swiper-centered-offset-before",-d[0]+"px"),E(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(u!==p&&e.emit("slidesLengthChange"),d.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==v&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.$el.hasClass(t);u<=n.maxBackfaceHiddenSlides?i||e.$el.addClass(t):i&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,i=[],n=t.virtual&&t.params.virtual.enabled;let r,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const s=e=>n?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||g([])).each((e=>{i.push(e)}));else for(r=0;rt.slides.length&&!n)break;i.push(s(e))}else i.push(s(t.activeIndex));for(r=0;ro?e:o}(o||0===o)&&t.$wrapperEl.css("height",`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let i=0;i=0&&u1&&d<=t.size||u<=0&&d>=t.size)&&(t.visibleSlides.push(a),t.visibleSlidesIndexes.push(e),n.eq(e).addClass(i.slideVisibleClass)),a.progress=r?-p:p,a.originalProgress=r?-c:c}t.visibleSlides=g(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,n=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:o,isEnd:s}=t;const a=o,l=s;0===n?(r=0,o=!0,s=!0):(r=(e-t.minTranslate())/n,o=r<=0,s=r>=1),Object.assign(t,{progress:r,isBeginning:o,isEnd:s}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),o&&!a&&t.emit("reachBeginning toEdge"),s&&!l&&t.emit("reachEnd toEdge"),(a&&!o||l&&!s)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,$wrapperEl:n,activeIndex:r,realIndex:o}=e,s=e.virtual&&i.virtual.enabled;let a;t.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),a=s?e.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${r}"]`):t.eq(r),a.addClass(i.slideActiveClass),i.loop&&(a.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${o}"]`).addClass(i.slideDuplicateActiveClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${o}"]`).addClass(i.slideDuplicateActiveClass));let l=a.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=t.eq(0),l.addClass(i.slideNextClass));let p=a.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);i.loop&&0===p.length&&(p=t.eq(-1),p.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),p.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${p.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${p.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:n,snapGrid:r,params:o,activeIndex:s,realIndex:a,snapIndex:l}=t;let p,c=e;if(void 0===c){for(let e=0;e=n[e]&&i=n[e]&&i=n[e]&&(c=e);o.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(r.indexOf(i)>=0)p=r.indexOf(i);else{const e=Math.min(o.slidesPerGroupSkip,c);p=e+Math.floor((c-e)/o.slidesPerGroup)}if(p>=r.length&&(p=r.length-1),c===s)return void(p!==l&&(t.snapIndex=p,t.emit("snapIndexChange")));const u=parseInt(t.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(t,{snapIndex:p,realIndex:u,previousIndex:s,activeIndex:c}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),a!==u&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,i=t.params,n=g(e).closest(`.${i.slideClass}`)[0];let r,o=!1;if(n)for(let e=0;es?"next":o=l.length&&(g=l.length-1),(u||a.initialSlide||0)===(c||0)&&i&&o.emit("beforeSlideChangeStart");const y=-l[g];if(o.updateProgress(y),a.normalizeSlideIndex)for(let e=0;e=i&&t=i&&t=i&&(s=e)}if(o.initialized&&s!==u){if(!o.allowSlideNext&&yo.translate&&y>o.maxTranslate()&&(u||0)!==s)return!1}let v;if(v=s>u?"next":s{o.wrapperEl.style.scrollSnapType="",o._swiperImmediateVirtual=!1}))}else{if(!o.support.smoothScroll)return x({swiper:o,targetPosition:i,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(y),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,n),o.transitionStart(i,v),0===t?o.transitionEnd(i,v):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,v))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,n){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),"string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const r=this;let o=e;return r.params.loop&&(o+=r.loopedSlides),r.slideTo(o,t,i,n)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const n=this,{animating:r,enabled:o,params:s}=n;if(!o)return n;let a=s.slidesPerGroup;"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndexc(e)));let h=s[d.indexOf(u)-1];if(void 0===h&&r.cssMode){let e;s.forEach(((t,i)=>{u>=t&&(e=i)})),void 0!==e&&(h=s[e>0?e-1:e])}let f=0;if(void 0!==h&&(f=a.indexOf(h),f<0&&(f=n.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(f=f-n.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),r.rewind&&n.isBeginning){const r=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(r,e,t,i)}return n.slideTo(f,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===n&&(n=.5);const r=this;let o=r.activeIndex;const s=Math.min(r.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[a]){const e=r.snapGrid[a];l-e>(r.snapGrid[a+1]-e)*n&&(o+=r.params.slidesPerGroup)}else{const e=r.snapGrid[a-1];l-e<=(r.snapGrid[a]-e)*n&&(o-=r.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,r.slidesGrid.length-1),r.slideTo(o,e,t,i)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:i}=e,n="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,o=e.clickedIndex;if(t.loop){if(e.animating)return;r=parseInt(g(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?oe.slides.length-e.loopedSlides+n/2?(e.loopFix(),o=i.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),y((()=>{e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-n?(e.loopFix(),o=i.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),y((()=>{e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}},k={loopCreate:function(){const e=this,t=s(),{params:i,$wrapperEl:n}=e,r=n.children().length>0?g(n.children()[0].parentNode):n;r.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let o=r.children(`.${i.slideClass}`);if(i.loopFillGroupWithBlank){const e=i.slidesPerGroup-o.length%i.slidesPerGroup;if(e!==i.slidesPerGroup){for(let n=0;no.length&&(e.loopedSlides=o.length);const a=[],l=[];o.each(((t,i)=>{const n=g(t);i=o.length-e.loopedSlides&&a.push(t),n.attr("data-swiper-slide-index",i)}));for(let e=0;e=0;e-=1)r.prepend(g(a[e].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:i,loopedSlides:n,allowSlidePrev:r,allowSlideNext:o,snapGrid:s,rtlTranslate:a}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const p=-s[t]-e.getTranslate();t=i.length-n&&(l=-i.length+t+n,l+=n,e.slideTo(l,0,!1,!0)&&0!==p&&e.setTranslate((a?-e.translate:e.translate)-p)),e.allowSlidePrev=r,e.allowSlideNext=o,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:i}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}};function z(e){const t=this,i=s(),n=l(),r=t.touchEventsData,{params:o,touches:a,enabled:p}=t;if(!p)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let c=e;c.originalEvent&&(c=c.originalEvent);let u=g(c.target);if("wrapper"===o.touchEventsTarget&&!u.closest(t.wrapperEl).length)return;if(r.isTouchEvent="touchstart"===c.type,!r.isTouchEvent&&"which"in c&&3===c.which)return;if(!r.isTouchEvent&&"button"in c&&c.button>0)return;if(r.isTouched&&r.isMoved)return;o.noSwipingClass&&""!==o.noSwipingClass&&c.target&&c.target.shadowRoot&&e.path&&e.path[0]&&(u=g(e.path[0]));const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,h=!(!c.target||!c.target.shadowRoot);if(o.noSwiping&&(h?function(e,t){return void 0===t&&(t=this),function t(i){if(!i||i===s()||i===l())return null;i.assignedSlot&&(i=i.assignedSlot);const n=i.closest(e);return n||i.getRootNode?n||t(i.getRootNode().host):null}(t)}(d,u[0]):u.closest(d)[0]))return void(t.allowClick=!0);if(o.swipeHandler&&!u.closest(o.swipeHandler)[0])return;a.currentX="touchstart"===c.type?c.targetTouches[0].pageX:c.pageX,a.currentY="touchstart"===c.type?c.targetTouches[0].pageY:c.pageY;const f=a.currentX,m=a.currentY,y=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,b=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(y&&(f<=b||f>=n.innerWidth-b)){if("prevent"!==y)return;e.preventDefault()}if(Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=f,a.startY=m,r.touchStartTime=v(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==c.type){let e=!0;u.is(r.focusableElements)&&(e=!1,"SELECT"===u[0].nodeName&&(r.isTouched=!1)),i.activeElement&&g(i.activeElement).is(r.focusableElements)&&i.activeElement!==u[0]&&i.activeElement.blur();const n=e&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!n||u[0].isContentEditable||c.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",c)}function L(e){const t=s(),i=this,n=i.touchEventsData,{params:r,touches:o,rtlTranslate:a,enabled:l}=i;if(!l)return;let p=e;if(p.originalEvent&&(p=p.originalEvent),!n.isTouched)return void(n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",p));if(n.isTouchEvent&&"touchmove"!==p.type)return;const c="touchmove"===p.type&&p.targetTouches&&(p.targetTouches[0]||p.changedTouches[0]),u="touchmove"===p.type?c.pageX:p.pageX,d="touchmove"===p.type?c.pageY:p.pageY;if(p.preventedByNestedSwiper)return o.startX=u,void(o.startY=d);if(!i.allowTouchMove)return g(p.target).is(n.focusableElements)||(i.allowClick=!1),void(n.isTouched&&(Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d}),n.touchStartTime=v()));if(n.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(i.isVertical()){if(do.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(uo.startX&&i.translate>=i.minTranslate())return;if(n.isTouchEvent&&t.activeElement&&p.target===t.activeElement&&g(p.target).is(n.focusableElements))return n.isMoved=!0,void(i.allowClick=!1);if(n.allowTouchCallbacks&&i.emit("touchMove",p),p.targetTouches&&p.targetTouches.length>1)return;o.currentX=u,o.currentY=d;const h=o.currentX-o.startX,f=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(h**2+f**2)=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(h))/Math.PI,n.isScrolling=i.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",p),void 0===n.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(n.startMoving=!0)),n.isScrolling)return void(n.isTouched=!1);if(!n.startMoving)return;i.allowClick=!1,!r.cssMode&&p.cancelable&&p.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&p.stopPropagation(),n.isMoved||(r.loop&&!r.cssMode&&i.loopFix(),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!r.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",p)),i.emit("sliderMove",p),n.isMoved=!0;let m=i.isHorizontal()?h:f;o.diff=m,m*=r.touchRatio,a&&(m=-m),i.swipeDirection=m>0?"prev":"next",n.currentTranslate=m+n.startTranslate;let y=!0,b=r.resistanceRatio;if(r.touchReleaseOnEdges&&(b=0),m>0&&n.currentTranslate>i.minTranslate()?(y=!1,r.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+m)**b)):m<0&&n.currentTranslaten.startTranslate&&(n.currentTranslate=n.startTranslate),i.allowSlidePrev||i.allowSlideNext||(n.currentTranslate=n.startTranslate),r.threshold>0){if(!(Math.abs(m)>r.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,void(o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&i.freeMode||r.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&r.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function D(e){const t=this,i=t.touchEventsData,{params:n,touches:r,rtlTranslate:o,slidesGrid:s,enabled:a}=t;if(!a)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",l),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const p=v(),c=p-i.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target),t.emit("tap click",l),c<300&&p-i.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(i.lastClickTime=v(),y((()=>{t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===r.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let u;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,u=n.followFinger?o?t.translate:-t.translate:-i.currentTranslate,n.cssMode)return;if(t.params.freeMode&&n.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:u});let d=0,h=t.slidesSizesGrid[0];for(let e=0;e=s[e]&&u=s[e]&&(d=e,h=s[s.length-1]-s[s.length-2])}let f=null,m=null;n.rewind&&(t.isBeginning?m=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const g=(u-s[d])/h,b=dn.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(g>=n.longSwipesRatio?t.slideTo(n.rewind&&t.isEnd?f:d+b):t.slideTo(d)),"prev"===t.swipeDirection&&(g>1-n.longSwipesRatio?t.slideTo(d+b):null!==m&&g<0&&Math.abs(g)>n.longSwipesRatio?t.slideTo(m):t.slideTo(d))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||l.target!==t.navigation.nextEl&&l.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==f?f:d+b),"prev"===t.swipeDirection&&t.slideTo(null!==m?m:d)):l.target===t.navigation.nextEl?t.slideTo(d+b):t.slideTo(d)}}function N(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:r,snapGrid:o}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=r,e.allowSlideNext=n,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function R(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function $(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:n}=e;if(!n)return;let r;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();r=0===o?0:(e.translate-e.minTranslate())/o,r!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let B=!1;function H(){}const j=(e,t)=>{const i=s(),{params:n,touchEvents:r,el:o,wrapperEl:a,device:l,support:p}=e,c=!!n.nested,u="on"===t?"addEventListener":"removeEventListener",d=t;if(p.touch){const t=!("touchstart"!==r.start||!p.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o[u](r.start,e.onTouchStart,t),o[u](r.move,e.onTouchMove,p.passiveListener?{passive:!1,capture:c}:c),o[u](r.end,e.onTouchEnd,t),r.cancel&&o[u](r.cancel,e.onTouchEnd,t)}else o[u](r.start,e.onTouchStart,!1),i[u](r.move,e.onTouchMove,c),i[u](r.end,e.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&o[u]("click",e.onClick,!0),n.cssMode&&a[u]("scroll",e.onScroll),n.updateOnWindowResize?e[d](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",N,!0):e[d]("observerUpdate",N,!0)},F={attachEvents:function(){const e=this,t=s(),{params:i,support:n}=e;e.onTouchStart=z.bind(e),e.onTouchMove=L.bind(e),e.onTouchEnd=D.bind(e),i.cssMode&&(e.onScroll=$.bind(e)),e.onClick=R.bind(e),n.touch&&!B&&(t.addEventListener("touchstart",H),B=!0),j(e,"on")},detachEvents:function(){j(this,"off")}},W=(e,t)=>e.grid&&t.grid&&t.grid.rows>1,G={addClasses:function(){const e=this,{classNames:t,params:i,rtl:n,$el:r,device:o,support:s}=e,a=function(e,t){const i=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((n=>{e[n]&&i.push(t+n)})):"string"==typeof e&&i.push(t+e)})),i}(["initialized",i.direction,{"pointer-events":!s.touch},{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...a),r.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},q={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function U(e,t){return function(i){void 0===i&&(i={});const n=Object.keys(i)[0],r=i[n];"object"==typeof r&&null!==r?(["navigation","pagination","scrollbar"].indexOf(n)>=0&&!0===e[n]&&(e[n]={auto:!0}),n in e&&"enabled"in r?(!0===e[n]&&(e[n]={enabled:!0}),"object"!=typeof e[n]||"enabled"in e[n]||(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),S(t,i)):S(t,i)):S(t,i)}}const J={eventsEmitter:I,update:O,translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:i,translate:n,$wrapperEl:r}=this;if(t.virtualTranslate)return i?-n:n;if(t.cssMode)return n;let o=b(r[0],e);return i&&(o=-o),o||0},setTranslate:function(e,t){const i=this,{rtlTranslate:n,params:r,$wrapperEl:o,wrapperEl:s,progress:a}=i;let l,p=0,c=0;i.isHorizontal()?p=n?-e:e:c=e,r.roundLengths&&(p=Math.floor(p),c=Math.floor(c)),r.cssMode?s[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-p:-c:r.virtualTranslate||o.transform(`translate3d(${p}px, ${c}px, 0px)`),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?p:c;const u=i.maxTranslate()-i.minTranslate();l=0===u?0:(e-i.minTranslate())/u,l!==a&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===n&&(n=!0);const o=this,{params:s,wrapperEl:a}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const l=o.minTranslate(),p=o.maxTranslate();let c;if(c=n&&e>l?l:n&&e{const i=r[t]&&r[t].enabled,n=l[t]&&l[t].enabled;i&&!n&&e[t].disable(),!i&&n&&e[t].enable()}));const d=l.direction&&l.direction!==r.direction,h=r.loop&&(l.slidesPerView!==r.slidesPerView||d);d&&i&&e.changeDirection(),S(e.params,l);const f=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),u&&!f?e.disable():!u&&f&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",l),h&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-n+e.loopedSlides,0,!1)),e.emit("breakpoint",l)},getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),!e||"container"===t&&!i)return;let n=!1;const r=l(),o="window"===t?r.innerHeight:i.clientHeight,s=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}}));s.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;ei}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:G,images:{loadImage:function(e,t,i,n,r,o){const s=l();let a;function p(){o&&o()}g(e).parent("picture")[0]||e.complete&&r?p():t?(a=new s.Image,a.onload=p,a.onerror=p,n&&(a.sizes=n),i&&(a.srcset=i),t&&(a.src=t)):p()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let i=0;i1){const e=[];return g(t.el).each((i=>{const n=S({},t,{el:i});e.push(new Y(n))})),e}const o=this;var s;o.__swiper__=!0,o.support=T(),o.device=(void 0===(s={userAgent:t.userAgent})&&(s={}),_||(_=function(e){let{userAgent:t}=void 0===e?{}:e;const i=T(),n=l(),r=n.navigator.platform,o=t||n.navigator.userAgent,s={ios:!1,android:!1},a=n.screen.width,p=n.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let u=o.match(/(iPad).*OS\s([\d_]+)/);const d=o.match(/(iPod)(.*OS\s([\d_]+))?/),h=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===r;let m="MacIntel"===r;return!u&&m&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${p}`)>=0&&(u=o.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),m=!1),c&&!f&&(s.os="android",s.android=!0),(u||h||d)&&(s.os="ios",s.ios=!0),s}(s)),_),o.browser=(A||(A=function(){const e=l();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),A),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],t.modules&&Array.isArray(t.modules)&&o.modules.push(...t.modules);const a={};o.modules.forEach((e=>{e({swiper:o,extendParams:U(t,a),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})}));const p=S({},q,a);return o.params=S({},p,X,t),o.originalParams=S({},o.params),o.passedParams=S({},t),o.params&&o.params.on&&Object.keys(o.params.on).forEach((e=>{o.on(e,o.params.on[e])})),o.params&&o.params.onAny&&o.onAny(o.params.onAny),o.$=g,Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:g(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===o.params.direction,isVertical:()=>"vertical"===o.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return o.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},o.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},o.support.touch||!o.params.simulateTouch?o.touchEventsTouch:o.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:v(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const n=i.minTranslate(),r=(i.maxTranslate()-n)*e+n;i.translateTo(r,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((i=>{const n=e.getSlideClasses(i);t.push({slideEl:i,classNames:n}),e.emit("_slideClass",i,n)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:i,slides:n,slidesGrid:r,slidesSizesGrid:o,size:s,activeIndex:a}=this;let l=1;if(i.centeredSlides){let e,t=n[a].swiperSlideSize;for(let i=a+1;is&&(e=!0));for(let i=a-1;i>=0;i-=1)n[i]&&!e&&(t+=n[i].swiperSlideSize,l+=1,t>s&&(e=!0))}else if("current"===e)for(let e=a+1;e=0;e-=1)r[a]-r[e]1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),r||n()),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const i=this,n=i.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(i.$el.removeClass(`${i.params.containerModifierClass}${n}`).addClass(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const i=g(e||t.params.el);if(!(e=i[0]))return!1;e.swiper=t;const n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=g(e.shadowRoot.querySelector(n()));return t.children=e=>i.children(e),t}return i.children?i.children(n()):g(i).children(n())})();if(0===r.length&&t.params.createElements){const e=s().createElement("div");r=g(e),e.className=t.params.wrapperClass,i.append(e),i.children(`.${t.params.slideClass}`).each((e=>{r.append(e)}))}return Object.assign(t,{$el:i,el:e,$wrapperEl:r,wrapperEl:r[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===r.css("display")}),!0}init(e){const t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:n,$el:r,$wrapperEl:o,slides:s}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttr("style"),o.removeAttr("style"),s&&s.length&&s.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((e=>{i.off(e)})),!1!==e&&(i.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(i)),i.destroyed=!0),null}static extendDefaults(e){S(X,e)}static get extendedDefaults(){return X}static get defaults(){return q}static installModule(e){Y.prototype.__modules__||(Y.prototype.__modules__=[]);const t=Y.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>Y.installModule(e))),Y):(Y.installModule(e),Y)}}Object.keys(J).forEach((e=>{Object.keys(J[e]).forEach((t=>{Y.prototype[t]=J[e][t]}))})),Y.use([function(e){let{swiper:t,on:i,emit:n}=e;const r=l();let o=null,s=null;const a=()=>{t&&!t.destroyed&&t.initialized&&(n("beforeResize"),n("resize"))},p=()=>{t&&!t.destroyed&&t.initialized&&n("orientationchange")};i("init",(()=>{t.params.resizeObserver&&void 0!==r.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver((e=>{s=r.requestAnimationFrame((()=>{const{width:i,height:n}=t;let r=i,o=n;e.forEach((e=>{let{contentBoxSize:i,contentRect:n,target:s}=e;s&&s!==t.el||(r=n?n.width:(i[0]||i).inlineSize,o=n?n.height:(i[0]||i).blockSize)})),r===i&&o===n||a()}))})),o.observe(t.el)):(r.addEventListener("resize",a),r.addEventListener("orientationchange",p))})),i("destroy",(()=>{s&&r.cancelAnimationFrame(s),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",p)}))},function(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const o=[],s=l(),a=function(e,t){void 0===t&&(t={});const i=new(s.MutationObserver||s.WebkitMutationObserver)((e=>{if(1===e.length)return void r("observerUpdate",e[0]);const t=function(){r("observerUpdate",e[0])};s.requestAnimationFrame?s.requestAnimationFrame(t):s.setTimeout(t,0)}));i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),o.push(i)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t{o.forEach((e=>{e.disconnect()})),o.splice(0,o.length)}))}]);const K=Y;function Q(e){let t,{swiper:i,extendParams:n,on:r,emit:o}=e;function s(e,t){const n=i.params.virtual;if(n.cache&&i.virtual.cache[t])return i.virtual.cache[t];const r=n.renderSlide?g(n.renderSlide.call(i,e,t)):g(`
${e}
`);return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",t),n.cache&&(i.virtual.cache[t]=r),r}function a(e){const{slidesPerView:t,slidesPerGroup:n,centeredSlides:r}=i.params,{addSlidesBefore:a,addSlidesAfter:l}=i.params.virtual,{from:p,to:c,slides:u,slidesGrid:d,offset:h}=i.virtual;i.params.cssMode||i.updateActiveIndex();const f=i.activeIndex||0;let m,g,y;m=i.rtlTranslate?"right":i.isHorizontal()?"left":"top",r?(g=Math.floor(t/2)+n+l,y=Math.floor(t/2)+n+a):(g=t+(n-1)+l,y=n+a);const v=Math.max((f||0)-y,0),b=Math.min((f||0)+g,u.length-1),C=(i.slidesGrid[v]||0)-(i.slidesGrid[0]||0);function w(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.lazy&&i.params.lazy.enabled&&i.lazy.load(),o("virtualUpdate")}if(Object.assign(i.virtual,{from:v,to:b,offset:C,slidesGrid:i.slidesGrid}),p===v&&c===b&&!e)return i.slidesGrid!==d&&C!==h&&i.slides.css(m,`${C}px`),i.updateProgress(),void o("virtualUpdate");if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:C,from:v,to:b,slides:function(){const e=[];for(let t=v;t<=b;t+=1)e.push(u[t]);return e}()}),void(i.params.virtual.renderExternalUpdate?w():o("virtualUpdate"));const S=[],E=[];if(e)i.$wrapperEl.find(`.${i.params.slideClass}`).remove();else for(let e=p;e<=c;e+=1)(eb)&&i.$wrapperEl.find(`.${i.params.slideClass}[data-swiper-slide-index="${e}"]`).remove();for(let t=0;t=v&&t<=b&&(void 0===c||e?E.push(t):(t>c&&E.push(t),t{i.$wrapperEl.append(s(u[e],e))})),S.sort(((e,t)=>t-e)).forEach((e=>{i.$wrapperEl.prepend(s(u[e],e))})),i.$wrapperEl.children(".swiper-slide").css(m,`${C}px`),w()}n({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}}),i.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]},r("beforeInit",(()=>{i.params.virtual.enabled&&(i.virtual.slides=i.params.virtual.slides,i.classNames.push(`${i.params.containerModifierClass}virtual`),i.params.watchSlidesProgress=!0,i.originalParams.watchSlidesProgress=!0,i.params.initialSlide||a())})),r("setTranslate",(()=>{i.params.virtual.enabled&&(i.params.cssMode&&!i._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{a()}),100)):a())})),r("init update resize",(()=>{i.params.virtual.enabled&&i.params.cssMode&&E(i.wrapperEl,"--swiper-virtual-size",`${i.virtualSize}px`)})),Object.assign(i.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t{const n=e[i],o=n.attr("data-swiper-slide-index");o&&n.attr("data-swiper-slide-index",parseInt(o,10)+r),t[parseInt(i,10)+r]=n})),i.virtual.cache=t}a(!0),i.slideTo(n,0)},removeSlide:function(e){if(null==e)return;let t=i.activeIndex;if(Array.isArray(e))for(let n=e.length-1;n>=0;n-=1)i.virtual.slides.splice(e[n],1),i.params.virtual.cache&&delete i.virtual.cache[e[n]],e[n]0&&0===t.$el.parents(`.${t.params.slideActiveClass}`).length)return;const n=t.$el,r=n[0].clientWidth,o=n[0].clientHeight,s=a.innerWidth,l=a.innerHeight,p=t.$el.offset();i&&(p.left-=t.$el[0].scrollLeft);const c=[[p.left,p.top],[p.left+r,p.top],[p.left,p.top+o],[p.left+r,p.top+o]];for(let t=0;t=0&&i[0]<=s&&i[1]>=0&&i[1]<=l){if(0===i[0]&&0===i[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((p||c||u||d)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),((c||d)&&!i||(p||u)&&i)&&t.slideNext(),((p||u)&&!i||(c||d)&&i)&&t.slidePrev()):((p||c||h||f)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),(c||f)&&t.slideNext(),(p||h)&&t.slidePrev()),r("keyPress",s)}}function c(){t.keyboard.enabled||(g(o).on("keydown",p),t.keyboard.enabled=!0)}function u(){t.keyboard.enabled&&(g(o).off("keydown",p),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),n("init",(()=>{t.params.keyboard.enabled&&c()})),n("destroy",(()=>{t.keyboard.enabled&&u()})),Object.assign(t.keyboard,{enable:c,disable:u})}function ee(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const o=l();let s;i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),t.mousewheel={enabled:!1};let a,p=v();const c=[];function u(){t.enabled&&(t.mouseEntered=!0)}function d(){t.enabled&&(t.mouseEntered=!1)}function h(e){return!(t.params.mousewheel.thresholdDelta&&e.delta=6&&v()-p<60)&&(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),r("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),r("scroll",e.raw)),p=(new o.Date).getTime(),1))}function f(e){let i=e,n=!0;if(!t.enabled)return;const o=t.params.mousewheel;t.params.cssMode&&i.preventDefault();let l=t.$el;if("container"!==t.params.mousewheel.eventsTarget&&(l=g(t.params.mousewheel.eventsTarget)),!t.mouseEntered&&!l[0].contains(i.target)&&!o.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);let p=0;const u=t.rtlTranslate?-1:1,d=function(e){let t=0,i=0,n=0,r=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),n=10*t,r=10*i,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),e.shiftKey&&!n&&(n=r,r=0),(n||r)&&e.deltaMode&&(1===e.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!t&&(t=n<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:t,spinY:i,pixelX:n,pixelY:r}}(i);if(o.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(d.pixelX)>Math.abs(d.pixelY)))return!0;p=-d.pixelX*u}else{if(!(Math.abs(d.pixelY)>Math.abs(d.pixelX)))return!0;p=-d.pixelY}else p=Math.abs(d.pixelX)>Math.abs(d.pixelY)?-d.pixelX*u:-d.pixelY;if(0===p)return!0;o.invert&&(p=-p);let f=t.getTranslate()+p*o.sensitivity;if(f>=t.minTranslate()&&(f=t.minTranslate()),f<=t.maxTranslate()&&(f=t.maxTranslate()),n=!!t.params.loop||!(f===t.minTranslate()||f===t.maxTranslate()),n&&t.params.nested&&i.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:v(),delta:Math.abs(p),direction:Math.sign(p)},n=a&&e.time=t.minTranslate()&&(l=t.minTranslate()),l<=t.maxTranslate()&&(l=t.maxTranslate()),t.setTransition(0),t.setTranslate(l),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!u&&t.isBeginning||!d&&t.isEnd)&&t.updateSlidesClasses(),t.params.freeMode.sticky){clearTimeout(s),s=void 0,c.length>=15&&c.shift();const i=c.length?c[c.length-1]:void 0,n=c[0];if(c.push(e),i&&(e.delta>i.delta||e.direction!==i.direction))c.splice(0);else if(c.length>=15&&e.time-n.time<500&&n.delta-e.delta>=1&&e.delta<=6){const i=p>0?.8:.2;a=e,c.splice(0),s=y((()=>{t.slideToClosest(t.params.speed,!0,void 0,i)}),0)}s||(s=y((()=>{a=e,c.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)}),500))}if(n||r("scroll",i),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),l===t.minTranslate()||l===t.maxTranslate())return!0}}else{const i={time:v(),delta:Math.abs(p),direction:Math.sign(p),raw:e};c.length>=2&&c.shift();const n=c.length?c[c.length-1]:void 0;if(c.push(i),n?(i.direction!==n.direction||i.delta>n.delta||i.time>n.time+150)&&h(i):h(i),function(e){const i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges)return!0;return!1}(i))return!0}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}function m(e){let i=t.$el;"container"!==t.params.mousewheel.eventsTarget&&(i=g(t.params.mousewheel.eventsTarget)),i[e]("mouseenter",u),i[e]("mouseleave",d),i[e]("wheel",f)}function b(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",f),!0):!t.mousewheel.enabled&&(m("on"),t.mousewheel.enabled=!0,!0)}function C(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,f),!0):!!t.mousewheel.enabled&&(m("off"),t.mousewheel.enabled=!1,!0)}n("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&C(),t.params.mousewheel.enabled&&b()})),n("destroy",(()=>{t.params.cssMode&&b(),t.mousewheel.enabled&&C()})),Object.assign(t.mousewheel,{enable:b,disable:C})}function te(e,t,i,n){const r=s();return e.params.createElements&&Object.keys(n).forEach((o=>{if(!i[o]&&!0===i.auto){let s=e.$el.children(`.${n[o]}`)[0];s||(s=r.createElement("div"),s.className=n[o],e.$el.append(s)),i[o]=s,t[o]=s}})),i}function ie(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;function o(e){let i;return e&&(i=g(e),t.params.uniqueNavElements&&"string"==typeof e&&i.length>1&&1===t.$el.find(e).length&&(i=t.$el.find(e))),i}function s(e,i){const n=t.params.navigation;e&&e.length>0&&(e[i?"addClass":"removeClass"](n.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=i),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](n.lockClass))}function a(){if(t.params.loop)return;const{$nextEl:e,$prevEl:i}=t.navigation;s(i,t.isBeginning&&!t.params.rewind),s(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),r("navigationPrev"))}function p(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),r("navigationNext"))}function c(){const e=t.params.navigation;if(t.params.navigation=te(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;const i=o(e.nextEl),n=o(e.prevEl);i&&i.length>0&&i.on("click",p),n&&n.length>0&&n.on("click",l),Object.assign(t.navigation,{$nextEl:i,nextEl:i&&i[0],$prevEl:n,prevEl:n&&n[0]}),t.enabled||(i&&i.addClass(e.lockClass),n&&n.addClass(e.lockClass))}function u(){const{$nextEl:e,$prevEl:i}=t.navigation;e&&e.length&&(e.off("click",p),e.removeClass(t.params.navigation.disabledClass)),i&&i.length&&(i.off("click",l),i.removeClass(t.params.navigation.disabledClass))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},n("init",(()=>{!1===t.params.navigation.enabled?d():(c(),a())})),n("toEdge fromEdge lock unlock",(()=>{a()})),n("destroy",(()=>{u()})),n("enable disable",(()=>{const{$nextEl:e,$prevEl:i}=t.navigation;e&&e[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),i&&i[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)})),n("click",((e,i)=>{const{$nextEl:n,$prevEl:o}=t.navigation,s=i.target;if(t.params.navigation.hideOnClick&&!g(s).is(o)&&!g(s).is(n)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;let e;n?e=n.hasClass(t.params.navigation.hiddenClass):o&&(e=o.hasClass(t.params.navigation.hiddenClass)),r(!0===e?"navigationShow":"navigationHide"),n&&n.toggleClass(t.params.navigation.hiddenClass),o&&o.toggleClass(t.params.navigation.hiddenClass)}}));const d=()=>{t.$el.addClass(t.params.navigation.navigationDisabledClass),u()};Object.assign(t.navigation,{enable:()=>{t.$el.removeClass(t.params.navigation.navigationDisabledClass),c(),a()},disable:d,update:a,init:c,destroy:u})}function ne(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function re(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const o="swiper-pagination";let s;i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),t.pagination={el:null,$el:null,bullets:[]};let a=0;function l(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length}function p(e,i){const{bulletActiveClass:n}=t.params.pagination;e[i]().addClass(`${n}-${i}`)[i]().addClass(`${n}-${i}-${i}`)}function c(){const e=t.rtl,i=t.params.pagination;if(l())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,o=t.pagination.$el;let c;const u=t.params.loop?Math.ceil((n-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(c=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),c>n-1-2*t.loopedSlides&&(c-=n-2*t.loopedSlides),c>u-1&&(c-=u),c<0&&"bullets"!==t.params.paginationType&&(c=u+c)):c=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const n=t.pagination.bullets;let r,l,u;if(i.dynamicBullets&&(s=n.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),o.css(t.isHorizontal()?"width":"height",s*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==t.previousIndex&&(a+=c-(t.previousIndex-t.loopedSlides||0),a>i.dynamicMainBullets-1?a=i.dynamicMainBullets-1:a<0&&(a=0)),r=Math.max(c-a,0),l=r+(Math.min(n.length,i.dynamicMainBullets)-1),u=(l+r)/2),n.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${i.bulletActiveClass}${e}`)).join(" ")),o.length>1)n.each((e=>{const t=g(e),n=t.index();n===c&&t.addClass(i.bulletActiveClass),i.dynamicBullets&&(n>=r&&n<=l&&t.addClass(`${i.bulletActiveClass}-main`),n===r&&p(t,"prev"),n===l&&p(t,"next"))}));else{const e=n.eq(c),o=e.index();if(e.addClass(i.bulletActiveClass),i.dynamicBullets){const e=n.eq(r),s=n.eq(l);for(let e=r;e<=l;e+=1)n.eq(e).addClass(`${i.bulletActiveClass}-main`);if(t.params.loop)if(o>=n.length){for(let e=i.dynamicMainBullets;e>=0;e-=1)n.eq(n.length-e).addClass(`${i.bulletActiveClass}-main`);n.eq(n.length-i.dynamicMainBullets-1).addClass(`${i.bulletActiveClass}-prev`)}else p(e,"prev"),p(s,"next");else p(e,"prev"),p(s,"next")}}if(i.dynamicBullets){const r=Math.min(n.length,i.dynamicMainBullets+4),o=(s*r-s)/2-u*s,a=e?"right":"left";n.css(t.isHorizontal()?a:"top",`${o}px`)}}if("fraction"===i.type&&(o.find(ne(i.currentClass)).text(i.formatFractionCurrent(c+1)),o.find(ne(i.totalClass)).text(i.formatFractionTotal(u))),"progressbar"===i.type){let e;e=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const n=(c+1)/u;let r=1,s=1;"horizontal"===e?r=n:s=n,o.find(ne(i.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${r}) scaleY(${s})`).transition(t.params.speed)}"custom"===i.type&&i.renderCustom?(o.html(i.renderCustom(t,c+1,u)),r("paginationRender",o[0])):r("paginationUpdate",o[0]),t.params.watchOverflow&&t.enabled&&o[t.isLocked?"addClass":"removeClass"](i.lockClass)}function u(){const e=t.params.pagination;if(l())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,n=t.pagination.$el;let o="";if("bullets"===e.type){let r=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&r>i&&(r=i);for(let i=0;i`;n.html(o),t.pagination.bullets=n.find(ne(e.bulletClass))}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):` / `,n.html(o)),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):``,n.html(o)),"custom"!==e.type&&r("paginationRender",t.pagination.$el[0])}function d(){t.params.pagination=te(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let i=g(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&(i=t.$el.find(e.el),i.length>1&&(i=i.filter((e=>g(e).parents(".swiper")[0]===t.el)))),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),i.addClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(i.addClass(`${e.modifierClass}${e.type}-dynamic`),a=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.addClass(e.progressbarOppositeClass),e.clickable&&i.on("click",ne(e.bulletClass),(function(e){e.preventDefault();let i=g(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)})),Object.assign(t.pagination,{$el:i,el:i[0]}),t.enabled||i.addClass(e.lockClass))}function h(){const e=t.params.pagination;if(l())return;const i=t.pagination.$el;i.removeClass(e.hiddenClass),i.removeClass(e.modifierClass+e.type),i.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&i.off("click",ne(e.bulletClass))}n("init",(()=>{!1===t.params.pagination.enabled?f():(d(),u(),c())})),n("activeIndexChange",(()=>{(t.params.loop||void 0===t.snapIndex)&&c()})),n("snapIndexChange",(()=>{t.params.loop||c()})),n("slidesLengthChange",(()=>{t.params.loop&&(u(),c())})),n("snapGridLengthChange",(()=>{t.params.loop||(u(),c())})),n("destroy",(()=>{h()})),n("enable disable",(()=>{const{$el:e}=t.pagination;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)})),n("lock unlock",(()=>{c()})),n("click",((e,i)=>{const n=i.target,{$el:o}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o&&o.length>0&&!g(n).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&n===t.navigation.nextEl||t.navigation.prevEl&&n===t.navigation.prevEl))return;const e=o.hasClass(t.params.pagination.hiddenClass);r(!0===e?"paginationShow":"paginationHide"),o.toggleClass(t.params.pagination.hiddenClass)}}));const f=()=>{t.$el.addClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.addClass(t.params.pagination.paginationDisabledClass),h()};Object.assign(t.pagination,{enable:()=>{t.$el.removeClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.removeClass(t.params.pagination.paginationDisabledClass),d(),u(),c()},disable:f,render:u,update:c,init:d,destroy:h})}function oe(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const o=s();let a,l,p,c,u=!1,d=null,h=null;function f(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:i,progress:n}=t,{$dragEl:r,$el:o}=e,s=t.params.scrollbar;let a=l,c=(p-l)*n;i?(c=-c,c>0?(a=l-c,c=0):-c+l>p&&(a=p+c)):c<0?(a=l+c,c=0):c+l>p&&(a=p-c),t.isHorizontal()?(r.transform(`translate3d(${c}px, 0, 0)`),r[0].style.width=`${a}px`):(r.transform(`translate3d(0px, ${c}px, 0)`),r[0].style.height=`${a}px`),s.hide&&(clearTimeout(d),o[0].style.opacity=1,d=setTimeout((()=>{o[0].style.opacity=0,o.transition(400)}),1e3))}function m(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:i,$el:n}=e;i[0].style.width="",i[0].style.height="",p=t.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,c=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),l="auto"===t.params.scrollbar.dragSize?p*c:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?i[0].style.width=`${l}px`:i[0].style.height=`${l}px`,n[0].style.display=c>=1?"none":"",t.params.scrollbar.hide&&(n[0].style.opacity=0),t.params.watchOverflow&&t.enabled&&e.$el[t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}function v(e){return t.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY}function b(e){const{scrollbar:i,rtlTranslate:n}=t,{$el:r}=i;let o;o=(v(e)-r.offset()[t.isHorizontal()?"left":"top"]-(null!==a?a:l/2))/(p-l),o=Math.max(Math.min(o,1),0),n&&(o=1-o);const s=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*o;t.updateProgress(s),t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}function C(e){const i=t.params.scrollbar,{scrollbar:n,$wrapperEl:o}=t,{$el:s,$dragEl:l}=n;u=!0,a=e.target===l[0]||e.target===l?v(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),o.transition(100),l.transition(100),b(e),clearTimeout(h),s.transition(0),i.hide&&s.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),r("scrollbarDragStart",e)}function w(e){const{scrollbar:i,$wrapperEl:n}=t,{$el:o,$dragEl:s}=i;u&&(e.preventDefault?e.preventDefault():e.returnValue=!1,b(e),n.transition(0),o.transition(0),s.transition(0),r("scrollbarDragMove",e))}function S(e){const i=t.params.scrollbar,{scrollbar:n,$wrapperEl:o}=t,{$el:s}=n;u&&(u=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),o.transition("")),i.hide&&(clearTimeout(h),h=y((()=>{s.css("opacity",0),s.transition(400)}),1e3)),r("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())}function E(e){const{scrollbar:i,touchEventsTouch:n,touchEventsDesktop:r,params:s,support:a}=t,l=i.$el;if(!l)return;const p=l[0],c=!(!a.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},u=!(!a.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};if(!p)return;const d="on"===e?"addEventListener":"removeEventListener";a.touch?(p[d](n.start,C,c),p[d](n.move,w,c),p[d](n.end,S,u)):(p[d](r.start,C,c),o[d](r.move,w,c),o[d](r.end,S,u))}function x(){const{scrollbar:e,$el:i}=t;t.params.scrollbar=te(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const n=t.params.scrollbar;if(!n.el)return;let r=g(n.el);t.params.uniqueNavElements&&"string"==typeof n.el&&r.length>1&&1===i.find(n.el).length&&(r=i.find(n.el)),r.addClass(t.isHorizontal()?n.horizontalClass:n.verticalClass);let o=r.find(`.${t.params.scrollbar.dragClass}`);0===o.length&&(o=g(`
`),r.append(o)),Object.assign(e,{$el:r,el:r[0],$dragEl:o,dragEl:o[0]}),n.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&E("on"),r&&r[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}function P(){const e=t.params.scrollbar,i=t.scrollbar.$el;i&&i.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.params.scrollbar.el&&t.scrollbar.el&&E("off")}i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null},n("init",(()=>{!1===t.params.scrollbar.enabled?_():(x(),m(),f())})),n("update resize observerUpdate lock unlock",(()=>{m()})),n("setTranslate",(()=>{f()})),n("setTransition",((e,i)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)}(i)})),n("enable disable",(()=>{const{$el:e}=t.scrollbar;e&&e[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)})),n("destroy",(()=>{P()}));const _=()=>{t.$el.addClass(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.$el&&t.scrollbar.$el.addClass(t.params.scrollbar.scrollbarDisabledClass),P()};Object.assign(t.scrollbar,{enable:()=>{t.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.$el&&t.scrollbar.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass),x(),m(),f()},disable:_,updateSize:m,setTranslate:f,init:x,destroy:P})}function se(e){let{swiper:t,extendParams:i,on:n}=e;i({parallax:{enabled:!1}});const r=(e,i)=>{const{rtl:n}=t,r=g(e),o=n?-1:1,s=r.attr("data-swiper-parallax")||"0";let a=r.attr("data-swiper-parallax-x"),l=r.attr("data-swiper-parallax-y");const p=r.attr("data-swiper-parallax-scale"),c=r.attr("data-swiper-parallax-opacity");if(a||l?(a=a||"0",l=l||"0"):t.isHorizontal()?(a=s,l="0"):(l=s,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*i*o+"%":a*i*o+"px",l=l.indexOf("%")>=0?parseInt(l,10)*i+"%":l*i+"px",null!=c){const e=c-(c-1)*(1-Math.abs(i));r[0].style.opacity=e}if(null==p)r.transform(`translate3d(${a}, ${l}, 0px)`);else{const e=p-(p-1)*(1-Math.abs(i));r.transform(`translate3d(${a}, ${l}, 0px) scale(${e})`)}},o=()=>{const{$el:e,slides:i,progress:n,snapGrid:o}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{r(e,n)})),i.each(((e,i)=>{let s=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(s+=Math.ceil(i/2)-n*(o.length-1)),s=Math.min(Math.max(s,-1),1),g(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{r(e,s)}))}))};n("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),n("init",(()=>{t.params.parallax.enabled&&o()})),n("setTranslate",(()=>{t.params.parallax.enabled&&o()})),n("setTransition",((e,i)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{$el:i}=t;i.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t=>{const i=g(t);let n=parseInt(i.attr("data-swiper-parallax-duration"),10)||e;0===e&&(n=0),i.transition(n)}))}(i)}))}function ae(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const o=l();i({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let s,a,p,c=1,u=!1;const d={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},h={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},f={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let m=1;function y(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,n=e.targetTouches[1].pageX,r=e.targetTouches[1].pageY;return Math.sqrt((n-t)**2+(r-i)**2)}function v(e){const i=t.support,n=t.params.zoom;if(a=!1,p=!1,!i.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;a=!0,d.scaleStart=y(e)}d.$slideEl&&d.$slideEl.length||(d.$slideEl=g(e.target).closest(`.${t.params.slideClass}`),0===d.$slideEl.length&&(d.$slideEl=t.slides.eq(t.activeIndex)),d.$imageEl=d.$slideEl.find(`.${n.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),d.$imageWrapEl=d.$imageEl.parent(`.${n.containerClass}`),d.maxRatio=d.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==d.$imageWrapEl.length)?(d.$imageEl&&d.$imageEl.transition(0),u=!0):d.$imageEl=void 0}function C(e){const i=t.support,n=t.params.zoom,r=t.zoom;if(!i.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;p=!0,d.scaleMove=y(e)}d.$imageEl&&0!==d.$imageEl.length?(i.gestures?r.scale=e.scale*c:r.scale=d.scaleMove/d.scaleStart*c,r.scale>d.maxRatio&&(r.scale=d.maxRatio-1+(r.scale-d.maxRatio+1)**.5),r.scaleh.touchesStart.x))return void(h.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(h.minY)===Math.floor(h.startY)&&h.touchesCurrent.yh.touchesStart.y))return void(h.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),h.isMoved=!0,h.currentX=h.touchesCurrent.x-h.touchesStart.x+h.startX,h.currentY=h.touchesCurrent.y-h.touchesStart.y+h.startY,h.currentXh.maxX&&(h.currentX=h.maxX-1+(h.currentX-h.maxX+1)**.8),h.currentYh.maxY&&(h.currentY=h.maxY-1+(h.currentY-h.maxY+1)**.8),f.prevPositionX||(f.prevPositionX=h.touchesCurrent.x),f.prevPositionY||(f.prevPositionY=h.touchesCurrent.y),f.prevTime||(f.prevTime=Date.now()),f.x=(h.touchesCurrent.x-f.prevPositionX)/(Date.now()-f.prevTime)/2,f.y=(h.touchesCurrent.y-f.prevPositionY)/(Date.now()-f.prevTime)/2,Math.abs(h.touchesCurrent.x-f.prevPositionX)<2&&(f.x=0),Math.abs(h.touchesCurrent.y-f.prevPositionY)<2&&(f.y=0),f.prevPositionX=h.touchesCurrent.x,f.prevPositionY=h.touchesCurrent.y,f.prevTime=Date.now(),d.$imageWrapEl.transform(`translate3d(${h.currentX}px, ${h.currentY}px,0)`)}}function E(){const e=t.zoom;d.$slideEl&&t.previousIndex!==t.activeIndex&&(d.$imageEl&&d.$imageEl.transform("translate3d(0,0,0) scale(1)"),d.$imageWrapEl&&d.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,c=1,d.$slideEl=void 0,d.$imageEl=void 0,d.$imageWrapEl=void 0)}function x(e){const i=t.zoom,n=t.params.zoom;if(d.$slideEl||(e&&e.target&&(d.$slideEl=g(e.target).closest(`.${t.params.slideClass}`)),d.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?d.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):d.$slideEl=t.slides.eq(t.activeIndex)),d.$imageEl=d.$slideEl.find(`.${n.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),d.$imageWrapEl=d.$imageEl.parent(`.${n.containerClass}`)),!d.$imageEl||0===d.$imageEl.length||!d.$imageWrapEl||0===d.$imageWrapEl.length)return;let r,s,a,l,p,u,f,m,y,v,b,C,w,S,E,x,P,_;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),d.$slideEl.addClass(`${n.zoomedSlideClass}`),void 0===h.touchesStart.x&&e?(r="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,s="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(r=h.touchesStart.x,s=h.touchesStart.y),i.scale=d.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,c=d.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,e?(P=d.$slideEl[0].offsetWidth,_=d.$slideEl[0].offsetHeight,a=d.$slideEl.offset().left+o.scrollX,l=d.$slideEl.offset().top+o.scrollY,p=a+P/2-r,u=l+_/2-s,y=d.$imageEl[0].offsetWidth,v=d.$imageEl[0].offsetHeight,b=y*i.scale,C=v*i.scale,w=Math.min(P/2-b/2,0),S=Math.min(_/2-C/2,0),E=-w,x=-S,f=p*i.scale,m=u*i.scale,fE&&(f=E),mx&&(m=x)):(f=0,m=0),d.$imageWrapEl.transition(300).transform(`translate3d(${f}px, ${m}px,0)`),d.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${i.scale})`)}function P(){const e=t.zoom,i=t.params.zoom;d.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?d.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):d.$slideEl=t.slides.eq(t.activeIndex),d.$imageEl=d.$slideEl.find(`.${i.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),d.$imageWrapEl=d.$imageEl.parent(`.${i.containerClass}`)),d.$imageEl&&0!==d.$imageEl.length&&d.$imageWrapEl&&0!==d.$imageWrapEl.length&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,c=1,d.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),d.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),d.$slideEl.removeClass(`${i.zoomedSlideClass}`),d.$slideEl=void 0)}function _(e){const i=t.zoom;i.scale&&1!==i.scale?P():x(e)}function A(){const e=t.support;return{passiveListener:!("touchstart"!==t.touchEvents.start||!e.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture:!e.passiveListener||{passive:!1,capture:!0}}}function T(){return`.${t.params.slideClass}`}function I(e){const{passiveListener:i}=A(),n=T();t.$wrapperEl[e]("gesturestart",n,v,i),t.$wrapperEl[e]("gesturechange",n,C,i),t.$wrapperEl[e]("gestureend",n,w,i)}function O(){s||(s=!0,I("on"))}function M(){s&&(s=!1,I("off"))}function V(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const i=t.support,{passiveListener:n,activeListenerWithCapture:r}=A(),o=T();i.gestures?(t.$wrapperEl.on(t.touchEvents.start,O,n),t.$wrapperEl.on(t.touchEvents.end,M,n)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,o,v,n),t.$wrapperEl.on(t.touchEvents.move,o,C,r),t.$wrapperEl.on(t.touchEvents.end,o,w,n),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,o,w,n)),t.$wrapperEl.on(t.touchEvents.move,`.${t.params.zoom.containerClass}`,S,r)}function k(){const e=t.zoom;if(!e.enabled)return;const i=t.support;e.enabled=!1;const{passiveListener:n,activeListenerWithCapture:r}=A(),o=T();i.gestures?(t.$wrapperEl.off(t.touchEvents.start,O,n),t.$wrapperEl.off(t.touchEvents.end,M,n)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,o,v,n),t.$wrapperEl.off(t.touchEvents.move,o,C,r),t.$wrapperEl.off(t.touchEvents.end,o,w,n),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,o,w,n)),t.$wrapperEl.off(t.touchEvents.move,`.${t.params.zoom.containerClass}`,S,r)}Object.defineProperty(t.zoom,"scale",{get:()=>m,set(e){if(m!==e){const t=d.$imageEl?d.$imageEl[0]:void 0,i=d.$slideEl?d.$slideEl[0]:void 0;r("zoomChange",e,t,i)}m=e}}),n("init",(()=>{t.params.zoom.enabled&&V()})),n("destroy",(()=>{k()})),n("touchStart",((e,i)=>{t.zoom.enabled&&function(e){const i=t.device;d.$imageEl&&0!==d.$imageEl.length&&(h.isTouched||(i.android&&e.cancelable&&e.preventDefault(),h.isTouched=!0,h.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,h.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))}(i)})),n("touchEnd",((e,i)=>{t.zoom.enabled&&function(){const e=t.zoom;if(!d.$imageEl||0===d.$imageEl.length)return;if(!h.isTouched||!h.isMoved)return h.isTouched=!1,void(h.isMoved=!1);h.isTouched=!1,h.isMoved=!1;let i=300,n=300;const r=f.x*i,o=h.currentX+r,s=f.y*n,a=h.currentY+s;0!==f.x&&(i=Math.abs((o-h.currentX)/f.x)),0!==f.y&&(n=Math.abs((a-h.currentY)/f.y));const l=Math.max(i,n);h.currentX=o,h.currentY=a;const p=h.width*e.scale,c=h.height*e.scale;h.minX=Math.min(d.slideWidth/2-p/2,0),h.maxX=-h.minX,h.minY=Math.min(d.slideHeight/2-c/2,0),h.maxY=-h.minY,h.currentX=Math.max(Math.min(h.currentX,h.maxX),h.minX),h.currentY=Math.max(Math.min(h.currentY,h.maxY),h.minY),d.$imageWrapEl.transition(l).transform(`translate3d(${h.currentX}px, ${h.currentY}px,0)`)}()})),n("doubleTap",((e,i)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&_(i)})),n("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&E()})),n("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&E()})),Object.assign(t.zoom,{enable:V,disable:k,in:x,out:P,toggle:_})}function le(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;i({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),t.lazy={};let o=!1,s=!1;function a(e,i){void 0===i&&(i=!0);const n=t.params.lazy;if(void 0===e)return;if(0===t.slides.length)return;const o=t.virtual&&t.params.virtual.enabled?t.$wrapperEl.children(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`):t.slides.eq(e),s=o.find(`.${n.elementClass}:not(.${n.loadedClass}):not(.${n.loadingClass})`);!o.hasClass(n.elementClass)||o.hasClass(n.loadedClass)||o.hasClass(n.loadingClass)||s.push(o[0]),0!==s.length&&s.each((e=>{const s=g(e);s.addClass(n.loadingClass);const l=s.attr("data-background"),p=s.attr("data-src"),c=s.attr("data-srcset"),u=s.attr("data-sizes"),d=s.parent("picture");t.loadImage(s[0],p||l,c,u,!1,(()=>{if(null!=t&&t&&(!t||t.params)&&!t.destroyed){if(l?(s.css("background-image",`url("${l}")`),s.removeAttr("data-background")):(c&&(s.attr("srcset",c),s.removeAttr("data-srcset")),u&&(s.attr("sizes",u),s.removeAttr("data-sizes")),d.length&&d.children("source").each((e=>{const t=g(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))})),p&&(s.attr("src",p),s.removeAttr("data-src"))),s.addClass(n.loadedClass).removeClass(n.loadingClass),o.find(`.${n.preloaderClass}`).remove(),t.params.loop&&i){const e=o.attr("data-swiper-slide-index");o.hasClass(t.params.slideDuplicateClass)?a(t.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${t.params.slideDuplicateClass})`).index(),!1):a(t.$wrapperEl.children(`.${t.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`).index(),!1)}r("lazyImageReady",o[0],s[0]),t.params.autoHeight&&t.updateAutoHeight()}})),r("lazyImageLoad",o[0],s[0])}))}function p(){const{$wrapperEl:e,params:i,slides:n,activeIndex:r}=t,o=t.virtual&&i.virtual.enabled,l=i.lazy;let p=i.slidesPerView;function c(t){if(o){if(e.children(`.${i.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(n[t])return!0;return!1}function u(e){return o?g(e).attr("data-swiper-slide-index"):g(e).index()}if("auto"===p&&(p=0),s||(s=!0),t.params.watchSlidesProgress)e.children(`.${i.slideVisibleClass}`).each((e=>{a(o?g(e).attr("data-swiper-slide-index"):g(e).index())}));else if(p>1)for(let e=r;e1||l.loadPrevNextAmount&&l.loadPrevNextAmount>1){const e=l.loadPrevNextAmount,t=Math.ceil(p),i=Math.min(r+t+Math.max(e,t),n.length),o=Math.max(r-Math.max(t,e),0);for(let e=r+t;e0&&a(u(t));const n=e.children(`.${i.slidePrevClass}`);n.length>0&&a(u(n))}}function c(){const e=l();if(!t||t.destroyed)return;const i=t.params.lazy.scrollingElement?g(t.params.lazy.scrollingElement):g(e),n=i[0]===e,r=n?e.innerWidth:i[0].offsetWidth,s=n?e.innerHeight:i[0].offsetHeight,a=t.$el.offset(),{rtlTranslate:u}=t;let d=!1;u&&(a.left-=t.$el[0].scrollLeft);const h=[[a.left,a.top],[a.left+t.width,a.top],[a.left,a.top+t.height],[a.left+t.width,a.top+t.height]];for(let e=0;e=0&&t[0]<=r&&t[1]>=0&&t[1]<=s){if(0===t[0]&&0===t[1])continue;d=!0}}const f=!("touchstart"!==t.touchEvents.start||!t.support.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};d?(p(),i.off("scroll",c,f)):o||(o=!0,i.on("scroll",c,f))}n("beforeInit",(()=>{t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)})),n("init",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?c():p())})),n("scroll",(()=>{t.params.freeMode&&t.params.freeMode.enabled&&!t.params.freeMode.sticky&&p()})),n("scrollbarDragMove resize _freeModeNoMomentumRelease",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?c():p())})),n("transitionStart",(()=>{t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!s)&&(t.params.lazy.checkInView?c():p())})),n("transitionEnd",(()=>{t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&(t.params.lazy.checkInView?c():p())})),n("slideChange",(()=>{const{lazy:e,cssMode:i,watchSlidesProgress:n,touchReleaseOnEdges:r,resistanceRatio:o}=t.params;e.enabled&&(i||n&&(r||0===o))&&p()})),n("destroy",(()=>{t.$el&&t.$el.find(`.${t.params.lazy.loadingClass}`).removeClass(t.params.lazy.loadingClass)})),Object.assign(t.lazy,{load:p,loadInSlide:a})}function pe(e){let{swiper:t,extendParams:i,on:n}=e;function r(e,t){const i=function(){let e,t,i;return(n,r)=>{for(t=-1,e=n.length;e-t>1;)i=e+t>>1,n[i]<=r?t=i:e=i;return e}}();let n,r;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(r=i(this.x,e),n=r-1,(e-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0},this}function o(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}i({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},n("beforeInit",(()=>{t.controller.control=t.params.controller.control})),n("update",(()=>{o()})),n("resize",(()=>{o()})),n("observerUpdate",(()=>{o()})),n("setTranslate",((e,i,n)=>{t.controller.control&&t.controller.setTranslate(i,n)})),n("setTransition",((e,i,n)=>{t.controller.control&&t.controller.setTransition(i,n)})),Object.assign(t.controller,{setTranslate:function(e,i){const n=t.controller.control;let o,s;const a=t.constructor;function l(e){const i=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(function(e){t.controller.spline||(t.controller.spline=t.params.loop?new r(t.slidesGrid,e.slidesGrid):new r(t.snapGrid,e.snapGrid))}(e),s=-t.controller.spline.interpolate(-i)),s&&"container"!==t.params.controller.by||(o=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),s=(i-t.minTranslate())*o+e.minTranslate()),t.params.controller.inverse&&(s=e.maxTranslate()-s),e.updateProgress(s),e.setTranslate(s,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(n))for(let e=0;e{i.updateAutoHeight()})),i.$wrapperEl.transitionEnd((()=>{r&&(i.params.loop&&"slide"===t.params.controller.by&&i.loopFix(),i.transitionEnd())})))}if(Array.isArray(r))for(o=0;o{s(e),"BUTTON"!==e[0].tagName&&(l(e,"button"),e.on("keydown",h)),c(e,i),function(e,t){e.attr("aria-controls",t)}(e,t)},v=e=>{const i=e.target.closest(`.${t.params.slideClass}`);if(!i||!t.slides.includes(i))return;const n=t.slides.indexOf(i)===t.activeIndex,r=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(i);n||r||t.slideTo(t.slides.indexOf(i),0)},b=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&p(g(t.slides),e.itemRoleDescriptionMessage),e.slideRole&&l(g(t.slides),e.slideRole);const i=t.params.loop?t.slides.filter((e=>!e.classList.contains(t.params.slideDuplicateClass))).length:t.slides.length;e.slideLabelMessage&&t.slides.each(((n,r)=>{const o=g(n),s=t.params.loop?parseInt(o.attr("data-swiper-slide-index"),10):r;c(o,e.slideLabelMessage.replace(/\{\{index\}\}/,s+1).replace(/\{\{slidesLength\}\}/,i))}))};n("beforeInit",(()=>{r=g(``)})),n("afterInit",(()=>{t.params.a11y.enabled&&(()=>{const e=t.params.a11y;t.$el.append(r);const i=t.$el;e.containerRoleDescriptionMessage&&p(i,e.containerRoleDescriptionMessage),e.containerMessage&&c(i,e.containerMessage);const n=t.$wrapperEl,o=e.id||n.attr("id")||`swiper-wrapper-${s=16,void 0===s&&(s=16),"x".repeat(s).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var s;const a=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var l;let u,d;l=o,n.attr("id",l),function(e,t){e.attr("aria-live",t)}(n,a),b(),t.navigation&&t.navigation.$nextEl&&(u=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(d=t.navigation.$prevEl),u&&u.length&&y(u,o,e.nextSlideMessage),d&&d.length&&y(d,o,e.prevSlideMessage),m()&&t.pagination.$el.on("keydown",ne(t.params.pagination.bulletClass),h),t.$el.on("focus",v,!0)})()})),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&b()})),n("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{$nextEl:e,$prevEl:i}=t.navigation;i&&i.length>0&&(t.isBeginning?(u(i),a(i)):(d(i),s(i))),e&&e.length>0&&(t.isEnd?(u(e),a(e)):(d(e),s(e)))}()})),n("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;f()&&t.pagination.bullets.each((i=>{const n=g(i);t.params.pagination.clickable&&(s(n),t.params.pagination.renderBullet||(l(n,"button"),c(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,n.index()+1)))),n.is(`.${t.params.pagination.bulletActiveClass}`)?n.attr("aria-current","true"):n.removeAttr("aria-current")}))}()})),n("destroy",(()=>{t.params.a11y.enabled&&function(){let e,i;r&&r.length>0&&r.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(i=t.navigation.$prevEl),e&&e.off("keydown",h),i&&i.off("keydown",h),m()&&t.pagination.$el.off("keydown",ne(t.params.pagination.bulletClass),h),t.$el.off("focus",v,!0)}()}))}function ue(e){let{swiper:t,extendParams:i,on:n}=e;i({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let r=!1,o={};const s=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),a=e=>{const t=l();let i;i=e?new URL(e):t.location;const n=i.pathname.slice(1).split("/").filter((e=>""!==e)),r=n.length;return{key:n[r-2],value:n[r-1]}},p=(e,i)=>{const n=l();if(!r||!t.params.history.enabled)return;let o;o=t.params.url?new URL(t.params.url):n.location;const a=t.slides.eq(i);let p=s(a.attr("data-history"));if(t.params.history.root.length>0){let i=t.params.history.root;"/"===i[i.length-1]&&(i=i.slice(0,i.length-1)),p=`${i}/${e}/${p}`}else o.pathname.includes(e)||(p=`${e}/${p}`);t.params.history.keepQuery&&(p+=o.search);const c=n.history.state;c&&c.value===p||(t.params.history.replaceState?n.history.replaceState({value:p},null,p):n.history.pushState({value:p},null,p))},c=(e,i,n)=>{if(i)for(let r=0,o=t.slides.length;r{o=a(t.params.url),c(t.params.speed,o.value,!1)};n("init",(()=>{t.params.history.enabled&&(()=>{const e=l();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);r=!0,o=a(t.params.url),(o.key||o.value)&&(c(0,o.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",u))}})()})),n("destroy",(()=>{t.params.history.enabled&&(()=>{const e=l();t.params.history.replaceState||e.removeEventListener("popstate",u)})()})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{r&&p(t.params.history.key,t.activeIndex)})),n("slideChange",(()=>{r&&t.params.cssMode&&p(t.params.history.key,t.activeIndex)}))}function de(e){let{swiper:t,extendParams:i,emit:n,on:r}=e,o=!1;const a=s(),p=l();i({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const c=()=>{n("hashChange");const e=a.location.hash.replace("#","");if(e!==t.slides.eq(t.activeIndex).attr("data-hash")){const i=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if(void 0===i)return;t.slideTo(i)}},u=()=>{if(o&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&p.history&&p.history.replaceState)p.history.replaceState(null,null,`#${t.slides.eq(t.activeIndex).attr("data-hash")}`||""),n("hashSet");else{const e=t.slides.eq(t.activeIndex),i=e.attr("data-hash")||e.attr("data-history");a.location.hash=i||"",n("hashSet")}};r("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;o=!0;const e=a.location.hash.replace("#","");if(e){const i=0;for(let n=0,r=t.slides.length;n{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&g(p).off("hashchange",c)})),r("transitionEnd _freeModeNoMomentumRelease",(()=>{o&&u()})),r("slideChange",(()=>{o&&t.params.cssMode&&u()}))}function he(e){let t,{swiper:i,extendParams:n,on:r,emit:o}=e;function a(){const e=i.slides.eq(i.activeIndex);let n=i.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(n=e.attr("data-swiper-autoplay")||i.params.autoplay.delay),clearTimeout(t),t=y((()=>{let e;i.params.autoplay.reverseDirection?i.params.loop?(i.loopFix(),e=i.slidePrev(i.params.speed,!0,!0),o("autoplay")):i.isBeginning?i.params.autoplay.stopOnLastSlide?p():(e=i.slideTo(i.slides.length-1,i.params.speed,!0,!0),o("autoplay")):(e=i.slidePrev(i.params.speed,!0,!0),o("autoplay")):i.params.loop?(i.loopFix(),e=i.slideNext(i.params.speed,!0,!0),o("autoplay")):i.isEnd?i.params.autoplay.stopOnLastSlide?p():(e=i.slideTo(0,i.params.speed,!0,!0),o("autoplay")):(e=i.slideNext(i.params.speed,!0,!0),o("autoplay")),(i.params.cssMode&&i.autoplay.running||!1===e)&&a()}),n)}function l(){return void 0===t&&!i.autoplay.running&&(i.autoplay.running=!0,o("autoplayStart"),a(),!0)}function p(){return!!i.autoplay.running&&void 0!==t&&(t&&(clearTimeout(t),t=void 0),i.autoplay.running=!1,o("autoplayStop"),!0)}function c(e){i.autoplay.running&&(i.autoplay.paused||(t&&clearTimeout(t),i.autoplay.paused=!0,0!==e&&i.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((e=>{i.$wrapperEl[0].addEventListener(e,d)})):(i.autoplay.paused=!1,a())))}function u(){const e=s();"hidden"===e.visibilityState&&i.autoplay.running&&c(),"visible"===e.visibilityState&&i.autoplay.paused&&(a(),i.autoplay.paused=!1)}function d(e){i&&!i.destroyed&&i.$wrapperEl&&e.target===i.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((e=>{i.$wrapperEl[0].removeEventListener(e,d)})),i.autoplay.paused=!1,i.autoplay.running?a():p())}function h(){i.params.autoplay.disableOnInteraction?p():(o("autoplayPause"),c()),["transitionend","webkitTransitionEnd"].forEach((e=>{i.$wrapperEl[0].removeEventListener(e,d)}))}function f(){i.params.autoplay.disableOnInteraction||(i.autoplay.paused=!1,o("autoplayResume"),a())}i.autoplay={running:!1,paused:!1},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),r("init",(()=>{i.params.autoplay.enabled&&(l(),s().addEventListener("visibilitychange",u),i.params.autoplay.pauseOnMouseEnter&&(i.$el.on("mouseenter",h),i.$el.on("mouseleave",f)))})),r("beforeTransitionStart",((e,t,n)=>{i.autoplay.running&&(n||!i.params.autoplay.disableOnInteraction?i.autoplay.pause(t):p())})),r("sliderFirstMove",(()=>{i.autoplay.running&&(i.params.autoplay.disableOnInteraction?p():c())})),r("touchEnd",(()=>{i.params.cssMode&&i.autoplay.paused&&!i.params.autoplay.disableOnInteraction&&a()})),r("destroy",(()=>{i.$el.off("mouseenter",h),i.$el.off("mouseleave",f),i.autoplay.running&&p(),s().removeEventListener("visibilitychange",u)})),Object.assign(i.autoplay,{pause:c,run:a,start:l,stop:p})}function fe(e){let{swiper:t,extendParams:i,on:n}=e;i({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,o=!1;function s(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const i=e.clickedIndex,n=e.clickedSlide;if(n&&g(n).hasClass(t.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let r;if(r=e.params.loop?parseInt(g(e.clickedSlide).attr("data-swiper-slide-index"),10):i,t.params.loop){let e=t.activeIndex;t.slides.eq(e).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,e=t.activeIndex);const i=t.slides.eq(e).prevAll(`[data-swiper-slide-index="${r}"]`).eq(0).index(),n=t.slides.eq(e).nextAll(`[data-swiper-slide-index="${r}"]`).eq(0).index();r=void 0===i?n:void 0===n?i:n-e1&&!t.params.centeredSlides&&(r=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(r=1),r=Math.floor(r),i.slides.removeClass(o),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let e=0;e1?n:l:n-lt.previousIndex?"next":"prev"}else r=t.realIndex,o=r>t.previousIndex?"next":"prev";a&&(r+="next"===o?s:-1*s),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(r)<0&&(i.params.centeredSlides?r=r>l?r-Math.floor(n/2)+1:r+Math.floor(n/2)-1:r>l&&i.params.slidesPerGroup,i.slideTo(r,e?0:void 0))}}t.thumbs={swiper:null},n("beforeInit",(()=>{const{thumbs:e}=t.params;e&&e.swiper&&(a(),l(!0))})),n("slideChange update resize observerUpdate",(()=>{l()})),n("setTransition",((e,i)=>{const n=t.thumbs.swiper;n&&!n.destroyed&&n.setTransition(i)})),n("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&o&&e.destroy()})),Object.assign(t.thumbs,{init:a,update:l})}function me(e){let{swiper:t,extendParams:i,emit:n,once:r}=e;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){const{touchEventsData:e,touches:i}=t;0===e.velocities.length&&e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:v()})},onTouchEnd:function(e){let{currentPos:i}=e;const{params:o,$wrapperEl:s,rtlTranslate:a,snapGrid:l,touchEventsData:p}=t,c=v()-p.touchStartTime;if(i<-t.minTranslate())t.slideTo(t.activeIndex);else if(i>-t.maxTranslate())t.slides.length1){const e=p.velocities.pop(),i=p.velocities.pop(),n=e.position-i.position,r=e.time-i.time;t.velocity=n/r,t.velocity/=2,Math.abs(t.velocity)150||v()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=o.freeMode.momentumVelocityRatio,p.velocities.length=0;let e=1e3*o.freeMode.momentumRatio;const i=t.velocity*e;let c=t.translate+i;a&&(c=-c);let u,d=!1;const h=20*Math.abs(t.velocity)*o.freeMode.momentumBounceRatio;let f;if(ct.minTranslate())o.freeMode.momentumBounce?(c-t.minTranslate()>h&&(c=t.minTranslate()+h),u=t.minTranslate(),d=!0,p.allowMomentumBounce=!0):c=t.minTranslate(),o.loop&&o.centeredSlides&&(f=!0);else if(o.freeMode.sticky){let e;for(let t=0;t-c){e=t;break}c=Math.abs(l[e]-c){t.loopFix()})),0!==t.velocity){if(e=a?Math.abs((-c-t.translate)/t.velocity):Math.abs((c-t.translate)/t.velocity),o.freeMode.sticky){const i=Math.abs((a?-c:c)-t.translate),n=t.slidesSizesGrid[t.activeIndex];e=i{t&&!t.destroyed&&p.allowMomentumBounce&&(n("momentumBounce"),t.setTransition(o.speed),setTimeout((()=>{t.setTranslate(u),s.transitionEnd((()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(n("_freeModeNoMomentumRelease"),t.updateProgress(c),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,s.transitionEnd((()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(c),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(o.freeMode.sticky)return void t.slideToClosest();o.freeMode&&n("_freeModeNoMomentumRelease")}(!o.freeMode.momentum||c>=o.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})}function ge(e){let t,i,n,{swiper:r,extendParams:o}=e;o({grid:{rows:1,fill:"column"}}),r.grid={initSlides:e=>{const{slidesPerView:o}=r.params,{rows:s,fill:a}=r.params.grid;i=t/s,n=Math.floor(e/s),t=Math.floor(e/s)===e/s?e:Math.ceil(e/s)*s,"auto"!==o&&"row"===a&&(t=Math.max(t,o*s))},updateSlide:(e,o,s,a)=>{const{slidesPerGroup:l,spaceBetween:p}=r.params,{rows:c,fill:u}=r.params.grid;let d,h,f;if("row"===u&&l>1){const i=Math.floor(e/(l*c)),n=e-c*l*i,r=0===i?l:Math.min(Math.ceil((s-i*c*l)/c),l);f=Math.floor(n/r),h=n-f*r+i*l,d=h+f*t/c,o.css({"-webkit-order":d,order:d})}else"column"===u?(h=Math.floor(e/c),f=e-h*c,(h>n||h===n&&f===c-1)&&(f+=1,f>=c&&(f=0,h+=1))):(f=Math.floor(e/i),h=e-f*i);o.css(a("margin-top"),0!==f?p&&`${p}px`:"")},updateWrapperSize:(e,i,n)=>{const{spaceBetween:o,centeredSlides:s,roundLengths:a}=r.params,{rows:l}=r.params.grid;if(r.virtualSize=(e+o)*t,r.virtualSize=Math.ceil(r.virtualSize/l)-o,r.$wrapperEl.css({[n("width")]:`${r.virtualSize+o}px`}),s){i.splice(0,i.length);const e=[];for(let t=0;t=a)return void i.appendSlide(t);let l=s>e?s+1:s;const p=[];for(let t=a-1;t>=e;t-=1){const e=i.slides.eq(t);e.remove(),p.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;ee?s+t.length:s}else n.append(t);for(let e=0;e{if(i.params.effect!==t)return;i.classNames.push(`${i.params.containerModifierClass}${t}`),a&&a()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const e=s?s():{};Object.assign(i.params,e),Object.assign(i.originalParams,e)})),n("setTranslate",(()=>{i.params.effect===t&&r()})),n("setTransition",((e,n)=>{i.params.effect===t&&o(n)})),n("transitionEnd",(()=>{if(i.params.effect===t&&l){if(!p||!p().slideShadows)return;i.slides.each((e=>{i.$(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()})),l()}})),n("virtualUpdate",(()=>{i.params.effect===t&&(i.slides.length||(c=!0),requestAnimationFrame((()=>{c&&i.slides&&i.slides.length&&(r(),c=!1)})))}))}function xe(e,t){return e.transformEl?t.find(e.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function Pe(e){let{swiper:t,duration:i,transformEl:n,allSlides:r}=e;const{slides:o,activeIndex:s,$wrapperEl:a}=t;if(t.params.virtualTranslate&&0!==i){let e,i=!1;e=r?n?o.find(n):o:n?o.eq(s).find(n):o.eq(s),e.transitionEnd((()=>{if(i)return;if(!t||t.destroyed)return;i=!0,t.animating=!1;const e=["webkitTransitionEnd","transitionend"];for(let t=0;t{const{slides:e}=t,i=t.params.fadeEffect;for(let n=0;n{const{transformEl:i}=t.params.fadeEffect;(i?t.slides.find(i):t.slides).transition(e),Pe({swiper:t,duration:e,transformEl:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function Ae(e){let{swiper:t,extendParams:i,on:n}=e;i({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const r=(e,t,i)=>{let n=i?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),r=i?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===n.length&&(n=g(`
`),e.append(n)),0===r.length&&(r=g(`
`),e.append(r)),n.length&&(n[0].style.opacity=Math.max(-t,0)),r.length&&(r[0].style.opacity=Math.max(t,0))};Ee({effect:"cube",swiper:t,on:n,setTranslate:()=>{const{$el:e,$wrapperEl:i,slides:n,width:o,height:s,rtlTranslate:a,size:l,browser:p}=t,c=t.params.cubeEffect,u=t.isHorizontal(),d=t.virtual&&t.params.virtual.enabled;let h,f=0;c.shadow&&(u?(h=i.find(".swiper-cube-shadow"),0===h.length&&(h=g('
'),i.append(h)),h.css({height:`${o}px`})):(h=e.find(".swiper-cube-shadow"),0===h.length&&(h=g('
'),e.append(h))));for(let e=0;e-1&&(f=90*i+90*p,a&&(f=90*-i-90*p)),t.transform(y),c.slideShadows&&r(t,p,u)}if(i.css({"-webkit-transform-origin":`50% 50% -${l/2}px`,"transform-origin":`50% 50% -${l/2}px`}),c.shadow)if(u)h.transform(`translate3d(0px, ${o/2+c.shadowOffset}px, ${-o/2}px) rotateX(90deg) rotateZ(0deg) scale(${c.shadowScale})`);else{const e=Math.abs(f)-90*Math.floor(Math.abs(f)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),i=c.shadowScale,n=c.shadowScale/t,r=c.shadowOffset;h.transform(`scale3d(${i}, 1, ${n}) translate3d(0px, ${s/2+r}px, ${-s/2/n}px) rotateX(-90deg)`)}const m=p.isSafari||p.isWebView?-l/2:0;i.transform(`translate3d(0px,0,${m}px) rotateX(${t.isHorizontal()?0:f}deg) rotateY(${t.isHorizontal()?-f:0}deg)`),i[0].style.setProperty("--swiper-cube-translate-z",`${m}px`)},setTransition:e=>{const{$el:i,slides:n}=t;n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&i.find(".swiper-cube-shadow").transition(e)},recreateShadows:()=>{const e=t.isHorizontal();t.slides.each((t=>{const i=Math.max(Math.min(t.progress,1),-1);r(g(t),i,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function Te(e,t,i){const n="swiper-slide-shadow"+(i?`-${i}`:""),r=e.transformEl?t.find(e.transformEl):t;let o=r.children(`.${n}`);return o.length||(o=g(`
`),r.append(o)),o}function Ie(e){let{swiper:t,extendParams:i,on:n}=e;i({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}});const r=(e,i,n)=>{let r=t.isHorizontal()?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),o=t.isHorizontal()?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===r.length&&(r=Te(n,e,t.isHorizontal()?"left":"top")),0===o.length&&(o=Te(n,e,t.isHorizontal()?"right":"bottom")),r.length&&(r[0].style.opacity=Math.max(-i,0)),o.length&&(o[0].style.opacity=Math.max(i,0))};Ee({effect:"flip",swiper:t,on:n,setTranslate:()=>{const{slides:e,rtlTranslate:i}=t,n=t.params.flipEffect;for(let o=0;o{const{transformEl:i}=t.params.flipEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),Pe({swiper:t,duration:e,transformEl:i})},recreateShadows:()=>{const e=t.params.flipEffect;t.slides.each((i=>{const n=g(i);let o=n[0].progress;t.params.flipEffect.limitRotation&&(o=Math.max(Math.min(i.progress,1),-1)),r(n,o,e)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function Oe(e){let{swiper:t,extendParams:i,on:n}=e;i({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),Ee({effect:"coverflow",swiper:t,on:n,setTranslate:()=>{const{width:e,height:i,slides:n,slidesSizesGrid:r}=t,o=t.params.coverflowEffect,s=t.isHorizontal(),a=t.translate,l=s?e/2-a:i/2-a,p=s?o.rotate:-o.rotate,c=o.depth;for(let e=0,t=n.length;e0?u:0),i.length&&(i[0].style.opacity=-u>0?-u:0)}}},setTransition:e=>{const{transformEl:i}=t.params.coverflowEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function Me(e){let{swiper:t,extendParams:i,on:n}=e;i({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const r=e=>"string"==typeof e?e:`${e}px`;Ee({effect:"creative",swiper:t,on:n,setTranslate:()=>{const{slides:e,$wrapperEl:i,slidesSizesGrid:n}=t,o=t.params.creativeEffect,{progressMultiplier:s}=o,a=t.params.centeredSlides;if(a){const e=n[0]/2-t.params.slidesOffsetBefore||0;i.transform(`translateX(calc(50% - ${e}px))`)}for(let i=0;i0&&(m=o.prev,f=!0),d.forEach(((e,t)=>{d[t]=`calc(${e}px + (${r(m.translate[t])} * ${Math.abs(p*s)}))`})),h.forEach(((e,t)=>{h[t]=m.rotate[t]*Math.abs(p*s)})),n[0].style.zIndex=-Math.abs(Math.round(l))+e.length;const g=d.join(", "),y=`rotateX(${h[0]}deg) rotateY(${h[1]}deg) rotateZ(${h[2]}deg)`,v=c<0?`scale(${1+(1-m.scale)*c*s})`:`scale(${1-(1-m.scale)*c*s})`,b=c<0?1+(1-m.opacity)*c*s:1-(1-m.opacity)*c*s,C=`translate3d(${g}) ${y} ${v}`;if(f&&m.shadow||!f){let e=n.children(".swiper-slide-shadow");if(0===e.length&&m.shadow&&(e=Te(o,n)),e.length){const t=o.shadowPerProgress?p*(1/o.limitProgress):p;e[0].style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const w=xe(o,n);w.transform(C).css({opacity:b}),m.origin&&w.css("transform-origin",m.origin)}},setTransition:e=>{const{transformEl:i}=t.params.creativeEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),Pe({swiper:t,duration:e,transformEl:i,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}function Ve(e){let{swiper:t,extendParams:i,on:n}=e;i({cardsEffect:{slideShadows:!0,transformEl:null,rotate:!0}}),Ee({effect:"cards",swiper:t,on:n,setTranslate:()=>{const{slides:e,activeIndex:i}=t,n=t.params.cardsEffect,{startTranslate:r,isTouched:o}=t.touchEventsData,s=t.translate;for(let a=0;a0&&c<1&&(o||t.params.cssMode)&&s-1&&(o||t.params.cssMode)&&s>r;if(b||C){const e=(1-Math.abs((Math.abs(c)-.5)/.5))**.5;g+=-28*c*e,m+=-.5*e,y+=96*e,h=-25*e*Math.abs(c)+"%"}if(d=c<0?`calc(${d}px + (${y*Math.abs(c)}%))`:c>0?`calc(${d}px + (-${y*Math.abs(c)}%))`:`${d}px`,!t.isHorizontal()){const e=h;h=d,d=e}const w=c<0?""+(1+(1-m)*c):""+(1-(1-m)*c),S=`\n translate3d(${d}, ${h}, ${f}px)\n rotateZ(${n.rotate?g:0}deg)\n scale(${w})\n `;if(n.slideShadows){let e=l.find(".swiper-slide-shadow");0===e.length&&(e=Te(n,l)),e.length&&(e[0].style.opacity=Math.min(Math.max((Math.abs(c)-.5)/.5,0),1))}l[0].style.zIndex=-Math.abs(Math.round(p))+e.length,xe(n,l).transform(S)}},setTransition:e=>{const{transformEl:i}=t.params.cardsEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),Pe({swiper:t,duration:e,transformEl:i})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,i),o.exports}return i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i(402)})()})); +//# sourceMappingURL=adaptivecards.min.js.map \ No newline at end of file diff --git a/browser-extension/src/pages/panel/ivas-messenger-ui.min.js b/browser-extension/src/pages/panel/ivas-messenger-ui.min.js index 2327e03..256f01d 100644 --- a/browser-extension/src/pages/panel/ivas-messenger-ui.min.js +++ b/browser-extension/src/pages/panel/ivas-messenger-ui.min.js @@ -12896,12 +12896,18 @@ }), (n.$routines = { onEngagementLoad(j, J, re) { - G.onEngagementLoad && - new Function( - "store, payload, vm", - G.onEngagementLoad - )(j, J, re), - j.main.settings || j.main.setSettings(J.settings); + // Load onEngagementLoad routine if it exists + import('/src/pages/panel/onEngagementLoad.js').then(({ default: onEngagementLoad }) => { + if (onEngagementLoad) { + onEngagementLoad(j, J, re); + } + }); + // G.onEngagementLoad && + // new Function( + // "store, payload, vm", + // G.onEngagementLoad + // )(j, J, re), + // j.main.settings || j.main.setSettings(J.settings); }, beforeAddConversationEvent(j, J, re) { let _e = !1; diff --git a/browser-extension/src/pages/panel/onEngagementLoad.js b/browser-extension/src/pages/panel/onEngagementLoad.js new file mode 100644 index 0000000..ee83f60 --- /dev/null +++ b/browser-extension/src/pages/panel/onEngagementLoad.js @@ -0,0 +1,113 @@ +export default function onEngagementLoad(store, payload, vm) { + store.random = true; + store.main.setSettings(payload.settings); + + const addScript = (url, root) => { + const script = document.createElement("script"); + script.type = "text/javascript"; + script.src = url; + root.appendChild(script); + }; + const addLink = (url, root) => { + const link = document.createElement("link"); + link.type = "text/css"; + link.href = url; + link.rel = "stylesheet"; + root.appendChild(link); + }; + const waitForElm = function (selector) { + return new Promise((resolve) => { + const root = document.querySelector("body ivas-messenger-ui").shadowRoot; + if (root.querySelector(selector)) + return resolve(root.querySelector(selector)); + const observer = new MutationObserver((mutations) => { + if (root.querySelector(selector)) { + resolve(root.querySelector(selector)); + observer.disconnect(); + } + }); + observer.observe(root, { + childList: true, + subtree: true, + }); + }); + }; + + addScript( + "/src/pages/panel/adaptivecards.min.js", + document.head + ); + addLink( + "https://unpkg.com/adaptivecards-designer@2.4.3/dist/adaptivecards-defaulthost.css", + document.querySelector("body ivas-messenger-ui").shadowRoot + ); + + const destroyCard = async () => { + if (store.card) { + try { + const node = document + .querySelector("body ivas-messenger-ui") + .shadowRoot.querySelector(`div.ac-adaptiveCard`); + node.parentNode.removeChild(node); + } catch (e) {} + } + delete store.card; + }; + + fetch( + "https://router.ivastudio.verint.live/ProxyScript/run/67bca862210071627d32ef12/current/adaptiveCardHostConfig_651eeea7aa4a825a949d6d3d" + ).then(async (response) => { + AdaptiveCards.currentHostConfig = await response.json(); + }); + + vm.$watch( + () => store.conversationEvent.messages, + async (value) => { + try { + await destroyCard(); + const message = value.slice(-1)[0]; + if (message?.metadata?.outputs?.adaptiveCard) { + const selector = `div#message-${message._id}`; + const div = await waitForElm(selector); + const adaptiveCard = new AdaptiveCards.AdaptiveCard(); + adaptiveCard.hostConfig = new AdaptiveCards.HostConfig( + AdaptiveCards.currentHostConfig || AdaptiveCards.defaultHostConfig + ); + console.log(adaptiveCard.hostConfig); + adaptiveCard.parse(message.metadata.outputs.adaptiveCard); + adaptiveCard.onExecuteAction = async (action) => { + console.log(action); + await destroyCard(); + if (action instanceof AdaptiveCards.SubmitAction) { + store.conversationEvent.sendMessage({ + input: "Form Submitted", + postBack: action.data, + }); + } else if (action instanceof AdaptiveCards.ExecuteAction) { + switch (action.id) { + case "cancel": + store.conversationEvent.sendMessage({ + input: "Cancel", + postBack: { + canceled: true, + }, + }); + break; + } + } + }; + div.appendChild(adaptiveCard.render()); + div.parentElement.parentElement.scrollTop = + div.parentElement.parentElement.scrollHeight; + store.card = selector; + console.log(store); + } + } catch (e) { + console.error(e); + } + }, + { + deep: true, + } + ); +} diff --git a/browser-extension/src/pages/side-panel/index.html b/browser-extension/src/pages/side-panel/index.html index 176512c..7d1492e 100644 --- a/browser-extension/src/pages/side-panel/index.html +++ b/browser-extension/src/pages/side-panel/index.html @@ -7,6 +7,7 @@ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> +