From 9b64d25a5f88bbdc8087b50c559a37c9835cc961 Mon Sep 17 00:00:00 2001 From: Andrea Giammarchi Date: Wed, 10 Apr 2019 12:32:47 +0100 Subject: [PATCH] updated all dev-dependencies --- esm.js | 15 +++++++++++---- index.js | 21 +++++++++++---------- min.js | 15 +++++++++++---- package.json | 16 ++++++++-------- test/ie/test/test.js | 28 ++++++++++++++-------------- test/svgclass.html | 26 ++++++++++++++++++++++++++ umd.js | 15 +++++++++++---- 7 files changed, 92 insertions(+), 44 deletions(-) create mode 100644 test/svgclass.html diff --git a/esm.js b/esm.js index 1502fe4f..7efccbb4 100644 --- a/esm.js +++ b/esm.js @@ -1,6 +1,13 @@ -/*! (c) Andrea Giammarchi (ISC) */var hyperHTML=function(e){"use strict";function t(){return this}function n(e){return e.join(Y).replace(se,o).replace(le,r)}function r(e,t,n,r){return"<"+t+n.replace(fe,i)+r}function i(e,t,n){return t+(n||'"')+X+(n||'"')}function o(e,t,n){return ie.test(t)?e:"<"+t+n+">"}function a(e,t,n,r){return{name:r,node:t,path:n,type:e}}function u(e,t){for(var n=t.length,r=0;r=u;){for(var c=t,l=i;ca;)--c;l=u+r-c;var g=Array(l),b=s[c];for(--n;b;){for(var y=b,w=y.newi,N=y.oldi;n>w;)g[--l]=1,--n;for(;a>N;)g[--l]=-1,--a;g[--l]=0,--n,--a,b=b.prev}for(;n>=t;)g[--l]=1,--n;for(;a>=o;)g[--l]=-1,--a;return g},L=function(e,t,n,r,i,o,a){var u,c,l,s,f,h,d,p=n+o,v=[];e:for(u=0;u<=p;u++){if(u>50)return null;for(d=u-1,f=u?v[u-1]:[0,0],h=v[u]=[],c=-u;c<=u;c+=2){for(s=c===-u||c!==u&&f[d+c-1]=0;u--){for(;s>0&&l>0&&a(r[i+s-1],e[t+l-1]);)m[g--]=0,s--,l--;if(!u)break;d=u-1,f=u?v[u-1]:[0,0],c=s-l,c===-u||c!==u&&f[d+c-1]>>0;n",t(r,o.firstChild.childNodes),r}var i="fragment",o="content"in n("template"),a=o?function(e){var t=n("template");return t.innerHTML=e,t.content}:function(e){var r=n(i),o=n("template"),a=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(e)){var u=RegExp.$1;o.innerHTML=""+e+"
",a=o.querySelectorAll(u)}else o.innerHTML=e,a=o.childNodes;return t(r,a),r};return function(e,t){return("svg"===t?r:a)(e)}}(e),Q=function(e,t,n,r,i){var o="importNode"in e,a=e.createDocumentFragment();return a.appendChild(e.createTextNode("g")),a.appendChild(e.createTextNode("")),(o?e.importNode(a,!0):a.cloneNode(!0)).childNodes.length<2?function u(e,t){for(var n=e.cloneNode(),r=e.childNodes||[],i=r.length,o=0;t&&o

',e.content.childNodes[0].getAttribute("tabindex")==X)})(e.createElement("template"))||(X="_dt: "+X.slice(1,-1)+";");var Y="\x3c!--"+X+"--\x3e",ee=8,te=1,ne=3,re=/^(?:style|textarea)$/i,ie=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,oe=" \\f\\n\\r\\t",ae="[ "+oe+"]+[^ \\f\\n\\r\\t\\/>\"'=]+",ue="<([A-Za-z]+[A-Za-z0-9:_-]*)((?:",ce="(?:\\s*=\\s*(?:'[^']*?'|\"[^\"]*?\"|<[^>]*?>|[^ \\f\\n\\r\\t\\/>\"'=]+))?)",le=new RegExp(ue+ae+ce+"+)([ "+oe+"]*/?>)","g"),se=new RegExp(ue+ae+ce+"*)([ "+oe+"]*/>)","g"),fe=new RegExp("("+ae+"\\s*=\\s*)(['\"]?)"+Y+"\\2","gi"),he=new w,de=new w,pe=function(){function e(e,t,n){return t+"-"+n.toLowerCase()}function t(e,t){var n;return t?n=t.cloneNode(!0):(e.setAttribute("style","--hyper:style;"),n=e.getAttributeNode("style")),n.value="",e.setAttributeNode(n),r(n,!0)}function n(t){var n,r=[];for(n in t)r.push(n.replace(o,e),":",t[n],";");return r.join("")}function r(e,t){var r,o;return function(a){var u,c,l,s;switch(typeof a){case"object":if(a){if("object"===r){if(!t&&o!==a)for(c in o)c in a||(e[c]="")}else t?e.value="":e.cssText="";u=t?{}:e;for(c in a)s=a[c],l="number"!=typeof s||i.test(c)?s:s+"px",!t&&/^--/.test(c)?u.setProperty(c,l):u[c]=l;r="object",t?e.value=n(o=u):o=a;break}default:o!=a&&(r="string",o=a,t?e.value=a||"":e.cssText=a||"")}}}var i=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,o=/([^A-Z])([A-Z]+)/g;return function(e,n){return"ownerSVGElement"in e?t(e,n):r(e.style,!1)}}(),ve=function(e,t){function n(t){var n=this.childNodes=e.call(t,0);this.firstChild=n[0],this.lastChild=n[n.length-1],this.ownerDocument=n[0].ownerDocument,this._=null}return t=n.prototype,t.ELEMENT_NODE=1,t.nodeType=111,t.remove=function(e){var t=this.childNodes,n=this.firstChild,r=this.lastChild;if(this._=null,e&&2===t.length)r.parentNode.removeChild(r);else{var i=this.ownerDocument.createRange();i.setStartBefore(e?t[1]:n),i.setEndAfter(r),i.deleteContents()}return n},t.valueOf=function(e){var t=this._,n=null==t;if(n&&(t=this._=this.ownerDocument.createDocumentFragment()),n||e)for(var r=this.childNodes,i=0,o=r.length;i>>0;na;)--c;l=u+r-c;var g=Array(l),b=s[c];for(--n;b;){for(var y=b,w=y.newi,N=y.oldi;w"+e+"",r=n.querySelectorAll(i)}else n.innerHTML=e,r=n.childNodes;return u(t,r),t};return function(e,t){return("svg"===t?function(e){var t=c(o),n=c("div");return n.innerHTML=''+e+"",u(t,n.firstChild.childNodes),t}:n)(e)};function u(e,t){for(var n=t.length;n--;)e.appendChild(t[0])}function c(e){return e===o?t.createDocumentFragment():t.createElementNS("http://www.w3.org/1999/xhtml",e)}}(g); +/*! (c) Andrea Giammarchi - ISC */ +var O,j,L,D,P,$,W,F,R,H,z=(j="appendChild",L="cloneNode",D="createTextNode",$=(P="importNode")in(O=g),(W=O.createDocumentFragment())[j](O[D]("g")),W[j](O[D]("")),($?O[P](W,!0):W[L](!0)).childNodes.length<2?function e(t,n){for(var r=t[L](),i=t.childNodes||[],o=i.length,a=0;n&&a

',F[R].childNodes[0].getAttribute(H)==Z)||(Z="_dt: "+Z.slice(1,-1)+";");var V="\x3c!--"+Z+"--\x3e",G=8,I=1,q=3,J=/^(?:style|textarea)$/i,K=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i;var Q=" \\f\\n\\r\\t",U="[^ "+Q+"\\/>\"'=]+",X="[ "+Q+"]+"+U,Y="<([A-Za-z]+[A-Za-z0-9:_-]*)((?:",ee="(?:\\s*=\\s*(?:'[^']*?'|\"[^\"]*?\"|<[^>]*?>|"+U+"))?)",te=new RegExp(Y+X+ee+"+)([ "+Q+"]*/?>)","g"),ne=new RegExp(Y+X+ee+"*)([ "+Q+"]*/>)","g"),re=new RegExp("("+X+"\\s*=\\s*)(['\"]?)"+V+"\\2","gi");function ie(e,t,n,r){return"<"+t+n.replace(re,oe)+r}function oe(e,t,n){return t+(n||'"')+Z+(n||'"')}function ae(e,t,n){return K.test(t)?e:"<"+t+n+">"}function ue(e,t,n,r){return{name:r,node:t,path:n,type:e}}function ce(e,t){for(var n=t.length,r=0;r"}function a(e,t,n,r){return{name:r,node:t,path:n,type:e}}function u(e,t){for(var n=t.length,r=0;r=u;){for(var c=t,l=i;ca;)--c;l=u+r-c;var g=Array(l),b=s[c];for(--n;b;){for(var y=b,w=y.newi,N=y.oldi;n>w;)g[--l]=1,--n;for(;a>N;)g[--l]=-1,--a;g[--l]=0,--n,--a,b=b.prev}for(;n>=t;)g[--l]=1,--n;for(;a>=o;)g[--l]=-1,--a;return g},L=function(e,t,n,r,i,o,a){var u,c,l,s,f,h,d,p=n+o,v=[];e:for(u=0;u<=p;u++){if(u>50)return null;for(d=u-1,f=u?v[u-1]:[0,0],h=v[u]=[],c=-u;c<=u;c+=2){for(s=c===-u||c!==u&&f[d+c-1]=0;u--){for(;s>0&&l>0&&a(r[i+s-1],e[t+l-1]);)m[g--]=0,s--,l--;if(!u)break;d=u-1,f=u?v[u-1]:[0,0],c=s-l,c===-u||c!==u&&f[d+c-1]>>0;n",t(r,o.firstChild.childNodes),r}var i="fragment",o="content"in n("template"),a=o?function(e){var t=n("template");return t.innerHTML=e,t.content}:function(e){var r=n(i),o=n("template"),a=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(e)){var u=RegExp.$1;o.innerHTML=""+e+"
",a=o.querySelectorAll(u)}else o.innerHTML=e,a=o.childNodes;return t(r,a),r};return function(e,t){return("svg"===t?r:a)(e)}}(e),Q=function(e,t,n,r,i){var o="importNode"in e,a=e.createDocumentFragment();return a.appendChild(e.createTextNode("g")),a.appendChild(e.createTextNode("")),(o?e.importNode(a,!0):a.cloneNode(!0)).childNodes.length<2?function u(e,t){for(var n=e.cloneNode(),r=e.childNodes||[],i=r.length,o=0;t&&o

',e.content.childNodes[0].getAttribute("tabindex")==X)})(e.createElement("template"))||(X="_dt: "+X.slice(1,-1)+";");var Y="\x3c!--"+X+"--\x3e",ee=8,te=1,ne=3,re=/^(?:style|textarea)$/i,ie=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,oe=" \\f\\n\\r\\t",ae="[ "+oe+"]+[^ \\f\\n\\r\\t\\/>\"'=]+",ue="<([A-Za-z]+[A-Za-z0-9:_-]*)((?:",ce="(?:\\s*=\\s*(?:'[^']*?'|\"[^\"]*?\"|<[^>]*?>|[^ \\f\\n\\r\\t\\/>\"'=]+))?)",le=new RegExp(ue+ae+ce+"+)([ "+oe+"]*/?>)","g"),se=new RegExp(ue+ae+ce+"*)([ "+oe+"]*/>)","g"),fe=new RegExp("("+ae+"\\s*=\\s*)(['\"]?)"+Y+"\\2","gi"),he=new w,de=new w,pe=function(){function e(e,t,n){return t+"-"+n.toLowerCase()}function t(e,t){var n;return t?n=t.cloneNode(!0):(e.setAttribute("style","--hyper:style;"),n=e.getAttributeNode("style")),n.value="",e.setAttributeNode(n),r(n,!0)}function n(t){var n,r=[];for(n in t)r.push(n.replace(o,e),":",t[n],";");return r.join("")}function r(e,t){var r,o;return function(a){var u,c,l,s;switch(typeof a){case"object":if(a){if("object"===r){if(!t&&o!==a)for(c in o)c in a||(e[c]="")}else t?e.value="":e.cssText="";u=t?{}:e;for(c in a)s=a[c],l="number"!=typeof s||i.test(c)?s:s+"px",!t&&/^--/.test(c)?u.setProperty(c,l):u[c]=l;r="object",t?e.value=n(o=u):o=a;break}default:o!=a&&(r="string",o=a,t?e.value=a||"":e.cssText=a||"")}}}var i=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,o=/([^A-Z])([A-Z]+)/g;return function(e,n){return"ownerSVGElement"in e?t(e,n):r(e.style,!1)}}(),ve=function(e,t){function n(t){var n=this.childNodes=e.call(t,0);this.firstChild=n[0],this.lastChild=n[n.length-1],this.ownerDocument=n[0].ownerDocument,this._=null}return t=n.prototype,t.ELEMENT_NODE=1,t.nodeType=111,t.remove=function(e){var t=this.childNodes,n=this.firstChild,r=this.lastChild;if(this._=null,e&&2===t.length)r.parentNode.removeChild(r);else{var i=this.ownerDocument.createRange();i.setStartBefore(e?t[1]:n),i.setEndAfter(r),i.deleteContents()}return n},t.valueOf=function(e){var t=this._,n=null==t;if(n&&(t=this._=this.ownerDocument.createDocumentFragment()),n||e)for(var r=this.childNodes,i=0,o=r.length;i>>0;na;)--c;l=u+r-c;var g=Array(l),b=s[c];for(--n;b;){for(var y=b,w=y.newi,N=y.oldi;w"+e+"",r=n.querySelectorAll(i)}else n.innerHTML=e,r=n.childNodes;return u(t,r),t};return function(e,t){return("svg"===t?function(e){var t=c(o),n=c("div");return n.innerHTML=''+e+"",u(t,n.firstChild.childNodes),t}:n)(e)};function u(e,t){for(var n=t.length;n--;)e.appendChild(t[0])}function c(e){return e===o?t.createDocumentFragment():t.createElementNS("http://www.w3.org/1999/xhtml",e)}}(g); +/*! (c) Andrea Giammarchi - ISC */ +var O,j,L,D,P,$,W,F,R,H,z=(j="appendChild",L="cloneNode",D="createTextNode",$=(P="importNode")in(O=g),(W=O.createDocumentFragment())[j](O[D]("g")),W[j](O[D]("")),($?O[P](W,!0):W[L](!0)).childNodes.length<2?function e(t,n){for(var r=t[L](),i=t.childNodes||[],o=i.length,a=0;n&&a

',F[R].childNodes[0].getAttribute(H)==Z)||(Z="_dt: "+Z.slice(1,-1)+";");var V="\x3c!--"+Z+"--\x3e",G=8,I=1,q=3,J=/^(?:style|textarea)$/i,K=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i;var Q=" \\f\\n\\r\\t",U="[^ "+Q+"\\/>\"'=]+",X="[ "+Q+"]+"+U,Y="<([A-Za-z]+[A-Za-z0-9:_-]*)((?:",ee="(?:\\s*=\\s*(?:'[^']*?'|\"[^\"]*?\"|<[^>]*?>|"+U+"))?)",te=new RegExp(Y+X+ee+"+)([ "+Q+"]*/?>)","g"),ne=new RegExp(Y+X+ee+"*)([ "+Q+"]*/>)","g"),re=new RegExp("("+X+"\\s*=\\s*)(['\"]?)"+V+"\\2","gi");function ie(e,t,n,r){return"<"+t+n.replace(re,oe)+r}function oe(e,t,n){return t+(n||'"')+Z+(n||'"')}function ae(e,t,n){return K.test(t)?e:"<"+t+n+">"}function ue(e,t,n,r){return{name:r,node:t,path:n,type:e}}function ce(e,t){for(var n=t.length,r=0;r is defined'); p.render().click(); tressa.assert(p.clicked, 'the event worked'); - render(_templateObject101(), [hyperHTML.Component.for.call(Rect, { + render(_templateObject101(), [hyperHTML.Component["for"].call(Rect, { x: 789, y: 123 })]); @@ -2775,7 +2775,7 @@ var _this3 = this; return this.setState(props, false).html(_templateObject118(), props.items.map(function (item, i) { - return MenuItem.for(_this3, i).render(item); + return MenuItem["for"](_this3, i).render(item); })); } }]); @@ -2800,7 +2800,7 @@ var _this4 = this; return this.setState(props, false).html(_templateObject119(), props.items.map(function (item) { - return MenuItem.for(_this4, item).render(item); + return MenuItem["for"](_this4, item).render(item); })); } }]); @@ -2831,15 +2831,15 @@ var a = document.createElement('div'); var b = document.createElement('div'); - var method = hyperHTML.Component.for; + var method = hyperHTML.Component["for"]; - if (!MenuSimple.for) { - MenuSimple.for = method; - MenuWeakMap.for = method; - MenuItem.for = method; + if (!MenuSimple["for"]) { + MenuSimple["for"] = method; + MenuWeakMap["for"] = method; + MenuItem["for"] = method; } - hyperHTML.bind(a)(_templateObject121(), MenuSimple.for(a).render({ + hyperHTML.bind(a)(_templateObject121(), MenuSimple["for"](a).render({ items: [{ name: 'item 1' }, { @@ -2848,8 +2848,8 @@ name: 'item 3' }] })); - tressa.assert(MenuSimple.for(a) === MenuSimple.for(a), 'same simple menu'); - hyperHTML.bind(b)(_templateObject122(), MenuWeakMap.for(b).render({ + tressa.assert(MenuSimple["for"](a) === MenuSimple["for"](a), 'same simple menu'); + hyperHTML.bind(b)(_templateObject122(), MenuWeakMap["for"](b).render({ items: [{ name: 'item 1' }, { @@ -2858,9 +2858,9 @@ name: 'item 3' }] })); - tressa.assert(MenuWeakMap.for(a) === MenuWeakMap.for(a), 'same weakmap menu'); - tressa.assert(MenuSimple.for(a) !== MenuWeakMap.for(a), 'different from simple'); - tressa.assert(MenuSimple.for(a) === MenuSimple.for(a), 'same as simple'); + tressa.assert(MenuWeakMap["for"](a) === MenuWeakMap["for"](a), 'same weakmap menu'); + tressa.assert(MenuSimple["for"](a) !== MenuWeakMap["for"](a), 'different from simple'); + tressa.assert(MenuSimple["for"](a) === MenuSimple["for"](a), 'same as simple'); tressa.assert(a.outerHTML === b.outerHTML, 'same layout'); }).then(function () { tressa.log('## Component.dispatch'); diff --git a/test/svgclass.html b/test/svgclass.html new file mode 100644 index 00000000..6992f5fe --- /dev/null +++ b/test/svgclass.html @@ -0,0 +1,26 @@ + + + + + + + Document + + + + + + \ No newline at end of file diff --git a/umd.js b/umd.js index 3045fa96..5134a6b0 100644 --- a/umd.js +++ b/umd.js @@ -1,6 +1,13 @@ (function(A,G){if(typeof define=='function'&&define.amd)define([],G);else if(typeof module=='object'&&module.exports)module.exports=G();else A.hyperHTML=G()}(typeof self!='undefined'?self:this,function(){ -/*! (c) Andrea Giammarchi (ISC) */var hyperHTML=function(e){"use strict";function t(){return this}function n(e){return e.join(Y).replace(se,o).replace(le,r)}function r(e,t,n,r){return"<"+t+n.replace(fe,i)+r}function i(e,t,n){return t+(n||'"')+X+(n||'"')}function o(e,t,n){return ie.test(t)?e:"<"+t+n+">"}function a(e,t,n,r){return{name:r,node:t,path:n,type:e}}function u(e,t){for(var n=t.length,r=0;r=u;){for(var c=t,l=i;ca;)--c;l=u+r-c;var g=Array(l),b=s[c];for(--n;b;){for(var y=b,w=y.newi,N=y.oldi;n>w;)g[--l]=1,--n;for(;a>N;)g[--l]=-1,--a;g[--l]=0,--n,--a,b=b.prev}for(;n>=t;)g[--l]=1,--n;for(;a>=o;)g[--l]=-1,--a;return g},L=function(e,t,n,r,i,o,a){var u,c,l,s,f,h,d,p=n+o,v=[];e:for(u=0;u<=p;u++){if(u>50)return null;for(d=u-1,f=u?v[u-1]:[0,0],h=v[u]=[],c=-u;c<=u;c+=2){for(s=c===-u||c!==u&&f[d+c-1]=0;u--){for(;s>0&&l>0&&a(r[i+s-1],e[t+l-1]);)m[g--]=0,s--,l--;if(!u)break;d=u-1,f=u?v[u-1]:[0,0],c=s-l,c===-u||c!==u&&f[d+c-1]>>0;n",t(r,o.firstChild.childNodes),r}var i="fragment",o="content"in n("template"),a=o?function(e){var t=n("template");return t.innerHTML=e,t.content}:function(e){var r=n(i),o=n("template"),a=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(e)){var u=RegExp.$1;o.innerHTML=""+e+"
",a=o.querySelectorAll(u)}else o.innerHTML=e,a=o.childNodes;return t(r,a),r};return function(e,t){return("svg"===t?r:a)(e)}}(e),Q=function(e,t,n,r,i){var o="importNode"in e,a=e.createDocumentFragment();return a.appendChild(e.createTextNode("g")),a.appendChild(e.createTextNode("")),(o?e.importNode(a,!0):a.cloneNode(!0)).childNodes.length<2?function u(e,t){for(var n=e.cloneNode(),r=e.childNodes||[],i=r.length,o=0;t&&o

',e.content.childNodes[0].getAttribute("tabindex")==X)})(e.createElement("template"))||(X="_dt: "+X.slice(1,-1)+";");var Y="\x3c!--"+X+"--\x3e",ee=8,te=1,ne=3,re=/^(?:style|textarea)$/i,ie=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,oe=" \\f\\n\\r\\t",ae="[ "+oe+"]+[^ \\f\\n\\r\\t\\/>\"'=]+",ue="<([A-Za-z]+[A-Za-z0-9:_-]*)((?:",ce="(?:\\s*=\\s*(?:'[^']*?'|\"[^\"]*?\"|<[^>]*?>|[^ \\f\\n\\r\\t\\/>\"'=]+))?)",le=new RegExp(ue+ae+ce+"+)([ "+oe+"]*/?>)","g"),se=new RegExp(ue+ae+ce+"*)([ "+oe+"]*/>)","g"),fe=new RegExp("("+ae+"\\s*=\\s*)(['\"]?)"+Y+"\\2","gi"),he=new w,de=new w,pe=function(){function e(e,t,n){return t+"-"+n.toLowerCase()}function t(e,t){var n;return t?n=t.cloneNode(!0):(e.setAttribute("style","--hyper:style;"),n=e.getAttributeNode("style")),n.value="",e.setAttributeNode(n),r(n,!0)}function n(t){var n,r=[];for(n in t)r.push(n.replace(o,e),":",t[n],";");return r.join("")}function r(e,t){var r,o;return function(a){var u,c,l,s;switch(typeof a){case"object":if(a){if("object"===r){if(!t&&o!==a)for(c in o)c in a||(e[c]="")}else t?e.value="":e.cssText="";u=t?{}:e;for(c in a)s=a[c],l="number"!=typeof s||i.test(c)?s:s+"px",!t&&/^--/.test(c)?u.setProperty(c,l):u[c]=l;r="object",t?e.value=n(o=u):o=a;break}default:o!=a&&(r="string",o=a,t?e.value=a||"":e.cssText=a||"")}}}var i=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,o=/([^A-Z])([A-Z]+)/g;return function(e,n){return"ownerSVGElement"in e?t(e,n):r(e.style,!1)}}(),ve=function(e,t){function n(t){var n=this.childNodes=e.call(t,0);this.firstChild=n[0],this.lastChild=n[n.length-1],this.ownerDocument=n[0].ownerDocument,this._=null}return t=n.prototype,t.ELEMENT_NODE=1,t.nodeType=111,t.remove=function(e){var t=this.childNodes,n=this.firstChild,r=this.lastChild;if(this._=null,e&&2===t.length)r.parentNode.removeChild(r);else{var i=this.ownerDocument.createRange();i.setStartBefore(e?t[1]:n),i.setEndAfter(r),i.deleteContents()}return n},t.valueOf=function(e){var t=this._,n=null==t;if(n&&(t=this._=this.ownerDocument.createDocumentFragment()),n||e)for(var r=this.childNodes,i=0,o=r.length;i>>0;na;)--c;l=u+r-c;var g=Array(l),b=s[c];for(--n;b;){for(var y=b,w=y.newi,N=y.oldi;w"+e+"",r=n.querySelectorAll(i)}else n.innerHTML=e,r=n.childNodes;return u(t,r),t};return function(e,t){return("svg"===t?function(e){var t=c(o),n=c("div");return n.innerHTML=''+e+"",u(t,n.firstChild.childNodes),t}:n)(e)};function u(e,t){for(var n=t.length;n--;)e.appendChild(t[0])}function c(e){return e===o?t.createDocumentFragment():t.createElementNS("http://www.w3.org/1999/xhtml",e)}}(g); +/*! (c) Andrea Giammarchi - ISC */ +var O,j,L,D,P,$,W,F,R,H,z=(j="appendChild",L="cloneNode",D="createTextNode",$=(P="importNode")in(O=g),(W=O.createDocumentFragment())[j](O[D]("g")),W[j](O[D]("")),($?O[P](W,!0):W[L](!0)).childNodes.length<2?function e(t,n){for(var r=t[L](),i=t.childNodes||[],o=i.length,a=0;n&&a

',F[R].childNodes[0].getAttribute(H)==Z)||(Z="_dt: "+Z.slice(1,-1)+";");var V="\x3c!--"+Z+"--\x3e",G=8,I=1,q=3,J=/^(?:style|textarea)$/i,K=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i;var Q=" \\f\\n\\r\\t",U="[^ "+Q+"\\/>\"'=]+",X="[ "+Q+"]+"+U,Y="<([A-Za-z]+[A-Za-z0-9:_-]*)((?:",ee="(?:\\s*=\\s*(?:'[^']*?'|\"[^\"]*?\"|<[^>]*?>|"+U+"))?)",te=new RegExp(Y+X+ee+"+)([ "+Q+"]*/?>)","g"),ne=new RegExp(Y+X+ee+"*)([ "+Q+"]*/>)","g"),re=new RegExp("("+X+"\\s*=\\s*)(['\"]?)"+V+"\\2","gi");function ie(e,t,n,r){return"<"+t+n.replace(re,oe)+r}function oe(e,t,n){return t+(n||'"')+Z+(n||'"')}function ae(e,t,n){return K.test(t)?e:"<"+t+n+">"}function ue(e,t,n,r){return{name:r,node:t,path:n,type:e}}function ce(e,t){for(var n=t.length,r=0;r