!function(t,e,i,n){"use strict";t.fn.chained=function(e){return this.each(function(){function i(){var i=!0,a=t("option:selected",n).val();t(n).html(o.html());var c="";t(e).each(function(){var e=t("option:selected",this).val();e&&(c.length>0&&(c+="+"),c+=e)});var s;s=t.isArray(e)?t(e[0]).first():t(e).first();var h=t("option:selected",s).val();t("option",n).each(function(){if(""!==t(this).val()){var e=[],n=t(this).data("chained");n&&(e=n.split(" ")),e.indexOf(c)>-1||e.indexOf(h)>-1?t(this).val()===a&&(t(this).prop("selected",!0),i=!1):t(this).remove()}}),1===t("option",n).length&&""===t(n).val()?t(n).prop("disabled",!0):t(n).prop("disabled",!1),i&&t(n).trigger("change")}var n=this,o=t(n).clone();t(e).each(function(){t(this).bind("change",function(){i()}),t("option:selected",this).length||t("option",this).first().attr("selected","selected"),i()})})},t.fn.chainedTo=t.fn.chained,t.fn.chained.defaults={}}(window.jQuery||window.Zepto,window,document); //# sourceMappingURL=jquery.chained.min.js.map