function _setup(t,i){this.$element=t;this.options=e.extend({},Interchange.defaults,this.$element.data(),i);this.rules=[];this.currentPath="";this.className="Interchange";k.init(e);this._init();this._events()}},{key:"_init",value:function _init(){i._init();var e=this.$element[0].id||GetYoDigits(6,"interchange");this.$element.attr({"data-resize":e,id:e});this._parseOptions();this._addBreakpoints();this._generateRules();this._reflow()}},{key:"_events",value:function _events(){var e=this;this.$element.off("resizeme.zf.trigger").on("resizeme.zf.trigger",(function(){return e._reflow()}))}},{key:"_reflow",value:function _reflow(){var e;for(var t in this.rules)if(this.rules.hasOwnProperty(t)){var i=this.rules[t];window.matchMedia(i.query).matches&&(e=i)}e&&this.replace(e.path)}},{key:"_parseOptions",value:function _parseOptions(){var e=["auto","src","background","html"];if("undefined"===typeof this.options.type)this.options.type="auto";else if(-1===e.indexOf(this.options.type)){console.warn('Warning: invalid value "'.concat(this.options.type,'" for Interchange option "type"'));this.options.type="auto"}}},{key:"_addBreakpoints",value:function _addBreakpoints(){for(var e in i.queries)if(i.queries.hasOwnProperty(e)){var t=i.queries[e];Interchange.SPECIAL_QUERIES[t.name]=t.value}}