(function(){"use strict";$.fn.actionAttribute=function(t){return $.fn.actionAttribute.parse(this.attr(t))};$.fn.actionAttribute.parse=function(t){if(!t||typeof t!="string"){return t}var r=null,i=t.indexOf(":");if(i>=0){var n=t.substr(i+1);var e=/^\s*{.*}\s*$/.test(n);if(e){r=JSON.parse(n)}else{r=n}t=t.substr(0,i)}return{name:t,options:r}};$.fn.serializeObject=function(){var t={};this.each(function(){var r=$(this).serializeArray();r.forEach(function(r){var i=r.name;var n=r.value;var e=i.split(".");var a,s=t;for(var f=0;f<e.length;f++){var u=e[f];var o=u.indexOf("[");if(o<0){continue}a=u.match(/.*\[([^\]]*)\]/);u=u.substr(0,o);e[f]=u;e.splice(f+1,0,a[1]);f++}for(f=0;f<e.length-1;f++){u=e[f];if(!(u in s)){s[u]=s=isNaN(e[f+1])?{}:[]}else{s=s[u]}}u=e[f];if(s[u]){if(!u8.tools.isArray(s[u])){s[u]=[s[u]]}s[u].push(n)}else{s[u]=n}});return t});return t}})();