preact-render-to-string
Advanced tools
Comparing version 5.1.4 to 5.1.5
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("preact")):"function"==typeof define&&define.amd?define(["preact"],t):e.preactRenderToString=t(e.preact)}(this,function(e){var t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,n=function(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},r=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},o=function(e,t,n){return String(e).length>(t||40)||!n&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},i={};function a(e){var n="";for(var r in e){var o=e[r];null!=o&&(n&&(n+=" "),n+=i[r]||(i[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=o,"number"==typeof o&&!1===t.test(r)&&(n+="px"),n+=";")}return n||void 0}function l(e,t){for(var n in t)e[n]=t[n];return e}function s(e,t){return Array.isArray(t)?t.reduce(s,e):null!=t&&!1!==t&&e.push(t),e}var c={shallow:!0},f=[],p=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/;u.render=u;function u(t,i,c,g,d,_){if(null==t||"boolean"==typeof t)return"";Array.isArray(t)&&(t=e.createElement(e.Fragment,null,t));var h=t.type,v=t.props,m=!1;i=i||{};var y,x=(c=c||{}).pretty,b=x&&"string"==typeof x?x:"\t";if("object"!=typeof t&&!h)return n(t);if("function"==typeof h){if(m=!0,!c.shallow||!g&&!1!==c.renderRootComponent){if(h===e.Fragment){var S="",w=[];s(w,t.props.children);for(var k=0;k<w.length;k++)S+=(k>0&&x?"\n":"")+u(w[k],i,c,!1!==c.shallowHighOrder,d,_);return S}var O,C=t.__c={__v:t,context:i,props:t.props,__h:[]};if(e.options.__r&&e.options.__r(t),h.prototype&&"function"==typeof h.prototype.render){var A=h.contextType,j=A&&i[A.__c],F=null!=A?j?j.props.value:A.__:i;(C=t.__c=new h(v,F)).__v=t,C._dirty=C.__d=!0,C.props=v,null==C.state&&(C.state={}),null==C._nextState&&null==C.__s&&(C._nextState=C.__s=C.state),C.context=F,h.getDerivedStateFromProps?C.state=l(l({},C.state),h.getDerivedStateFromProps(C.props,C.state)):C.componentWillMount&&C.componentWillMount(),C.state=C._nextState!==C.state?C._nextState:C.__s!==C.state?C.__s:C.state,O=C.render(C.props,C.state,C.context)}else{var H=h.contextType,T=H&&i[H.__c];O=h.call(t.__c,v,null!=H?T?T.props.value:H.__:i)}return C.getChildContext&&(i=l(l({},i),C.getChildContext())),u(O,i,c,!1!==c.shallowHighOrder,d,_)}h=(y=h).displayName||y!==Function&&y.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var n=-1,r=f.length;r--;)if(f[r]===e){n=r;break}n<0&&(n=f.push(e)-1),t="UnnamedComponent"+n}return t}(y)}var $,L="";if(v){var M=Object.keys(v);c&&!0===c.sortAttributes&&M.sort();for(var R=0;R<M.length;R++){var q=M[R],D=v[q];if("children"!==q&&(!q.match(/[\s\n\\/='"\0<>]/)&&(c&&c.allAttributes||"key"!==q&&"ref"!==q))){if("className"===q){if(v.class)continue;q="class"}else d&&q.match(/^xlink:?./)&&(q=q.toLowerCase().replace(/^xlink:?/,"xlink:"));"style"===q&&D&&"object"==typeof D&&(D=a(D));var E=c.attributeHook&&c.attributeHook(q,D,i,c,m);if(E||""===E)L+=E;else if("dangerouslySetInnerHTML"===q)$=D&&D.__html;else if((D||0===D||""===D)&&"function"!=typeof D){if(!(!0!==D&&""!==D||(D=q,c&&c.xml))){L+=" "+q;continue}if("value"===q){if("select"===h){_=D;continue}"option"===h&&_==D&&(L+=" selected")}L+=" "+q+'="'+n(D)+'"'}}}}if(x){var N=L.replace(/^\n\s*/," ");N===L||~N.indexOf("\n")?x&&~L.indexOf("\n")&&(L+="\n"):L=N}if(L="<"+h+L+">",String(h).match(/[\s\n\\/='"\0<>]/))throw new Error(h+" is not a valid HTML tag name in "+L);var P=String(h).match(p);P&&(L=L.replace(/>$/," />"));var W,z=[];if($)x&&o($)&&($="\n"+b+r($,b)),L+=$;else if(v&&s(W=[],v.children).length){for(var I=x&&~L.indexOf("\n"),U=!1,Z=0;Z<W.length;Z++){var B=W[Z];if(null!=B&&!1!==B){var G=u(B,i,c,!0,"svg"===h||"foreignObject"!==h&&d,_);if(x&&!I&&o(G)&&(I=!0),G)if(x){var J=G.length>0&&"<"!=G[0];U&&J?z[z.length-1]+=G:z.push(G),U=J}else z.push(G)}}if(x&&I)for(var K=z.length;K--;)z[K]="\n"+b+r(z[K],b)}if(z.length)L+=z.join("");else if(c&&c.xml)return L.substring(0,L.length-1)+" />";return P||(x&&~L.indexOf("\n")&&(L+="\n"),L+="</"+h+">"),L}return u.shallowRender=function(e,t){return u(e,t,c)},u}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("preact")):"function"==typeof define&&define.amd?define(["preact"],t):e.preactRenderToString=t(e.preact)}(this,function(e){var t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,n=function(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},r=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},o=function(e,t,n){return String(e).length>(t||40)||!n&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},i={};function a(e){var n="";for(var r in e){var o=e[r];null!=o&&(n&&(n+=" "),n+=i[r]||(i[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=o,"number"==typeof o&&!1===t.test(r)&&(n+="px"),n+=";")}return n||void 0}function l(e,t){for(var n in t)e[n]=t[n];return e}function s(e,t){return Array.isArray(t)?t.reduce(s,e):null!=t&&!1!==t&&e.push(t),e}var c={shallow:!0},f=[],p=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,u=function(){};g.render=g;function g(t,i,c,d,_,h){if(null==t||"boolean"==typeof t)return"";Array.isArray(t)&&(t=e.createElement(e.Fragment,null,t));var v=t.type,m=t.props,y=!1;i=i||{};var x,b=(c=c||{}).pretty,S=b&&"string"==typeof b?b:"\t";if("object"!=typeof t&&!v)return n(t);if("function"==typeof v){if(y=!0,!c.shallow||!d&&!1!==c.renderRootComponent){if(v===e.Fragment){var w="",k=[];s(k,t.props.children);for(var O=0;O<k.length;O++)w+=(O>0&&b?"\n":"")+g(k[O],i,c,!1!==c.shallowHighOrder,_,h);return w}var C,A=t.__c={__v:t,context:i,props:t.props,setState:u,forceUpdate:u,__h:[]};if(e.options.__r&&e.options.__r(t),v.prototype&&"function"==typeof v.prototype.render){var j=v.contextType,F=j&&i[j.__c],H=null!=j?F?F.props.value:j.__:i;(A=t.__c=new v(m,H)).__v=t,A._dirty=A.__d=!0,A.props=m,null==A.state&&(A.state={}),null==A._nextState&&null==A.__s&&(A._nextState=A.__s=A.state),A.context=H,v.getDerivedStateFromProps?A.state=l(l({},A.state),v.getDerivedStateFromProps(A.props,A.state)):A.componentWillMount&&A.componentWillMount(),A.state=A._nextState!==A.state?A._nextState:A.__s!==A.state?A.__s:A.state,C=A.render(A.props,A.state,A.context)}else{var T=v.contextType,$=T&&i[T.__c];C=v.call(t.__c,m,null!=T?$?$.props.value:T.__:i)}return A.getChildContext&&(i=l(l({},i),A.getChildContext())),g(C,i,c,!1!==c.shallowHighOrder,_,h)}v=(x=v).displayName||x!==Function&&x.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var n=-1,r=f.length;r--;)if(f[r]===e){n=r;break}n<0&&(n=f.push(e)-1),t="UnnamedComponent"+n}return t}(x)}var L,M="";if(m){var R=Object.keys(m);c&&!0===c.sortAttributes&&R.sort();for(var q=0;q<R.length;q++){var D=R[q],E=m[D];if("children"!==D&&(!D.match(/[\s\n\\/='"\0<>]/)&&(c&&c.allAttributes||"key"!==D&&"ref"!==D))){if("className"===D){if(m.class)continue;D="class"}else _&&D.match(/^xlink:?./)&&(D=D.toLowerCase().replace(/^xlink:?/,"xlink:"));"style"===D&&E&&"object"==typeof E&&(E=a(E));var N=c.attributeHook&&c.attributeHook(D,E,i,c,y);if(N||""===N)M+=N;else if("dangerouslySetInnerHTML"===D)L=E&&E.__html;else if((E||0===E||""===E)&&"function"!=typeof E){if(!(!0!==E&&""!==E||(E=D,c&&c.xml))){M+=" "+D;continue}if("value"===D){if("select"===v){h=E;continue}"option"===v&&h==E&&(M+=" selected")}M+=" "+D+'="'+n(E)+'"'}}}}if(b){var P=M.replace(/^\n\s*/," ");P===M||~P.indexOf("\n")?b&&~M.indexOf("\n")&&(M+="\n"):M=P}if(M="<"+v+M+">",String(v).match(/[\s\n\\/='"\0<>]/))throw new Error(v+" is not a valid HTML tag name in "+M);var U=String(v).match(p);U&&(M=M.replace(/>$/," />"));var W,z=[];if(L)b&&o(L)&&(L="\n"+S+r(L,S)),M+=L;else if(m&&s(W=[],m.children).length){for(var I=b&&~M.indexOf("\n"),Z=!1,B=0;B<W.length;B++){var G=W[B];if(null!=G&&!1!==G){var J=g(G,i,c,!0,"svg"===v||"foreignObject"!==v&&_,h);if(b&&!I&&o(J)&&(I=!0),J)if(b){var K=J.length>0&&"<"!=J[0];Z&&K?z[z.length-1]+=J:z.push(J),Z=K}else z.push(J)}}if(b&&I)for(var Q=z.length;Q--;)z[Q]="\n"+S+r(z[Q],S)}if(z.length)M+=z.join("");else if(c&&c.xml)return M.substring(0,M.length-1)+" />";return U||(b&&~M.indexOf("\n")&&(M+="\n"),M+="</"+v+">"),M}return g.shallowRender=function(e,t){return g(e,t,c)},g}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import{options as e,Fragment as t,createElement as r}from"preact";var n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,o=function(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},a=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},i=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},l={};function s(e){var t="";for(var r in e){var o=e[r];null!=o&&(t&&(t+=" "),t+=l[r]||(l[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),t+=": ",t+=o,"number"==typeof o&&!1===n.test(r)&&(t+="px"),t+=";")}return t||void 0}function p(e,t){for(var r in t)e[r]=t[r];return e}function c(e,t){return Array.isArray(t)?t.reduce(c,e):null!=t&&!1!==t&&e.push(t),e}var f={shallow:!0},u=[],g=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/;v.render=v;var _=function(e,t){return v(e,t,f)};function v(n,l,f,_,h,d){if(null==n||"boolean"==typeof n)return"";Array.isArray(n)&&(n=r(t,null,n));var m=n.type,x=n.props,y=!1;l=l||{};var b,S=(f=f||{}).pretty,w=S&&"string"==typeof S?S:"\t";if("object"!=typeof n&&!m)return o(n);if("function"==typeof m){if(y=!0,!f.shallow||!_&&!1!==f.renderRootComponent){if(m===t){var k="",O=[];c(O,n.props.children);for(var C=0;C<O.length;C++)k+=(C>0&&S?"\n":"")+v(O[C],l,f,!1!==f.shallowHighOrder,h,d);return k}var A,H=n.__c={__v:n,context:l,props:n.props,__h:[]};if(e.__r&&e.__r(n),m.prototype&&"function"==typeof m.prototype.render){var j=m.contextType,$=j&&l[j.__c],F=null!=j?$?$.props.value:j.__:l;(H=n.__c=new m(x,F)).__v=n,H._dirty=H.__d=!0,H.props=x,null==H.state&&(H.state={}),null==H._nextState&&null==H.__s&&(H._nextState=H.__s=H.state),H.context=F,m.getDerivedStateFromProps?H.state=p(p({},H.state),m.getDerivedStateFromProps(H.props,H.state)):H.componentWillMount&&H.componentWillMount(),H.state=H._nextState!==H.state?H._nextState:H.__s!==H.state?H.__s:H.state,A=H.render(H.props,H.state,H.context)}else{var L=m.contextType,M=L&&l[L.__c];A=m.call(n.__c,x,null!=L?M?M.props.value:L.__:l)}return H.getChildContext&&(l=p(p({},l),H.getChildContext())),v(A,l,f,!1!==f.shallowHighOrder,h,d)}m=(b=m).displayName||b!==Function&&b.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=u.length;n--;)if(u[n]===e){r=n;break}r<0&&(r=u.push(e)-1),t="UnnamedComponent"+r}return t}(b)}var T,D="";if(x){var N=Object.keys(x);f&&!0===f.sortAttributes&&N.sort();for(var P=0;P<N.length;P++){var R=N[P],W=x[R];if("children"!==R&&(!R.match(/[\s\n\\/='"\0<>]/)&&(f&&f.allAttributes||"key"!==R&&"ref"!==R))){if("className"===R){if(x.class)continue;R="class"}else h&&R.match(/^xlink:?./)&&(R=R.toLowerCase().replace(/^xlink:?/,"xlink:"));"style"===R&&W&&"object"==typeof W&&(W=s(W));var q=f.attributeHook&&f.attributeHook(R,W,l,f,y);if(q||""===q)D+=q;else if("dangerouslySetInnerHTML"===R)T=W&&W.__html;else if((W||0===W||""===W)&&"function"!=typeof W){if(!(!0!==W&&""!==W||(W=R,f&&f.xml))){D+=" "+R;continue}if("value"===R){if("select"===m){d=W;continue}"option"===m&&d==W&&(D+=" selected")}D+=" "+R+'="'+o(W)+'"'}}}}if(S){var z=D.replace(/^\n\s*/," ");z===D||~z.indexOf("\n")?S&&~D.indexOf("\n")&&(D+="\n"):D=z}if(D="<"+m+D+">",String(m).match(/[\s\n\\/='"\0<>]/))throw new Error(m+" is not a valid HTML tag name in "+D);var E=String(m).match(g);E&&(D=D.replace(/>$/," />"));var I,U=[];if(T)S&&i(T)&&(T="\n"+w+a(T,w)),D+=T;else if(x&&c(I=[],x.children).length){for(var Z=S&&~D.indexOf("\n"),B=!1,G=0;G<I.length;G++){var J=I[G];if(null!=J&&!1!==J){var K=v(J,l,f,!0,"svg"===m||"foreignObject"!==m&&h,d);if(S&&!Z&&i(K)&&(Z=!0),K)if(S){var Q=K.length>0&&"<"!=K[0];B&&Q?U[U.length-1]+=K:U.push(K),B=Q}else U.push(K)}}if(S&&Z)for(var V=U.length;V--;)U[V]="\n"+w+a(U[V],w)}if(U.length)D+=U.join("");else if(f&&f.xml)return D.substring(0,D.length-1)+" />";return E||(S&&~D.indexOf("\n")&&(D+="\n"),D+="</"+m+">"),D}v.shallowRender=_;export default v;export{v as render,v as renderToString,_ as shallowRender}; | ||
import{options as e,Fragment as t,createElement as r}from"preact";var n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,o=function(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},a=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},i=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},l={};function s(e){var t="";for(var r in e){var o=e[r];null!=o&&(t&&(t+=" "),t+=l[r]||(l[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),t+=": ",t+=o,"number"==typeof o&&!1===n.test(r)&&(t+="px"),t+=";")}return t||void 0}function c(e,t){for(var r in t)e[r]=t[r];return e}function f(e,t){return Array.isArray(t)?t.reduce(f,e):null!=t&&!1!==t&&e.push(t),e}var p={shallow:!0},u=[],g=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,_=function(){};h.render=h;var v=function(e,t){return h(e,t,p)};function h(n,l,p,v,d,m){if(null==n||"boolean"==typeof n)return"";Array.isArray(n)&&(n=r(t,null,n));var x=n.type,y=n.props,b=!1;l=l||{};var S,w=(p=p||{}).pretty,k=w&&"string"==typeof w?w:"\t";if("object"!=typeof n&&!x)return o(n);if("function"==typeof x){if(b=!0,!p.shallow||!v&&!1!==p.renderRootComponent){if(x===t){var O="",C=[];f(C,n.props.children);for(var A=0;A<C.length;A++)O+=(A>0&&w?"\n":"")+h(C[A],l,p,!1!==p.shallowHighOrder,d,m);return O}var H,j=n.__c={__v:n,context:l,props:n.props,setState:_,forceUpdate:_,__h:[]};if(e.__r&&e.__r(n),x.prototype&&"function"==typeof x.prototype.render){var $=x.contextType,F=$&&l[$.__c],L=null!=$?F?F.props.value:$.__:l;(j=n.__c=new x(y,L)).__v=n,j._dirty=j.__d=!0,j.props=y,null==j.state&&(j.state={}),null==j._nextState&&null==j.__s&&(j._nextState=j.__s=j.state),j.context=L,x.getDerivedStateFromProps?j.state=c(c({},j.state),x.getDerivedStateFromProps(j.props,j.state)):j.componentWillMount&&j.componentWillMount(),j.state=j._nextState!==j.state?j._nextState:j.__s!==j.state?j.__s:j.state,H=j.render(j.props,j.state,j.context)}else{var M=x.contextType,T=M&&l[M.__c];H=x.call(n.__c,y,null!=M?T?T.props.value:M.__:l)}return j.getChildContext&&(l=c(c({},l),j.getChildContext())),h(H,l,p,!1!==p.shallowHighOrder,d,m)}x=(S=x).displayName||S!==Function&&S.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=u.length;n--;)if(u[n]===e){r=n;break}r<0&&(r=u.push(e)-1),t="UnnamedComponent"+r}return t}(S)}var D,N="";if(y){var P=Object.keys(y);p&&!0===p.sortAttributes&&P.sort();for(var R=0;R<P.length;R++){var U=P[R],W=y[U];if("children"!==U&&(!U.match(/[\s\n\\/='"\0<>]/)&&(p&&p.allAttributes||"key"!==U&&"ref"!==U))){if("className"===U){if(y.class)continue;U="class"}else d&&U.match(/^xlink:?./)&&(U=U.toLowerCase().replace(/^xlink:?/,"xlink:"));"style"===U&&W&&"object"==typeof W&&(W=s(W));var q=p.attributeHook&&p.attributeHook(U,W,l,p,b);if(q||""===q)N+=q;else if("dangerouslySetInnerHTML"===U)D=W&&W.__html;else if((W||0===W||""===W)&&"function"!=typeof W){if(!(!0!==W&&""!==W||(W=U,p&&p.xml))){N+=" "+U;continue}if("value"===U){if("select"===x){m=W;continue}"option"===x&&m==W&&(N+=" selected")}N+=" "+U+'="'+o(W)+'"'}}}}if(w){var z=N.replace(/^\n\s*/," ");z===N||~z.indexOf("\n")?w&&~N.indexOf("\n")&&(N+="\n"):N=z}if(N="<"+x+N+">",String(x).match(/[\s\n\\/='"\0<>]/))throw new Error(x+" is not a valid HTML tag name in "+N);var E=String(x).match(g);E&&(N=N.replace(/>$/," />"));var I,Z=[];if(D)w&&i(D)&&(D="\n"+k+a(D,k)),N+=D;else if(y&&f(I=[],y.children).length){for(var B=w&&~N.indexOf("\n"),G=!1,J=0;J<I.length;J++){var K=I[J];if(null!=K&&!1!==K){var Q=h(K,l,p,!0,"svg"===x||"foreignObject"!==x&&d,m);if(w&&!B&&i(Q)&&(B=!0),Q)if(w){var V=Q.length>0&&"<"!=Q[0];G&&V?Z[Z.length-1]+=Q:Z.push(Q),G=V}else Z.push(Q)}}if(w&&B)for(var X=Z.length;X--;)Z[X]="\n"+k+a(Z[X],k)}if(Z.length)N+=Z.join("");else if(p&&p.xml)return N.substring(0,N.length-1)+" />";return E||(w&&~N.indexOf("\n")&&(N+="\n"),N+="</"+x+">"),N}h.shallowRender=v;export default h;export{h as render,h as renderToString,v as shallowRender}; | ||
//# sourceMappingURL=index.module.js.map |
@@ -1,2 +0,2 @@ | ||
var e,t;e=void 0,t=function(){if("function"!=typeof Symbol){var e=0;Symbol=function(t){return"@@"+t+ ++e},Symbol.for=function(e){return"@@"+e}}var t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,n=function(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},r=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},o=function(e,t,n){return String(e).length>(t||40)||!n&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},l={};function i(e){var n="";for(var r in e){var o=e[r];null!=o&&(n&&(n+=" "),n+=l[r]||(l[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=o,"number"==typeof o&&!1===t.test(r)&&(n+="px"),n+=";")}return n||void 0}function u(e,t){for(var n in t)e[n]=t[n];return e}function c(e,t){return Array.isArray(t)?t.reduce(c,e):null!=t&&!1!==t&&e.push(t),e}var a,_,f,s,p={},d=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function h(e,t){for(var n in t)e[n]=t[n];return e}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function m(e,t,n){var r,o=arguments,l={};for(r in t)"key"!==r&&"ref"!==r&&(l[r]=t[r]);if(arguments.length>3)for(n=[n],r=3;r<arguments.length;r++)n.push(o[r]);if(null!=n&&(l.children=n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===l[r]&&(l[r]=e.defaultProps[r]);return g(e,l,t&&t.key,t&&t.ref)}function g(e,t,n,r){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:null,__c:null,constructor:void 0};return a.vnode&&a.vnode(o),o}function b(e){return e.children}function k(e,t){this.props=e,this.context=t}function x(e,t){if(null==t)return e.__?x(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?x(e):null}function S(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return S(e)}}function w(e){(!e.__d&&(e.__d=!0)&&1===_.push(e)||s!==a.debounceRendering)&&((s=a.debounceRendering)||f)(j)}function j(){var e,t,n,r,o,l,i;for(_.sort(function(e,t){return t.__v.__b-e.__v.__b});e=_.pop();)e.__d&&(n=void 0,r=void 0,l=(o=(t=e).__v).__e,(i=t.__P)&&(n=[],r=P(i,o,h({},o),t.__n,void 0!==i.ownerSVGElement,null,n,null==l?x(o):l),D(n,o),r!=l&&S(o)))}function A(e,t,n,r,o,l,i,u,c){var a,_,f,s,y,h,m,g=n&&n.__k||d,b=g.length;if(u==p&&(u=null!=l?l[0]:b?x(n,0):null),a=0,t.__k=O(t.__k,function(n){if(null!=n){if(n.__=t,n.__b=t.__b+1,null===(f=g[a])||f&&n.key==f.key&&n.type===f.type)g[a]=void 0;else for(_=0;_<b;_++){if((f=g[_])&&n.key==f.key&&n.type===f.type){g[_]=void 0;break}f=null}if(s=P(e,n,f=f||p,r,o,l,i,u,c),(_=n.ref)&&f.ref!=_&&(m||(m=[]),f.ref&&m.push(f.ref,null,n),m.push(_,n.__c||s,n)),null!=s){if(null==h&&(h=s),null!=n.__d)s=n.__d,n.__d=null;else if(l==f||s!=u||null==s.parentNode){e:if(null==u||u.parentNode!==e)e.appendChild(s);else{for(y=u,_=0;(y=y.nextSibling)&&_<b;_+=2)if(y==s)break e;e.insertBefore(s,u)}"option"==t.type&&(e.value="")}u=s.nextSibling,"function"==typeof t.type&&(t.__d=s)}}return a++,n}),t.__e=h,null!=l&&"function"!=typeof t.type)for(a=l.length;a--;)null!=l[a]&&v(l[a]);for(a=b;a--;)null!=g[a]&&T(g[a],g[a]);if(m)for(a=0;a<m.length;a++)M(m[a],m[++a],m[++a])}function O(e,t,n){if(null==n&&(n=[]),null==e||"boolean"==typeof e)t&&n.push(t(null));else if(Array.isArray(e))for(var r=0;r<e.length;r++)O(e[r],t,n);else n.push(t?t("string"==typeof e||"number"==typeof e?g(null,e,null,null):null!=e.__e||null!=e.__c?g(e.type,e.props,e.key,null):e):e);return n}function C(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]="number"==typeof n&&!1===y.test(t)?n+"px":null==n?"":n}function F(e,t,n,r,o){var l,i,u,c,a;if(o?"className"===t&&(t="class"):"class"===t&&(t="className"),"key"===t||"children"===t);else if("style"===t)if(l=e.style,"string"==typeof n)l.cssText=n;else{if("string"==typeof r&&(l.cssText="",r=null),r)for(i in r)n&&i in n||C(l,i,"");if(n)for(u in n)r&&n[u]===r[u]||C(l,u,n[u])}else"o"===t[0]&&"n"===t[1]?(c=t!==(t=t.replace(/Capture$/,"")),t=((a=t.toLowerCase())in e?a:t).slice(2),n?(r||e.addEventListener(t,N,c),(e.l||(e.l={}))[t]=n):e.removeEventListener(t,N,c)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&!o&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(t!==(t=t.replace(/^xlink:?/,""))?null==n||!1===n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):null==n||!1===n?e.removeAttribute(t):e.setAttribute(t,n))}function N(e){this.l[e.type](a.event?a.event(e):e)}function P(e,t,n,r,o,l,i,u,c){var _,f,s,p,d,y,v,m,g,x,S=t.type;if(void 0!==t.constructor)return null;(_=a.__b)&&_(t);try{e:if("function"==typeof S){if(m=t.props,g=(_=S.contextType)&&r[_.__c],x=_?g?g.props.value:_.__:r,n.__c?v=(f=t.__c=n.__c).__=f.__E:("prototype"in S&&S.prototype.render?t.__c=f=new S(m,x):(t.__c=f=new k(m,x),f.constructor=S,f.render=U),g&&g.sub(f),f.props=m,f.state||(f.state={}),f.context=x,f.__n=r,s=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=S.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=h({},f.__s)),h(f.__s,S.getDerivedStateFromProps(m,f.__s))),p=f.props,d=f.state,s)null==S.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==S.getDerivedStateFromProps&&m!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(m,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(m,f.__s,x)){for(f.props=m,f.state=f.__s,f.__d=!1,f.__v=t,t.__e=n.__e,t.__k=n.__k,f.__h.length&&i.push(f),_=0;_<t.__k.length;_++)t.__k[_]&&(t.__k[_].__=t);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(m,f.__s,x),null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(p,d,y)})}f.context=x,f.props=m,f.state=f.__s,(_=a.__r)&&_(t),f.__d=!1,f.__v=t,f.__P=e,_=f.render(f.props,f.state,f.context),t.__k=O(null!=_&&_.type==b&&null==_.key?_.props.children:_),null!=f.getChildContext&&(r=h(h({},r),f.getChildContext())),s||null==f.getSnapshotBeforeUpdate||(y=f.getSnapshotBeforeUpdate(p,d)),A(e,t,n,r,o,l,i,u,c),f.base=t.__e,f.__h.length&&i.push(f),v&&(f.__E=f.__=null),f.__e=null}else t.__e=E(n.__e,t,n,r,o,l,i,c);(_=a.diffed)&&_(t)}catch(e){a.__e(e,t,n)}return t.__e}function D(e,t){a.__c&&a.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){a.__e(e,t.__v)}})}function E(e,t,n,r,o,l,i,u){var c,a,_,f,s,y=n.props,h=t.props;if(o="svg"===t.type||o,null==e&&null!=l)for(c=0;c<l.length;c++)if(null!=(a=l[c])&&(null===t.type?3===a.nodeType:a.localName===t.type)){e=a,l[c]=null;break}if(null==e){if(null===t.type)return document.createTextNode(h);e=o?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type),l=null}if(null===t.type)null!=l&&(l[l.indexOf(e)]=null),y!==h&&e.data!=h&&(e.data=h);else if(t!==n){if(null!=l&&(l=d.slice.call(e.childNodes)),_=(y=n.props||p).dangerouslySetInnerHTML,f=h.dangerouslySetInnerHTML,!u){if(y===p)for(y={},s=0;s<e.attributes.length;s++)y[e.attributes[s].name]=e.attributes[s].value;(f||_)&&(f&&_&&f.__html==_.__html||(e.innerHTML=f&&f.__html||""))}(function(e,t,n,r,o){var l;for(l in n)l in t||F(e,l,null,n[l],r);for(l in t)o&&"function"!=typeof t[l]||"value"===l||"checked"===l||n[l]===t[l]||F(e,l,t[l],n[l],r)})(e,h,y,o,u),t.__k=t.props.children,f||A(e,t,n,r,"foreignObject"!==t.type&&o,l,i,p,u),u||("value"in h&&void 0!==h.value&&h.value!==e.value&&(e.value=null==h.value?"":h.value),"checked"in h&&void 0!==h.checked&&h.checked!==e.checked&&(e.checked=h.checked))}return e}function M(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){a.__e(e,n)}}function T(e,t,n){var r,o,l;if(a.unmount&&a.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||M(r,null,t)),n||"function"==typeof e.type||(n=null!=(o=e.__e)),e.__e=e.__d=null,null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){a.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(l=0;l<r.length;l++)r[l]&&T(r[l],t,n);null!=o&&v(o)}function U(e,t,n){return this.constructor(e,n)}a={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(e)),r)return w(n.__E=n)}catch(t){e=t}throw e}},k.prototype.setState=function(e,t){var n;n=this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(n,this.props)),e&&h(n,e),null!=e&&this.__v&&(this.__e=!1,t&&this.__h.push(t),w(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},k.prototype.render=b,_=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;var L={shallow:!0},W=[],H=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/;function I(e,t,l,_,f,s){if(null==e||"boolean"==typeof e)return"";Array.isArray(e)&&(e=m(b,null,e));var p=e.type,d=e.props,y=!1;t=t||{};var h,v=(l=l||{}).pretty,g=v&&"string"==typeof v?v:"\t";if("object"!=typeof e&&!p)return n(e);if("function"==typeof p){if(y=!0,!l.shallow||!_&&!1!==l.renderRootComponent){if(p===b){var k="",x=[];c(x,e.props.children);for(var S=0;S<x.length;S++)k+=(S>0&&v?"\n":"")+I(x[S],t,l,!1!==l.shallowHighOrder,f,s);return k}var w,j=e.__c={__v:e,context:t,props:e.props,__h:[]};if(a.__r&&a.__r(e),p.prototype&&"function"==typeof p.prototype.render){var A=p.contextType,O=A&&t[A.__c],C=null!=A?O?O.props.value:A.__:t;(j=e.__c=new p(d,C)).__v=e,j._dirty=j.__d=!0,j.props=d,null==j.state&&(j.state={}),null==j._nextState&&null==j.__s&&(j._nextState=j.__s=j.state),j.context=C,p.getDerivedStateFromProps?j.state=u(u({},j.state),p.getDerivedStateFromProps(j.props,j.state)):j.componentWillMount&&j.componentWillMount(),j.state=j._nextState!==j.state?j._nextState:j.__s!==j.state?j.__s:j.state,w=j.render(j.props,j.state,j.context)}else{var F=p.contextType,N=F&&t[F.__c];w=p.call(e.__c,d,null!=F?N?N.props.value:F.__:t)}return j.getChildContext&&(t=u(u({},t),j.getChildContext())),I(w,t,l,!1!==l.shallowHighOrder,f,s)}p=(h=p).displayName||h!==Function&&h.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var n=-1,r=W.length;r--;)if(W[r]===e){n=r;break}n<0&&(n=W.push(e)-1),t="UnnamedComponent"+n}return t}(h)}var P,D="";if(d){var E=Object.keys(d);l&&!0===l.sortAttributes&&E.sort();for(var M=0;M<E.length;M++){var T=E[M],U=d[T];if("children"!==T&&!T.match(/[\s\n\\/='"\0<>]/)&&(l&&l.allAttributes||"key"!==T&&"ref"!==T)){if("className"===T){if(d.class)continue;T="class"}else f&&T.match(/^xlink:?./)&&(T=T.toLowerCase().replace(/^xlink:?/,"xlink:"));"style"===T&&U&&"object"==typeof U&&(U=i(U));var L=l.attributeHook&&l.attributeHook(T,U,t,l,y);if(L||""===L)D+=L;else if("dangerouslySetInnerHTML"===T)P=U&&U.__html;else if((U||0===U||""===U)&&"function"!=typeof U){if(!(!0!==U&&""!==U||(U=T,l&&l.xml))){D+=" "+T;continue}if("value"===T){if("select"===p){s=U;continue}"option"===p&&s==U&&(D+=" selected")}D+=" "+T+'="'+n(U)+'"'}}}}if(v){var $=D.replace(/^\n\s*/," ");$===D||~$.indexOf("\n")?v&&~D.indexOf("\n")&&(D+="\n"):D=$}if(D="<"+p+D+">",String(p).match(/[\s\n\\/='"\0<>]/))throw new Error(p+" is not a valid HTML tag name in "+D);var R=String(p).match(H);R&&(D=D.replace(/>$/," />"));var B,J=[];if(P)v&&o(P)&&(P="\n"+g+r(P,g)),D+=P;else if(d&&c(B=[],d.children).length){for(var z=v&&~D.indexOf("\n"),G=!1,V=0;V<B.length;V++){var q=B[V];if(null!=q&&!1!==q){var Z=I(q,t,l,!0,"svg"===p||"foreignObject"!==p&&f,s);if(v&&!z&&o(Z)&&(z=!0),Z)if(v){var K=Z.length>0&&"<"!=Z[0];G&&K?J[J.length-1]+=Z:J.push(Z),G=K}else J.push(Z)}}if(v&&z)for(var Q=J.length;Q--;)J[Q]="\n"+g+r(J[Q],g)}if(J.length)D+=J.join("");else if(l&&l.xml)return D.substring(0,D.length-1)+" />";return R||(v&&~D.indexOf("\n")&&(D+="\n"),D+="</"+p+">"),D}I.render=I,I.shallowRender=function(e,t){return I(e,t,L)};var $=/(\\|\"|\')/g,R=function(e){return e.replace($,"\\$1")},B=Object.prototype.toString,J=Date.prototype.toISOString,z=Error.prototype.toString,G=RegExp.prototype.toString,V=Symbol.prototype.toString,q=/^Symbol\((.*)\)(.*)$/,Z=/\n/gi,K=Object.getOwnPropertySymbols||function(e){return[]};function Q(e){return"[object Array]"===e||"[object ArrayBuffer]"===e||"[object DataView]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object Int8Array]"===e||"[object Int16Array]"===e||"[object Int32Array]"===e||"[object Uint8Array]"===e||"[object Uint8ClampedArray]"===e||"[object Uint16Array]"===e||"[object Uint32Array]"===e}function X(e){return""===e.name?"[Function anonymous]":"[Function "+e.name+"]"}function Y(e){return V.call(e).replace(q,"Symbol($1)")}function ee(e){return"["+z.call(e)+"]"}function te(e){if(!0===e||!1===e)return""+e;if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("number"===t)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===t)return'"'+R(e)+'"';if("function"===t)return X(e);if("symbol"===t)return Y(e);var n=B.call(e);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?X(e,min):"[object Symbol]"===n?Y(e):"[object Date]"===n?J.call(e):"[object Error]"===n?ee(e):"[object RegExp]"===n?G.call(e):"[object Arguments]"===n&&0===e.length?"Arguments []":Q(n)&&0===e.length?e.constructor.name+" []":e instanceof Error&&ee(e)}function ne(e,t,n,r,o,l,i,u,c,a){var _="";if(e.length){_+=o;for(var f=n+t,s=0;s<e.length;s++)_+=f+le(e[s],t,f,r,o,l,i,u,c,a),s<e.length-1&&(_+=","+r);_+=o+n}return"["+_+"]"}function re(e,t,n,r,o,l,i,u,c,a){if((l=l.slice()).indexOf(e)>-1)return"[Circular]";l.push(e);var _=++u>i;if(!_&&e.toJSON&&"function"==typeof e.toJSON)return le(e.toJSON(),t,n,r,o,l,i,u,c,a);var f=B.call(e);return"[object Arguments]"===f?_?"[Arguments]":function(e,t,n,r,o,l,i,u,c,a){return(a?"":"Arguments ")+ne(e,t,n,r,o,l,i,u,c,a)}(e,t,n,r,o,l,i,u,c,a):Q(f)?_?"[Array]":function(e,t,n,r,o,l,i,u,c,a){return(a?"":e.constructor.name+" ")+ne(e,t,n,r,o,l,i,u,c,a)}(e,t,n,r,o,l,i,u,c,a):"[object Map]"===f?_?"[Map]":function(e,t,n,r,o,l,i,u,c,a){var _="Map {",f=e.entries(),s=f.next();if(!s.done){_+=o;for(var p=n+t;!s.done;)_+=p+le(s.value[0],t,p,r,o,l,i,u,c,a)+" => "+le(s.value[1],t,p,r,o,l,i,u,c,a),(s=f.next()).done||(_+=","+r);_+=o+n}return _+"}"}(e,t,n,r,o,l,i,u,c,a):"[object Set]"===f?_?"[Set]":function(e,t,n,r,o,l,i,u,c,a){var _="Set {",f=e.entries(),s=f.next();if(!s.done){_+=o;for(var p=n+t;!s.done;)_+=p+le(s.value[1],t,p,r,o,l,i,u,c,a),(s=f.next()).done||(_+=","+r);_+=o+n}return _+"}"}(e,t,n,r,o,l,i,u,c,a):"object"==typeof e?_?"[Object]":function(e,t,n,r,o,l,i,u,c,a){var _=(a?"":e.constructor?e.constructor.name+" ":"Object ")+"{",f=Object.keys(e).sort(),s=K(e);if(s.length&&(f=f.filter(function(e){return!("symbol"==typeof e||"[object Symbol]"===B.call(e))}).concat(s)),f.length){_+=o;for(var p=n+t,d=0;d<f.length;d++){var y=f[d];_+=p+le(y,t,p,r,o,l,i,u,c,a)+": "+le(e[y],t,p,r,o,l,i,u,c,a),d<f.length-1&&(_+=","+r)}_+=o+n}return _+"}"}(e,t,n,r,o,l,i,u,c,a):void 0}function oe(e,t,n,r,o,l,i,u,c,a){for(var _,f=!1,s=0;s<c.length;s++)if((_=c[s]).test(e)){f=!0;break}return!!f&&_.print(e,function(e){return le(e,t,n,r,o,l,i,u,c,a)},function(e){var r=n+t;return r+e.replace(Z,"\n"+r)},{edgeSpacing:o,spacing:r})}function le(e,t,n,r,o,l,i,u,c,a){var _=te(e);return _||(oe(e,t,n,r,o,l,i,u,c,a)||re(e,t,n,r,o,l,i,u,c,a))}var ie={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function ue(e){return new Array(e+1).join(" ")}var ce={test:function(e){return e&&"object"==typeof e&&"type"in e&&"props"in e&&"key"in e},print:function(e,t,n){return I(e,ce.context,ce.opts,!0)}},ae={plugins:[ce]},_e={attributeHook:function(e,t,o,l,i){var u=typeof t;if("dangerouslySetInnerHTML"===e)return!1;if(null==t||"function"===u&&!l.functions)return"";if(l.skipFalseAttributes&&!i&&(!1===t||("class"===e||"style"===e)&&""===t))return"";var c="string"==typeof l.pretty?l.pretty:"\t";return"string"!==u?("function"!==u||l.functionNames?(ce.context=o,ce.opts=l,~(t=function(e,t){var n,r;t?(function(e){if(Object.keys(e).forEach(function(e){if(!ie.hasOwnProperty(e))throw new Error("prettyFormat: Invalid option: "+e)}),e.min&&void 0!==e.indent&&0!==e.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}(t),t=function(e){var t={};return Object.keys(ie).forEach(function(n){return t[n]=e.hasOwnProperty(n)?e[n]:ie[n]}),t.min&&(t.indent=0),t}(t)):t=ie;var o=t.min?" ":"\n",l=t.min?"":"\n";if(t&&t.plugins.length){var i=oe(e,n=ue(t.indent),"",o,l,r=[],t.maxDepth,0,t.plugins,t.min);if(i)return i}return te(e)||(n||(n=ue(t.indent)),r||(r=[]),re(e,n,"",o,l,r,t.maxDepth,0,t.plugins,t.min))}(t,ae)).indexOf("\n")&&(t=r("\n"+t,c)+"\n")):t="Function",r("\n"+e+"={"+t+"}",c)):"\n"+c+e+'="'+n(t)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};return function(e,t,n,r){return I(e,t,n=u(u({},_e),n||{}),r)}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.preactRenderToString=t(); | ||
var e,t;e=void 0,t=function(){if("function"!=typeof Symbol){var e=0;Symbol=function(t){return"@@"+t+ ++e},Symbol.for=function(e){return"@@"+e}}var t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,n=function(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},r=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},o=function(e,t,n){return String(e).length>(t||40)||!n&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},l={};function i(e){var n="";for(var r in e){var o=e[r];null!=o&&(n&&(n+=" "),n+=l[r]||(l[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=o,"number"==typeof o&&!1===t.test(r)&&(n+="px"),n+=";")}return n||void 0}function u(e,t){for(var n in t)e[n]=t[n];return e}function c(e,t){return Array.isArray(t)?t.reduce(c,e):null!=t&&!1!==t&&e.push(t),e}var a,_,f,s,p={},d=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function h(e,t){for(var n in t)e[n]=t[n];return e}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function m(e,t,n){var r,o=arguments,l={};for(r in t)"key"!==r&&"ref"!==r&&(l[r]=t[r]);if(arguments.length>3)for(n=[n],r=3;r<arguments.length;r++)n.push(o[r]);if(null!=n&&(l.children=n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===l[r]&&(l[r]=e.defaultProps[r]);return g(e,l,t&&t.key,t&&t.ref)}function g(e,t,n,r){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:null,__c:null,constructor:void 0};return a.vnode&&a.vnode(o),o}function b(e){return e.children}function k(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function x(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return x(e)}}function w(e){(!e.__d&&(e.__d=!0)&&1===_.push(e)||s!==a.debounceRendering)&&((s=a.debounceRendering)||f)(j)}function j(){var e,t,n,r,o,l,i;for(_.sort(function(e,t){return t.__v.__b-e.__v.__b});e=_.pop();)e.__d&&(n=void 0,r=void 0,l=(o=(t=e).__v).__e,(i=t.__P)&&(n=[],r=P(i,o,h({},o),t.__n,void 0!==i.ownerSVGElement,null,n,null==l?S(o):l),D(n,o),r!=l&&x(o)))}function A(e,t,n,r,o,l,i,u,c){var a,_,f,s,y,h,m,g=n&&n.__k||d,b=g.length;if(u==p&&(u=null!=l?l[0]:b?S(n,0):null),a=0,t.__k=O(t.__k,function(n){if(null!=n){if(n.__=t,n.__b=t.__b+1,null===(f=g[a])||f&&n.key==f.key&&n.type===f.type)g[a]=void 0;else for(_=0;_<b;_++){if((f=g[_])&&n.key==f.key&&n.type===f.type){g[_]=void 0;break}f=null}if(s=P(e,n,f=f||p,r,o,l,i,u,c),(_=n.ref)&&f.ref!=_&&(m||(m=[]),f.ref&&m.push(f.ref,null,n),m.push(_,n.__c||s,n)),null!=s){if(null==h&&(h=s),null!=n.__d)s=n.__d,n.__d=null;else if(l==f||s!=u||null==s.parentNode){e:if(null==u||u.parentNode!==e)e.appendChild(s);else{for(y=u,_=0;(y=y.nextSibling)&&_<b;_+=2)if(y==s)break e;e.insertBefore(s,u)}"option"==t.type&&(e.value="")}u=s.nextSibling,"function"==typeof t.type&&(t.__d=s)}}return a++,n}),t.__e=h,null!=l&&"function"!=typeof t.type)for(a=l.length;a--;)null!=l[a]&&v(l[a]);for(a=b;a--;)null!=g[a]&&U(g[a],g[a]);if(m)for(a=0;a<m.length;a++)M(m[a],m[++a],m[++a])}function O(e,t,n){if(null==n&&(n=[]),null==e||"boolean"==typeof e)t&&n.push(t(null));else if(Array.isArray(e))for(var r=0;r<e.length;r++)O(e[r],t,n);else n.push(t?t("string"==typeof e||"number"==typeof e?g(null,e,null,null):null!=e.__e||null!=e.__c?g(e.type,e.props,e.key,null):e):e);return n}function C(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]="number"==typeof n&&!1===y.test(t)?n+"px":null==n?"":n}function F(e,t,n,r,o){var l,i,u,c,a;if(o?"className"===t&&(t="class"):"class"===t&&(t="className"),"key"===t||"children"===t);else if("style"===t)if(l=e.style,"string"==typeof n)l.cssText=n;else{if("string"==typeof r&&(l.cssText="",r=null),r)for(i in r)n&&i in n||C(l,i,"");if(n)for(u in n)r&&n[u]===r[u]||C(l,u,n[u])}else"o"===t[0]&&"n"===t[1]?(c=t!==(t=t.replace(/Capture$/,"")),t=((a=t.toLowerCase())in e?a:t).slice(2),n?(r||e.addEventListener(t,N,c),(e.l||(e.l={}))[t]=n):e.removeEventListener(t,N,c)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&!o&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(t!==(t=t.replace(/^xlink:?/,""))?null==n||!1===n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):null==n||!1===n?e.removeAttribute(t):e.setAttribute(t,n))}function N(e){this.l[e.type](a.event?a.event(e):e)}function P(e,t,n,r,o,l,i,u,c){var _,f,s,p,d,y,v,m,g,S,x=t.type;if(void 0!==t.constructor)return null;(_=a.__b)&&_(t);try{e:if("function"==typeof x){if(m=t.props,g=(_=x.contextType)&&r[_.__c],S=_?g?g.props.value:_.__:r,n.__c?v=(f=t.__c=n.__c).__=f.__E:("prototype"in x&&x.prototype.render?t.__c=f=new x(m,S):(t.__c=f=new k(m,S),f.constructor=x,f.render=T),g&&g.sub(f),f.props=m,f.state||(f.state={}),f.context=S,f.__n=r,s=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=x.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=h({},f.__s)),h(f.__s,x.getDerivedStateFromProps(m,f.__s))),p=f.props,d=f.state,s)null==x.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==x.getDerivedStateFromProps&&m!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(m,S),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(m,f.__s,S)){for(f.props=m,f.state=f.__s,f.__d=!1,f.__v=t,t.__e=n.__e,t.__k=n.__k,f.__h.length&&i.push(f),_=0;_<t.__k.length;_++)t.__k[_]&&(t.__k[_].__=t);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(m,f.__s,S),null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(p,d,y)})}f.context=S,f.props=m,f.state=f.__s,(_=a.__r)&&_(t),f.__d=!1,f.__v=t,f.__P=e,_=f.render(f.props,f.state,f.context),t.__k=O(null!=_&&_.type==b&&null==_.key?_.props.children:_),null!=f.getChildContext&&(r=h(h({},r),f.getChildContext())),s||null==f.getSnapshotBeforeUpdate||(y=f.getSnapshotBeforeUpdate(p,d)),A(e,t,n,r,o,l,i,u,c),f.base=t.__e,f.__h.length&&i.push(f),v&&(f.__E=f.__=null),f.__e=null}else t.__e=E(n.__e,t,n,r,o,l,i,c);(_=a.diffed)&&_(t)}catch(e){a.__e(e,t,n)}return t.__e}function D(e,t){a.__c&&a.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){a.__e(e,t.__v)}})}function E(e,t,n,r,o,l,i,u){var c,a,_,f,s,y=n.props,h=t.props;if(o="svg"===t.type||o,null==e&&null!=l)for(c=0;c<l.length;c++)if(null!=(a=l[c])&&(null===t.type?3===a.nodeType:a.localName===t.type)){e=a,l[c]=null;break}if(null==e){if(null===t.type)return document.createTextNode(h);e=o?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type),l=null}if(null===t.type)null!=l&&(l[l.indexOf(e)]=null),y!==h&&e.data!=h&&(e.data=h);else if(t!==n){if(null!=l&&(l=d.slice.call(e.childNodes)),_=(y=n.props||p).dangerouslySetInnerHTML,f=h.dangerouslySetInnerHTML,!u){if(y===p)for(y={},s=0;s<e.attributes.length;s++)y[e.attributes[s].name]=e.attributes[s].value;(f||_)&&(f&&_&&f.__html==_.__html||(e.innerHTML=f&&f.__html||""))}(function(e,t,n,r,o){var l;for(l in n)l in t||F(e,l,null,n[l],r);for(l in t)o&&"function"!=typeof t[l]||"value"===l||"checked"===l||n[l]===t[l]||F(e,l,t[l],n[l],r)})(e,h,y,o,u),t.__k=t.props.children,f||A(e,t,n,r,"foreignObject"!==t.type&&o,l,i,p,u),u||("value"in h&&void 0!==h.value&&h.value!==e.value&&(e.value=null==h.value?"":h.value),"checked"in h&&void 0!==h.checked&&h.checked!==e.checked&&(e.checked=h.checked))}return e}function M(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){a.__e(e,n)}}function U(e,t,n){var r,o,l;if(a.unmount&&a.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||M(r,null,t)),n||"function"==typeof e.type||(n=null!=(o=e.__e)),e.__e=e.__d=null,null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){a.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(l=0;l<r.length;l++)r[l]&&U(r[l],t,n);null!=o&&v(o)}function T(e,t,n){return this.constructor(e,n)}a={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(e)),r)return w(n.__E=n)}catch(t){e=t}throw e}},k.prototype.setState=function(e,t){var n;n=this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(n,this.props)),e&&h(n,e),null!=e&&this.__v&&(this.__e=!1,t&&this.__h.push(t),w(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},k.prototype.render=b,_=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;var L={shallow:!0},W=[],H=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,I=function(){};function $(e,t,l,_,f,s){if(null==e||"boolean"==typeof e)return"";Array.isArray(e)&&(e=m(b,null,e));var p=e.type,d=e.props,y=!1;t=t||{};var h,v=(l=l||{}).pretty,g=v&&"string"==typeof v?v:"\t";if("object"!=typeof e&&!p)return n(e);if("function"==typeof p){if(y=!0,!l.shallow||!_&&!1!==l.renderRootComponent){if(p===b){var k="",S=[];c(S,e.props.children);for(var x=0;x<S.length;x++)k+=(x>0&&v?"\n":"")+$(S[x],t,l,!1!==l.shallowHighOrder,f,s);return k}var w,j=e.__c={__v:e,context:t,props:e.props,setState:I,forceUpdate:I,__h:[]};if(a.__r&&a.__r(e),p.prototype&&"function"==typeof p.prototype.render){var A=p.contextType,O=A&&t[A.__c],C=null!=A?O?O.props.value:A.__:t;(j=e.__c=new p(d,C)).__v=e,j._dirty=j.__d=!0,j.props=d,null==j.state&&(j.state={}),null==j._nextState&&null==j.__s&&(j._nextState=j.__s=j.state),j.context=C,p.getDerivedStateFromProps?j.state=u(u({},j.state),p.getDerivedStateFromProps(j.props,j.state)):j.componentWillMount&&j.componentWillMount(),j.state=j._nextState!==j.state?j._nextState:j.__s!==j.state?j.__s:j.state,w=j.render(j.props,j.state,j.context)}else{var F=p.contextType,N=F&&t[F.__c];w=p.call(e.__c,d,null!=F?N?N.props.value:F.__:t)}return j.getChildContext&&(t=u(u({},t),j.getChildContext())),$(w,t,l,!1!==l.shallowHighOrder,f,s)}p=(h=p).displayName||h!==Function&&h.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var n=-1,r=W.length;r--;)if(W[r]===e){n=r;break}n<0&&(n=W.push(e)-1),t="UnnamedComponent"+n}return t}(h)}var P,D="";if(d){var E=Object.keys(d);l&&!0===l.sortAttributes&&E.sort();for(var M=0;M<E.length;M++){var U=E[M],T=d[U];if("children"!==U&&!U.match(/[\s\n\\/='"\0<>]/)&&(l&&l.allAttributes||"key"!==U&&"ref"!==U)){if("className"===U){if(d.class)continue;U="class"}else f&&U.match(/^xlink:?./)&&(U=U.toLowerCase().replace(/^xlink:?/,"xlink:"));"style"===U&&T&&"object"==typeof T&&(T=i(T));var L=l.attributeHook&&l.attributeHook(U,T,t,l,y);if(L||""===L)D+=L;else if("dangerouslySetInnerHTML"===U)P=T&&T.__html;else if((T||0===T||""===T)&&"function"!=typeof T){if(!(!0!==T&&""!==T||(T=U,l&&l.xml))){D+=" "+U;continue}if("value"===U){if("select"===p){s=T;continue}"option"===p&&s==T&&(D+=" selected")}D+=" "+U+'="'+n(T)+'"'}}}}if(v){var R=D.replace(/^\n\s*/," ");R===D||~R.indexOf("\n")?v&&~D.indexOf("\n")&&(D+="\n"):D=R}if(D="<"+p+D+">",String(p).match(/[\s\n\\/='"\0<>]/))throw new Error(p+" is not a valid HTML tag name in "+D);var B=String(p).match(H);B&&(D=D.replace(/>$/," />"));var J,z=[];if(P)v&&o(P)&&(P="\n"+g+r(P,g)),D+=P;else if(d&&c(J=[],d.children).length){for(var G=v&&~D.indexOf("\n"),V=!1,q=0;q<J.length;q++){var Z=J[q];if(null!=Z&&!1!==Z){var K=$(Z,t,l,!0,"svg"===p||"foreignObject"!==p&&f,s);if(v&&!G&&o(K)&&(G=!0),K)if(v){var Q=K.length>0&&"<"!=K[0];V&&Q?z[z.length-1]+=K:z.push(K),V=Q}else z.push(K)}}if(v&&G)for(var X=z.length;X--;)z[X]="\n"+g+r(z[X],g)}if(z.length)D+=z.join("");else if(l&&l.xml)return D.substring(0,D.length-1)+" />";return B||(v&&~D.indexOf("\n")&&(D+="\n"),D+="</"+p+">"),D}$.render=$,$.shallowRender=function(e,t){return $(e,t,L)};var R=/(\\|\"|\')/g,B=function(e){return e.replace(R,"\\$1")},J=Object.prototype.toString,z=Date.prototype.toISOString,G=Error.prototype.toString,V=RegExp.prototype.toString,q=Symbol.prototype.toString,Z=/^Symbol\((.*)\)(.*)$/,K=/\n/gi,Q=Object.getOwnPropertySymbols||function(e){return[]};function X(e){return"[object Array]"===e||"[object ArrayBuffer]"===e||"[object DataView]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object Int8Array]"===e||"[object Int16Array]"===e||"[object Int32Array]"===e||"[object Uint8Array]"===e||"[object Uint8ClampedArray]"===e||"[object Uint16Array]"===e||"[object Uint32Array]"===e}function Y(e){return""===e.name?"[Function anonymous]":"[Function "+e.name+"]"}function ee(e){return q.call(e).replace(Z,"Symbol($1)")}function te(e){return"["+G.call(e)+"]"}function ne(e){if(!0===e||!1===e)return""+e;if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("number"===t)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===t)return'"'+B(e)+'"';if("function"===t)return Y(e);if("symbol"===t)return ee(e);var n=J.call(e);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?Y(e,min):"[object Symbol]"===n?ee(e):"[object Date]"===n?z.call(e):"[object Error]"===n?te(e):"[object RegExp]"===n?V.call(e):"[object Arguments]"===n&&0===e.length?"Arguments []":X(n)&&0===e.length?e.constructor.name+" []":e instanceof Error&&te(e)}function re(e,t,n,r,o,l,i,u,c,a){var _="";if(e.length){_+=o;for(var f=n+t,s=0;s<e.length;s++)_+=f+ie(e[s],t,f,r,o,l,i,u,c,a),s<e.length-1&&(_+=","+r);_+=o+n}return"["+_+"]"}function oe(e,t,n,r,o,l,i,u,c,a){if((l=l.slice()).indexOf(e)>-1)return"[Circular]";l.push(e);var _=++u>i;if(!_&&e.toJSON&&"function"==typeof e.toJSON)return ie(e.toJSON(),t,n,r,o,l,i,u,c,a);var f=J.call(e);return"[object Arguments]"===f?_?"[Arguments]":function(e,t,n,r,o,l,i,u,c,a){return(a?"":"Arguments ")+re(e,t,n,r,o,l,i,u,c,a)}(e,t,n,r,o,l,i,u,c,a):X(f)?_?"[Array]":function(e,t,n,r,o,l,i,u,c,a){return(a?"":e.constructor.name+" ")+re(e,t,n,r,o,l,i,u,c,a)}(e,t,n,r,o,l,i,u,c,a):"[object Map]"===f?_?"[Map]":function(e,t,n,r,o,l,i,u,c,a){var _="Map {",f=e.entries(),s=f.next();if(!s.done){_+=o;for(var p=n+t;!s.done;)_+=p+ie(s.value[0],t,p,r,o,l,i,u,c,a)+" => "+ie(s.value[1],t,p,r,o,l,i,u,c,a),(s=f.next()).done||(_+=","+r);_+=o+n}return _+"}"}(e,t,n,r,o,l,i,u,c,a):"[object Set]"===f?_?"[Set]":function(e,t,n,r,o,l,i,u,c,a){var _="Set {",f=e.entries(),s=f.next();if(!s.done){_+=o;for(var p=n+t;!s.done;)_+=p+ie(s.value[1],t,p,r,o,l,i,u,c,a),(s=f.next()).done||(_+=","+r);_+=o+n}return _+"}"}(e,t,n,r,o,l,i,u,c,a):"object"==typeof e?_?"[Object]":function(e,t,n,r,o,l,i,u,c,a){var _=(a?"":e.constructor?e.constructor.name+" ":"Object ")+"{",f=Object.keys(e).sort(),s=Q(e);if(s.length&&(f=f.filter(function(e){return!("symbol"==typeof e||"[object Symbol]"===J.call(e))}).concat(s)),f.length){_+=o;for(var p=n+t,d=0;d<f.length;d++){var y=f[d];_+=p+ie(y,t,p,r,o,l,i,u,c,a)+": "+ie(e[y],t,p,r,o,l,i,u,c,a),d<f.length-1&&(_+=","+r)}_+=o+n}return _+"}"}(e,t,n,r,o,l,i,u,c,a):void 0}function le(e,t,n,r,o,l,i,u,c,a){for(var _,f=!1,s=0;s<c.length;s++)if((_=c[s]).test(e)){f=!0;break}return!!f&&_.print(e,function(e){return ie(e,t,n,r,o,l,i,u,c,a)},function(e){var r=n+t;return r+e.replace(K,"\n"+r)},{edgeSpacing:o,spacing:r})}function ie(e,t,n,r,o,l,i,u,c,a){var _=ne(e);return _||(le(e,t,n,r,o,l,i,u,c,a)||oe(e,t,n,r,o,l,i,u,c,a))}var ue={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function ce(e){return new Array(e+1).join(" ")}var ae={test:function(e){return e&&"object"==typeof e&&"type"in e&&"props"in e&&"key"in e},print:function(e,t,n){return $(e,ae.context,ae.opts,!0)}},_e={plugins:[ae]},fe={attributeHook:function(e,t,o,l,i){var u=typeof t;if("dangerouslySetInnerHTML"===e)return!1;if(null==t||"function"===u&&!l.functions)return"";if(l.skipFalseAttributes&&!i&&(!1===t||("class"===e||"style"===e)&&""===t))return"";var c="string"==typeof l.pretty?l.pretty:"\t";return"string"!==u?("function"!==u||l.functionNames?(ae.context=o,ae.opts=l,~(t=function(e,t){var n,r;t?(function(e){if(Object.keys(e).forEach(function(e){if(!ue.hasOwnProperty(e))throw new Error("prettyFormat: Invalid option: "+e)}),e.min&&void 0!==e.indent&&0!==e.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}(t),t=function(e){var t={};return Object.keys(ue).forEach(function(n){return t[n]=e.hasOwnProperty(n)?e[n]:ue[n]}),t.min&&(t.indent=0),t}(t)):t=ue;var o=t.min?" ":"\n",l=t.min?"":"\n";if(t&&t.plugins.length){var i=le(e,n=ce(t.indent),"",o,l,r=[],t.maxDepth,0,t.plugins,t.min);if(i)return i}return ne(e)||(n||(n=ce(t.indent)),r||(r=[]),oe(e,n,"",o,l,r,t.maxDepth,0,t.plugins,t.min))}(t,_e)).indexOf("\n")&&(t=r("\n"+t,c)+"\n")):t="Function",r("\n"+e+"={"+t+"}",c)):"\n"+c+e+'="'+n(t)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};return function(e,t,n,r){return $(e,t,n=u(u({},fe),n||{}),r)}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.preactRenderToString=t(); | ||
//# sourceMappingURL=jsx.js.map |
@@ -1,2 +0,2 @@ | ||
if("function"!=typeof Symbol){var t=0;Symbol=function(e){return"@@"+e+ ++t},Symbol.for=function(t){return"@@"+t}}var e=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,n=function(t){return String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},r=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},o=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},l={};function i(t){var n="";for(var r in t){var o=t[r];null!=o&&(n&&(n+=" "),n+=l[r]||(l[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=o,"number"==typeof o&&!1===e.test(r)&&(n+="px"),n+=";")}return n||void 0}function u(t,e){for(var n in e)t[n]=e[n];return t}function c(t,e){return Array.isArray(e)?e.reduce(c,t):null!=e&&!1!==e&&t.push(e),t}var s,_,a,f,p={},d=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function y(t,e){for(var n in e)t[n]=e[n];return t}function g(t){var e=t.parentNode;e&&e.removeChild(t)}function m(t,e,n){var r,o=arguments,l={};for(r in e)"key"!==r&&"ref"!==r&&(l[r]=e[r]);if(arguments.length>3)for(n=[n],r=3;r<arguments.length;r++)n.push(o[r]);if(null!=n&&(l.children=n),"function"==typeof t&&null!=t.defaultProps)for(r in t.defaultProps)void 0===l[r]&&(l[r]=t.defaultProps[r]);return v(t,l,e&&e.key,e&&e.ref)}function v(t,e,n,r){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:null,__c:null,constructor:void 0};return s.vnode&&s.vnode(o),o}function b(t){return t.children}function k(t,e){this.props=t,this.context=e}function x(t,e){if(null==e)return t.__?x(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?x(t):null}function S(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return S(t)}}function w(t){(!t.__d&&(t.__d=!0)&&1===_.push(t)||f!==s.debounceRendering)&&((f=s.debounceRendering)||a)(j)}function j(){var t,e,n,r,o,l,i;for(_.sort(function(t,e){return e.__v.__b-t.__v.__b});t=_.pop();)t.__d&&(n=void 0,r=void 0,l=(o=(e=t).__v).__e,(i=e.__P)&&(n=[],r=P(i,o,y({},o),e.__n,void 0!==i.ownerSVGElement,null,n,null==l?x(o):l),D(n,o),r!=l&&S(o)))}function A(t,e,n,r,o,l,i,u,c){var s,_,a,f,h,y,m,v=n&&n.__k||d,b=v.length;if(u==p&&(u=null!=l?l[0]:b?x(n,0):null),s=0,e.__k=O(e.__k,function(n){if(null!=n){if(n.__=e,n.__b=e.__b+1,null===(a=v[s])||a&&n.key==a.key&&n.type===a.type)v[s]=void 0;else for(_=0;_<b;_++){if((a=v[_])&&n.key==a.key&&n.type===a.type){v[_]=void 0;break}a=null}if(f=P(t,n,a=a||p,r,o,l,i,u,c),(_=n.ref)&&a.ref!=_&&(m||(m=[]),a.ref&&m.push(a.ref,null,n),m.push(_,n.__c||f,n)),null!=f){if(null==y&&(y=f),null!=n.__d)f=n.__d,n.__d=null;else if(l==a||f!=u||null==f.parentNode){t:if(null==u||u.parentNode!==t)t.appendChild(f);else{for(h=u,_=0;(h=h.nextSibling)&&_<b;_+=2)if(h==f)break t;t.insertBefore(f,u)}"option"==e.type&&(t.value="")}u=f.nextSibling,"function"==typeof e.type&&(e.__d=f)}}return s++,n}),e.__e=y,null!=l&&"function"!=typeof e.type)for(s=l.length;s--;)null!=l[s]&&g(l[s]);for(s=b;s--;)null!=v[s]&&U(v[s],v[s]);if(m)for(s=0;s<m.length;s++)M(m[s],m[++s],m[++s])}function O(t,e,n){if(null==n&&(n=[]),null==t||"boolean"==typeof t)e&&n.push(e(null));else if(Array.isArray(t))for(var r=0;r<t.length;r++)O(t[r],e,n);else n.push(e?e("string"==typeof t||"number"==typeof t?v(null,t,null,null):null!=t.__e||null!=t.__c?v(t.type,t.props,t.key,null):t):t);return n}function C(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]="number"==typeof n&&!1===h.test(e)?n+"px":null==n?"":n}function F(t,e,n,r,o){var l,i,u,c,s;if(o?"className"===e&&(e="class"):"class"===e&&(e="className"),"key"===e||"children"===e);else if("style"===e)if(l=t.style,"string"==typeof n)l.cssText=n;else{if("string"==typeof r&&(l.cssText="",r=null),r)for(i in r)n&&i in n||C(l,i,"");if(n)for(u in n)r&&n[u]===r[u]||C(l,u,n[u])}else"o"===e[0]&&"n"===e[1]?(c=e!==(e=e.replace(/Capture$/,"")),e=((s=e.toLowerCase())in t?s:e).slice(2),n?(r||t.addEventListener(e,N,c),(t.l||(t.l={}))[e]=n):t.removeEventListener(e,N,c)):"list"!==e&&"tagName"!==e&&"form"!==e&&"type"!==e&&!o&&e in t?t[e]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==e&&(e!==(e=e.replace(/^xlink:?/,""))?null==n||!1===n?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),n):null==n||!1===n?t.removeAttribute(e):t.setAttribute(e,n))}function N(t){this.l[t.type](s.event?s.event(t):t)}function P(t,e,n,r,o,l,i,u,c){var _,a,f,p,d,h,g,m,v,x,S=e.type;if(void 0!==e.constructor)return null;(_=s.__b)&&_(e);try{t:if("function"==typeof S){if(m=e.props,v=(_=S.contextType)&&r[_.__c],x=_?v?v.props.value:_.__:r,n.__c?g=(a=e.__c=n.__c).__=a.__E:("prototype"in S&&S.prototype.render?e.__c=a=new S(m,x):(e.__c=a=new k(m,x),a.constructor=S,a.render=T),v&&v.sub(a),a.props=m,a.state||(a.state={}),a.context=x,a.__n=r,f=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=S.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=y({},a.__s)),y(a.__s,S.getDerivedStateFromProps(m,a.__s))),p=a.props,d=a.state,f)null==S.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==S.getDerivedStateFromProps&&m!==p&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,x),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,x)){for(a.props=m,a.state=a.__s,a.__d=!1,a.__v=e,e.__e=n.__e,e.__k=n.__k,a.__h.length&&i.push(a),_=0;_<e.__k.length;_++)e.__k[_]&&(e.__k[_].__=e);break t}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,x),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(p,d,h)})}a.context=x,a.props=m,a.state=a.__s,(_=s.__r)&&_(e),a.__d=!1,a.__v=e,a.__P=t,_=a.render(a.props,a.state,a.context),e.__k=O(null!=_&&_.type==b&&null==_.key?_.props.children:_),null!=a.getChildContext&&(r=y(y({},r),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(h=a.getSnapshotBeforeUpdate(p,d)),A(t,e,n,r,o,l,i,u,c),a.base=e.__e,a.__h.length&&i.push(a),g&&(a.__E=a.__=null),a.__e=null}else e.__e=E(n.__e,e,n,r,o,l,i,c);(_=s.diffed)&&_(e)}catch(t){s.__e(t,e,n)}return e.__e}function D(t,e){s.__c&&s.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){s.__e(t,e.__v)}})}function E(t,e,n,r,o,l,i,u){var c,s,_,a,f,h=n.props,y=e.props;if(o="svg"===e.type||o,null==t&&null!=l)for(c=0;c<l.length;c++)if(null!=(s=l[c])&&(null===e.type?3===s.nodeType:s.localName===e.type)){t=s,l[c]=null;break}if(null==t){if(null===e.type)return document.createTextNode(y);t=o?document.createElementNS("http://www.w3.org/2000/svg",e.type):document.createElement(e.type),l=null}if(null===e.type)null!=l&&(l[l.indexOf(t)]=null),h!==y&&t.data!=y&&(t.data=y);else if(e!==n){if(null!=l&&(l=d.slice.call(t.childNodes)),_=(h=n.props||p).dangerouslySetInnerHTML,a=y.dangerouslySetInnerHTML,!u){if(h===p)for(h={},f=0;f<t.attributes.length;f++)h[t.attributes[f].name]=t.attributes[f].value;(a||_)&&(a&&_&&a.__html==_.__html||(t.innerHTML=a&&a.__html||""))}(function(t,e,n,r,o){var l;for(l in n)l in e||F(t,l,null,n[l],r);for(l in e)o&&"function"!=typeof e[l]||"value"===l||"checked"===l||n[l]===e[l]||F(t,l,e[l],n[l],r)})(t,y,h,o,u),e.__k=e.props.children,a||A(t,e,n,r,"foreignObject"!==e.type&&o,l,i,p,u),u||("value"in y&&void 0!==y.value&&y.value!==t.value&&(t.value=null==y.value?"":y.value),"checked"in y&&void 0!==y.checked&&y.checked!==t.checked&&(t.checked=y.checked))}return t}function M(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){s.__e(t,n)}}function U(t,e,n){var r,o,l;if(s.unmount&&s.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||M(r,null,e)),n||"function"==typeof t.type||(n=null!=(o=t.__e)),t.__e=t.__d=null,null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){s.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(l=0;l<r.length;l++)r[l]&&U(r[l],e,n);null!=o&&g(o)}function T(t,e,n){return this.constructor(t,n)}s={__e:function(t,e){for(var n,r;e=e.__;)if((n=e.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(t))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(t)),r)return w(n.__E=n)}catch(e){t=e}throw t}},k.prototype.setState=function(t,e){var n;n=this.__s!==this.state?this.__s:this.__s=y({},this.state),"function"==typeof t&&(t=t(n,this.props)),t&&y(n,t),null!=t&&this.__v&&(this.__e=!1,e&&this.__h.push(e),w(this))},k.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),w(this))},k.prototype.render=b,_=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;var L={shallow:!0},W=[],H=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/;I.render=I;function I(t,e,l,_,a,f){if(null==t||"boolean"==typeof t)return"";Array.isArray(t)&&(t=m(b,null,t));var p=t.type,d=t.props,h=!1;e=e||{};var y,g=(l=l||{}).pretty,v=g&&"string"==typeof g?g:"\t";if("object"!=typeof t&&!p)return n(t);if("function"==typeof p){if(h=!0,!l.shallow||!_&&!1!==l.renderRootComponent){if(p===b){var k="",x=[];c(x,t.props.children);for(var S=0;S<x.length;S++)k+=(S>0&&g?"\n":"")+I(x[S],e,l,!1!==l.shallowHighOrder,a,f);return k}var w,j=t.__c={__v:t,context:e,props:t.props,__h:[]};if(s.__r&&s.__r(t),p.prototype&&"function"==typeof p.prototype.render){var A=p.contextType,O=A&&e[A.__c],C=null!=A?O?O.props.value:A.__:e;(j=t.__c=new p(d,C)).__v=t,j._dirty=j.__d=!0,j.props=d,null==j.state&&(j.state={}),null==j._nextState&&null==j.__s&&(j._nextState=j.__s=j.state),j.context=C,p.getDerivedStateFromProps?j.state=u(u({},j.state),p.getDerivedStateFromProps(j.props,j.state)):j.componentWillMount&&j.componentWillMount(),j.state=j._nextState!==j.state?j._nextState:j.__s!==j.state?j.__s:j.state,w=j.render(j.props,j.state,j.context)}else{var F=p.contextType,N=F&&e[F.__c];w=p.call(t.__c,d,null!=F?N?N.props.value:F.__:e)}return j.getChildContext&&(e=u(u({},e),j.getChildContext())),I(w,e,l,!1!==l.shallowHighOrder,a,f)}p=(y=p).displayName||y!==Function&&y.name||function(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=W.length;r--;)if(W[r]===t){n=r;break}n<0&&(n=W.push(t)-1),e="UnnamedComponent"+n}return e}(y)}var P,D="";if(d){var E=Object.keys(d);l&&!0===l.sortAttributes&&E.sort();for(var M=0;M<E.length;M++){var U=E[M],T=d[U];if("children"!==U&&(!U.match(/[\s\n\\/='"\0<>]/)&&(l&&l.allAttributes||"key"!==U&&"ref"!==U))){if("className"===U){if(d.class)continue;U="class"}else a&&U.match(/^xlink:?./)&&(U=U.toLowerCase().replace(/^xlink:?/,"xlink:"));"style"===U&&T&&"object"==typeof T&&(T=i(T));var L=l.attributeHook&&l.attributeHook(U,T,e,l,h);if(L||""===L)D+=L;else if("dangerouslySetInnerHTML"===U)P=T&&T.__html;else if((T||0===T||""===T)&&"function"!=typeof T){if(!(!0!==T&&""!==T||(T=U,l&&l.xml))){D+=" "+U;continue}if("value"===U){if("select"===p){f=T;continue}"option"===p&&f==T&&(D+=" selected")}D+=" "+U+'="'+n(T)+'"'}}}}if(g){var $=D.replace(/^\n\s*/," ");$===D||~$.indexOf("\n")?g&&~D.indexOf("\n")&&(D+="\n"):D=$}if(D="<"+p+D+">",String(p).match(/[\s\n\\/='"\0<>]/))throw new Error(p+" is not a valid HTML tag name in "+D);var R=String(p).match(H);R&&(D=D.replace(/>$/," />"));var B,J=[];if(P)g&&o(P)&&(P="\n"+v+r(P,v)),D+=P;else if(d&&c(B=[],d.children).length){for(var z=g&&~D.indexOf("\n"),G=!1,V=0;V<B.length;V++){var q=B[V];if(null!=q&&!1!==q){var Z=I(q,e,l,!0,"svg"===p||"foreignObject"!==p&&a,f);if(g&&!z&&o(Z)&&(z=!0),Z)if(g){var K=Z.length>0&&"<"!=Z[0];G&&K?J[J.length-1]+=Z:J.push(Z),G=K}else J.push(Z)}}if(g&&z)for(var Q=J.length;Q--;)J[Q]="\n"+v+r(J[Q],v)}if(J.length)D+=J.join("");else if(l&&l.xml)return D.substring(0,D.length-1)+" />";return R||(g&&~D.indexOf("\n")&&(D+="\n"),D+="</"+p+">"),D}I.shallowRender=function(t,e){return I(t,e,L)};const $=/(\\|\"|\')/g;var R=function(t){return t.replace($,"\\$1")};const B=Object.prototype.toString,J=Date.prototype.toISOString,z=Error.prototype.toString,G=RegExp.prototype.toString,V=Symbol.prototype.toString,q=/^Symbol\((.*)\)(.*)$/,Z=/\n/gi,K=Object.getOwnPropertySymbols||(t=>[]);function Q(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function X(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function Y(t){return V.call(t).replace(q,"Symbol($1)")}function tt(t){return"["+z.call(t)+"]"}function et(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const e=typeof t;if("number"===e)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===e)return'"'+R(t)+'"';if("function"===e)return X(t);if("symbol"===e)return Y(t);const n=B.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?X(t,min):"[object Symbol]"===n?Y(t):"[object Date]"===n?J.call(t):"[object Error]"===n?tt(t):"[object RegExp]"===n?G.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":Q(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&tt(t)}function nt(t,e,n,r,o,l,i,u,c,s){let _="";if(t.length){_+=o;const a=n+e;for(let n=0;n<t.length;n++)_+=a+lt(t[n],e,a,r,o,l,i,u,c,s),n<t.length-1&&(_+=","+r);_+=o+n}return"["+_+"]"}function rt(t,e,n,r,o,l,i,u,c,s){if((l=l.slice()).indexOf(t)>-1)return"[Circular]";l.push(t);const _=++u>i;if(!_&&t.toJSON&&"function"==typeof t.toJSON)return lt(t.toJSON(),e,n,r,o,l,i,u,c,s);const a=B.call(t);return"[object Arguments]"===a?_?"[Arguments]":function(t,e,n,r,o,l,i,u,c,s){return(s?"":"Arguments ")+nt(t,e,n,r,o,l,i,u,c,s)}(t,e,n,r,o,l,i,u,c,s):Q(a)?_?"[Array]":function(t,e,n,r,o,l,i,u,c,s){return(s?"":t.constructor.name+" ")+nt(t,e,n,r,o,l,i,u,c,s)}(t,e,n,r,o,l,i,u,c,s):"[object Map]"===a?_?"[Map]":function(t,e,n,r,o,l,i,u,c,s){let _="Map {";const a=t.entries();let f=a.next();if(!f.done){_+=o;const t=n+e;for(;!f.done;)_+=t+lt(f.value[0],e,t,r,o,l,i,u,c,s)+" => "+lt(f.value[1],e,t,r,o,l,i,u,c,s),(f=a.next()).done||(_+=","+r);_+=o+n}return _+"}"}(t,e,n,r,o,l,i,u,c,s):"[object Set]"===a?_?"[Set]":function(t,e,n,r,o,l,i,u,c,s){let _="Set {";const a=t.entries();let f=a.next();if(!f.done){_+=o;const t=n+e;for(;!f.done;)_+=t+lt(f.value[1],e,t,r,o,l,i,u,c,s),(f=a.next()).done||(_+=","+r);_+=o+n}return _+"}"}(t,e,n,r,o,l,i,u,c,s):"object"==typeof t?_?"[Object]":function(t,e,n,r,o,l,i,u,c,s){let _=(s?"":t.constructor?t.constructor.name+" ":"Object ")+"{",a=Object.keys(t).sort();const f=K(t);if(f.length&&(a=a.filter(t=>!("symbol"==typeof t||"[object Symbol]"===B.call(t))).concat(f)),a.length){_+=o;const f=n+e;for(let n=0;n<a.length;n++){const p=a[n];_+=f+lt(p,e,f,r,o,l,i,u,c,s)+": "+lt(t[p],e,f,r,o,l,i,u,c,s),n<a.length-1&&(_+=","+r)}_+=o+n}return _+"}"}(t,e,n,r,o,l,i,u,c,s):void 0}function ot(t,e,n,r,o,l,i,u,c,s){let _,a=!1;for(let e=0;e<c.length;e++)if((_=c[e]).test(t)){a=!0;break}if(!a)return!1;return _.print(t,function(t){return lt(t,e,n,r,o,l,i,u,c,s)},function(t){const r=n+e;return r+t.replace(Z,"\n"+r)},{edgeSpacing:o,spacing:r})}function lt(t,e,n,r,o,l,i,u,c,s){const _=et(t);if(_)return _;const a=ot(t,e,n,r,o,l,i,u,c,s);return a||rt(t,e,n,r,o,l,i,u,c,s)}const it={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function ut(t){return new Array(t+1).join(" ")}var ct=function(t,e){let n,r;e?(function(t){if(Object.keys(t).forEach(t=>{if(!it.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}(e),e=function(t){const e={};return Object.keys(it).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:it[n]),e.min&&(e.indent=0),e}(e)):e=it;const o=e.min?" ":"\n",l=e.min?"":"\n";if(e&&e.plugins.length){var i=ot(t,n=ut(e.indent),"",o,l,r=[],e.maxDepth,0,e.plugins,e.min);if(i)return i}var u=et(t);return u||(n||(n=ut(e.indent)),r||(r=[]),rt(t,n,"",o,l,r,e.maxDepth,0,e.plugins,e.min))},st={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return I(t,st.context,st.opts,!0)}},_t={plugins:[st]};var at={attributeHook:function(t,e,o,l,i){var u=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===u&&!l.functions)return"";if(l.skipFalseAttributes&&!i&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var c="string"==typeof l.pretty?l.pretty:"\t";return"string"!==u?("function"!==u||l.functionNames?(st.context=o,st.opts=l,~(e=ct(e,_t)).indexOf("\n")&&(e=r("\n"+e,c)+"\n")):e="Function",r("\n"+t+"={"+e+"}",c)):"\n"+c+t+'="'+n(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function ft(t,e,n,r){return I(t,e,n=u(u({},at),n||{}),r)}export default ft;export{ft as render}; | ||
if("function"!=typeof Symbol){var t=0;Symbol=function(e){return"@@"+e+ ++t},Symbol.for=function(t){return"@@"+t}}var e=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,n=function(t){return String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},r=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},o=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},l={};function i(t){var n="";for(var r in t){var o=t[r];null!=o&&(n&&(n+=" "),n+=l[r]||(l[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=o,"number"==typeof o&&!1===e.test(r)&&(n+="px"),n+=";")}return n||void 0}function u(t,e){for(var n in e)t[n]=e[n];return t}function c(t,e){return Array.isArray(e)?e.reduce(c,t):null!=e&&!1!==e&&t.push(e),t}var s,_,a,f,p={},d=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function y(t,e){for(var n in e)t[n]=e[n];return t}function g(t){var e=t.parentNode;e&&e.removeChild(t)}function m(t,e,n){var r,o=arguments,l={};for(r in e)"key"!==r&&"ref"!==r&&(l[r]=e[r]);if(arguments.length>3)for(n=[n],r=3;r<arguments.length;r++)n.push(o[r]);if(null!=n&&(l.children=n),"function"==typeof t&&null!=t.defaultProps)for(r in t.defaultProps)void 0===l[r]&&(l[r]=t.defaultProps[r]);return v(t,l,e&&e.key,e&&e.ref)}function v(t,e,n,r){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:null,__c:null,constructor:void 0};return s.vnode&&s.vnode(o),o}function b(t){return t.children}function k(t,e){this.props=t,this.context=e}function x(t,e){if(null==e)return t.__?x(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?x(t):null}function S(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return S(t)}}function w(t){(!t.__d&&(t.__d=!0)&&1===_.push(t)||f!==s.debounceRendering)&&((f=s.debounceRendering)||a)(j)}function j(){var t,e,n,r,o,l,i;for(_.sort(function(t,e){return e.__v.__b-t.__v.__b});t=_.pop();)t.__d&&(n=void 0,r=void 0,l=(o=(e=t).__v).__e,(i=e.__P)&&(n=[],r=P(i,o,y({},o),e.__n,void 0!==i.ownerSVGElement,null,n,null==l?x(o):l),D(n,o),r!=l&&S(o)))}function A(t,e,n,r,o,l,i,u,c){var s,_,a,f,h,y,m,v=n&&n.__k||d,b=v.length;if(u==p&&(u=null!=l?l[0]:b?x(n,0):null),s=0,e.__k=O(e.__k,function(n){if(null!=n){if(n.__=e,n.__b=e.__b+1,null===(a=v[s])||a&&n.key==a.key&&n.type===a.type)v[s]=void 0;else for(_=0;_<b;_++){if((a=v[_])&&n.key==a.key&&n.type===a.type){v[_]=void 0;break}a=null}if(f=P(t,n,a=a||p,r,o,l,i,u,c),(_=n.ref)&&a.ref!=_&&(m||(m=[]),a.ref&&m.push(a.ref,null,n),m.push(_,n.__c||f,n)),null!=f){if(null==y&&(y=f),null!=n.__d)f=n.__d,n.__d=null;else if(l==a||f!=u||null==f.parentNode){t:if(null==u||u.parentNode!==t)t.appendChild(f);else{for(h=u,_=0;(h=h.nextSibling)&&_<b;_+=2)if(h==f)break t;t.insertBefore(f,u)}"option"==e.type&&(t.value="")}u=f.nextSibling,"function"==typeof e.type&&(e.__d=f)}}return s++,n}),e.__e=y,null!=l&&"function"!=typeof e.type)for(s=l.length;s--;)null!=l[s]&&g(l[s]);for(s=b;s--;)null!=v[s]&&U(v[s],v[s]);if(m)for(s=0;s<m.length;s++)M(m[s],m[++s],m[++s])}function O(t,e,n){if(null==n&&(n=[]),null==t||"boolean"==typeof t)e&&n.push(e(null));else if(Array.isArray(t))for(var r=0;r<t.length;r++)O(t[r],e,n);else n.push(e?e("string"==typeof t||"number"==typeof t?v(null,t,null,null):null!=t.__e||null!=t.__c?v(t.type,t.props,t.key,null):t):t);return n}function C(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]="number"==typeof n&&!1===h.test(e)?n+"px":null==n?"":n}function F(t,e,n,r,o){var l,i,u,c,s;if(o?"className"===e&&(e="class"):"class"===e&&(e="className"),"key"===e||"children"===e);else if("style"===e)if(l=t.style,"string"==typeof n)l.cssText=n;else{if("string"==typeof r&&(l.cssText="",r=null),r)for(i in r)n&&i in n||C(l,i,"");if(n)for(u in n)r&&n[u]===r[u]||C(l,u,n[u])}else"o"===e[0]&&"n"===e[1]?(c=e!==(e=e.replace(/Capture$/,"")),e=((s=e.toLowerCase())in t?s:e).slice(2),n?(r||t.addEventListener(e,N,c),(t.l||(t.l={}))[e]=n):t.removeEventListener(e,N,c)):"list"!==e&&"tagName"!==e&&"form"!==e&&"type"!==e&&!o&&e in t?t[e]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==e&&(e!==(e=e.replace(/^xlink:?/,""))?null==n||!1===n?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),n):null==n||!1===n?t.removeAttribute(e):t.setAttribute(e,n))}function N(t){this.l[t.type](s.event?s.event(t):t)}function P(t,e,n,r,o,l,i,u,c){var _,a,f,p,d,h,g,m,v,x,S=e.type;if(void 0!==e.constructor)return null;(_=s.__b)&&_(e);try{t:if("function"==typeof S){if(m=e.props,v=(_=S.contextType)&&r[_.__c],x=_?v?v.props.value:_.__:r,n.__c?g=(a=e.__c=n.__c).__=a.__E:("prototype"in S&&S.prototype.render?e.__c=a=new S(m,x):(e.__c=a=new k(m,x),a.constructor=S,a.render=T),v&&v.sub(a),a.props=m,a.state||(a.state={}),a.context=x,a.__n=r,f=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=S.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=y({},a.__s)),y(a.__s,S.getDerivedStateFromProps(m,a.__s))),p=a.props,d=a.state,f)null==S.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==S.getDerivedStateFromProps&&m!==p&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,x),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,x)){for(a.props=m,a.state=a.__s,a.__d=!1,a.__v=e,e.__e=n.__e,e.__k=n.__k,a.__h.length&&i.push(a),_=0;_<e.__k.length;_++)e.__k[_]&&(e.__k[_].__=e);break t}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,x),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(p,d,h)})}a.context=x,a.props=m,a.state=a.__s,(_=s.__r)&&_(e),a.__d=!1,a.__v=e,a.__P=t,_=a.render(a.props,a.state,a.context),e.__k=O(null!=_&&_.type==b&&null==_.key?_.props.children:_),null!=a.getChildContext&&(r=y(y({},r),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(h=a.getSnapshotBeforeUpdate(p,d)),A(t,e,n,r,o,l,i,u,c),a.base=e.__e,a.__h.length&&i.push(a),g&&(a.__E=a.__=null),a.__e=null}else e.__e=E(n.__e,e,n,r,o,l,i,c);(_=s.diffed)&&_(e)}catch(t){s.__e(t,e,n)}return e.__e}function D(t,e){s.__c&&s.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){s.__e(t,e.__v)}})}function E(t,e,n,r,o,l,i,u){var c,s,_,a,f,h=n.props,y=e.props;if(o="svg"===e.type||o,null==t&&null!=l)for(c=0;c<l.length;c++)if(null!=(s=l[c])&&(null===e.type?3===s.nodeType:s.localName===e.type)){t=s,l[c]=null;break}if(null==t){if(null===e.type)return document.createTextNode(y);t=o?document.createElementNS("http://www.w3.org/2000/svg",e.type):document.createElement(e.type),l=null}if(null===e.type)null!=l&&(l[l.indexOf(t)]=null),h!==y&&t.data!=y&&(t.data=y);else if(e!==n){if(null!=l&&(l=d.slice.call(t.childNodes)),_=(h=n.props||p).dangerouslySetInnerHTML,a=y.dangerouslySetInnerHTML,!u){if(h===p)for(h={},f=0;f<t.attributes.length;f++)h[t.attributes[f].name]=t.attributes[f].value;(a||_)&&(a&&_&&a.__html==_.__html||(t.innerHTML=a&&a.__html||""))}(function(t,e,n,r,o){var l;for(l in n)l in e||F(t,l,null,n[l],r);for(l in e)o&&"function"!=typeof e[l]||"value"===l||"checked"===l||n[l]===e[l]||F(t,l,e[l],n[l],r)})(t,y,h,o,u),e.__k=e.props.children,a||A(t,e,n,r,"foreignObject"!==e.type&&o,l,i,p,u),u||("value"in y&&void 0!==y.value&&y.value!==t.value&&(t.value=null==y.value?"":y.value),"checked"in y&&void 0!==y.checked&&y.checked!==t.checked&&(t.checked=y.checked))}return t}function M(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){s.__e(t,n)}}function U(t,e,n){var r,o,l;if(s.unmount&&s.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||M(r,null,e)),n||"function"==typeof t.type||(n=null!=(o=t.__e)),t.__e=t.__d=null,null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){s.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(l=0;l<r.length;l++)r[l]&&U(r[l],e,n);null!=o&&g(o)}function T(t,e,n){return this.constructor(t,n)}s={__e:function(t,e){for(var n,r;e=e.__;)if((n=e.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(t))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(t)),r)return w(n.__E=n)}catch(e){t=e}throw t}},k.prototype.setState=function(t,e){var n;n=this.__s!==this.state?this.__s:this.__s=y({},this.state),"function"==typeof t&&(t=t(n,this.props)),t&&y(n,t),null!=t&&this.__v&&(this.__e=!1,e&&this.__h.push(e),w(this))},k.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),w(this))},k.prototype.render=b,_=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;var L={shallow:!0},W=[],H=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,I=function(){};$.render=$;function $(t,e,l,_,a,f){if(null==t||"boolean"==typeof t)return"";Array.isArray(t)&&(t=m(b,null,t));var p=t.type,d=t.props,h=!1;e=e||{};var y,g=(l=l||{}).pretty,v=g&&"string"==typeof g?g:"\t";if("object"!=typeof t&&!p)return n(t);if("function"==typeof p){if(h=!0,!l.shallow||!_&&!1!==l.renderRootComponent){if(p===b){var k="",x=[];c(x,t.props.children);for(var S=0;S<x.length;S++)k+=(S>0&&g?"\n":"")+$(x[S],e,l,!1!==l.shallowHighOrder,a,f);return k}var w,j=t.__c={__v:t,context:e,props:t.props,setState:I,forceUpdate:I,__h:[]};if(s.__r&&s.__r(t),p.prototype&&"function"==typeof p.prototype.render){var A=p.contextType,O=A&&e[A.__c],C=null!=A?O?O.props.value:A.__:e;(j=t.__c=new p(d,C)).__v=t,j._dirty=j.__d=!0,j.props=d,null==j.state&&(j.state={}),null==j._nextState&&null==j.__s&&(j._nextState=j.__s=j.state),j.context=C,p.getDerivedStateFromProps?j.state=u(u({},j.state),p.getDerivedStateFromProps(j.props,j.state)):j.componentWillMount&&j.componentWillMount(),j.state=j._nextState!==j.state?j._nextState:j.__s!==j.state?j.__s:j.state,w=j.render(j.props,j.state,j.context)}else{var F=p.contextType,N=F&&e[F.__c];w=p.call(t.__c,d,null!=F?N?N.props.value:F.__:e)}return j.getChildContext&&(e=u(u({},e),j.getChildContext())),$(w,e,l,!1!==l.shallowHighOrder,a,f)}p=(y=p).displayName||y!==Function&&y.name||function(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=W.length;r--;)if(W[r]===t){n=r;break}n<0&&(n=W.push(t)-1),e="UnnamedComponent"+n}return e}(y)}var P,D="";if(d){var E=Object.keys(d);l&&!0===l.sortAttributes&&E.sort();for(var M=0;M<E.length;M++){var U=E[M],T=d[U];if("children"!==U&&(!U.match(/[\s\n\\/='"\0<>]/)&&(l&&l.allAttributes||"key"!==U&&"ref"!==U))){if("className"===U){if(d.class)continue;U="class"}else a&&U.match(/^xlink:?./)&&(U=U.toLowerCase().replace(/^xlink:?/,"xlink:"));"style"===U&&T&&"object"==typeof T&&(T=i(T));var L=l.attributeHook&&l.attributeHook(U,T,e,l,h);if(L||""===L)D+=L;else if("dangerouslySetInnerHTML"===U)P=T&&T.__html;else if((T||0===T||""===T)&&"function"!=typeof T){if(!(!0!==T&&""!==T||(T=U,l&&l.xml))){D+=" "+U;continue}if("value"===U){if("select"===p){f=T;continue}"option"===p&&f==T&&(D+=" selected")}D+=" "+U+'="'+n(T)+'"'}}}}if(g){var R=D.replace(/^\n\s*/," ");R===D||~R.indexOf("\n")?g&&~D.indexOf("\n")&&(D+="\n"):D=R}if(D="<"+p+D+">",String(p).match(/[\s\n\\/='"\0<>]/))throw new Error(p+" is not a valid HTML tag name in "+D);var B=String(p).match(H);B&&(D=D.replace(/>$/," />"));var J,z=[];if(P)g&&o(P)&&(P="\n"+v+r(P,v)),D+=P;else if(d&&c(J=[],d.children).length){for(var G=g&&~D.indexOf("\n"),V=!1,q=0;q<J.length;q++){var Z=J[q];if(null!=Z&&!1!==Z){var K=$(Z,e,l,!0,"svg"===p||"foreignObject"!==p&&a,f);if(g&&!G&&o(K)&&(G=!0),K)if(g){var Q=K.length>0&&"<"!=K[0];V&&Q?z[z.length-1]+=K:z.push(K),V=Q}else z.push(K)}}if(g&&G)for(var X=z.length;X--;)z[X]="\n"+v+r(z[X],v)}if(z.length)D+=z.join("");else if(l&&l.xml)return D.substring(0,D.length-1)+" />";return B||(g&&~D.indexOf("\n")&&(D+="\n"),D+="</"+p+">"),D}$.shallowRender=function(t,e){return $(t,e,L)};const R=/(\\|\"|\')/g;var B=function(t){return t.replace(R,"\\$1")};const J=Object.prototype.toString,z=Date.prototype.toISOString,G=Error.prototype.toString,V=RegExp.prototype.toString,q=Symbol.prototype.toString,Z=/^Symbol\((.*)\)(.*)$/,K=/\n/gi,Q=Object.getOwnPropertySymbols||(t=>[]);function X(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function Y(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function tt(t){return q.call(t).replace(Z,"Symbol($1)")}function et(t){return"["+G.call(t)+"]"}function nt(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const e=typeof t;if("number"===e)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===e)return'"'+B(t)+'"';if("function"===e)return Y(t);if("symbol"===e)return tt(t);const n=J.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?Y(t,min):"[object Symbol]"===n?tt(t):"[object Date]"===n?z.call(t):"[object Error]"===n?et(t):"[object RegExp]"===n?V.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":X(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&et(t)}function rt(t,e,n,r,o,l,i,u,c,s){let _="";if(t.length){_+=o;const a=n+e;for(let n=0;n<t.length;n++)_+=a+it(t[n],e,a,r,o,l,i,u,c,s),n<t.length-1&&(_+=","+r);_+=o+n}return"["+_+"]"}function ot(t,e,n,r,o,l,i,u,c,s){if((l=l.slice()).indexOf(t)>-1)return"[Circular]";l.push(t);const _=++u>i;if(!_&&t.toJSON&&"function"==typeof t.toJSON)return it(t.toJSON(),e,n,r,o,l,i,u,c,s);const a=J.call(t);return"[object Arguments]"===a?_?"[Arguments]":function(t,e,n,r,o,l,i,u,c,s){return(s?"":"Arguments ")+rt(t,e,n,r,o,l,i,u,c,s)}(t,e,n,r,o,l,i,u,c,s):X(a)?_?"[Array]":function(t,e,n,r,o,l,i,u,c,s){return(s?"":t.constructor.name+" ")+rt(t,e,n,r,o,l,i,u,c,s)}(t,e,n,r,o,l,i,u,c,s):"[object Map]"===a?_?"[Map]":function(t,e,n,r,o,l,i,u,c,s){let _="Map {";const a=t.entries();let f=a.next();if(!f.done){_+=o;const t=n+e;for(;!f.done;)_+=t+it(f.value[0],e,t,r,o,l,i,u,c,s)+" => "+it(f.value[1],e,t,r,o,l,i,u,c,s),(f=a.next()).done||(_+=","+r);_+=o+n}return _+"}"}(t,e,n,r,o,l,i,u,c,s):"[object Set]"===a?_?"[Set]":function(t,e,n,r,o,l,i,u,c,s){let _="Set {";const a=t.entries();let f=a.next();if(!f.done){_+=o;const t=n+e;for(;!f.done;)_+=t+it(f.value[1],e,t,r,o,l,i,u,c,s),(f=a.next()).done||(_+=","+r);_+=o+n}return _+"}"}(t,e,n,r,o,l,i,u,c,s):"object"==typeof t?_?"[Object]":function(t,e,n,r,o,l,i,u,c,s){let _=(s?"":t.constructor?t.constructor.name+" ":"Object ")+"{",a=Object.keys(t).sort();const f=Q(t);if(f.length&&(a=a.filter(t=>!("symbol"==typeof t||"[object Symbol]"===J.call(t))).concat(f)),a.length){_+=o;const f=n+e;for(let n=0;n<a.length;n++){const p=a[n];_+=f+it(p,e,f,r,o,l,i,u,c,s)+": "+it(t[p],e,f,r,o,l,i,u,c,s),n<a.length-1&&(_+=","+r)}_+=o+n}return _+"}"}(t,e,n,r,o,l,i,u,c,s):void 0}function lt(t,e,n,r,o,l,i,u,c,s){let _,a=!1;for(let e=0;e<c.length;e++)if((_=c[e]).test(t)){a=!0;break}if(!a)return!1;return _.print(t,function(t){return it(t,e,n,r,o,l,i,u,c,s)},function(t){const r=n+e;return r+t.replace(K,"\n"+r)},{edgeSpacing:o,spacing:r})}function it(t,e,n,r,o,l,i,u,c,s){const _=nt(t);if(_)return _;const a=lt(t,e,n,r,o,l,i,u,c,s);return a||ot(t,e,n,r,o,l,i,u,c,s)}const ut={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function ct(t){return new Array(t+1).join(" ")}var st=function(t,e){let n,r;e?(function(t){if(Object.keys(t).forEach(t=>{if(!ut.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}(e),e=function(t){const e={};return Object.keys(ut).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:ut[n]),e.min&&(e.indent=0),e}(e)):e=ut;const o=e.min?" ":"\n",l=e.min?"":"\n";if(e&&e.plugins.length){var i=lt(t,n=ct(e.indent),"",o,l,r=[],e.maxDepth,0,e.plugins,e.min);if(i)return i}var u=nt(t);return u||(n||(n=ct(e.indent)),r||(r=[]),ot(t,n,"",o,l,r,e.maxDepth,0,e.plugins,e.min))},_t={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return $(t,_t.context,_t.opts,!0)}},at={plugins:[_t]};var ft={attributeHook:function(t,e,o,l,i){var u=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===u&&!l.functions)return"";if(l.skipFalseAttributes&&!i&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var c="string"==typeof l.pretty?l.pretty:"\t";return"string"!==u?("function"!==u||l.functionNames?(_t.context=o,_t.opts=l,~(e=st(e,at)).indexOf("\n")&&(e=r("\n"+e,c)+"\n")):e="Function",r("\n"+t+"={"+e+"}",c)):"\n"+c+t+'="'+n(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function pt(t,e,n,r){return $(t,e,n=u(u({},ft),n||{}),r)}export default pt;export{pt as render}; | ||
//# sourceMappingURL=jsx.module.js.map |
{ | ||
"name": "preact-render-to-string", | ||
"amdName": "preactRenderToString", | ||
"version": "5.1.4", | ||
"version": "5.1.5", | ||
"description": "Render JSX to an HTML string, with support for Preact components.", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
# preact-render-to-string | ||
[![NPM](http://img.shields.io/npm/v/preact-render-to-string.svg)](https://www.npmjs.com/package/preact-render-to-string) | ||
[![travis-ci](https://travis-ci.org/developit/preact-render-to-string.svg)](https://travis-ci.org/developit/preact-render-to-string) | ||
[![travis-ci](https://travis-ci.org/preactjs/preact-render-to-string.svg)](https://travis-ci.org/preactjs/preact-render-to-string) | ||
@@ -6,0 +6,0 @@ Render JSX and [Preact] components to an HTML string. |
@@ -11,3 +11,5 @@ import { encodeEntities, indent, isLargeString, styleObjToCss, assign, getChildren } from './util'; | ||
const noop = () => {}; | ||
/** Render Preact JSX + Components to an HTML string. | ||
@@ -80,3 +82,12 @@ * @name render | ||
let c = vnode.__c = { __v: vnode, context, props: vnode.props, __h: [] }; | ||
let c = vnode.__c = { | ||
__v: vnode, | ||
context, | ||
props: vnode.props, | ||
// silently drop state updates | ||
setState: noop, | ||
forceUpdate: noop, | ||
// hooks | ||
__h: [] | ||
}; | ||
@@ -83,0 +94,0 @@ // options.render |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
206075
596