react-faux-dom
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -1,1 +0,6 @@ | ||
!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=5)}([function(t,e,n){"use strict";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)]||""},getPropertyValue:function(t){return r.style.getProperty(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);-1!==r&&n.splice(r,1)}},r.prototype.appendChild=function(t){return t instanceof r&&(t.parentNode=this),this.childNodes.push(t),t},r.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(e);return t.parentNode=this,-1!==n?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||(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){t=t||0;var e=f({},this.props);e.style=f({},e.style);var n=this;return c(e.key)&&(e.key=function(){return"faux-dom-"+t}()),delete e.style.setProperty,delete e.style.getProperty,delete e.style.getPropertyValue,delete e.style.removeProperty,f(e,l(this.eventListeners,function(t){return function(e){var r;e&&(r=e.nativeEvent,r.syntheticEvent=e),l(t,function(t){t.call(n,r)})}})),i.createElement(this.nodeName,e,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,n){"use strict";function r(t,e,n){return 0!==n?e.toUpperCase():e}function i(t){var e=t.replace(o,r);return o.lastIndex=0,e}var o=/\-+([a-z])/gi;t.exports=i},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}t.exports=r},function(t,e,n){"use strict";var r={getComputedStyle:function(t){return{getPropertyValue:t.style.getProperty}}};t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},s=n(0),c=n(2),f=function(t){var e=function(e){function n(t){r(this,n);var e=i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return e.connectFauxDOM=e.connectFauxDOM.bind(e),e.drawFauxDOM=e.drawFauxDOM.bind(e),e.animateFauxDOM=e.animateFauxDOM.bind(e),e.stopAnimatingFauxDOM=e.stopAnimatingFauxDOM.bind(e),e.isAnimatingFauxDOM=e.isAnimatingFauxDOM.bind(e),e}return o(n,e),a(n,[{key:"componentWillMount",value:function(){t.componentWillMount&&u(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentWillMount",this).call(this),this.connectedFauxDOM={},this.animateFauxDOMUntil=0}},{key:"componentWillUnmount",value:function(){t.componentWillUnmount&&u(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentWillUnmount",this).call(this),this.stopAnimatingFauxDOM()}},{key:"connectFauxDOM",value:function(t,e,n){return this.connectedFauxDOM[e]&&!n||(this.connectedFauxDOM[e]="string"!=typeof t?t:new s(t),setTimeout(this.drawFauxDOM)),this.connectedFauxDOM[e]}},{key:"drawFauxDOM",value:function(){var t=c(this.connectedFauxDOM,function(t){return t.toReact()});this.setState(t)}},{key:"animateFauxDOM",value: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))}},{key:"stopAnimatingFauxDOM",value:function(){this.fauxDOMAnimationInterval=clearInterval(this.fauxDOMAnimationInterval),this.animateFauxDOMUntil=0}},{key:"isAnimatingFauxDOM",value:function(){return!!this.fauxDOMAnimationInterval}},{key:"render",value:function(){return u(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"render",this).call(this)}}]),n}(t);return e.displayName="WithFauxDOM("+l(t)+")",e},l=function(t){return t.displayName||t.name||"Component"};t.exports=f},function(t,e,n){"use strict";var r=n(0),i=n(3),o=n(4),a={Element:r,defaultView:i,withFauxDOM:o,createElement:function(t){return new r(t)},createElementNS:function(t,e){return this.createElement(e)},compareDocumentPosition:function(){return 8}};r.prototype.ownerDocument=a,t.exports=a},function(t,e,n){"use strict";function r(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=r},function(t,e,n){"use strict";function r(t){return"string"==typeof t}t.exports=r},function(t,e,n){"use strict";function r(t){return void 0===t}t.exports=r},function(t,e,n){"use strict";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){"use strict";t.exports=n(11)},function(t,e,n){"use strict";function r(t){return t.replace(S,M)}function i(){O={}}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(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 m(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&=y.tag(t,e.value)),i&&o)for(n=o.length,r=0;i&&r<n;r++){var a=o[r],u=a.t;y[u]&&(i&=y[u](t,a.value))}return i}function l(t,e){var n,r=1,i=t,a=e;do{if(!(r&=f(t,e)))return n=k[e.nextCombinator],n.immediate?{el:o(i,k[a.nextCombinator].dir),match:a}:{el:t&&o(t,n.dir),match:e};if(!(e=e&&e.prev))return!0;if(n=k[e.nextCombinator],t=o(t,n.dir),!n.immediate)return{el:t,match:e}}while(t);return{el:o(i,k[a.nextCombinator].dir),match:a}}function p(t,e){var n,r=e;do{if(!f(t,r))return null;if(!(r=r.prev))return!0;n=k[r.nextCombinator],t=o(t,n.dir)}while(t&&n.immediate);return t?{el:t,match:r}:null}function d(t){var e;return x?(e=t.getAttribute(N))||t.setAttribute(N,e=+new Date+"_"+ ++E):(e=t[N])||(e=t[N]=+new Date+"_"+ ++E),e}function h(t,e){var n,r=d(t);return(n=r+"_"+(e.order||0))in O?O[n]:(O[n]=v(t,e),O[n])}function v(t,e){var n=l(t,e);if(!0===n)return!0;for(t=n.el,e=n.match;t;){if(h(t,e))return!0;t=o(t,k[e.nextCombinator].dir)}return!1}function m(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,x=s(e);u<c;u++){i(),o=a[u];var l,d,v,m,y=o.suffix,N=n,E=null;if(!N){if(y&&!x)for(l=0,d=y.length;l<d;l++){var O=y[l];if("id"===O.t){E=O.value;break}}if(E){var w=!e.getElementById,C=g.contains(r,e),A=w?C?r.getElementById(E):null:e.getElementById(E);if(!A&&w||A&&D(A,"id")!==E){for(var S=g.getElementsByTagName("*",e),M=S.length,I=0;I<M;I++)if(A=S[I],D(A,"id")===E){N=[A];break}I===M&&(N=[])}else C&&A&&e!==r&&(A=g.contains(e,A)?A:null),N=A?[A]:[]}else N=g.getElementsByTagName(o.value||"*",e)}if(v=0,m=N.length)for(;v<m;v++){var _=N[v],P=p(_,o);!0===P?f.push(_):P&&h(P.el,P.match)&&f.push(_)}}return c>1&&(f=g.unique(f)),f}var x,y,g=n(13),b=n(12),N="_ks_data_selector_id_",T={},E=0,O={},D=function(t,e){return x?g.getSimpleAttr(t,e):g.attr(t,e)},w=g.hasSingleClass,C=g.isTag,A=/^(([+-]?(?:\d+)?)?n)?([+-]?\d+)?$/,S=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,M=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)},I={"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,d=l.length;p<d;p++)if(c=l[p],1===c.nodeType&&(o++,void 0!==(f=u(o,r,i,c===t))))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,d=p-1;d>=0;d--)if(c=l[d],1===c.nodeType&&(o++,void 0!==(f=u(o,r,i,c===t))))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,d=0,h=l.length;d<h;d++)if(c=l[d],c.tagName===p&&(o++,void 0!==(f=u(o,r,i,c===t))))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,d=t.tagName,h=p-1;h>=0;h--)if(c=l[h],c.tagName===d&&(o++,void 0!==(f=u(o,r,i,c===t))))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())===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,i=0,o=r.length-1;i<o;i++)if(e=r[i],1===(n=e.nodeType)||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 I["nth-child"](t,1)},"last-child":function(t){return I["nth-last-child"](t,1)},"first-of-type":function(t){return I["nth-of-type"](t,1)},"last-of-type":function(t){return I["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)===D(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:-1!==(" "+t+" ").indexOf(" "+e+" ")},"|=":function(t,e){return-1!==(" "+t).indexOf(" "+e+"-")},"^=":function(t,e){return e&&g.startsWith(t,e)},"$=":function(t,e){return e&&g.endsWith(t,e)},"*=":function(t,e){return e&&-1!==t.indexOf(e)},"=":function(t,e){return t===e}},k={">":{dir:"parentNode",immediate:1}," ":{dir:"parentNode"},"+":{dir:"previousSibling",immediate:1},"~":{dir:"previousSibling"}};y={tag:C,cls:w,id:function(t,e){return D(t,"id")===e},attrib:function(t,e){var n=e.ident;x||(n=n.toLowerCase());var r=D(t,n),i=e.match;if(!i&&void 0!==r)return 1;if(i){if(void 0===r)return 0;var o=P[i];if(o)return o(r+"",e.value+"")}return 0},pseudo:function(t,e){var n,r,i;if(r=e.fn){if(!(n=I[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:g.trim,unEscape:r,unEscapeStr:function(t){return this.unEscape(t.slice(1,-1))}},t.exports=m,m.parse=function(t){return b.parse(t)},m.matches=c,m.util=g,m.version="@VERSION@"},function(t,e,n){"use strict";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&&!1!==e.call(r,o,u,t);o=t[++u]);else for(i in t)if(!1===e.call(r,t[i],i,t))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 t,n,r,i,o,a=this,s=a.input,c=a.getCurrentRules();if(a.match=a.text="",!s)return a.mapSymbol(u.STATIC.END_TAG);for(t=0;t<c.length;t++){n=c[t];var f=n.regexp||n[1],l=n.token||n[0],p=n.action||n[2]||void 0;if(r=s.match(f)){o=r[0].match(/\n.*/g),o&&(a.lineNumber+=o.length),e(a,{firstLine:a.lastLine,lastLine:a.lineNumber+1,firstColumn:a.lastColumn,lastColumn:o?o[o.length-1].length-1:a.lastColumn+r[0].length});var d;return d=a.match=r[0],a.matches=r,a.text=d,a.matched+=d,i=p&&p.call(a),i=void 0===i?l:a.mapSymbol(i),s=s.slice(d.length),a.input=s,i||a.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,void 0,1],m:[1,void 0,2],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,7]},1:{n:[1,void 0,19]},2:{b:[1,void 0,1],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,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,void 0,26],n:[1,void 0,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,void 0,28]},9:{a:[2,1],r:[2,1],t:[1,void 0,29],u:[1,void 0,30],v:[1,void 0,31],x:[1,void 0,32]},10:{a:[2,38],r:[2,38],t:[2,38],u:[2,38],v:[2,38],x:[2,38],b:[1,void 0,1],m:[1,void 0,2],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,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,void 0,1],m:[1,void 0,2],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6]},18:{a:[2,3],r:[2,3],t:[2,3],u:[2,3],v:[2,3],x:[2,3]},19:{c:[1,void 0,36],d:[1,void 0,37],e:[1,void 0,38],f:[1,void 0,39],g:[1,void 0,40],h:[1,void 0,41],i:[1,void 0,42]},20:{l:[2,26]},21:{l:[2,27]},22:{l:[2,28]},23:{l:[2,29]},24:{l:[2,30]},25:{l:[1,void 0,44]},26:{k:[1,void 0,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,void 0,1],m:[1,void 0,2],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,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,void 0,1],m:[1,void 0,2],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,7]},34:{a:[2,40],r:[2,40],t:[2,40],u:[2,40],v:[2,40],x:[2,40],b:[1,void 0,1],m:[1,void 0,2],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,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,void 0,48],o:[1,void 0,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,void 0,51]},46:{a:[2,2],r:[2,2],t:[1,void 0,29],u:[1,void 0,30],v:[1,void 0,31],x:[1,void 0,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,void 0,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(t,e){var n,r,i,o=this,u=o.lexer,s=o.table,c=s.gotos,f=s.action,l=o.productions,p=[null],d=e?"in file: "+e+" ":"",h=[0];for(u.resetInput(t);;){if(n=h[h.length-1],r||(r=u.lex()),!(i=r?f[n]&&f[n][r]:null)){var v,m=[];if(f[n])for(var x in f[n])m.push(o.lexer.mapReverseSymbol(x));throw v=d+"syntax error at line "+u.lineNumber+":\n"+u.showDebugInfo()+"\nexpect "+m.join(", "),new Error(v)}switch(i[a.TYPE_INDEX]){case a.SHIFT_TYPE:h.push(r),p.push(u.text),h.push(i[a.TO_INDEX]),r=null;break;case a.REDUCE_TYPE:var y,g=l[i[a.PRODUCTION_INDEX]],b=g.symbol||g[0],N=g.action||g[2],T=g.rhs||g[1],E=T.length,O=0,D=p[p.length-E];for(y=void 0,o.$$=D;O<E;O++)o["$"+(E-O)]=p[p.length-1-O];N&&(y=N.call(o)),D=void 0!==y?y:o.$$,h=h.slice(0,-1*E*2),p=p.slice(0,-1*E),h.push(b),p.push(D);var w=c[h[h.length-2]][h[h.length-1]];h.push(w);break;case a.ACCEPT_TYPE:return D}}},o}();t.exports=r},function(t,e,n){"use strict";function r(t){var e=0;return parseFloat(t.replace(/\./g,function(){return 0==e++?".":""}))}function i(t,e){for(var n in e)t[n]=e[n]}var o,a=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,c=/:|^on/,f={},l={tabindex:{get:function(t){var e=t.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):u.test(t.nodeName)||s.test(t.nodeName)&&t.href?0:void 0}}},p={get:function(t,e){return t[o[e]||e]?e.toLowerCase():void 0}},d={};l.style={get:function(t){return t.style.cssText}},o={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 h="undefined"!=typeof navigator?navigator.userAgent:"",v="undefined"!=typeof document?document:{},m=function(){var t,e;if((t=h.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/))&&(e=t[1]||t[2]))return v.documentMode||r(e)}();if(m&&m<8&&(l.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(f,o),l.tabIndex=l.tabindex,function(t,e){for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);}(["href","src","width","height","colSpan","rowSpan"],function(t){l[t]={get:function(e){var n=e.getAttribute(t,2);return null===n?void 0:n}}}),l.placeholder={get:function(t,e){return t[e]||d.get(t,e)}}),m){(l.href=l.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 x,y=/^[\s\xa0]+|[\s\xa0]+$/g,g=String.prototype.trim;if(x=function(t,e){return e.getElementsByTagName(t)},v.createElement){var b=v.createElement("div");b.appendChild(document.createComment("")),b.getElementsByTagName("*").length&&(x=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 N="sourceIndex"in(v&&v.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},T=t.exports={ie:m,unique:function(){function t(t,n){return t===n?(e=!0,0):N(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:x,getSimpleAttr:function(t,e){var n=t&&t.getAttributeNode(e);if(n&&n.specified)return"value"in n?n.value:n.nodeValue},contains:m?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&&T.getSimpleAttr(t,"class");return n&&(n=n.replace(/[\r\t\n]/g," "))&&(" "+n+" ").indexOf(" "+e+" ")>-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:g?function(t){return null==t?"":g.call(t)}:function(t){return null==t?"":(t+"").replace(y,"")},attr:function(t,e){var n,r;if(e=e.toLowerCase(),e=f[e]||e,n=a.test(e)?p:c.test(e)?d:l[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))){var i=t.getAttributeNode(e);if(!i||!i.specified)return}return null===r?void 0:r}}}},function(t,e,n){"use strict";function r(t){var e=function(t){return t.trim()},n={};return i(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 i(t){for(var e,n=[],r=0,i=/url\([^\)]+$/,o="";r<t.length;)e=t.indexOf(";",r),-1===e&&(e=t.length),o+=t.substring(r,e),i.test(o)?(o+=";",r=e+1):(n.push(o),o="",r=e+1);return n}function o(t){return Object.keys(t).map(function(e){return e+":"+t[e]}).join(";")}function a(t){return o(r(t))}t.exports.parse=r,t.exports.stringify=o,t.exports.normalize=a},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 o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.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=7)}([function(t,e,n){"use strict";function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(f===setTimeout)return setTimeout(t,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function a(t){if(p===clearTimeout)return clearTimeout(t);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function u(){v&&h&&(v=!1,h.length?m=h.concat(m):y=-1,m.length&&s())}function s(){if(!v){var t=i(u);v=!0;for(var e=m.length;e;){for(h=m,m=[];++y<e;)h&&h[y].run();y=-1,e=m.length}h=null,v=!1,a(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var f,p,d=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(t){f=r}try{p="function"==typeof clearTimeout?clearTimeout:o}catch(t){p=o}}();var h,m=[],v=!1,y=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];m.push(new c(t,e)),1!==m.length||v||i(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(t,e,n){"use strict";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)]||""},getPropertyValue:function(t){return r.style.getProperty(t)},removeProperty:function(t){delete r.style[p(t)]}}};this.style=r.style}var o=n(4),i=n(23),a=n(19),u=n(2),s=n(9),c=n(10),l=n(8),f=n(3),p=n(11);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=i.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);-1!==r&&n.splice(r,1)}},r.prototype.appendChild=function(t){return t instanceof r&&(t.parentNode=this),this.childNodes.push(t),t},r.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(e);return t.parentNode=this,-1!==n?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||(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){t=t||0;var e=l({},this.props);e.style=l({},e.style);var n=this;return c(e.key)&&(e.key=function(){return"faux-dom-"+t}()),delete e.style.setProperty,delete e.style.getProperty,delete e.style.getPropertyValue,delete e.style.removeProperty,l(e,f(this.eventListeners,function(t){return function(e){var r;e&&(r=e.nativeEvent,r.syntheticEvent=e),f(t,function(t){t.call(n,r)})}})),o.createElement(this.nodeName,e,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,n){"use strict";function r(t,e,n){return 0!==n?e.toUpperCase():e}function o(t){var e=t.replace(i,r);return i.lastIndex=0,e}var i=/\-+([a-z])/gi;t.exports=o},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}t.exports=r},function(e,n){e.exports=t},function(t,e,n){"use strict";var r={getComputedStyle:function(t){return{getPropertyValue:t.style.getProperty}}};t.exports=r},function(t,e,n){"use strict";function r(t){function e(e,n,r){var o=t.prototype[e];if("function"==typeof o)return o.apply(n,r)}var n=u({componentWillMount:function(){e("componentWillMount",this,arguments),this.connectedFauxDOM={},this.animateFauxDOMUntil=0},componentWillUnmount:function(){e("componentWillUnmount",this,arguments),this.stopAnimatingFauxDOM()},connectFauxDOM:function(t,e,n){return this.connectedFauxDOM[e]&&!n||(this.connectedFauxDOM[e]="string"!=typeof t?t:new i(t),setTimeout(this.drawFauxDOM)),this.connectedFauxDOM[e]},drawFauxDOM:function(){var t=a(this.connectedFauxDOM,function(t){return t.toReact()});this.setState(t)},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},render:function(){return e("render",this,arguments)}});return n.displayName=["WithFauxDOM(",o(t),")"].join(""),n}function o(t){return t.displayName||t.name||"Component"}var i=n(1),a=n(3),u=n(13);t.exports=r},function(t,e,n){"use strict";var r=n(1),o=n(5),i=n(6),a={Element:r,defaultView:o,withFauxDOM:i,createElement:function(t){return new r(t)},createElementNS:function(t,e){return this.createElement(e)},compareDocumentPosition:function(){return 8}};r.prototype.ownerDocument=a,t.exports=a},function(t,e,n){"use strict";function r(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=r},function(t,e,n){"use strict";function r(t){return"string"==typeof t}t.exports=r},function(t,e,n){"use strict";function r(t){return void 0===t}t.exports=r},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(2);t.exports=r},function(t,e,n){"use strict";(function(e){function r(t){return t}function o(t,n,o){function p(t,n,r){for(var o in n)n.hasOwnProperty(o)&&"production"!==e.env.NODE_ENV&&c("function"==typeof n[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",t.displayName||"ReactClass",l[r],o)}function d(t,e){var n=D.hasOwnProperty(e)?D[e]:null;w.hasOwnProperty(e)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function h(t,r){if(r){s("function"!=typeof r,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!n(r),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=t.prototype,a=o.__reactAutoBindPairs;r.hasOwnProperty(f)&&T.mixins(t,r.mixins);for(var u in r)if(r.hasOwnProperty(u)&&u!==f){var l=r[u],p=o.hasOwnProperty(u);if(d(p,u),T.hasOwnProperty(u))T[u](t,l);else{var h=D.hasOwnProperty(u),m="function"==typeof l,v=m&&!h&&!p&&!1!==r.autobind;if(v)a.push(u,l),o[u]=l;else if(p){var x=D[u];s(h&&("DEFINE_MANY_MERGED"===x||"DEFINE_MANY"===x),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",x,u),"DEFINE_MANY_MERGED"===x?o[u]=y(o[u],l):"DEFINE_MANY"===x&&(o[u]=g(o[u],l))}else o[u]=l,"production"!==e.env.NODE_ENV&&"function"==typeof l&&r.displayName&&(o[u].displayName=r.displayName+"_"+u)}}}else if("production"!==e.env.NODE_ENV){var E=void 0===r?"undefined":i(r),b="object"===E&&null!==r;"production"!==e.env.NODE_ENV&&c(b,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",t.displayName||"ReactClass",null===r?null:E)}}function m(t,e){if(e)for(var n in e){var r=e[n];if(e.hasOwnProperty(n)){var o=n in T;s(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in t;s(!i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),t[n]=r}}}function v(t,e){s(t&&e&&"object"===(void 0===t?"undefined":i(t))&&"object"===(void 0===e?"undefined":i(e)),"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in e)e.hasOwnProperty(n)&&(s(void 0===t[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),t[n]=e[n]);return t}function y(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return v(o,n),v(o,r),o}}function g(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function x(t,n){var r=n.bind(t);if("production"!==e.env.NODE_ENV){r.__reactBoundContext=t,r.__reactBoundMethod=n,r.__reactBoundArguments=null;var o=t.constructor.displayName,i=r.bind;r.bind=function(a){for(var u=arguments.length,s=Array(u>1?u-1:0),l=1;l<u;l++)s[l-1]=arguments[l];if(a!==t&&null!==a)"production"!==e.env.NODE_ENV&&c(!1,"bind(): React component methods may only be bound to the component instance. See %s",o);else if(!s.length)return"production"!==e.env.NODE_ENV&&c(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",o),r;var f=i.apply(r,arguments);return f.__reactBoundContext=t,f.__reactBoundMethod=n,f.__reactBoundArguments=s,f}}return r}function E(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];t[r]=x(t,o)}}function b(t){var n=r(function(t,r,a){"production"!==e.env.NODE_ENV&&"production"!==e.env.NODE_ENV&&c(this instanceof n,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"),this.__reactAutoBindPairs.length&&E(this),this.props=t,this.context=r,this.refs=u,this.updater=a||o,this.state=null;var l=this.getInitialState?this.getInitialState():null;"production"!==e.env.NODE_ENV&&void 0===l&&this.getInitialState._isMockFunction&&(l=null),s("object"===(void 0===l?"undefined":i(l))&&!Array.isArray(l),"%s.getInitialState(): must return an object or null",n.displayName||"ReactCompositeComponent"),this.state=l});n.prototype=new O,n.prototype.constructor=n,n.prototype.__reactAutoBindPairs=[],N.forEach(h.bind(null,n)),h(n,_),h(n,t),n.getDefaultProps&&(n.defaultProps=n.getDefaultProps()),"production"!==e.env.NODE_ENV&&(n.getDefaultProps&&(n.getDefaultProps.isReactClassApproved={}),n.prototype.getInitialState&&(n.prototype.getInitialState.isReactClassApproved={})),s(n.prototype.render,"createClass(...): Class specification must implement a `render` method."),"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV&&c(!n.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",t.displayName||"A component"),"production"!==e.env.NODE_ENV&&c(!n.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",t.displayName||"A component"));for(var a in D)n.prototype[a]||(n.prototype[a]=null);return n}var N=[],D={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},T={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)h(t,e[n])},childContextTypes:function(t,n){"production"!==e.env.NODE_ENV&&p(t,n,"childContext"),t.childContextTypes=a({},t.childContextTypes,n)},contextTypes:function(t,n){"production"!==e.env.NODE_ENV&&p(t,n,"context"),t.contextTypes=a({},t.contextTypes,n)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=y(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,n){"production"!==e.env.NODE_ENV&&p(t,n,"prop"),t.propTypes=a({},t.propTypes,n)},statics:function(t,e){m(t,e)},autobind:function(){}},_={componentDidMount:function(){this.__isMounted=!0},componentWillUnmount:function(){this.__isMounted=!1}},w={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV&&c(this.__didWarnIsMounted,"%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.",this.constructor&&this.constructor.displayName||this.name||"Component"),this.__didWarnIsMounted=!0),!!this.__isMounted}},O=function(){};return a(O.prototype,t.prototype,w),b}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=n(18),u=n(15),s=n(16);if("production"!==e.env.NODE_ENV)var c=n(17);var l,f="mixins";l="production"!==e.env.NODE_ENV?{prop:"prop",context:"context",childContext:"child context"}:{},t.exports=o}).call(e,n(0))},function(t,e,n){"use strict";var r=n(4),o=n(12),i=(new r.Component).updater;t.exports=o(r.Component,r.isValidElement,i)},function(t,e,n){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,n){"use strict";(function(e){var n={};"production"!==e.env.NODE_ENV&&Object.freeze(n),t.exports=n}).call(e,n(0))},function(t,e,n){"use strict";(function(e){function n(t,e,n,o,i,a,u,s){if(r(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,a,u,s],f=0;c=new Error(e.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var r=function(t){};"production"!==e.env.NODE_ENV&&(r=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")}),t.exports=n}).call(e,n(0))},function(t,e,n){"use strict";(function(e){var r=n(14),o=r;"production"!==e.env.NODE_ENV&&function(){var t=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+t.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(t){}};o=function(e,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];t.apply(void 0,[n].concat(o))}}}(),t.exports=o}).call(e,n(0))},function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}/* | ||
object-assign | ||
(c) Sindre Sorhus | ||
@license MIT | ||
*/ | ||
var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,u,s=r(t),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var l in n)i.call(n,l)&&(s[l]=n[l]);if(o){u=o(n);for(var f=0;f<u.length;f++)a.call(n,u[f])&&(s[u[f]]=n[u[f]])}}return s}},function(t,e,n){"use strict";t.exports=n(20)},function(t,e,n){"use strict";function r(t){return t.replace(I,A)}function o(){T={}}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(C))&&(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 l(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&=g.tag(t,e.value)),o&&i)for(n=i.length,r=0;o&&r<n;r++){var a=i[r],u=a.t;g[u]&&(o&=g[u](t,a.value))}return o}function f(t,e){var n,r=1,o=t,a=e;do{if(!(r&=l(t,e)))return n=R[e.nextCombinator],n.immediate?{el:i(o,R[a.nextCombinator].dir),match:a}:{el:t&&i(t,n.dir),match:e};if(!(e=e&&e.prev))return!0;if(n=R[e.nextCombinator],t=i(t,n.dir),!n.immediate)return{el:t,match:e}}while(t);return{el:i(o,R[a.nextCombinator].dir),match:a}}function p(t,e){var n,r=e;do{if(!l(t,r))return null;if(!(r=r.prev))return!0;n=R[r.nextCombinator],t=i(t,n.dir)}while(t&&n.immediate);return t?{el:t,match:r}:null}function d(t){var e;return y?(e=t.getAttribute(b))||t.setAttribute(b,e=+new Date+"_"+ ++D):(e=t[b])||(e=t[b]=+new Date+"_"+ ++D),e}function h(t,e){var n,r=d(t);return(n=r+"_"+(e.order||0))in T?T[n]:(T[n]=m(t,e),T[n])}function m(t,e){var n=f(t,e);if(!0===n)return!0;for(t=n.el,e=n.match;t;){if(h(t,e))return!0;t=i(t,R[e.nextCombinator].dir)}return!1}function v(t,e,n){N[t]||(N[t]=E.parse(t));var r,i,a=N[t],u=0,c=a.length,l=[];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,y=s(e);u<c;u++){o(),i=a[u];var f,d,m,v,g=i.suffix,b=n,D=null;if(!b){if(g&&!y)for(f=0,d=g.length;f<d;f++){var T=g[f];if("id"===T.t){D=T.value;break}}if(D){var w=!e.getElementById,O=x.contains(r,e),C=w?O?r.getElementById(D):null:e.getElementById(D);if(!C&&w||C&&_(C,"id")!==D){for(var I=x.getElementsByTagName("*",e),A=I.length,M=0;M<A;M++)if(C=I[M],_(C,"id")===D){b=[C];break}M===A&&(b=[])}else O&&C&&e!==r&&(C=x.contains(e,C)?C:null),b=C?[C]:[]}else b=x.getElementsByTagName(i.value||"*",e)}if(m=0,v=b.length)for(;m<v;m++){var S=b[m],P=p(S,i);!0===P?l.push(S):P&&h(P.el,P.match)&&l.push(S)}}return c>1&&(l=x.unique(l)),l}var y,g,x=n(22),E=n(21),b="_ks_data_selector_id_",N={},D=0,T={},_=function(t,e){return y?x.getSimpleAttr(t,e):x.attr(t,e)},w=x.hasSingleClass,O=x.isTag,C=/^(([+-]?(?:\d+)?)?n)?([+-]?\d+)?$/,I=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,A=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,l,f=s.childNodes,p=0,d=f.length;p<d;p++)if(c=f[p],1===c.nodeType&&(i++,void 0!==(l=u(i,r,o,c===t))))return l;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,l,f=s.childNodes,p=f.length,d=p-1;d>=0;d--)if(c=f[d],1===c.nodeType&&(i++,void 0!==(l=u(i,r,o,c===t))))return l;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,l,f=s.childNodes,p=t.tagName,d=0,h=f.length;d<h;d++)if(c=f[d],c.tagName===p&&(i++,void 0!==(l=u(i,r,o,c===t))))return l;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,l,f=s.childNodes,p=f.length,d=t.tagName,h=p-1;h>=0;h--)if(c=f[h],c.tagName===d&&(i++,void 0!==(l=u(i,r,o,c===t))))return l;return 0},lang:function(t,e){var n;e=r(e.toLowerCase());do{if(n=y?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return(n=n.toLowerCase())===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)}},S={empty:function(t){for(var e,n,r=t.childNodes,o=0,i=r.length-1;o<i;o++)if(e=r[o],1===(n=e.nodeType)||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 S["first-child"](t)&&S["last-child"](t)},"only-of-type":function(t){return S["first-of-type"](t)&&S["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)===_(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:-1!==(" "+t+" ").indexOf(" "+e+" ")},"|=":function(t,e){return-1!==(" "+t).indexOf(" "+e+"-")},"^=":function(t,e){return e&&x.startsWith(t,e)},"$=":function(t,e){return e&&x.endsWith(t,e)},"*=":function(t,e){return e&&-1!==t.indexOf(e)},"=":function(t,e){return t===e}},R={">":{dir:"parentNode",immediate:1}," ":{dir:"parentNode"},"+":{dir:"previousSibling",immediate:1},"~":{dir:"previousSibling"}};g={tag:O,cls:w,id:function(t,e){return _(t,"id")===e},attrib:function(t,e){var n=e.ident;y||(n=n.toLowerCase());var r=_(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(!S[o])throw new SyntaxError("Syntax error: not support pseudo: "+o);return S[o](t)}return 0}},E.lexer.yy={trim:x.trim,unEscape:r,unEscapeStr:function(t){return this.unEscape(t.slice(1,-1))}},t.exports=v,v.parse=function(t){return E.parse(t)},v.matches=c,v.util=x,v.version="@VERSION@"},function(t,e,n){"use strict";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&&!1!==e.call(r,i,u,t);i=t[++u]);else for(o in t)if(!1===e.call(r,t[o],o,t))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 t,n,r,o,i,a=this,s=a.input,c=a.getCurrentRules();if(a.match=a.text="",!s)return a.mapSymbol(u.STATIC.END_TAG);for(t=0;t<c.length;t++){n=c[t];var l=n.regexp||n[1],f=n.token||n[0],p=n.action||n[2]||void 0;if(r=s.match(l)){i=r[0].match(/\n.*/g),i&&(a.lineNumber+=i.length),e(a,{firstLine:a.lastLine,lastLine:a.lineNumber+1,firstColumn:a.lastColumn,lastColumn:i?i[i.length-1].length-1:a.lastColumn+r[0].length});var d;return d=a.match=r[0],a.matches=r,a.text=d,a.matched+=d,o=p&&p.call(a),o=void 0===o?f:a.mapSymbol(o),s=s.slice(d.length),a.input=s,o||a.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,void 0,1],m:[1,void 0,2],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,7]},1:{n:[1,void 0,19]},2:{b:[1,void 0,1],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,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,void 0,26],n:[1,void 0,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,void 0,28]},9:{a:[2,1],r:[2,1],t:[1,void 0,29],u:[1,void 0,30],v:[1,void 0,31],x:[1,void 0,32]},10:{a:[2,38],r:[2,38],t:[2,38],u:[2,38],v:[2,38],x:[2,38],b:[1,void 0,1],m:[1,void 0,2],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,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,void 0,1],m:[1,void 0,2],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6]},18:{a:[2,3],r:[2,3],t:[2,3],u:[2,3],v:[2,3],x:[2,3]},19:{c:[1,void 0,36],d:[1,void 0,37],e:[1,void 0,38],f:[1,void 0,39],g:[1,void 0,40],h:[1,void 0,41],i:[1,void 0,42]},20:{l:[2,26]},21:{l:[2,27]},22:{l:[2,28]},23:{l:[2,29]},24:{l:[2,30]},25:{l:[1,void 0,44]},26:{k:[1,void 0,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,void 0,1],m:[1,void 0,2],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,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,void 0,1],m:[1,void 0,2],n:[1,void 0,3],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,6],w:[1,void 0,7]},34:{a:[2,40],r:[2,40],t:[2,40],u:[2,40],v:[2,40],x:[2,40],b:[1,void 0,1],m:[1,void 0,2],p:[1,void 0,4],q:[1,void 0,5],s:[1,void 0,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,void 0,48],o:[1,void 0,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,void 0,51]},46:{a:[2,2],r:[2,2],t:[1,void 0,29],u:[1,void 0,30],v:[1,void 0,31],x:[1,void 0,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,void 0,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(t,e){var n,r,o,i=this,u=i.lexer,s=i.table,c=s.gotos,l=s.action,f=i.productions,p=[null],d=e?"in file: "+e+" ":"",h=[0];for(u.resetInput(t);;){if(n=h[h.length-1],r||(r=u.lex()),!(o=r?l[n]&&l[n][r]:null)){var m,v=[];if(l[n])for(var y in l[n])v.push(i.lexer.mapReverseSymbol(y));throw m=d+"syntax error at line "+u.lineNumber+":\n"+u.showDebugInfo()+"\nexpect "+v.join(", "),new Error(m)}switch(o[a.TYPE_INDEX]){case a.SHIFT_TYPE:h.push(r),p.push(u.text),h.push(o[a.TO_INDEX]),r=null;break;case a.REDUCE_TYPE:var g,x=f[o[a.PRODUCTION_INDEX]],E=x.symbol||x[0],b=x.action||x[2],N=x.rhs||x[1],D=N.length,T=0,_=p[p.length-D];for(g=void 0,i.$$=_;T<D;T++)i["$"+(D-T)]=p[p.length-1-T];b&&(g=b.call(i)),_=void 0!==g?g:i.$$,h=h.slice(0,-1*D*2),p=p.slice(0,-1*D),h.push(E),p.push(_);var w=c[h[h.length-2]][h[h.length-1]];h.push(w);break;case a.ACCEPT_TYPE:return _}}},i}();t.exports=r},function(t,e,n){"use strict";function r(t){var e=0;return parseFloat(t.replace(/\./g,function(){return 0==e++?".":""}))}function o(t,e){for(var n in e)t[n]=e[n]}var i,a=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,c=/:|^on/,l={},f={tabindex:{get:function(t){var e=t.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):u.test(t.nodeName)||s.test(t.nodeName)&&t.href?0:void 0}}},p={get:function(t,e){return t[i[e]||e]?e.toLowerCase():void 0}},d={};f.style={get:function(t){return t.style.cssText}},i={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 h="undefined"!=typeof navigator?navigator.userAgent:"",m="undefined"!=typeof document?document:{},v=function(){var t,e;if((t=h.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/))&&(e=t[1]||t[2]))return m.documentMode||r(e)}();if(v&&v<8&&(f.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,i),f.tabIndex=f.tabindex,function(t,e){for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);}(["href","src","width","height","colSpan","rowSpan"],function(t){f[t]={get:function(e){var n=e.getAttribute(t,2);return null===n?void 0:n}}}),f.placeholder={get:function(t,e){return t[e]||d.get(t,e)}}),v){(f.href=f.href||{}).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 y,g=/^[\s\xa0]+|[\s\xa0]+$/g,x=String.prototype.trim;if(y=function(t,e){return e.getElementsByTagName(t)},m.createElement){var E=m.createElement("div");E.appendChild(document.createComment("")),E.getElementsByTagName("*").length&&(y=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 b="sourceIndex"in(m&&m.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},N=t.exports={ie:v,unique:function(){function t(t,n){return t===n?(e=!0,0):b(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:y,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&&N.getSimpleAttr(t,"class");return n&&(n=n.replace(/[\r\t\n]/g," "))&&(" "+n+" ").indexOf(" "+e+" ")>-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:x?function(t){return null==t?"":x.call(t)}:function(t){return null==t?"":(t+"").replace(g,"")},attr:function(t,e){var n,r;if(e=e.toLowerCase(),e=l[e]||e,n=a.test(e)?p:c.test(e)?d:f[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))){var o=t.getAttributeNode(e);if(!o||!o.specified)return}return null===r?void 0:r}}}},function(t,e,n){"use strict";function r(t){var e=function(t){return t.trim()},n={};return o(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 o(t){for(var e,n=[],r=0,o=/url\([^\)]+$/,i="";r<t.length;)e=t.indexOf(";",r),-1===e&&(e=t.length),i+=t.substring(r,e),o.test(i)?(i+=";",r=e+1):(n.push(i),i="",r=e+1);return n}function i(t){return Object.keys(t).map(function(e){return e+":"+t[e]}).join(";")}function a(t){return i(r(t))}t.exports.parse=r,t.exports.stringify=i,t.exports.normalize=a}])}); |
@@ -1,30 +0,31 @@ | ||
const Element = require('./Element') | ||
const mapValues = require('./utils/mapValues') | ||
var Element = require('./Element') | ||
var mapValues = require('./utils/mapValues') | ||
var createClass = require('create-react-class') | ||
const withFauxDOM = WrappedComponent => { | ||
function withFauxDOM (WrappedComponent) { | ||
// use inheritance inversion to access and extend WrappedComponent's | ||
// state and lifecycle/class methods. More details on this technique at | ||
// https://medium.com/@franleplant/react-higher-order-components-in-depth-cf9032ee6c3e | ||
class WithFauxDOM extends WrappedComponent { | ||
constructor (props) { | ||
super(props) | ||
this.connectFauxDOM = this.connectFauxDOM.bind(this) | ||
this.drawFauxDOM = this.drawFauxDOM.bind(this) | ||
this.animateFauxDOM = this.animateFauxDOM.bind(this) | ||
this.stopAnimatingFauxDOM = this.stopAnimatingFauxDOM.bind(this) | ||
this.isAnimatingFauxDOM = this.isAnimatingFauxDOM.bind(this) | ||
function applySuper (name, thisArg, args) { | ||
var fn = WrappedComponent.prototype[name] | ||
if (typeof fn === 'function') { | ||
return fn.apply(thisArg, args) | ||
} | ||
} | ||
componentWillMount () { | ||
WrappedComponent.componentWillMount && super.componentWillMount() | ||
var WithFauxDOM = createClass({ | ||
componentWillMount: function () { | ||
applySuper('componentWillMount', this, arguments) | ||
this.connectedFauxDOM = {} | ||
this.animateFauxDOMUntil = 0 | ||
} | ||
}, | ||
componentWillUnmount () { | ||
WrappedComponent.componentWillUnmount && super.componentWillUnmount() | ||
componentWillUnmount: function () { | ||
applySuper('componentWillUnmount', this, arguments) | ||
this.stopAnimatingFauxDOM() | ||
} | ||
}, | ||
connectFauxDOM (node, name, discardNode) { | ||
connectFauxDOM: function (node, name, discardNode) { | ||
if (!this.connectedFauxDOM[name] || discardNode) { | ||
@@ -35,5 +36,5 @@ this.connectedFauxDOM[name] = typeof node !== 'string' ? node : new Element(node) | ||
return this.connectedFauxDOM[name] | ||
} | ||
}, | ||
drawFauxDOM () { | ||
drawFauxDOM: function () { | ||
var virtualDOM = mapValues(this.connectedFauxDOM, function (n) { | ||
@@ -43,5 +44,5 @@ return n.toReact() | ||
this.setState(virtualDOM) | ||
} | ||
}, | ||
animateFauxDOM (duration) { | ||
animateFauxDOM: function (duration) { | ||
this.animateFauxDOMUntil = Math.max(Date.now() + duration, this.animateFauxDOMUntil) | ||
@@ -57,23 +58,27 @@ if (!this.fauxDOMAnimationInterval) { | ||
} | ||
} | ||
}, | ||
stopAnimatingFauxDOM () { | ||
stopAnimatingFauxDOM: function () { | ||
this.fauxDOMAnimationInterval = clearInterval(this.fauxDOMAnimationInterval) | ||
this.animateFauxDOMUntil = 0 | ||
} | ||
}, | ||
isAnimatingFauxDOM () { | ||
isAnimatingFauxDOM: function () { | ||
return !!this.fauxDOMAnimationInterval | ||
}, | ||
render: function () { | ||
return applySuper('render', this, arguments) | ||
} | ||
}) | ||
render () { | ||
return super.render() | ||
} | ||
} | ||
WithFauxDOM.displayName = `WithFauxDOM(${getDisplayName(WrappedComponent)})` | ||
WithFauxDOM.displayName = ['WithFauxDOM(', getDisplayName(WrappedComponent), ')'].join('') | ||
return WithFauxDOM | ||
} | ||
const getDisplayName = WrappedComponent => WrappedComponent.displayName || WrappedComponent.name || 'Component' | ||
function getDisplayName (WrappedComponent) { | ||
return WrappedComponent.displayName || WrappedComponent.name || 'Component' | ||
} | ||
module.exports = withFauxDOM |
{ | ||
"name": "react-faux-dom", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "DOM like data structure to be mutated by D3 et al, then rendered to React elements", | ||
@@ -55,2 +55,3 @@ "main": "lib/ReactFauxDOM.js", | ||
"dependencies": { | ||
"create-react-class": "^15.5.3", | ||
"query-selector": "^1.0.9", | ||
@@ -57,0 +58,0 @@ "style-attr": "^1.0.1" |
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
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
68821
545
4
+ Addedcreate-react-class@^15.5.3
+ Addedcreate-react-class@15.7.0(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedobject-assign@4.1.1(transitive)