react-faux-dom
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,2 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactFauxDOM=e(require("react")):t.ReactFauxDOM=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(13)},function(t,e,n){t.exports=!n(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){this.nodeName=t,this.parentNode=e,this.childNodes=[],this.eventListeners={},this.text="";var n=this,r=this.props={ref:function(t){n.component=t},style:{setProperty:function(t,e){r.style[m(t)]=e},getProperty:function(t){return r.style[m(t)]||""},removeProperty:function(t){delete r.style[m(t)]}}};this.style=r.style}var i=n(21),a=r(i),u=n(51),s=n(50),c=n(46),f=n(5),l=n(18),p=n(19),h=n(17),d=n(6),m=n(20);o.prototype.nodeType=1,o.prototype.eventNameMappings={blur:"onBlur",change:"onChange",click:"onClick",contextmenu:"onContextMenu",copy:"onCopy",cut:"onCut",doubleclick:"onDoubleClick",drag:"onDrag",dragend:"onDragEnd",dragenter:"onDragEnter",dragexit:"onDragExit",dragleave:"onDragLeave",dragover:"onDragOver",dragstart:"onDragStart",drop:"onDrop",error:"onError",focus:"onFocus",input:"onInput",keydown:"onKeyDown",keypress:"onKeyPress",keyup:"onKeyUp",load:"onLoad",mousedown:"onMouseDown",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseover:"onMouseOver",mouseup:"onMouseUp",paste:"onPaste",scroll:"onScroll",submit:"onSubmit",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",wheel:"onWheel"},o.prototype.skipNameTransformationExpressions=[/^data-/,/^aria-/],o.prototype.attributeNameMappings={"class":"className"},o.prototype.attributeToPropName=function(t){var e=this.skipNameTransformationExpressions.map(function(e){return e.test(t)});return e.some(Boolean)?t:this.attributeNameMappings[t]||f(t)},o.prototype.setAttribute=function(t,e){if("style"===t&&l(e)){var n=s.parse(e);for(var r in n)this.style.setProperty(r,n[r])}else this.props[this.attributeToPropName(t)]=e},o.prototype.getAttribute=function(t){return this.props[this.attributeToPropName(t)]},o.prototype.getAttributeNode=function(t){var e=this.getAttribute(t);if(!p(e))return{value:e,specified:!0}},o.prototype.removeAttribute=function(t){delete this.props[this.attributeToPropName(t)]},o.prototype.eventToPropName=function(t){return this.eventNameMappings[t]||t},o.prototype.addEventListener=function(t,e){var n=this.eventToPropName(t);this.eventListeners[n]=this.eventListeners[n]||[],this.eventListeners[n].push(e)},o.prototype.removeEventListener=function(t,e){var n=this.eventListeners[this.eventToPropName(t)];if(n){var r=n.indexOf(e);r!==-1&&n.splice(r,1)}},o.prototype.appendChild=function(t){return t.parentNode=this,this.childNodes.push(t),t},o.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(e);return t.parentNode=this,n!==-1?this.childNodes.splice(n,0,t):this.childNodes.push(t),t},o.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);this.childNodes.splice(e,1)},o.prototype.querySelector=function(){return this.querySelectorAll.apply(this,arguments)[0]||null},o.prototype.querySelectorAll=function(t){if(!t)throw new Error("Not enough arguments");return c(t,this)},o.prototype.getElementsByTagName=function(t){var e=this.children;if(0===e.length)return[];var n;n="*"!==t?e.filter(function(e){return e.nodeName===t}):e;var r=e.map(function(e){return e.getElementsByTagName(t)});return n.concat.apply(n,r)},o.prototype.getElementById=function(t){var e=this.children;if(0===e.length)return null;var n=e.filter(function(e){return e.getAttribute("id")===t})[0];if(n)return n;var r=e.map(function(e){return e.getElementById(t)});return r.filter(function(t){return null!==t})[0]||null},o.prototype.getBoundingClientRect=function(){if(this.component)return this.component.getBoundingClientRect()},o.prototype.toReact=function(t){function e(){return"faux-dom-"+t}t=t||0;var n=h({},this.props);n.style=h({},n.style);var r=this;return p(n.key)&&(n.key=e()),delete n.style.setProperty,delete n.style.getProperty,delete n.style.removeProperty,h(n,d(this.eventListeners,function(t){return function(e){var n;e&&(n=e.nativeEvent,n.syntheticEvent=e),d(t,function(t){t.call(r,n)})}})),u.createElement(this.nodeName,n,this.text||this.children.map(function(t,e){return t instanceof o?t.toReact(e):t}))},(0,a["default"])(o.prototype,{nextSibling:{get:function(){var t=this.parentNode.children,e=t.indexOf(this);return t[e+1]}},previousSibling:{get:function(){var t=this.parentNode.children,e=t.indexOf(this);return t[e-1]}},innerHTML:{get:function(){return this.text},set:function(t){this.text=t}},textContent:{get:function(){return this.text},set:function(t){this.text=t}},children:{get:function(){return this.childNodes.filter(function(t){return!t.nodeType||1===t.nodeType})}}});var v=["setAttribute","getAttribute","getAttributeNode","removeAttribute","getElementsByTagName","getElementById"];v.forEach(function(t){var e=o.prototype[t];o.prototype[t+"NS"]=function(){return e.apply(this,Array.prototype.slice.call(arguments,1))}}),t.exports=o},function(t,e){"use strict";function n(t,e,n){return 0!==n?e.toUpperCase():e}function r(t){var e=t.replace(o,n);return o.lastIndex=0,e}var o=/\-+([a-z])/gi;t.exports=r},function(t,e){"use strict";function n(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}t.exports=n},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){var r=n(7),o=n(33),i=n(43),a=Object.defineProperty;e.f=n(1)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(34),o=n(27);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(4),o=n(14),i=n(16),a=n(15),u={Element:r,defaultView:o,mixins:{core:i,anim:a},createElement:function(t){return new r(t)},createElementNS:function(t,e){return this.createElement(e)},compareDocumentPosition:function(){return 8}};r.prototype.ownerDocument=u,t.exports=u},function(t,e){"use strict";var n={getComputedStyle:function(t){return{getPropertyValue:t.style.getProperty}}};t.exports=n},function(t,e){"use strict";var n={animateFauxDOM:function(t){this.animateFauxDOMUntil=Math.max(Date.now()+t,this.animateFauxDOMUntil),this.fauxDOMAnimationInterval||(this.fauxDOMAnimationInterval=setInterval(function(){Date.now()<this.animateFauxDOMUntil?this.drawFauxDOM():this.stopAnimatingFauxDOM()}.bind(this),16))},stopAnimatingFauxDOM:function(){this.fauxDOMAnimationInterval=clearInterval(this.fauxDOMAnimationInterval),this.animateFauxDOMUntil=0},isAnimatingFauxDOM:function(){return!!this.fauxDOMAnimationInterval},componentWillUnmount:function(){this.stopAnimatingFauxDOM()}};t.exports=n},function(t,e,n){"use strict";var r=n(4),o=n(6),i={componentWillMount:function(){this.connectedFauxDOM={},this.animateFauxDOMUntil=0},connectFauxDOM:function(t,e){return this.connectedFauxDOM[e]="string"!=typeof t?t:new r(t),setTimeout(this.drawFauxDOM),this.connectedFauxDOM[e]},drawFauxDOM:function(){var t=o(this.connectedFauxDOM,function(t){return t.toReact()});this.setState(t)}};t.exports=i},function(t,e){"use strict";function n(t){for(var e,n=arguments,r=1;r<n.length;r++){e=n[r];for(var o in e)t[o]=e[o]}return t}t.exports=n},function(t,e){"use strict";function n(t){return"string"==typeof t}t.exports=n},function(t,e){"use strict";function n(t){return"undefined"==typeof t}t.exports=n},function(t,e,n){"use strict";function r(t){var e=o(t);return e.charAt(0).toUpperCase()===t.charAt(0)?t.charAt(0)+e.slice(1):"-"===t.charAt(0)?0===e.indexOf("ms")?e:e.charAt(0).toUpperCase()+e.slice(1):e}var o=n(5);t.exports=r},function(t,e,n){t.exports={"default":n(22),__esModule:!0}},function(t,e,n){n(45);var r=n(8).Object;t.exports=function(t,e){return r.defineProperties(t,e)}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(12),o=n(42),i=n(41);t.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),f=i(a,c);if(t&&n!=n){for(;c>f;)if(u=s[f++],u!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(23);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(3),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2),o=n(8),i=n(26),a=n(32),u="prototype",s=function(t,e,n){var c,f,l,p=t&s.F,h=t&s.G,d=t&s.S,m=t&s.P,v=t&s.B,x=t&s.W,y=h?o:o[e]||(o[e]={}),g=y[u],b=h?r:d?r[e]:(r[e]||{})[u];h&&(n=e);for(c in n)f=!p&&b&&void 0!==b[c],f&&c in y||(l=f?b[c]:n[c],y[c]=h&&"function"!=typeof b[c]?n[c]:v&&f?i(l,r):x&&b[c]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(l):m&&"function"==typeof l?i(Function.call,l):l,m&&((y.virtual||(y.virtual={}))[c]=l,t&s.R&&g&&!g[c]&&a(g,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(10),o=n(38);t.exports=n(1)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(1)&&!n(9)(function(){return 7!=Object.defineProperty(n(28)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(25);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(10),o=n(7),i=n(37);t.exports=n(1)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,s=0;u>s;)r.f(t,n=a[s++],e[n]);return t}},function(t,e,n){var r=n(31),o=n(12),i=n(24)(!1),a=n(39)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(36),o=n(29);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(40)("keys"),o=n(44);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(2),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r=n(11),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(11),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(30);r(r.S+r.F*!n(1),"Object",{defineProperties:n(35)})},function(t,e,n){t.exports=n(47)},function(t,e,n){function r(t){return t.replace(I,D)}function o(){w={}}function i(t,e){do t=t[e];while(t&&1!==t.nodeType);return t}function a(t){var e,n=0,r=0;return"number"==typeof t?r=t:"odd"===t?(n=2,r=1):"even"===t?(n=2,r=0):(e=t.replace(/\s/g,"").match(A))&&(e[1]?(n=parseInt(e[2],10),isNaN(n)&&(n="-"===e[2]?-1:1)):n=0,r=parseInt(e[3],10)||0),{a:n,b:r}}function u(t,e,n,r){if(0===e){if(t===n)return r}else if((t-n)/e>=0&&(t-n)%e===0&&r)return 1}function s(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"html"!==e.nodeName.toLowerCase()}function c(t,e){return v(t,null,e)}function f(t,e){if(!e)return!0;if(!t)return!1;if(9===t.nodeType)return!1;var n,r,o=1,i=e.suffix;if("tag"===e.t&&(o&=y.tag(t,e.value)),o&&i)for(n=i.length,r=0;o&&r<n;r++){var a=i[r],u=a.t;y[u]&&(o&=y[u](t,a.value))}return o}function l(t,e){var n,r=1,o=t,a=e;do{if(r&=f(t,e),!r)return n=$[e.nextCombinator],n.immediate?{el:i(o,$[a.nextCombinator].dir),match:a}:{el:t&&i(t,n.dir),match:e};if(e=e&&e.prev,!e)return!0;if(n=$[e.nextCombinator],t=i(t,n.dir),!n.immediate)return{el:t,match:e}}while(t);return{el:i(o,$[a.nextCombinator].dir),match:a}}function p(t,e){var n,r=e;do{if(!f(t,r))return null;if(r=r.prev,!r)return!0;n=$[r.nextCombinator],t=i(t,n.dir)}while(t&&n.immediate);return t?{el:t,match:r}:null}function h(t){var e;return x?(e=t.getAttribute(E))||t.setAttribute(E,e=+new Date+"_"+ ++T):(e=t[E])||(e=t[E]=+new Date+"_"+ ++T),e}function d(t,e){var n,r=h(t);return n=r+"_"+(e.order||0),n in w?w[n]:(w[n]=m(t,e),w[n])}function m(t,e){var n=l(t,e);if(n===!0)return!0;for(t=n.el,e=n.match;t;){if(d(t,e))return!0;t=i(t,$[e.nextCombinator].dir)}return!1}function v(t,e,n){N[t]||(N[t]=b.parse(t));var r,i,a=N[t],u=0,c=a.length,f=[];for(n&&(e=e||n[0].ownerDocument),r=e&&e.ownerDocument||"undefined"!=typeof document&&document,e&&9===e.nodeType&&!r&&(r=e),e=e||r,x=s(e);u<c;u++){o(),i=a[u];var l,h,m,v,y=i.suffix,E=n,T=null;if(!E){if(y&&!x)for(l=0,h=y.length;l<h;l++){var w=y[l];if("id"===w.t){T=w.value;break}}if(T){var C=!e.getElementById,O=g.contains(r,e),A=C?O?r.getElementById(T):null:e.getElementById(T);if(!A&&C||A&&S(A,"id")!==T){for(var I=g.getElementsByTagName("*",e),D=I.length,M=0;M<D;M++)if(A=I[M],S(A,"id")===T){E=[A];break}M===D&&(E=[])}else O&&A&&e!==r&&(A=g.contains(e,A)?A:null),E=A?[A]:[]}else E=g.getElementsByTagName(i.value||"*",e)}if(m=0,v=E.length)for(;m<v;m++){var _=E[m],P=p(_,i);P===!0?f.push(_):P&&d(P.el,P.match)&&f.push(_)}}return c>1&&(f=g.unique(f)),f}var x,y,g=n(49),b=n(48),E="_ks_data_selector_id_",N={},T=0,w={},S=function(t,e){return x?g.getSimpleAttr(t,e):g.attr(t,e)},C=g.hasSingleClass,O=g.isTag,A=/^(([+-]?(?:\d+)?)?n)?([+-]?\d+)?$/,I=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,D=function(t,e){var n="0x"+e-65536;return isNaN(n)?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},M={"nth-child":function(t,e){var n=a(e),r=n.a,o=n.b;if(0===r&&0===o)return 0;var i=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,p=0,h=l.length;p<h;p++)if(c=l[p],1===c.nodeType&&(i++,f=u(i,r,o,c===t),void 0!==f))return f;return 0},"nth-last-child":function(t,e){var n=a(e),r=n.a,o=n.b;if(0===r&&0===o)return 0;var i=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,p=l.length,h=p-1;h>=0;h--)if(c=l[h],1===c.nodeType&&(i++,f=u(i,r,o,c===t),void 0!==f))return f;return 0},"nth-of-type":function(t,e){var n=a(e),r=n.a,o=n.b;if(0===r&&0===o)return 0;var i=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,p=t.tagName,h=0,d=l.length;h<d;h++)if(c=l[h],c.tagName===p&&(i++,f=u(i,r,o,c===t),void 0!==f))return f;return 0},"nth-last-of-type":function(t,e){var n=a(e),r=n.a,o=n.b;if(0===r&&0===o)return 0;var i=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,p=l.length,h=t.tagName,d=p-1;d>=0;d--)if(c=l[d],c.tagName===h&&(i++,f=u(i,r,o,c===t),void 0!==f))return f;return 0},lang:function(t,e){var n;e=r(e.toLowerCase());do if(n=x?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1},not:function(t,e){return!y[e.t](t,e.value)}},_={empty:function(t){for(var e,n,r=t.childNodes,o=0,i=r.length-1;o<i;o++)if(e=r[o],n=e.nodeType,1===n||3===n||4===n||5===n)return 0;return 1},root:function(t){return 9===t.nodeType||t.ownerDocument&&t===t.ownerDocument.documentElement},"first-child":function(t){return M["nth-child"](t,1)},"last-child":function(t){return M["nth-last-child"](t,1)},"first-of-type":function(t){return M["nth-of-type"](t,1)},"last-of-type":function(t){return M["nth-last-of-type"](t,1)},"only-child":function(t){return _["first-child"](t)&&_["last-child"](t)},"only-of-type":function(t){return _["first-of-type"](t)&&_["last-of-type"](t)},focus:function(t){var e=t.ownerDocument;return e&&t===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(t.type||t.href||t.tabIndex>=0)},target:function(t){var e=location.hash;return e&&e.slice(1)===S(t,"id")},enabled:function(t){return!t.disabled},disabled:function(t){return t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&t.checked||"option"===e&&t.selected}},P={"~=":function(t,e){return!e||e.indexOf(" ")>-1?0:(" "+t+" ").indexOf(" "+e+" ")!==-1},"|=":function(t,e){return(" "+t).indexOf(" "+e+"-")!==-1},"^=":function(t,e){return e&&g.startsWith(t,e)},"$=":function(t,e){return e&&g.endsWith(t,e)},"*=":function(t,e){return e&&t.indexOf(e)!==-1},"=":function(t,e){return t===e}},$={">":{dir:"parentNode",immediate:1}," ":{dir:"parentNode"},"+":{dir:"previousSibling",immediate:1},"~":{dir:"previousSibling"}};y={tag:O,cls:C,id:function(t,e){return S(t,"id")===e},attrib:function(t,e){var n=e.ident;x||(n=n.toLowerCase());var r=S(t,n),o=e.match;if(!o&&void 0!==r)return 1;if(o){if(void 0===r)return 0;var i=P[o];if(i)return i(r+"",e.value+"")}return 0},pseudo:function(t,e){var n,r,o;if(r=e.fn){if(!(n=M[r]))throw new SyntaxError("Syntax error: not support pseudo: "+r);return n(t,e.param)}if(o=e.ident){if(!_[o])throw new SyntaxError("Syntax error: not support pseudo: "+o);return _[o](t)}return 0}},b.lexer.yy={trim:g.trim,unEscape:r,unEscapeStr:function(t){return this.unEscape(t.slice(1,-1))}},t.exports=v,v.parse=function(t){return b.parse(t)},v.matches=c,v.util=g,v.version="@VERSION@"},function(t,e,n){var r=function(t){function e(t,e){for(var n in e)t[n]=e[n]}function n(t){return"[object Array]"===Object.prototype.toString.call(t)}function r(t,e,r){if(t){var o,i,a,u=0;if(r=r||null,n(t))for(a=t.length,i=t[0];u<a&&e.call(r,i,u,t)!==!1;i=t[++u]);else for(o in t)if(e.call(r,t[o],o,t)===!1)break}}function o(t,e){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}var i={},a={SHIFT_TYPE:1,REDUCE_TYPE:2,ACCEPT_TYPE:0,TYPE_INDEX:0,PRODUCTION_INDEX:1,TO_INDEX:2},u=function(t){var n=this;n.rules=[],e(n,t),n.resetInput(n.input)};u.prototype={resetInput:function(t){e(this,{input:t,matched:"",stateStack:[u.STATIC.INITIAL],match:"",text:"",firstLine:1,lineNumber:1,lastLine:1,firstColumn:1,lastColumn:1})},getCurrentRules:function(){var t=this,e=t.stateStack[t.stateStack.length-1],n=[];return t.mapState&&(e=t.mapState(e)),r(t.rules,function(t){var r=t.state||t[3];r?o(e,r)&&n.push(t):e===u.STATIC.INITIAL&&n.push(t)}),n},pushState:function(t){this.stateStack.push(t)},popState:function(t){t=t||1;for(var e;t--;)e=this.stateStack.pop();return e},showDebugInfo:function(){var t=this,e=u.STATIC.DEBUG_CONTEXT_LIMIT,n=t.matched,r=t.match,o=t.input;n=n.slice(0,n.length-r.length);var i=(n.length>e?"...":"")+n.slice(0-e).replace(/\n/," "),a=r+o;return a=a.slice(0,e)+(a.length>e?"...":""),i+a+"\n"+new Array(i.length+1).join("-")+"^"},mapSymbol:function(t){return this.symbolMap[t]},mapReverseSymbol:function(t){var e,n=this,r=n.symbolMap,o=n.reverseSymbolMap;if(!o&&r){o=n.reverseSymbolMap={};for(e in r)o[r[e]]=e}return o?o[t]:t},lex:function(){var n,r,o,i,a,s=this,c=s.input,f=s.getCurrentRules();if(s.match=s.text="",!c)return s.mapSymbol(u.STATIC.END_TAG);for(n=0;n<f.length;n++){r=f[n];var l=r.regexp||r[1],p=r.token||r[0],h=r.action||r[2]||t;if(o=c.match(l)){a=o[0].match(/\n.*/g),a&&(s.lineNumber+=a.length),e(s,{firstLine:s.lastLine,lastLine:s.lineNumber+1,firstColumn:s.lastColumn,lastColumn:a?a[a.length-1].length-1:s.lastColumn+o[0].length});var d;return d=s.match=o[0],s.matches=o,s.text=d,s.matched+=d,i=h&&h.call(s),i=i===t?p:s.mapSymbol(i),c=c.slice(d.length),s.input=c,i?i:s.lex()}}}},u.STATIC={INITIAL:"I",DEBUG_CONTEXT_LIMIT:20,END_TAG:"$EOF"};var s=new u({rules:[["b",/^\[(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["c",/^(?:[\t\r\n\f\x20]*)\]/,function(){this.text=this.yy.trim(this.text)}],["d",/^(?:[\t\r\n\f\x20]*)~=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["e",/^(?:[\t\r\n\f\x20]*)\|=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["f",/^(?:[\t\r\n\f\x20]*)\^=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["g",/^(?:[\t\r\n\f\x20]*)\$=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["h",/^(?:[\t\r\n\f\x20]*)\*=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["i",/^(?:[\t\r\n\f\x20]*)\=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["j",/^(?:(?:[\w]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))*)\(/,function(){this.text=this.yy.trim(this.text).slice(0,-1),this.pushState("fn")}],["k",/^[^\)]*/,function(){this.popState()},["fn"]],["l",/^(?:[\t\r\n\f\x20]*)\)/,function(){this.text=this.yy.trim(this.text)}],["m",/^:not\((?:[\t\r\n\f\x20]*)/i,function(){this.text=this.yy.trim(this.text)}],["n",/^(?:(?:[\w]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))*)/,function(){this.text=this.yy.unEscape(this.text)}],["o",/^"(\\"|[^"])*"/,function(){this.text=this.yy.unEscapeStr(this.text)}],["o",/^'(\\'|[^'])*'/,function(){this.text=this.yy.unEscapeStr(this.text)}],["p",/^#(?:(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))+)/,function(){this.text=this.yy.unEscape(this.text.slice(1))}],["q",/^\.(?:(?:[\w]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))*)/,function(){this.text=this.yy.unEscape(this.text.slice(1))}],["r",/^(?:[\t\r\n\f\x20]*),(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["s",/^::?/,0],["t",/^(?:[\t\r\n\f\x20]*)\+(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["u",/^(?:[\t\r\n\f\x20]*)>(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["v",/^(?:[\t\r\n\f\x20]*)~(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["w",/^\*/,0],["x",/^(?:[\t\r\n\f\x20]+)/,0],["y",/^./,0]]});return i.lexer=s,s.symbolMap={$EOF:"a",LEFT_BRACKET:"b",RIGHT_BRACKET:"c",INCLUDES:"d",DASH_MATCH:"e",PREFIX_MATCH:"f",SUFFIX_MATCH:"g",SUBSTRING_MATCH:"h",ALL_MATCH:"i",FUNCTION:"j",PARAMETER:"k",RIGHT_PARENTHESES:"l",NOT:"m",IDENT:"n",STRING:"o",HASH:"p",CLASS:"q",COMMA:"r",COLON:"s",PLUS:"t",GREATER:"u",TILDE:"v",UNIVERSAL:"w",S:"x",INVALID:"y",$START:"z",selectors_group:"aa",selector:"ab",simple_selector_sequence:"ac",combinator:"ad",type_selector:"ae",id_selector:"af",class_selector:"ag",attrib_match:"ah",attrib:"ai",attrib_val:"aj",pseudo:"ak",negation:"al",negation_arg:"am",suffix_selector:"an",suffix_selectors:"ao"},i.productions=[["z",["aa"]],["aa",["ab"],function(){return[this.$1]}],["aa",["aa","r","ab"],function(){this.$1.push(this.$3)}],["ab",["ac"]],["ab",["ab","ad","ac"],function(){this.$1.nextCombinator=this.$3.prevCombinator=this.$2;var t;return t=this.$1.order=this.$1.order||0,this.$3.order=t+1,this.$3.prev=this.$1,this.$1.next=this.$3,this.$3}],["ad",["t"]],["ad",["u"]],["ad",["v"]],["ad",["x"],function(){return" "}],["ae",["n"],function(){return{t:"tag",value:this.$1}}],["ae",["w"],function(){return{t:"tag",value:this.$1}}],["af",["p"],function(){return{t:"id",value:this.$1}}],["ag",["q"],function(){return{t:"cls",value:this.$1}}],["ah",["f"]],["ah",["g"]],["ah",["h"]],["ah",["i"]],["ah",["d"]],["ah",["e"]],["ai",["b","n","c"],function(){return{t:"attrib",value:{ident:this.$2}}}],["aj",["n"]],["aj",["o"]],["ai",["b","n","ah","aj","c"],function(){return{t:"attrib",value:{ident:this.$2,match:this.$3,value:this.$4}}}],["ak",["s","j","k","l"],function(){return{t:"pseudo",value:{fn:this.$2.toLowerCase(),param:this.$3}}}],["ak",["s","n"],function(){return{t:"pseudo",value:{ident:this.$2.toLowerCase()}}}],["al",["m","am","l"],function(){return{t:"pseudo",value:{fn:"not",param:this.$2}}}],["am",["ae"]],["am",["af"]],["am",["ag"]],["am",["ai"]],["am",["ak"]],["an",["af"]],["an",["ag"]],["an",["ai"]],["an",["ak"]],["an",["al"]],["ao",["an"],function(){return[this.$1]}],["ao",["ao","an"],function(){this.$1.push(this.$2)}],["ac",["ae"]],["ac",["ao"],function(){return{suffix:this.$1}}],["ac",["ae","ao"],function(){return{t:"tag",value:this.$1.value,suffix:this.$2}}]],i.table={gotos:{0:{aa:8,ab:9,ae:10,af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:17,ac:18},2:{ae:20,af:21,ag:22,ai:23,ak:24,am:25},9:{ad:33},10:{af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:34},17:{af:11,ag:12,ai:13,ak:14,al:15,an:35},19:{ah:43},28:{ab:46,ae:10,af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:17,ac:18},33:{ae:10,af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:17,ac:47},34:{af:11,ag:12,ai:13,ak:14,al:15,an:35},43:{aj:50},46:{ad:33}},action:{0:{b:[1,t,1],m:[1,t,2],n:[1,t,3],p:[1,t,4],q:[1,t,5],s:[1,t,6],w:[1,t,7]},1:{n:[1,t,19]},2:{b:[1,t,1],n:[1,t,3],p:[1,t,4],q:[1,t,5],s:[1,t,6],w:[1,t,7]},3:{a:[2,9],r:[2,9],t:[2,9],u:[2,9],v:[2,9],x:[2,9],p:[2,9],q:[2,9],b:[2,9],s:[2,9],m:[2,9],l:[2,9]},4:{a:[2,11],r:[2,11],t:[2,11],u:[2,11],v:[2,11],x:[2,11],p:[2,11],q:[2,11],b:[2,11],s:[2,11],m:[2,11],l:[2,11]},5:{a:[2,12],r:[2,12],t:[2,12],u:[2,12],v:[2,12],x:[2,12],p:[2,12],q:[2,12],b:[2,12],s:[2,12],m:[2,12],l:[2,12]},6:{j:[1,t,26],n:[1,t,27]},7:{a:[2,10],r:[2,10],t:[2,10],u:[2,10],v:[2,10],x:[2,10],p:[2,10],q:[2,10],b:[2,10],s:[2,10],m:[2,10],l:[2,10]},8:{a:[0],r:[1,t,28]},9:{a:[2,1],r:[2,1],t:[1,t,29],u:[1,t,30],v:[1,t,31],x:[1,t,32]},10:{a:[2,38],r:[2,38],t:[2,38],u:[2,38],v:[2,38],x:[2,38],b:[1,t,1],m:[1,t,2],p:[1,t,4],q:[1,t,5],s:[1,t,6]},11:{a:[2,31],r:[2,31],t:[2,31],u:[2,31],v:[2,31],x:[2,31],p:[2,31],q:[2,31],b:[2,31],s:[2,31],m:[2,31]},12:{a:[2,32],r:[2,32],t:[2,32],u:[2,32],v:[2,32],x:[2,32],p:[2,32],q:[2,32],b:[2,32],s:[2,32],m:[2,32]},13:{a:[2,33],r:[2,33],t:[2,33],u:[2,33],v:[2,33],x:[2,33],p:[2,33],q:[2,33],b:[2,33],s:[2,33],m:[2,33]},14:{a:[2,34],r:[2,34],t:[2,34],u:[2,34],v:[2,34],x:[2,34],p:[2,34],q:[2,34],b:[2,34],s:[2,34],m:[2,34]},15:{a:[2,35],r:[2,35],t:[2,35],u:[2,35],v:[2,35],x:[2,35],p:[2,35],q:[2,35],b:[2,35],s:[2,35],m:[2,35]},16:{a:[2,36],r:[2,36],t:[2,36],u:[2,36],v:[2,36],x:[2,36],p:[2,36],q:[2,36],b:[2,36],s:[2,36],m:[2,36]},17:{a:[2,39],r:[2,39],t:[2,39],u:[2,39],v:[2,39],x:[2,39],b:[1,t,1],m:[1,t,2],p:[1,t,4],q:[1,t,5],s:[1,t,6]},18:{a:[2,3],r:[2,3],t:[2,3],u:[2,3],v:[2,3],x:[2,3]},19:{c:[1,t,36],d:[1,t,37],e:[1,t,38],f:[1,t,39],g:[1,t,40],h:[1,t,41],i:[1,t,42]},20:{l:[2,26]},21:{l:[2,27]},22:{l:[2,28]},23:{l:[2,29]},24:{l:[2,30]},25:{l:[1,t,44]},26:{k:[1,t,45]},27:{a:[2,24],r:[2,24],t:[2,24],u:[2,24],v:[2,24],x:[2,24],p:[2,24],q:[2,24],b:[2,24],s:[2,24],m:[2,24],l:[2,24]},28:{b:[1,t,1],m:[1,t,2],n:[1,t,3],p:[1,t,4],q:[1,t,5],s:[1,t,6],w:[1,t,7]},29:{n:[2,5],w:[2,5],p:[2,5],q:[2,5],b:[2,5],s:[2,5],m:[2,5]},30:{n:[2,6],w:[2,6],p:[2,6],q:[2,6],b:[2,6],s:[2,6],m:[2,6]},31:{n:[2,7],w:[2,7],p:[2,7],q:[2,7],b:[2,7],s:[2,7],m:[2,7]},32:{n:[2,8],w:[2,8],p:[2,8],q:[2,8],b:[2,8],s:[2,8],m:[2,8]},33:{b:[1,t,1],m:[1,t,2],n:[1,t,3],p:[1,t,4],q:[1,t,5],s:[1,t,6],w:[1,t,7]},34:{a:[2,40],r:[2,40],t:[2,40],u:[2,40],v:[2,40],x:[2,40],b:[1,t,1],m:[1,t,2],p:[1,t,4],q:[1,t,5],s:[1,t,6]},35:{a:[2,37],r:[2,37],t:[2,37],u:[2,37],v:[2,37],x:[2,37],p:[2,37],q:[2,37],b:[2,37],s:[2,37],m:[2,37]},36:{a:[2,19],r:[2,19],t:[2,19],u:[2,19],v:[2,19],x:[2,19],p:[2,19],q:[2,19],b:[2,19],s:[2,19],m:[2,19],l:[2,19]},37:{n:[2,17],o:[2,17]},38:{n:[2,18],o:[2,18]},39:{n:[2,13],o:[2,13]},40:{n:[2,14],o:[2,14]},41:{n:[2,15],o:[2,15]},42:{n:[2,16],o:[2,16]},43:{n:[1,t,48],o:[1,t,49]},44:{a:[2,25],r:[2,25],t:[2,25],u:[2,25],v:[2,25],x:[2,25],p:[2,25],q:[2,25],b:[2,25],s:[2,25],m:[2,25]},45:{l:[1,t,51]},46:{a:[2,2],r:[2,2],t:[1,t,29],u:[1,t,30],v:[1,t,31],x:[1,t,32]},47:{a:[2,4],r:[2,4],t:[2,4],u:[2,4],v:[2,4],x:[2,4]},48:{c:[2,20]},49:{c:[2,21]},50:{c:[1,t,52]},51:{a:[2,23],r:[2,23],t:[2,23],u:[2,23],v:[2,23],x:[2,23],p:[2,23],q:[2,23],b:[2,23],s:[2,23],m:[2,23],l:[2,23]},52:{a:[2,22],r:[2,22],t:[2,22],u:[2,22],v:[2,22],x:[2,22],p:[2,22],q:[2,22],b:[2,22],s:[2,22],m:[2,22],l:[2,22]}}},i.parse=function(e,n){var r,o,i,u=this,s=u.lexer,c=u.table,f=c.gotos,l=c.action,p=u.productions,h=[null],d=n?"in file: "+n+" ":"",m=[0];for(s.resetInput(e);;){if(r=m[m.length-1],o||(o=s.lex()),i=o?l[r]&&l[r][o]:null,!i){var v,x=[];if(l[r])for(var y in l[r])x.push(u.lexer.mapReverseSymbol(y));throw v=d+"syntax error at line "+s.lineNumber+":\n"+s.showDebugInfo()+"\nexpect "+x.join(", "),new Error(v)}switch(i[a.TYPE_INDEX]){case a.SHIFT_TYPE:m.push(o),h.push(s.text),m.push(i[a.TO_INDEX]),o=null;break;case a.REDUCE_TYPE:var g,b=p[i[a.PRODUCTION_INDEX]],E=b.symbol||b[0],N=b.action||b[2],T=b.rhs||b[1],w=T.length,S=0,C=h[h.length-w];for(g=t,u.$$=C;S<w;S++)u["$"+(w-S)]=h[h.length-1-S];N&&(g=N.call(u)),C=g!==t?g:u.$$,m=m.slice(0,-1*w*2),h=h.slice(0,-1*w),m.push(E),h.push(C);var O=f[m[m.length-2]][m[m.length-1]];m.push(O);break;case a.ACCEPT_TYPE:return C}}},i}();t.exports=r},function(t,e){function n(t){var e=0;return parseFloat(t.replace(/\./g,function(){return 0===e++?".":""}))}function r(){var t,e;if((t=m.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/))&&(e=t[1]||t[2]))return v.documentMode||n(e)}function o(t,e){for(var n in e)t[n]=e[n]}function i(t,e){for(var n=0,r=t.length;n<r&&e(t[n],n)!==!1;n++);}var a,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,s=/^(?:button|input|object|select|textarea)$/i,c=/^a(?:rea)?$/i,f=/:|^on/,l={},p={tabindex:{get:function(t){var e=t.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):s.test(t.nodeName)||c.test(t.nodeName)&&t.href?0:void 0}}},h={get:function(t,e){return t[a[e]||e]?e.toLowerCase():void 0}},d={};p.style={get:function(t){return t.style.cssText}},a={hidefocus:"hideFocus",tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"};var m="undefined"!=typeof navigator?navigator.userAgent:"",v="undefined"!=typeof document?document:{},x=r();if(x&&x<8&&(p.style.set=function(t,e){t.style.cssText=e},o(d,{get:function(t,e){var n=t.getAttributeNode(e);return n&&(n.specified||n.nodeValue)?n.nodeValue:void 0}}),o(l,a),p.tabIndex=p.tabindex,i(["href","src","width","height","colSpan","rowSpan"],function(t){p[t]={get:function(e){var n=e.getAttribute(t,2);return null===n?void 0:n}}}),p.placeholder={get:function(t,e){return t[e]||d.get(t,e)}}),x){var y=p.href=p.href||{};y.set=function(t,e,n){var r,o=t.childNodes,i=o.length,a=i>0;for(i-=1;i>=0;i--)3!==o[i].nodeType&&(a=0);a&&(r=t.ownerDocument.createElement("b"),r.style.display="none",t.appendChild(r)),t.setAttribute(n,""+e), | ||
r&&t.removeChild(r)}}var g,b=/^[\s\xa0]+|[\s\xa0]+$/g,E=String.prototype.trim,N=" ";if(g=function(t,e){return e.getElementsByTagName(t)},v.createElement){var T=v.createElement("div");T.appendChild(document.createComment("")),T.getElementsByTagName("*").length&&(g=function(t,e){var n=e.getElementsByTagName(t),r="*"===t;if(r||"number"!=typeof n.length){for(var o,i=[],a=0;o=n[a++];)r&&1!==o.nodeType||i.push(o);return i}return n})}var w="sourceIndex"in(v&&v.documentElement||{})?function(t,e){return t.sourceIndex-e.sourceIndex}:function(t,e){if(!t.compareDocumentPosition||!e.compareDocumentPosition)return t.compareDocumentPosition?-1:1;var n=4&t.compareDocumentPosition(e);return n?-1:1},S=t.exports={ie:x,unique:function(){function t(t,n){return t===n?(e=!0,0):w(t,n)}var e,n=!0;return[0,0].sort(function(){return n=!1,0}),function(r){if(e=n,r.sort(t),e)for(var o=1,i=r.length;o<i;)r[o]===r[o-1]?(r.splice(o,1),--i):o++;return r}}(),getElementsByTagName:g,getSimpleAttr:function(t,e){var n=t&&t.getAttributeNode(e);if(n&&n.specified)return"value"in n?n.value:n.nodeValue},contains:x?function(t,e){return 9===t.nodeType&&(t=t.documentElement),e=e.parentNode,t===e||!(!e||1!==e.nodeType)&&(t.contains&&t.contains(e))}:function(t,e){return!!(16&t.compareDocumentPosition(e))},isTag:function(t,e){return"*"===e||t.nodeName.toLowerCase()===e.toLowerCase()},hasSingleClass:function(t,e){var n=t&&S.getSimpleAttr(t,"class");return n&&(n=n.replace(/[\r\t\n]/g,N))&&(N+n+N).indexOf(N+e+N)>-1},startsWith:function(t,e){return 0===t.lastIndexOf(e,0)},endsWith:function(t,e){var n=t.length-e.length;return n>=0&&t.indexOf(e,n)===n},trim:E?function(t){return null==t?"":E.call(t)}:function(t){return null==t?"":(t+"").replace(b,"")},attr:function(t,e){var n,r;if(e=e.toLowerCase(),e=l[e]||e,n=u.test(e)?h:f.test(e)?d:p[e],t&&1===t.nodeType){if("form"===t.nodeName.toLowerCase()&&(n=d),n&&n.get)return n.get(t,e);if(r=t.getAttribute(e),""===r){var o=t.getAttributeNode(e);if(!o||!o.specified)return}return null===r?void 0:r}}}},function(t,e){function n(t){var e=function(t){return t.trim()},n={};return r(t).map(e).filter(Boolean).forEach(function(t){var e=t.indexOf(":"),r=t.substr(0,e).trim(),o=t.substr(e+1).trim();n[r]=o}),n}function r(t){for(var e,n=[],r=0,o=";",i=/url\([^\)]+$/,a="";r<t.length;)e=t.indexOf(o,r),e===-1&&(e=t.length),a+=t.substring(r,e),i.test(a)?(a+=";",r=e+1):(n.push(a),a="",r=e+1);return n}function o(t){return Object.keys(t).map(function(e){return e+":"+t[e]}).join(";")}function i(t){return o(n(t))}t.exports.parse=n,t.exports.stringify=o,t.exports.normalize=i},function(e,n){e.exports=t}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactFauxDOM=e(require("react")):t.ReactFauxDOM=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=16)}([function(t,e,n){function r(t,e){this.nodeName=t,this.parentNode=e,this.childNodes=[],this.eventListeners={},this.text="";var n=this,r=this.props={ref:function(t){n.component=t},style:{setProperty:function(t,e){r.style[p(t)]=e},getProperty:function(t){return r.style[p(t)]||""},removeProperty:function(t){delete r.style[p(t)]}}};this.style=r.style}var i=n(15),o=n(14),a=n(10),u=n(1),s=n(7),c=n(8),f=n(6),l=n(2),p=n(9);r.prototype.nodeType=1,r.prototype.eventNameMappings={blur:"onBlur",change:"onChange",click:"onClick",contextmenu:"onContextMenu",copy:"onCopy",cut:"onCut",doubleclick:"onDoubleClick",drag:"onDrag",dragend:"onDragEnd",dragenter:"onDragEnter",dragexit:"onDragExit",dragleave:"onDragLeave",dragover:"onDragOver",dragstart:"onDragStart",drop:"onDrop",error:"onError",focus:"onFocus",input:"onInput",keydown:"onKeyDown",keypress:"onKeyPress",keyup:"onKeyUp",load:"onLoad",mousedown:"onMouseDown",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseover:"onMouseOver",mouseup:"onMouseUp",paste:"onPaste",scroll:"onScroll",submit:"onSubmit",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",wheel:"onWheel"},r.prototype.skipNameTransformationExpressions=[/^data-/,/^aria-/],r.prototype.attributeNameMappings={class:"className"},r.prototype.attributeToPropName=function(t){return this.skipNameTransformationExpressions.map(function(e){return e.test(t)}).some(Boolean)?t:this.attributeNameMappings[t]||u(t)},r.prototype.setAttribute=function(t,e){if("style"===t&&s(e)){var n=o.parse(e);for(var r in n)this.style.setProperty(r,n[r])}else this.props[this.attributeToPropName(t)]=e},r.prototype.getAttribute=function(t){return this.props[this.attributeToPropName(t)]},r.prototype.getAttributeNode=function(t){var e=this.getAttribute(t);if(!c(e))return{value:e,specified:!0}},r.prototype.removeAttribute=function(t){delete this.props[this.attributeToPropName(t)]},r.prototype.eventToPropName=function(t){return this.eventNameMappings[t]||t},r.prototype.addEventListener=function(t,e){var n=this.eventToPropName(t);this.eventListeners[n]=this.eventListeners[n]||[],this.eventListeners[n].push(e)},r.prototype.removeEventListener=function(t,e){var n=this.eventListeners[this.eventToPropName(t)];if(n){var r=n.indexOf(e);r!==-1&&n.splice(r,1)}},r.prototype.appendChild=function(t){return t.parentNode=this,this.childNodes.push(t),t},r.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(e);return t.parentNode=this,n!==-1?this.childNodes.splice(n,0,t):this.childNodes.push(t),t},r.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);this.childNodes.splice(e,1)},r.prototype.querySelector=function(){return this.querySelectorAll.apply(this,arguments)[0]||null},r.prototype.querySelectorAll=function(t){if(!t)throw new Error("Not enough arguments");return a(t,this)},r.prototype.getElementsByTagName=function(t){var e=this.children;if(0===e.length)return[];var n;n="*"!==t?e.filter(function(e){return e.nodeName===t}):e;var r=e.map(function(e){return e.getElementsByTagName(t)});return n.concat.apply(n,r)},r.prototype.getElementById=function(t){var e=this.children;if(0===e.length)return null;var n=e.filter(function(e){return e.getAttribute("id")===t})[0];return n?n:e.map(function(e){return e.getElementById(t)}).filter(function(t){return null!==t})[0]||null},r.prototype.getBoundingClientRect=function(){if(this.component)return this.component.getBoundingClientRect()},r.prototype.toReact=function(t){function e(){return"faux-dom-"+t}t=t||0;var n=f({},this.props);n.style=f({},n.style);var o=this;return c(n.key)&&(n.key=e()),delete n.style.setProperty,delete n.style.getProperty,delete n.style.removeProperty,f(n,l(this.eventListeners,function(t){return function(e){var n;e&&(n=e.nativeEvent,n.syntheticEvent=e),l(t,function(t){t.call(o,n)})}})),i.createElement(this.nodeName,n,this.text||this.children.map(function(t,e){return t instanceof r?t.toReact(e):t}))},Object.defineProperties(r.prototype,{nextSibling:{get:function(){var t=this.parentNode.children;return t[t.indexOf(this)+1]}},previousSibling:{get:function(){var t=this.parentNode.children;return t[t.indexOf(this)-1]}},innerHTML:{get:function(){return this.text},set:function(t){this.text=t}},textContent:{get:function(){return this.text},set:function(t){this.text=t}},children:{get:function(){return this.childNodes.filter(function(t){return!t.nodeType||1===t.nodeType})}}}),["setAttribute","getAttribute","getAttributeNode","removeAttribute","getElementsByTagName","getElementById"].forEach(function(t){var e=r.prototype[t];r.prototype[t+"NS"]=function(){return e.apply(this,Array.prototype.slice.call(arguments,1))}}),t.exports=r},function(t,e){function n(t,e,n){return 0!==n?e.toUpperCase():e}function r(t){var e=t.replace(i,n);return i.lastIndex=0,e}var i=/\-+([a-z])/gi;t.exports=r},function(t,e){function n(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}t.exports=n},function(t,e){var n={getComputedStyle:function(t){return{getPropertyValue:t.style.getProperty}}};t.exports=n},function(t,e){var n={animateFauxDOM:function(t){this.animateFauxDOMUntil=Math.max(Date.now()+t,this.animateFauxDOMUntil),this.fauxDOMAnimationInterval||(this.fauxDOMAnimationInterval=setInterval(function(){Date.now()<this.animateFauxDOMUntil?this.drawFauxDOM():this.stopAnimatingFauxDOM()}.bind(this),16))},stopAnimatingFauxDOM:function(){this.fauxDOMAnimationInterval=clearInterval(this.fauxDOMAnimationInterval),this.animateFauxDOMUntil=0},isAnimatingFauxDOM:function(){return!!this.fauxDOMAnimationInterval},componentWillUnmount:function(){this.stopAnimatingFauxDOM()}};t.exports=n},function(t,e,n){var r=n(0),i=n(2),o={componentWillMount:function(){this.connectedFauxDOM={},this.animateFauxDOMUntil=0},connectFauxDOM:function(t,e){return this.connectedFauxDOM[e]="string"!=typeof t?t:new r(t),setTimeout(this.drawFauxDOM.bind(this)),this.connectedFauxDOM[e]},drawFauxDOM:function(){var t=i(this.connectedFauxDOM,function(t){return t.toReact()});this.setState(t)}};t.exports=o},function(t,e){function n(t){for(var e,n=arguments,r=1;r<n.length;r++){e=n[r];for(var i in e)t[i]=e[i]}return t}t.exports=n},function(t,e){function n(t){return"string"==typeof t}t.exports=n},function(t,e){function n(t){return void 0===t}t.exports=n},function(t,e,n){function r(t){var e=i(t);return e.charAt(0).toUpperCase()===t.charAt(0)?t.charAt(0)+e.slice(1):"-"===t.charAt(0)?0===e.indexOf("ms")?e:e.charAt(0).toUpperCase()+e.slice(1):e}var i=n(1);t.exports=r},function(t,e,n){t.exports=n(11)},function(t,e,n){function r(t){return t.replace(I,O)}function i(){C={}}function o(t,e){do t=t[e];while(t&&1!==t.nodeType);return t}function a(t){var e,n=0,r=0;return"number"==typeof t?r=t:"odd"===t?(n=2,r=1):"even"===t?(n=2,r=0):(e=t.replace(/\s/g,"").match(D))&&(e[1]?(n=parseInt(e[2],10),isNaN(n)&&(n="-"===e[2]?-1:1)):n=0,r=parseInt(e[3],10)||0),{a:n,b:r}}function u(t,e,n,r){if(0===e){if(t===n)return r}else if((t-n)/e>=0&&(t-n)%e===0&&r)return 1}function s(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"html"!==e.nodeName.toLowerCase()}function c(t,e){return x(t,null,e)}function f(t,e){if(!e)return!0;if(!t)return!1;if(9===t.nodeType)return!1;var n,r,i=1,o=e.suffix;if("tag"===e.t&&(i&=g.tag(t,e.value)),i&&o)for(n=o.length,r=0;i&&r<n;r++){var a=o[r],u=a.t;g[u]&&(i&=g[u](t,a.value))}return i}function l(t,e){var n,r=1,i=t,a=e;do{if(r&=f(t,e),!r)return n=L[e.nextCombinator],n.immediate?{el:o(i,L[a.nextCombinator].dir),match:a}:{el:t&&o(t,n.dir),match:e};if(e=e&&e.prev,!e)return!0;if(n=L[e.nextCombinator],t=o(t,n.dir),!n.immediate)return{el:t,match:e}}while(t);return{el:o(i,L[a.nextCombinator].dir),match:a}}function p(t,e){var n,r=e;do{if(!f(t,r))return null;if(r=r.prev,!r)return!0;n=L[r.nextCombinator],t=o(t,n.dir)}while(t&&n.immediate);return t?{el:t,match:r}:null}function h(t){var e;return v?(e=t.getAttribute(N))||t.setAttribute(N,e=+new Date+"_"+ ++E):(e=t[N])||(e=t[N]=+new Date+"_"+ ++E),e}function d(t,e){var n,r=h(t);return n=r+"_"+(e.order||0),n in C?C[n]:(C[n]=m(t,e),C[n])}function m(t,e){var n=l(t,e);if(n===!0)return!0;for(t=n.el,e=n.match;t;){if(d(t,e))return!0;t=o(t,L[e.nextCombinator].dir)}return!1}function x(t,e,n){T[t]||(T[t]=b.parse(t));var r,o,a=T[t],u=0,c=a.length,f=[];for(n&&(e=e||n[0].ownerDocument),r=e&&e.ownerDocument||"undefined"!=typeof document&&document,e&&9===e.nodeType&&!r&&(r=e),e=e||r,v=s(e);u<c;u++){i(),o=a[u];var l,h,m,x,g=o.suffix,N=n,E=null;if(!N){if(g&&!v)for(l=0,h=g.length;l<h;l++){var C=g[l];if("id"===C.t){E=C.value;break}}if(E){var w=!e.getElementById,A=y.contains(r,e),D=w?A?r.getElementById(E):null:e.getElementById(E);if(!D&&w||D&&S(D,"id")!==E){for(var I=y.getElementsByTagName("*",e),O=I.length,M=0;M<O;M++)if(D=I[M],S(D,"id")===E){N=[D];break}M===O&&(N=[])}else A&&D&&e!==r&&(D=y.contains(e,D)?D:null),N=D?[D]:[]}else N=y.getElementsByTagName(o.value||"*",e)}if(m=0,x=N.length)for(;m<x;m++){var $=N[m],_=p($,o);_===!0?f.push($):_&&d(_.el,_.match)&&f.push($)}}return c>1&&(f=y.unique(f)),f}var v,g,y=n(13),b=n(12),N="_ks_data_selector_id_",T={},E=0,C={},S=function(t,e){return v?y.getSimpleAttr(t,e):y.attr(t,e)},w=y.hasSingleClass,A=y.isTag,D=/^(([+-]?(?:\d+)?)?n)?([+-]?\d+)?$/,I=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,O=function(t,e){var n="0x"+e-65536;return isNaN(n)?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},M={"nth-child":function(t,e){var n=a(e),r=n.a,i=n.b;if(0===r&&0===i)return 0;var o=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,p=0,h=l.length;p<h;p++)if(c=l[p],1===c.nodeType&&(o++,f=u(o,r,i,c===t),void 0!==f))return f;return 0},"nth-last-child":function(t,e){var n=a(e),r=n.a,i=n.b;if(0===r&&0===i)return 0;var o=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,p=l.length,h=p-1;h>=0;h--)if(c=l[h],1===c.nodeType&&(o++,f=u(o,r,i,c===t),void 0!==f))return f;return 0},"nth-of-type":function(t,e){var n=a(e),r=n.a,i=n.b;if(0===r&&0===i)return 0;var o=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,p=t.tagName,h=0,d=l.length;h<d;h++)if(c=l[h],c.tagName===p&&(o++,f=u(o,r,i,c===t),void 0!==f))return f;return 0},"nth-last-of-type":function(t,e){var n=a(e),r=n.a,i=n.b;if(0===r&&0===i)return 0;var o=0,s=t.parentNode;if(s)for(var c,f,l=s.childNodes,p=l.length,h=t.tagName,d=p-1;d>=0;d--)if(c=l[d],c.tagName===h&&(o++,f=u(o,r,i,c===t),void 0!==f))return f;return 0},lang:function(t,e){var n;e=r(e.toLowerCase());do if(n=v?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1},not:function(t,e){return!g[e.t](t,e.value)}},$={empty:function(t){for(var e,n,r=t.childNodes,i=0,o=r.length-1;i<o;i++)if(e=r[i],n=e.nodeType,1===n||3===n||4===n||5===n)return 0;return 1},root:function(t){return 9===t.nodeType||t.ownerDocument&&t===t.ownerDocument.documentElement},"first-child":function(t){return M["nth-child"](t,1)},"last-child":function(t){return M["nth-last-child"](t,1)},"first-of-type":function(t){return M["nth-of-type"](t,1)},"last-of-type":function(t){return M["nth-last-of-type"](t,1)},"only-child":function(t){return $["first-child"](t)&&$["last-child"](t)},"only-of-type":function(t){return $["first-of-type"](t)&&$["last-of-type"](t)},focus:function(t){var e=t.ownerDocument;return e&&t===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(t.type||t.href||t.tabIndex>=0)},target:function(t){var e=location.hash;return e&&e.slice(1)===S(t,"id")},enabled:function(t){return!t.disabled},disabled:function(t){return t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&t.checked||"option"===e&&t.selected}},_={"~=":function(t,e){return!e||e.indexOf(" ")>-1?0:(" "+t+" ").indexOf(" "+e+" ")!==-1},"|=":function(t,e){return(" "+t).indexOf(" "+e+"-")!==-1},"^=":function(t,e){return e&&y.startsWith(t,e)},"$=":function(t,e){return e&&y.endsWith(t,e)},"*=":function(t,e){return e&&t.indexOf(e)!==-1},"=":function(t,e){return t===e}},L={">":{dir:"parentNode",immediate:1}," ":{dir:"parentNode"},"+":{dir:"previousSibling",immediate:1},"~":{dir:"previousSibling"}};g={tag:A,cls:w,id:function(t,e){return S(t,"id")===e},attrib:function(t,e){var n=e.ident;v||(n=n.toLowerCase());var r=S(t,n),i=e.match;if(!i&&void 0!==r)return 1;if(i){if(void 0===r)return 0;var o=_[i];if(o)return o(r+"",e.value+"")}return 0},pseudo:function(t,e){var n,r,i;if(r=e.fn){if(!(n=M[r]))throw new SyntaxError("Syntax error: not support pseudo: "+r);return n(t,e.param)}if(i=e.ident){if(!$[i])throw new SyntaxError("Syntax error: not support pseudo: "+i);return $[i](t)}return 0}},b.lexer.yy={trim:y.trim,unEscape:r,unEscapeStr:function(t){return this.unEscape(t.slice(1,-1))}},t.exports=x,x.parse=function(t){return b.parse(t)},x.matches=c,x.util=y,x.version="@VERSION@"},function(t,e,n){var r=function(t){function e(t,e){for(var n in e)t[n]=e[n]}function n(t){return"[object Array]"===Object.prototype.toString.call(t)}function r(t,e,r){if(t){var i,o,a,u=0;if(r=r||null,n(t))for(a=t.length,o=t[0];u<a&&e.call(r,o,u,t)!==!1;o=t[++u]);else for(i in t)if(e.call(r,t[i],i,t)===!1)break}}function i(t,e){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}var o={},a={SHIFT_TYPE:1,REDUCE_TYPE:2,ACCEPT_TYPE:0,TYPE_INDEX:0,PRODUCTION_INDEX:1,TO_INDEX:2},u=function(t){var n=this;n.rules=[],e(n,t),n.resetInput(n.input)};u.prototype={resetInput:function(t){e(this,{input:t,matched:"",stateStack:[u.STATIC.INITIAL],match:"",text:"",firstLine:1,lineNumber:1,lastLine:1,firstColumn:1,lastColumn:1})},getCurrentRules:function(){var t=this,e=t.stateStack[t.stateStack.length-1],n=[];return t.mapState&&(e=t.mapState(e)),r(t.rules,function(t){var r=t.state||t[3];r?i(e,r)&&n.push(t):e===u.STATIC.INITIAL&&n.push(t)}),n},pushState:function(t){this.stateStack.push(t)},popState:function(t){t=t||1;for(var e;t--;)e=this.stateStack.pop();return e},showDebugInfo:function(){var t=this,e=u.STATIC.DEBUG_CONTEXT_LIMIT,n=t.matched,r=t.match,i=t.input;n=n.slice(0,n.length-r.length);var o=(n.length>e?"...":"")+n.slice(0-e).replace(/\n/," "),a=r+i;return a=a.slice(0,e)+(a.length>e?"...":""),o+a+"\n"+new Array(o.length+1).join("-")+"^"},mapSymbol:function(t){return this.symbolMap[t]},mapReverseSymbol:function(t){var e,n=this,r=n.symbolMap,i=n.reverseSymbolMap;if(!i&&r){i=n.reverseSymbolMap={};for(e in r)i[r[e]]=e}return i?i[t]:t},lex:function(){var n,r,i,o,a,s=this,c=s.input,f=s.getCurrentRules();if(s.match=s.text="",!c)return s.mapSymbol(u.STATIC.END_TAG);for(n=0;n<f.length;n++){r=f[n];var l=r.regexp||r[1],p=r.token||r[0],h=r.action||r[2]||t;if(i=c.match(l)){a=i[0].match(/\n.*/g),a&&(s.lineNumber+=a.length),e(s,{firstLine:s.lastLine,lastLine:s.lineNumber+1,firstColumn:s.lastColumn,lastColumn:a?a[a.length-1].length-1:s.lastColumn+i[0].length});var d;return d=s.match=i[0],s.matches=i,s.text=d,s.matched+=d,o=h&&h.call(s),o=o===t?p:s.mapSymbol(o),c=c.slice(d.length),s.input=c,o?o:s.lex()}}}},u.STATIC={INITIAL:"I",DEBUG_CONTEXT_LIMIT:20,END_TAG:"$EOF"};var s=new u({rules:[["b",/^\[(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["c",/^(?:[\t\r\n\f\x20]*)\]/,function(){this.text=this.yy.trim(this.text)}],["d",/^(?:[\t\r\n\f\x20]*)~=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["e",/^(?:[\t\r\n\f\x20]*)\|=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["f",/^(?:[\t\r\n\f\x20]*)\^=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["g",/^(?:[\t\r\n\f\x20]*)\$=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["h",/^(?:[\t\r\n\f\x20]*)\*=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["i",/^(?:[\t\r\n\f\x20]*)\=(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["j",/^(?:(?:[\w]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))*)\(/,function(){this.text=this.yy.trim(this.text).slice(0,-1),this.pushState("fn")}],["k",/^[^\)]*/,function(){this.popState()},["fn"]],["l",/^(?:[\t\r\n\f\x20]*)\)/,function(){this.text=this.yy.trim(this.text)}],["m",/^:not\((?:[\t\r\n\f\x20]*)/i,function(){this.text=this.yy.trim(this.text)}],["n",/^(?:(?:[\w]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))*)/,function(){this.text=this.yy.unEscape(this.text)}],["o",/^"(\\"|[^"])*"/,function(){this.text=this.yy.unEscapeStr(this.text)}],["o",/^'(\\'|[^'])*'/,function(){this.text=this.yy.unEscapeStr(this.text)}],["p",/^#(?:(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))+)/,function(){this.text=this.yy.unEscape(this.text.slice(1))}],["q",/^\.(?:(?:[\w]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))(?:[\w\d-]|[^\x00-\xa0]|(?:\\[^\n\r\f0-9a-f]))*)/,function(){this.text=this.yy.unEscape(this.text.slice(1))}],["r",/^(?:[\t\r\n\f\x20]*),(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["s",/^::?/,0],["t",/^(?:[\t\r\n\f\x20]*)\+(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["u",/^(?:[\t\r\n\f\x20]*)>(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["v",/^(?:[\t\r\n\f\x20]*)~(?:[\t\r\n\f\x20]*)/,function(){this.text=this.yy.trim(this.text)}],["w",/^\*/,0],["x",/^(?:[\t\r\n\f\x20]+)/,0],["y",/^./,0]]});return o.lexer=s,s.symbolMap={$EOF:"a",LEFT_BRACKET:"b",RIGHT_BRACKET:"c",INCLUDES:"d",DASH_MATCH:"e",PREFIX_MATCH:"f",SUFFIX_MATCH:"g",SUBSTRING_MATCH:"h",ALL_MATCH:"i",FUNCTION:"j",PARAMETER:"k",RIGHT_PARENTHESES:"l",NOT:"m",IDENT:"n",STRING:"o",HASH:"p",CLASS:"q",COMMA:"r",COLON:"s",PLUS:"t",GREATER:"u",TILDE:"v",UNIVERSAL:"w",S:"x",INVALID:"y",$START:"z",selectors_group:"aa",selector:"ab",simple_selector_sequence:"ac",combinator:"ad",type_selector:"ae",id_selector:"af",class_selector:"ag",attrib_match:"ah",attrib:"ai",attrib_val:"aj",pseudo:"ak",negation:"al",negation_arg:"am",suffix_selector:"an",suffix_selectors:"ao"},o.productions=[["z",["aa"]],["aa",["ab"],function(){return[this.$1]}],["aa",["aa","r","ab"],function(){this.$1.push(this.$3)}],["ab",["ac"]],["ab",["ab","ad","ac"],function(){this.$1.nextCombinator=this.$3.prevCombinator=this.$2;var t;return t=this.$1.order=this.$1.order||0,this.$3.order=t+1,this.$3.prev=this.$1,this.$1.next=this.$3,this.$3}],["ad",["t"]],["ad",["u"]],["ad",["v"]],["ad",["x"],function(){return" "}],["ae",["n"],function(){return{t:"tag",value:this.$1}}],["ae",["w"],function(){return{t:"tag",value:this.$1}}],["af",["p"],function(){return{t:"id",value:this.$1}}],["ag",["q"],function(){return{t:"cls",value:this.$1}}],["ah",["f"]],["ah",["g"]],["ah",["h"]],["ah",["i"]],["ah",["d"]],["ah",["e"]],["ai",["b","n","c"],function(){return{t:"attrib",value:{ident:this.$2}}}],["aj",["n"]],["aj",["o"]],["ai",["b","n","ah","aj","c"],function(){return{t:"attrib",value:{ident:this.$2,match:this.$3,value:this.$4}}}],["ak",["s","j","k","l"],function(){return{t:"pseudo",value:{fn:this.$2.toLowerCase(),param:this.$3}}}],["ak",["s","n"],function(){return{t:"pseudo",value:{ident:this.$2.toLowerCase()}}}],["al",["m","am","l"],function(){return{t:"pseudo",value:{fn:"not",param:this.$2}}}],["am",["ae"]],["am",["af"]],["am",["ag"]],["am",["ai"]],["am",["ak"]],["an",["af"]],["an",["ag"]],["an",["ai"]],["an",["ak"]],["an",["al"]],["ao",["an"],function(){return[this.$1]}],["ao",["ao","an"],function(){this.$1.push(this.$2)}],["ac",["ae"]],["ac",["ao"],function(){return{suffix:this.$1}}],["ac",["ae","ao"],function(){return{t:"tag",value:this.$1.value,suffix:this.$2}}]],o.table={gotos:{0:{aa:8,ab:9,ae:10,af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:17,ac:18},2:{ae:20,af:21,ag:22,ai:23,ak:24,am:25},9:{ad:33},10:{af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:34},17:{af:11,ag:12,ai:13,ak:14,al:15,an:35},19:{ah:43},28:{ab:46,ae:10,af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:17,ac:18},33:{ae:10,af:11,ag:12,ai:13,ak:14,al:15,an:16,ao:17,ac:47},34:{af:11,ag:12,ai:13,ak:14,al:15,an:35},43:{aj:50},46:{ad:33}},action:{0:{b:[1,t,1],m:[1,t,2],n:[1,t,3],p:[1,t,4],q:[1,t,5],s:[1,t,6],w:[1,t,7]},1:{n:[1,t,19]},2:{b:[1,t,1],n:[1,t,3],p:[1,t,4],q:[1,t,5],s:[1,t,6],w:[1,t,7]},3:{a:[2,9],r:[2,9],t:[2,9],u:[2,9],v:[2,9],x:[2,9],p:[2,9],q:[2,9],b:[2,9],s:[2,9],m:[2,9],l:[2,9]},4:{a:[2,11],r:[2,11],t:[2,11],u:[2,11],v:[2,11],x:[2,11],p:[2,11],q:[2,11],b:[2,11],s:[2,11],m:[2,11],l:[2,11]},5:{a:[2,12],r:[2,12],t:[2,12],u:[2,12],v:[2,12],x:[2,12],p:[2,12],q:[2,12],b:[2,12],s:[2,12],m:[2,12],l:[2,12]},6:{j:[1,t,26],n:[1,t,27]},7:{a:[2,10],r:[2,10],t:[2,10],u:[2,10],v:[2,10],x:[2,10],p:[2,10],q:[2,10],b:[2,10],s:[2,10],m:[2,10],l:[2,10]},8:{a:[0],r:[1,t,28]},9:{a:[2,1],r:[2,1],t:[1,t,29],u:[1,t,30],v:[1,t,31],x:[1,t,32]},10:{a:[2,38],r:[2,38],t:[2,38],u:[2,38],v:[2,38],x:[2,38],b:[1,t,1],m:[1,t,2],p:[1,t,4],q:[1,t,5],s:[1,t,6]},11:{a:[2,31],r:[2,31],t:[2,31],u:[2,31],v:[2,31],x:[2,31],p:[2,31],q:[2,31],b:[2,31],s:[2,31],m:[2,31]},12:{a:[2,32],r:[2,32],t:[2,32],u:[2,32],v:[2,32],x:[2,32],p:[2,32],q:[2,32],b:[2,32],s:[2,32],m:[2,32]},13:{a:[2,33],r:[2,33],t:[2,33],u:[2,33],v:[2,33],x:[2,33],p:[2,33],q:[2,33],b:[2,33],s:[2,33],m:[2,33]},14:{a:[2,34],r:[2,34],t:[2,34],u:[2,34],v:[2,34],x:[2,34],p:[2,34],q:[2,34],b:[2,34],s:[2,34],m:[2,34]},15:{a:[2,35],r:[2,35],t:[2,35],u:[2,35],v:[2,35],x:[2,35],p:[2,35],q:[2,35],b:[2,35],s:[2,35],m:[2,35]},16:{a:[2,36],r:[2,36],t:[2,36],u:[2,36],v:[2,36],x:[2,36],p:[2,36],q:[2,36],b:[2,36],s:[2,36],m:[2,36]},17:{a:[2,39],r:[2,39],t:[2,39],u:[2,39],v:[2,39],x:[2,39],b:[1,t,1],m:[1,t,2],p:[1,t,4],q:[1,t,5],s:[1,t,6]},18:{a:[2,3],r:[2,3],t:[2,3],u:[2,3],v:[2,3],x:[2,3]},19:{c:[1,t,36],d:[1,t,37],e:[1,t,38],f:[1,t,39],g:[1,t,40],h:[1,t,41],i:[1,t,42]},20:{l:[2,26]},21:{l:[2,27]},22:{l:[2,28]},23:{l:[2,29]},24:{l:[2,30]},25:{l:[1,t,44]},26:{k:[1,t,45]},27:{a:[2,24],r:[2,24],t:[2,24],u:[2,24],v:[2,24],x:[2,24],p:[2,24],q:[2,24],b:[2,24],s:[2,24],m:[2,24],l:[2,24]},28:{b:[1,t,1],m:[1,t,2],n:[1,t,3],p:[1,t,4],q:[1,t,5],s:[1,t,6],w:[1,t,7]},29:{n:[2,5],w:[2,5],p:[2,5],q:[2,5],b:[2,5],s:[2,5],m:[2,5]},30:{n:[2,6],w:[2,6],p:[2,6],q:[2,6],b:[2,6],s:[2,6],m:[2,6]},31:{n:[2,7],w:[2,7],p:[2,7],q:[2,7],b:[2,7],s:[2,7],m:[2,7]},32:{n:[2,8],w:[2,8],p:[2,8],q:[2,8],b:[2,8],s:[2,8],m:[2,8]},33:{b:[1,t,1],m:[1,t,2],n:[1,t,3],p:[1,t,4],q:[1,t,5],s:[1,t,6],w:[1,t,7]},34:{a:[2,40],r:[2,40],t:[2,40],u:[2,40],v:[2,40],x:[2,40],b:[1,t,1],m:[1,t,2],p:[1,t,4],q:[1,t,5],s:[1,t,6]},35:{a:[2,37],r:[2,37],t:[2,37],u:[2,37],v:[2,37],x:[2,37],p:[2,37],q:[2,37],b:[2,37],s:[2,37],m:[2,37]},36:{a:[2,19],r:[2,19],t:[2,19],u:[2,19],v:[2,19],x:[2,19],p:[2,19],q:[2,19],b:[2,19],s:[2,19],m:[2,19],l:[2,19]},37:{n:[2,17],o:[2,17]},38:{n:[2,18],o:[2,18]},39:{n:[2,13],o:[2,13]},40:{n:[2,14],o:[2,14]},41:{n:[2,15],o:[2,15]},42:{n:[2,16],o:[2,16]},43:{n:[1,t,48],o:[1,t,49]},44:{a:[2,25],r:[2,25],t:[2,25],u:[2,25],v:[2,25],x:[2,25],p:[2,25],q:[2,25],b:[2,25],s:[2,25],m:[2,25]},45:{l:[1,t,51]},46:{a:[2,2],r:[2,2],t:[1,t,29],u:[1,t,30],v:[1,t,31],x:[1,t,32]},47:{a:[2,4],r:[2,4],t:[2,4],u:[2,4],v:[2,4],x:[2,4]},48:{c:[2,20]},49:{c:[2,21]},50:{c:[1,t,52]},51:{a:[2,23],r:[2,23],t:[2,23],u:[2,23],v:[2,23],x:[2,23],p:[2,23],q:[2,23],b:[2,23],s:[2,23],m:[2,23],l:[2,23]},52:{a:[2,22],r:[2,22],t:[2,22],u:[2,22],v:[2,22],x:[2,22],p:[2,22],q:[2,22],b:[2,22],s:[2,22],m:[2,22],l:[2,22]}}},o.parse=function(e,n){var r,i,o,u=this,s=u.lexer,c=u.table,f=c.gotos,l=c.action,p=u.productions,h=[null],d=n?"in file: "+n+" ":"",m=[0];for(s.resetInput(e);;){if(r=m[m.length-1],i||(i=s.lex()),o=i?l[r]&&l[r][i]:null,!o){var x,v=[];if(l[r])for(var g in l[r])v.push(u.lexer.mapReverseSymbol(g));throw x=d+"syntax error at line "+s.lineNumber+":\n"+s.showDebugInfo()+"\nexpect "+v.join(", "),new Error(x)}switch(o[a.TYPE_INDEX]){case a.SHIFT_TYPE:m.push(i),h.push(s.text),m.push(o[a.TO_INDEX]),i=null;break;case a.REDUCE_TYPE:var y,b=p[o[a.PRODUCTION_INDEX]],N=b.symbol||b[0],T=b.action||b[2],E=b.rhs||b[1],C=E.length,S=0,w=h[h.length-C];for(y=t,u.$$=w;S<C;S++)u["$"+(C-S)]=h[h.length-1-S];T&&(y=T.call(u)),w=y!==t?y:u.$$,m=m.slice(0,-1*C*2),h=h.slice(0,-1*C),m.push(N),h.push(w);var A=f[m[m.length-2]][m[m.length-1]];m.push(A);break;case a.ACCEPT_TYPE:return w}}},o}();t.exports=r},function(t,e){function n(t){var e=0;return parseFloat(t.replace(/\./g,function(){return 0===e++?".":""}))}function r(){var t,e;if((t=m.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/))&&(e=t[1]||t[2]))return x.documentMode||n(e)}function i(t,e){for(var n in e)t[n]=e[n]}function o(t,e){for(var n=0,r=t.length;n<r&&e(t[n],n)!==!1;n++);}var a,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,s=/^(?:button|input|object|select|textarea)$/i,c=/^a(?:rea)?$/i,f=/:|^on/,l={},p={tabindex:{get:function(t){var e=t.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):s.test(t.nodeName)||c.test(t.nodeName)&&t.href?0:void 0}}},h={get:function(t,e){return t[a[e]||e]?e.toLowerCase():void 0}},d={};p.style={get:function(t){return t.style.cssText}},a={hidefocus:"hideFocus",tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"};var m="undefined"!=typeof navigator?navigator.userAgent:"",x="undefined"!=typeof document?document:{},v=r();if(v&&v<8&&(p.style.set=function(t,e){t.style.cssText=e},i(d,{get:function(t,e){var n=t.getAttributeNode(e);return n&&(n.specified||n.nodeValue)?n.nodeValue:void 0}}),i(l,a),p.tabIndex=p.tabindex,o(["href","src","width","height","colSpan","rowSpan"],function(t){p[t]={get:function(e){var n=e.getAttribute(t,2);return null===n?void 0:n}}}),p.placeholder={get:function(t,e){return t[e]||d.get(t,e)}}),v){(p.href=p.href||{}).set=function(t,e,n){var r,i=t.childNodes,o=i.length,a=o>0;for(o-=1;o>=0;o--)3!==i[o].nodeType&&(a=0);a&&(r=t.ownerDocument.createElement("b"),r.style.display="none",t.appendChild(r)),t.setAttribute(n,""+e),r&&t.removeChild(r)}}var g,y=/^[\s\xa0]+|[\s\xa0]+$/g,b=String.prototype.trim,N=" ";if(g=function(t,e){return e.getElementsByTagName(t)},x.createElement){var T=x.createElement("div");T.appendChild(document.createComment("")),T.getElementsByTagName("*").length&&(g=function(t,e){var n=e.getElementsByTagName(t),r="*"===t;if(r||"number"!=typeof n.length){for(var i,o=[],a=0;i=n[a++];)r&&1!==i.nodeType||o.push(i);return o}return n})}var E="sourceIndex"in(x&&x.documentElement||{})?function(t,e){return t.sourceIndex-e.sourceIndex}:function(t,e){return t.compareDocumentPosition&&e.compareDocumentPosition?4&t.compareDocumentPosition(e)?-1:1:t.compareDocumentPosition?-1:1},C=t.exports={ie:v,unique:function(){function t(t,n){return t===n?(e=!0,0):E(t,n)}var e,n=!0;return[0,0].sort(function(){return n=!1,0}),function(r){if(e=n,r.sort(t),e)for(var i=1,o=r.length;i<o;)r[i]===r[i-1]?(r.splice(i,1),--o):i++;return r}}(),getElementsByTagName:g,getSimpleAttr:function(t,e){var n=t&&t.getAttributeNode(e);if(n&&n.specified)return"value"in n?n.value:n.nodeValue},contains:v?function(t,e){return 9===t.nodeType&&(t=t.documentElement),e=e.parentNode,t===e||!(!e||1!==e.nodeType)&&(t.contains&&t.contains(e))}:function(t,e){return!!(16&t.compareDocumentPosition(e))},isTag:function(t,e){return"*"===e||t.nodeName.toLowerCase()===e.toLowerCase()},hasSingleClass:function(t,e){var n=t&&C.getSimpleAttr(t,"class");return n&&(n=n.replace(/[\r\t\n]/g,N))&&(N+n+N).indexOf(N+e+N)>-1},startsWith:function(t,e){return 0===t.lastIndexOf(e,0)},endsWith:function(t,e){var n=t.length-e.length;return n>=0&&t.indexOf(e,n)===n},trim:b?function(t){return null==t?"":b.call(t)}:function(t){return null==t?"":(t+"").replace(y,"")},attr:function(t,e){var n,r;if(e=e.toLowerCase(),e=l[e]||e,n=u.test(e)?h:f.test(e)?d:p[e],t&&1===t.nodeType){if("form"===t.nodeName.toLowerCase()&&(n=d),n&&n.get)return n.get(t,e);if(r=t.getAttribute(e),""===r){var i=t.getAttributeNode(e);if(!i||!i.specified)return}return null===r?void 0:r}}}},function(t,e){function n(t){var e=function(t){return t.trim()},n={};return r(t).map(e).filter(Boolean).forEach(function(t){var e=t.indexOf(":"),r=t.substr(0,e).trim(),i=t.substr(e+1).trim();n[r]=i}),n}function r(t){for(var e,n=[],r=0,i=";",o=/url\([^\)]+$/,a="";r<t.length;)e=t.indexOf(i,r),e===-1&&(e=t.length),a+=t.substring(r,e),o.test(a)?(a+=";",r=e+1):(n.push(a),a="",r=e+1);return n}function i(t){return Object.keys(t).map(function(e){return e+":"+t[e]}).join(";")}function o(t){return i(n(t))}t.exports.parse=n,t.exports.stringify=i,t.exports.normalize=o},function(e,n){e.exports=t},function(t,e,n){var r=n(0),i=n(3),o=n(5),a=n(4),u={Element:r,defaultView:i,mixins:{core:o,anim:a},createElement:function(t){return new r(t)},createElementNS:function(t,e){return this.createElement(e)},compareDocumentPosition:function(){return 8}};r.prototype.ownerDocument=u,t.exports=u}])}); |
@@ -11,3 +11,3 @@ var Element = require('../Element') | ||
this.connectedFauxDOM[name] = typeof node !== 'string' ? node : new Element(node) | ||
setTimeout(this.drawFauxDOM) | ||
setTimeout(this.drawFauxDOM.bind(this)) | ||
return this.connectedFauxDOM[name] | ||
@@ -14,0 +14,0 @@ }, |
{ | ||
"name": "react-faux-dom", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "DOM like data structure to be mutated by D3 et al, then rendered to React elements", | ||
@@ -35,3 +35,5 @@ "main": "lib/ReactFauxDOM.js", | ||
"devDependencies": { | ||
"bastion": "^1.8.0", | ||
"babel-core": "^6.23.1", | ||
"babel-eslint": "^7.1.1", | ||
"babel-loader": "^6.3.2", | ||
"d3": "^4.1.1", | ||
@@ -44,3 +46,4 @@ "d3-selection-multi": "^0.4.1", | ||
"standard": "^7.1.2", | ||
"tape": "^4.4.0" | ||
"tape": "^4.4.0", | ||
"webpack": "^2.2.1" | ||
}, | ||
@@ -53,3 +56,6 @@ "dependencies": { | ||
"react": "*" | ||
}, | ||
"standard": { | ||
"parser": "babel-eslint" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
0
46394
12
14
443
1
0