{"version":3,"file":"jsx.js","sources":["jsx.js"],"sourcesContent":["var t=require(\"preact\");if(\"function\"!=typeof Symbol){var e=0;Symbol=function(t){return\"@@\"+t+ ++e},Symbol.for=function(t){return\"@@\"+t}}var n=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,r=/[\\s\\n\\\\/='\"\\0<>]/,o=/^(xlink|xmlns|xml)([A-Z])/,i=/^accessK|^auto[A-Z]|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|readO|rowS|spellC|src[A-Z]|tabI|item[A-Z]/,a=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,s=/[\"&<]/;function c(t){if(0===t.length||!1===s.test(t))return t;for(var e=0,n=0,r=\"\",o=\"\";n(e||40)||!n&&-1!==String(t).indexOf(\"\\n\")||-1!==String(t).indexOf(\"<\")},f={},p=new Set([\"animation-iteration-count\",\"border-image-outset\",\"border-image-slice\",\"border-image-width\",\"box-flex\",\"box-flex-group\",\"box-ordinal-group\",\"column-count\",\"fill-opacity\",\"flex\",\"flex-grow\",\"flex-negative\",\"flex-order\",\"flex-positive\",\"flex-shrink\",\"flood-opacity\",\"font-weight\",\"grid-column\",\"grid-row\",\"line-clamp\",\"line-height\",\"opacity\",\"order\",\"orphans\",\"stop-opacity\",\"stroke-dasharray\",\"stroke-dashoffset\",\"stroke-miterlimit\",\"stroke-opacity\",\"stroke-width\",\"tab-size\",\"widows\",\"z-index\",\"zoom\"]),d=/[A-Z]/g;function g(t){var e=\"\";for(var n in t){var r=t[n];if(null!=r&&\"\"!==r){var o=\"-\"==n[0]?n:f[n]||(f[n]=n.replace(d,\"-$&\").toLowerCase()),i=\";\";\"number\"!=typeof r||o.startsWith(\"--\")||p.has(o)||(i=\"px;\"),e=e+o+\":\"+r+i}}return e||void 0}function y(t,e){return Array.isArray(e)?e.reduce(y,t):null!=e&&!1!==e&&t.push(e),t}function b(){this.__d=!0}function m(t,e){return{__v:t,context:e,props:t.props,setState:b,forceUpdate:b,__d:!0,__h:[]}}var h=[],v=[];function _(e,n,r,o){var i=t.options.__s;t.options.__s=!0;try{return x(e,n||{},r,o)}finally{t.options.__c&&t.options.__c(e,v),t.options.__s=i,v.length=0}}function x(e,s,f,p,d,b){if(null==e||\"boolean\"==typeof e)return\"\";if(\"object\"!=typeof e)return\"function\"==typeof e?\"\":c(e+\"\");var h=f.pretty,v=h&&\"string\"==typeof h?h:\"\\t\";if(Array.isArray(e)){for(var _=\"\",S=0;S0&&(_+=\"\\n\"),_+=x(e[S],s,f,p,d,b);return _}if(void 0!==e.constructor)return\"\";t.options.__b&&t.options.__b(e);var k,w=e.type,A=e.props,O=!1;if(\"function\"==typeof w){if(O=!0,!f.shallow||!p&&!1!==f.renderRootComponent){if(w===t.Fragment){var C=[];return y(C,e.props.children),x(C,s,f,!1!==f.shallowHighOrder,d,b)}var F,E=e.__c=m(e,s),$=t.options.__r,H=s,L=w.contextType;if(null!=L){var M=s[L.__c];H=M?M.props.value:L.__}if(w.prototype&&\"function\"==typeof w.prototype.render)(E=e.__c=new w(A,H)).__v=e,E._dirty=E.__d=!0,E.props=A,null==E.state&&(E.state={}),null==E._nextState&&null==E.__s&&(E._nextState=E.__s=E.state),E.context=H,w.getDerivedStateFromProps?E.state=Object.assign({},E.state,w.getDerivedStateFromProps(E.props,E.state)):E.componentWillMount&&(E.componentWillMount(),E.state=E._nextState!==E.state?E._nextState:E.__s!==E.state?E.__s:E.state),$&&$(e),F=E.render(E.props,E.state,E.context);else for(var I=0;E.__d&&I++<25;)E.__d=!1,$&&$(e),F=w.call(e.__c,A,H);E.getChildContext&&(s=Object.assign({},s,E.getChildContext()));var N=x(F,s,f,!1!==f.shallowHighOrder,d,b);return t.options.diffed&&t.options.diffed(e),N}w=(k=w).displayName||k!==Function&&k.name||j(k)}var D,W,U=\"<\"+w;if(A){var Z=Object.keys(A);f&&!0===f.sortAttributes&&Z.sort();for(var P=0;P\",r.test(w))throw new Error(w+\" is not a valid HTML tag name in \"+U);var J,V=n.test(w)||f.voidElements&&f.voidElements.test(w),B=[];if(W)h&&u(W)&&(W=\"\\n\"+v+l(W,v)),U+=W;else if(null!=D&&y(J=[],D).length){for(var G=h&&~U.indexOf(\"\\n\"),K=!1,Q=0;Q0&&\"<\"!=Y[0];K&&tt?B[B.length-1]+=Y:B.push(Y),K=tt}else B.push(Y)}}if(h&&G)for(var et=B.length;et--;)B[et]=\"\\n\"+v+l(B[et],v)}if(t.options.diffed&&t.options.diffed(e),B.length||W)U+=B.join(\"\");else if(f&&f.xml)return U.substring(0,U.length-1)+\" />\";return!V||J||W?(h&&~U.indexOf(\"\\n\")&&(U+=\"\\n\"),U=U+\"\"):U=U.replace(/>$/,\" />\"),U}function j(t){var e=(Function.prototype.toString.call(t).match(/^\\s*function\\s+([^( ]+)/)||\"\")[1];if(!e){for(var n=-1,r=h.length;r--;)if(h[r]===t){n=r;break}n<0&&(n=h.push(t)-1),e=\"UnnamedComponent\"+n}return e}const S=/(\\\\|\\\"|\\')/g;var k=function(t){return t.replace(S,\"\\\\$1\")};const w=Object.prototype.toString,A=Date.prototype.toISOString,O=Error.prototype.toString,C=RegExp.prototype.toString,F=Symbol.prototype.toString,E=/^Symbol\\((.*)\\)(.*)$/,$=/\\n/gi,H=Object.getOwnPropertySymbols||(t=>[]);function L(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 M(t){return t!=+t?\"NaN\":0===t&&1/t<0?\"-0\":\"\"+t}function I(t){return\"\"===t.name?\"[Function anonymous]\":\"[Function \"+t.name+\"]\"}function N(t){return F.call(t).replace(E,\"Symbol($1)\")}function D(t){return\"[\"+O.call(t)+\"]\"}function W(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 M(t);if(\"string\"===e)return'\"'+k(t)+'\"';if(\"function\"===e)return I(t);if(\"symbol\"===e)return N(t);const n=w.call(t);return\"[object WeakMap]\"===n?\"WeakMap {}\":\"[object WeakSet]\"===n?\"WeakSet {}\":\"[object Function]\"===n||\"[object GeneratorFunction]\"===n?I(t,min):\"[object Symbol]\"===n?N(t):\"[object Date]\"===n?A.call(t):\"[object Error]\"===n?D(t):\"[object RegExp]\"===n?C.call(t):\"[object Arguments]\"===n&&0===t.length?\"Arguments []\":L(n)&&0===t.length?t.constructor.name+\" []\":t instanceof Error&&D(t)}function U(t,e,n,r,o,i,a,s,c,l){let u=\"\";if(t.length){u+=o;const f=n+e;for(let n=0;n \"+V(p.value[1],e,t,r,o,i,a,s,c,l),p=f.next(),p.done||(u+=\",\"+r);u+=o+n}return u+\"}\"}function T(t,e,n,r,o,i,a,s,c,l){let u=(l?\"\":t.constructor?t.constructor.name+\" \":\"Object \")+\"{\",f=Object.keys(t).sort();const p=H(t);if(p.length&&(f=f.filter(t=>!(\"symbol\"==typeof t||\"[object Symbol]\"===w.call(t))).concat(p)),f.length){u+=o;const p=n+e;for(let n=0;n-1)return\"[Circular]\";i.push(t);const u=++s>a;if(!u&&t.toJSON&&\"function\"==typeof t.toJSON)return V(t.toJSON(),e,n,r,o,i,a,s,c,l);const f=w.call(t);return\"[object Arguments]\"===f?u?\"[Arguments]\":Z(t,e,n,r,o,i,a,s,c,l):L(f)?u?\"[Array]\":P(t,e,n,r,o,i,a,s,c,l):\"[object Map]\"===f?u?\"[Map]\":R(t,e,n,r,o,i,a,s,c,l):\"[object Set]\"===f?u?\"[Set]\":q(t,e,n,r,o,i,a,s,c,l):\"object\"==typeof t?u?\"[Object]\":T(t,e,n,r,o,i,a,s,c,l):void 0}function J(t,e,n,r,o,i,a,s,c,l){let u,f=!1;for(let e=0;e{if(!B.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\")}function K(t){const e={};return Object.keys(B).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:B[n]),e.min&&(e.indent=0),e}function Q(t){return new Array(t+1).join(\" \")}var X=function(t,e){let n,r;e?(G(e),e=K(e)):e=B;const o=e.min?\" \":\"\\n\",i=e.min?\"\":\"\\n\";if(e&&e.plugins.length){n=Q(e.indent),r=[];var a=J(t,n,\"\",o,i,r,e.maxDepth,0,e.plugins,e.min);if(a)return a}return W(t)||(n||(n=Q(e.indent)),r||(r=[]),z(t,n,\"\",o,i,r,e.maxDepth,0,e.plugins,e.min))},Y={test:function(t){return t&&\"object\"==typeof t&&\"type\"in t&&\"props\"in t&&\"key\"in t},print:function(t,e,n){return _(t,Y.context,Y.opts,!0)}},tt={plugins:[Y]},et={attributeHook:function(t,e,n,r,o){var i=typeof e;if(\"dangerouslySetInnerHTML\"===t)return!1;if(null==e||\"function\"===i&&!r.functions)return\"\";if(r.skipFalseAttributes&&!o&&(!1===e||(\"class\"===t||\"style\"===t)&&\"\"===e))return\"\";var a=\"string\"==typeof r.pretty?r.pretty:\"\\t\";return\"string\"!==i?(\"function\"!==i||r.functionNames?(Y.context=n,Y.opts=r,~(e=X(e,tt)).indexOf(\"\\n\")&&(e=l(\"\\n\"+e,a)+\"\\n\")):e=\"Function\",l(\"\\n\"+t+\"={\"+e+\"}\",a)):\"\\n\"+a+t+'=\"'+c(e)+'\"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:\" \"};function nt(t,e,n){var r=Object.assign({},et,n||{});return r.jsx||(r.attributeHook=null),_(t,e,r)}var rt={shallow:!0};exports.default=nt,exports.render=nt,exports.shallowRender=function(t,e,n){return nt(t,e,Object.assign({},rt,n||{}))};\n//# sourceMappingURL=jsx.js.map\n"],"names":["Symbol","e","t"],"mappings":"wBAAA,GAAsB,mBAAXA,OAAuB,CACjC,IAAIC,EAAI,EAERD,OAAS,SAAUE,GAClB,WAAYA,KAAMD,CACnB,EACAD,WAAa,SAACE,cAAWA,CAAC,CAC3B"}