preact-render-to-string
Advanced tools
Comparing version 5.1.7 to 5.1.8
@@ -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=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}); | ||
!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 f={shallow:!0},c=[],p=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,u=function(){};g.render=g;function g(t,i,f,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=(f=f||{}).pretty,S=b&&"string"==typeof b?b:"\t";if("object"!=typeof t&&!v)return n(t);if("function"==typeof v){if(y=!0,!f.shallow||!d&&!1!==f.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,f,!1!==f.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 F=v.contextType,j=F&&i[F.__c],H=null!=F?j?j.props.value:F.__: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,f,!1!==f.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=c.length;r--;)if(c[r]===e){n=r;break}n<0&&(n=c.push(e)-1),t="UnnamedComponent"+n}return t}(x)}var L,M="";if(m){var R=Object.keys(m);f&&!0===f.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<>]/)&&(f&&f.allAttributes||"key"!==D&&"ref"!==D))){if("className"===D){if(m.class)continue;D="class"}else _&&D.match(/^xlink:?./)&&(D=D.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===D){if(m.for)continue;D="for"}"style"===D&&E&&"object"==typeof E&&(E=a(E));var N=f.attributeHook&&f.attributeHook(D,E,i,f,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,f&&f.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,f,!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(f&&f.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,f)},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 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}; | ||
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 f(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 p={shallow:!0},u=[],g=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,_=function(){};v.render=v;var h=function(e,t){return v(e,t,p)};function v(n,l,p,h,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||!h&&!1!==p.renderRootComponent){if(x===t){var O="",C=[];c(C,n.props.children);for(var A=0;A<C.length;A++)O+=(A>0&&w?"\n":"")+v(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 F=x.contextType,$=F&&l[F.__c],L=null!=F?$?$.props.value:F.__: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=f(f({},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=f(f({},l),j.getChildContext())),v(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:"));if("htmlFor"===U){if(y.for)continue;U="for"}"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&&c(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=v(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}v.shallowRender=h;export default v;export{v as render,v as renderToString,h 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 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(); | ||
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("<")},i={};function l(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 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,i={};for(r in t)"key"!==r&&"ref"!==r&&(i[r]=t[r]);if(arguments.length>3)for(n=[n],r=3;r<arguments.length;r++)n.push(o[r]);if(null!=n&&(i.children=n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===i[r]&&(i[r]=e.defaultProps[r]);return g(e,i,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,i,l;for(_.sort(function(e,t){return t.__v.__b-e.__v.__b});e=_.pop();)e.__d&&(n=void 0,r=void 0,i=(o=(t=e).__v).__e,(l=t.__P)&&(n=[],r=P(l,o,h({},o),t.__n,void 0!==l.ownerSVGElement,null,n,null==i?S(o):i),D(n,o),r!=i&&x(o)))}function A(e,t,n,r,o,i,l,u,c){var a,_,f,s,y,h,m,g=n&&n.__k||d,b=g.length;if(u==p&&(u=null!=i?i[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,i,l,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(i==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!=i&&"function"!=typeof t.type)for(a=i.length;a--;)null!=i[a]&&v(i[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 i,l,u,c,a;if(o?"className"===t&&(t="class"):"class"===t&&(t="className"),"key"===t||"children"===t);else if("style"===t)if(i=e.style,"string"==typeof n)i.cssText=n;else{if("string"==typeof r&&(i.cssText="",r=null),r)for(l in r)n&&l in n||C(i,l,"");if(n)for(u in n)r&&n[u]===r[u]||C(i,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,i,l,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&&l.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,i,l,u,c),f.base=t.__e,f.__h.length&&l.push(f),v&&(f.__E=f.__=null),f.__e=null}else t.__e=E(n.__e,t,n,r,o,i,l,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,i,l,u){var c,a,_,f,s,y=n.props,h=t.props;if(o="svg"===t.type||o,null==e&&null!=i)for(c=0;c<i.length;c++)if(null!=(a=i[c])&&(null===t.type?3===a.nodeType:a.localName===t.type)){e=a,i[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),i=null}if(null===t.type)null!=i&&(i[i.indexOf(e)]=null),y!==h&&e.data!=h&&(e.data=h);else if(t!==n){if(null!=i&&(i=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 i;for(i in n)i in t||F(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"value"===i||"checked"===i||n[i]===t[i]||F(e,i,t[i],n[i],r)})(e,h,y,o,u),t.__k=t.props.children,f||A(e,t,n,r,"foreignObject"!==t.type&&o,i,l,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,i;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(i=0;i<r.length;i++)r[i]&&U(r[i],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,i,_,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=(i=i||{}).pretty,g=v&&"string"==typeof v?v:"\t";if("object"!=typeof e&&!p)return n(e);if("function"==typeof p){if(y=!0,!i.shallow||!_&&!1!==i.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,i,!1!==i.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,i,!1!==i.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);i&&!0===i.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<>]/)&&(i&&i.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:"));if("htmlFor"===U){if(d.for)continue;U="for"}"style"===U&&T&&"object"==typeof T&&(T=l(T));var L=i.attributeHook&&i.attributeHook(U,T,t,i,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,i&&i.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,i,!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(i&&i.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,i,l,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,i,l,u,c,a),s<e.length-1&&(_+=","+r);_+=o+n}return"["+_+"]"}function oe(e,t,n,r,o,i,l,u,c,a){if((i=i.slice()).indexOf(e)>-1)return"[Circular]";i.push(e);var _=++u>l;if(!_&&e.toJSON&&"function"==typeof e.toJSON)return le(e.toJSON(),t,n,r,o,i,l,u,c,a);var f=J.call(e);return"[object Arguments]"===f?_?"[Arguments]":function(e,t,n,r,o,i,l,u,c,a){return(a?"":"Arguments ")+re(e,t,n,r,o,i,l,u,c,a)}(e,t,n,r,o,i,l,u,c,a):X(f)?_?"[Array]":function(e,t,n,r,o,i,l,u,c,a){return(a?"":e.constructor.name+" ")+re(e,t,n,r,o,i,l,u,c,a)}(e,t,n,r,o,i,l,u,c,a):"[object Map]"===f?_?"[Map]":function(e,t,n,r,o,i,l,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,i,l,u,c,a)+" => "+le(s.value[1],t,p,r,o,i,l,u,c,a),(s=f.next()).done||(_+=","+r);_+=o+n}return _+"}"}(e,t,n,r,o,i,l,u,c,a):"[object Set]"===f?_?"[Set]":function(e,t,n,r,o,i,l,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,i,l,u,c,a),(s=f.next()).done||(_+=","+r);_+=o+n}return _+"}"}(e,t,n,r,o,i,l,u,c,a):"object"==typeof e?_?"[Object]":function(e,t,n,r,o,i,l,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+le(y,t,p,r,o,i,l,u,c,a)+": "+le(e[y],t,p,r,o,i,l,u,c,a),d<f.length-1&&(_+=","+r)}_+=o+n}return _+"}"}(e,t,n,r,o,i,l,u,c,a):void 0}function ie(e,t,n,r,o,i,l,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,i,l,u,c,a)},function(e){var r=n+t;return r+e.replace(K,"\n"+r)},{edgeSpacing:o,spacing:r})}function le(e,t,n,r,o,i,l,u,c,a){var _=ne(e);return _||(ie(e,t,n,r,o,i,l,u,c,a)||oe(e,t,n,r,o,i,l,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,i,l){var u=typeof t;if("dangerouslySetInnerHTML"===e)return!1;if(null==t||"function"===u&&!i.functions)return"";if(i.skipFalseAttributes&&!l&&(!1===t||("class"===e||"style"===e)&&""===t))return"";var c="string"==typeof i.pretty?i.pretty:"\t";return"string"!==u?("function"!==u||i.functionNames?(ae.context=o,ae.opts=i,~(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",i=t.min?"":"\n";if(t&&t.plugins.length){var l=ie(e,n=ce(t.indent),"",o,i,r=[],t.maxDepth,0,t.plugins,t.min);if(l)return l}return ne(e)||(n||(n=ce(t.indent)),r||(r=[]),oe(e,n,"",o,i,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=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}; | ||
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:"));if("htmlFor"===U){if(d.for)continue;U="for"}"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.7", | ||
"version": "5.1.8", | ||
"description": "Render JSX to an HTML string, with support for Preact components.", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
@@ -170,2 +170,7 @@ import { encodeEntities, indent, isLargeString, styleObjToCss, assign, getChildren } from './util'; | ||
if (name==='htmlFor') { | ||
if (props.for) continue; | ||
name = 'for'; | ||
} | ||
if (name==='style' && v && typeof v==='object') { | ||
@@ -248,3 +253,3 @@ v = styleObjToCss(v); | ||
let isText = ret.length > 0 && ret[0]!='<'; | ||
// We merge adjacent text nodes, otherwise each piece would be printed | ||
@@ -251,0 +256,0 @@ // on a new line. |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
228805
687