����JFIFXX�����    $.' ",#(7),01444'9=82<.342  2!!22222222222222222222222222222222222222222222222222����"��4�� ���,�PG"Z_�4�˷����kjز�Z�,F+��_z�,�© �����zh6�٨�ic�fu���#ډb���_�N�?��wQ���5-�~�I���8����TK<5o�Iv-�����k�_U_�����~b�M��d����Ӝ�U�Hh��?]��E�w��Q���k�{��_}qFW7HTՑ��Y��F�?_�'ϔ��_�Ջt��=||I ��6�έ"�����D���/[�k�9���Y�8ds|\���Ҿp6�Ҵ���]��.����6�z<�v��@]�i%��$j��~�g��J>��no����pM[me�i$[����s�o�ᘨ�˸ nɜG-�ĨU�ycP�3.DB�li�;��hj���x7Z^�N�h������N3u{�:j�x�힞��#M&��jL P@_���� P��&��o8������9�����@Sz6�t7#O�ߋ �s}Yf�T���lmr����Z)'N��k�۞p����w\�Tȯ?�8`�O��i{wﭹW�[�r�� ��Q4F�׊���3m&L�=��h3����z~��#�\�l :�F,j@�� ʱ�wQT����8�"kJO���6�֚l����}���R�>ډK���]��y����&����p�}b��;N�1�m�r$�|��7�>e�@B�TM*-iH��g�D�)� E�m�|�ؘbҗ�a��Ҿ����t4���o���G��*oCN�rP���Q��@z,|?W[0�����:�n,jWiE��W��$~/�hp\��?��{(�0���+�Y8rΟ�+����>S-S����VN;�}�s?.����� w�9��˟<���Mq4�Wv'��{)0�1mB��V����W[�����8�/<� �%���wT^�5���b��)iM� pg�N�&ݝ��VO~�q���u���9� ����!��J27����$O-���! �:�%H��� ـ����y�ΠM=t{!S�� oK8������t<����è:a������[�����ա�H���~��w��Qz`�po�^ ����Q��n� �,uu�C�$ ^���,������8�#��:�6��e�|~���!�3�3.�\0��q��o�4`.|� ����y�Q�`~;�d�ׯ,��O�Zw�������`73�v�܋�<���Ȏ�� ـ4k��5�K�a�u�=9Yd��$>x�A�&�� j0� ���vF��� Y�|�y��� ~�6�@c��1vOp�Ig����4��l�OD���L����� R���c���j�_�uX6��3?nk��Wy�f;^*B� ��@�~a�`��Eu������+���6�L��.ü>��}y���}_�O�6�͐�:�YrG�X��kG�����l^w���~㒶sy��Iu�!� W ��X��N�7BV��O��!X�2����wvG�R�f�T#�����t�/?���%8�^�W�aT��G�cL�M���I��(J����1~�8�?aT ���]����AS�E��(��*E}� 2��#I/�׍qz��^t�̔���b�Yz4x���t�){ OH��+(E��A&�N�������XT��o��"�XC��'���)}�J�z�p� ��~5�}�^����+�6����w��c��Q�|Lp�d�H��}�(�.|����k��c4^�"�����Z?ȕ ��a<�L�!039C� �Eu�C�F�Ew�ç ;�n?�*o���B�8�bʝ���'#Rqf���M}7����]����s2tcS{�\icTx;�\��7K���P���ʇ Z O-��~��c>"��?�������P��E��O�8��@�8��G��Q�g�a�Վ���󁶠�䧘��_%#r�>�1�z�a��eb��qcPѵ��n���#L��� =��׀t� L�7�`��V���A{�C:�g���e@�w1 Xp3�c3�ġ����p��M"'-�@n4���fG��B3�DJ�8[Jo�ߐ���gK)ƛ��$���� ���8�3�����+���� �����6�ʻ���� ���S�kI�*KZlT _`���?��K����QK�d����B`�s}�>���`��*�>��,*@J�d�oF*����弝��O}�k��s��]��y�ߘ��c1G�V���<=�7��7����6�q�PT��tXԀ�!9*4�4Tހ3XΛex�46���Y��D ����� �BdemDa����\�_l,��G�/���֌7���Y�](�xTt^%�GE�����4�}bT���ڹ�����;Y)���B�Q��u��>J/J �⮶.�XԄ��j�ݳ�+E��d ��r�5�_D�1 ��o�� �B�x�΢�#���<��W�����8���R6�@g�M�.��� dr�D��>(otU��@x=��~v���2� ӣ�d�oBd��3�eO�6�㣷�����ݜ6��6Y��Qz`��S��{���\P�~z m5{J/L��1������<�e�ͅPu�b�]�ϔ���'������f�b� Zpw��c`"��i���BD@:)ִ�:�]��hv�E�w���T�l��P���"Ju�}��وV J��G6��. J/�Qgl߭�e�����@�z�Zev2u�)]կ�����7x���s�M�-<ɯ�c��r�v�����@��$�ޮ}lk���a���'����>x��O\�ZFu>�����ck#��&:��`�$�ai�>2Δ����l���oF[h��lE�ܺ�Πk:)���`�� $[6�����9�����kOw�\|���8}������ބ:��񶐕��I�A1/�=�2[�,�!��.}gN#�u����b��� ~��݊��}34q����d�E��Lc��$��"�[q�U�硬g^��%B �z���r�pJ�ru%v\h1Y�ne`ǥ:g���pQM~�^�Xi� ��`S�:V29.�P���V�?B�k�� AEvw%�_�9C�Q����wKekPؠ�\�;Io d�{ ߞo�c1eP����\� `����E=���@K<�Y���eڼ�J���w����{av�F�'�M�@/J��+9p���|]�����Iw &`��8���&M�hg��[�{��Xj��%��Ӓ�$��(����ʹN���<>�I���RY���K2�NPlL�ɀ)��&e����B+ь����( � �JTx���_?EZ� }@ 6�U���뙢ط�z��dWI�n` D����噥�[��uV��"�G&Ú����2g�}&m��?ċ�"����Om#��������� ��{�ON��"S�X��Ne��ysQ���@Fn��Vg���dX�~nj�]J�<�K]:��FW��b�������62�=��5f����JKw��bf�X�55��~J �%^����:�-�QIE��P��v�nZum� z � ~ə ���� ���ة����;�f��\v���g�8�1��f24;�V���ǔ�)����9���1\��c��v�/'Ƞ�w�������$�4�R-��t���� e�6�/�ġ �̕Ecy�J���u�B���<�W�ַ~�w[B1L۲�-JS΂�{���΃������A��20�c#��@ 0!1@AP"#2Q`$3V�%45a6�FRUq��� ����^7ׅ,$n�������+��F�`��2X'��0vM��p�L=������5��8������u�p~���.�`r�����\���O��,ư�0oS ��_�M�����l���4�kv\JSd���x���SW�<��Ae�IX����������$I���w�:S���y���›R��9�Q[���,�5�;�@]�%���u�@ *ro�lbI �� ��+���%m:�͇ZV�����u�̉����θau<�fc�.����{�4Ա� �Q����*�Sm��8\ujqs]{kN���)qO�y�_*dJ�b�7���yQqI&9�ԌK!�M}�R�;������S�T���1���i[U�ɵz�]��U)V�S6���3$K{�ߊ<�(� E]Զ[ǼENg�����'�\?#)Dkf��J���o��v���'�%ƞ�&K�u�!��b�35LX�Ϸ��63$K�a�;�9>,R��W��3�3� d�JeTYE.Mϧ��-�o�j3+y��y^�c�������VO�9NV\nd�1 ��!͕_)a�v;����թ�M�lWR1��)El��P;��yوÏ�u 3�k�5Pr6<�⒲l�!˞*��u־�n�!�l:����UNW ��%��Chx8vL'��X�@��*��)���̮��ˍ��� ���D-M�+J�U�kvK����+�x8��cY������?�Ԡ��~3mo��|�u@[XeY�C�\Kp�x8�oC�C�&����N�~3-H���� ��MX�s�u<`���~"WL��$8ξ��3���a�)|:@�m�\���^�`�@ҷ)�5p+��6���p�%i)P M���ngc�����#0Aruz���RL+xSS?���ʮ}()#�t��mˇ!��0}}y����<�e� �-ή�Ԩ��X������ MF���ԙ~l L.3���}�V뽺�v�����멬��Nl�)�2����^�Iq��a��M��qG��T�����c3#������3U�Ǎ���}��לS�|qa��ڃ�+���-��2�f����/��bz��ڐ�� �ݼ[2�ç����k�X�2�* �Z�d���J�G����M*9W���s{��w���T��x��y,�in�O�v��]���n����P�$�JB@=4�OTI�n��e�22a\����q�d���%�$��(���:���: /*�K[PR�fr\nڙdN���F�n�$�4�[�� U�zƶ����� �mʋ���,�ao�u 3�z� �x��Kn����\[��VFmbE;�_U��&V�Gg�]L�۪&#n%�$ɯ�dG���D�TI=�%+AB�Ru#��b4�1�»x�cs�YzڙJG��f��Il��d�eF'T� iA��T���uC�$����Y��H?����[!G`}���ͪ� �纤Hv\������j�Ex�K���!���OiƸ�Yj�+u-<���'q����uN�*�r\��+�]���<�wOZ.fp�ێ��,-*)V?j-kÊ#�`�r��dV����(�ݽBk�����G�ƛk�QmUڗe��Z���f}|����8�8��a���i��3'J�����~G_�^���d�8w������ R�`(�~�.��u���l�s+g�bv���W���lGc}��u���afE~1�Ue������Z�0�8�=e�� f@/�jqEKQQ�J��oN��J���W5~M>$6�Lt�;$ʳ{���^��6�{����v6���ķܰg�V�cnn �~z�x�«�,2�u�?cE+Ș�H؎�%�Za�)���X>uW�Tz�Nyo����s���FQƤ��$��*�&�LLXL)�1�" L��eO��ɟ�9=���:t��Z���c��Ž���Y?�ӭV�wv�~,Y��r�ۗ�|�y��GaF�����C�����.�+� ���v1���fήJ�����]�S��T��B��n5sW}y�$��~z�'�c ��8 ��� ,! �p��VN�S��N�N�q��y8z˱�A��4��*��'������2n<�s���^ǧ˭P�Jޮɏ�U�G�L�J�*#��<�V��t7�8����TĜ>��i}K%,���)[��z�21z ?�N�i�n1?T�I�R#��m-�����������������1����lA�`��fT5+��ܐ�c�q՝��ʐ��,���3�f2U�եmab��#ŠdQ�y>\��)�SLY����w#��.���ʑ�f��� ,"+�w�~�N�'�c�O�3F�������N<���)j��&��,-� �љ���֊�_�zS���TǦ����w�>��?�������n��U仆�V���e�����0���$�C�d���rP �m�׈e�Xm�Vu� �L��.�bֹ��� �[Դaզ���*��\y�8�Է:�Ez\�0�Kq�C b��̘��cө���Q��=0Y��s�N��S.���3.���O�o:���#���v7�[#߫ ��5�܎�L���Er4���9n��COWlG�^��0k�%<���ZB���aB_���������'=��{i�v�l�$�uC���mƎҝ{�c㱼�y]���W�i ��ߧc��m�H� m�"�"�����;Y�ߝ�Z�Ǔ�����:S#��|}�y�,/k�Ld� TA�(�AI$+I3��;Y*���Z��}|��ӧO��d�v��..#:n��f>�>���ȶI�TX��� 8��y����"d�R�|�)0���=���n4��6ⲑ�+��r<�O�܂~zh�z����7ܓ�HH�Ga롏���nCo�>������a ���~]���R���̲c?�6(�q�;5%� |�uj�~z8R=X��I�V=�|{v�Gj\gc��q����z�؋%M�ߍ����1y��#��@f^���^�>N�����#x#۹��6�Y~�?�dfPO��{��P�4��V��u1E1J �*|���%���JN��`eWu�zk M6���q t[�� ��g�G���v��WIG��u_ft����5�j�"�Y�:T��ɐ���*�;� e5���4����q$C��2d�}���� _S�L#m�Yp��O�.�C�;��c����Hi#֩%+) �Ӎ��ƲV���SYź��g |���tj��3�8���r|���V��1#;.SQ�A[���S������#���`n�+���$��$I �P\[�@�s��(�ED�z���P��])8�G#��0B��[ى��X�II�q<��9�~[Z멜�Z�⊔IWU&A>�P~�#��dp<�?����7���c��'~���5 ��+$���lx@�M�dm��n<=e�dyX��?{�|Aef ,|n3�<~z�ƃ�uۧ�����P��Y,�ӥQ�*g�#먙R�\���;T��i,��[9Qi歉����c>]9�� ��"�c��P�� �Md?٥��If�ت�u��k��/����F��9�c*9��Ǎ:�ØF���z�n*�@|I�ށ9����N3{'��[�'ͬ�Ҳ4��#}��!�V� Fu��,�,mTIk���v C�7v���B�6k�T9��1�*l� '~��ƞF��lU��'�M ����][ΩũJ_�{�i�I�n��$���L�� j��O�dx�����kza۪��#�E��Cl����x˘�o�����V���ɞ�ljr��)�/,�߬h�L��#��^��L�ф�,íMƁe�̩�NB�L�����iL����q�}��(��q��6IçJ$�W�E$��:������=#����(�K�B����zђ <��K(�N�۫K�w��^O{!����)�H���>x�������lx�?>Պ�+�>�W���,Ly!_�D���Ō�l���Q�!�[ �S����J��1��Ɛ�Y}��b,+�Lo�x�ɓ)����=�y�oh�@�꥟/��I��ѭ=��P�y9��� �ۍYӘ�e+�p�Jnϱ?V\SO%�(�t� ���=?MR�[Ș�����d�/ ��n�l��B�7j� ��!�;ӥ�/�[-���A�>�dN�sLj ��,ɪv��=1c�.SQ�O3�U���ƀ�ܽ�E����������̻��9G�ϷD�7(�}��Ävӌ\�y�_0[w ���<΍>����a_��[0+�L��F.�޺��f�>oN�T����q;���y\��bՃ��y�jH�<|q-eɏ�_?_9+P���Hp$�����[ux�K w�Mw��N�ی'$Y2�=��q���KB��P��~������Yul:�[<����F1�2�O���5=d����]Y�sw:���Ϯ���E��j,_Q��X��z`H1,#II ��d�wr��P˂@�ZJV����y$�\y�{}��^~���[:N����ߌ�U�������O��d�����ؾe��${p>G��3c���Ė�lʌ�� ת��[��`ϱ�-W����dg�I��ig2��� ��}s ��ؤ(%#sS@���~���3�X�nRG�~\jc3�v��ӍL��M[JB�T��s3}��j�Nʖ��W����;7��ç?=X�F=-�=����q�ߚ���#���='�c��7���ڑW�I(O+=:uxq�������������e2�zi+�kuG�R��������0�&e�n���iT^J����~\jy���p'dtG��s����O��3����9* �b#Ɋ�� p������[Bws�T�>d4�ۧs���nv�n���U���_�~,�v����ƜJ1��s�� �QIz��)�(lv8M���U=�;����56��G���s#�K���MP�=��LvyGd��}�VwWBF�'�à �?MH�U�g2�� ����!�p�7Q��j��ڴ����=��j�u��� Jn�A s���uM������e��Ɔ�Ҕ�!)'��8Ϣ�ٔ��ޝ(��Vp���צ֖d=�IC�J�Ǡ{q������kԭ�߸���i��@K����u�|�p=..�*+����x�����z[Aqġ#s2a�Ɗ���RR�)*HRsi�~�a &f��M��P����-K�L@��Z��Xy�'x�{}��Zm+���:�)�) IJ�-i�u���� ���ܒH��'�L(7�y�GӜq���� j��� 6ߌg1�g�o���,kر���tY�?W,���p���e���f�OQS��!K�۟cҒA�|ս�j�>��=⬒��˧L[�� �߿2JaB~R��u�:��Q�] �0H~���]�7��Ƽ�I���(}��cq '�ήET���q�?f�ab���ӥvr� �)o��-Q��_'����ᴎo��K������;��V���o��%���~OK ����*��b�f:���-ťIR��`B�5!RB@���ï�� �u �̯e\�_U�_������� g�ES��3�������QT��a����x����U<~�c?�*�#]�MW,[8O�a�x��]�1bC|踤�P��lw5V%�)�{t�<��d��5���0i�XSU��m:��Z�┵�i�"��1�^B�-��P�hJ��&)O��*�D��c�W��vM��)����}���P��ܗ-q����\mmζZ-l@�}��a��E�6��F�@��&Sg@���ݚ�M����� ȹ 4����#p�\H����dYDo�H���"��\��..R�B�H�z_�/5˘����6��KhJR��P�mƶi�m���3�,#c�co��q�a)*Pt����R�m�k�7x�D�E�\Y�閣_X�<���~�)���c[[�BP����6�Yq���S��0����%_����;��Àv�~�| VS؇ ��'O0��F0��\���U�-�d@�����7�SJ*z��3n��y��P����O���������m�~�P�3|Y��ʉr#�C�<�G~�.,! ���bqx���h~0=��!ǫ�jy����l�O,�[B��~��|9��ٱ����Xly�#�i�B��g%�S��������tˋ���e���ې��\[d�t)��.+u�|1 ������#�~Oj����hS�%��i.�~X���I�H�m��0n���c�1uE�q��cF�RF�o���7� �O�ꮧ� ���ۛ{��ʛi5�rw?׌#Qn�TW��~?y$��m\�\o����%W� ?=>S�N@�� �Ʈ���R����N�)�r"C�:��:����� �����#��qb��Y�. �6[��2K����2u�Ǧ�HYR��Q�MV��� �G�$��Q+.>�����nNH��q�^��� ����q��mM��V��D�+�-�#*�U�̒ ���p욳��u:�������IB���m���PV@O���r[b= �� ��1U�E��_Nm�yKbN�O���U�}�the�`�|6֮P>�\2�P�V���I�D�i�P�O;�9�r�mAHG�W�S]��J*�_�G��+kP�2����Ka�Z���H�'K�x�W�MZ%�O�YD�Rc+o��?�q��Ghm��d�S�oh�\�D�|:W������UA�Qc yT�q������~^�H��/��#p�CZ���T�I�1�ӏT����4��"�ČZ�����}��`w�#�*,ʹ�� ��0�i��課�Om�*�da��^gJ݅{���l�e9uF#T�ֲ��̲�ٞC"�q���ߍ ոޑ�o#�XZTp����@ o�8��(jd��xw�]�,f���`~�|,s��^����f�1���t��|��m�򸄭/ctr��5s��7�9Q�4�H1꠲BB@l9@���C�����+�wp�xu�£Yc�9��?`@#�o�mH�s2��)�=��2�.�l����jg�9$�Y�S�%*L������R�Y������7Z���,*=�䷘$�������arm�o�ϰ���UW.|�r�uf����IGw�t����Zwo��~5 ��YյhO+=8fF�)�W�7�L9lM�̘·Y���֘YLf�큹�pRF���99.A �"wz��=E\Z���'a� 2��Ǚ�#;�'}�G���*��l��^"q��+2FQ� hj��kŦ��${���ޮ-�T�٭cf�|�3#~�RJ����t��$b�(R��(����r���dx� >U b�&9,>���%E\� Ά�e�$��'�q't��*�א���ެ�b��-|d���SB�O�O��$�R+�H�)�܎�K��1m`;�J�2�Y~9��O�g8=vqD`K[�F)k�[���1m޼c��n���]s�k�z$@��)!I �x՝"v��9=�ZA=`Ɠi �:�E��)`7��vI��}d�YI�_ �o�:ob���o ���3Q��&D&�2=�� �Ά��;>�h����y.*ⅥS������Ӭ�+q&����j|UƧ����}���J0��WW< ۋS�)jQR�j���Ư��rN)�Gű�4Ѷ(�S)Ǣ�8��i��W52���No˓� ۍ%�5brOn�L�;�n��\G����=�^U�dI���8$�&���h��'���+�(������cȁ߫k�l��S^���cƗjԌE�ꭔ��gF���Ȓ��@���}O���*;e�v�WV���YJ\�]X'5��ղ�k�F��b 6R�o՜m��i N�i����>J����?��lPm�U��}>_Z&�KK��q�r��I�D�Չ~�q�3fL�:S�e>���E���-G���{L�6p�e,8��������QI��h��a�Xa��U�A'���ʂ���s�+טIjP�-��y�8ۈZ?J$��W�P� ��R�s�]��|�l(�ԓ��sƊi��o(��S0��Y� 8�T97.�����WiL��c�~�dxc�E|�2!�X�K�Ƙਫ਼�$((�6�~|d9u+�qd�^3�89��Y�6L�.I�����?���iI�q���9�)O/뚅����O���X��X�V��ZF[�یgQ�L��K1���RҖr@v�#��X�l��F���Нy�S�8�7�kF!A��sM���^rkp�jP�DyS$N���q��nxҍ!U�f�!eh�i�2�m���`�Y�I�9r�6� �TF���C}/�y�^���Η���5d�'��9A-��J��>{�_l+�`��A���[�'��յ�ϛ#w:݅�%��X�}�&�PSt�Q�"�-��\縵�/����$Ɨh�Xb�*�y��BS����;W�ջ_mc�����vt?2}1�;qS�d�d~u:2k5�2�R�~�z+|HE!)�Ǟl��7`��0�<�,�2*���Hl-��x�^����'_TV�gZA�'j� ^�2Ϊ��N7t�����?w�� �x1��f��Iz�C-Ȗ��K�^q�;���-W�DvT�7��8�Z�������� hK�(P:��Q- �8�n�Z���܃e貾�<�1�YT<�,�����"�6{/ �?�͟��|1�:�#g��W�>$����d��J��d�B��=��jf[��%rE^��il:��B���x���Sּ�1հ��,�=��*�7 fcG��#q� �eh?��2�7�����,�!7x��6�n�LC�4x��},Geǝ�tC.��vS �F�43��zz\��;QYC,6����~;RYS/6���|2���5���v��T��i����������mlv��������&� �nRh^ejR�LG�f���? �ۉҬܦƩ��|��Ȱ����>3����!v��i�ʯ�>�v��オ�X3e���_1z�Kȗ\<������!�8���V��]��?b�k41�Re��T�q��mz��TiOʦ�Z��Xq���L������q"+���2ۨ��8}�&N7XU7Ap�d�X��~�׿��&4e�o�F��� �H����O���č�c�� 懴�6���͉��+)��v;j��ݷ�� �UV�� i��� j���Y9GdÒJ1��詞�����V?h��l����l�cGs�ځ�������y�Ac�����\V3�? �� ܙg�>qH�S,�E�W�[�㺨�uch�⍸�O�}���a��>�q�6�n6����N6�q������N ! 1AQaq�0@����"2BRb�#Pr���3C`��Scst���$4D���%Td�� ?���N����a��3��m���C���w��������xA�m�q�m���m������$����4n淿t'��C"w��zU=D�\R+w�p+Y�T�&�պ@��ƃ��3ޯ?�Aﶂ��aŘ���@-�����Q�=���9D��ռ�ѻ@��M�V��P��܅�G5�f�Y<�u=,EC)�<�Fy'�"�&�չ�X~f��l�KԆV��?�� �W�N����=(� �;���{�r����ٌ�Y���h{�١������jW����P���Tc�����X�K�r��}���w�R��%��?���E��m�� �Y�q|����\lEE4���r���}�lsI�Y������f�$�=�d�yO����p�����yBj8jU�o�/�S��?�U��*������ˍ�0������u�q�m [�?f����a�� )Q�>����6#������� ?����0UQ����,IX���(6ڵ[�DI�MNލ�c&���υ�j\��X�R|,4��� j������T�hA�e��^���d���b<����n�� �즇�=!���3�^�`j�h�ȓr��jẕ�c�,ٞX����-����a�ﶔ���#�$��]w�O��Ӫ�1y%��L�Y<�wg#�ǝ�̗`�x�xa�t�w��»1���o7o5��>�m뭛C���Uƃߜ}�C���y1Xνm�F8�jI���]����H���ۺиE@I�i;r�8ӭ����V�F�Շ| ��&?�3|x�B�MuS�Ge�=Ӕ�#BE5G�����Y!z��_e��q�р/W>|-�Ci߇�t�1ޯќd�R3�u��g�=0 5��[?�#͏��q�cf���H��{ ?u�=?�?ǯ���}Z��z���hmΔ�BFTW�����<�q�(v� ��!��z���iW]*�J�V�z��gX֧A�q�&��/w���u�gYӘa���; �i=����g:��?2�dž6�ى�k�4�>�Pxs����}������G�9��3 ���)gG�R<>r h�$��'nc�h�P��Bj��J�ҧH� -��N1���N��?��~��}-q!=��_2hc�M��l�vY%UE�@|�v����M2�.Y[|y�"Eï��K�ZF,�ɯ?,q�?v�M 80jx�"�;�9vk�����+ ֧�� �ȺU��?�%�vcV��mA�6��Qg^M����A}�3�nl� QRN�l8�kkn�'�����(��M�7m9و�q���%ޟ���*h$Zk"��$�9��: �?U8�Sl��,,|ɒ��xH(ѷ����Gn�/Q�4�P��G�%��Ա8�N��!� �&�7�;���eKM7�4��9R/%����l�c>�x;������>��C�:�����t��h?aKX�bhe�ᜋ^�$�Iհ �hr7%F$�E��Fd���t��5���+�(M6�t����Ü�UU|zW�=a�Ts�Tg������dqP�Q����b'�m���1{|Y����X�N��b �P~��F^F:����k6�"�j!�� �I�r�`��1&�-$�Bevk:y���#yw��I0��x��=D�4��tU���P�ZH��ڠ底taP��6����b>�xa����Q�#� WeF��ŮNj�p�J* mQ�N����*I�-*�ȩ�F�g�3 �5��V�ʊ�ɮ�a��5F���O@{���NX��?����H�]3��1�Ri_u��������ѕ�� ����0��� F��~��:60�p�͈�S��qX#a�5>���`�o&+�<2�D����: �������ڝ�$�nP���*)�N�|y�Ej�F�5ټ�e���ihy�Z �>���k�bH�a�v��h�-#���!�Po=@k̆IEN��@��}Ll?j�O������߭�ʞ���Q|A07x���wt!xf���I2?Z��<ץ�T���cU�j��]��陎Ltl �}5�ϓ��$�,��O�mˊ�;�@O��jE��j(�ا,��LX���LO���Ц�90�O �.����a��nA���7������j4 ��W��_ٓ���zW�jcB������y՗+EM�)d���N�g6�y1_x��p�$Lv:��9�"z��p���ʙ$��^��JԼ*�ϭ����o���=x�Lj�6�J��u82�A�H�3$�ٕ@�=Vv�]�'�qEz�;I˼��)��=��ɯ���x �/�W(V���p�����$ �m�������u�����񶤑Oqˎ�T����r��㠚x�sr�GC��byp�G��1ߠ�w e�8�$⿄����/�M{*}��W�]˷.�CK\�ުx���/$�WPw���r� |i���&�}�{�X� �>��$-��l���?-z���g����lΆ���(F���h�vS*���b���߲ڡn,|)mrH[���a�3�ר�[1��3o_�U�3�TC�$��(�=�)0�kgP���� ��u�^=��4 �WYCҸ:��vQ�ר�X�à��tk�m,�t*��^�,�}D*� �"(�I��9R����>`�`��[~Q]�#af��i6l��8���6�:,s�s�N6�j"�A4���IuQ��6E,�GnH��zS�HO�uk�5$�I�4��ؤ�Q9�@��C����wp�BGv[]�u�Ov���0I4���\��y�����Q�Ѹ��~>Z��8�T��a��q�ޣ;z��a���/��S��I:�ܫ_�|������>=Z����8:�S��U�I�J��"IY���8%b8���H��:�QO�6�;7�I�S��J��ҌAά3��>c���E+&jf$eC+�z�;��V����� �r���ʺ������my�e���aQ�f&��6�ND��.:��NT�vm�<- u���ǝ\MvZY�N�NT��-A�>jr!S��n�O 1�3�Ns�%�3D@���`������ܟ 1�^c<���� �a�ɽ�̲�Xë#�w�|y�cW�=�9I*H8�p�^(4���՗�k��arOcW�tO�\�ƍR��8����'�K���I�Q�����?5�>[�}��yU�ײ -h��=��% q�ThG�2�)���"ו3]�!kB��*p�FDl�A���,�eEi�H�f�Ps�����5�H:�Փ~�H�0Dت�D�I����h�F3�������c��2���E��9�H��5�zԑ�ʚ�i�X�=:m�xg�hd(�v����׊�9iS��O��d@0ڽ���:�p�5�h-��t�&���X�q�ӕ,��ie�|���7A�2���O%P��E��htj��Y1��w�Ѓ!����  ���� ࢽ��My�7�\�a�@�ţ�J �4�Ȼ�F�@o�̒?4�wx��)��]�P��~�����u�����5�����7X ��9��^ܩ�U;Iꭆ 5 �������eK2�7(�{|��Y׎ �V��\"���Z�1� Z�����}��(�Ǝ"�1S���_�vE30>���p;� ΝD��%x�W�?W?v����o�^V�i�d��r[��/&>�~`�9Wh��y�;���R��� ;;ɮT��?����r$�g1�K����A��C��c��K��l:�'��3 c�ﳯ*"t8�~l��)���m��+U,z��`(�>yJ�?����h>��]��v��ЍG*�{`��;y]��I�T� ;c��NU�fo¾h���/$���|NS���1�S�"�H��V���T���4��uhǜ�]�v;���5�͠x��'C\�SBpl���h}�N����� A�Bx���%��ޭ�l��/����T��w�ʽ]D�=����K���ž�r㻠l4�S�O?=�k �M:� ��c�C�a�#ha���)�ѐxc�s���gP�iG��{+���x���Q���I= �� z��ԫ+ �8"�k�ñ�j=|����c ��y��CF��/��*9ж�h{ �?4�o� ��k�m�Q�N�x��;�Y��4膚�a�w?�6�>e]�����Q�r�:����g�,i"�����ԩA�*M�<�G��b�if��l^M��5� �Ҩ�{����6J��ZJ�����P�*�����Y���ݛu�_4�9�I8�7���������,^ToR���m4�H��?�N�S�ѕw��/S��甍�@�9H�S�T��t�ƻ���ʒU��*{Xs�@����f�����֒Li�K{H�w^���������Ϥm�tq���s� ���ք��f:��o~s��g�r��ט� �S�ѱC�e]�x���a��) ���(b-$(�j>�7q�B?ӕ�F��hV25r[7 Y� }L�R��}����*sg+��x�r�2�U=�*'WS��ZDW]�WǞ�<��叓���{�$�9Ou4��y�90-�1�'*D`�c�^o?(�9��u���ݐ��'PI&� f�Jݮ�������:wS����jfP1F:X �H�9dԯ���˝[�_54 �}*;@�ܨ�� ð�yn�T���?�ןd�#���4rG�ͨ��H�1�|-#���Mr�S3��G�3�����)�.᧏3v�z֑��r����$G"�`j �1t��x0<Ɔ�Wh6�y�6��,œ�Ga��gA����y��b��)��h�D��ß�_�m��ü �gG;��e�v��ݝ�nQ� ��C����-�*��o���y�a��M��I�>�<���]obD��"�:���G�A��-\%LT�8���c�)��+y76���o�Q�#*{�(F�⽕�y����=���rW�\p���۩�c���A���^e6��K������ʐ�cVf5$�'->���ՉN"���F�"�UQ@�f��Gb~��#�&�M=��8�ט�JNu9��D��[̤�s�o�~������ G��9T�tW^g5y$b��Y'��س�Ǵ�=��U-2 #�MC�t(�i� �lj�@Q 5�̣i�*�O����s�x�K�f��}\��M{E�V�{�υ��Ƈ�����);�H����I��fe�Lȣr�2��>��W�I�Ȃ6������i��k�� �5�YOxȺ����>��Y�f5'��|��H+��98pj�n�.O�y�������jY��~��i�w'������l�;�s�2��Y��:'lg�ꥴ)o#'Sa�a�K��Z� �m��}�`169�n���"���x��I ��*+� }F<��cГ���F�P�������ֹ*�PqX�x۩��,� ��N�� �4<-����%����:��7����W���u�`����� $�?�I��&����o��o��`v�>��P��"��l���4��5'�Z�gE���8���?��[�X�7(��.Q�-��*���ތL@̲����v��.5���[��=�t\+�CNܛ��,g�SQnH����}*F�G16���&:�t��4ُ"A��̣��$�b �|����#rs��a�����T�� ]�<�j��BS�('$�ɻ� �wP;�/�n��?�ݜ��x�F��yUn�~mL*-�������Xf�wd^�a�}��f�,=t�׵i�.2/wpN�Ep8�OР���•��R�FJ� 55TZ��T �ɭ�<��]��/�0�r�@�f��V��V����Nz�G��^���7hZi����k��3�,kN�e|�vg�1{9]_i��X5y7� 8e]�U����'�-2,���e"����]ot�I��Y_��n�(JҼ��1�O ]bXc���Nu�No��pS���Q_���_�?i�~�x h5d'�(qw52] ��'ޤ�q��o1�R!���`ywy�A4u���h<קy���\[~�4�\ X�Wt/� 6�����n�F�a8��f���z �3$�t(���q��q�x��^�XWeN'p<-v�!�{�(>ӽDP7��ո0�y)�e$ٕv�Ih'Q�EA�m*�H��RI��=:��� ���4牢) �%_iN�ݧ�l]� �Nt���G��H�L��� ɱ�g<���1V�,�J~�ٹ�"K��Q�� 9�HS�9�?@��k����r�;we݁�]I�!{ �@�G�[�"��`���J:�n]�{�cA�E����V��ʆ���#��U9�6����j�#Y�m\��q�e4h�B�7��C�������d<�?J����1g:ٳ���=Y���D�p�ц� ׈ǔ��1�]26؜oS�'��9�V�FVu�P�h�9�xc�oq�X��p�o�5��Ա5$�9W�V(�[Ak�aY錎qf;�'�[�|���b�6�Ck��)��#a#a˙��8���=äh�4��2��C��4tm^ �n'c���]GQ$[Wҿ��i���vN�{Fu ��1�gx��1┷���N�m��{j-,��x�� Ūm�ЧS�[�s���Gna���䑴�� x�p 8<������97�Q���ϴ�v�aϚG��Rt�Һ׈�f^\r��WH�JU�7Z���y)�vg=����n��4�_)y��D'y�6�]�c�5̪�\� �PF�k����&�c;��cq�$~T�7j ���nç]�<�g ":�to�t}�159�<�/�8������m�b�K#g'I'.W�����6��I/��>v��\�MN��g���m�A�yQL�4u�Lj�j9��#44�t��l^�}L����n��R��!��t��±]��r��h6ٍ>�yҏ�N��fU�� ���� Fm@�8}�/u��jb9������he:A�y�ծw��GpΧh�5����l}�3p468��)U��d��c����;Us/�֔�YX�1�O2��uq�s��`hwg�r~�{ R��mhN��؎*q 42�*th��>�#���E����#��Hv�O����q�}�����6�e��\�,Wk�#���X��b>��p}�դ��3���T5��†��6��[��@�P�y*n��|'f�֧>�lư΂�̺����SU�'*�q�p�_S�����M�� '��c�6�����m�� ySʨ;M��r���Ƌ�m�Kxo,���Gm�P��A�G�:��i��w�9�}M(�^�V��$ǒ�ѽ�9���|���� �a����J�SQ�a���r�B;����}���ٻ֢�2�%U���c�#�g���N�a�ݕ�'�v�[�OY'��3L�3�;,p�]@�S��{ls��X�'���c�jw�k'a�.��}�}&�� �dP�*�bK=ɍ!����;3n�gΊU�ߴmt�'*{,=SzfD� A��ko~�G�aoq�_mi}#�m�������P�Xhύ����mxǍ�΂���巿zf��Q���c���|kc�����?���W��Y�$���_Lv����l߶��c���`?����l�j�ݲˏ!V��6����U�Ђ(A���4y)H���p�Z_�x��>���e��R��$�/�`^'3qˏ�-&Q�=?��CFVR �D�fV�9��{�8g�������n�h�(P"��6�[�D���< E�����~0<@�`�G�6����Hг�cc�� �c�K.5��D��d�B���`?�XQ��2��ٿyqo&+�1^� DW�0�ꊩ���G�#��Q�nL3��c���������/��x ��1�1[y�x�პCW��C�c�UĨ80�m�e�4.{�m��u���I=��f�����0QRls9���f���������9���~f�����Ǩ��a�"@�8���ȁ�Q����#c�ic������G��$���G���r/$W�(��W���V�"��m�7�[m�A�m����bo��D� j����۳� l���^�k�h׽����� ��#� iXn�v��eT�k�a�^Y�4�BN��ĕ��0 !01@Q"2AaPq3BR������?���@4�Q�����T3,���㺠�W�[=JK�Ϟ���2�r^7��vc�:�9 �E�ߴ�w�S#d���Ix��u��:��Hp��9E!�� V 2;73|F��9Y���*ʬ�F��D����u&���y؟��^EA��A��(ɩ���^��GV:ݜDy�`��Jr29ܾ�㝉��[���E;Fzx��YG��U�e�Y�C���� ����v-tx����I�sם�Ę�q��Eb�+P\ :>�i�C'�;�����k|z�رn�y]�#ǿb��Q��������w�����(�r|ӹs��[�D��2v-%��@;�8<a���[\o[ϧw��I!��*0�krs)�[�J9^��ʜ��p1)� "��/_>��o��<1����A�E�y^�C��`�x1'ܣn�p��s`l���fQ��):�l����b>�Me�jH^?�kl3(�z:���1ŠK&?Q�~�{�ٺ�h�y���/�[��V�|6��}�KbX����mn[-��7�5q�94�������dm���c^���h� X��5��<�eޘ>G���-�}�دB�ޟ� ��|�rt�M��V+�]�c?�-#ڛ��^ǂ}���Lkr���O��u�>�-D�ry� D?:ޞ�U��ǜ�7�V��?瓮�"�#���r��չģVR;�n���/_� ؉v�ݶe5d�b9��/O��009�G���5n�W����JpA�*�r9�>�1��.[t���s�F���nQ� V 77R�]�ɫ8����_0<՜�IF�u(v��4��F�k�3��E)��N:��yڮe��P�`�1}�$WS��J�SQ�N�j�ٺ��޵�#l���ј(�5=��5�lǏmoW�v-�1����v,W�mn��߀$x�<����v�j(����c]��@#��1������Ǔ���o'��u+����;G�#�޸��v-lη��/(`i⣍Pm^���ԯ̾9Z��F��������n��1��� ��]�[��)�'������:�֪�W��FC����� �B9،!?���]��V��A�Վ�M��b�w��G F>_DȬ0¤�#�QR�[V��kz���m�w�"��9ZG�7'[��=�Q����j8R?�zf�\a�=��O�U����*oB�A�|G���2�54 �p��.w7� �� ��&������ξxGHp� B%��$g�����t�Џ򤵍z���HN�u�Я�-�'4��0��;_��3 !01"@AQa2Pq#3BR������?��ʩca��en��^��8���<�u#��m*08r��y�N"�<�Ѳ0��@\�p��� �����Kv�D��J8�Fҽ� �f�Y��-m�ybX�NP����}�!*8t(�OqѢ��Q�wW�K��ZD��Δ^e��!� ��B�K��p~�����e*l}z#9ң�k���q#�Ft�o��S�R����-�w�!�S���Ӥß|M�l޶V��!eˈ�8Y���c�ЮM2��tk���� ������J�fS����Ö*i/2�����n]�k�\���|4yX�8��U�P.���Ы[���l��@"�t�<������5�lF���vU�����W��W��;�b�cД^6[#7@vU�xgZv��F�6��Q,K�v��� �+Ъ��n��Ǣ��Ft���8��0��c�@�!�Zq s�v�t�;#](B��-�nῃ~���3g������5�J�%���O������n�kB�ĺ�.r��+���#�N$?�q�/�s�6��p��a����a��J/��M�8��6�ܰ"�*������ɗud"\w���aT(����[��F��U՛����RT�b���n�*��6���O��SJ�.�ij<�v�MT��R\c��5l�sZB>F��<7�;EA��{��E���Ö��1U/�#��d1�a�n.1ě����0�ʾR�h��|�R��Ao�3�m3 ��%�� ���28Q� ��y��φ���H�To�7�lW>����#i`�q���c����a��� �m,B�-j����݋�'mR1Ήt�>��V��p���s�0IbI�C.���1R�ea�����]H�6����������4B>��o��](��$B���m�����a�!=��?�B� K�Ǿ+�Ծ"�n���K��*��+��[T#�{E�J�S����Q�����s�5�:�U�\wĐ�f�3����܆&�)����I���Ԇw��E T�lrTf6Q|R�h:��[K�� �z��c֧�G�C��%\��_�a�84��HcO�bi��ؖV��7H �)*ģK~Xhչ0��4?�0��� �E<���}3���#���u�?�� ��|g�S�6ꊤ�|�I#Hڛ� �ա��w�X��9��7���Ŀ%�SL��y6č��|�F�a 8���b��$�sק�h���b9RAu7�˨p�Č�_\*w��묦��F ����4D~�f����|(�"m���NK��i�S�>�$d7SlA��/�²����SL��|6N�}���S�˯���g��]6��; �#�.��<���q'Q�1|KQ$�����񛩶"�$r�b:���N8�w@��8$�� �AjfG|~�9F ���Y��ʺ��Bwؒ������M:I岎�G��`s�YV5����6��A �b:�W���G�q%l�����F��H���7�������Fsv7��k�� 403WebShell
403Webshell
Server IP : 213.165.242.4  /  Your IP : 216.73.217.172
Web Server : Apache
System : Linux amsngx344.inmotionhosting.com 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64
User : aquafi9 ( 1305)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/aquafi9/public_html/wp-content/plugins/wordpress-seo/js/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/aquafi9/public_html/wp-content/plugins/wordpress-seo/js/dist/classic-editor.js
(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var r=typeof s;if("string"===r||"number"===r)e.push(s);else if(Array.isArray(s)){if(s.length){var n=o.apply(null,s);n&&e.push(n)}}else if("object"===r){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)i.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(s=function(){return o}.apply(t,[]))||(e.exports=s)}()}},t={};function s(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.components,i=window.yoast.propTypes;var o=s.n(i);const r=window.yoast.uiLibrary,n=window.lodash,a=window.wp.data;const l=window.React;var c=s.n(l);l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));const d=window.wp.i18n,p=(t,s)=>{try{return(0,e.createInterpolateElement)(t,s)}catch(e){return console.error("Error in translation for:",t,e),t}},u=window.ReactJSXRuntime;o().string.isRequired;const h=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),g=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));o().string.isRequired,o().string.isRequired,o().shape({src:o().string.isRequired,width:o().string,height:o().string}).isRequired,o().shape({value:o().bool.isRequired,status:o().string.isRequired,set:o().func.isRequired}).isRequired,o().string,o().string,o().string;const m=({handleRefreshClick:e,supportLink:t})=>(0,u.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,u.jsx)(r.Button,{onClick:e,children:(0,d.__)("Refresh this page","wordpress-seo")}),(0,u.jsx)(r.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,d.__)("Contact support","wordpress-seo")})]});m.propTypes={handleRefreshClick:o().func.isRequired,supportLink:o().string.isRequired};const y=({handleRefreshClick:e,supportLink:t})=>(0,u.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,u.jsx)(r.Button,{className:"yst-order-last",onClick:e,children:(0,d.__)("Refresh this page","wordpress-seo")}),(0,u.jsx)(r.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,d.__)("Contact support","wordpress-seo")})]});y.propTypes={handleRefreshClick:o().func.isRequired,supportLink:o().string.isRequired};const w=({error:e,children:t=null})=>(0,u.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,u.jsx)(r.Title,{children:(0,d.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,u.jsx)("p",{children:(0,d.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,u.jsx)(r.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,d.__)("Undefined error message.","wordpress-seo")}),(0,u.jsx)("p",{children:(0,d.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});w.propTypes={error:o().object.isRequired,children:o().node},w.VerticalButtons=y,w.HorizontalButtons=m;o().string,o().node.isRequired,o().node.isRequired,o().node,o().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const f=window.ReactDOM;var x,b,v;(b=x||(x={})).Pop="POP",b.Push="PUSH",b.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(v||(v={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const k=["post","put","patch","delete"],_=(new Set(k),["get",...k]);new Set(_),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),l.Component,l.startTransition,new Promise((()=>{})),l.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var T,R,j,S;new Map,l.startTransition,f.flushSync,l.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(S=T||(T={})).UseScrollRestoration="useScrollRestoration",S.UseSubmit="useSubmit",S.UseSubmitFetcher="useSubmitFetcher",S.UseFetcher="useFetcher",S.useViewTransitionState="useViewTransitionState",(j=R||(R={})).UseFetcher="useFetcher",j.UseFetchers="useFetchers",j.UseScrollRestoration="useScrollRestoration",o().string.isRequired,o().string;o().string.isRequired,o().node;l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),(0,d.__)("AI tools included","wordpress-seo"),(0,d.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */
(0,d.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,d.__)("24/7 support","wordpress-seo"),(0,d.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,d.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,d.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,d.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,d.__)("Internal links and redirect management, easy","wordpress-seo"),(0,d.__)("Access to friendly help when you need it, day or night","wordpress-seo");l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));var I=s(4184),C=s.n(I);var E;function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},L.apply(this,arguments)}o().string.isRequired,o().object.isRequired,o().func.isRequired,l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));const A=e=>l.createElement("svg",L({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),E||(E=l.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));o().string.isRequired,o().object,o().func.isRequired,o().bool.isRequired,o().string.isRequired,o().object.isRequired,o().string.isRequired,o().func.isRequired,o().bool.isRequired,l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),o().bool.isRequired,o().func,o().func,o().string.isRequired,o().string.isRequired,o().string.isRequired,o().string.isRequired;window.yoast.reactHelmet;o().string.isRequired,o().shape({src:o().string.isRequired,width:o().string,height:o().string}).isRequired,o().shape({value:o().bool.isRequired,status:o().string.isRequired,set:o().func.isRequired}).isRequired,o().bool,l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),o().bool.isRequired,o().func.isRequired,o().func,o().string,o().func.isRequired,o().string.isRequired,o().string.isRequired,o().string.isRequired,o().string.isRequired;const q=window.yoast.componentsNew,F=window.yoast.styleGuide,P=window.yoast.analysis;function M(e){switch(e){case"loading":return{icon:"loading-spinner",color:F.colors.$color_green_medium_light};case"not-set":return{icon:"seo-score-none",color:F.colors.$color_score_icon};case"noindex":return{icon:"seo-score-none",color:F.colors.$color_noindex};case"good":return{icon:"seo-score-good",color:F.colors.$color_green_medium};case"ok":return{icon:"seo-score-ok",color:F.colors.$color_ok};default:return{icon:"seo-score-bad",color:F.colors.$color_red}}}function D({target:t,children:s}){let i=t;return"string"==typeof t&&(i=document.getElementById(t)),i?(0,e.createPortal)(s,i):null}D.propTypes={target:o().oneOfType([o().string,o().object]).isRequired,children:o().node.isRequired};const O=({target:e,scoreIndicator:t})=>(0,u.jsx)(D,{target:e,children:(0,u.jsx)(q.SvgIcon,{...M(t)})});O.propTypes={target:o().string.isRequired,scoreIndicator:o().string.isRequired};const N=O,U=({error:t})=>{const s=(0,e.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),i=(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/metabox-error-support")),[]),o=(0,a.useSelect)((e=>e("yoast-seo/editor").getPreference("isRtl",!1)),[]);return(0,e.useEffect)((()=>{document.querySelectorAll('[id^="wpseo-meta-tab-"]').forEach((e=>{!function(e){const t=document.querySelector(`#${e}`);null!==t&&(t.style.opacity="0.5",t.style.pointerEvents="none",t.setAttribute("aria-disabled","true"),t.classList.contains("yoast-active-tab")&&t.classList.remove("yoast-active-tab"))}(e.id)}))}),[]),(0,u.jsx)(r.Root,{context:{isRtl:o},children:(0,u.jsxs)(w,{error:t,children:[(0,u.jsx)(w.HorizontalButtons,{supportLink:i,handleRefreshClick:s}),(0,u.jsx)(N,{target:"wpseo-seo-score-icon",scoreIndicator:"not-set"}),(0,u.jsx)(N,{target:"wpseo-readability-score-icon",scoreIndicator:"not-set"}),(0,u.jsx)(N,{target:"wpseo-inclusive-language-score-icon",scoreIndicator:"not-set"})]})})};U.propTypes={error:o().object.isRequired};const W=window.yoast.externals.contexts,$=window.yoast.styledComponents;var B=s.n($);const H=({theme:e,location:t,children:s})=>(0,u.jsx)(W.LocationProvider,{value:t,children:(0,u.jsx)($.ThemeProvider,{theme:e,children:s})});H.propTypes={theme:o().object.isRequired,location:o().oneOf(["sidebar","metabox","modal"]).isRequired,children:o().node.isRequired};const K=H;function Y({theme:e}){return(0,u.jsx)(K,{theme:e,location:"metabox",children:(0,u.jsx)(r.ErrorBoundary,{FallbackComponent:U,children:(0,u.jsx)(t.Slot,{name:"YoastMetabox",children:e=>{return void 0===(t=e).length?t:(0,n.flatten)(t).sort(((e,t)=>void 0===e.props.renderPriority?1:e.props.renderPriority-t.props.renderPriority));var t}})})})}const V=window.wp.compose,z=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{d:"M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"}))})),G=({className:e="",...t})=>(0,u.jsx)("span",{className:C()("yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp","yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-start",e),...t});G.displayName="MetaboxButton.Text",G.propTypes={className:o().string};const Z=({className:e="",...t})=>(0,u.jsx)("button",{type:"button",className:C()("yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pe-4 yst-ps-6 yst-space-x-2 rtl:yst-space-x-reverse","yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0]","focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",e),...t});Z.propTypes={className:o().string},Z.Text=G;const X=window.yoast.helpers,Q=B().div`
	min-width: 600px;

	@media screen and ( max-width: 680px ) {
		min-width: 0;
		width: 86vw;
	}
`,J=(B().div`
	@media screen and ( min-width: 600px ) {
		max-width: 420px;
	}
`,B()(q.Icon)`
	float: ${(0,X.getDirectionalStyle)("right","left")};
	margin: ${(0,X.getDirectionalStyle)("0 0 16px 16px","0 16px 16px 0")};

	&& {
		width: 150px;
		height: 150px;

		@media screen and ( max-width: 680px ) {
			width: 80px;
			height: 80px;
		}
	}
`,({title:e="Yoast SEO",className:s="yoast yoast-gutenberg-modal",showYoastIcon:i=!0,children:o=null,additionalClassName:r="",...n})=>{const a=i?(0,u.jsx)("span",{className:"yoast-icon"}):null;return(0,u.jsx)(t.Modal,{title:e,className:`${s} ${r}`,icon:a,...n,children:o})});J.propTypes={title:o().string,className:o().string,showYoastIcon:o().bool,children:o().oneOfType([o().node,o().arrayOf(o().node)]),additionalClassName:o().string};const ee=J;var te,se;function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},ie.apply(this,arguments)}const oe=e=>l.createElement("svg",ie({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),te||(te=l.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),se||(se=l.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),re=({onClick:e,title:t,id:s="",subTitle:i="",suffixIcon:o=null,SuffixHeroIcon:r=null,prefixIcon:n=null,children:a=null})=>(0,u.jsx)("div",{className:"yoast components-panel__body",children:(0,u.jsx)("h2",{className:"components-panel__body-title",children:(0,u.jsxs)("button",{id:s,onClick:e,className:"components-button components-panel__body-toggle",type:"button",children:[n&&(0,u.jsx)("span",{className:"yoast-icon-span",style:{fill:`${n&&n.color||""}`},children:(0,u.jsx)(q.SvgIcon,{size:n.size,icon:n.icon})}),(0,u.jsxs)("span",{className:"yoast-title-container",children:[(0,u.jsx)("div",{className:"yoast-title",children:t}),(0,u.jsx)("div",{className:"yoast-subtitle",children:i})]}),a,o&&(0,u.jsx)(q.SvgIcon,{size:o.size,icon:o.icon}),r]})})}),ne=re;re.propTypes={onClick:o().func.isRequired,title:o().string.isRequired,id:o().string,subTitle:o().string,suffixIcon:o().object,SuffixHeroIcon:o().element,prefixIcon:o().object,children:o().node};const ae=window.moment;var le=s.n(ae);const ce=window.wp.apiFetch;var de=s.n(ce);async function pe(e,t,s,i=200){try{const o=await e();return!!o&&(o.status===i?t(o):s(o))}catch(e){console.error(e.message)}}async function ue(e){try{return await de()(e)}catch(e){return e.error&&e.status?e:e instanceof Response&&await e.json()}}async function he(e){return(0,n.isArray)(e)||(e=[e]),await ue({path:"yoast/v1/wincher/keyphrases/track",method:"POST",data:{keyphrases:e}})}const ge=({data:e,mapChartDataToTableData:t=null,dataTableCaption:s,dataTableHeaderLabels:i,isDataTableVisuallyHidden:o=!0})=>e.length!==i.length?(0,u.jsx)("p",{children:(0,d.__)("The number of headers and header labels don't match.","wordpress-seo")}):(0,u.jsx)("div",{className:o?"screen-reader-text":null,children:(0,u.jsxs)("table",{children:[(0,u.jsx)("caption",{children:s}),(0,u.jsx)("thead",{children:(0,u.jsx)("tr",{children:i.map(((e,t)=>(0,u.jsx)("th",{children:e},t)))})}),(0,u.jsx)("tbody",{children:(0,u.jsx)("tr",{children:e.map(((e,s)=>(0,u.jsx)("td",{children:t(e.y)},s)))})})]})});ge.propTypes={data:o().arrayOf(o().shape({x:o().number,y:o().number})).isRequired,mapChartDataToTableData:o().func,dataTableCaption:o().string.isRequired,dataTableHeaderLabels:o().array.isRequired,isDataTableVisuallyHidden:o().bool};const me=ge,ye=({data:t,width:s,height:i,fillColor:o=null,strokeColor:r="#000000",strokeWidth:n=1,className:a="",mapChartDataToTableData:l=null,dataTableCaption:c,dataTableHeaderLabels:d,isDataTableVisuallyHidden:p=!0})=>{const h=Math.max(1,Math.max(...t.map((e=>e.x)))),g=Math.max(1,Math.max(...t.map((e=>e.y)))),m=i-n,y=t.map((e=>`${e.x/h*s},${m-e.y/g*m+n}`)).join(" "),w=`0,${m+n} `+y+` ${s},${m+n}`;return(0,u.jsxs)(e.Fragment,{children:[(0,u.jsxs)("svg",{width:s,height:i,viewBox:`0 0 ${s} ${i}`,className:a,role:"img","aria-hidden":"true",focusable:"false",children:[(0,u.jsx)("polygon",{fill:o,points:w}),(0,u.jsx)("polyline",{fill:"none",stroke:r,strokeWidth:n,strokeLinejoin:"round",strokeLinecap:"round",points:y})]}),l&&(0,u.jsx)(me,{data:t,mapChartDataToTableData:l,dataTableCaption:c,dataTableHeaderLabels:d,isDataTableVisuallyHidden:p})]})};ye.propTypes={data:o().arrayOf(o().shape({x:o().number,y:o().number})).isRequired,width:o().number.isRequired,height:o().number.isRequired,fillColor:o().string,strokeColor:o().string,strokeWidth:o().number,className:o().string,mapChartDataToTableData:o().func,dataTableCaption:o().string.isRequired,dataTableHeaderLabels:o().array.isRequired,isDataTableVisuallyHidden:o().bool};const we=ye,fe=()=>(0,u.jsxs)("p",{className:"yoast-wincher-seo-performance-modal__loading-message",children:[(0,d.__)("Tracking the ranking position…","wordpress-seo")," ",(0,u.jsx)(q.SvgIcon,{icon:"loading-spinner"})]}),xe=B()(q.SvgIcon)`
	margin-left: 2px;
	flex-shrink: 0;
	rotate: ${e=>e.isImproving?"-90deg":"90deg"};
`,be=B().span`
	color: ${e=>e.isImproving?"#69AB56":"#DC3332"};
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	margin-right: 2px;
	margin-left: 12px;
`,ve=B().td`
	padding-right: 0 !important;

	& > div {
		margin: 0px;
	}
`,ke=B().td`
	padding-left: 2px !important;
`,_e=B().td.attrs({className:"yoast-table--nopadding"})`
	& > div {
		justify-content: center;
	}
`,Te=B().div`
	display: flex;
	align-items: center;
	& > a {
		box-sizing: border-box;
	}
`,Re=B().button`
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
    display: flex;
    align-items: center;
`,je=B().tr`
	background-color: ${e=>e.isEnabled?"#FFFFFF":"#F9F9F9"} !important;
`;function Se(e){return Math.round(100*e)}function Ie({chartData:e={}}){if((0,n.isEmpty)(e)||(0,n.isEmpty)(e.position))return"?";const t=function(e){return Array.from({length:e.position.history.length},((e,t)=>t+1)).map((e=>(0,d.sprintf)((0,d._n)("%d day","%d days",e,"wordpress-seo"),e)))}(e),s=e.position.history.map(((e,t)=>({x:t,y:31-e.value})));return(0,u.jsx)(we,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:Se,dataTableCaption:(0,d.__)("Keyphrase position in the last 90 days on a scale from 0 to 30.","wordpress-seo"),dataTableHeaderLabels:t})}function Ce({keyphrase:e,isEnabled:t,toggleAction:s,isLoading:i}){return i?(0,u.jsx)(q.SvgIcon,{icon:"loading-spinner"}):(0,u.jsx)(q.Toggle,{id:`toggle-keyphrase-tracking-${e}`,className:"wincher-toggle",isEnabled:t,onSetToggleState:s,showToggleStateLabel:!1})}function Ee(e){return!e||!e.position||e.position.value>30?"> 30":e.position.value}Ie.propTypes={chartData:o().object};const Le=e=>le()(e).fromNow(),Ae=({rowData:t={}})=>{var s;if(null==t||null===(s=t.position)||void 0===s||!s.change)return(0,u.jsx)(Ie,{chartData:t});const i=t.position.change<0;return(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(Ie,{chartData:t}),(0,u.jsx)(be,{isImproving:i,children:Math.abs(t.position.change)}),(0,u.jsx)(xe,{icon:"caret-right",color:i?"#69AB56":"#DC3332",size:"14px",isImproving:i})]})};function qe({rowData:t,websiteId:s,keyphrase:i,onSelectKeyphrases:o}){const r=(0,e.useCallback)((()=>{o([i])}),[o,i]),a=!(0,n.isEmpty)(t),l=t&&t.updated_at&&le()(t.updated_at)>=le()().subtract(7,"days"),c=t?`https://app.wincher.com/websites/${s}/keywords?serp=${t.id}&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast`:null;return a?l?(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)("td",{children:(0,u.jsxs)(Te,{children:[Ee(t),(0,u.jsx)(q.ButtonStyledLink,{variant:"secondary",href:c,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank",children:(0,d.__)("View","wordpress-seo")})]})}),(0,u.jsx)("td",{className:"yoast-table--nopadding",children:(0,u.jsx)(Re,{type:"button",onClick:r,children:(0,u.jsx)(Ae,{rowData:t})})}),(0,u.jsx)("td",{children:Le(t.updated_at)})]}):(0,u.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,u.jsx)(fe,{})}):(0,u.jsx)("td",{className:"yoast-table--nopadding",colSpan:"3",children:(0,u.jsx)("i",{children:(0,d.__)("Activate tracking to show the ranking position","wordpress-seo")})})}function Fe({keyphrase:t,rowData:s={},onTrackKeyphrase:i=n.noop,onUntrackKeyphrase:o=n.noop,isFocusKeyphrase:r=!1,isDisabled:a=!1,isLoading:l=!1,websiteId:c="",isSelected:d,onSelectKeyphrases:p}){var h;const g=!(0,n.isEmpty)(s),m=!(0,n.isEmpty)(null==s||null===(h=s.position)||void 0===h?void 0:h.history),y=(0,e.useCallback)((()=>{a||(g?o(t,s.id):i(t))}),[t,i,o,g,s,a]),w=(0,e.useCallback)((()=>{p((e=>d?e.filter((e=>e!==t)):e.concat(t)))}),[p,d,t]);return(0,u.jsxs)(je,{isEnabled:g,children:[(0,u.jsx)(ve,{children:m&&(0,u.jsx)(q.Checkbox,{id:"select-"+t,onChange:w,checked:d,label:""})}),(0,u.jsxs)(ke,{children:[t,r&&(0,u.jsx)("span",{children:"*"})]}),qe({rowData:s,websiteId:c,keyphrase:t,onSelectKeyphrases:p}),(0,u.jsx)(_e,{children:Ce({keyphrase:t,isEnabled:g,toggleAction:y,isLoading:l})})]})}Ae.propTypes={rowData:o().object},Fe.propTypes={rowData:o().object,keyphrase:o().string.isRequired,onTrackKeyphrase:o().func,onUntrackKeyphrase:o().func,isFocusKeyphrase:o().bool,isDisabled:o().bool,isLoading:o().bool,websiteId:o().string,isSelected:o().bool.isRequired,onSelectKeyphrases:o().func.isRequired};const Pe=(0,X.makeOutboundLink)(),Me=B().span`
	display: block;
	font-style: italic;

	@media (min-width: 782px) {
		display: inline;
		position: absolute;
		${(0,X.getDirectionalStyle)("right","left")}: 8px;
	}
`,De=B().div`
	width: 100%;
	overflow-y: auto;
`,Oe=B().th`
	pointer-events: ${e=>e.isDisabled?"none":"initial"};
	padding-right: 0 !important;

	& > div {
		margin: 0px;
	}
`,Ne=B().th`
	padding-left: 2px !important;
`,Ue=t=>{const s=(0,e.useRef)();return(0,e.useEffect)((()=>{s.current=t})),s.current},We=(0,n.debounce)((async function(e=null,t=null,s=null,i){return await ue({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:s,startAt:t},signal:i})}),500,{leading:!0}),$e=({addTrackedKeyphrase:t,isLoggedIn:s=!1,isNewlyAuthenticated:i=!1,keyphrases:o=[],newRequest:r,removeTrackedKeyphrase:a,setRequestFailed:l,setKeyphraseLimitReached:c,setRequestSucceeded:p,setTrackedKeyphrases:h,setHasTrackedAll:g,trackAll:m=!1,trackedKeyphrases:y=null,websiteId:w="",permalink:f,focusKeyphrase:x="",startAt:b=null,selectedKeyphrases:v,onSelectKeyphrases:k})=>{const _=(0,e.useRef)(),T=(0,e.useRef)(),R=(0,e.useRef)(!1),[j,S]=(0,e.useState)([]),I=(0,e.useCallback)((e=>{const t=e.toLowerCase();return y&&!(0,n.isEmpty)(y)&&y.hasOwnProperty(t)?y[t]:null}),[y]),C=(0,e.useMemo)((()=>async()=>{await pe((()=>(T.current&&T.current.abort(),T.current="undefined"==typeof AbortController?null:new AbortController,We(o,b,f,T.current.signal))),(e=>{p(e),h(e.results)}),(e=>{l(e)}))}),[p,l,h,o,f,b]),E=(0,e.useCallback)((async e=>{const s=(Array.isArray(e)?e:[e]).map((e=>e.toLowerCase()));S((e=>[...e,...s])),await pe((()=>he(s)),(e=>{p(e),t(e.results),C()}),(e=>{400===e.status&&e.limit&&c(e.limit),l(e)}),201),S((e=>(0,n.without)(e,...s)))}),[p,l,c,t,C]),L=(0,e.useCallback)((async(e,t)=>{e=e.toLowerCase(),S((t=>[...t,e])),await pe((()=>async function(e){return await ue({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}(t)),(t=>{p(t),a(e)}),(e=>{l(e)})),S((t=>(0,n.without)(t,e)))}),[p,a,l]),A=(0,e.useCallback)((async e=>{r(),await E(e)}),[r,E]),F=Ue(f),P=Ue(o),M=Ue(b),D=f&&b;(0,e.useEffect)((()=>{s&&D&&(f!==F||(0,n.difference)(o,P).length||b!==M)&&C()}),[s,f,F,o,P,C,D,b,M]),(0,e.useEffect)((()=>{if(s&&m&&null!==y){const e=o.filter((e=>!I(e)));e.length&&E(e),g()}}),[s,m,y,E,g,I,o]),(0,e.useEffect)((()=>{i&&!R.current&&(C(),R.current=!0)}),[i,C]),(0,e.useEffect)((()=>{if(s&&!(0,n.isEmpty)(y))return(0,n.filter)(y,(e=>(0,n.isEmpty)(e.updated_at))).length>0&&(_.current=setInterval((()=>{C()}),1e4)),()=>{clearInterval(_.current)}}),[s,y,C]);const O=s&&null===y,N=(0,e.useMemo)((()=>(0,n.isEmpty)(y)?[]:Object.values(y).filter((e=>{var t;return!(0,n.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)})).map((e=>e.keyword))),[y]),U=(0,e.useMemo)((()=>v.length>0&&N.length>0&&N.every((e=>v.includes(e)))),[v,N]),W=(0,e.useCallback)((()=>{k(U?[]:N)}),[k,U,N]),$=(0,e.useMemo)((()=>(0,n.orderBy)(o,[e=>Object.values(y||{}).map((e=>e.keyword)).includes(e)],["desc"])),[o,y]);return o&&!(0,n.isEmpty)(o)&&(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(De,{children:(0,u.jsxs)("table",{className:"yoast yoast-table",children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)(Oe,{isDisabled:0===N.length,children:(0,u.jsx)(q.Checkbox,{id:"select-all",onChange:W,checked:U,label:""})}),(0,u.jsx)(Ne,{scope:"col",abbr:(0,d.__)("Keyphrase","wordpress-seo"),children:(0,d.__)("Keyphrase","wordpress-seo")}),(0,u.jsx)("th",{scope:"col",abbr:(0,d.__)("Position","wordpress-seo"),children:(0,d.__)("Position","wordpress-seo")}),(0,u.jsx)("th",{scope:"col",abbr:(0,d.__)("Position over time","wordpress-seo"),children:(0,d.__)("Position over time","wordpress-seo")}),(0,u.jsx)("th",{scope:"col",abbr:(0,d.__)("Last updated","wordpress-seo"),children:(0,d.__)("Last updated","wordpress-seo")}),(0,u.jsx)("th",{scope:"col",abbr:(0,d.__)("Tracking","wordpress-seo"),children:(0,d.__)("Tracking","wordpress-seo")})]})}),(0,u.jsx)("tbody",{children:$.map(((e,t)=>(0,u.jsx)(Fe,{keyphrase:e,onTrackKeyphrase:A,onUntrackKeyphrase:L,rowData:I(e),isFocusKeyphrase:e===x.trim().toLowerCase(),websiteId:w,isDisabled:!s,isLoading:O||j.indexOf(e.toLowerCase())>=0,isSelected:v.includes(e),onSelectKeyphrases:k},`trackable-keyphrase-${t}`)))})]})}),(0,u.jsxs)("p",{style:{marginBottom:0,position:"relative"},children:[(0,u.jsx)(Pe,{href:wpseoAdminGlobalL10n["links.wincher.login"],children:(0,d.sprintf)(/* translators: %s expands to Wincher */
(0,d.__)("Get more insights over at %s","wordpress-seo"),"Wincher")}),(0,u.jsx)(Me,{children:(0,d.__)("* focus keyphrase","wordpress-seo")})]})]})};$e.propTypes={addTrackedKeyphrase:o().func.isRequired,isLoggedIn:o().bool,isNewlyAuthenticated:o().bool,keyphrases:o().array,newRequest:o().func.isRequired,removeTrackedKeyphrase:o().func.isRequired,setRequestFailed:o().func.isRequired,setKeyphraseLimitReached:o().func.isRequired,setRequestSucceeded:o().func.isRequired,setTrackedKeyphrases:o().func.isRequired,setHasTrackedAll:o().func.isRequired,trackAll:o().bool,trackedKeyphrases:o().object,websiteId:o().string,permalink:o().string.isRequired,focusKeyphrase:o().string,startAt:o().string,selectedKeyphrases:o().arrayOf(o().string).isRequired,onSelectKeyphrases:o().func.isRequired};const Be=$e,He=(0,V.compose)([(0,a.withSelect)((e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:s,getWincherLoginStatus:i,getWincherPermalink:o,getFocusKeyphrase:r,isWincherNewlyAuthenticated:n,shouldWincherTrackAll:a}=e("yoast-seo/editor");return{focusKeyphrase:r(),keyphrases:s(),isLoggedIn:i(),trackAll:a(),websiteId:t(),isNewlyAuthenticated:n(),permalink:o()}})),(0,a.withDispatch)((e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:s,setWincherRequestFailed:i,setWincherSetKeyphraseLimitReached:o,setWincherTrackedKeyphrases:r,setWincherTrackingForKeyphrase:n,setWincherTrackAllKeyphrases:a,unsetWincherTrackingForKeyphrase:l}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{i(e)},setKeyphraseLimitReached:e=>{o(e)},addTrackedKeyphrase:e=>{n(e)},removeTrackedKeyphrase:e=>{l(e)},setTrackedKeyphrases:e=>{r(e)},setHasTrackedAll:()=>{a(!1)}}}))])(Be);class Ke{constructor(e,t={},s={}){this.url=e,this.origin=new URL(e).origin,this.eventHandlers=Object.assign({success:{type:"",callback:()=>{}},error:{type:"",callback:()=>{}}},t),this.options=Object.assign({height:570,width:340,title:""},s),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}createPopup(){const{height:e,width:t,title:s}=this.options,i=["top="+(window.top.outerHeight/2+window.top.screenY-e/2),"left="+(window.top.outerWidth/2+window.top.screenX-t/2),"width="+t,"height="+e,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,s,i.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:s,origin:i}=e;i===this.origin&&this.popup===s&&(t.type===this.eventHandlers.success.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.success.callback(t)),t.type===this.eventHandlers.error.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.error.callback(t)))}getPopup(){return this.popup}isClosed(){return!this.popup||this.popup.closed}focus(){this.isClosed()||this.popup.focus()}}const Ye=()=>(0,u.jsx)(q.Alert,{type:"info",children:(0,d.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,d.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher")}),Ve=()=>(0,u.jsx)(q.Alert,{type:"success",children:(0,d.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,d.__)("You have successfully connected to %s! You can now track the SEO performance for the keyphrase(s) of this page.","wordpress-seo"),"Wincher")}),ze=()=>(0,u.jsx)(q.Alert,{type:"info",children:(0,d.sprintf)(/* translators: %s: Expands to "Wincher". */
(0,d.__)("%s is currently tracking the ranking position(s) of your page. This may take a few minutes. Please wait or check back later.","wordpress-seo"),"Wincher")}),Ge=(0,X.makeOutboundLink)(),Ze=(0,X.makeOutboundLink)(),Xe=()=>{const e=(0,d.sprintf)(/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
(0,d.__)("With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"<wincherLink/>","<wincherReadMoreLink/>");return(0,u.jsx)("p",{children:p(e,{wincherLink:(0,u.jsx)(Ge,{href:wpseoAdminGlobalL10n["links.wincher.website"],children:"Wincher"}),wincherReadMoreLink:(0,u.jsx)(Ze,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"],children:(0,d.__)("Read more about keyphrase tracking with Wincher","wordpress-seo")})})})},Qe=(0,X.makeOutboundLink)(),Je=({limit:e=10})=>{const t=(0,d.sprintf)(/* translators: %1$d expands to the amount of allowed keyphrases on a free account, %2$s expands to a link to Wincher plans. */
(0,d.__)("You've reached the maximum amount of %1$d keyphrases you can add to your Wincher account. If you wish to add more keyphrases, please %2$s.","wordpress-seo"),e,"<UpdateWincherPlanLink/>");return(0,u.jsx)(q.Alert,{type:"error",children:p(t,{UpdateWincherPlanLink:(0,u.jsx)(Qe,{href:wpseoAdminGlobalL10n["links.wincher.pricing"],children:(0,d.sprintf)(/* translators: %s : Expands to "Wincher". */
(0,d.__)("upgrade your %s plan","wordpress-seo"),"Wincher")})})})};Je.propTypes={limit:o().number};const et=Je,tt=()=>(0,u.jsx)(q.Alert,{type:"error",children:(0,d.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")}),st=()=>(0,u.jsx)(q.Alert,{type:"error",children:(0,d.__)("Before you can track your SEO performance make sure to set either the post’s title and save it as a draft or manually set the post’s slug.","wordpress-seo")}),it=({onReconnect:e,className:t=""})=>{const s=(0,d.sprintf)(/* translators: %s expands to a link to open the Wincher login popup. */
(0,d.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"<reconnectToWincher/>","Wincher");return(0,u.jsx)(q.Alert,{type:"error",className:t,children:p(s,{reconnectToWincher:(0,u.jsx)("a",{href:"#",onClick:t=>{t.preventDefault(),e()},children:(0,d.sprintf)(/* translators: %s : Expands to "Wincher". */
(0,d.__)("reconnect to %s","wordpress-seo"),"Wincher")})})})};it.propTypes={onReconnect:o().func.isRequired,className:o().string};const ot=it,rt=()=>(0,u.jsx)(q.Alert,{type:"error",children:(0,d.__)("Something went wrong while tracking the ranking position(s) of your page. Please try again later.","wordpress-seo")}),nt=B().p`
	color: ${F.colors.$color_pink_dark};
	font-size: 14px;
	font-weight: 700;
	margin: 13px 0 10px;
`,at=B()(q.SvgIcon)`
	margin-right: 5px;
	vertical-align: middle;
`,lt=B().button`
	position: absolute;
	top: 9px;
	right: 9px;
	border: none;
	background: none;
	cursor: pointer;
`,ct=B().p`
	font-size: 13px;
	font-weight: 500;
	margin: 10px 0 13px;
`,dt=B().div`
	position: relative;
	background: ${e=>e.isTitleShortened?"#f5f7f7":"transparent"};
	border: 1px solid #c7c7c7;
	border-left: 4px solid${F.colors.$color_pink_dark};
	padding: 0 16px;
	margin-bottom: 1.5em;
`,pt=({limit:e,usage:t,isTitleShortened:s=!1,isFreeAccount:i=!1})=>{const o=(0,d.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,d.__)("Your are tracking %1$s out of %2$s keyphrases included in your free account.","wordpress-seo"),t,e),r=(0,d.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,d.__)("Your are tracking %1$s out of %2$s keyphrases included in your account.","wordpress-seo"),t,e),n=i?o:r,a=(0,d.sprintf)(
/* Translators: %1$s expands to the number of used keywords.
   * %2$s expands to the account keywords limit.
   */
(0,d.__)("Keyphrases tracked: %1$s/%2$s","wordpress-seo"),t,e),l=s?a:n;return(0,u.jsxs)(nt,{children:[s&&(0,u.jsx)(at,{icon:"exclamation-triangle",color:F.colors.$color_pink_dark,size:"14px"}),l]})};pt.propTypes={limit:o().number.isRequired,usage:o().number.isRequired,isTitleShortened:o().bool,isFreeAccount:o().bool};const ut=(0,X.makeOutboundLink)(),ht=({discount:e,months:t})=>{const s=(0,u.jsx)(ut,{href:wpseoAdminGlobalL10n["links.wincher.upgrade"],style:{fontWeight:600},children:(0,d.sprintf)(/* Translators: %s : Expands to "Wincher". */
(0,d.__)("Click here to upgrade your %s plan","wordpress-seo"),"Wincher")});if(!e||!t)return(0,u.jsx)(ct,{children:s});const i=100*e,o=(0,d.sprintf)(
/* Translators: %1$s expands to upgrade account link.
   * %2$s expands to the upgrade discount value.
   * %3$s expands to the upgrade discount duration e.g. 2 months.
   */
(0,d.__)("%1$s and get an exclusive %2$s discount for %3$s month(s).","wordpress-seo"),"<wincherAccountUpgradeLink/>",i+"%",t);return(0,u.jsx)(ct,{children:p(o,{wincherAccountUpgradeLink:s})})};ht.propTypes={discount:o().number,months:o().number};const gt=({onClose:t=null,isTitleShortened:s=!1,trackingInfo:i=null})=>{const o=(()=>{const[t,s]=(0,e.useState)(null);return(0,e.useEffect)((()=>{t||async function(){return await ue({path:"yoast/v1/wincher/account/upgrade-campaign",method:"GET"})}().then((e=>s(e)))}),[t]),t})();if(null===i)return null;const{limit:r,usage:n}=i;if(!(r&&n/r>=.8))return null;const a=Boolean(null==o?void 0:o.discount);return(0,u.jsxs)(dt,{isTitleShortened:s,children:[t&&(0,u.jsx)(lt,{type:"button","aria-label":(0,d.__)("Close the upgrade callout","wordpress-seo"),onClick:t,children:(0,u.jsx)(q.SvgIcon,{icon:"times-circle",color:F.colors.$color_pink_dark,size:"14px"})}),(0,u.jsx)(pt,{...i,isTitleShortened:s,isFreeAccount:a}),(0,u.jsx)(ht,{discount:null==o?void 0:o.discount,months:null==o?void 0:o.months})]})};gt.propTypes={onClose:o().func,isTitleShortened:o().bool,trackingInfo:o().object};const mt=gt,yt=window.yoast["chart.js"],wt="label";function ft(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function xt(e,t){e.labels=t}function bt(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wt;const i=[];e.datasets=t.map((t=>{const o=e.datasets.find((e=>e[s]===t[s]));return o&&t.data&&!i.includes(o)?(i.push(o),Object.assign(o,t),o):{...t}}))}function vt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wt;const s={labels:[],datasets:[]};return xt(s,e.labels),bt(s,e.datasets,t),s}function kt(e,t){const{height:s=150,width:i=300,redraw:o=!1,datasetIdKey:r,type:n,data:a,options:c,plugins:d=[],fallbackContent:p,updateMode:u,...h}=e,g=(0,l.useRef)(null),m=(0,l.useRef)(),y=()=>{g.current&&(m.current=new yt.Chart(g.current,{type:n,data:vt(a,r),options:c&&{...c},plugins:d}),ft(t,m.current))},w=()=>{ft(t,null),m.current&&(m.current.destroy(),m.current=null)};return(0,l.useEffect)((()=>{!o&&m.current&&c&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(m.current,c)}),[o,c]),(0,l.useEffect)((()=>{!o&&m.current&&xt(m.current.config.data,a.labels)}),[o,a.labels]),(0,l.useEffect)((()=>{!o&&m.current&&a.datasets&&bt(m.current.config.data,a.datasets,r)}),[o,a.datasets]),(0,l.useEffect)((()=>{m.current&&(o?(w(),setTimeout(y)):m.current.update(u))}),[o,c,a.labels,a.datasets,u]),(0,l.useEffect)((()=>{m.current&&(w(),setTimeout(y))}),[n]),(0,l.useEffect)((()=>(y(),()=>w())),[]),l.createElement("canvas",Object.assign({ref:g,role:"img",height:s,width:i},h),p)}const _t=(0,l.forwardRef)(kt);function Tt(e,t){return yt.Chart.register(t),(0,l.forwardRef)(((t,s)=>l.createElement(_t,Object.assign({},t,{ref:s,type:e}))))}const Rt=Tt("line",yt.LineController),jt={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};yt._adapters._date.override("function"==typeof le()?{_id:"moment",formats:function(){return jt},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=le()(e,t):e instanceof le()||(e=le()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return le()(e).format(t)},add:function(e,t,s){return le()(e).add(t,s).valueOf()},diff:function(e,t,s){return le()(e).diff(le()(t),s)},startOf:function(e,t,s){return e=le()(e),"isoWeek"===t?(s=Math.trunc(Math.min(Math.max(0,s),6)),e.isoWeekday(s).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return le()(e).endOf(t).valueOf()}}:{}),Math.PI,Number.POSITIVE_INFINITY,Math.log10,Math.sign,"undefined"==typeof window||window.requestAnimationFrame,new Map,Object.create(null),Object.create(null),Number.EPSILON;const St=["top","right","bottom","left"];function It(e,t,s){const i={};s=s?"-"+s:"";for(let o=0;o<4;o++){const r=St[o];i[r]=parseFloat(e[t+"-"+r+s])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}!function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}}(),yt.Chart.register(yt.CategoryScale,yt.LineController,yt.LineElement,yt.PointElement,yt.LinearScale,yt.TimeScale,yt.Legend,yt.Tooltip);const Ct=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function Et({datasets:t,isChartShown:s,keyphrases:i}){if(!s)return null;const o=(0,e.useMemo)((()=>Object.fromEntries([...i].sort().map(((e,t)=>[e,Ct[t%Ct.length]])))),[i]),r=t.map((e=>{const t=o[e.label];return{...e,data:e.data.map((({datetime:e,value:t})=>({x:e,y:t}))),lineTension:0,pointRadius:1,pointHoverRadius:4,borderWidth:2,pointHitRadius:6,backgroundColor:t,borderColor:t}})).filter((e=>!1!==e.selected));return(0,u.jsx)(Rt,{height:100,data:{datasets:r},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:n.noop},tooltip:{enabled:!0,callbacks:{title:e=>le()(e[0].raw.x).utc().format("YYYY-MM-DD")},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:31}}}})}yt.Interaction.modes.xPoint=(e,t,s,i)=>{const o=function(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:i}=t,o=(h=s).ownerDocument.defaultView.getComputedStyle(h,null),r="border-box"===o.boxSizing,n=It(o,"padding"),a=It(o,"border","width"),{x:l,y:c,box:d}=function(e,t){const s=e.touches,i=s&&s.length?s[0]:e,{offsetX:o,offsetY:r}=i;let n,a,l=!1;if(((e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot))(o,r,e.target))n=o,a=r;else{const e=t.getBoundingClientRect();n=i.clientX-e.left,a=i.clientY-e.top,l=!0}return{x:n,y:a,box:l}}(e,s),p=n.left+(d&&a.left),u=n.top+(d&&a.top);var h;let{width:g,height:m}=t;return r&&(g-=n.width+a.width,m-=n.height+a.height),{x:Math.round((l-p)/g*s.width/i),y:Math.round((c-u)/m*s.height/i)}}(t,e);let r=[];if(yt.Interaction.evaluateInteractionItems(e,"x",o,((e,t,s)=>{e.inXRange(o.x,i)&&r.push({element:e,datasetIndex:t,index:s})})),0===r.length)return r;const n=r.reduce(((e,t)=>Math.abs(o.x-e.element.x)<Math.abs(o.x-t.element.x)?e:t)).element.x;return r=r.filter((e=>e.element.x===n)),r.some((e=>Math.abs(e.element.y-o.y)<10))?r:[]},Et.propTypes={datasets:o().arrayOf(o().shape({label:o().string.isRequired,data:o().arrayOf(o().shape({datetime:o().string.isRequired,value:o().number.isRequired})).isRequired,selected:o().bool})).isRequired,isChartShown:o().bool.isRequired,keyphrases:o().array.isRequired};const Lt=({response:e,onLogin:t})=>[401,403,404].includes(e.status)?(0,u.jsx)(ot,{onReconnect:t}):(0,u.jsx)(rt,{});Lt.propTypes={response:o().object.isRequired,onLogin:o().func.isRequired};const At=({isSuccess:e,response:t={},allKeyphrasesMissRanking:s,onLogin:i,keyphraseLimitReached:o,limit:r})=>o?(0,u.jsx)(et,{limit:r}):(0,n.isEmpty)(t)||e?s?(0,u.jsx)(ze,{}):null:(0,u.jsx)(Lt,{response:t,onLogin:i});At.propTypes={isSuccess:o().bool.isRequired,allKeyphrasesMissRanking:o().bool.isRequired,response:o().object,onLogin:o().func.isRequired,keyphraseLimitReached:o().bool.isRequired,limit:o().number.isRequired};let qt=null;const Ft=async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r})=>{if(qt&&!qt.isClosed())return void qt.focus();const{url:n}=await async function(){return await ue({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();qt=new Ke(n,{success:{type:"wincher:oauth:success",callback:n=>(async({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r},n)=>{await pe((()=>async function(e){const{code:t,websiteId:s}=e;return await ue({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:s}})}(n)),(async a=>{e(!0,!0,n.websiteId.toString()),t(a);const l=(Array.isArray(i)?i:[i]).map((e=>e.toLowerCase()));await pe((()=>he(l)),(e=>{t(e),o(e.results)}),(e=>{400===e.status&&e.limit&&r(e.limit),s(e)}),201);const c=qt.getPopup();c&&c.close()}),(async e=>s(e)))})({onAuthentication:e,setRequestSucceeded:t,setRequestFailed:s,keyphrases:i,addTrackedKeyphrase:o,setKeyphraseLimitReached:r},n)},error:{type:"wincher:oauth:error",callback:()=>e(!1,!1)}},{title:"Wincher_login",width:500,height:700}),qt.createPopup()},Pt=e=>e.isLoggedIn?null:(0,u.jsx)("p",{children:(0,u.jsx)(q.NewButton,{onClick:e.onLogin,variant:"primary",children:(0,d.sprintf)(/* translators: %s expands to Wincher */
(0,d.__)("Connect with %s","wordpress-seo"),"Wincher")})});Pt.propTypes={isLoggedIn:o().bool.isRequired,onLogin:o().func.isRequired};const Mt=B().div`
	p {
		margin: 1em 0;
	}
`,Dt=B().div`
	${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"};
`,Ot=B().div`
	font-weight: var(--yoast-font-weight-bold);
	color: var(--yoast-color-label);
	font-size: var(--yoast-font-size-default);
`,Nt=B().div.attrs({className:"yoast-field-group"})`
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
`,Ut=B().div`
	margin: 8px 0;
`,Wt=le().utc().startOf("day"),$t=[{name:(0,d.__)("Last day","wordpress-seo"),value:le()(Wt).subtract(1,"days").format(),defaultIndex:1},{name:(0,d.__)("Last week","wordpress-seo"),value:le()(Wt).subtract(1,"week").format(),defaultIndex:2},{name:(0,d.__)("Last month","wordpress-seo"),value:le()(Wt).subtract(1,"month").format(),defaultIndex:3},{name:(0,d.__)("Last year","wordpress-seo"),value:le()(Wt).subtract(1,"year").format(),defaultIndex:0}],Bt=({onSelect:e,selected:t=null,options:s,isLoggedIn:i})=>i?s.length<1?null:(0,u.jsx)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==t?void 0:t.value)||s[0].value,onChange:e,children:s.map((e=>(0,u.jsx)("option",{value:e.value,children:e.name},e.name)))}):null;Bt.propTypes={onSelect:o().func.isRequired,selected:o().object,options:o().array.isRequired,isLoggedIn:o().bool.isRequired};const Ht=({trackedKeyphrases:t=null,isLoggedIn:s,keyphrases:i,shouldTrackAll:o,permalink:r,historyDaysLimit:a=0})=>{if(!r&&s)return(0,u.jsx)(st,{});if(0===i.length)return(0,u.jsx)(tt,{});const l=le()(Wt).subtract(a,"days"),c=$t.filter((e=>le()(e.value).isSameOrAfter(l))),p=(0,n.orderBy)(c,(e=>e.defaultIndex),"desc")[0],[h,g]=(0,e.useState)(p),[m,y]=(0,e.useState)([]),w=m.length>0,f=(0,V.usePrevious)(t);(0,e.useEffect)((()=>{if(!(0,n.isEmpty)(t)&&(0,n.difference)(Object.keys(t),Object.keys(f||[])).length){const e=Object.values(t).map((e=>e.keyword));y(e)}}),[t,f]),(0,e.useEffect)((()=>{g(p)}),[null==p?void 0:p.name]);const x=(0,e.useCallback)((e=>{const t=$t.find((t=>t.value===e.target.value));t&&g(t)}),[g]),b=(0,e.useMemo)((()=>(0,n.isEmpty)(m)||(0,n.isEmpty)(t)?[]:Object.values(t).filter((e=>{var t;return!(null==e||null===(t=e.position)||void 0===t||!t.history)})).map((e=>{var t;return{label:e.keyword,data:e.position.history,selected:m.includes(e.keyword)&&!(0,n.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}))),[m,t]);return(0,u.jsxs)(Dt,{isDisabled:!s,children:[(0,u.jsx)("p",{children:(0,d.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")}),s&&o&&(0,u.jsx)(Ye,{}),(0,u.jsx)(Nt,{children:(0,u.jsx)(Bt,{selected:h,onSelect:x,options:c,isLoggedIn:s})}),(0,u.jsx)(Ut,{children:(0,u.jsx)(Et,{isChartShown:w,datasets:b,keyphrases:i})}),(0,u.jsx)(He,{startAt:null==h?void 0:h.value,selectedKeyphrases:m,onSelectKeyphrases:y,trackedKeyphrases:t})]})};function Kt({trackedKeyphrases:t=null,addTrackedKeyphrase:s,isLoggedIn:i=!1,isNewlyAuthenticated:o=!1,keyphrases:r=[],response:n={},shouldTrackAll:a=!1,permalink:l="",allKeyphrasesMissRanking:c,isSuccess:p,keyphraseLimitReached:h,limit:g,setRequestSucceeded:m,setRequestFailed:y,setKeyphraseLimitReached:w,onAuthentication:f}){const x=(0,e.useCallback)((()=>{Ft({onAuthentication:f,setRequestSucceeded:m,setRequestFailed:y,keyphrases:r,addTrackedKeyphrase:s,setKeyphraseLimitReached:w})}),[Ft,f,m,y,r,s,w]),b=(t=>{const[s,i]=(0,e.useState)(null);return(0,e.useEffect)((()=>{t&&!s&&async function(){return await ue({path:"yoast/v1/wincher/account/limit",method:"GET"})}().then((e=>i(e)))}),[s]),s})(i);return(0,u.jsxs)(Mt,{children:[o&&(0,u.jsx)(Ve,{}),i&&(0,u.jsx)(mt,{trackingInfo:b}),(0,u.jsxs)(Ot,{children:[(0,d.__)("SEO performance","wordpress-seo"),(0,u.jsx)(q.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"]
/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about the SEO performance feature.","wordpress-seo")})]}),(0,u.jsx)(Xe,{}),(0,u.jsx)(Pt,{isLoggedIn:i,onLogin:x}),(0,u.jsx)(At,{isSuccess:p,response:n,allKeyphrasesMissRanking:c,keyphraseLimitReached:h,limit:g,onLogin:x}),(0,u.jsx)(Ht,{trackedKeyphrases:t,isLoggedIn:i,keyphrases:r,shouldTrackAll:a,permalink:l,historyDaysLimit:(null==b?void 0:b.historyDays)||31})]})}Ht.propTypes={trackedKeyphrases:o().object,keyphrases:o().array.isRequired,isLoggedIn:o().bool.isRequired,shouldTrackAll:o().bool.isRequired,permalink:o().string.isRequired,historyDaysLimit:o().number},Kt.propTypes={trackedKeyphrases:o().object,addTrackedKeyphrase:o().func.isRequired,isLoggedIn:o().bool,isNewlyAuthenticated:o().bool,keyphrases:o().array,response:o().object,shouldTrackAll:o().bool,permalink:o().string,allKeyphrasesMissRanking:o().bool.isRequired,isSuccess:o().bool.isRequired,keyphraseLimitReached:o().bool.isRequired,limit:o().number.isRequired,setRequestSucceeded:o().func.isRequired,setRequestFailed:o().func.isRequired,setKeyphraseLimitReached:o().func.isRequired,onAuthentication:o().func.isRequired};const Yt=(0,V.compose)([(0,a.withSelect)((e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:s,getWincherLimit:i,getWincherLoginStatus:o,getWincherRequestIsSuccess:r,getWincherRequestResponse:n,getWincherTrackableKeyphrases:a,getWincherTrackedKeyphrases:l,getWincherAllKeyphrasesMissRanking:c,getWincherPermalink:d,shouldWincherAutomaticallyTrackAll:p}=e("yoast-seo/editor");return{keyphrases:a(),trackedKeyphrases:l(),allKeyphrasesMissRanking:c(),isLoggedIn:o(),isNewlyAuthenticated:t(),isSuccess:r(),keyphraseLimitReached:s(),limit:i(),response:n(),shouldTrackAll:p(),permalink:d()}})),(0,a.withDispatch)((e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:s,setWincherRequestFailed:i,setWincherTrackingForKeyphrase:o,setWincherSetKeyphraseLimitReached:r,setWincherLoginStatus:n}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{i(e)},addTrackedKeyphrase:e=>{o(e)},setKeyphraseLimitReached:e=>{r(e)},onAuthentication:(e,s,i)=>{t(i),n(e,s)}}}))])(Kt),Vt=B()(z)`
	width: 18px;
	height: 18px;
	margin: 3px;
`;function zt({keyphrases:e,onNoKeyphraseSet:t,onOpen:s,location:i}){if(!e.length){let e=document.querySelector("#focus-keyword-input-metabox");return e||(e=document.querySelector("#focus-keyword-input-sidebar")),e.focus(),void t()}s(i)}function Gt({location:t="",whichModalOpen:s="none",shouldCloseOnClickOutside:i=!0,keyphrases:o,onNoKeyphraseSet:r,onOpen:n,onClose:a}){const c=(0,e.useCallback)((()=>{zt({keyphrases:o,onNoKeyphraseSet:r,onOpen:n,location:t})}),[zt,o,r,n,t]),p=(0,d.__)("Track SEO performance","wordpress-seo"),h=((e=null)=>(0,l.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]))();return(0,u.jsxs)(e.Fragment,{children:[s===t&&(0,u.jsx)(ee,{title:p,onRequestClose:a,icon:(0,u.jsx)(oe,{}),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:i,children:(0,u.jsx)(Q,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content",children:(0,u.jsx)(Yt,{})})}),"sidebar"===t&&(0,u.jsx)(ne,{id:`wincher-open-button-${t}`,title:p,SuffixHeroIcon:(0,u.jsx)(Vt,{className:"yst-text-slate-500",...h}),onClick:c}),"metabox"===t&&(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsxs)(Z,{id:`wincher-open-button-${t}`,onClick:c,children:[(0,u.jsx)(Z.Text,{children:p}),(0,u.jsx)(z,{className:"yst-h-5 yst-w-5 yst-text-slate-500",...h})]})})]})}Gt.propTypes={location:o().string,whichModalOpen:o().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:o().bool,keyphrases:o().array.isRequired,onNoKeyphraseSet:o().func.isRequired,onOpen:o().func.isRequired,onClose:o().func.isRequired};const Zt=(0,V.compose)([(0,a.withSelect)((e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:s}=e("yoast-seo/editor");return{keyphrases:s(),whichModalOpen:t()}})),(0,a.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherDismissModal:s,setWincherNoKeyphrase:i}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{s()},onNoKeyphraseSet:()=>{i()}}}))])(Gt),Xt=window.yoast.externals.components;function Qt(){return(0,V.createHigherOrderComponent)((function(t){return(0,V.pure)((function(s){const i=(0,e.useContext)(W.LocationContext);return(0,e.createElement)(t,{...s,location:i})}))}),"withLocation")}const Jt=(0,V.compose)([(0,a.withSelect)((e=>{const{isCornerstoneContent:t}=e("yoast-seo/editor");return{isCornerstone:t(),learnMoreUrl:wpseoAdminL10n["shortlinks.cornerstone_content_info"]}})),(0,a.withDispatch)((e=>{const{toggleCornerstoneContent:t}=e("yoast-seo/editor");return{onChange:t}})),Qt()])(Xt.CollapsibleCornerstone),es=window.yoast.searchMetadataPreviews,ts=B()(q.StyledSection)`
	&${q.StyledSectionBase} {
		padding: 0;

		& ${q.StyledHeading} {
			${(0,X.getDirectionalStyle)("padding-left","padding-right")}: 20px;
			margin-left: ${(0,X.getDirectionalStyle)("0","20px")};
		}
	}
`,ss=({children:e=null,title:t="",icon:s="",hasPaperStyle:i=!0,shoppingData:o=null})=>(0,u.jsx)(ts,{headingLevel:3,headingText:t,headingIcon:s,headingIconColor:"#555",hasPaperStyle:i,shoppingData:o,children:e});ss.propTypes={children:o().element,title:o().string,icon:o().string,hasPaperStyle:o().bool,shoppingData:o().object};const is=ss,os=window.wp.sanitize,rs="SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLE";function ns(e,t,s="",i=!1){const o="string"==typeof t?(0,X.decodeHTML)(t):t;return{type:rs,name:e,value:o,label:s,hidden:i}}function as(e){return e.charAt(0).toUpperCase()+e.slice(1)}const{stripHTMLTags:ls}=X.strings,cs=["slug","content","contentImage","snippetPreviewImageURL"];function ds(e,t="_"){return e.replace(/\s/g,t)}const ps=(0,n.memoize)(((e,t)=>0===e?n.noop:(0,n.debounce)((s=>t(s,e)),500))),us=({link:e,text:t})=>(0,u.jsxs)(r.Root,{children:[(0,u.jsx)("p",{children:t}),(0,u.jsxs)(r.Button,{href:e,as:"a",className:"yst-gap-2 yst-mb-5 yst-mt-2",variant:"upsell",target:"_blank",rel:"noopener",children:[(0,u.jsx)(h,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,d.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,d.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO")]})]});us.propTypes={link:o().string.isRequired,text:o().string.isRequired};const hs=us,gs=function(e,t){let s=0;return t.shortenedBaseUrl&&"string"==typeof t.shortenedBaseUrl&&(s=t.shortenedBaseUrl.length),e.url=e.url.replace(/\s+/g,"-"),"-"===e.url[e.url.length-1]&&(e.url=e.url.slice(0,-1)),"-"===e.url[s]&&(e.url=e.url.slice(0,s)+e.url.slice(s+1)),function(e){const t=(0,n.get)(window,["YoastSEO","app","pluggable"],!1);if(!t||!(0,n.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const t=(0,n.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],n.identity);return{url:e.url,title:ls(t(e.title)),description:ls(t(e.description)),filteredSEOTitle:e.filteredSEOTitle?ls(t(e.filteredSEOTitle)):""}}(e);const s=t._applyModifications.bind(t);return{url:e.url,title:ls(s("data_page_title",e.title)),description:ls(s("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?ls(s("data_page_title",e.filteredSEOTitle)):""}}(e)},ms=(0,V.compose)([(0,a.withSelect)((function(e){const{getBaseUrlFromSettings:t,getDateFromSettings:s,getFocusKeyphrase:i,getRecommendedReplaceVars:o,getReplaceVars:r,getShoppingData:n,getSiteIconUrlFromSettings:a,getSnippetEditorData:l,getSnippetEditorMode:c,getSnippetEditorPreviewImageUrl:d,getSnippetEditorWordsToHighlight:p,isCornerstoneContent:u,getIsTerm:h,getContentLocale:g,getSiteName:m}=e("yoast-seo/editor"),y=r();return y.forEach((e=>{""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(e.value="%%"+e.name+"%%")})),{baseUrl:t(),data:l(),date:s(),faviconSrc:a(),keyword:i(),mobileImageSrc:d(),mode:c(),recommendedReplacementVariables:o(),replacementVariables:y,shoppingData:n(),wordsToHighlight:p(),isCornerstone:u(),isTaxonomy:h(),locale:g(),siteName:m()}})),(0,a.withDispatch)((function(e,t,{select:s}){const{updateData:i,switchMode:o,updateAnalysisData:r,findCustomFields:n}=e("yoast-seo/editor"),a=e("core/editor"),l=s("yoast-seo/editor").getPostId();return{onChange:(e,t)=>{switch(e){case"mode":o(t);break;case"slug":i({slug:t}),a&&a.editPost({slug:t});break;default:i({[e]:t})}},onChangeAnalysisData:r,onReplacementVariableSearchChange:ps(l,n)}}))])((e=>{const t=(0,a.useSelect)((e=>e("yoast-seo/editor").selectLink("https://yoa.st/product-google-preview-metabox")),[]),s=(0,a.useSelect)((e=>e("yoast-seo/editor").getIsWooSeoUpsell()),[]),i=(0,d.__)("Want an enhanced Google preview of how your WooCommerce products look in the search results?","wordpress-seo");return(0,u.jsx)(W.LocationConsumer,{children:o=>(0,u.jsx)(is,{icon:"eye",hasPaperStyle:e.hasPaperStyle,children:(0,u.jsxs)(u.Fragment,{children:[s&&(0,u.jsx)(hs,{link:t,text:i}),(0,u.jsx)(es.SnippetEditor,{...e,descriptionPlaceholder:(0,d.__)("Please provide a meta description by editing the snippet below.","wordpress-seo"),mapEditorDataToPreview:gs,showCloseButton:!1,idSuffix:o})]})})})})),ys=(0,a.withSelect)((e=>{const{getWarningMessage:t}=e("yoast-seo/editor");return{message:t()}}))(q.Warning),ws=window.yoast.featureFlag,fs=B()(q.Collapsible)`
	h2 > button {
		padding-left: 24px;
		padding-top: 16px;

		&:hover {
			background-color: #f0f0f0;
		}
	}

	div[class^="collapsible_content"] {
		padding: 24px 0;
		margin: 0 24px;
		border-top: 1px solid rgba(0,0,0,0.2);
	}

`,xs=e=>(0,u.jsx)(fs,{hasPadding:!0,hasSeparator:!0,...e}),bs=()=>{const t=(0,a.useSelect)((e=>e("yoast-seo/editor").getEstimatedReadingTime()),[]),s=(0,e.useMemo)((()=>(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-estimated_reading_time","")),[]);return(0,u.jsx)(q.InsightsCard,{amount:t,unit:(0,d._n)("minute","minutes",t,"wordpress-seo"),title:(0,d.__)("Reading time","wordpress-seo"),linkTo:s
/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about reading time","wordpress-seo")})},vs=(0,X.makeOutboundLink)();function ks(e,t){return-1===e?(0,d.__)("Your text should be slightly longer to calculate your Flesch reading ease score.","wordpress-seo"):(0,d.sprintf)(
/* Translators: %1$s expands to the numeric Flesch reading ease score,
  %2$s expands to the easiness of reading (e.g. 'easy' or 'very difficult') */
(0,d.__)("The copy scores %1$s in the test, which is considered %2$s to read.","wordpress-seo"),e,function(e){switch(e){case P.DIFFICULTY.NO_DATA:return(0,d.__)("no data","wordpress-seo");case P.DIFFICULTY.VERY_EASY:return(0,d.__)("very easy","wordpress-seo");case P.DIFFICULTY.EASY:return(0,d.__)("easy","wordpress-seo");case P.DIFFICULTY.FAIRLY_EASY:return(0,d.__)("fairly easy","wordpress-seo");case P.DIFFICULTY.OKAY:return(0,d.__)("okay","wordpress-seo");case P.DIFFICULTY.FAIRLY_DIFFICULT:return(0,d.__)("fairly difficult","wordpress-seo");case P.DIFFICULTY.DIFFICULT:return(0,d.__)("difficult","wordpress-seo");case P.DIFFICULTY.VERY_DIFFICULT:return(0,d.__)("very difficult","wordpress-seo")}}(t))}const _s=()=>{let t=(0,a.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseScore()),[]);const s=(0,e.useMemo)((()=>(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease","")),[]),i=(0,a.useSelect)((e=>e("yoast-seo/editor").getFleschReadingEaseDifficulty()),[t]),o=(0,e.useMemo)((()=>{const e=(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-flesch_reading_ease_article","");return function(e,t,s){const i=function(e){switch(e){case P.DIFFICULTY.FAIRLY_DIFFICULT:case P.DIFFICULTY.DIFFICULT:case P.DIFFICULTY.VERY_DIFFICULT:return(0,d.__)("Try to make shorter sentences, using less difficult words to improve readability","wordpress-seo");case P.DIFFICULTY.NO_DATA:return(0,d.__)("Continue writing to get insight into the readability of your text!","wordpress-seo");default:return(0,d.__)("Good job!","wordpress-seo")}}(t);return(0,u.jsxs)("span",{children:[ks(e,t)," ",t>=P.DIFFICULTY.FAIRLY_DIFFICULT?(0,u.jsx)(vs,{href:s,children:i+"."}):i]})}(t,i,e)}),[t,i]);return-1===t&&(t="?"),(0,u.jsx)(q.InsightsCard,{amount:t,unit:(0,d.__)("out of 100","wordpress-seo"),title:(0,d.__)("Flesch reading ease","wordpress-seo"),linkTo:s
/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about Flesch reading ease","wordpress-seo"),description:o})},Ts=({data:t=[],itemScreenReaderText:s="",className:i="",...o})=>{const r=(0,e.useMemo)((()=>{var e,s;return null!==(e=null===(s=(0,n.maxBy)(t,"number"))||void 0===s?void 0:s.number)&&void 0!==e?e:0}),[t]);return(0,u.jsx)("ul",{className:C()("yoast-data-model",i),...o,children:t.map((({name:e,number:t})=>(0,u.jsxs)("li",{style:{"--yoast-width":t/r*100+"%"},children:[e,(0,u.jsx)("span",{children:t}),s&&(0,u.jsx)("span",{className:"screen-reader-text",children:(0,d.sprintf)(s,t)})]},`${e}_dataItem`)))})};Ts.propTypes={data:o().arrayOf(o().shape({name:o().string.isRequired,number:o().number.isRequired})),itemScreenReaderText:o().string,className:o().string};const Rs=Ts,js=window.wp.url,Ss=(0,X.makeOutboundLink)(),Is=({location:t})=>{const s=(0,a.useSelect)((e=>{var t,s;return null===(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getPreference("isProminentWordsAvailable",!1))||void 0===t||t}),[]),i=(0,a.useSelect)((e=>e("yoast-seo/editor").getPreference("shouldUpsell",!1)),[]),o=(0,e.useMemo)((()=>(0,n.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${t}-prominent_words`,"")),[t]),r=(0,e.useMemo)((()=>{const e=(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-keyword_research_link","");return p((0,d.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing <a> tags.
(0,d.__)("Read our %1$sultimate guide to keyword research%2$s to learn more about keyword research and keyword strategy.","wordpress-seo"),"<a>","</a>"),{a:(0,u.jsx)(Ss,{href:e})})}),[]),l=(0,e.useMemo)((()=>p((0,d.sprintf)(
// translators: %1$s expands to a starting `b` tag, %1$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`.
(0,d.__)("With %1$s%3$s%2$s, this section will show you which words occur most often in your text. By checking these prominent words against your intended keyword(s), you'll know how to edit your text to be more focused.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:(0,u.jsx)("b",{})})),[]),c=(0,a.useSelect)((e=>{var t,s;return null!==(t=null===(s=e("yoast-seo-premium/editor"))||void 0===s?void 0:s.getProminentWords())&&void 0!==t?t:[]}),[]),h=(0,e.useMemo)((()=>{const e=(0,d.sprintf)(
// translators: %1$s expands to Yoast SEO Premium.
(0,d.__)("Get %s to enjoy the benefits of prominent words","wordpress-seo"),"Yoast SEO Premium").split(/\s+/);return e.map(((t,s)=>({name:t,number:e.length-s})))}),[]),g=(0,e.useMemo)((()=>i?h:c.map((({word:e,occurrence:t})=>({name:e,number:t})))),[c,h]);if(!s)return null;const{locationContext:m}=(0,W.useRootContext)();return(0,u.jsxs)("div",{className:"yoast-prominent-words",children:[(0,u.jsx)("div",{className:"yoast-field-group__title",children:(0,u.jsx)("b",{children:(0,d.__)("Prominent words","wordpress-seo")})}),!i&&(0,u.jsx)("p",{children:0===g.length?(0,d.__)("Once you add a bit more copy, we'll give you a list of words that occur the most in the content. These give an indication of what your content focuses on.","wordpress-seo"):(0,d.__)("The following words occur the most in the content. These give an indication of what your content focuses on. If the words differ a lot from your topic, you might want to rewrite your content accordingly.","wordpress-seo")}),i&&(0,u.jsx)("p",{children:l}),i&&(0,u.jsxs)(Ss,{href:(0,js.addQueryArgs)(o,{context:m}),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",className:"yoast-button yoast-button-upsell",children:[(0,d.sprintf)(
// translators: %s expands to `Premium` (part of add-on name).
(0,d.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,u.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]}),(0,u.jsx)("p",{children:r}),(0,u.jsx)(Rs,{data:g,itemScreenReaderText:/* translators: Hidden accessibility text; %d expands to the number of occurrences. */
(0,d.__)("%d occurrences","wordpress-seo"),"aria-label":(0,d.__)("Prominent words","wordpress-seo"),className:i?"yoast-data-model--upsell":null})]})};Is.propTypes={location:o().string.isRequired};const Cs=Is,Es=()=>{const t=(0,a.useSelect)((e=>e("yoast-seo/editor").getTextLength()),[]),s=(0,e.useMemo)((()=>(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-word_count","")),[]);let i=(0,d._n)("word","words",t.count,"wordpress-seo"),o=(0,d.__)("Word count","wordpress-seo"),r=(0,d.__)("Learn more about word count","wordpress-seo");return"character"===t.unit&&(i=(0,d._n)("character","characters",t.count,"wordpress-seo"),o=(0,d.__)("Character count","wordpress-seo"),
/* translators: Hidden accessibility text. */
r=(0,d.__)("Learn more about character count","wordpress-seo")),(0,u.jsx)(q.InsightsCard,{amount:t.count,unit:i,title:o,linkTo:s,linkText:r})},Ls=(0,X.makeOutboundLink)(),As=({location:t})=>{const s=(0,e.useMemo)((()=>(0,n.get)(window,`wpseoAdminL10n.shortlinks-insights-upsell-${t}-text_formality`,"")),[t]),i=(0,e.useMemo)((()=>p((0,d.sprintf)(
// Translators: %1$s expands to a starting `b` tag, %2$s expands to a closing `b` tag and %3$s expands to `Yoast SEO Premium`.
(0,d.__)("%1$s%3$s%2$s will help you assess the formality level of your text.","wordpress-seo"),"<b>","</b>","Yoast SEO Premium"),{b:(0,u.jsx)("b",{})})),[]);return(0,u.jsx)(e.Fragment,{children:(0,u.jsxs)("div",{children:[(0,u.jsx)("p",{children:i}),(0,u.jsxs)(Ls,{href:s,className:"yoast-button yoast-button-upsell",children:[(0,d.sprintf)(
// Translators: %s expands to `Premium` (part of add-on name).
(0,d.__)("Unlock with %s","wordpress-seo"),"Premium"),(0,u.jsx)("span",{"aria-hidden":"true",className:"yoast-button-upsell__caret"})]})]})})};As.propTypes={location:o().string.isRequired};const qs=As;function Fs(){return(0,n.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}const Ps=({location:e,name:s})=>{const i=(0,a.useSelect)((e=>e("yoast-seo/editor").isFormalitySupported()),[]),o=Fs().isPremium,r=o?(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_premium",""):(0,n.get)(window,"wpseoAdminL10n.shortlinks-insights-text_formality_info_free",""),l=(0,d.__)("Read more about text formality.","wordpress-seo");return i?(0,u.jsxs)("div",{className:"yoast-text-formality",children:[(0,u.jsxs)("div",{className:"yoast-field-group__title",children:[(0,u.jsx)("b",{children:(0,d.__)("Text formality","wordpress-seo")}),(0,u.jsx)(q.HelpIcon,{linkTo:r,linkText:l})]}),o?(0,u.jsx)(t.Slot,{name:s}):(0,u.jsx)(qs,{location:e})]}):null};Ps.propTypes={location:o().string.isRequired,name:o().string.isRequired};const Ms=Ps,Ds=({location:e="metabox"})=>{const t=(0,a.useSelect)((e=>e("yoast-seo/editor").isFleschReadingEaseAvailable()),[]);return(0,u.jsxs)(xs,{title:(0,d.__)("Insights","wordpress-seo"),id:`yoast-insights-collapsible-${e}`,className:"yoast-insights",children:[(0,u.jsx)(Cs,{location:e}),(0,u.jsxs)("div",{children:[t&&(0,u.jsx)("div",{className:"yoast-insights-row",children:(0,u.jsx)(_s,{})}),(0,u.jsxs)("div",{className:"yoast-insights-row yoast-insights-row--columns",children:[(0,u.jsx)(bs,{}),(0,u.jsx)(Es,{})]}),(0,ws.isFeatureEnabled)("TEXT_FORMALITY")&&(0,u.jsx)(Ms,{location:e,name:"YoastTextFormalityMetabox"})]})]})};Ds.propTypes={location:o().string};const Os=Ds,Ns=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})),Us=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"}))})),Ws=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))})),$s=({isOpen:t,onClose:s,id:i,upsellLink:o,title:n="",description:l="",benefits:c=[],note:p="",ctbId:g="",modalTitle:m})=>{const{isBlackFriday:y,isWooCommerceActive:w,isProductEntity:f,isWooSEOActive:x}=(0,a.useSelect)((e=>{const t=e("yoast-seo/editor");return{isProductEntity:t.getIsProductEntity(),isWooCommerceActive:t.getIsWooCommerceActive(),isBlackFriday:t.isPromotionActive("black-friday-promotion"),isWooSEOActive:t.getIsWooSeoActive()}}),[]),b=(0,e.useMemo)((()=>w&&f),[w,f]);return(0,u.jsx)(r.Modal,{isOpen:t,onClose:s,id:i,children:(0,u.jsx)(r.Modal.Panel,{className:"yst-max-w-[26.25rem] yst-p-0",hasCloseButton:!1,children:(0,u.jsxs)(r.Modal.Container,{children:[(0,u.jsxs)(r.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-4 yst-items-center",children:[b?(0,u.jsx)(Ws,{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,u.jsx)(oe,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,u.jsx)(r.Modal.Title,{as:"h3",className:C()(b?"yst-text-woo-light":"yst-text-primary-500","yst-text-xl"),children:m}),(0,u.jsx)(r.Modal.CloseButton,{className:"yst-top-2",onClick:s,screenReaderText:(0,d.__)("Close modal","wordpress-seo")})]}),(0,u.jsxs)(r.Modal.Container.Content,{className:"yst-p-0",children:[y&&(0,u.jsx)("div",{className:"yst-flex yst-font-semibold yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6",children:(0,u.jsx)("div",{className:"yst-mx-auto",children:(0,d.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,u.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,u.jsx)(r.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-medium",children:n}),(0,u.jsx)("p",{className:"yst-mb-2",children:l}),Array.isArray(c)&&c.length>0&&(0,u.jsx)("ul",{className:"yst-my-2",children:c.map(((e,t)=>(0,u.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,u.jsx)(Us,{className:"yst-w-5 yst-h-5 yst--ms-1 yst-shrink-0 yst-inline yst-text-green-600"}),(0,u.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${i}-upsell-benefit-${t}`)))}),"function"==typeof c&&c(),(0,u.jsxs)("div",{className:"yst-text-center",children:[(0,u.jsxs)(r.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5",href:o,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":g,children:[(0,u.jsx)(h,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,d.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */
(0,d.__)("Explore %s","wordpress-seo"),b&&!x?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,u.jsx)("span",{className:"yst-sr-only",children:(0,d.__)("Opens in a new tab","wordpress-seo")})]}),(0,u.jsx)("div",{children:p})]})]})]})]})})})},Bs=()=>{const[e,,,t,s]=(0,r.useToggleState)(!1),{locationContext:i}=(0,W.useRootContext)(),o=(0,r.useSvgAria)(),n=i.includes("sidebar"),a=i.includes("metabox"),l=n?"sidebar":"metabox",c=wpseoAdminL10n[n?"shortlinks.upsell.sidebar.internal_linking_suggestions":"shortlinks.upsell.metabox.internal_linking_suggestions"];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)($s,{isOpen:e,onClose:s,id:`yoast-internal-linking-suggestions-upsell-${l}`,upsellLink:(0,js.addQueryArgs)(c,{context:i}),modalTitle:(0,d.__)("Get internal linking suggestions","wordpress-seo"),title:(0,d.__)("Connect related content without the guesswork","wordpress-seo"),description:p((0,d.sprintf)(/* translators: %s expands to be tag. */
(0,d.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles. %sScans your content to:","wordpress-seo"),"<br />"),{br:(0,u.jsx)("br",{})}),benefits:[(0,d.__)("Suggest internal links based on your content’s main topics","wordpress-seo"),(0,d.__)("Build relevant internal links faster","wordpress-seo"),(0,d.__)("Strengthen your site’s structure","wordpress-seo"),(0,d.__)("Keep visitors exploring longer","wordpress-seo")],note:(0,d.__)("Upgrade to link your content with ease","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),n&&(0,u.jsx)(ne,{id:"yoast-internal-linking-suggestions-sidebar-modal-open-button",title:(0,d.__)("Internal linking suggestions","wordpress-seo"),onClick:t,children:(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsx)(r.Badge,{size:"small",variant:"upsell",children:(0,u.jsx)(Ns,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...o})})})}),a&&(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsxs)(Z,{id:"yoast-internal-linking-suggestions-metabox-modal-open-button",onClick:t,children:[(0,u.jsx)(Z.Text,{children:(0,d.__)("Internal linking suggestions","wordpress-seo")}),(0,u.jsxs)(r.Badge,{size:"small",variant:"upsell",children:[(0,u.jsx)(Ns,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...o}),(0,u.jsx)("span",{children:"Premium"})]})]})})]})},Hs=({children:e})=>(0,u.jsx)("div",{children:e});Hs.propTypes={renderPriority:o().number.isRequired,children:o().node.isRequired};const Ks=Hs,Ys=({noIndex:t,onNoIndexChange:s,editorContext:i,isPrivateBlog:o=!1})=>{const r=(e=>{const t=(0,d.__)("No","wordpress-seo"),s=(0,d.__)("Yes","wordpress-seo"),i=e.noIndex?t:s;return window.wpseoScriptData.isPost?[{name:(0,d.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */
(0,d.__)("%1$s (current default for %2$s)","wordpress-seo"),i,e.postTypeNamePlural),value:"0"},{name:t,value:"1"},{name:s,value:"2"}]:[{name:(0,d.sprintf)(/* translators: %1$s translates to "yes" or "no", %2$s translates to the content type label in plural form */
(0,d.__)("%1$s (current default for %2$s)","wordpress-seo"),i,e.postTypeNamePlural),value:"default"},{name:s,value:"index"},{name:t,value:"noindex"}]})(i);return(0,u.jsx)(W.LocationConsumer,{children:i=>(0,u.jsxs)(e.Fragment,{children:[o&&(0,u.jsx)(q.Alert,{type:"warning",children:(0,d.__)("Even though you can set the meta robots setting here, the entire site is set to noindex in the sitewide privacy settings, so these settings won't have an effect.","wordpress-seo")}),(0,u.jsx)(q.Select,{label:(0,d.__)("Allow search engines to show this content in search results?","wordpress-seo"),onChange:s,id:(0,X.join)(["yoast-meta-robots-noindex",i]),options:r,selected:t,linkTo:wpseoAdminL10n["shortlinks.advanced.allow_search_engines"]
/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about the no-index setting on our help page.","wordpress-seo")})]})})};Ys.propTypes={noIndex:o().string.isRequired,onNoIndexChange:o().func.isRequired,editorContext:o().object.isRequired,isPrivateBlog:o().bool};const Vs=({noFollow:e,onNoFollowChange:t})=>(0,u.jsx)(W.LocationConsumer,{children:s=>{const i=(0,X.join)(["yoast-meta-robots-nofollow",s]);return(0,u.jsx)(q.RadioButtonGroup,{id:i,options:[{value:"0",label:"Yes"},{value:"1",label:"No"}],label:(0,d.__)("Should search engines follow links on this content?","wordpress-seo"),groupName:i,onChange:t,selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.follow_links"]
/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about the no-follow setting on our help page.","wordpress-seo")})}});Vs.propTypes={noFollow:o().string.isRequired,onNoFollowChange:o().func.isRequired};const zs=({advanced:e,onAdvancedChange:t})=>(0,u.jsx)(W.LocationConsumer,{children:s=>{const i=(0,X.join)(["yoast-meta-robots-advanced",s]),o=`${i}-input`;return(0,u.jsx)(q.MultiSelect,{label:(0,d.__)("Meta robots advanced","wordpress-seo"),onChange:t,id:i,inputId:o,options:[{name:(0,d.__)("No Image Index","wordpress-seo"),value:"noimageindex"},{name:(0,d.__)("No Archive","wordpress-seo"),value:"noarchive"},{name:(0,d.__)("No Snippet","wordpress-seo"),value:"nosnippet"}],selected:e,linkTo:wpseoAdminL10n["shortlinks.advanced.meta_robots"]
/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about advanced meta robots settings on our help page.","wordpress-seo")})}});zs.propTypes={advanced:o().array.isRequired,onAdvancedChange:o().func.isRequired};const Gs=({breadcrumbsTitle:e,onBreadcrumbsTitleChange:t})=>(0,u.jsx)(W.LocationConsumer,{children:s=>(0,u.jsx)(q.TextInput,{label:(0,d.__)("Breadcrumbs Title","wordpress-seo"),id:(0,X.join)(["yoast-breadcrumbs-title",s]),onChange:t,value:e,linkTo:wpseoAdminL10n["shortlinks.advanced.breadcrumbs_title"]
/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about the breadcrumbs title setting on our help page.","wordpress-seo")})});Gs.propTypes={breadcrumbsTitle:o().string.isRequired,onBreadcrumbsTitleChange:o().func.isRequired};const Zs=({canonical:e,onCanonicalChange:t})=>(0,u.jsx)(W.LocationConsumer,{children:s=>(0,u.jsx)(q.TextInput,{label:(0,d.__)("Canonical URL","wordpress-seo"),id:(0,X.join)(["yoast-canonical",s]),onChange:t,value:e,linkTo:"https://yoa.st/canonical-url"
/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about canonical URLs on our help page.","wordpress-seo")})});Zs.propTypes={canonical:o().string.isRequired,onCanonicalChange:o().func.isRequired};const Xs=({noIndex:t,canonical:s,onNoIndexChange:i,onCanonicalChange:o,onLoad:r,isLoading:a,editorContext:l,isBreadcrumbsDisabled:c,advanced:d=[],onAdvancedChange:p=n.noop,noFollow:h="",onNoFollowChange:g=n.noop,breadcrumbsTitle:m="",onBreadcrumbsTitleChange:y=n.noop,isPrivateBlog:w=!1})=>{(0,e.useEffect)((()=>{setTimeout((()=>{a&&r()}))}));const f={noIndex:t,onNoIndexChange:i,editorContext:l,isPrivateBlog:w},x={noFollow:h,onNoFollowChange:g},b={advanced:d,onAdvancedChange:p},v={breadcrumbsTitle:m,onBreadcrumbsTitleChange:y},k={canonical:s,onCanonicalChange:o};return a?null:(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(Ys,{...f}),l.isPost&&(0,u.jsx)(Vs,{...x}),l.isPost&&(0,u.jsx)(zs,{...b}),!c&&(0,u.jsx)(Gs,{...v}),(0,u.jsx)(Zs,{...k})]})};Xs.propTypes={noIndex:o().string.isRequired,canonical:o().string.isRequired,onNoIndexChange:o().func.isRequired,onCanonicalChange:o().func.isRequired,onLoad:o().func.isRequired,isLoading:o().bool.isRequired,editorContext:o().object.isRequired,isBreadcrumbsDisabled:o().bool.isRequired,isPrivateBlog:o().bool,advanced:o().array,onAdvancedChange:o().func,noFollow:o().string,onNoFollowChange:o().func,breadcrumbsTitle:o().string,onBreadcrumbsTitleChange:o().func};const Qs=Xs,Js=(0,V.compose)([(0,a.withSelect)((e=>{const{getNoIndex:t,getNoFollow:s,getAdvanced:i,getBreadcrumbsTitle:o,getCanonical:r,getIsLoading:n,getEditorContext:a,getPreferences:l}=e("yoast-seo/editor"),{isBreadcrumbsDisabled:c,isPrivateBlog:d}=l();return{noIndex:t(),noFollow:s(),advanced:i(),breadcrumbsTitle:o(),canonical:r(),isLoading:n(),editorContext:a(),isBreadcrumbsDisabled:c,isPrivateBlog:d}})),(0,a.withDispatch)((e=>{const{setNoIndex:t,setNoFollow:s,setAdvanced:i,setBreadcrumbsTitle:o,setCanonical:r,loadAdvancedSettingsData:n}=e("yoast-seo/editor");return{onNoIndexChange:t,onNoFollowChange:s,onAdvancedChange:i,onBreadcrumbsTitleChange:o,onCanonicalChange:r,onLoad:n}}))])(Qs),ei=B().p`
	color: #606770;
	flex-shrink: 0;
	font-size: 12px;
	line-height: 16px;
	overflow: hidden;
	padding: 0;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
	margin: 0;
	position: ${e=>"landscape"===e.mode?"relative":"static"};
`,ti=e=>{const{siteUrl:t}=e;return(0,u.jsxs)(l.Fragment,{children:[(0,u.jsx)("span",{className:"screen-reader-text",children:t}),(0,u.jsx)(ei,{"aria-hidden":"true",children:(0,u.jsx)("span",{children:t})})]})};ti.propTypes={siteUrl:o().string.isRequired};const si=ti,ii=window.yoast.socialMetadataForms,oi=B().img`
	&& {
		max-width: ${e=>e.width}px;
		height: ${e=>e.height}px;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		max-width: none;
	}
`,ri=B().img`
	&& {
		height: 100%;
		position: absolute;
		width: 100%;
		object-fit: cover;
	}
`,ni=B().div`
	padding-bottom: ${e=>e.aspectRatio}%;
`,ai=({imageProps:e,width:t,height:s,imageMode:i="landscape"})=>"landscape"===i?(0,u.jsx)(ni,{aspectRatio:e.aspectRatio,children:(0,u.jsx)(ri,{src:e.src,alt:e.alt})}):(0,u.jsx)(oi,{src:e.src,alt:e.alt,width:t,height:s,imageProperties:e});function li(e,t,s){return"landscape"===s?{widthRatio:t.width/e.landscapeWidth,heightRatio:t.height/e.landscapeHeight}:"portrait"===s?{widthRatio:t.width/e.portraitWidth,heightRatio:t.height/e.portraitHeight}:{widthRatio:t.width/e.squareWidth,heightRatio:t.height/e.squareHeight}}function ci(e,t){return t.widthRatio<=t.heightRatio?{width:Math.round(e.width/t.widthRatio),height:Math.round(e.height/t.widthRatio)}:{width:Math.round(e.width/t.heightRatio),height:Math.round(e.height/t.heightRatio)}}async function di(e,t,s=!1){const i=await function(e){return new Promise(((t,s)=>{const i=new Image;i.onload=()=>{t({width:i.width,height:i.height})},i.onerror=s,i.src=e}))}(e);let o=s?"landscape":"square";"Facebook"===t&&(o=(0,ii.determineFacebookImageMode)(i));const r=function(e){return"Twitter"===e?ii.TWITTER_IMAGE_SIZES:ii.FACEBOOK_IMAGE_SIZES}(t),n=function(e,t,s){return"square"===s&&t.width===t.height?{width:e.squareWidth,height:e.squareHeight}:ci(t,li(e,t,s))}(r,i,o);return{mode:o,height:n.height,width:n.width}}async function pi(e,t,s=!1){try{return{imageProperties:await di(e,t,s),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}ai.propTypes={imageProps:o().shape({src:o().string.isRequired,alt:o().string.isRequired,aspectRatio:o().number.isRequired}).isRequired,width:o().number.isRequired,height:o().number.isRequired,imageMode:o().string};const ui=B().div`
	position: relative;
	${e=>"landscape"===e.mode?`max-width: ${e.dimensions.width}`:`min-width: ${e.dimensions.width}; height: ${e.dimensions.height}`};
	overflow: hidden;
	background-color: ${F.colors.$color_white};
`,hi=B().div`
	box-sizing: border-box;
	max-width: ${ii.FACEBOOK_IMAGE_SIZES.landscapeWidth}px;
	height: ${ii.FACEBOOK_IMAGE_SIZES.landscapeHeight}px;
	background-color: ${F.colors.$color_grey};
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class gi extends l.Component{constructor(e){super(e),this.state={imageProperties:null,status:"loading"},this.socialMedium="Facebook",this.handleFacebookImage=this.handleFacebookImage.bind(this),this.setState=this.setState.bind(this)}async handleFacebookImage(){try{const e=await pi(this.props.src,this.socialMedium);this.setState(e),this.props.onImageLoaded(e.imageProperties.mode||"landscape")}catch(e){this.setState(e),this.props.onImageLoaded("landscape")}}componentDidUpdate(e){e.src!==this.props.src&&this.handleFacebookImage()}componentDidMount(){this.handleFacebookImage()}retrieveContainerDimensions(e){switch(e){case"square":return{height:ii.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:ii.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:ii.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:ii.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:ii.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:ii.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,u.jsx)(hi,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,d.__)("Select image","wordpress-seo")});const s=this.retrieveContainerDimensions(e.mode);return(0,u.jsx)(ui,{mode:e.mode,dimensions:s,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick,children:(0,u.jsx)(ai,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:ii.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode})})}}gi.propTypes={src:o().string,alt:o().string,onImageLoaded:o().func,onImageClick:o().func,onMouseEnter:o().func,onMouseLeave:o().func},gi.defaultProps={src:"",alt:"",onImageLoaded:n.noop,onImageClick:n.noop,onMouseEnter:n.noop,onMouseLeave:n.noop};const mi=gi,yi=B().span`
	line-height: ${20}px;
	min-height : ${20}px;
	color: #1d2129;
	font-weight: 600;
	overflow: hidden;
	font-size: 16px;
	margin: 3px 0 0;
	letter-spacing: normal;
	white-space: normal;
	flex-shrink: 0;
	cursor: pointer;
	display: -webkit-box;
	-webkit-line-clamp: ${e=>e.lineCount};
	-webkit-box-orient: vertical;
	overflow: hidden;
`,wi=B().p`
	line-height: ${16}px;
	min-height : ${16}px;
	color: #606770;
	font-size: 14px;
	padding: 0;
	text-overflow: ellipsis;
	margin: 3px 0 0 0;
	display: -webkit-box;
	cursor: pointer;
	-webkit-line-clamp: ${e=>e.lineCount};
	-webkit-box-orient: vertical;
	overflow: hidden;

	@media all and ( max-width: ${e=>e.maxWidth} ) {
		display: none;
	}
`,fi=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},xi=B().div`
	box-sizing: border-box;
	display: flex;
	flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
	background-color: #f2f3f5;
	max-width: 527px;
`,bi=B().div`
	box-sizing: border-box;
	background-color: #f2f3f5;
	margin: 0;
	padding: 10px 12px;
	position: relative;
	border-bottom: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border-top: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border-right: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border: ${e=>"landscape"===e.mode?"1px solid #dddfe2":""};
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: ${e=>"landscape"===e.mode?"flex-start":"center"};
	font-size: 12px;
	overflow: hidden;
`;class vi extends l.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=c().createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:t}=this.state,s="landscape"===e?2:5;s!==t&&this.setState({maxLineCount:s})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:t,imageMode:s}=this.state,i=this.getTitleLineCount();let o=t-i;"portrait"===s&&(o=5===i?0:4),o!==e&&this.setState({descriptionLineCount:o})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:t,descriptionLineCount:s}=this.state;return(0,u.jsxs)(xi,{id:"facebookPreview",mode:e,children:[(0,u.jsx)(mi,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,u.jsxs)(bi,{mode:e,children:[(0,u.jsx)(si,{siteUrl:this.props.siteUrl,mode:e}),(0,u.jsx)(yi,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:t,children:this.props.title}),s>0&&(0,u.jsx)(wi,{maxWidth:fi(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:s,children:this.props.description})]})]})}}vi.propTypes={siteUrl:o().string.isRequired,title:o().string.isRequired,description:o().string,imageUrl:o().string,imageFallbackUrl:o().string,alt:o().string,onSelect:o().func,onImageClick:o().func,onMouseHover:o().func},vi.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const ki=vi,_i=B().div`
	text-transform: lowercase;
	color: rgb(83, 100, 113);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	fill: currentcolor;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
`,Ti=e=>(0,u.jsx)(_i,{children:(0,u.jsx)("span",{children:e.siteUrl})});Ti.propTypes={siteUrl:o().string.isRequired};const Ri=Ti,ji=(e,t=!0)=>e?`\n\t\t\tmax-width: ${ii.TWITTER_IMAGE_SIZES.landscapeWidth}px;\n\t\t\t${t?"border-bottom: 1px solid #E1E8ED;":""}\n\t\t\tborder-radius: 14px 14px 0 0;\n\t\t\t`:`\n\t\twidth: ${ii.TWITTER_IMAGE_SIZES.squareWidth}px;\n\t\t${t?"border-right: 1px solid #E1E8ED;":""}\n\t\tborder-radius: 14px 0 0 14px;\n\t\t`,Si=B().div`
	position: relative;
	box-sizing: content-box;
	overflow: hidden;
	background-color: #e1e8ed;
	flex-shrink: 0;
	${e=>ji(e.isLarge)}
`,Ii=B().div`
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	max-width: 100%;
	margin: 0;
	padding: 1em;
	text-align: center;
	font-size: 1rem;
	${e=>ji(e.isLarge,!1)}
`,Ci=B()(Ii)`
	${e=>e.isLarge&&`height: ${ii.TWITTER_IMAGE_SIZES.landscapeHeight}px;`}
	border-top-left-radius: 14px;
	${e=>e.isLarge?"border-top-right-radius":"border-bottom-left-radius"}: 14px;
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class Ei extends c().Component{constructor(e){super(e),this.state={status:"loading"},this.socialMedium="Twitter",this.handleTwitterImage=this.handleTwitterImage.bind(this),this.setState=this.setState.bind(this)}async handleTwitterImage(){if(null===this.props.src)return;const e=await pi(this.props.src,this.socialMedium,this.props.isLarge);this.setState(e)}componentDidUpdate(e){e.src!==this.props.src&&this.handleTwitterImage()}componentDidMount(){this.handleTwitterImage()}render(){const{status:e,imageProperties:t}=this.state;return"loading"===e||""===this.props.src||"errored"===e?(0,u.jsx)(Ci,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,d.__)("Select image","wordpress-seo")}):(0,u.jsx)(Si,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,u.jsx)(ai,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:ii.TWITTER_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode})})}}Ei.propTypes={isLarge:o().bool.isRequired,src:o().string,alt:o().string,onImageClick:o().func,onMouseEnter:o().func,onMouseLeave:o().func},Ei.defaultProps={src:"",alt:"",onMouseEnter:n.noop,onImageClick:n.noop,onMouseLeave:n.noop};const Li=B().div`
	display: flex;
	flex-direction: column;
	padding: 12px;
	justify-content: center;
	margin: 0;
	box-sizing: border-box;
	flex: auto;
	min-width: 0px;
	gap:2px;
	> * {
		line-height:20px;
		min-height:20px;
		font-size:15px;
    }
`,Ai=e=>(0,u.jsx)(Li,{children:e.children});Ai.propTypes={children:o().array.isRequired};const qi=Ai,Fi=B().p`
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(15, 20, 25);
	cursor: pointer;
`,Pi=B().p`
	max-height: 55px;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(83, 100, 113);
	display: -webkit-box;
	cursor: pointer;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;

	@media all and ( max-width: ${ii.TWITTER_IMAGE_SIZES.landscapeWidth}px ) {
		display: none;
	}
`,Mi=B().div`
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	max-width: 507px;
	border: 1px solid #E1E8ED;
	box-sizing: border-box;
	border-radius: 14px;
	color: #292F33;
	background: #FFFFFF;
	text-overflow: ellipsis;
	display: flex;

	&:hover {
		background: #f5f8fa;
		border: 1px solid rgba(136,153,166,.5);
	}
`,Di=B()(Mi)`
	flex-direction: column;
	max-height: 370px;
`,Oi=B()(Mi)`
	flex-direction: row;
	height: 125px;
`;class Ni extends l.Component{constructor(e){super(e),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}render(){const{isLarge:e,imageUrl:t,imageFallbackUrl:s,alt:i,title:o,description:r,siteUrl:n}=this.props,a=e?Di:Oi;return(0,u.jsxs)(a,{id:"twitterPreview",children:[(0,u.jsx)(Ei,{src:t||s,alt:i,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,u.jsxs)(qi,{children:[(0,u.jsx)(Ri,{siteUrl:n}),(0,u.jsx)(Fi,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,children:o}),(0,u.jsx)(Pi,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,children:r})]})]})}}Ni.propTypes={siteUrl:o().string.isRequired,title:o().string.isRequired,description:o().string,isLarge:o().bool,imageUrl:o().string,imageFallbackUrl:o().string,alt:o().string,onSelect:o().func,onImageClick:o().func,onMouseHover:o().func},Ni.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const Ui=Ni,Wi=window.yoast.replacementVariableEditor;class $i extends l.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?ki:Ui,this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:e,onTitleChange:t,onSelectImageClick:s,onRemoveImageClick:i,socialMediumName:o,imageWarnings:r,siteUrl:n,description:a,descriptionInputPlaceholder:l,descriptionPreviewFallback:d,imageUrl:p,imageFallbackUrl:h,alt:g,title:m,titleInputPlaceholder:y,titlePreviewFallback:w,replacementVariables:f,recommendedReplacementVariables:x,applyReplacementVariables:b,onReplacementVariableSearchChange:v,isPremium:k,isLarge:_,socialPreviewLabel:T,idSuffix:R,activeMetaTabId:j}=this.props,S=b({title:m||w,description:a||d});return(0,u.jsxs)(c().Fragment,{children:[T&&(0,u.jsx)(q.SimulatedLabel,{children:T}),(0,u.jsx)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:s,siteUrl:n,title:S.title,description:S.description,imageUrl:p,imageFallbackUrl:h,alt:g,isLarge:_,activeMetaTabId:j}),(0,u.jsx)(ii.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:o,title:m,titleInputPlaceholder:y,onRemoveImageClick:i,imageSelected:!!p,imageUrl:p,imageFallbackUrl:h,onTitleChange:t,onSelectImageClick:s,description:a,descriptionInputPlaceholder:l,imageWarnings:r,replacementVariables:f,recommendedReplacementVariables:x,onReplacementVariableSearchChange:v,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:k,setEditorRef:this.setEditorRef,idSuffix:R})]})}}$i.propTypes={title:o().string.isRequired,onTitleChange:o().func.isRequired,description:o().string.isRequired,onDescriptionChange:o().func.isRequired,imageUrl:o().string.isRequired,imageFallbackUrl:o().string.isRequired,onSelectImageClick:o().func.isRequired,onRemoveImageClick:o().func.isRequired,socialMediumName:o().string.isRequired,alt:o().string,isPremium:o().bool,imageWarnings:o().array,isLarge:o().bool,siteUrl:o().string,descriptionInputPlaceholder:o().string,titleInputPlaceholder:o().string,descriptionPreviewFallback:o().string,titlePreviewFallback:o().string,replacementVariables:Wi.replacementVariablesShape,recommendedReplacementVariables:Wi.recommendedReplacementVariablesShape,applyReplacementVariables:o().func,onReplacementVariableSearchChange:o().func,socialPreviewLabel:o().string,idSuffix:o().string,activeMetaTabId:o().string},$i.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const Bi={},Hi=(e,t,{log:s=console.warn}={})=>{Bi[e]||(Bi[e]=!0,s(t))},Ki=(e,t=n.noop)=>{const s={};for(const i in e)Object.hasOwn(e,i)&&Object.defineProperty(s,i,{set:s=>{e[i]=s,t("set",i,s)},get:()=>(t("get",i),e[i])});return s};Ki({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,t)=>Hi(`@yoast/social-metadata-previews/TWITTER_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "TWITTER_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`))),Ki({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,t)=>Hi(`@yoast/social-metadata-previews/FACEBOOK_IMAGE_SIZES/${e}/${t}`,`[@yoast/social-metadata-previews] "FACEBOOK_IMAGE_SIZES.${t}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`)));const Yi=B().div`
	max-width: calc(527px + 1.5rem);
`,Vi=e=>{const t="X"===e.socialMediumName?(0,d.__)("X share preview","wordpress-seo"):(0,d.__)("Social share preview","wordpress-seo"),{locationContext:s}=(0,r.useRootContext)();return(0,u.jsx)(r.Root,{children:(0,u.jsx)(Yi,{children:(0,u.jsx)(r.FeatureUpsell,{shouldUpsell:!0,variant:"card",cardLink:(0,js.addQueryArgs)(wpseoAdminL10n["shortlinks.upsell.social_preview."+e.socialMediumName.toLowerCase()],{context:s}),cardText:(0,d.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,d.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),"data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",children:(0,u.jsxs)("div",{className:"yst-grayscale yst-opacity-50",children:[(0,u.jsx)(r.Label,{children:t}),(0,u.jsx)(ki,{title:"",description:"",siteUrl:"",imageUrl:"",imageFallbackUrl:"",alt:"",onSelect:n.noop,onImageClick:n.noop,onMouseHover:n.noop})]})})})})};Vi.propTypes={socialMediumName:o().oneOf(["Social","Twitter","X"]).isRequired};const zi=Vi;class Gi extends e.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,t){switch(e){case"title":this.titleEditorRef=t;break;case"description":this.descriptionEditorRef=t}}render(){const{onDescriptionChange:t,onTitleChange:s,onSelectImageClick:i,onRemoveImageClick:o,socialMediumName:r,imageWarnings:n,description:a,descriptionInputPlaceholder:l,imageUrl:c,imageFallbackUrl:d,alt:p,title:h,titleInputPlaceholder:g,replacementVariables:m,recommendedReplacementVariables:y,onReplacementVariableSearchChange:w,isPremium:f,location:x}=this.props;return(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(zi,{socialMediumName:r}),(0,u.jsx)(ii.SocialMetadataPreviewForm,{onDescriptionChange:t,socialMediumName:r,title:h,titleInputPlaceholder:g,onRemoveImageClick:o,imageSelected:!!c,imageUrl:c,imageFallbackUrl:d,imageAltText:p,onTitleChange:s,onSelectImageClick:i,description:a,descriptionInputPlaceholder:l,imageWarnings:n,replacementVariables:m,recommendedReplacementVariables:y,onReplacementVariableSearchChange:w,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:f,setEditorRef:this.setEditorRef,idSuffix:x})]})}}Gi.propTypes={title:o().string.isRequired,onTitleChange:o().func.isRequired,description:o().string.isRequired,onDescriptionChange:o().func.isRequired,imageUrl:o().string.isRequired,imageFallbackUrl:o().string,onSelectImageClick:o().func.isRequired,onRemoveImageClick:o().func.isRequired,socialMediumName:o().string.isRequired,isPremium:o().bool,imageWarnings:o().array,descriptionInputPlaceholder:o().string,titleInputPlaceholder:o().string,replacementVariables:Wi.replacementVariablesShape,recommendedReplacementVariables:Wi.recommendedReplacementVariablesShape,onReplacementVariableSearchChange:o().func,location:o().string,alt:o().string},Gi.defaultProps={imageWarnings:[],imageFallbackUrl:"",recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,descriptionInputPlaceholder:"",titleInputPlaceholder:"",onReplacementVariableSearchChange:null,location:"",alt:""};const Zi=Gi,Xi=(t,s,i)=>{const[o,r]=(0,e.useState)(!1),n=(0,d.sprintf)(
/* Translators: %1$s expands to the jpg format, %2$s expands to the png format,
  %3$s expands to the webp format, %4$s expands to the gif format. */
(0,d.__)("No image was found that we can automatically set as your social image. Please use %1$s, %2$s, %3$s or %4$s formats to ensure it displays correctly on social media.","wordpress-seo"),"JPG","PNG","WEBP","GIF");return(0,e.useEffect)((()=>{r(""===s&&t.toLowerCase().endsWith(".avif"))}),[t,s]),o?[n]:i},Qi=({isPremium:s,onLoad:i,location:o,imageFallbackUrl:r="",imageUrl:n="",imageWarnings:a=[],...l})=>{const[c,d]=(0,e.useState)(""),p=Xi(r,n,a),h=(0,e.useCallback)((e=>{d(e.detail.metaTabId)}),[d]);(0,e.useEffect)((()=>(setTimeout(i),window.addEventListener("YoastSEO:metaTabChange",h),()=>{window.removeEventListener("YoastSEO:metaTabChange",h)})),[]);const g={isPremium:s,onLoad:i,location:o,imageFallbackUrl:r,imageUrl:n,imageWarnings:p,activeMetaTabId:c,...l};return s?(0,u.jsx)(t.Slot,{name:`YoastFacebookPremium${o.charAt(0).toUpperCase()+o.slice(1)}`,fillProps:g}):(0,u.jsx)(Zi,{...g})};Qi.propTypes={isPremium:o().bool.isRequired,onLoad:o().func.isRequired,location:o().string.isRequired,imageFallbackUrl:o().string,imageUrl:o().string,imageWarnings:o().array};const Ji=Qi;function eo(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const s=t.state().get("selection").first();var i;e({type:(i=s.attributes).subtype,width:i.width,height:i.height,url:i.url,id:i.id,sizes:i.sizes,alt:i.alt||i.title||i.name})})),t})(e).open()}const to=()=>{eo((e=>(0,a.dispatch)("yoast-seo/editor").setFacebookPreviewImage((e=>{const{width:t,height:s}=e,i=(0,ii.determineFacebookImageMode)({width:t,height:s}),o=ii.FACEBOOK_IMAGE_SIZES[i+"Width"],r=ii.FACEBOOK_IMAGE_SIZES[i+"Height"],n=Object.values(e.sizes).find((e=>e.width>=o&&e.height>=r));return{url:n?n.url:e.url,id:e.id,warnings:(0,X.validateFacebookImage)(e),alt:e.alt||""}})(e))))},so=(0,V.compose)([(0,a.withSelect)((e=>{const{getFacebookDescription:t,getDescription:s,getFacebookTitle:i,getSeoTitle:o,getFacebookImageUrl:r,getImageFallback:n,getFacebookWarnings:a,getRecommendedReplaceVars:l,getReplaceVars:c,getSiteUrl:d,getSeoTitleTemplate:p,getSeoTitleTemplateNoFallback:u,getSocialTitleTemplate:h,getSeoDescriptionTemplate:g,getSocialDescriptionTemplate:m,getReplacedExcerpt:y,getFacebookAltText:w}=e("yoast-seo/editor");return{imageUrl:r(),imageFallbackUrl:n(),recommendedReplacementVariables:l(),replacementVariables:c(),description:t(),descriptionPreviewFallback:m()||s()||g()||y()||"",title:i(),titlePreviewFallback:h()||o()||u()||p()||"",imageWarnings:a(),siteUrl:d(),isPremium:!!Fs().isPremium,titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"Social",alt:w()}})),(0,a.withDispatch)(((e,t,{select:s})=>{const{setFacebookPreviewTitle:i,setFacebookPreviewDescription:o,clearFacebookPreviewImage:r,loadFacebookPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:to,onRemoveImageClick:r,onDescriptionChange:o,onTitleChange:i,onLoad:n,onReplacementVariableSearchChange:ps(l,a)}})),Qt()])(Ji),io=({isPremium:s,onLoad:i,location:o,imageFallbackUrl:r="",imageUrl:n="",imageWarnings:a=[],...l})=>{const c=Xi(r,n,a);(0,e.useEffect)((()=>{setTimeout(i)}),[]);const d={isPremium:s,onLoad:i,location:o,imageFallbackUrl:r,imageUrl:n,imageWarnings:c,...l};return s?(0,u.jsx)(t.Slot,{name:`YoastTwitterPremium${o.charAt(0).toUpperCase()+o.slice(1)}`,fillProps:d}):(0,u.jsx)(Zi,{...d})};io.propTypes={isPremium:o().bool.isRequired,onLoad:o().func.isRequired,location:o().string.isRequired,imageFallbackUrl:o().string,imageUrl:o().string,imageWarnings:o().array};const oo=io,ro=()=>{eo((e=>(0,a.dispatch)("yoast-seo/editor").setTwitterPreviewImage((e=>{const t="summary"!==(0,n.get)(window,"wpseoScriptData.metabox.twitterCardType")?"landscape":"square",s=ii.TWITTER_IMAGE_SIZES[t+"Width"],i=ii.TWITTER_IMAGE_SIZES[t+"Height"],o=Object.values(e.sizes).find((e=>e.width>=s&&e.height>=i));return{url:o?o.url:e.url,id:e.id,warnings:(0,X.validateTwitterImage)(e),alt:e.alt||""}})(e))))},no=(0,V.compose)([(0,a.withSelect)((e=>{const{getTwitterDescription:t,getTwitterTitle:s,getTwitterImageUrl:i,getFacebookImageUrl:o,getFacebookTitle:r,getFacebookDescription:n,getDescription:a,getSeoTitle:l,getTwitterWarnings:c,getTwitterImageType:d,getImageFallback:p,getRecommendedReplaceVars:u,getReplaceVars:h,getSiteUrl:g,getSeoTitleTemplate:m,getSeoTitleTemplateNoFallback:y,getSocialTitleTemplate:w,getSeoDescriptionTemplate:f,getSocialDescriptionTemplate:x,getReplacedExcerpt:b,getTwitterAltText:v}=e("yoast-seo/editor");return{imageUrl:i(),imageFallbackUrl:o()||p(),recommendedReplacementVariables:u(),replacementVariables:h(),description:t(),descriptionPreviewFallback:x()||n()||a()||f()||b()||"",title:s(),titlePreviewFallback:w()||r()||l()||y()||m()||"",imageWarnings:c(),siteUrl:g(),isPremium:!!Fs().isPremium,isLarge:"summary"!==d(),titleInputPlaceholder:"",descriptionInputPlaceholder:"",socialMediumName:"X",alt:v()}})),(0,a.withDispatch)(((e,t,{select:s})=>{const{setTwitterPreviewTitle:i,setTwitterPreviewDescription:o,clearTwitterPreviewImage:r,loadTwitterPreviewData:n,findCustomFields:a}=e("yoast-seo/editor"),l=s("yoast-seo/editor").getPostId();return{onSelectImageClick:ro,onRemoveImageClick:r,onDescriptionChange:o,onTitleChange:i,onLoad:n,onReplacementVariableSearchChange:ps(l,a)}})),Qt()])(oo),ao=B().legend`
	margin: 16px 0;
	padding: 0;
	color: ${F.colors.$color_headings};
	font-size: 12px;
	font-weight: 300;
`,lo=B().legend`
	margin: 0 0 16px;
	padding: 0;
	color: ${F.colors.$color_headings};
	font-size: 12px;
	font-weight: 300;
`,co=B().div`
	padding: 16px;
`,po=({useOpenGraphData:t,useTwitterData:s})=>(0,u.jsxs)(e.Fragment,{children:[s&&t&&(0,u.jsxs)(e.Fragment,{children:[(0,u.jsxs)(xs,{hasSeparator:!1
/* translators: Social media appearance refers to a preview of how a page will be represented on social media. */,title:(0,d.__)("Social media appearance","wordpress-seo"),initialIsOpen:!0,children:[(0,u.jsx)(lo,{children:(0,d.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,u.jsx)(so,{}),(0,u.jsx)(ao,{children:(0,d.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below. If you leave these settings untouched, the 'Social media appearance' settings mentioned above will also be applied for sharing on X.","wordpress-seo")})]}),(0,u.jsx)(xs,{title:(0,d.__)("X appearance","wordpress-seo"),hasSeparator:!0,initialIsOpen:!1,children:(0,u.jsx)(no,{})})]}),t&&!s&&(0,u.jsxs)(co,{children:[(0,u.jsx)(lo,{children:(0,d.__)("Determine how your post should look on social media like Facebook, X, Instagram, WhatsApp, Threads, LinkedIn, Slack, and more.","wordpress-seo")}),(0,u.jsx)(so,{})]}),!t&&s&&(0,u.jsxs)(co,{children:[(0,u.jsx)(lo,{children:(0,d.__)("To customize the appearance of your post specifically for X, please fill out the 'X appearance' settings below.","wordpress-seo")}),(0,u.jsx)(no,{})]})]});po.propTypes={useOpenGraphData:o().bool.isRequired,useTwitterData:o().bool.isRequired};const uo=po,ho=(0,a.withSelect)((e=>{const{getPreferences:t}=e("yoast-seo/editor"),{useOpenGraphData:s,useTwitterData:i}=t();return{useOpenGraphData:s,useTwitterData:i}}))(uo);function go({target:e}){return(0,u.jsx)(D,{target:e,children:(0,u.jsx)(ho,{})})}go.propTypes={target:o().string.isRequired};const mo=(0,X.makeOutboundLink)(),yo=B().div`
	padding: 16px;
`,wo="yoast-seo/editor";function fo({location:e,show:t}){return t?(0,u.jsxs)(q.Alert,{type:"info",children:[(0,d.sprintf)(/* translators: %s Expands to "Yoast News SEO" */
(0,d.__)("Are you working on a news article? %s helps you optimize your site for Google News.","wordpress-seo"),"Yoast News SEO")+" ",(0,u.jsx)(mo,{href:window.wpseoAdminL10n[`shortlinks.upsell.${e}.news`],children:(0,d.sprintf)(/* translators: %s: Expands to "Yoast News SEO". */
(0,d.__)("Buy %s now!","wordpress-seo"),"Yoast News SEO")})]}):null}fo.propTypes={show:o().bool.isRequired,location:o().string.isRequired};const xo=(e,t,s)=>{const i=(0,a.useSelect)((e=>e(wo).getIsProduct()),[]),o=(0,a.useSelect)((e=>e(wo).getIsWooSeoActive()),[]),r=i&&o?{name:(0,d.__)("Item Page","wordpress-seo"),value:"ItemPage"}:e.find((e=>e.value===t));return[{name:(0,d.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s expands to the current site wide default. */
(0,d.__)("Default for %1$s (%2$s)","wordpress-seo"),s,r?r.name:""),value:""},...e]},bo=(e,t)=>p((e=>(0,d.sprintf)(/* translators: %1$s expands to the plural name of the current post type, %2$s and %3$s expand to a link to the Settings page */
(0,d.__)("You can change the default type for %1$s under Content types in the %2$sSettings%3$s.","wordpress-seo"),e,"<link>","</link>"))(e),{link:(0,u.jsx)("a",{href:t,target:"_blank",rel:"noreferrer"})}),vo=({helpTextTitle:e,helpTextLink:t,helpTextDescription:s})=>(0,u.jsx)(q.FieldGroup,{label:e,linkTo:t
/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about structured data with Schema.org","wordpress-seo"),description:s});vo.propTypes={helpTextTitle:o().string.isRequired,helpTextLink:o().string.isRequired,helpTextDescription:o().string.isRequired};const ko=({schemaPageTypeChange:t=n.noop,schemaPageTypeSelected:s=null,pageTypeOptions:i,schemaArticleTypeChange:o=n.noop,schemaArticleTypeSelected:r=null,articleTypeOptions:l,showArticleTypeInput:c,additionalHelpTextLink:p,helpTextLink:h,helpTextTitle:g,helpTextDescription:m,postTypeName:y,displayFooter:w=!1,defaultPageType:f,defaultArticleType:x,location:b,isNewsEnabled:v=!1})=>{const k=xo(i,f,y),_=xo(l,x,y),T=(0,a.useSelect)((e=>e(wo).selectLink("https://yoa.st/product-schema-metabox")),[]),R=(0,a.useSelect)((e=>e(wo).getIsWooSeoUpsell()),[]),[j,S]=(0,e.useState)(r),I=(0,d.__)("Want your products stand out in search results with rich results like price, reviews and more?","wordpress-seo"),C=(0,a.useSelect)((e=>e(wo).getIsProduct()),[]),E=(0,a.useSelect)((e=>e(wo).getIsWooSeoActive()),[]),L=(0,a.useSelect)((e=>e(wo).selectAdminLink("?page=wpseo_page_settings")),[]),A=C&&E,F=(0,e.useCallback)(((e,t)=>{S(t)}),[]);return(0,e.useEffect)((()=>{F(null,r)}),[r]),(0,u.jsxs)(e.Fragment,{children:[(0,u.jsx)(vo,{helpTextLink:h,helpTextTitle:g,helpTextDescription:m}),(0,u.jsx)(q.FieldGroup,{label:(0,d.__)("What type of page or content is this?","wordpress-seo"),linkTo:p
/* translators: Hidden accessibility text. */,linkText:(0,d.__)("Learn more about page or content types","wordpress-seo")}),R&&(0,u.jsx)(hs,{link:T,text:I}),(0,u.jsx)(q.Select,{id:(0,X.join)(["yoast-schema-page-type",b]),options:k,label:(0,d.__)("Page type","wordpress-seo"),onChange:t,selected:A?"ItemPage":s,disabled:A}),c&&(0,u.jsx)(q.Select,{id:(0,X.join)(["yoast-schema-article-type",b]),options:_,label:(0,d.__)("Article type","wordpress-seo"),onChange:o,selected:r,onOptionFocus:F}),(0,u.jsx)(fo,{location:b,show:!v&&(P=j,M=x,"NewsArticle"===P||""===P&&"NewsArticle"===M)}),w&&!A&&(0,u.jsx)("p",{children:bo(y,L)}),A&&(0,u.jsx)("p",{children:(0,d.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,d.__)("You have %1$s activated on your site, automatically setting the Page type for your products to 'Item Page'. As a result, the Page type selection is disabled.","wordpress-seo"),"Yoast WooCommerce SEO")})]});var P,M},_o=o().arrayOf(o().shape({name:o().string,value:o().string}));ko.propTypes={schemaPageTypeChange:o().func,schemaPageTypeSelected:o().string,pageTypeOptions:_o.isRequired,schemaArticleTypeChange:o().func,schemaArticleTypeSelected:o().string,articleTypeOptions:_o.isRequired,showArticleTypeInput:o().bool.isRequired,additionalHelpTextLink:o().string.isRequired,helpTextLink:o().string.isRequired,helpTextTitle:o().string.isRequired,helpTextDescription:o().string.isRequired,postTypeName:o().string.isRequired,displayFooter:o().bool,defaultPageType:o().string.isRequired,defaultArticleType:o().string.isRequired,location:o().string.isRequired,isNewsEnabled:o().bool};const To=({isMetabox:t,showArticleTypeInput:s=!1,articleTypeLabel:i="",additionalHelpTextLink:o="",pageTypeLabel:r,helpTextLink:n,helpTextTitle:a,helpTextDescription:l,postTypeName:c,displayFooter:d=!1,loadSchemaArticleData:p,loadSchemaPageData:h,location:g,...m})=>{const y=(0,u.jsx)(ko,{showArticleTypeInput:s,articleTypeLabel:i,additionalHelpTextLink:o,pageTypeLabel:r,helpTextLink:n,helpTextTitle:a,helpTextDescription:l,postTypeName:c,displayFooter:d,loadSchemaArticleData:p,loadSchemaPageData:h,location:g,...m});return t?(0,e.createPortal)((0,u.jsx)(yo,{children:y}),document.getElementById("wpseo-meta-section-schema")):y};To.propTypes={isMetabox:o().bool.isRequired,showArticleTypeInput:o().bool,articleTypeLabel:o().string,additionalHelpTextLink:o().string,pageTypeLabel:o().string.isRequired,helpTextLink:o().string.isRequired,helpTextTitle:o().string.isRequired,helpTextDescription:o().string.isRequired,postTypeName:o().string.isRequired,displayFooter:o().bool,loadSchemaArticleData:o().func.isRequired,loadSchemaPageData:o().func.isRequired,location:o().string.isRequired};const Ro=To;class jo{static get articleTypeInput(){return document.getElementById("yoast_wpseo_schema_article_type")}static get defaultArticleType(){return jo.articleTypeInput.getAttribute("data-default")}static get articleType(){return jo.articleTypeInput.value}static set articleType(e){jo.articleTypeInput.value=e}static get pageTypeInput(){return document.getElementById("yoast_wpseo_schema_page_type")}static get defaultPageType(){return jo.pageTypeInput.getAttribute("data-default")}static get pageType(){return jo.pageTypeInput.value}static set pageType(e){jo.pageTypeInput.value=e}}const So=t=>{const s=null!==jo.articleTypeInput;(0,e.useEffect)((()=>{t.loadSchemaPageData(),s&&t.loadSchemaArticleData()}),[]);const{pageTypeOptions:i,articleTypeOptions:o}=window.wpseoScriptData.metabox.schema,r={articleTypeLabel:(0,d.__)("Article type","wordpress-seo"),pageTypeLabel:(0,d.__)("Page type","wordpress-seo"),postTypeName:window.wpseoAdminL10n.postTypeNamePlural,helpTextTitle:(0,d.__)("Yoast SEO automatically describes your pages using schema.org","wordpress-seo"),helpTextDescription:(0,d.__)("This helps search engines understand your website and your content. You can change some of your settings for this page below.","wordpress-seo"),showArticleTypeInput:s,pageTypeOptions:i,articleTypeOptions:o},n={...t,...r,...(a=t.location,"metabox"===a?{helpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.metabox.schema.page_type"],isMetabox:!0}:{helpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.explanation"],additionalHelpTextLink:wpseoAdminL10n["shortlinks.sidebar.schema.page_type"],isMetabox:!1})};var a;return(0,u.jsx)(Ro,{...n})};So.propTypes={displayFooter:o().bool.isRequired,schemaPageTypeSelected:o().string.isRequired,schemaArticleTypeSelected:o().string.isRequired,defaultArticleType:o().string.isRequired,defaultPageType:o().string.isRequired,loadSchemaPageData:o().func.isRequired,loadSchemaArticleData:o().func.isRequired,schemaPageTypeChange:o().func.isRequired,schemaArticleTypeChange:o().func.isRequired,location:o().string.isRequired};const Io=(0,V.compose)([(0,a.withSelect)((e=>{const{getPreferences:t,getPageType:s,getDefaultPageType:i,getArticleType:o,getDefaultArticleType:r}=e("yoast-seo/editor"),{displaySchemaSettingsFooter:n,isNewsEnabled:a}=t();return{displayFooter:n,isNewsEnabled:a,schemaPageTypeSelected:s(),schemaArticleTypeSelected:o(),defaultArticleType:r(),defaultPageType:i()}})),(0,a.withDispatch)((e=>{const{setPageType:t,setArticleType:s,getSchemaPageData:i,getSchemaArticleData:o}=e("yoast-seo/editor");return{loadSchemaPageData:i,loadSchemaArticleData:o,schemaPageTypeChange:t,schemaArticleTypeChange:s}})),Qt()])(So),Co=window.yoast.relatedKeyphraseSuggestions;function Eo({requestLimitReached:e,isSuccess:t,response:s,requestHasData:i,relatedKeyphrases:o}){return e?"requestLimitReached":!t&&function(e){return"invalid_json"===(null==e?void 0:e.code)||"fetch_error"===(null==e?void 0:e.code)||!(0,n.isEmpty)(e)&&"error"in e}(s)?"requestFailed":i?function(e){return e&&e.length>=4}(o)?"maxRelatedKeyphrases":null:"requestEmpty"}function Lo({keyphrase:t="",relatedKeyphrases:s=[],renderAction:i=null,requestLimitReached:o=!1,countryCode:n,setCountry:a,newRequest:l,response:c={},isRtl:d=!1,userLocale:p="en_US",isPending:h=!1,isSuccess:g=!1,requestHasData:m=!0,isPremium:y=!1,semrushUpsellLink:w="",premiumUpsellLink:f=""}){var x,b;const[v,k]=(0,e.useState)(n),_=(0,e.useCallback)((async()=>{l(n,t),k(n)}),[n,t,l]);return(0,u.jsxs)(r.Root,{context:{isRtl:d},children:[!o&&!y&&(0,u.jsx)(Co.PremiumUpsell,{url:f,className:"yst-mb-4"}),!o&&(0,u.jsx)(Co.CountrySelector,{countryCode:n,activeCountryCode:v,onChange:a,onClick:_,className:"yst-mb-4",userLocale:p.split("_")[0]}),!h&&(0,u.jsx)(Co.UserMessage,{variant:Eo({requestLimitReached:o,isSuccess:g,response:c,requestHasData:m,relatedKeyphrases:s}),upsellLink:w}),(0,u.jsx)(Co.KeyphrasesTable,{relatedKeyphrases:s,columnNames:null==c||null===(x=c.results)||void 0===x?void 0:x.columnNames,data:null==c||null===(b=c.results)||void 0===b?void 0:b.rows,isPending:h,renderButton:i,className:"yst-mt-4"})]})}Lo.propTypes={keyphrase:o().string,relatedKeyphrases:o().array,renderAction:o().func,requestLimitReached:o().bool,countryCode:o().string.isRequired,setCountry:o().func.isRequired,newRequest:o().func.isRequired,response:o().object,isRtl:o().bool,userLocale:o().string,isPending:o().bool,isSuccess:o().bool,requestHasData:o().bool,isPremium:o().bool,semrushUpsellLink:o().string,premiumUpsellLink:o().string};const Ao=(0,V.compose)([(0,a.withSelect)((e=>{const{getFocusKeyphrase:t,getSEMrushSelectedCountry:s,getSEMrushRequestLimitReached:i,getSEMrushRequestResponse:o,getSEMrushRequestIsSuccess:r,getSEMrushIsRequestPending:n,getSEMrushRequestHasData:a,getPreference:l,getIsPremium:c,selectLinkParams:d}=e("yoast-seo/editor");return{keyphrase:t(),countryCode:s(),requestLimitReached:i(),response:o(),isSuccess:r(),isPending:n(),requestHasData:a(),isRtl:l("isRtl",!1),userLocale:l("userLocale","en_US"),isPremium:c(),semrushUpsellLink:(0,js.addQueryArgs)("https://yoa.st/semrush-prices",d()),premiumUpsellLink:(0,js.addQueryArgs)("https://yoa.st/413",d())}})),(0,a.withDispatch)((e=>{const{setSEMrushChangeCountry:t,setSEMrushNewRequest:s}=e("yoast-seo/editor");return{setCountry:e=>{t(e)},newRequest:(e,t)=>{s(e,t)}}}))])(Lo),qo=({isOpen:e,closeModal:t,id:s,upsellLink:i})=>(0,u.jsx)($s,{isOpen:e,onClose:t,id:s,upsellLink:i,title:(0,d.__)("Cover more search intent with related keyphrases","wordpress-seo"),description:(0,d.__)("Optimize for up to 5 keyphrases to shape your content around different themes, audiences, and angles - helping it get discovered by a wider audience.","wordpress-seo"),note:(0,d.__)("Fine-tune your content for every audience","wordpress-seo"),modalTitle:(0,d.__)("Target multiple keyphrases","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"}),Fo=()=>{const[t,,,s,i]=(0,r.useToggleState)(!1),o=(0,e.useContext)(W.LocationContext),{locationContext:n}=(0,W.useRootContext)(),a=(0,r.useSvgAria)(),l=wpseoAdminL10n["sidebar"===o.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(qo,{isOpen:t,closeModal:i,upsellLink:(0,js.addQueryArgs)(l,{context:n}),id:`yoast-additional-keyphrases-modal-${o}`}),"sidebar"===o&&(0,u.jsx)(ne,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,d.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:F.colors.$color_grey_medium_dark},onClick:s,children:(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsx)(r.Badge,{size:"small",variant:"upsell",children:(0,u.jsx)(Ns,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...a})})})}),"metabox"===o&&(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsxs)(Z,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:s,children:[(0,u.jsx)(q.SvgIcon,{icon:"plus",color:F.colors.$color_grey_medium_dark}),(0,u.jsx)(Z.Text,{children:(0,d.__)("Add related keyphrase","wordpress-seo")}),(0,u.jsxs)(r.Badge,{size:"small",variant:"upsell",children:[(0,u.jsx)(Ns,{className:"yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0",...a}),(0,u.jsx)("span",{children:"Premium"})]})]})})]})},Po=l.forwardRef((function(e,t){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),l.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Mo=({store:t="yoast-seo/editor",location:s="sidebar"})=>{const i="black-friday-promotion",o=(0,a.useSelect)((e=>e(t).getIsPremium()),[t]),n=(0,a.useSelect)((e=>e(t).selectLinkParams()),[t]),l=(0,a.useSelect)((e=>e(t).isPromotionActive(i)),[t]),c=(0,a.useSelect)((e=>e(t).getIsWooCommerceActive()),[t]),p=(0,a.useSelect)((e=>e(t).isAlertDismissed(i)),[t]),h=(0,a.useSelect)((e=>e(t).getIsElementorEditor()),[t]),m=(0,e.useCallback)((()=>{(0,a.dispatch)(t).dismissAlert(i)}),[t,i]),y=(0,js.addQueryArgs)("https://yoa.st/black-friday-sale",n),w=(0,r.useSvgAria)();return o||!l||p?null:(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsxs)("div",{className:C()("sidebar"!==s||h?"yst-mx-4":"yst-mx-0","yst-border yst-rounded-lg yst-p-4 yst-max-w-md yst-mt-6 yst-relative yst-shadow-sm",c?"yst-border-woo-light":"yst-border-primary-200"),children:[(0,u.jsxs)(r.Badge,{size:"small",className:"yst-text-[10px] yst-bg-black yst-text-amber-300 yst-absolute yst--top-2",children:[(0,d.__)("BLACK FRIDAY","wordpress-seo")," "]}),(0,u.jsxs)("button",{className:"yst-absolute yst-top-4 yst-end-4",onClick:m,children:[(0,u.jsx)(Po,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0 yst--mt-0.5"}),(0,u.jsx)("div",{className:"yst-sr-only",children:(0,d.__)("Dismiss","wordpress-seo")})]}),(0,u.jsxs)("div",{className:C()("sidebar"===s?"":"yst-flex yst-justify-between yst-gap-3"),children:[(0,u.jsxs)("div",{className:c?"yst-text-woo-light":"yst-text-primary-500",children:[(0,u.jsx)("div",{className:"yst-text-2xl yst-font-bold",children:(0,d.__)("30% OFF","wordpress-seo")}),(0,u.jsx)("div",{className:"yst-flex yst-gap-2 yst-font-semibold yst-text-tiny",children:c?(0,u.jsxs)(u.Fragment,{children:["Yoast WooCommerce SEO ",(0,u.jsx)(Ws,{className:"yst-w-4 yst-scale-x-[-1]",...w})]}):(0,u.jsxs)(u.Fragment,{children:[" Yoast SEO Premium ",(0,u.jsx)(A,{className:"yst-w-4",...w})]})})]}),(0,u.jsx)("div",{className:"yst-flex yst-items-end",children:(0,u.jsxs)(r.Button,{as:"a",className:C()("sidebar"===s?"yst-w-full":"yst-w-[140px]","yst-flex yst-gap-1 yst-w-[140px] yst-h-7 yst-mt-4"),variant:"upsell",href:y,target:"_blank",rel:"noreferrer",children:[(0,d.__)("Buy now!","wordpress-seo"),(0,u.jsx)(g,{className:"yst-w-4 rtl:yst-rotate-180",...w})]})})]})]})})};Mo.propTypes={store:o().string,location:o().oneOf(["sidebar","metabox"])};const Do=(Oo=Mo,e=>!(()=>{var e,t;const s=(0,a.select)("yoast-seo/editor").getIsPremium(),i=(0,a.select)("yoast-seo/editor").getWarningMessage();return(s&&null!==(e=null===(t=(0,a.select)("yoast-seo-premium/editor"))||void 0===t?void 0:t.getMetaboxWarning())&&void 0!==e?e:[]).length>0||i.length>0})()&&(0,u.jsx)(Oo,{...e}));var Oo;function No({settings:s}){const{isTerm:i}=(0,a.useSelect)((e=>({isTerm:e("yoast-seo/editor").getIsTerm(),isProduct:e("yoast-seo/editor").getIsProduct(),isWooCommerceActive:e("yoast-seo/editor").getIsWooCommerceActive()})),[]),o=window.wpseoScriptData&&"1"===window.wpseoScriptData.isBlockEditor;return o&&(()=>{const{editorMode:t,activeAIButtonId:s}=(0,a.useSelect)((e=>({editorMode:e("core/edit-post").getEditorMode(),activeAIButtonId:e("yoast-seo/editor").getActiveAIFixesButton()})),[]),{setMarkerStatus:i}=(0,a.useDispatch)("yoast-seo/editor");(0,e.useEffect)((()=>(i("visual"===t&&s||"text"===t?"disabled":"enabled"),()=>{i("disabled")})),[t,s])})(),(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(t.Fill,{name:"YoastMetabox",children:[(0,u.jsx)(Ks,{renderPriority:1,children:(0,u.jsx)(ys,{})},"warning"),(0,u.jsx)(Ks,{renderPriority:2,children:(0,u.jsx)(Do,{location:"metabox"})},"time-constrained-notification"),s.isKeywordAnalysisActive&&(0,u.jsxs)(Ks,{renderPriority:8,children:[(0,u.jsx)(Xt.KeywordInput,{isSEMrushIntegrationActive:s.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,u.jsx)(t.Fill,{name:"YoastRelatedKeyphrases",children:(0,u.jsx)(Ao,{})})]},"keyword-input"),(0,u.jsx)(Ks,{renderPriority:9,children:(0,u.jsx)(xs,{id:"yoast-snippet-editor-metabox",title:(0,d.__)("Search appearance","wordpress-seo"),initialIsOpen:!0,children:(0,u.jsx)(ms,{hasPaperStyle:!1})})},"search-appearance"),s.isContentAnalysisActive&&(0,u.jsx)(Ks,{renderPriority:10,children:(0,u.jsx)(Xt.ReadabilityAnalysis,{shouldUpsell:s.shouldUpsell})},"readability-analysis"),s.isKeywordAnalysisActive&&(0,u.jsx)(Ks,{renderPriority:20,children:(0,u.jsx)(e.Fragment,{children:(0,u.jsx)(Xt.SeoAnalysis,{shouldUpsell:s.shouldUpsell})})},"seo-analysis"),s.isInclusiveLanguageAnalysisActive&&(0,u.jsx)(Ks,{renderPriority:21,children:(0,u.jsx)(Xt.InclusiveLanguageAnalysis,{})},"inclusive-language-analysis"),s.isKeywordAnalysisActive&&(0,u.jsx)(Ks,{renderPriority:22,children:s.shouldUpsell&&(0,u.jsx)(Fo,{})},"additional-keywords-upsell"),s.isKeywordAnalysisActive&&s.isWincherIntegrationActive&&(0,u.jsx)(Ks,{renderPriority:23,children:(0,u.jsx)(Zt,{location:"metabox"})},"wincher-seo-performance"),s.shouldUpsell&&!i&&(0,u.jsx)(Ks,{renderPriority:25,children:(0,u.jsx)(Bs,{})},"internal-linking-suggestions-upsell"),s.isCornerstoneActive&&(0,u.jsx)(Ks,{renderPriority:30,children:(0,u.jsx)(Jt,{})},"cornerstone"),s.displayAdvancedTab&&(0,u.jsx)(Ks,{renderPriority:40,children:(0,u.jsx)(xs,{id:"collapsible-advanced-settings",title:(0,d.__)("Advanced","wordpress-seo"),children:(0,u.jsx)(Js,{})})},"advanced"),s.displaySchemaSettings&&(0,u.jsx)(Ks,{renderPriority:50,children:(0,u.jsx)(Io,{})},"schema"),o&&(0,u.jsx)(Ks,{renderPriority:24,children:(0,u.jsx)(Xt.ContentBlocks,{})},"content-blocks"),(0,u.jsx)(Ks,{renderPriority:-1,children:(0,u.jsx)(go,{target:"wpseo-section-social"})},"social"),s.isInsightsEnabled&&(0,u.jsx)(Ks,{renderPriority:52,children:(0,u.jsx)(Os,{location:"metabox"})},"insights")]})})}No.propTypes={settings:o().object.isRequired};const Uo=(0,V.compose)([(0,a.withSelect)(((e,t)=>{const{getPreferences:s}=e("yoast-seo/editor");return{settings:s(),store:t.store}}))])(No);function Wo({target:e,store:t,theme:s}){return(0,u.jsxs)(D,{target:e,children:[(0,u.jsx)(Y,{store:t,theme:s}),(0,u.jsx)(Uo,{store:t,theme:s})]})}Wo.propTypes={target:o().string.isRequired,store:o().object.isRequired,theme:o().object.isRequired};const $o=[];let Bo=null;class Ho extends e.Component{constructor(e){super(e),this.state={registeredComponents:[...$o]}}registerComponent(e,t){this.setState((s=>({...s,registeredComponents:[...s.registeredComponents,{key:e,Component:t}]})))}render(){return this.state.registeredComponents.map((({Component:e,key:t})=>(0,u.jsx)(e,{},t)))}}function Ko(e,t){null===Bo||null===Bo.current?$o.push({key:e,Component:t}):Bo.current.registerComponent(e,t)}const Yo=window.yoast.externals.redux,Vo=window.jQuery;var zo=s.n(Vo);function Go(e){let t="";var s;return t=!1===function(e){if("undefined"==typeof tinyMCE||void 0===tinyMCE.editors||0===tinyMCE.editors.length)return!1;const t=tinyMCE.get(e);return null!==t&&!t.isHidden()}(e)||0==(s=e,null!==document.getElementById(s+"_ifr"))?function(e){return document.getElementById(e)&&document.getElementById(e).value||""}(e):tinyMCE.get(e).getContent(),t}n.noop,n.noop,n.noop;const{removeMarks:Zo}=P.markers,{updateReplacementVariable:Xo,updateData:Qo,hideReplacementVariables:Jo,setContentImage:er,setEditorDataContent:tr,setEditorDataTitle:sr,setEditorDataExcerpt:ir,setEditorDataImageUrl:or,setEditorDataSlug:rr}=Yo.actions;window.yoast=window.yoast||{},window.yoast.initEditorIntegration=function(s){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=Ko,function(s){const i=Fs();Bo=(0,e.createRef)();const o={isRtl:i.isRtl};(0,e.createRoot)(document.getElementById("wpseo-metabox-root")).render((0,u.jsxs)(t.SlotFillProvider,{children:[(0,u.jsx)(W.Root,{context:{locationContext:"classic-metabox"},children:(0,u.jsx)(Wo,{target:"wpseo-metabox-root",store:s,theme:o})}),(0,u.jsx)(Ho,{ref:Bo})]}))}(s)},window.yoast.EditorData=class{constructor(e,t,s="content"){this._refresh=e,this._store=t,this._tinyMceId=s,this._previousData={},this._previousEditorData={},this.updateReplacementData=this.updateReplacementData.bind(this),this.refreshYoastSEO=this.refreshYoastSEO.bind(this)}initialize(e,t=[]){const s=this.getInitialData(e);var i,o;i=s,o=this._store,(0,n.forEach)(i,((e,t)=>{cs.includes(t)||o.dispatch(ns(t,e))})),this._store.dispatch(Jo(t)),this._previousEditorData.content=s.content,this._store.dispatch(tr(s.content)),this._previousEditorData.contentImage=s.contentImage,this._store.dispatch(er(s.contentImage)),this.setImageInSnippetPreview(s.snippetPreviewImageURL||s.contentImage),this._previousEditorData.slug=s.slug,this._store.dispatch(rr(s.slug)),this.updateReplacementData({target:{value:s.title}},"title"),this.updateReplacementData({target:{value:s.excerpt}},"excerpt"),this.updateReplacementData({target:{value:s.excerpt_only}},"excerpt_only"),this.subscribeToElements(),this.subscribeToStore(),this.subscribeToSnippetPreviewImage(),this.subscribeToTinyMceEditor(),this.subscribeToSlug()}subscribeToTinyMceEditor(){const e=e=>{if((0,n.isString)(e)||(e=this.getContent()),this._previousEditorData.content===e)return;if(this._previousEditorData.content=e,this._store.dispatch(tr(e)),this.featuredImageIsSet)return;const t=this.getContentImage(e);this._previousEditorData.contentImage!==t&&(this._previousEditorData.contentImage=t,this._store.dispatch(er(t)),this.setImageInSnippetPreview(t))};zo()(document).on("tinymce-editor-init",((t,s)=>{s.id===this._tinyMceId&&(e(this.getContent()),["input","change","cut","paste"].forEach((t=>s.on(t,(0,n.debounce)(e,1e3)))))}));const t=document.getElementById("attachment_content");t&&(e(t.value),t.addEventListener("input",(t=>e(t.target.value))))}subscribeToSlug(){const e=e=>{this._previousEditorData.slug!==e&&(this._previousEditorData.slug=e,this._store.dispatch(rr(e)),this._store.dispatch(Qo({slug:e})))},t=document.getElementById("slug");t&&t.addEventListener("input",(t=>e(t.target.value)));const s=document.getElementById("post_name");s&&s.addEventListener("input",(t=>e(t.target.value)));const i=document.getElementById("edit-slug-buttons");i&&new MutationObserver(((t,s)=>t.forEach((t=>{t.addedNodes.forEach((t=>{var i,o;if(null==t||null===(i=t.classList)||void 0===i||!i.contains("edit-slug"))return;const r=null===(o=document.getElementById("editable-post-name-full"))||void 0===o?void 0:o.innerText;r&&(e(r),s.disconnect(),this.subscribeToSlug())}))})))).observe(i,{childList:!0})}subscribeToSnippetPreviewImage(){if((0,n.isUndefined)(wp.media)||(0,n.isUndefined)(wp.media.featuredImage))return;zo()("#postimagediv").on("click","#remove-post-thumbnail",(()=>{this.featuredImageIsSet=!1,this.setImageInSnippetPreview(this.getContentImage(this.getContent()))}));const e=wp.media.featuredImage.frame();var t,s,i;e.on("select",(()=>{const t=e.state().get("selection").first().attributes.url;t&&(this.featuredImageIsSet=!0,this.setImageInSnippetPreview(t))})),t=this._tinyMceId,s=["init"],i=()=>{const e=this.getContentImage(this.getContent()),t=this.getFeaturedImage()||e||"";this._store.dispatch(er(e)),this.setImageInSnippetPreview(t)},"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",(function(e){const o=e.editor;o.id===t&&(0,n.forEach)(s,(function(e){o.on(e,i)}))}))}getFeaturedImage(){const e=zo()("#set-post-thumbnail img").attr("src");return e?(this.featuredImageIsSet=!0,e):(this.featuredImageIsSet=!1,null)}setImageInSnippetPreview(e){this._store.dispatch(or(e)),this._store.dispatch(Qo({snippetPreviewImageURL:e}))}getContentImage(e){if(this.featuredImageIsSet)return"";const t=P.languageProcessing.imageInText(e);if(0===t.length)return"";const s=zo().parseHTML(t.join(""));for(const e of s)if(e.src)return e.src;return""}getTitle(){const e=document.getElementById("title")||document.getElementById("name");return e&&e.value||""}getExcerpt(e=!0){const t=document.getElementById("excerpt"),s=t&&t.value||"",i="ja"===function(){const e=Fs();return(0,n.get)(e,"contentLocale","en_US")}()?80:156;return""!==s||!1===e?s:function(e,t=156){return(e=(e=(0,os.stripTags)(e)).trim()).length<=t||(e=e.substring(0,t),/\s/.test(e)&&(e=e.substring(0,e.lastIndexOf(" ")))),e}(this.getContent(),i)}getSlug(){let e="";const t=document.getElementById("new-post-slug")||document.getElementById("slug");return t?e=t.value:null!==document.getElementById("editable-post-name-full")&&(e=document.getElementById("editable-post-name-full").textContent),e}getContent(){return Zo(Go(this._tinyMceId))}subscribeToElements(){this.subscribeToInputElement("title","title"),this.subscribeToInputElement("excerpt","excerpt"),this.subscribeToInputElement("excerpt","excerpt_only")}subscribeToInputElement(e,t){const s=document.getElementById(e);s&&s.addEventListener("input",(e=>{this.updateReplacementData(e,t)}))}updateReplacementData(e,t){let s=e.target.value;if("excerpt"===t&&""===s&&(s=this.getExcerpt()),this._previousEditorData[t]!==s){switch(this._previousEditorData[t]=s,t){case"title":this._store.dispatch(sr(s));break;case"excerpt":this._store.dispatch(ir(s))}this._store.dispatch(Xo(t,s))}}isShallowEqual(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e.hasOwnProperty(s)&&(!(s in t)||e[s]!==t[s]))return!1;return!0}refreshYoastSEO(){const e=this.getData();!this.isShallowEqual(this._previousData,e)&&(this.handleEditorChange(e),this._previousData=e,window.YoastSEO&&window.YoastSEO.app&&window.YoastSEO.app.refresh())}handleEditorChange(e){this._previousData.excerpt!==e.excerpt&&(this._store.dispatch(Xo("excerpt",e.excerpt)),this._store.dispatch(Xo("excerpt_only",e.excerpt_only))),this._previousData.snippetPreviewImageURL!==e.snippetPreviewImageURL&&this.setImageInSnippetPreview(e.snippetPreviewImageURL),this._previousData.slug!==e.slug&&this._store.dispatch(rr(e.slug)),this._previousData.title!==e.title&&this._store.dispatch(sr(e.title))}subscribeToStore(){this.subscriber=(0,n.debounce)(this.refreshYoastSEO,500),this._store.subscribe(this.subscriber)}getInitialData(e){e=function(e,t){if(!e.custom_taxonomies)return e;const s={};return(0,n.forEach)(e.custom_taxonomies,((e,t)=>{const{name:i,label:o,descriptionName:r,descriptionLabel:n}=function(e){const t=ds(e);return{name:"ct_"+t,label:as(e+" (custom taxonomy)"),descriptionName:"ct_desc_"+t,descriptionLabel:as(e+" description (custom taxonomy)")}}(t),a="string"==typeof e.name?(0,X.decodeHTML)(e.name):e.name,l="string"==typeof e.description?(0,X.decodeHTML)(e.description):e.description;s[i]={value:a,label:o},s[r]={value:l,label:n}})),t.dispatch(function(e){return{type:"SNIPPET_EDITOR_UPDATE_REPLACEMENT_VARIABLES_BATCH",updatedVariables:e}}(s)),(0,n.omit)({...e},"custom_taxonomies")}(e=function(e,t){return e.custom_fields?((0,n.forEach)(e.custom_fields,((e,s)=>{const{name:i,label:o}=function(e){return{name:"cf_"+ds(e),label:as(e+" (custom field)")}}(s);t.dispatch(ns(i,e,o))})),(0,n.omit)({...e},"custom_fields")):e}(e,this._store),this._store);const t=this.getContent(),s=this.getFeaturedImage();return{...e,title:this.getTitle(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1),slug:this.getSlug(),content:t,snippetPreviewImageURL:s,contentImage:this.getContentImage(t)}}getData(){return{...this._store.getState().snippetEditor.data,title:this.getTitle(),content:this.getContent(),excerpt:this.getExcerpt(),excerpt_only:this.getExcerpt(!1)}}}})()})();

Youez - 2016 - github.com/yon3zu
LinuXploit