/*! bindux v0.0.1-alpha.2 | MIT (c) 2014 Nicolas Tallefourtane - http://bindux.com */!function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function o(){i.call(this)}var r,i;i=n(11),o.prototype=Object.create(i.prototype,{constructor:{value:o}}),r=new o,r.opt={binder:{prefix:"n-"}},r.scopes={},r.ctrls={},r.binderAttr=function(t){return r.opt.binder.prefix+t},r.noConflict=function(){return delete window.ux,delete window.bindux,r},n(1)(r),n(2)(r),n(3)(r),n(4)(r),n(5)(r),n(6)(r),n(7)(r),n(8)(r),n(9)(r),n(10)(r),t.exports=window.ux=window.bindux=r},function(t){"use strict";t.exports=function(t){t.is={undef:function(t){return void 0===t},fn:function(t){return"function"==typeof t},obj:function(t){return t&&"object"==typeof t},array:function(t){return Array.isArray(t)},str:function(t){return"string"==typeof t},num:function(t){return"number"==typeof t},bool:function(t){return"boolean"==typeof t},query:function(e){return e instanceof t.Query&&this.num(e._uid)},desktop:function(){var t=navigator.userAgent.toLowerCase();return-1===t.indexOf("mobile")&&-1===t.indexOf("phone")&&"undefined"==typeof window.orientation},mobile:function(){var t=navigator.userAgent.toLowerCase();return"undefined"!=typeof window.orientation||-1!==t.indexOf("mobile")||-1!==t.indexOf("phone")},node:function(t){return this.obj(Node)?t instanceof Node:t&&this.obj(t)&&this.num(t.nodeType)&&0!==t.nodeType&&this.str(t.nodeName)},el:function(t){return this.obj(HTMLElement)?t instanceof HTMLElement:t&&this.obj(t)&&null!==t&&1===t.nodeType&&this.str(t.nodeName)},valid:function(t,e,n){if(this[t](e))return e;throw n=n||"The given value is not valid",new TypeError(n)}}}},function(t){"use strict";t.exports=function(t){t.color={names:{aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00"},toRgb:function(e,n){return e="0x"+this.toHex(e).substring(1),e=[e>>16&255,e>>8&255,255&e],t.is.undef(n)||e.push(n),"rgb("+e.join(",")+")"},toHex:function(e){var n,o,r,i;if(o=0,r=e?e.toString().toLowerCase():"",/^#[a-f0-9]{3,6}$/.test(r))return r.length<7&&(i=r.split(""),r=i[0]+i[1]+i[1]+i[2]+i[2]+i[3]+i[3]),r;if(/^[a-z]+$/.test(r))return this.names[r]||"";if(r=r.match(/\d+(\.\d+)?%?/g)||[],r.length<3)return"";for(r=r.slice(0,3);3>o;)n=-1!=r[o].indexOf("%")?Math.round(2.55*parseFloat(r[o])):parseInt(r[o]),0>n||n>255?r.length=0:r[o++]=t.util.padLeft(n.toString(16),2);return 3==r.length?"#"+r.join("").toLowerCase():""}}}},function(t){"use strict";t.exports=function(t){t.expr={parser:function(t){return this.parsers[t]},parsers:{pipe:function(e,n,o){var r,i,s;return s="",o&&o.filter&&(i=o.filter),-1!==e.indexOf("|")&&(s=e.split("|"),e=s.shift()),-1===e.indexOf(".")?t.filter(n[e],s,i):(r=e.split("."),t.filter(t.util.propPath(n,r),s,i))}},parse:function(e,n,o){void 0===e&&(e=""),void 0===o&&(o={});var r,i,s;if(r=o.only,i=o,r){if(t.is.str(r))return this.parsers[r](e,n,i);s=r.length;for(var u=0;s>u;u++)e=this.parsers[r[u]](e,n,i);return e}for(var a in this.parsers)e=this.parsers[a](e,n,i);return e}}}},function(t){"use strict";var e=-1,n=new WeakMap;t.exports=function(t){function o(t,e,n){return void 0===e&&(e=NodeFilter.SHOW_ALL),function(){var o,r,i;for(o=document.createTreeWalker(t,e,n),r=[];i=o.nextNode();)r.push(i);return r}()}function r(t){var e=document.createElement("script");e.text=t,document.head.appendChild(e).parentNode.removeChild(e)}function i(e){var n,o,r;return o=e.el.opt||{},e.ctx=e.ctx||{},e.obj.obj=e.obj.obj||{},n=t.is.undef,o.attributes=n(o.attributes)?!1:o.attributes,o.childList=n(o.childList)?!0:o.childList,o.characterData=n(o.characterData)?!1:o.characterData,Object.observe(e.obj.obj,function(t){return e.obj.observer(t,{el:e.el.el,elObs:r,ctx:e.ctx})}),r=new MutationObserver(function(t,n){return e.el.observer(t,n,{obj:e.obj.obj,ctx:e.ctx})}).observe(e.el,o)}var s=t.is,u=function(){var o=function(t,n){var o=this;return void 0===n&&(n=document),function(){e++,o.engine=window.Sizzle||function(t){return o.select(t).nodes},o.el=n,o.nodes,Object.defineProperty(o,"_uid",{enumerable:!0,configurable:!1,writable:!1,value:e}),t&&(s.node(t)?(o.el=t,o.nodes=[t]):o.find(t))}()};return o.prototype.selectOne=function(t){return this.nodes=[this.el.querySelector(t)],this},o.prototype.select=function(e){return this.nodes=t.util.toArray(this.el.querySelectorAll(e)),this},o.prototype.selectById=function(t){return this.nodes=[this.el.getElementById(t)],this},o.prototype.selectByClass=function(e){return this.nodes=t.util.toArray(this.el.getElementsByClassName(e)),this},o.prototype.selectByTag=function(e){return this.nodes=t.util.toArray(this.el.getElementsByTagName(e)),this},o.prototype.selectByName=function(e){return this.nodes=t.util.toArray(this.el.getElementsByName(e)),this},o.prototype.findOne=function(t){return this.find(t),this.nodes=this.nodes.length>1?this.nodes[0]:[],this},o.prototype.find=function(t){return this.nodes=this.engine(t,this.el),this},o.prototype.get=function(t){return void 0===t&&(t=0),this.nodes[t]},o.prototype.resolve=function(t,e){void 0===e&&(e=1);for(var n,o=[],r=this.nodes.length,i=0;r>i;i++)for(n=this.nodes[i][t];n;)n&&n!==o[o.length-1]&&1===n.nodeType&&(o.push(n),-1===e||e>1?(n=n[t],e>1&&e--):n=null);return this.nodes=o,this},o.prototype.first=function(){return this.nodes=this.nodes?this.nodes[0]:[],this},o.prototype.last=function(){return this.nodes=this.nodes.length>1?this.nodes.slice(-1):[],this},o.prototype.prev=function(){return this.resolve("previousElementSibling")},o.prototype.prevAll=function(){return this.resolve("previousElementSibling",-1)},o.prototype.next=function(){return this.resolve("nextElementSibling")},o.prototype.nextAll=function(){return this.resolve("nextElementSibling",-1)},o.prototype.children=function(){var t,e,n;n=[];for(var o=0,r=this.nodes.length;r>o;o++)if(e=this.nodes[o].children,e&&11!==e.nodeType){t=e.length;for(var i=0;t>i;i++)n.push(e[i])}return this.nodes=n,this},o.prototype.parent=function(){for(var t,e=0,n=this.nodes.length;n>e;e++)t=this.nodes[e].parentNode,this.nodes[e]=t&&11!==t.nodeType?t:null;return this},o.prototype.findParent=function(t){return this.findParents(t,!1)},o.prototype.findParents=function(e,n){void 0===n&&(n=!0);var o,r,i=[];s.str(e)?e=t.dom(e).nodes:e||(o=!0);for(var u=0,a=this.nodes.length;a>u;u++)for(r=this.nodes[u].parentNode;r;)if(r&&11!==r.nodeType){if(o){if(e=null,o=r,!o||11===o.nodeType){o=!0;continue}e=[o]}if(e&&-1===i.indexOf(r)&&-1!==e.indexOf(r)&&(i.push(r),!n))break;r=r.parentNode}return this.nodes=i,this},o.prototype.each=function(t){for(var e=0,n=this.nodes.length;n>e&&t.call(this.nodes[e],this.el,e)!==!1;e++);return this},o.prototype.css=function(t,e){var o;if(s.obj(t)){for(var r in t)this.css(r,t[r]);return this}if(s.undef(e))return this.nodes[0]?this.nodes[0].style[t]||window.getComputedStyle(this.nodes[0],null).getPropertyValue(t):void 0;if(o=this.nodes.length,"display"===t){for(var i=0;o>i;i++)n.set(this.nodes[i],{lastDisplay:this.nodes[i].style.display}),this.nodes[i].style.display=e;return this}for(var i=0;o>i;i++)this.nodes[i].style[t]=e;return this},o.prototype.hasClass=function(t){for(var e=0,n=this.nodes.length;n>e;e++)if(this.nodes[e].classList.contains(t))return!0;return!1},o.prototype.addClass=function(t){for(var e=0,n=this.nodes.length;n>e;e++)this.nodes[e].classList.add(t);return this},o.prototype.removeClass=function(t){for(var e=0,n=this.nodes.length;n>e;e++)this.nodes[e].classList.remove(t);return this},o.prototype.toggleClass=function(t){for(var e=0,n=this.nodes.length;n>e;e++)this.nodes[e].classList.toggle(t);return this},o.prototype.hide=function(){for(var t=0,e=this.nodes.length;e>t;t++)n.has(this.nodes[t])?n.get(this.nodes[t]).oldDisplay=this.nodes[t].style.display:n.set(this.nodes[t],{oldDisplay:this.nodes[t].style.display}),this.nodes[t].style.display="none";return this},o.prototype.show=function(){for(var t,e=0,o=this.nodes.length;o>e;e++)t="",n.has(this.nodes[e])&&(t=n.get(this.nodes[e]).oldDisplay||t),this.nodes[e].style.display=t;return this},o.prototype.attr=function(t,e){var n;if(s.undef(e)){var o=this.nodes[0].attributes;if(n=o.length,t){for(var r=0;n>r;r++)if(t==o[r].nodeName)return o[r].value;return void 0}for(var i={},r=0;n>r;r++)i[o[r].nodeName]=o[r].value;return i}n=this.nodes.length;for(var r=0;n>r;r++)this.nodes[r].setAttribute(t,e);return this},o.prototype.text=function(t){var e="",n=this.nodes.length;if(s.undef(t)){for(var o=0;n>o;o++)e+=this.nodes[o].textContent;return e}for(var o=0;n>o;o++)this.nodes[o].textContent=t;return this},o.prototype.html=function(t){var e="",n=this.nodes.length;if(s.undef(t)){for(var o=0;n>o;o++)e+=this.nodes[o].innerHTML;return e}for(var o=0;n>o;o++)this.nodes[o].innerHTML=t;return this},o.prototype.prepend=function(t){for(var e=0,n=this.nodes.length;n>e;e++)this.nodes[e].insertAdjacentHTML("afterbegin",t);return this},o.prototype.prependText=function(t){return this.prependChild(document.createTextNode(t))},o.prototype.prependChild=function(t){for(var e,n=0,o=this.nodes.length;o>n;n++)e=this.nodes[n].nodeType,(1===e||11===e||9===e)&&this.nodes[n].insertBefore(t.cloneNode(!0),this.nodes[n].firstChild);return this},o.prototype.append=function(t){for(var e=0,n=this.nodes.length;n>e;e++)this.nodes[e].insertAdjacentHTML("beforeend",t);return this},o.prototype.appendText=function(t){return this.appendChild(document.createTextNode(t))},o.prototype.appendChild=function(t){for(var e,n=0,o=this.nodes.length;o>n;n++)e=this.nodes[n].nodeType,(1===e||11===e||9===e)&&this.nodes[n].appendChild(t.cloneNode(!0));return this},o.prototype.insertBefore=function(t){for(var e=0,n=this.nodes.length;n>e;e++)this.nodes[e].insertAdjacentHTML("beforebegin",t);return this},o.prototype.insertAfter=function(t){for(var e=0,n=this.nodes.length;n>e;e++)this.nodes[e].insertAdjacentHTML("afterend",t);return this},o.prototype.empty=function(){for(var t,e=0,n=this.nodes.length;n>e;e++)t=document.createRange(),t.selectNodeContents(this.nodes[e]),t.deleteContents();return this},o.prototype.remove=function(){for(var t=0,e=this.nodes.length;e>t;t++)this.nodes[t].remove();return this},o.prototype.replaceWith=function(e){s.str(e)&&(e=t.html.toNode(e));for(var n=0,o=this.nodes.length;o>n;n++)this.nodes[n].parentNode.replaceChild(e.cloneNode(!0),this.nodes[n]);return this},o.prototype.on=function(t,e,n){void 0===n&&(n=!1);var o=this.nodes.length;if(o)for(var r=0;o>r;r++)this.nodes[r].addEventListener(t,e,n);return this},o.prototype.off=function(t,e,n){void 0===n&&(n=!1);var o=this.nodes.length;if(o)for(var r=0;o>r;r++)this.nodes[r].removeEventListener(t,e,n);return this},o.prototype.trigger=function(t,e){var n=this.nodes.length;if(n){s.str(t)&&(t=new Event(t));for(var o=0;n>o;o++)this.nodes[o].dispatchEvent(t,e);return this}},o}();t.Query=u,document.querySelector||(t.Query.prototype.select=t.Query.prototype.findOne),document.querySelectorAll||(t.Query.prototype.selectAll=t.Query.prototype.find),t.dom=function(e,n){return new t.Query(e,n)},t.dom.traverse=o,t.dom.observe=i,t.dom.globalExec=r,t.dom.onLoaded=function(t,e){return void 0===e&&(e=!1),document.addEventListener("DOMContentLoaded",t,e)}}},function(t,e,n){"use strict";t.exports=function(t){t.filters={uc:function(t){return t+="",t.toUpperCase()},ucFirst:function(t){return t+="",t.charAt(0).toUpperCase()+t.substr(1)},lc:function(t){return t+="",t.toLowerCase()},lcFirst:function(t){return t+="",t.charAt(0).toLowerCase()+t.substr(1)},rmSpace:function(t){return t.split(" ").join("")}},t.filter=function(e,n,o){if(t.is.fn(e)&&o&&o.resolveFn&&(e=e.call(o.bind?o.bind:null,o.args?o.args:[])),!n)return e;t.is.array(n)||(n=n.split("|"));for(var r=0,i=n.length;i>r;r++)e=t.filters[n[r].trim()](e);return e},n(12)(t)}},function(t){"use strict";t.exports=function(t){t.opt.deprecation=!0,t.opt.throwDeprecation=!1,t.util={rx:{firstHtmlTag:/<[\n\r ]*([a-z0-9\-_]+)/im},each:function(t,e,n){for(var o,r=0;o=obj[r];)e.call(n,o,r,obj),r++},merge:function(t,e){var n=arguments.length;if(2>n)throw new Error("There should be at least 2 arguments passed to ux.util.merge()");for(var o=1;n>o;o++)if(t&&e)for(var r in e)t[r]=t[r]=arguments[o][r];return t},mergeRecursive:function(t){var e=arguments.length;if(2>e)throw new Error("There should be at least 2 arguments passed to ux.util.mergeRecursive()");for(var n=1;e>n;n++)for(var o in arguments[n])t[o]=t[o]&&"object"==typeof t[o]?this.mergeRecursive(t[o],arguments[n][o]):arguments[n][o];return t},grep:function(t,e,n){var o,r,i,s;o=[],i=!n;for(var u=0,r=t.length;r>u;u++)s=!e(t[u],u),s!==i&&o.push(t[u]);return o},propPath:function(e,n,o){var r,i,s;for(r=t.is.array(n)?n:n.split("."),i=r.pop().trim();s=r.shift();){if(void 0===e[s])return e[s];e=e[s]}return o?e[i]=o:e[i]},deprecate:function(e,n,o){function r(){if(!i&&t.opt.deprecation){if(t.opt.throwDeprecation)throw new Error(n);console.error(n),i=!0}return e.apply(o,arguments)}void 0===n&&(n=""),void 0===o&&(o=null);var i;return r},padLeft:function(t,e,n){for(void 0===e&&(e=2),void 0===n&&(n="0");t.length/,r=t.match(o),r=r?r[0]:"",i=/\s+([\w\-.:]+)(\s*=\s*(?:"([^"]*)"|'([^']*)'|([\w\-.:]+)))?/g,s=i.exec(r),u={};s;)e=s[1],n=s[1],s[2]&&(n=s[3]?s[3]:s[4]?s[4]:s[5]),u[e]=n,s=i.exec(r);return u},toNode:function(t){var e=document.createElement("div");return e.insertAdjacentHTML("beforeend",t),e=e.lastChild},stripTags:function(t,e){var n,o;return n=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,o=//gi,e=(((e||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join(""),t.replace(o,"").replace(n,function(t,n){return e.indexOf("<"+n.toLowerCase()+">")>-1?t:""})}}}},function(t){"use strict";t.exports=function(t){t.nodeMaps=new WeakMap,t.nodeMaps.addOnce=function(t){return this.has(t.node)?this:(t.binders||(t.binders={}),this.set(t.node,t))},t.nodeMaps.setBinder=function(t,e,n){return this.get(t).binders[e.name]={binder:e,expr:n},this}}},function(t,e,n){"use strict";t.exports=function(t){t.binders={scope:n(13)(t)},t.binders.ctrl=n(14)(t),t.binders.each=n(15)(t),t.binders.el=n(16)(t),t.binders.text=n(17)(t),t.binders.html=n(18)(t),t.binders.on=n(19)(t)}},function(t){"use strict";t.exports=function(t){t.init=function(){var e=function(e){t.on("preLoad",function(e){return t.emit("load",e)}),t.on("load",function(e){return t.emit("postLoad",e)}),t.emit("preLoad",e)};t.dom.onLoaded(function(){var n;for(var o in t.binders)n=t.binders[o],"function"==typeof n.init&&(n.init(),n.init=!0);e(document),t.init=!0})}}},function(t){"use strict";!function(){function e(){this.events={}}e.prototype.on=function(t,e,n){return this.events[t]||(this.events[t]=[]),n&&(e._E_ctx=n),this.events[t].push(e),this},e.prototype.once=function(t,e,n){return e._E_once=!0,this.on(t,e,n)},e.prototype.emit=function(t,e,n,o,r){var i,s,u,a;if(!this.events[t])return!1;u=Array.prototype.slice.call(arguments,1),a=u.length,s=this.events[t];for(var d=0,c=s.length;c>d;d++)switch(i=s[d],i._E_once&&this.off(t,i),a){case 0:i.call(i._E_ctx);break;case 1:i.call(i._E_ctx,e);break;case 2:i.call(i._E_ctx,e,n);break;case 3:i.call(i._E_ctx,e,n,o);break;case 4:i.call(i._E_ctx,e,n,o,r);break;default:i.apply(i._E_ctx,u)}return!0},e.prototype.off=function(t,e){if(!this.events[t])return this;for(var n=0,o=this.events[t].length;o>n;n++)this.events[t][n]===e&&(this.events[t][n]=null,delete this.events[t][n]);return this.events[t]=this.events[t].filter(function(t){return"undefined"!=typeof t}),this},e.prototype.listeners=function(t){var e,n;if(t)return this.events[t]||[];e=this.events,n=[];for(var o in e)n=n.concat(e[o].valueOf());return n},"undefined"!=typeof t&&t.exports?t.exports=e:window.Evemit=e}()},function(t){"use strict";function e(t){return t=null==t?"":String(t),t&&(r.lastIndex=0,r.test(t))?t.replace(r,function(t){return i[t]}):t}function n(t){return t=null==t?"":String(t),t&&(o.lastIndex=0,o.test(t))?t.replace(o,function(t){return s[t]}):t}var o,r,i,s;o=/&(?:amp|lt|gt|quot|#39|#96);/g,r=/[&<>"'`]/g,i={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},s={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},t.exports=function(t){t.filters.e=t.filters.escape=e,t.filters.unescape=n}},function(t){"use strict";t.exports=function(t){var e,n,o;return n={},o=function(e,n,o){return o&&(e=e===document?t.dom(null,e):t.dom(e),n.nodes=e.select("["+n.attr+"]").nodes),n.nodes},e={getNodes:function(t,e){return o(t,this,e)},nodes:[],build:function(e,n){var o,r,i,s,u,a;r=this.getNodes(e,!0),u=r.length,a=function(t,e,n,o){if(!e)throw new ReferenceError("Scope not found for the binder "+o+'="'+n+'" (node #'+t+")")};for(var d=0;u>d;d++)o=r[d].getAttribute(this.attr),s=r[d].getAttribute("n-scope"),s?(i=r[d],a(d,i,o,this.attr)):(i=t.dom(r[d]).findParent("[n-scope]").nodes[0],a(d,i,o,this.attr),s=i.getAttribute("n-scope")),n({node:r[d],expr:o,scopeName:s,nodeScope:i})},init:function(){var e=this;this.preLoad&&t.on("preLoad",function(t){return e.preLoad(t)},this),this.load&&t.on("load",function(t){return e.load(t)},this),this.postLoad&&t.on("postLoad",function(t){return e.postLoad(t)},this)},load:function(e){var n=this;this.build(e,function(e){t.nodeMaps.addOnce({node:e.node,nodeScope:e.nodeScope,scopeName:e.scopeName}),t.nodeMaps.setBinder(e.node,n,e.expr),n.onScopeChanges&&t.on("scopes."+e.scopeName+".changes",function(t){return n.onScopeChanges(e.node,t)},n)})},onScopeChanges:function(e,n){var o=t.nodeMaps.get(e);this.nodeUpdate(o.node,t.scopes[o.scopeName],o.binders[this.name].expr,n)}},Object.defineProperty(e,"attr",{get:function(){return t.binderAttr(this.name)}}),{proto:e,name:"scope",attr:t.opt.binder.prefix+"scope",getNodes:function(t,e){return o(t,this,e)},init:function(){var e=this;t.on("load",function(t){return e.load(t)},this),t.on("postLoad",function(){return e.postLoad()},this)},load:function(e){var n,o;o=this.getNodes(e,!0);for(var r=0,i=o.length;i>r;r++)n=o[r].getAttribute(this.attr),t.scopes[n]||(t.scopes[n]={})},postLoad:function(){for(var e in t.scopes)n[e]!==!0&&(Object.observe(t.scopes[e],function(n){return t.emit("scopes."+e+".changes",n)}),n[e]=!0)}}}},function(t){"use strict";t.exports=function(t){var e=t.binders.scope.proto;return{name:"ctrl",attr:t.opt.binder.prefix+"ctrl",getNodes:e.getNodes,init:function(){var e=this;t.on("preLoad",function(t){return e.preLoad(t)},this),t.on("postLoad",function(){return e.postLoad()},this)},preLoad:function(e){var n,o,r,i;o=this.getNodes(e,!0),i=o.length;for(var s=0;i>s;s++)r=o[s],n=r.getAttribute(this.attr),r.getAttribute("n-scope")||r.setAttribute("n-scope",n),t.is.fn(t.ctrls[n])&&(t.ctrls[n]={node:r,ctrl:t.ctrls[n]},t.emit("ctrls."+n+".preLoaded"))},postLoad:function(){var e;for(var n in t.ctrls)e=t.ctrls[n],e&&t.is.obj(e)&&e.node&&t.is.fn(e.ctrl)&&(t.emit("ctrls."+n+".preBoot"),t.ctrls[n].ctrl=new e.ctrl(t.scopes[n],e.node),t.emit("ctrls."+n+".postBoot"))}}}},function(t){"use strict";t.exports=function(t){var e=[];return{__proto__:t.binders.scope.proto,name:"each",init:function(){var e=this;t.on("load",function(t){return e.load(t)},this),t.on("postLoad",function(t){return e.postLoad(t)},this)},load:function(e){var n=this;this.build(e,function(e){var o,r,i,s,u,a,d;t.nodeMaps.addOnce({node:e.node,nodeScope:e.nodeScope,scopeName:e.scopeName}),t.nodeMaps.setBinder(e.node,n,e.expr),o=t.nodeMaps.get(e.node),r=o.binders[n.name],i=r.expr,s=i.split(" "),a=s.shift().trim(),d=s.pop().trim(),u=e.scopeName,r.propName=d,r.vpropName=a,r.contents=o.node.cloneNode(!0),t.on("binders.each.scopes."+u+"."+d+".changes",function(){return n.resolveNodeContents(o)}),t.on("scopes."+e.scopeName+".changes",function(t){t.forEach(function(t){"update"===t.type&&t.name===r.propName&&t.oldValue&&n.resolveNodeContents(o)})},n)})},postLoad:function(){var n,o,r,i,s,u;n=this.nodes;for(var a=0,d=n.length;d>a;a++)o=n[a],r=t.nodeMaps.get(o),i=r.scopeName,s=r.binders[this.name].propName,u=t.scopes[i][s],-1===e.indexOf(u)&&Object.observe(u,function(e){return t.emit("binders.each.scopes."+i+"."+s+".changes",e)})},onScopeChanges:null,nodeUpdate:function(e){this.resolveNodeContents(t.nodeMap.get(e))},resolveNodeContents:function(e){var n,o,r,i,s,u,a,d,c,p;o=e.node,a=e.binders[this.name],r=document.createRange(),d=e.scopeName,c=a.propName,p=a.vpropName,u=t.scopes[d][c],r.selectNodeContents(o),r.deleteContents();for(var f in u){if(i=a.contents.cloneNode(!0),this.resolveBinders(i,f,t.scopes[d],c,p,!0),i.children.length)for(s=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT);s.nextNode();)n=s.currentNode,this.resolveBinders(n,f,t.scopes[d],c,p);o.appendChild(i)}},resolveBinders:function(e,n,o,r,i,s){var u,a;for(var d in t.binders)u=t.binders[d].attr,s&&u===this.attr||e.hasAttribute(u)&&(a=e.getAttribute(u),a===i&&(a=r+"."+n,e.setAttribute(u,a)),t.binders[d].nodeUpdate(e,o,a))}}}},function(t){"use strict";t.exports=function(t){return{__proto__:t.binders.scope.proto,name:"el",init:function(){var e=this;t.on("load",function(t){return e.load(t)},this)},nodeUpdate:function(e,n,o){var r,i,s,u;u=function(){return t.expr.parse(s,n,{filter:{resolveFn:!0,args:{node:e,nodeExpr:i,scopeExpr:s}}})},r=o.split(":"),r.length>=2?(i=r[0].trim(),s=r[1].trim(),t.util.propPath(e,i,u())):(s=o,u())}}}},function(t){"use strict";t.exports=function(t){return{__proto__:t.binders.scope.proto,name:"text",init:function(){var e=this;t.on("load",function(t){return e.load(t)},this)},nodeUpdate:function(e,n,o){t.dom(e).text(t.expr.parse(o,n,{filter:{resolveFn:!0}}))}}}},function(t){"use strict";t.exports=function(t){return{__proto__:t.binders.scope.proto,name:"html",init:function(){var e=this;t.on("load",function(t){return e.load(t)},this)},nodeUpdate:function(e,n,o){t.dom(e).html(t.expr.parse(o,n,{filter:{resolveFn:!0}}))}}}},function(t){"use strict";t.exports=function(t){var e=t.binders.scope.proto;return{name:"on",attr:t.opt.binder.prefix+"on",getNodes:e.getNodes,build:e.build,init:function(){var e=this;t.on("load",function(t){return e.load(t)},this),t.on("postLoad",function(t){return e.postLoad(t)},this)},load:function(e){var n=this;this.build(e,function(e){t.nodeMaps.addOnce({node:e.node,nodeScope:e.nodeScope,scopeName:e.scopeName}),t.nodeMaps.setBinder(e.node,n,e.expr)})},postLoad:function(e){var n,o,r,i;r=this.getNodes(e,!0);for(var s=0,u=r.length;u>s;s++)i=r[s],n=t.nodeMaps.get(i),o=n.binders[this.name].expr.split(":"),t.dom(i).on(o[0].trim(),t.scopes[n.scopeName][o[1].trim()])}}}}]);