{"version":3,"file":"jsx.js","sources":["jsx.js"],"sourcesContent":["!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?e(exports,require(\"preact\")):\"function\"==typeof define&&define.amd?define([\"exports\",\"preact\"],e):e((t||self).preactRenderToString={},t.preact)}(this,function(t,e){if(\"function\"!=typeof Symbol){var n=0;Symbol=function(t){return\"@@\"+t+ ++n},Symbol.for=function(t){return\"@@\"+t}}var r=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,o=/[&<>\"]/;function i(t){var e=String(t);return o.test(e)?e.replace(/&/g,\"&\").replace(//g,\">\").replace(/\"/g,\""\"):e}var a=function(t,e){return String(t).replace(/(\\n+)/g,\"$1\"+(e||\"\\t\"))},c=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf(\"\\n\")||-1!==String(t).indexOf(\"<\")},u={};function l(t){var e=\"\";for(var n in t){var o=t[n];null!=o&&\"\"!==o&&(e&&(e+=\" \"),e+=\"-\"==n[0]?n:u[n]||(u[n]=n.replace(/([A-Z])/g,\"-$1\").toLowerCase()),e+=\": \",e+=o,\"number\"==typeof o&&!1===r.test(n)&&(e+=\"px\"),e+=\";\")}return e||void 0}function s(t,e){for(var n in e)t[n]=e[n];return t}function f(t,e){return Array.isArray(e)?e.reduce(f,t):null!=e&&!1!==e&&t.push(e),t}var p={shallow:!0},y=[],d=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,g=/[\\s\\n\\\\/='\"\\0<>]/;function b(){this.__d=!0}_.render=_;var m=[];function _(t,n,r){n=n||{},r=r||{};var o=e.options.__s;e.options.__s=!0;var i=h(t,n,r);return e.options.__c&&e.options.__c(t,m),m.length=0,e.options.__s=o,i}function h(t,n,r,o,u,p){if(null==t||\"boolean\"==typeof t)return\"\";if(\"object\"!=typeof t)return i(t);var m=r.pretty,_=m&&\"string\"==typeof m?m:\"\\t\";if(Array.isArray(t)){for(var v=\"\",x=0;x0&&(v+=\"\\n\"),v+=h(t[x],n,r,o,u,p);return v}var j,S=t.type,A=t.props,O=!1;if(\"function\"==typeof S){if(O=!0,!r.shallow||!o&&!1!==r.renderRootComponent){if(S===e.Fragment){var w=[];return f(w,t.props.children),h(w,n,r,!1!==r.shallowHighOrder,u,p)}var k,F=t.__c={__v:t,context:n,props:t.props,setState:b,forceUpdate:b,__d:!0,__h:[]};e.options.__b&&e.options.__b(t);var E=e.options.__r;if(S.prototype&&\"function\"==typeof S.prototype.render){var C=S.contextType,M=C&&n[C.__c],N=null!=C?M?M.props.value:C.__:n;(F=t.__c=new S(A,N)).__v=t,F._dirty=F.__d=!0,F.props=A,null==F.state&&(F.state={}),null==F._nextState&&null==F.__s&&(F._nextState=F.__s=F.state),F.context=N,S.getDerivedStateFromProps?F.state=s(s({},F.state),S.getDerivedStateFromProps(F.props,F.state)):F.componentWillMount&&(F.componentWillMount(),F.state=F._nextState!==F.state?F._nextState:F.__s!==F.state?F.__s:F.state),E&&E(t),k=F.render(F.props,F.state,F.context)}else for(var D=S.contextType,H=D&&n[D.__c],I=null!=D?H?H.props.value:D.__:n,T=0;F.__d&&T++<25;)F.__d=!1,E&&E(t),k=S.call(t.__c,A,I);return F.getChildContext&&(n=s(s({},n),F.getChildContext())),e.options.diffed&&e.options.diffed(t),h(k,n,r,!1!==r.shallowHighOrder,u,p)}S=(j=S).displayName||j!==Function&&j.name||function(t){var e=(Function.prototype.toString.call(t).match(/^\\s*function\\s+([^( ]+)/)||\"\")[1];if(!e){for(var n=-1,r=y.length;r--;)if(y[r]===t){n=r;break}n<0&&(n=y.push(t)-1),e=\"UnnamedComponent\"+n}return e}(j)}var $,U,W=\"<\"+S;if(A){var L=Object.keys(A);r&&!0===r.sortAttributes&&L.sort();for(var P=0;P\",g.test(S))throw new Error(S+\" is not a valid HTML tag name in \"+W);var z,B=d.test(S)||r.voidElements&&r.voidElements.test(S),G=[];if(U)m&&c(U)&&(U=\"\\n\"+_+a(U,_)),W+=U;else if(null!=$&&f(z=[],$).length){for(var Z=m&&~W.indexOf(\"\\n\"),K=!1,Q=0;Q0&&\"<\"!=Y[0];K&&tt?G[G.length-1]+=Y:G.push(Y),K=tt}else G.push(Y)}}if(m&&Z)for(var et=G.length;et--;)G[et]=\"\\n\"+_+a(G[et],_)}if(G.length||U)W+=G.join(\"\");else if(r&&r.xml)return W.substring(0,W.length-1)+\" />\";return!B||z||U?(m&&~W.indexOf(\"\\n\")&&(W+=\"\\n\"),W+=\"\"):W=W.replace(/>$/,\" />\"),W}_.shallowRender=function(t,e){return _(t,e,p)};const v=/(\\\\|\\\"|\\')/g,x=Object.prototype.toString,j=Date.prototype.toISOString,S=Error.prototype.toString,A=RegExp.prototype.toString,O=Symbol.prototype.toString,w=/^Symbol\\((.*)\\)(.*)$/,k=/\\n/gi,F=Object.getOwnPropertySymbols||(t=>[]);function E(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 C(t){return\"\"===t.name?\"[Function anonymous]\":\"[Function \"+t.name+\"]\"}function M(t){return O.call(t).replace(w,\"Symbol($1)\")}function N(t){return\"[\"+S.call(t)+\"]\"}function D(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'\"'+function(t){return t.replace(v,\"\\\\$1\")}(t)+'\"';if(\"function\"===e)return C(t);if(\"symbol\"===e)return M(t);const n=x.call(t);return\"[object WeakMap]\"===n?\"WeakMap {}\":\"[object WeakSet]\"===n?\"WeakSet {}\":\"[object Function]\"===n||\"[object GeneratorFunction]\"===n?C(t,min):\"[object Symbol]\"===n?M(t):\"[object Date]\"===n?j.call(t):\"[object Error]\"===n?N(t):\"[object RegExp]\"===n?A.call(t):\"[object Arguments]\"===n&&0===t.length?\"Arguments []\":E(n)&&0===t.length?t.constructor.name+\" []\":t instanceof Error&&N(t)}function H(t,e,n,r,o,i,a,c,u,l){let s=\"\";if(t.length){s+=o;const f=n+e;for(let n=0;n-1)return\"[Circular]\";i.push(t);const s=++c>a;if(!s&&t.toJSON&&\"function\"==typeof t.toJSON)return $(t.toJSON(),e,n,r,o,i,a,c,u,l);const f=x.call(t);return\"[object Arguments]\"===f?s?\"[Arguments]\":function(t,e,n,r,o,i,a,c,u,l){return(l?\"\":\"Arguments \")+H(t,e,n,r,o,i,a,c,u,l)}(t,e,n,r,o,i,a,c,u,l):E(f)?s?\"[Array]\":function(t,e,n,r,o,i,a,c,u,l){return(l?\"\":t.constructor.name+\" \")+H(t,e,n,r,o,i,a,c,u,l)}(t,e,n,r,o,i,a,c,u,l):\"[object Map]\"===f?s?\"[Map]\":function(t,e,n,r,o,i,a,c,u,l){let s=\"Map {\";const f=t.entries();let p=f.next();if(!p.done){s+=o;const t=n+e;for(;!p.done;)s+=t+$(p.value[0],e,t,r,o,i,a,c,u,l)+\" => \"+$(p.value[1],e,t,r,o,i,a,c,u,l),p=f.next(),p.done||(s+=\",\"+r);s+=o+n}return s+\"}\"}(t,e,n,r,o,i,a,c,u,l):\"[object Set]\"===f?s?\"[Set]\":function(t,e,n,r,o,i,a,c,u,l){let s=\"Set {\";const f=t.entries();let p=f.next();if(!p.done){s+=o;const t=n+e;for(;!p.done;)s+=t+$(p.value[1],e,t,r,o,i,a,c,u,l),p=f.next(),p.done||(s+=\",\"+r);s+=o+n}return s+\"}\"}(t,e,n,r,o,i,a,c,u,l):\"object\"==typeof t?s?\"[Object]\":function(t,e,n,r,o,i,a,c,u,l){let s=(l?\"\":t.constructor?t.constructor.name+\" \":\"Object \")+\"{\",f=Object.keys(t).sort();const p=F(t);if(p.length&&(f=f.filter(t=>!(\"symbol\"==typeof t||\"[object Symbol]\"===x.call(t))).concat(p)),f.length){s+=o;const p=n+e;for(let n=0;n{if(!U.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(U).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:U[n]),e.min&&(e.indent=0),e}(e)):e=U;const o=e.min?\" \":\"\\n\",i=e.min?\"\":\"\\n\";if(e&&e.plugins.length){n=W(e.indent),r=[];var a=T(t,n,\"\",o,i,r,e.maxDepth,0,e.plugins,e.min);if(a)return a}return D(t)||(n||(n=W(e.indent)),r||(r=[]),I(t,n,\"\",o,i,r,e.maxDepth,0,e.plugins,e.min))}(e,P)).indexOf(\"\\n\")&&(e=a(\"\\n\"+e,u)+\"\\n\")):e=\"Function\",a(\"\\n\"+t+\"={\"+e+\"}\",u)):\"\\n\"+u+t+'=\"'+i(e)+'\"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:\" \"};function J(t,e,n,r){return _(t,e,n=s(s({},R),n||{}))}t.default=J,t.render=J});\n//# sourceMappingURL=jsx.js.map\n"],"names":["t","Symbol","n","s","c"],"mappings":"mEAAA,SAAsBA,GAAA,MAAXC,KAAAA,KAAuBC,GACjCD,WAEAA,SAASD,GAAUG,MAClB,KAAAH,OAAkBI,EAAAA"}