!function(t){var e=function(){return t()["default"]};if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.$=e()}}(function(){return function t(e,n,r){function i(s,u){if(!n[s]){if(!e[s]){var a="function"==typeof require&&require;if(!u&&a)return a(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var c=n[s]={exports:{}};e[s][0].call(c.exports,function(t){var n=e[s][1][t];return i(n?n:t)},c,c.exports,t,e,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(t,e){"use strict";var n=t("./util").extend,r={},i={},o={},s=t("./array"),u=t("./attr"),a=t("./class"),c=t("./css"),f=t("./data"),l=t("./dom"),d=t("./dom_extra"),h=t("./event"),p=t("./html"),v=t("./selector"),m=t("./selector_extra");"undefined"!=typeof v&&(o=v.$,o.matches=v.matches,r.find=v.find);var y=t("./contains");n(o,y);var g=t("./mode");n(o,g);var b=t("./noconflict");n(o,b);var _=t("./type");n(o,_),n(r,s,u,a,c,f,l,d,h,p,m),n(i,s),o.version="0.7.3",o.extend=n,o.fn=r,o.fnList=i;var N=o;e.exports={"default":N,__esModule:!0}},{"./array":2,"./attr":3,"./class":4,"./contains":5,"./css":6,"./data":7,"./dom":8,"./dom_extra":9,"./event":10,"./html":11,"./mode":13,"./noconflict":14,"./selector":15,"./selector_extra":16,"./type":17,"./util":18}],2:[function(t,e){"use strict";function n(t,e){var n="function"==typeof t?t:function(e){return a(e,t)};return u(c.filter.call(this,n,e))}function r(t,e){return o(this,t,e)}function i(){var t=c.slice.call(this);return u(c.reverse.call(t))}var o=t("./util").each,s=t("./selector"),u=s.$,a=s.matches,c=Array.prototype,f=c.every,l=r,d=c.indexOf,h=c.map,p=c.pop,v=c.push,m=c.shift,y=c.some,g=c.unshift;e.exports={each:l,every:f,filter:n,forEach:r,indexOf:d,map:h,pop:p,push:v,reverse:i,shift:m,some:y,unshift:g,__esModule:!0}},{"./selector":15,"./util":18}],3:[function(t,e){"use strict";function n(t,e){if("string"==typeof t&&"undefined"==typeof e){var n=this.nodeType?this:this[0];return n?n.getAttribute(t):void 0}return i(this,function(n){if("object"==typeof t)for(var r in t)n.setAttribute(r,t[r]);else n.setAttribute(t,e)}),this}function r(t){return i(this,function(e){e.removeAttribute(t)}),this}var i=t("./util").each;e.exports={attr:n,removeAttr:r,__esModule:!0}},{"./util":18}],4:[function(t,e){"use strict";function n(t){return a(this,function(e){e.classList.add(t)}),this}function r(t){return a(this,function(e){e.classList.remove(t)}),this}function i(t){return a(this,function(e){e.classList.toggle(t)}),this}function o(t){return u(this).some(function(e){return e.classList.contains(t)})}var s=t("./util"),u=s.makeIterable,a=s.each;e.exports={addClass:n,removeClass:r,toggleClass:i,hasClass:o,__esModule:!0}},{"./util":18}],5:[function(t,e){"use strict";function n(t,e){return t&&e&&t!==e?t.contains?t.contains(e):t.compareDocumentPosition?!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_DISCONNECTED):!1:!1}e.exports={contains:n,__esModule:!0}},{}],6:[function(t,e){"use strict";function n(t){return!isNaN(parseFloat(t))&&isFinite(t)}function r(t){return t.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})}function i(t){return t.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()}function o(t,e){var o,u,a;if("string"==typeof t){if(t=r(t),"undefined"==typeof e){var c=this.nodeType?this:this[0];return c?(a=c.style[t],n(a)?parseFloat(a)||0:a):void 0}o={},o[t]=e}else{o=t;for(u in o)a=o[u],delete o[u],o[r(u)]=a}return s(this,function(t){for(u in o)o[u]||0===o[u]?t.style[u]=o[u]:t.style.removeProperty(i(u))}),this}var s=t("./util").each;e.exports={css:o,__esModule:!0}},{"./util":18}],7:[function(t,e){"use strict";function n(t,e){if("string"==typeof t&&"undefined"==typeof e){var n=this.nodeType?this:this[0];return n&&n[o]?n[o][t]:void 0}return i(this,function(n){n[o]=n[o]||{},n[o][t]=e}),this}function r(t,e){if("string"==typeof t&&"undefined"==typeof e){var n=this.nodeType?this:this[0];return n&&n?n[t]:void 0}return i(this,function(n){n[t]=e}),this}var i=t("./util").each,o="__domtastic_data__";e.exports={data:n,prop:r,__esModule:!0}},{"./util":18}],8:[function(t,e){"use strict";function n(t){if(this instanceof Node)if("string"==typeof t)this.insertAdjacentHTML("beforeend",t);else if(t instanceof Node)this.appendChild(t);else{var e=t instanceof NodeList?a(t):t;e.forEach(this.appendChild.bind(this))}else for(var r=this.length;r--;){var i=0===r?t:u(t);n.call(this[r],i)}return this}function r(t){if(this instanceof Node)if("string"==typeof t)this.insertAdjacentHTML("afterbegin",t);else if(t instanceof Node)this.insertBefore(t,this.firstChild);else{var e=t instanceof NodeList?a(t):t;e.reverse().forEach(r.bind(this))}else for(var n=this.length;n--;){var i=0===n?t:u(t);r.call(this[n],i)}return this}function i(t){if(this instanceof Node)if("string"==typeof t)this.insertAdjacentHTML("beforebegin",t);else if(t instanceof Node)this.parentNode.insertBefore(t,this);else{var e=t instanceof NodeList?a(t):t;e.forEach(i.bind(this))}else for(var n=this.length;n--;){var r=0===n?t:u(t);i.call(this[n],r)}return this}function o(t){if(this instanceof Node)if("string"==typeof t)this.insertAdjacentHTML("afterend",t);else if(t instanceof Node)this.parentNode.insertBefore(t,this.nextSibling);else{var e=t instanceof NodeList?a(t):t;e.reverse().forEach(o.bind(this))}else for(var n=this.length;n--;){var r=0===n?t:u(t);o.call(this[n],r)}return this}function s(){return $(u(this))}function u(t){return"string"==typeof t?t:t instanceof Node?t.cloneNode(!0):"length"in t?[].map.call(t,function(t){return t.cloneNode(!0)}):t}var a=t("./util").toArray;e.exports={append:n,prepend:r,before:i,after:o,clone:s,__esModule:!0}},{"./util":18}],9:[function(t,e){"use strict";function n(t){var e="string"==typeof t?d(t):t;return f.call(e,this),this}function r(){return a(this,function(t){t.innerHTML=""})}function i(){return a(this,function(t){t.parentNode&&t.parentNode.removeChild(t)})}function o(){return l.apply(this,arguments).remove()}function s(t){return"string"!=typeof t?this[0].textContent:(a(this,function(e){e.textContent=""+t}),this)}function u(t){return"string"!=typeof t?this[0].value:(a(this,function(e){e.value=t}),this)}var a=t("./util").each,c=t("./dom"),f=c.append,l=c.before,d=(c.after,t("./selector").$);e.exports={appendTo:n,empty:r,remove:i,replaceWith:o,text:s,val:u,__esModule:!0}},{"./dom":8,"./selector":15,"./util":18}],10:[function(t,e){"use strict";function n(t,e,n,r){"function"==typeof e&&(n=e,e=null);var i,o,s;return t.split(" ").forEach(function(t){i=t.split("."),t=i[0]||null,o=i[1]||null,s=h(n),y(this,function(i){e&&(s=p.bind(i,e,n)),i.addEventListener(t,s,r||!1),l(i).push({eventName:t,handler:n,eventListener:s,selector:e,namespace:o})})},this),this}function r(){var t=void 0!==arguments[0]?arguments[0]:"",e=arguments[1],n=arguments[2],r=arguments[3];"function"==typeof e&&(n=e,e=null);var i,o,s;return t.split(" ").forEach(function(t){i=t.split("."),t=i[0]||null,o=i[1]||null,y(this,function(i){s=l(i),t||o||e||n?(y(s.filter(function(r){return!(t&&r.eventName!==t||o&&r.namespace!==o||n&&r.handler!==n||e&&r.selector!==e)}),function(t){i.removeEventListener(t.eventName,t.eventListener,r||!1),s.splice(s.indexOf(t),1)}),0===s.length&&d(i)):(y(s,function(t){i.removeEventListener(t.eventName,t.eventListener,r||!1)}),d(i))})},this),this}function i(t,e,r){return n.call(this,e,t,r)}function o(t,e,n){return r.call(this,e,t,n)}function s(t,e){var n=void 0!==arguments[2]?arguments[2]:{};n.bubbles="boolean"==typeof n.bubbles?n.bubbles:!0,n.cancelable="boolean"==typeof n.cancelable?n.cancelable:!0,n.preventDefault="boolean"==typeof n.preventDefault?n.preventDefault:!1,n.detail=e;var r=new CustomEvent(t,n);return r._preventDefault=n.preventDefault,y(this,function(e){!n.bubbles||M||c(e)?e.dispatchEvent(r):f(e,t,n)}),this}function u(t,e){this[0]&&s.call(this[0],t,e,{bubbles:!1,preventDefault:!0})}function a(t){return/complete|loaded|interactive/.test(document.readyState)&&document.body?t():document.addEventListener("DOMContentLoaded",t,!1),this}function c(t){return t===window||t===document?!0:$.contains(t.ownerDocument.documentElement,t)}function f(t,e){var n=void 0!==arguments[2]?arguments[2]:{};n.bubbles=!1;var r=new CustomEvent(e,n);r._target=t;do t.dispatchEvent(r);while(t=t.parentNode)}function l(t){t[b]||(t[b]=0===E.length?++_:E.pop());var e=t[b];return N[e]||(N[e]=[])}function d(t){var e=t[b];N[e]&&(N[e]=null,t[e]=null,E.push(e))}function h(t){return function(e){t(x(e),e.detail)}}function p(t,e,n){var r=n._target||n.target;g(r,t)&&(n.currentTarget||(n.currentTarget=r),e.call(r,n))}var v=t("./util"),m=v.global,y=v.each,g=t("./selector").matches,b="__domtastic_event__",_=1,N={},E=[],x=function(){var t={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"},e=function(){},n=function(){return!0},r=function(){return!1};return function(i){for(var o in t)!function(t,e,o){i[t]=function(){return this[e]=n,o.apply(this,arguments)},i[e]=r}(o,t[o],i[o]||e);return i._preventDefault&&i.preventDefault(),i}}();!function(){function t(t){var e=void 0!==arguments[1]?arguments[1]:{bubbles:!1,cancelable:!1,detail:void 0},n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}t.prototype=m.CustomEvent&&m.CustomEvent.prototype,m.CustomEvent=t}();var M=function(){var t=!1,e=m.document;if(e){var n=e.createElement("div"),r=n.cloneNode();n.appendChild(r),n.addEventListener("e",function(){t=!0}),r.dispatchEvent(new CustomEvent("e",{bubbles:!0}))}return t}(),L=n,C=r;e.exports={on:n,off:r,delegate:i,undelegate:o,trigger:s,triggerHandler:u,ready:a,bind:L,unbind:C,__esModule:!0}},{"./selector":15,"./util":18}],11:[function(t,e){"use strict";function n(t){if("string"!=typeof t){var e=this.nodeType?this:this[0];return e?e.innerHTML:void 0}return r(this,function(e){e.innerHTML=t}),this}var r=t("./util").each;e.exports={html:n,__esModule:!0}},{"./util":18}],12:[function(t,e){"use strict";var n=t("./api").default,r=n;e.exports={"default":r,__esModule:!0}},{"./api":1}],13:[function(t,e){"use strict";function n(){var t=void 0!==arguments[0]?arguments[0]:!0,e=u;return u=t,s.$&&(s.$.isNative=u),!e&&u&&i(this.fn,this.fnList),e&&!u&&o(this.fn,this.fnList),u}function r(t,e,n){t.hasOwnProperty(e)||Object.defineProperty(t,e,{value:n,configurable:!0,enumerable:!1})}function i(t,e){var n;for(n in t)r(a,n,t[n]),r(c,n,t[n]);for(n in e)r(c,n,e[n])}function o(t,e){var n;for(n in t)f(a,n),f(c,n);for(n in e)f(c,n)}var s=t("./util").global,u=!1,a="undefined"!=typeof Node&&Node.prototype,c="undefined"!=typeof NodeList&&NodeList.prototype,f=function(t,e){delete t[e]};e.exports={isNative:u,"native":n,__esModule:!0}},{"./util":18}],14:[function(t,e){"use strict";function n(){return r.$=i,this}var r=t("./util").global,i=r.$;e.exports={noConflict:n,__esModule:!0}},{"./util":18}],15:[function(t,e){"use strict";function n(t){var e,r=void 0!==arguments[1]?arguments[1]:document;if(t){if(t instanceof u)return t;"string"!=typeof t?e=f(t):d.test(t)?e=o(t):(r="string"==typeof r?document.querySelector(r):r.length?r[0]:r,e=i(t,r))}else e=document.querySelectorAll(null);return n.isNative?e:s(e)}function r(t){return n(t,this)}function i(t,e){var r=p.test(t);if(r&&!n.isNative){if("#"===t[0]){var i=(e.getElementById?e:document).getElementById(t.slice(1));return i?[i]:[]}return"."===t[0]?e.getElementsByClassName(t.slice(1)):e.getElementsByTagName(t)}return e.querySelectorAll(t)}function o(t){if(h.test(t))return[document.createElement(RegExp.$1)];var e=[],n=document.createElement("div"),r=n.childNodes;n.innerHTML=t;for(var i=0,o=r.length;o>i;i++)e.push(r[i]);return e}function s(t){return l||(u.prototype=n.fn,u.prototype.constructor=u,l=!0),new u(t)}function u(t){for(var e=0,n=t.length;n>e;)this[e]=t[e++];this.length=n}var a=t("./util"),c=a.global,f=a.makeIterable,l=([].slice,!1),d=/^\s*<(\w+|!)[^>]*>/,h=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,p=/^[\.#]?[\w-]*$/,v=function(){var t="undefined"!=typeof Element?Element.prototype:c,e=t.matches||t.matchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return function(t,n){return e.call(t,n)}}();e.exports={$:n,find:r,matches:v,__esModule:!0}},{"./util":18}],16:[function(t,e){"use strict";function n(t){var e=[];return f(this,function(n){n.children&&f(n.children,function(n){(!t||t&&h(n,t))&&e.push(n)})}),d(e)}function r(t){for(var e=this[0];e.nodeType!==e.DOCUMENT_NODE;e=e.parentNode)if(h(e,t))return d(e);return d()}function i(){var t=[];return f(this,function(e){t.push.apply(t,l(e.childNodes))}),d(t)}function o(t){return a.call(this,t,t+1)}function s(t){return this[t]}function u(t){var e=[];return f(this,function(n){(!t||t&&h(n.parentNode,t))&&e.push(n.parentNode)}),d(e)}function a(){return d([].slice.apply(this,arguments))}var c=t("./util"),f=c.each,l=c.toArray,c=t("./selector"),d=c.$,h=c.matches;e.exports={children:n,contents:i,closest:r,eq:o,get:s,parent:u,slice:a,__esModule:!0}},{"./selector":15,"./util":18}],17:[function(t,e){"use strict";function n(t){return"function"==typeof t}var r=Array.isArray;e.exports={isFunction:n,isArray:r,__esModule:!0}},{}],18:[function(t,e){"use strict";function n(t,e,n){var r=t.length;if(void 0!==r&&void 0===t.nodeType)for(var i=0;r>i;i++)e.call(n,t[i],i,t);else e.call(n,t,0,t);return t}function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.forEach(function(e){if(e)for(var n in e)t[n]=e[n]}),t}var i=new Function("return this")(),o=Array.prototype.slice,s=function(t){return o.call(t)},u=function(t){return t.nodeType||t===window?[t]:t};e.exports={global:i,toArray:s,makeIterable:u,each:n,extend:r,__esModule:!0}},{}]},{},[12])(12)});
//# sourceMappingURL=domtastic.min.js.map