���� JFIF  XX �� �� �     $.' ",#(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�8 ds|\���Ҿp6�Ҵ���]��.����6� z<�v��@]�i% �� $j��~ �g��J>��no����pM[me�i$[�� �� s�o�ᘨ�˸ nɜG-�ĨU�ycP� 3.DB�li�;� �hj���x 7Z^�N�h��� ���N3u{�:j �x�힞��#M &��jL P@ _���� P�� &��o8 ������9 �����@Sz 6�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*-i H��g�D�)� E�m�|�ؘbҗ�a ��Ҿ���� t4��� o���G��*oCN�rP���Q��@z,|?W[0 �����:�n,j WiE��W� �$~/�hp\��?��{(�0���+�Y8rΟ�+����>S-S�� ��VN;� }�s?.����� w �9��˟<���Mq4�Wv' ��{)0�1mB ��V����W[� ����8�/<� �%���wT^�5���b��)iM� p g�N�&ݝ� �VO~� q���u���9� ����!��J27��� �$ O-���! �: �%H��� ـ ����y�ΠM=t{!S�� oK8������ t<����è :a�� ����[���� �ա�H���~��w��Qz`�p o�^ �� ��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�_�uX 6��3?nk��Wy�f;^*B� ��@ �~a�`��Eu������ +� �� 6�L��.ü>��}y���}_�O�6�͐�:�Yr G�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�!0 39C� �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 Xp 3�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@:)ִ�:�]��h v�E� w���T�l ��P� ��"Ju�}��وV J��G6��. J/�Qgl߭�e�����@�z�Zev2u� )]կ��� ��7x�� �s�M�-<ɯ�c��r� v�����@��$�ޮ}lk���a�� �'����>x��O\�Z Fu>��� ��ck#��&:��`�$ �ai�>2Δ����l���oF[h� �lE�ܺ�Π k:)���` �� $[6�����9�����kOw�\|��� 8}������ބ:��񶐕� �I�A1/� =�2[�,�!��.}gN#�u����b ��� ~� �݊��}34q��� �d�E��L c��$ ��"�[q�U�硬g^��%B � z���r�p J�ru%v\h 1Y�ne` ǥ:g�� �pQM~�^� Xi� ��`S�:V2 9.�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& Ú����2 g�}&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��f2 4;�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)*P t����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���#y w��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���/$�WP w���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��B S�('$�ɻ� �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 : 195.80.238.152  /  Your IP : 216.73.216.132
Web Server : Apache/2.4.59 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2
System : Linux www.mahash.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User : mahash ( 1002)
PHP Version : 7.2.34-45+ubuntu22.04.1+deb.sury.org+1
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,popen
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/mahash/web/mahash.ru/public_html/dmxAppConnect/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mahash/web/mahash.ru/public_html/dmxAppConnect//dmxAppConnect.js
/*!
 DMXzone App Connect
 Version: 1.7.5
 (c) 2020 DMXzone.com
 @build 2020-01-16 12:08:21
 */
Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var i=arguments[1],r=0;r<n;){var s=e[r];if(t.call(i,s,r,e))return r;r++}return-1}}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var i=arguments[1],r=0;r<n;){var s=e[r];if(t.call(i,s,r,e))return s;r++}}}),Array.prototype.fill||Object.defineProperty(Array.prototype,"fill",{value:function(t){if(null==this)throw new TypeError("this is null or not defined");for(var e=Object(this),n=e.length>>>0,i=arguments[1]>>0,r=i<0?Math.max(n+i,0):Math.min(i,n),s=arguments[2],a=void 0===s?n:s>>0,o=a<0?Math.max(n+a,0):Math.min(a,n);r<o;)e[r]=t,r++;return e}}),"function"!=typeof Object.assign&&(Object.assign=function(t,e){"use strict";if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n}),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(t){var e,n=(this.document||this.ownerDocument).querySelectorAll(t),i=this;do{for(e=n.length;0<=--e&&n.item(e)!==i;);}while(e<0&&(i=i.parentElement));return i}),window.dmx=window.dmx||{},dmx.__components={},dmx.__attributes={before:{},mount:{},mounted:{}},dmx.__formatters={boolean:{},global:{},string:{},number:{},object:{},array:{}},dmx.__adapters={},dmx.__actions={},dmx.config={mapping:{form:"form","button, input[type=button], input[type=submit], input[type=reset]":"button","input[type=radio]":"radio","input[type=checkbox]":"checkbox","input[type=file][multiple]":"input-file-multiple","input[type=file]":"input-file",input:"input",textarea:"textarea","select[multiple]":"select-multiple",select:"select",".checkbox-group":"checkbox-group",".radio-group":"radio-group"}},dmx.reIgnoreElement=/^(script|style)$/i,dmx.rePrefixed=/^dmx-/i,dmx.reExpression=/\{\{(.+?)\}\}/,dmx.reExpressionReplace=/\{\{(.+?)\}\}/g,dmx.reToggleAttribute=/^(checked|selected|disabled|required|hidden|async|autofocus|autoplay|default|defer|multiple|muted|novalidate|open|readonly|reversed|scoped)$/i,dmx.reDashAlpha=/-([a-z])/g,dmx.reUppercase=/[A-Z]/g,dmx.appConnect=function(t,e){if(dmx.app)return alert("App already running!");t=t||document.documentElement,window.onpopstate=function(){dmx.requestUpdate()},window.onhashchange=function(){dmx.requestUpdate()};var n=dmx.Component("app");dmx.app=new n(t),dmx.app.$update(),e&&e()},document.documentElement.style.visibility="hidden",document.addEventListener("DOMContentLoaded",function(){var t=document.querySelector(':root[dmx-app], [dmx-app], :root[is="dmx-app"], [is="dmx-app"]');t?dmx.appConnect(t,function(){document.documentElement.style.visibility="",t.removeAttribute("dmx-app")}):(document.documentElement.style.visibility="",console.warn("No APP root found!"))}),dmx.useHistory=window.history&&window.history.pushState,dmx.extend=function(){var n={},i=!1,t=0,e=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(i=arguments[0],t++);for(var r=function(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i&&"[object Object]"===Object.prototype.toString.call(t[e])?n[e]=dmx.extend(!0,n[e],t[e]):null!=t[e]&&(n[e]=t[e]))};t<e;t++){r(arguments[t])}return n},dmx.noop=function(){},dmx.isset=function(t){return void 0!==v},dmx.clone=function(t){return t&&JSON.parse(JSON.stringify(t))},dmx.array=function(t){return null==t?[]:Array.prototype.slice.call(t)},dmx.hashCode=function(t){if(null==t)return 0;var e,n=JSON.stringify(t),i=0;for(e=0;e<n.length;e++)i=(i<<5)-i+n.charCodeAt(e),i&=i;return Math.abs(i)},dmx.randomizer=function(t){return t=+t||0,function(){return(t=(9301*t+49297)%233280)/233280}},dmx.repeatItems=function(n){var i=[];if(n){if(Array.isArray(n))i=n.map(function(t){return"object"==typeof t?dmx.clone(t):{$value:t}});else if("number"==typeof n)for(var t=0;t<n;t++)i.push({$value:t+1});else"object"==typeof n&&Object.keys(n).forEach(function(t){var e="object"==typeof n[t]?dmx.clone(n[t]):{$value:n[t]};e.$key=t,i.push(e)});i=i.map(function(t,e){return t.$key||(t.$key=e),t.$value||(t.$value=dmx.clone(t)),t.$index=e,t})}return i},dmx.escapeRegExp=function(t){return t.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")},dmx.validate=function(t){return t.checkValidity()},dmx.validateReset=function(t){},window.setImmediate?dmx.nextTick=function(t,e){return window.setImmediate(t.bind(e))}:window.postMessage?function(){var n=[];window.addEventListener("message",function(t){if(t.source===window&&"dmxNextTick"===t.data&&n.length){var e=n.shift();e.fn.call(e.context)}}),dmx.nextTick=function(t,e){n.push({fn:t,context:e}),window.postMessage("dmxNextTick","*")}}():dmx.nextTick=function(t,e){window.setTimeout(t.bind(e),0)},dmx.requestUpdate=function(){var t=!1;return function(){t||(t=!0,dmx.nextTick(function(){t=!1,dmx.app&&dmx.app.$update()}))}}(),dmx.debounce=function(e,n){var i;return function(){var t=Array.prototype.slice.call(arguments);clearTimeout(i),i=setTimeout(function(){e.apply(null,t)},n||0)}},dmx.keyCodes={bs:8,tab:9,enter:13,esc:27,space:32,left:37,up:38,right:39,down:40,delete:46,backspace:8,pause:19,capslock:20,escape:27,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,numlock:144,scrolllock:145,semicolon:186,equal:187,comma:188,minus:189,period:190,slash:191,backquote:192,bracketleft:219,backslash:220,bracketright:221,quote:222,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,numpadmultiply:106,numpadadd:107,numpadsubstract:109,numpaddivide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,keya:65,keyb:66,keyc:67,keyd:68,keye:69,keyf:70,keyg:71,keyh:72,keyi:73,keyj:74,keyk:75,keyl:76,keym:77,keyn:78,keyo:79,keyp:80,keyq:81,keyr:82,keys:83,keyt:84,keyu:85,keyv:86,keyw:87,keyx:88,keyy:89,keyz:90},dmx.eventListener=function(t,e,i,r){var s,n=function(t){if((!r.self||t.target===t.currentTarget)&&(!r.ctrl||t.ctrlKey)&&(!r.alt||t.altKey)&&(!r.shift||t.shiftKey)&&(!r.meta||t.metaKey)&&!((t.originalEvent||t)instanceof MouseEvent&&null!=r.button&&t.button!=(parseInt(r.button,10)||0))){if((t.originalEvent||t)instanceof KeyboardEvent){var n=[];Object.keys(r).forEach(function(t){var e=parseInt(t,10);e?n.push(e):dmx.keyCodes[t]&&n.push(dmx.keyCodes[t])});for(var e=0;e<n.length;e++)if(t.which!==n[e])return}if(r.stop&&t.stopPropagation(),r.prevent&&t.preventDefault(),t.originalEvent&&(t=t.originalEvent),t.$data||(t.$data={}),t instanceof MouseEvent&&(t.$data.altKey=t.altKey,t.$data.ctrlKey=t.ctrlKey,t.$data.metaKey=t.metaKey,t.$data.shiftKey=t.shiftKey,t.$data.pageX=t.pageX,t.$data.pageY=t.pageY,t.$data.x=t.x||t.clientX,t.$data.y=t.y||t.clientY),t instanceof KeyboardEvent&&(t.$data.altKey=t.altKey,t.$data.ctrlKey=t.ctrlKey,t.$data.metaKey=t.metaKey,t.$data.shiftKey=t.shiftKey,t.$data.location=t.location,t.$data.repeat=t.repeat,t.$data.code=t.code,t.$data.key=t.key),!r.debounce)return i.call(this,t);clearTimeout(s),s=setTimeout(i.bind(this,t),parseInt(r.debounce,10)||0)}};r=r||{},window.jQuery&&!r.capture?jQuery(t).on(e.replace(/-/g,"."),n):t.addEventListener(e,n,!!r.capture)},dmx.createClass=function(t,e){var n=function(){t.constructor&&t.constructor.apply(this,arguments)};return e&&e.prototype&&(n.prototype=Object.create(e.prototype)),Object.assign(n.prototype,t),n.prototype.constructor=n},dmx.Config=function(t){Object.assign(dmx.config,t)},dmx.Component=function(t,e){if(e){var n=dmx.Component(e.extends)||dmx.BaseComponent;e.initialData=Object.assign({},n.prototype.initialData,e.initialData),e.attributes=Object.assign({},n.prototype.attributes,e.attributes),e.methods=Object.assign({},n.prototype.methods,e.methods),e.events=Object.assign({},n.prototype.events,e.events),e.hasOwnProperty("constructor")||(e.constructor=function(t,e){n.call(this,t,e)}),e.type=t;var i=dmx.createClass(e,n);i.extends=e.extends,dmx.__components[t]=i}return dmx.__components[t]},dmx.Attribute=function(t,e,n){dmx.__attributes[e]||(dmx.__attributes[e]={}),dmx.__attributes[e][t]=n},dmx.Formatters=function(t,e){for(var n in dmx.__formatters[t]||(dmx.__formatters[t]={}),e)dmx.__formatters[t][n]=e[n]},dmx.Formatter=function(t,e,n){dmx.__formatters[t]||(dmx.__formatters[t]={}),dmx.__formatters[t][e]=n},dmx.Adapter=function(t,e,n){return dmx.__adapters[t]||(dmx.__adapters[t]={}),n&&(dmx.__adapters[t][e]=n),dmx.__adapters[t][e]},dmx.Action=function(t,e){dmx.__actions[t]=e},function(){var i=function(t){if(!(this instanceof i))return new i(t);if(t instanceof i)return t;if(!t)return this;var e=t.length;if(t.nodeType)this[0]=t,this.length=1;else{if("string"==typeof t)return i(document.querySelectorAll(t));if(e)for(var n=0;n<e;n++)t[n]&&t[n].nodeType&&(this[this.length]=t[n],this.length++)}return this};i.prototype={constructor:i,length:0,addClass:function(t){for(var e=0;e<this.length;e++)this[e].classList.add(t);return this},removeClass:function(t){for(var e=0;e<this.length;e++)this[e].classList.remove(t);return this},toggleClass:function(t){for(var e=0;e<this.length;e++)this[e].classList.toggle(t);return this},hasClass:function(t){return!!this[0]&&this[0].classList.contains(t)},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]&&this[0].getAttribute(t);for(var n=0;n<this.length;n++)if(2===arguments.length)this[n].setAttribute(t,e);else for(var i in t)this[n].setAttribute(i,t[i]);return this},removeAttr:function(t){for(var e=0;e<this.length;e++)this[e].removeAttribute(t);return this},prop:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]&&this[0][t];for(var n=0;n<this.length;n++)if(2===arguments.length)this[n][t]=e;else for(var i in t)this[n][i]=t[i];return this},css:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]&&window.getComputedStyle(this[0],null).getPropertyValue(t);for(var n=0;n<this.length;n++)if(2===arguments.length)this[n].style.setProperty(t,e);else for(var i in t)this[n].style.setProperty(i,t[i]);return this},each:function(t,e){if(!t)return this;for(var n=0;n<this.length;n++)if(!1===t.call(e||this[n],n,this[n]))return this;return this},append:function(){for(var t=0;t<arguments.length;t++)for(var e=i(arguments[t]),n=0;n<e.length;n++)this[0].appendChild(e[n]);return this},appendTo:function(t){return i(t).append(this),this},detach:function(){for(var t=0;t<this.length;t++)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this},empty:function(){for(var t=0;t<this.length;t++)this[t].innerHTML="";return this}},dmx.dom={get:function(t){return i(document.getElementById(t))},select:function(t){return i(t)},create:function(t){var e=document.createElement(t);return i(e)},contains:function(t){return document.documentElement.contains(t)},walk:function(t,e,n){if(t){if(!1===e.call(n,t))return;t.hasChildNodes()&&Array.prototype.slice.call(t.childNodes,0).forEach(function(t){dmx.dom.walk(t,e,n)})}},getAttributes:function(t){var e=[];if(1==t.nodeType)for(var n=0;n<t.attributes.length;n++){var i=t.attributes[n];if(i&&i.specified&&dmx.rePrefixed.test(i.name)){var r=i.name.substr(4),s=null,a={};r.split(".").forEach(function(t,e){if(0===e)r=t;else{var n=t.indexOf(":");0<n?a[t.substr(0,n)]=t.substr(n+1):a[t]=!0}});var o=r.indexOf(":");0<o&&(s=r.substr(o+1),r=r.substr(0,o)),e.push({name:r,fullName:i.name,value:i.value,argument:s,modifiers:a})}}return e},remove:function(t){Array.isArray(t)?t.forEach(function(t){dmx.dom.remove(t)}):t.parentNode&&t.parentNode.removeChild(t)},replace:function(t,e){t.parentNode&&t.parentNode.replaceChild(e,t)}}}(),function(){var k={},A={"{":"L_CURLY","}":"R_CURLY","(":"L_PAREN",")":"R_PAREN","[":"L_BRACKET","]":"R_BRACKET",".":"PERIOD",",":"COMMA",";":"SEMI",":":"COLON","?":"QUESTION","+":"ADDICTIVE","-":"ADDICTIVE","*":"MULTIPLICATIVE","/":"MULTIPLICATIVE","%":"MULTIPLICATIVE","===":"EQUALITY","!==":"EQUALITY","==":"EQUALITY","!=":"EQUALITY","<":"RELATIONAL",">":"RELATIONAL","<=":"RELATIONAL",">=":"RELATIONAL",in:"RELATIONAL","&&":"LOGICAL_AND","||":"LOGICAL_OR","!":"LOGICAL_NOT","&":"BITWISE_AND","|":"BITWISE_OR","^":"BITWISE_XOR","~":"BITWISE_NOT","<<":"BITWISE_SHIFT",">>":"BITWISE_SHIFT",">>>":"BITWISE_SHIFT"},w={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"',"`":"`"},C={in:function(t,e){return t()in e()},"?":function(t,e,n){return t()?e():n()},"+":function(t,e){return t=t(),e=e(),null==t?e:null==e?t:t+e},"-":function(t,e){return t()-e()},"*":function(t,e){return t()*e()},"/":function(t,e){return t()/e()},"%":function(t,e){return t()%e()},"===":function(t,e){return t()===e()},"!==":function(t,e){return t()!==e()},"==":function(t,e){return t()==e()},"!=":function(t,e){return t()!=e()},"<":function(t,e){return t()<e()},">":function(t,e){return t()>e()},"<=":function(t,e){return t()<=e()},">=":function(t,e){return t()>=e()},"&&":function(t,e){return t()&&e()},"||":function(t,e){return t()||e()},"&":function(t,e){return t()&e()},"|":function(t,e){return t()|e()},"^":function(t,e){return t()^e()},"<<":function(t,e){return t()<<e()},">>":function(t,e){return t()>>e()},">>>":function(t,e){return t()>>>e()},"~":function(t){return~t()},"!":function(t){return!t()}},O={this:function(t){return function(){return t.data}},undefined:function(){return function(){}},null:function(){return function(){return null}},true:function(){return function(){return!0}},false:function(){return function(){return!1}}},_=function(){return 0};dmx.lexer=function(s){if(k[s])return k[s];for(var t,e,n,a,i,r,o,d,u=[],h=0,l=!0;h<s.length;){if(n=h,a=c(),'"'!=(d=a)&&"'"!=d&&"`"!=d||!l)if((m(a)||f(".")&&p()&&m(p()))&&l)e="NUMBER",t=b(),l=!1;else if(v(a)&&l)e="IDENT",t=E(),f("(")&&(e="METHOD"),l=!1;else if(f("/")&&l&&C())e="REGEXP",t=$(),l=!1;else{if(" "==(o=a)||"\r"==o||"\t"==o||"\n"==o||"\v"==o||" "==o){h++;continue}if((r=c(3))&&A[r])e=A[r],t=r,l=!0,h+=3;else if((i=c(2))&&A[i])e=A[i],t=i,l=!0,h+=2;else{if(!A[a])throw Error("Lexer Error: Unexpected token '"+a+"' at column "+h+" in expression ["+s+"]");e=A[a],t=a,l=!0,h++}}else e="STRING",t=y(a),l=!1;u.push({name:e,index:n,value:t})}return k[s]=u;function c(t){return 1<t?s.substr(h,t):s[h]}function p(t){return h+(t=t||1)<s.length&&s[h+t]}function f(t){return-1!=t.indexOf(a)}function m(t){return"0"<=t&&t<="9"}function v(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"==t||"$"==t}function x(t){return v(t)||m(t)}function g(t){return"-"==t||"+"==t||m(t)}function y(t){var e="",n=!1;for(h++;h<s.length;){if(a=c(),n){if("u"==a){h++;var i=c(4);if(i.match(/[\da-f]{4}/i))throw Error("Invalid unicode escape");e+=String.fromCharCode(parseInt(i,16)),h+=3}else{var r=w[a];e+=r||a}n=!1}else if("\\"==a)n=!0;else{if(a==t)return h++,e;e+=a}h++}throw Error("Unterminated quote")}function b(){for(var t="",e=!1;h<s.length;){if(a=c(),f(".")&&p()&&m(p())||m(a))t+=a;else{var n=p();if(f("eE")&&g(n))t+="e",e=!0;else{if(!(g(a)&&n&&m(n)&&e)){if(!g(a)||n&&m(n)||!e)break;throw Error("Invalid exponent")}t+=a,e=!1}}h++}return+t}function E(){for(var t="";h<s.length&&x(a=c());)t+=a,h++;return t}function $(){var t="",e="",n=!1;for(h++;h<s.length;){if(a=c(),n)n=!1;else if("\\"==a)n=!0;else if("/"==a){for(h++;-1!="ign".indexOf(a=c());)e+=a,h++;return t+"%%%"+e}t+=a,h++}throw Error("Unterminated regexp")}function C(){var t=h,e=!0;try{$()}catch(t){e=!1}return h=t,a="/",e}},dmx.parse=function(e,a){if(a=a||dmx.app,dmx.reExpression.test(e))return"{{"==e.substr(0,2)&&"}}"==e.substr(-2)&&-1==e.indexOf("{{",2)?dmx.parse(e.substring(2,e.length-2),a):e.replace(dmx.reExpressionReplace,function(t,e){var n=dmx.parse(e,a);return null==n?"":n});var t;try{var o,n=dmx.lexer(e).slice(0);t=function(){var i=[];for(;;)if(0<n.length&&!(u("R_PAREN")||u("R_BRACKET")||u("R_CURLY")||u("COMMA")||u("SEMI"))&&i.push(p()),!h("COMMA")&&!h("SEMI"))return(1==i.length?i[0]:t)();function t(){for(var t,e=0;e<i.length;e++){var n=i[e];n&&(t=n())}return t}}()}catch(t){console.error(t)}return t;function d(){if(0===n.length)throw Error("Unexpected end of expression: "+e);return n[0]}function u(t){if(0<n.length){var e=n[0];if(!t||e.name==t)return e}return!1}function h(t){var e=u(t);return!!e&&(n.shift(),e)}function l(t){if(!h(t))throw Error("Unexpected token, expecting ["+t+"]. expression: "+e)}function c(t){var e=Array.prototype.slice.call(arguments,1);return function(){return C.hasOwnProperty(t)?C[t].apply(a,e):t}}function p(){return function t(){var e,n=i();{if(h("QUESTION")){if(e=t(),h("COLON"))return c("?",n,e,t());throw Error("Parse Error")}return n}}()}function i(){for(var t,e=r();;){if(!(t=h("LOGICAL_OR")))return e;e=c(t.value,e,r())}}function r(){var t,e=function(){var t,e=s();(t=h("BITWISE_OR"))&&(e=c(t.value,e,s()));return e}();return(t=h("LOGICAL_AND"))&&(e=c(t.value,e,r())),e}function s(){var t,e=f();return(t=h("BITWISE_XOR"))&&(e=c(t.value,e,f())),e}function f(){var t,e=function t(){var e,n=m();(e=h("EQUALITY"))&&(n=c(e.value,n,t()));return n}();return(t=h("BITWISE_AND"))&&(e=c(t.value,e,f())),e}function m(){var t,e=function(){var t,e=v();for(;t=h("BITWISE_SHIFT");)e=c(t.value,e,v());return e}();return(t=h("RELATIONAL"))&&(e=c(t.value,e,m())),e}function v(){for(var t,e=x();t=h("ADDICTIVE");)e=c(t.value,e,x());return e}function x(){for(var t,e=g();t=h("MULTIPLICATIVE");)e=c(t.value,e,g());return e}function g(){var t;return(t=h("ADDICTIVE"))?"+"==t.value?y():c(t.value,_,g()):(t=h("LOGICAL_NOT"))?c(t.value,g()):y()}function y(){var t,e;if(h("L_PAREN"))t=p(),l("R_PAREN");else if(h("L_CURLY")){var n={};if("R_CURLY"!=d().name)do{var i=h().value;l("COLON"),n[i]=p()()}while(h("COMMA"));t=c(n),l("R_CURLY")}else if(h("L_BRACKET")){var r=[];if("R_BRACKET"!=d().name)for(;r.push(p()()),h("COMMA"););t=c(r),l("R_BRACKET")}else if(h("PERIOD"))t=u()?$(c(a.data)):c(a.data);else{var s=h();if(!1===s)throw Error("Not a primary expression");t="IDENT"==s.name?O.hasOwnProperty(s.value)?O[s.value](a):function(){return a.get(s.value)}:"METHOD"==s.name?c(dmx.__formatters.global[s.value]||function(){window.warn&&console.warn("Formatter "+s.value+" doesn't exist")}):"REGEXP"==s.name?function(){var t=s.value.split("%%%");return new RegExp(t[0],t[1])}:function(){return s.value}}for(;e=h("L_PAREN")||h("L_BRACKET")||h("PERIOD");)if("("==e.value)t=b(t,o);else if("["==e.value)t=E(o=t);else{if("."!=e.value)throw Error("Parse Error");t=$(o=t)}return o=null,t}function b(n,i){var r=[];if("R_PAREN"!=d().name)for(;r.push(p()),h("COMMA"););return l("R_PAREN"),function(){var t=[];i&&t.push(i());for(var e=0;e<r.length;e++)t.push(r[e]());return(n()||dmx.noop).apply(a,t)}}function E(n){var i=p();return l("R_BRACKET"),function(){var t=n(),e=i();if("object"==typeof t&&null!=t)return t[e]}}function $(n){var i=h();return function(){var t=n();if("METHOD"!=i.name)return t&&t.hasOwnProperty(i.value)?t[i.value]:void 0;var e=typeof t;return"object"==e&&(e=Object.prototype.toString.call(t).slice(8,-1).toLowerCase()),"object"==e&&"function"==typeof t["__"+i.value]?t["__"+i.value]:dmx.__formatters[e]&&dmx.__formatters[e][i.value]?dmx.__formatters[e][i.value]:function(){null!=t&&console.warn&&console.warn("Formatter "+i.value+" doesn't exist for type "+e)}}}}}(),dmx.DataScope=function(t,e){return{parent:e||dmx.app,data:t,seed:Math.random(),get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:this.parent?"parent"==t?this.parent.data:this.parent.get(t):void 0}}},dmx.BaseComponent=dmx.createClass({constructor:function(t,e){this.$node=t,this.parent=e,this.bindings={},this.propBindings={},this.children=[],this.listeners={},this.props={},this.data={},this.seed=Math.random(),this.name=t.getAttribute("id")||t.getAttribute("name")||this.type.toLowerCase().replace(/^dmx-/,""),this.name=this.name.replace(/[^\w]/g,""),this.dmxDomId=t.getAttribute("dmxDomId"),this.$parseAttributes(t),this.$initialData(),this.render(t),!1!==this.beforeMount(t)&&(this.$mount(t),this.$node&&(this.$customAttributes("mounted",this.$node),this.dmxDomId&&this.$node.setAttribute("dmxDomId",this.dmxDomId),(this.$node.dmxComponent=this).$node.dmxRendered=!0),this.dispatchEvent("mount"),this.mounted())},tag:null,initialData:{},attributes:{},methods:{},events:{mount:Event,destroy:Event},render:function(t){if(this.tag){if(this.tag.toUpperCase()!==this.$node.tagName){this.$node=document.createElement(this.tag);for(var e=0;e<t.attributes.length;e++){var n=t.attributes[e];n.specified&&this.$node.setAttribute(n.name,n.value)}this.$node.innerHTML=t.innerHTML}}else this.$node=null;this.$placeholder=document.createComment(" "+this.type+"["+this.name+"] "),dmx.dom.replace(t,this.$placeholder),this.$node&&this.$parse()},__find:function(t){if(this.dmxDomId==t)return this;for(var e=0;e<this.children.length;e++){var n=this.children[e].__find(t);if(n)return n}return null},__replace:function(t){var e=this.__find(t);if(e){e.$destroy();var n=document.querySelector('[dmxDomId="'+t+'"]');if(n){var i=e.parent.children.indexOf(e),r=dmx.__components[e.data.$type];if(-1<i&&r){var s=new r(n,e.parent);e.parent.children.splice(i,1,s),s.name&&e.parent.add(s.name,s.data)}}dmx.requestUpdate()}},__remove:function(t){var e=this.__find(t);if(e){e.$destroy();var n=e.parent.children.indexOf(this);-1<n&&e.parent.children.splice(n,1),dmx.requestUpdate()}},beforeMount:dmx.noop,mounted:dmx.noop,beforeUpdate:dmx.noop,update:dmx.noop,updated:dmx.noop,beforeDestroy:dmx.noop,destroyed:dmx.noop,addEventListener:function(t,e){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push(e)},removeEventListener:function(t,e){if(t in this.listeners)for(var n=this.listeners[t],i=0;i<n.length;i++)if(n[i]===e)return n.splice(i,1),this.removeEventListener(t,e)},dispatchEvent:function(e,n,t){if("string"==typeof e)try{var i=this.events[e];e=new i(e,n)}catch(t){var r=e;if((e=document.createEvent("CustomEvent")).initEvent(r,n&&n.bubbles,n&&n.cancelable),!(e instanceof Event))return console.warn("Unknown event "+e,this.events),!1;var s=e.preventDefault;e.preventDefault=function(){s.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented=!0}return e}}if(!(e.type in this.listeners))return!0;var a=this.listeners[e.type];e.target=this,e.$data=t||{};for(var o=0;o<a.length;o++)!1===a[o].call(this,e)&&e.preventDefault();return!e.defaultPrevented},$addChild:function(t,e){var n=new dmx.__components[t](e,this);this.children.push(n),n.name&&this.add(n.name,n.data)},$customAttributes:function(e,n){dmx.dom.getAttributes(n).forEach(function(t){dmx.__attributes[e][t.name]&&(n.removeAttribute(t.fullName),dmx.__attributes[e][t.name].call(this,n,t))},this)},$parse:function(n){(n=n||this.$node)&&(3===n.nodeType&&dmx.reExpression.test(n.nodeValue)&&this.$addBinding(n.nodeValue,function(t,e){n.nodeValue=t}),1===n.nodeType&&(dmx.config.mapping&&Object.keys(dmx.config.mapping).forEach(function(e){dmx.array(n.querySelectorAll(e)).forEach(function(t){t.hasAttribute("is")||t.setAttribute("is","dmx-"+dmx.config.mapping[e])})}),dmx.dom.walk(n,function(n){if(n!=this.$node){if(1===n.nodeType){var t=n.tagName.toLowerCase(),e=dmx.dom.getAttributes(n);if(dmx.reIgnoreElement.test(t))return!1;if(this.$customAttributes("before",n),-1!==e.findIndex(function(t){return"repeat"===t.name}))return!1;if(n.hasAttribute("is")&&(t=n.getAttribute("is")),dmx.rePrefixed.test(t))return(t=t.replace(/^dmx-/i,""))in dmx.__components?(n.isComponent=!0,n.dmxRendered||this.$addChild(t,n),!1):void console.warn("Unknown component found! "+t);this.$customAttributes("mounted",n)}3===n.nodeType&&dmx.reExpression.test(n.nodeValue)&&this.$addBinding(n.nodeValue,function(t,e){n.nodeValue=t})}},this)))},$update:function(){if(!1!==this.beforeUpdate()){var t=dmx.clone(this.props);this.$updateBindings(this.propBindings),this.$updateBindings(this.bindings),this.update(t),this.children.forEach(function(t){t.$update()}),this.updated()}},$updateBindings:function(i){Object.keys(i).forEach(function(t){var e=i[t],n=dmx.parse(t,this);JSON.stringify(n)!==JSON.stringify(e.value)&&(e.callbacks.forEach(function(t){t.call(this,n,e.value)},this),e.value=dmx.clone(n))},this)},$parseAttributes:function(s){var a=this;this.attributes&&Object.keys(this.attributes).forEach(function(t){var e=a.attributes[t],n=e.default;if(s.hasAttribute(t)&&(e.type==Boolean?n=!0:(n=s.getAttribute(t),e.type==Number&&(n=Number(n)),e.type==String&&(n=String(n)),e.validate&&!e.validate(n)&&(n=e.default)),s.removeAttribute(t)),s.hasAttribute("dmx-bind:"+t)){var i=s.getAttribute("dmx-bind:"+t),r=a.$propBinding(t).bind(a);a.propBindings[i]=a.propBindings[i]||{value:null,callbacks:[]},a.propBindings[i].callbacks.push(r),r.call(a,a.propBindings[i].value),s.removeAttribute("dmx-bind:"+t)}a.props[t]=dmx.clone(n)}),this.events&&Object.keys(this.events).forEach(function(t){s.hasAttribute("on"+t)&&(dmx.eventListener(a,t,Function("event",s.getAttribute("on"+t)),{}),s.removeAttribute("on"+t))}),dmx.dom.getAttributes(s).forEach(function(n){"on"==n.name&&this.events[n.argument]&&(dmx.eventListener(a,n.argument,function(t){t.originalEvent&&(t=t.originalEvent);var e=dmx.parse(n.value,dmx.DataScope({$event:t.$data,$originalEvent:t},a));if("string"==typeof e)try{e=new Function("event",e).call(this,t)}catch(t){console.warn('Error executing "'+e+'"',t)}return e},n.modifiers),s.removeAttribute(n.fullName))},this)},$propBinding:function(e){var n=this.attributes[e],i=this;return function(t){void 0===t&&(t=n.default),n.type==Boolean&&(t=!!t),null!=t&&(n.type==Number&&(t=Number(t)),n.type==String&&(t=String(t))),n.validate&&!n.validate(t)&&(t=n.default),i.props[e]=dmx.clone(t)}},$initialData:function(){Object.assign(this.data,{$type:this.type},"function"==typeof this.initialData?this.initialData():this.initialData),Object.keys(this.methods).forEach(function(t){var e=this;this.data["__"+t]=function(){return e.methods[t].apply(e,Array.prototype.slice.call(arguments,1))}},this)},$mount:function(t){this.$placeholder&&this.$node&&dmx.dom.replace(this.$placeholder,this.$node)},$addBinding:function(t,e){this.bindings[t]=this.bindings[t]||{value:null,callbacks:[]},this.bindings[t].callbacks.push(e),e.call(this,this.bindings[t].value)},$destroy:function(){this.dispatchEvent("destroy"),this.beforeDestroy(),this.$destroyChildren(),this.parent&&this.parent.del(this.name),this.$node&&dmx.dom.remove(this.$node),this.destroyed()},$destroyChildren:function(){this.children.forEach(function(t){t.$destroy()}),this.children=[]},get:function(t,e){return this.data.hasOwnProperty(t)?this.data[t]:this.parent&&!0!==e?"parent"==t?this.parent.data:this.parent.get(t):null},add:function(t,e){this.data[t]?Array.isArray(this.data[t])?this.data[t].push(e):this.data[t]=[this.data[t],e]:this.set(t,e),dmx.requestUpdate()},set:function(t,e){if("object"!=typeof t)JSON.stringify(this.data[t])!==JSON.stringify(e)&&(this.data[t]=e,dmx.requestUpdate());else for(var n in t)this.set(n,t[n])},del:function(t){delete this.data[t],dmx.requestUpdate()}}),function(){dmx.pathToRegexp=s,dmx.pathToRegexp.parse=i,dmx.pathToRegexp.compile=function(t,e){return n(i(t,e))},dmx.pathToRegexp.tokensToFunction=n,dmx.pathToRegexp.tokensToRegExp=r;var k="/",A=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function i(t,e){for(var n,i=[],r=0,s=0,a="",o=e&&e.delimiter||k,d=e&&e.whitelist||void 0,u=!1;null!==(n=A.exec(t));){var h=n[0],l=n[1],c=n.index;if(a+=t.slice(s,c),s=c+h.length,l)a+=l[1],u=!0;else{var p="",f=n[2],m=n[3],v=n[4],x=n[5];if(!u&&a.length){var g=a.length-1,y=a[g];(!d||-1<d.indexOf(y))&&(p=y,a=a.slice(0,g))}a&&(i.push(a),a="",u=!1);var b="+"===x||"*"===x,E="?"===x||"*"===x,$=m||v,C=p||o;i.push({name:f||r++,prefix:p,delimiter:C,optional:E,repeat:b,pattern:$?O($):"[^"+w(C===o?C:C+o)+"]+?"})}}return(a||s<t.length)&&i.push(a+t.substr(s)),i}function n(u){for(var h=new Array(u.length),t=0;t<u.length;t++)"object"==typeof u[t]&&(h[t]=new RegExp("^(?:"+u[t].pattern+")$"));return function(t,e){for(var n="",i=e&&e.encode||encodeURIComponent,r=0;r<u.length;r++){var s=u[r];if("string"!=typeof s){var a,o=t?t[s.name]:void 0;if(Array.isArray(o)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but got array');if(0===o.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var d=0;d<o.length;d++){if(a=i(o[d],s),!h[r].test(a))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'"');n+=(0===d?s.prefix:s.delimiter)+a}}else if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o){if(!s.optional)throw new TypeError('Expected "'+s.name+'" to be '+(s.repeat?"an array":"a string"))}else{if(a=i(String(o),s),!h[r].test(a))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but got "'+a+'"');n+=s.prefix+a}}else n+=s}return n}}function w(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function O(t){return t.replace(/([=!:$/()])/g,"\\$1")}function f(t){return t&&t.sensitive?"":"i"}function r(t,e,n){for(var i=(n=n||{}).strict,r=!1!==n.start,s=!1!==n.end,a=n.delimiter||k,o=[].concat(n.endsWith||[]).map(w).concat("$").join("|"),d=r?"^":"",u=0;u<t.length;u++){var h=t[u];if("string"==typeof h)d+=w(h);else{var l=h.repeat?"(?:"+h.pattern+")(?:"+w(h.delimiter)+"(?:"+h.pattern+"))*":h.pattern;e&&e.push(h),h.optional?h.prefix?d+="(?:"+w(h.prefix)+"("+l+"))?":d+="("+l+")?":d+=w(h.prefix)+"("+l+")"}}if(s)i||(d+="(?:"+w(a)+")?"),d+="$"===o?"$":"(?="+o+")";else{var c=t[t.length-1],p="string"==typeof c?c[c.length-1]===a:void 0===c;i||(d+="(?:"+w(a)+"(?="+o+"))?"),p||(d+="(?="+w(a)+"|"+o+")")}return new RegExp(d,f(n))}function s(t,e,n){return t instanceof RegExp?function(t,e){if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return t}(t,e):Array.isArray(t)?function(t,e,n){for(var i=[],r=0;r<t.length;r++)i.push(s(t[r],e,n).source);return new RegExp("(?:"+i.join("|")+")",f(n))}(t,e,n):function(t,e,n){return r(i(t,n),e,n)}(t,e,n)}}(),dmx.Component("app",{constructor:function(t,e){this.onload=this.onload.bind(this),dmx.BaseComponent.call(this,t,e)},initialData:{query:{}},attributes:{},methods:{},events:{ready:Event,load:Event},render:function(t){this.parseQuery(),this.$parse(),window.removeEventListener("load",this.onload),window.addEventListener("load",this.onload),dmx.nextTick(function(){this.dispatchEvent("ready")},this)},update:function(){this.parseQuery()},onload:function(){this.dispatchEvent("load")},parseQuery:function(){var t="";window.location.search?t=window.location.search.substr(1):window.location.hash.indexOf("?")&&0<(t=window.location.hash.substr(window.location.hash.indexOf("?")+1)).indexOf("#")&&(t=t.substr(0,t.indexOf("#")));var n=t.split("&").reduce(function(t,e){var n=e.replace(/\+/g," ").split("=");return n[0]&&(t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")),t},{}),e=document.querySelector('meta[name="ac:base"]'),i=document.querySelector('meta[name="ac:route"]');if(i&&i.content){var r=[],s=i.content;e&&e.content&&(s=e.content.replace(/\/$/,"")+s);var a=dmx.pathToRegexp(s,r).exec(decodeURI(window.location.pathname));a&&r.forEach(function(t,e){n[t.name]=a[e+1]})}this.set("query",n)}}),dmx.Component("form",{tag:"form",attributes:{novalidate:{type:Boolean,default:!1}},methods:{submit:function(){this.submit()},reset:function(){this.reset()},validate:function(){this.validate()}},events:{invalid:Event,submit:Event},render:function(t){dmx.BaseComponent.prototype.render.call(this,t),this.$node.noValidate=!0,this.$node.addEventListener("submit",this.onsubmit.bind(this)),this.$node.addEventListener("reset",this.onreset.bind(this))},submit:function(t){if(this.props.novalidate||this.validate())this.dispatchEvent("submit",{cancelable:!0})&&this._submit();else{dmx.requestUpdate(),this.dispatchEvent("invalid");var e=dmx.array(this.$node.elements).find(function(t){if(!t.validity.valid)return!0});e&&e.focus()}},_submit:function(){HTMLFormElement.prototype.submit.call(this.$node)},reset:function(){HTMLFormElement.prototype.reset.call(this.$node)},validate:function(){return dmx.validate(this.$node)},onsubmit:function(t){t.preventDefault(),this.submit()},onreset:function(t){dmx.validateReset(this.$node),dmx.requestUpdate()}}),dmx.Component("form-element",{constructor:function(t,e){this.updateData=dmx.debounce(this.updateData.bind(this)),dmx.BaseComponent.call(this,t,e)},initialData:{value:"",disabled:!1,validationMessage:"",invalid:!1},attributes:{value:{type:String,default:""},disabled:{type:Boolean,default:!1}},methods:{setValue:function(t){this.setValue(t)},focus:function(){this.focus()},disable:function(t){this.disable(t)},validate:function(){this.validate()}},events:{updated:Event,changed:Event},render:function(t){dmx.BaseComponent.prototype.render.call(this,t),this.$node.value=this.props.value,this.$node.disabled=this.props.disabled,this.$node.defaultValue=this.props.value,this.$node.addEventListener("input",this.updateData.bind(this)),this.$node.addEventListener("change",this.updateData.bind(this)),this.$node.addEventListener("invalid",this.updateData.bind(this)),this.set("value",this.props.value),this.set("disabled",this.props.disabled)},update:function(t){JSON.stringify(t.value)!==JSON.stringify(this.props.value)&&(this.$node.defaultValue=this.props.value,this.setValue(this.props.value)),t.disabled!=this.props.disabled&&(this.$node.disabled=this.props.disabled),this.updateData()},updateData:function(t){t&&dmx.validate(this.$node),this.$node.value!==this.data.value&&dmx.nextTick(function(){this.dispatchEvent("updated"),t&&this.dispatchEvent("changed")},this),this.set("value",this.$node.value),this.set("disabled",this.$node.disabled),this.$node.dirty&&(this.set("invalid",!this.$node.validity.valid),this.set("validationMessage",this.$node.validationMessage))},setValue:function(t){this.$node.value=t,this.updateData()},focus:function(){this.$node.focus()},disable:function(t){this.$node.disabled=!0===t,this.updateData()},validate:function(){dmx.validate(this.$node),this.updateData()}}),dmx.Component("textarea",{extends:"form-element",tag:"textarea",render:function(t){if(!this.props.value){var e=this.$node.value;-1!==e.indexOf("{{")?this.props.value=dmx.parse(e,this):this.props.value=e}dmx.Component("form-element").prototype.render.call(this,t)}}),dmx.Component("input",{extends:"form-element",tag:"input"}),dmx.Component("input-file",{extends:"input",initialData:{file:null},render:function(t){dmx.Component("form-element").prototype.render.call(this,t),this.$node.addEventListener("change",this.onchange.bind(this))},onchange:function(){var e=null;if(this.$node.files.length){var t=this.$node.files[0];e={date:(t.lastModified?new Date(t.lastModified):t.lastModifiedDate).toISOString(),name:t.name,size:t.size,type:t.type,dataUrl:null},-1===t.type.indexOf("image/")||t.reader||(t.reader=new FileReader,t.reader.onload=function(t){e.dataUrl=t.target.result,dmx.requestUpdate()},t.reader.readAsDataURL(t))}this.set("file",e)},setValue:function(){console.warn("Can not set value of a file input!")}}),dmx.Component("input-file-multiple",{extends:"input",initialData:{files:[]},render:function(t){dmx.Component("form-element").prototype.render.call(this,t),this.$node.addEventListener("change",this.onchange.bind(this))},onchange:function(){var t=Array.prototype.slice.call(this.$node.files).map(function(t){var e={date:(t.lastModified?new Date(t.lastModified):t.lastModifiedDate).toISOString(),name:t.name,size:t.size,type:t.type,dataUrl:null};return-1===t.type.indexOf("image/")||t.reader||(t.reader=new FileReader,t.reader.onload=function(t){e.dataUrl=t.target.result,dmx.requestUpdate()},t.reader.readAsDataURL(t)),e});this.set("files",t)},setValue:function(){console.warn("Can not set value of a file input!")}}),dmx.Component("input-number",{extends:"input",render:function(t){dmx.Component("form-element").prototype.render.call(this,t),this.set("value",+this.props.value)},updateData:function(t){t&&dmx.validate(this.$node),this.$node.value!==this.data.value&&dmx.nextTick(function(){this.dispatchEvent("updated"),t&&this.dispatchEvent("changed")},this),this.set("value",this.$node.value?+this.$node.value:null),this.set("disabled",this.$node.disabled),this.$node.dirty&&(this.set("invalid",!this.$node.validity.valid),this.set("validationMessage",this.$node.validationMessage))}}),dmx.Component("button",{extends:"form-element",tag:"button",attributes:{type:{type:String,default:"button",validate:function(t){return/^(button|submit|reset)$/i.test(t)}}},render:function(t){dmx.Component("form-element").prototype.render.call(this,t),this.$node.type=this.props.type,"INPUT"===t.tagName&&(this.$node.innerText=this.props.value)}}),dmx.Component("radio",{extends:"form-element",initialData:{checked:!1},tag:"input",attributes:{checked:{type:Boolean,default:!1}},methods:{select:function(t){this.select(t)}},render:function(t){dmx.Component("form-element").prototype.render.call(this,t),this.$node.addEventListener("click",this.updateData.bind(this)),this.$node.type="radio",this.$node.checked=this.props.checked,this.set("checked",this.props.checked)},update:function(t){dmx.Component("form-element").prototype.update.call(this,t),t.checked!==this.props.checked&&(this.$node.checked=this.props.checked),this.updateData()},updateData:function(t){dmx.Component("form-element").prototype.updateData.call(this,t),this.data.checked!=this.$node.checked&&dmx.nextTick(function(){this.dispatchEvent("updated")},this),this.set("checked",this.$node.checked)},select:function(t){this.$node.checked=!1!==t}}),dmx.Component("radio-group",{initialData:{value:""},tag:"div",attributes:{value:{type:String,default:""}},methods:{setValue:function(t){this.setValue(t)}},events:{updated:Event},render:function(t){dmx.BaseComponent.prototype.render.call(this,t),this.setValue(this.props.value)},update:function(t){dmx.BaseComponent.prototype.update.call(this,t),t.value!=this.props.value&&(this.updateValue=!0,dmx.nextTick(function(){this.dispatchEvent("updated")},this))},updated:function(){this.updateValue&&(this.updateValue=!1,this.setValue(this.props.value,!0));var t=Array.prototype.slice.call(this.$node.querySelectorAll("input[type=radio]")).filter(function(t){return!t.disabled&&t.checked}).map(function(t){return t.value||1});JSON.stringify(this.data.value)!=JSON.stringify(t[0])&&(this.set("value",t[0]),dmx.nextTick(function(){this.dispatchEvent("updated")},this))},setValue:function(e,n){Array.prototype.slice.call(this.$node.querySelectorAll("input[type=radio]")).forEach(function(t){t.checked=t.value==e,n&&(t.defaultChecked=t.checked)})}}),dmx.Component("checkbox",{extends:"form-element",initialData:{checked:!1},tag:"input",attributes:{checked:{type:Boolean,default:!1}},methods:{select:function(t){this.select(t)}},render:function(t){dmx.Component("form-element").prototype.render.call(this,t),this.$node.addEventListener("click",this.updateData.bind(this)),this.$node.type="checkbox",this.$node.checked=this.props.checked,this.set("checked",this.props.checked)},update:function(t){dmx.Component("form-element").prototype.update.call(this,t),t.checked!==this.props.checked&&(this.$node.checked=this.props.checked),this.updateData()},updateData:function(t){dmx.Component("form-element").prototype.updateData.call(this,t),this.data.checked!=this.$node.checked&&dmx.nextTick(function(){this.dispatchEvent("updated")},this),this.set("checked",this.$node.checked)},select:function(t){this.$node.checked=!1!==t}}),dmx.Component("checkbox-group",{initialData:{value:[]},tag:"div",attributes:{value:{type:Array,default:[]}},methods:{setValue:function(t){this.setValue(t)}},events:{updated:Event},render:function(t){dmx.BaseComponent.prototype.render.call(this,t),this.setValue(this.props.value)},update:function(t){dmx.BaseComponent.prototype.update.call(this,t),JSON.stringify(t.value)!=JSON.stringify(this.props.value)&&(this.updateValue=!0)},updated:function(){this.updateValue&&(this.updateValue=!1,this.setValue(this.props.value));var t=Array.prototype.slice.call(this.$node.querySelectorAll("input[type=checkbox]")).filter(function(t){return!t.disabled&&t.checked}).map(function(t){return t.value||1});JSON.stringify(this.data.value)!=JSON.stringify(t)&&(this.set("value",t),dmx.nextTick(function(){this.dispatchEvent("updated")},this))},setValue:function(e,n){Array.isArray(e)||(e=[e]),Array.prototype.slice.call(this.$node.querySelectorAll("input[type=checkbox]")).forEach(function(t){t.checked=-1<e.indexOf(t.value),n&&(t.defaultChecked=t.checked)})}}),dmx.Component("select",{extends:"form-element",initialData:{selectedIndex:-1},tag:"select",attributes:{options:{type:Array,default:[]},optionText:{type:String,default:"$value"},optionValue:{type:String,default:"$value"}},methods:{setSelectedIndex:function(t){this.$node.selectedIndex=t,this.updateData()}},render:function(t){this.options=[],this.props.value?this.updateValue=!0:this.props.value=this.$node.value,dmx.BaseComponent.prototype.render.call(this,t),this.$node.disabled=this.props.disabled,this.$node.addEventListener("change",this.updateData.bind(this)),this.$node.addEventListener("invalid",this.updateData.bind(this)),this.renderOptions()},update:function(t){JSON.stringify(t.options)!==JSON.stringify(this.props.options)&&(this.renderOptions(),this.updateValue=!0),JSON.stringify(t.value)!==JSON.stringify(this.props.value)&&(this.updateValue=!0),t.disabled!=this.props.disabled&&(this.$node.disabled=this.props.disabled),this.updateData()},updated:function(){this.updateValue&&(this.updateValue=!1,this.setValue(this.props.value,!0),this.updateData())},updateData:function(t){dmx.Component("form-element").prototype.updateData.call(this,t),this.set("selectedIndex",this.$node.selectedIndex)},setValue:function(e,n){dmx.array(this.$node.options).forEach(function(t){t.selected=t.value===e,n&&(t.defaultSelected=t.selected)})},renderOptions:function(){this.options.splice(0).forEach(function(t){dmx.dom.remove(t)}),Array.isArray(this.props.options)&&this.props.options.forEach(function(t){"object"!=typeof t&&(t={$value:t});var e=document.createElement("option");e.value=dmx.parse(this.props.optionValue,dmx.DataScope(t)),e.innerText=dmx.parse(this.props.optionText,dmx.DataScope(t)),this.options.push(this.$node.appendChild(e))},this)}}),dmx.Component("select-multiple",{extends:"select",initialData:{value:[]},attributes:{value:{type:Array,default:[]}},methods:{setSelectedIndex:function(t){this.$node.selectedIndex=t,this.updateData()}},update:function(t){JSON.stringify(t.options)!==JSON.stringify(this.props.options)&&(this.renderOptions(),this.updateValue=!0),JSON.stringify(t.value)!==JSON.stringify(this.props.value)&&(this.updateValue=!0),this.updateData()},updateData:function(t){var e=Array.prototype.slice.call(this.$node.options).filter(function(t){return t.selected}).map(function(t){return t.value});JSON.stringify(e)!==JSON.stringify(this.data.value)&&dmx.nextTick(function(){this.dispatchEvent("updated"),t&&this.dispatchEvent("changed")},this),this.set("value",e),this.set("disabled",this.$node.disabled),this.set("invalid",!this.$node.validity.valid),this.set("validationMessage",this.$node.validationMessage),this.set("selectedIndex",this.$node.selectedIndex)},setValue:function(e,n){Array.isArray(e)||(e=[e]),e=e.map(function(t){return t.toString()}),dmx.array(this.$node.options).forEach(function(t){t.selected=-1<e.indexOf(t.value),n&&(t.defaultSelected=t.selected)})}}),dmx.Component("value",{initialData:{value:null},attributes:{value:{default:null}},methods:{setValue:function(t){this.data.value!==t&&(this.set("value",t),dmx.nextTick(function(){this.dispatchEvent("updated")},this))}},events:{updated:Event},render:function(){this.set("value",this.props.value)},update:function(t){t.value!==this.props.value&&(this.set("value",this.props.value),dmx.nextTick(function(){this.dispatchEvent("updated")},this))}}),dmx.Component("repeat",{initialData:{items:[]},attributes:{repeat:{type:[Array,Object,Number],default:[]},key:{type:String,default:""}},events:{update:Event,updated:Event},render:function(t){for(this.prevItems=[],this.childKeys={},this.$template=document.createDocumentFragment();this.$node.hasChildNodes();)this.$template.appendChild(this.$node.firstChild);this.update({repeat:[]})},update:function(t){if(JSON.stringify(t.repeat)!=JSON.stringify(this.props.repeat)){this.dispatchEvent("update"),t.key!==this.props.key&&this._clear();var e=dmx.Component("repeat-item"),n=this.props.repeat,i=dmx.repeatItems(n);if(i.length){if(this.props.key&&i[0].hasOwnProperty(this.props.key)&&this.prevItems.length){var r,s,a=this.props.key,o=this.prevItems,d=this._clone(i),u=0,h=0,l=o.length-1,c=d.length-1;t:for(;;){for(;o[u][a]===d[h][a];)if(this.childKeys[d[h][a]].set(d[h]),h++,l<++u||c<h)break t;for(;o[l][a]===d[c][a];)if(this.childKeys[d[c][a]].set(d[c]),c--,--l<u||c<h)break t;if(o[l][a]!==d[h][a]){if(o[u][a]!==d[c][a])break;if(s=c+1,this.childKeys[d[c][a]].set(d[c]),this._moveChild(d[c][a],d[s]&&d[s][a]),c--,l<++u||c<h)break}else if(this.childKeys[d[h][a]].set(d[h]),this._moveChild(d[h][a],o[u][a]),h++,--l<u||c<h)break}if(l<u)for(s=c+1;h<=c;)this._insertChild(d[h++],d[s]&&d[s][a]);else if(c<h)for(;u<=l;)this._removeChild(o[u++][a]);else{var p=l-u+1,f=c-h+1,m=o,v=new Array(f).fill(-1),x=!1,g=0,y=0;if(f<=4||p*f<=16){for(C=u;C<=l;C++)if(y<f)for(r=h;r<=c;r++)if(o[C][a]===d[r][a]){v[r-h]=C,r<g?x=!0:g=r,this.childKeys[d[r][a]].set(d[r]),y++,m[C]=null;break}}else{var b={};for(C=h;C<=c;C++)b[d[C][a]]=C;for(C=u;C<=l;C++)y<f&&void 0!==(r=b[o[C][a]])&&(v[r-h]=C,r<g?x=!0:g=r,this.childKeys[d[r][a]].set(d[r]),y++,m[C]=null)}if(p===o.length&&0===y)for(this._clear();h<f;)this._insertChild(d[h++],null);else{for(C=p-y;0<C;)null!==m[u]&&(this._removeChild(o[u][a]),C--),u++;if(x){var E=this._lis(v);for(r=E.length-1,C=f-1;0<=C;C--)-1===v[C]?(s=(g=C+h)+1,this._insertChild(d[g],d[s]&&d[s][a])):r<0||C!==E[r]?(s=(g=C+h)+1,this._moveChild(d[g][a],d[s]&&d[s][a])):r--}else if(y!==f)for(C=f-1;0<=C;C--)-1===v[C]&&(s=(g=C+h)+1,this._insertChild(d[g],d[s]&&d[s][a]))}}}else if(this.children.length>i.length&&this.children.splice(i.length).forEach(function(t){t.$destroy()}),this.children.length&&this.children.forEach(function(t,e){t.set(i[e])}),i.length>this.children.length){for(var $=document.createDocumentFragment(),C=this.children.length;C<i.length;C++){var k=new e(this.$template.cloneNode(!0),this,i[C]);k.$nodes.forEach(function(t){$.appendChild(t),k.$parse(t)}),this.children.push(k)}this.$node.appendChild($)}}else this._clear();this.props.key&&(this.prevItems=this._clone(i),this.children.forEach(function(t){this.childKeys[t.data[this.props.key]]=t},this)),this.set("items",i),dmx.nextTick(function(){this.dispatchEvent("updated")},this)}},_lis:function(t){var e,n,i=t.slice(0),r=[];r.push(0);for(var s=0,a=t.length;s<a;s++)if(-1!==t[s]){var o=r[r.length-1];if(t[o]<t[s])i[s]=o,r.push(s);else{for(e=0,n=r.length-1;e<n;){var d=(e+n)/2|0;t[r[d]]<t[s]?e=1+d:n=d}t[s]<t[r[e]]&&(0<e&&(i[s]=r[e-1]),r[e]=s)}}for(n=r[(e=r.length)-1];0<e--;)n=i[r[e]=n];return r},_clear:function(){this.childKeys={},this.children.splice(0).forEach(function(t){t.$destroy()})},_insertChild:function(t,e){var n=new(dmx.Component("repeat-item"))(this.$template.cloneNode(!0),this,t);n.$nodes.forEach(function(t){e?this.childKeys[e]?this.$node.insertBefore(t,this.childKeys[e].$nodes[0]):console.warn("(insert) can not insert node before key "+e+"!"):this.$node.appendChild(t),n.$parse(t)},this),this.childKeys[t[this.props.key]]=n,this.children.push(n)},_moveChild:function(t,e){var n=this.childKeys[t];n?this.childKeys[e]?n.$nodes.forEach(function(t){this.$node.insertBefore(t,this.childKeys[e].$nodes[0])},this):n.$nodes.forEach(function(t){this.$node.appendChild(t)},this):console.warn("(move) child with key "+t+" not found!")},_removeChild:function(t){var e=this.childKeys[t];e?(e.$destroy(),this.children.splice(this.children.indexOf(e),1),delete this.childKeys[t]):console.warn("(remove) child with key "+t+" not found!")},_clone:function(t){return JSON.parse(JSON.stringify(t))}}),dmx.Component("repeat-item",{constructor:function(t,e,n,i){this.parent=e,this.bindings={},this.propBindings={},this.children=[],this.listeners=[],this.props={},this.data=n||{},this.seed=e.seed,this.name=i||"repeat",this.$nodes=[];for(var r=0;r<t.childNodes.length;r++)this.$nodes.push(t.childNodes[r])},$destroy:function(){this.dispatchEvent("destroy");for(var t=0;t<this.$nodes.length;t++){var e=document.createEvent("Event");e.initEvent("remove",!1,!0),this.$nodes[t].dispatchEvent(e)&&dmx.dom.remove(this.$nodes[t])}}}),dmx.Component("fetch",{constructor:function(t,e){this.fetch=dmx.debounce(this.fetch.bind(this)),dmx.BaseComponent.call(this,t,e)},initialData:{status:0,data:null,links:{},paging:{},headers:{},state:{executing:!1,uploading:!1,processing:!1,downloading:!1},uploadProgress:{position:0,total:0,percent:0},downloadProgress:{position:0,total:0,percent:0},lastError:{status:0,message:"",response:null}},attributes:{timeout:{type:Number,default:0},method:{type:String,default:"GET"},url:{type:String,default:""},params:{type:Object,default:{}},headers:{type:Object,default:{}},data:{type:Object,default:{}},"data-type":{type:String,default:"auto"},noload:{type:Boolean,default:!1},cache:{type:String,default:""},ttl:{type:Number,default:86400}},methods:{abort:function(){this.abort()},load:function(t,e){var n={};t&&(n.params=t),e&&(n.ttl=0),this.fetch(n)}},events:{start:Event,done:Event,error:Event,invalid:Event,unauthorized:Event,forbidden:Event,abort:Event,success:Event,upload:ProgressEvent,download:ProgressEvent},$parseAttributes:function(t){dmx.BaseComponent.prototype.$parseAttributes.call(this,t),dmx.dom.getAttributes(t).forEach(function(e){"param"==e.name&&e.argument&&this.$addBinding(e.value,function(t){this.props.params[e.argument]=t}),"header"==e.name&&e.argument&&this.$addBinding(e.value,function(t){this.props.headers[e.argument]=t}),"data"==e.name&&e.argument&&this.$addBinding(e.value,function(t){this.props.data[e.argument]=t})},this)},render:function(t){this.xhr=new XMLHttpRequest,this.xhr.addEventListener("load",this.onload.bind(this)),this.xhr.addEventListener("abort",this.onabort.bind(this)),this.xhr.addEventListener("error",this.onerror.bind(this)),this.xhr.addEventListener("timeout",this.ontimeout.bind(this)),this.xhr.addEventListener("progress",this.onprogress("download").bind(this)),this.xhr.upload&&this.xhr.upload.addEventListener("progress",this.onprogress("upload").bind(this)),this.update({})},update:function(t){!this.props.noload&&this.props.url&&(t.url===this.props.url&&JSON.stringify(t.params)===JSON.stringify(this.props.params)||this.fetch())},abort:function(){this.xhr.abort()},fetch:function(e){this.xhr.abort(),e=dmx.extend(!0,this.props,e||{}),this._reset(),this.dispatchEvent("start");var t=(-1<e.url.indexOf("?")?"&":"?")+Object.keys(e.params).filter(function(t){return null!=e.params[t]},this).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e.params[t])},this).join("&");if(this._url=e.url+t,this.props.cache){var n=dmx.parse(this.props.cache+'.data["'+this._url+'"]',this);if(n){if(!(Date.now()-n.created>=1e3*e.ttl))return this.set("headers",n.headers||{}),this.set("paging",n.paging||{}),this.set("links",n.links||{}),this.set("data",n.data),this.dispatchEvent("success"),void this.dispatchEvent("done");dmx.parse(this.props.cache+'.remove("'+this._url+'")',this)}}this.set("state",{executing:!0,uploading:!1,processing:!1,downloading:!1});var i=null;"GET"!=this.props.method.toUpperCase()&&("text"==this.props["data-type"]?(e.headers["Content-Type"]||(e.headers["Content-Type"]="application/text"),i=this.props.data.toString()):"json"==this.props["data-type"]?(e.headers["Content-Type"]||(e.headers["Content-Type"]="application/json"),i=JSON.stringify(this.props.data)):"POST"==this.props.method.toUpperCase()?(i=new FormData,Object.keys(this.props.data).forEach(function(e){var t=this.props.data[e];Array.isArray(t)?(/\[\]$/.test(e)||(e+="[]"),t.forEach(function(t){i.append(e,t)},this)):i.set(e,t)},this)):(e.headers["Content-Type"]||(e.headers["Content-Type"]="application/text"),i=this.props.data.toString())),this.xhr.open(this.props.method.toUpperCase(),this._url),this.xhr.timeout=1e3*e.timeout,Object.keys(e.headers).forEach(function(t){this.xhr.setRequestHeader(t,e.headers[t])},this);try{this.xhr.send(i)}catch(t){this._done(t)}},_reset:function(){this.set({status:0,links:{},headers:{},state:{executing:!1,uploading:!1,processing:!1,downloading:!1},uploadProgress:{position:0,total:0,percent:0},downloadProgress:{position:0,total:0,percent:0},lastError:{status:0,message:"",response:null}})},_done:function(t){if(this._reset(),t)this.set("lastError",{status:0,message:t.message,response:null}),this.dispatchEvent("error");else{var e=this.xhr.responseText;try{e=JSON.parse(e)}catch(t){if(this.xhr.status<400)return this.set("lastError",{status:0,message:"Response was not valid JSON",response:e}),void this.dispatchEvent("error")}try{var n=this.xhr.getAllResponseHeaders().trim().split(/[\r\n]+/);this.set("headers",n.reduce(function(t,e){var n=e.split(": "),i=n.shift(),r=n.join(": ");return t[i]=r,t},{}))}catch(t){console.warn("Error parsing response headers",t)}try{var i=Object.keys(this.data.headers).find(function(t){return"link"==t.toLowerCase()});i&&this.set("links",this.data.headers[i].split(/,\s*</).map(function(t){try{var e=t.match(/<?([^>]*)>(.*)/),n=e[1],i=e[2].split(";"),r=n.substr(n.indexOf("?")+1);0<r.indexOf("#")&&(r=r.substr(0,r.indexOf("#")));var s=r.split("&").reduce(function(t,e){var n=e.split("=");return n[0]&&(t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")),t},{});i.shift();var a=i.reduce(function(t,e){var n=e.match(/\s*(.+)\s*=\s*"?([^"]+)"?/);return n&&(t[n[1]]=n[2]),t},{});return(a=Object.assign({},s,a)).url=n,a}catch(t){return console.warn("Error parsing link header part",t),null}}).filter(function(t){return t&&t.rel}).reduce(function(e,n){return n.rel.split(/\s+/).forEach(function(t){e[t]=Object.assign(n,{rel:t})}),e},{}))}catch(t){console.warn("Error parsing link header",t)}try{var r={page:1,pages:1,items:0,has:{first:!1,prev:!1,next:!1,last:!1}};if(this.data.links.prev||this.data.links.next){this.data.links.last&&this.data.links.last.page?r.pages=+this.data.links.last.page:this.data.links.prev&&this.data.prev.page&&(r.pages=+this.data.links.prev.page+1);var s=Object.keys(this.data.headers).find(function(t){return"x-total"==(t=t.toLowerCase())||"x-count"==t||"x-total-count"==t});s&&(r.items=+this.data.headers[s]),this.data.links.prev&&this.data.links.prev.page?r.page=+this.data.links.prev.page+1:this.data.links.next&&this.data.links.next.page&&(r.page=+this.data.links.next.page-1),r.has={first:!!this.data.links.first,prev:!!this.data.links.prev,next:!!this.data.links.next,last:!!this.data.links.last}}this.set("paging",r)}catch(t){console.warn("Error parsing paging",t)}this.set("status",this.xhr.status),this.xhr.status<400?(this.set("data",e),this.dispatchEvent("success"),this.props.cache&&dmx.parse(this.props.cache+'.set("'+this._url+'", { headers: headers, paging: paging, links: links, data: data, created: '+Date.now()+" })",this)):(this.set("lastError",{status:this.xhr.status,message:this.xhr.statusText,response:e}),400==this.xhr.status?this.dispatchEvent("invalid"):401==this.xhr.status?this.dispatchEvent("unauthorized"):403==this.xhr.status?this.dispatchEvent("forbidden"):this.dispatchEvent("error"))}this.dispatchEvent("done")},onload:function(t){this._done()},onabort:function(t){this._reset(),this.dispatchEvent("abort"),this.dispatchEvent("done")},onerror:function(t){this._done({message:"Failed to execute"})},ontimeout:function(t){this._done({message:"Execution timeout"})},onprogress:function(n){return function(t){t.loaded=t.loaded||t.position;var e=t.lengthComputable?Math.ceil(t.loaded/t.total*100):0;this.set("state",{executing:!0,uploading:"upload"==n&&e<100,processing:"upload"==n&&100==e,downloading:"download"==n}),this.set(n+"Progress",{position:t.loaded,total:t.total,percent:e}),this.dispatchEvent(n,{lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total})}}}),dmx.Component("serverconnect",{extends:"fetch"}),dmx.Component("serverconnect-form",{extends:"form",initialData:{status:0,data:null,headers:{},state:{executing:!1,uploading:!1,processing:!1,downloading:!1},uploadProgress:{position:0,total:0,percent:0},downloadProgress:{position:0,total:0,percent:0},lastError:{status:0,message:"",response:null}},attributes:{timeout:{type:Number,default:0},autosubmit:{type:Boolean,default:!1},params:{type:Object,default:{}},headers:{type:Object,default:{}},"post-data":{type:String,default:"form"}},methods:{abort:function(){this.abort()}},events:{start:Event,done:Event,error:Event,unauthorized:Event,forbidden:Event,abort:Event,success:Event,upload:ProgressEvent,download:ProgressEvent},$parseAttributes:function(t){dmx.BaseComponent.prototype.$parseAttributes.call(this,t),dmx.dom.getAttributes(t).forEach(function(e){"param"==e.name&&e.argument&&this.$addBinding(e.value,function(t){this.props.params[e.argument]=t}),"header"==e.name&&e.argument&&this.$addBinding(e.value,function(t){this.props.headers[e.argument]=t})},this)},render:function(t){this.xhr=new XMLHttpRequest,this.xhr.addEventListener("load",this.onload.bind(this)),this.xhr.addEventListener("abort",this.onabort.bind(this)),this.xhr.addEventListener("error",this.onerror.bind(this)),this.xhr.addEventListener("timeout",this.ontimeout.bind(this)),this.xhr.addEventListener("progress",this.onprogress("download").bind(this)),this.xhr.upload&&this.xhr.upload.addEventListener("progress",this.onprogress("upload").bind(this)),t.dmxExtraData={},dmx.Component("form").prototype.render.call(this,t),this.props.autosubmit&&dmx.nextTick(function(){this.submit()},this)},abort:function(){this.xhr.abort()},_submit:function(n){this.xhr.abort();var t=this.$node.method.toUpperCase(),e=this.$node.action,i=null,r=Object.keys(this.props.params).filter(function(t){return null!=this.props.params[t]},this).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(this.props.params[t])},this).join("&");"GET"==t?(r+=dmx.array(this.$node.elements).filter(function(t){return!(n&&n[t.name])&&!t.disabled&&("radio"!==t.type&&"checkbox"!==t.type||t.checked)}).map(function(t){return encodeURIComponent(t.name)+"="+encodeURIComponent(t.value)}).join("&"),n&&Object.keys(n).forEach(function(e){Array.isArray(n[e])?n[e].forEach(function(t){r+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t)}):r+="&"+encodeURIComponent(e)+"="+encodeURIComponent(n[e])})):"json"==this.props["post-data"]?(i={},dmx.array(this.$node.elements).forEach(function(t){if(t.name&&!t.disabled)if("radio"==t.type.toLowerCase){var e=document.querySelector('input[name="'+t.name+'"]:checked');e&&(i[t.name]=e.value)}else if("checkbox"==t.type){var n=document.querySelectorAll('input[name="'+t.name+'"]');n.length&&(1==n.length?i[t.name]=n[0].checked:i[t.name]=dmx.array(n).filter(function(t){return t.checked}).map(function(t){return t.value}))}else"select-multiple"==t.type?i[t.name]=dmx.array(t.selectedOptions).map(function(t){return t.value}):"file"==t.type?t.files.length&&(t.multiple?i[t.name]=t.files.map(function(t){return t.name}):i[t.name]=t.files[0].name):i[t.name]=t.value}),n&&Object.assign(i,n),this.$node.dmxExtraData&&Object.assign(i,this.$node.dmxExtraData),this.props.headers["Content-Type"]="application/json",i=JSON.stringify(i)):(i=new FormData(this.$node),n&&Object.keys(n).forEach(function(e){Array.isArray(n[e])?(/\[\]$/.test(e)||(e+="[]"),value.forEach(function(t){i.append(e,t)},this)):i.set(e,n[e])},this),this.$node.dmxExtraData&&Object.keys(this.$node.dmxExtraData).forEach(function(e){var t=this.$node.dmxExtraData[e];Array.isArray(t)?(/\[\]$/.test(e)||(e+="[]"),t.forEach(function(t){i.append(e,t)},this)):i.set(e,t)},this)),this._reset(),this.dispatchEvent("start"),this.xhr.open(t,e+(r?(-1<e.indexOf("?")?"&":"?")+r:"")),this.xhr.timeout=1e3*this.props.timeout,Object.keys(this.props.headers).forEach(function(t){this.xhr.setRequestHeader(t,this.props.headers[t])},this);try{this.xhr.send(i)}catch(t){this._done(t)}},_reset:function(){this.set({status:0,headers:{},state:{executing:!1,uploading:!1,processing:!1,downloading:!1},uploadProgress:{position:0,total:0,percent:0},downloadProgress:{position:0,total:0,percent:0},lastError:{status:0,message:"",response:null}})},_done:function(t){if(this._reset(),t)this.set("lastError",{status:0,message:t.message,response:null}),this.dispatchEvent("error");else{var e=this.xhr.responseText;try{e=JSON.parse(e)}catch(t){if(this.xhr.status<400)return this.set("lastError",{status:0,message:"Response was not valid JSON",response:e}),void this.dispatchEvent("error")}try{var n=this.xhr.getAllResponseHeaders().trim().split(/[\r\n]+/);this.set("headers",n.reduce(function(t,e){var n=e.split(": "),i=n.shift(),r=n.join(": ");return t[i]=r,t},{}))}catch(t){console.warn("Error parsing response headers",t)}if(this.set("status",this.xhr.status),this.xhr.status<400)this.set("data",e),this.dispatchEvent("success");else if(this.set("lastError",{status:this.xhr.status,message:this.xhr.statusText,response:e}),400==this.xhr.status)if(this.dispatchEvent("invalid"),-1<this.$node.action.indexOf("dmxConnect/")&&e.form)for(var i in e.form){var r=document.querySelector('[name="'+i+'"]');r&&(r.setCustomValidity(e.form[i]),dmx.requestUpdate(),dmx.bootstrap3forms?dmx.validate.setBootstrapMessage(r,e.form[i]):dmx.validate.setErrorMessage(r,e.form[i]))}else console.warn("400 error, no form errors in response.",e);else 401==this.xhr.status?this.dispatchEvent("unauthorized"):403==this.xhr.status?this.dispatchEvent("forbidden"):this.dispatchEvent("error")}this.dispatchEvent("done")},onload:function(t){this._done()},onabort:function(t){this._reset(),this.dispatchEvent("abort"),this.dispatchEvent("done")},onerror:function(t){this._done({message:"Failed to execute"})},ontimeout:function(t){this._done({message:"Execution timeout"})},onprogress:function(n){return function(t){t.loaded=t.loaded||t.position;var e=t.lengthComputable?Math.ceil(t.loaded/t.total*100):0;this.set("state",{executing:!0,uploading:"upload"==n&&e<100,processing:"upload"==n&&100==e,downloading:"download"==n}),this.set(n+"Progress",{position:t.loaded,total:t.total,percent:e}),this.dispatchEvent(n,{lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total})}}}),dmx.Component("if",{attributes:{condition:{type:Boolean,default:!1}},render:function(t){for(this.nodes=[],this.template=document.createDocumentFragment();this.$node.firstChild;)this.template.appendChild(this.$node.firstChild);this.update({})},update:function(t){this.props.condition!=t.condition&&(this.props.condition?this._render():this._destroy())},_render:function(){var t=this.template.cloneNode(!0);this.nodes=Array.prototype.slice.call(t.childNodes),this.$node.appendChild(t),this.$parse()},_destroy:function(){this.bindings={},this.nodes.splice(0).forEach(function(t){var e=document.createEvent("Event");e.initEvent("remove",!1,!0),t.dispatchEvent(e)&&dmx.dom.remove(t)}),this.children.splice(0).forEach(function(t){t.$destroy()})}}),dmx.Component("datetime",{initialData:function(){return{datetime:this.datetime()}},attributes:{interval:{type:String,default:"seconds"},utc:{type:Boolean,default:!1}},render:function(){this.timer()},timer:function(){this.set("datetime",this.datetime()),requestAnimationFrame(this.timer.bind(this))},datetime:function(){var t,e,n,i,r,s,a=new Date,o=function(t,e){return("0000"+t).substr(-e)};s=this.props.utc?(t=a.getUTCFullYear(),e=a.getUTCMonth()+1,n=a.getUTCDate(),i=a.getUTCHours(),r=a.getUTCMinutes(),a.getUTCSeconds()):(t=a.getFullYear(),e=a.getMonth()+1,n=a.getDate(),i=a.getHours(),r=a.getMinutes(),a.getSeconds());var d=o(t,4)+"-"+o(e,2)+"-"+o(n,2),u=this.props.utc?"Z":"";switch(this.props.interval){case"days":return d+"T00:00:00"+u;case"hours":return d+"T"+o(i,2)+":00:00"+u;case"minutes":return d+"T"+o(i,2)+":"+o(r,2)+":00"+u}return d+"T"+o(i,2)+":"+o(r,2)+":"+o(s,2)+u}}),dmx.Component("api-action",{extends:"fetch"}),dmx.Component("api-form",{extends:"serverconnect-form"}),dmx.Component("array",{initialData:{items:[],count:0},attributes:{items:{type:Array,default:[]}},events:{updated:Event},methods:{add:function(t){this.splice(this.count(),0,t)},addUniq:function(t){-1==this.indexOf(t)&&this.splice(this.count(),0,t)},insert:function(t,e){this.splice(t,0,e)},insertBefore:function(t,e){var n=this.indexOf(t);-1!=n&&this.splice(n,0,e)},insertAfter:function(t,e){var n=this.indexOf(t);-1!=n&&this.splice(n+1,0,e)},replace:function(t,e){var n=this.indexOf(t);-1!=n&&this.splice(n,1,e)},replaceAt:function(t,e){this.splice(t,1,e)},remove:function(t){var e=this.indexOf(t);-1!=e&&this.splice(e,1)},removeAt:function(t){this.splice(t,1)},reverse:function(){this.reverse()},sort:function(){this.sort()},empty:function(){this.updateData([])}},render:function(){var t=dmx.array(this.props.items);this.set("items",t),this.set("count",t.length)},update:function(t){JSON.stringify(t.items)!=JSON.stringify(this.props.items)&&this.updateData(dmx.array(this.props.items))},count:function(){return this.data.items.length},indexOf:function(t){return this.data.items.indexOf(t)},splice:function(t,e,n){var i=dmx.clone(this.data.items);void 0!==n?i.splice(t,e,n):i.splice(t,e),this.updateData(i)},reverse:function(){var t=dmx.clone(this.data.items);t.reverse(),this.updateData(t)},sort:function(){var t=dmx.clone(this.data.items);t.sort(),this.updateData(t)},updateData:function(t){JSON.stringify(this.data.items)!=JSON.stringify(t)&&(this.set("items",t),this.set("count",t.length),dmx.nextTick(function(){this.dispatchEvent("updated")},this))}}),dmx.Attribute("bind","mounted",function(n,t){var i=t.argument,r=dmx.reToggleAttribute.test(i);this.$addBinding(t.value,function(t){if(r)t?n.setAttribute(i,""):n.removeAttribute(i);else{if("style"===i&&"object"==typeof t){for(var e in t)n.style[e]=t[e];return}null!=t?n.setAttribute(i,t):n.removeAttribute(i),"src"===i&&("VIDEO"===n.nodeName||"AUDIO"===n.nodeName?n.load():"SOURCE"===n.nodeName&&n.parentNode&&n.parentNode.load())}})}),dmx.Attribute("on","mounted",function(t,n){var i=this;dmx.eventListener(t,n.argument,function(t){t.originalEvent&&(t=t.originalEvent);var e=dmx.parse(n.value,dmx.DataScope({$event:t.$data,$originalEvent:t},i));if("string"==typeof e)try{e=new Function("event",e).call(this,t)}catch(t){console.warn('Error executing "'+e+'"',t)}return e},n.modifiers)}),dmx.Attribute("repeat","before",function(t,a){if(this.node!=t){var o=this,d=[],u=document.createDocumentFragment(),h=document.createComment("Repeat "+a.value);dmx.Component("repeat-item");t.parentNode.replaceChild(h,t),t.removeAttribute("dmx-repeat"),u.appendChild(t),this.add(a.argument||"repeat",[]),this.$addBinding(a.value,function(t){var e=dmx.Component("repeat-item"),n=dmx.repeatItems(t);if(a.modifiers.fast){if(d.length>n.length&&d.splice(n.length).forEach(function(t){o.children.splice(o.children.indexOf(t),1),t.$destroy()}),d.length&&d.forEach(function(t,e){t.set(n[e])}),n.length>d.length){for(i=document.createDocumentFragment(),r=d.length;r<n.length;r++){(s=new e(u.cloneNode(!0),o,n[r])).$nodes.forEach(function(t){i.appendChild(t),s.$parse(t)}),d.push(s),o.children.push(s)}h.parentNode.insertBefore(i,h)}}else{var i=document.createDocumentFragment();d.forEach(function(t){o.children.splice(o.children.indexOf(t),1),t.$destroy()}),d=[];for(var r=0;r<n.length;r++){var s;(s=new e(u.cloneNode(!0),o,n[r])).$nodes.forEach(function(t){i.appendChild(t),s.$parse(t)}),d.push(s),o.children.push(s)}h.parentNode.insertBefore(i,h)}})}}),dmx.Attribute("class","mounted",function(n,t){var i=t.argument;this.$addBinding(t.value,function(t,e){n.classList[t?"add":"remove"](i)})}),dmx.Attribute("hide","mounted",function(e,t){var n=e.style.display;this.$addBinding(t.value,function(t){e.style.display=t?"none":n})}),dmx.Attribute("show","mounted",function(e,t){var n=e.style.display;this.$addBinding(t.value,function(t){e.style.display=t?n:"none"})}),dmx.Attribute("html","mounted",function(e,t){this.$addBinding(t.value,function(t){null!=t&&(e.innerHTML=t)})}),dmx.Attribute("text","mounted",function(e,t){this.$addBinding(t.value,function(t){null!=t&&(e.innerText=t)})}),dmx.Attribute("style","mounted",function(e,t){var n=t.argument,i=t.modifiers.important?"important":"";this.$addBinding(t.value,function(t){null!=t&&e.style.setProperty(n,t,i)})}),dmx.Formatters("global",{json:function(t){return JSON.stringify(t)},log:function(t){return console.log(t),t}});
//# sourceMappingURL=maps/dmxAppConnect.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit