var Absurd=function(b){function d(a){return a?a.replace(/^\s+|\s+$/g,""):""}var e={api:{},helpers:{},plugins:{},processors:{css:{plugins:{}},html:{plugins:{},helpers:{}},component:{plugins:{}}}},f=function(a){return a.indexOf("css/CSS.js")>0||"/../CSS.js"==a?e.processors.css.CSS:a.indexOf("html/HTML.js")>0?e.processors.html.HTML:a.indexOf("component/Component.js")>0?e.processors.component.Component:"js-beautify"==a?{html:function(a){return a}}:"./helpers/PropAnalyzer"==a?e.processors.html.helpers.PropAnalyzer:"../../helpers/TransformUppercase"==a?e.helpers.TransformUppercase:"./helpers/TemplateEngine"==a||"../html/helpers/TemplateEngine"==a?e.processors.html.helpers.TemplateEngine:"../helpers/Extend"==a?e.helpers.Extend:"../helpers/Clone"==a?e.helpers.Clone:"../helpers/Prefixes"==a||"/../../../helpers/Prefixes"==a?e.helpers.Prefixes:a==g+"/../../../../"?Absurd:"../helpers/CSSParse"==a?e.helpers.CSSParse:function(){}},g="",h=function(a,b){!function c(){a.length>0&&a.shift().apply(b||{},[c].concat(Array.prototype.slice.call(arguments,0)))}()},i=function(a){var b={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],body:[0,"",""],_default:[1,"
","
"]};b.optgroup=b.option,b.tbody=b.tfoot=b.colgroup=b.caption=b.thead,b.th=b.td;var c=/<\s*\w.*?>/g.exec(a),d=document.createElement("div");if(null!=c){var e=c[0].replace(//g,"").split(" ")[0];if("body"===e.toLowerCase()){var f=(document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null),document.createElement("body"));d.innerHTML=a.replace(//g,"");var g=d.firstChild.attributes;f.innerHTML=a;for(var h=0;he;e++)b=c[e],3==b.nodeType&&f.test(b.nodeValue)&&(a.removeChild(b),e--,d--);return a},l=function(b,c,d){for(var e=document.createElement(b),f=0;f=0?c.splice(d,1):c.push(a),b.className=c.join(" ")}return this},w=function(a,b,c){return b instanceof Array&&(c=b,b=this),b||(b=this),function(){a.apply(b,(c||[]).concat(Array.prototype.slice.call(arguments,0)))}},x=function(a,b,c,d){var f=e.helpers.Extend({__name:a},d),g=e.helpers.Extend,o=[];f.listeners=o,f.on=function(a,b,c){return o[a]||(o[a]=[]),o[a].push({callback:b,scope:c}),this},f.off=function(a,b){return o[a]?(b||(o[a]=[]),this):this},f.dispatch=function(a,b,d){if(!b||"object"!=typeof b||b instanceof Array||(b.target=this),o[a])for(var e=0;e=b.childNodes.length)for(var i=0;i")})}d()}else"object"==typeof this.html?(x=g({},this.html),d()):a();else a();return this},f.applyHTML=function(a,b){return this.html=a,b||this.populate(),this};var y=!1;f.__append=function(a){return!y&&this.el&&this.get("parent")&&(y=!0,this.get("parent").appendChild(this.el)),a(),this};var z={events:{}};f.__handleEvents=function(a){if(this.el){var b=this,c=function(a){var c=a.getAttribute("data-absurd-event"),d=function(c){if(c=c.split(":"),c.length>=2){var d=c[0],e=c[1];c.splice(0,2);var f=c;(!z.events[d]||z.events[d].indexOf(a)<0)&&(z.events[d]||(z.events[d]=[]),z.events[d].push(a),j(a,d,function(a){if("function"==typeof b[e]){var c=b[e];c.apply(b,[a].concat(f))}}))}};c=c.split(/, ?/g);for(var e=0;e'},f.child=function(){var a=Array.prototype.slice.call(arguments,0),b=this.get("children"),c=b&&b[a.shift()],d="_"+A.index++;return A.funcs[d]={args:a,func:function(a){c.populate({callback:function(b){a(b.html.element)}})}},''},f.wire=function(a){return b.components.events.on(a,this[a]||function(){},this),this};var B=!1;return f.populate=function(a){if(!B){B=!0;var b=function(a){return a(),this};return h([a&&a.css===!1?b:f.__handleCSS,a&&a.html===!1?b:f.__handleHTML,f.__append,f.__handleEvents,f.__handleAsyncFunctions,function(){B=!1,A={funcs:{},index:0};var b={css:v,html:{element:this.el}};this.dispatch("populated",b),a&&"function"==typeof a.callback&&a.callback(b)}],this),this}},f.str2DOMElement=i,f.addEventListener=j,f.queue=h,f.qs=m,f.qsa=n,f.getStyle=q,f.addClass=r,f.removeClass=s,f.replaceClass=t,f.bind=w,f.toggleClass=u,f.compileHTML=function(a,c,d){b.flush().morph("html").add(a).compile(c,d)},f.compileCSS=function(a,c,d){b.flush().add(a).compile(c,d)},f.delay=function(a,b,c){var d=this;setTimeout(function(){b.apply(d,c)},a)},f},y=function(a){a.di.register("is",{appended:function(a){return"undefined"==typeof a&&(a=this.host.html),m(a)?!0:!1},hidden:function(a){return a=a||this.host.el,null===a.offsetParent}}),a.di.register("router",{routes:[],mode:null,root:"/",getFragment:function(){var a="";if("history"===this.mode){if(!location)return"";a=this.clearSlashes(decodeURI(location.pathname+location.search)),a=a.replace(/\?(.*)$/,""),a="/"!=this.root?a.replace(this.root,""):a}else{if(!window)return"";var b=window.location.href.match(/#(.*)$/);a=b?b[1]:""}return this.clearSlashes(a)},clearSlashes:function(a){return a.toString().replace(/\/$/,"").replace(/^\//,"")},add:function(a,b){return"function"==typeof a&&(b=a,a=""),this.routes.push({re:a,handler:b}),this},remove:function(a){for(var b,c=0;c0){for(var g=0;decl=a.declarations[g];g++)"declaration"===decl.type&&(f[decl.property]=decl.value);if(a.selectors&&a.selectors.length>0)for(var g=0;selector=a.selectors[g];g++)e[selector]=b({},f);d.add(e,c)}return d},d.addHook=function(a,b){j[a]||(j[a]=[]);for(var d=!1,e=0;c=j[a][e];e++)c===b&&(d=!0);d===!1?j[a].push(b):null},d.callHooks=function(a,b){if(j[a])for(var e=0;c=j[a][e];e++)if(c.apply(d,b)===!0)return!0;return!1},d.numOfAddedRules=0,d.components=function(a){var b=e.helpers.Extend,c=e.helpers.Clone,d={},f=[],g=b({},x()),h={};return function(a){window&&(window.addEventListener?window.addEventListener("load",a):window.attachEvent&&window.attachEvent("onload",a))}(function(){h.broadcast("ready")}),h={numOfComponents:0,events:g,register:function(e,h){return this.numOfComponents+=1,d[e]=function(){var d=b({},x(e,a,g,c(h)));return a.di.resolveObject(d),f.push(d),"function"==typeof d.constructor&&d.constructor.apply(d,Array.prototype.slice.call(arguments,0)),d}},get:function(a){if(d[a])return d[a];throw new Error("There is no component with name '"+a+"'.")},remove:function(a){return d[a]?(delete d[a],!0):!1},list:function(){var a=[];for(var b in d)a.push(b);return a},flush:function(){return d={},f=[],this},broadcast:function(a,b){for(var c=0;c=0?h(p.replace(/&/g,a),n[q],f,i):h(p,n[q],f,"undefined"!=typeof i?i+" "+a:a);else h(q.replace(/&/g,a),n[q],f,i);else 0===q.indexOf("@media")||0===q.indexOf("@supports")?h(a,n[q],q,i):0===a.indexOf("@media")||0===q.indexOf("@supports")?h(q,n[q],a,i):0===a.indexOf("^")?h(a.substr(1,a.length-1)+("undefined"!=typeof i?" "+i:"")+" "+q,n[q],f):g(a,q,n[q],f,i)===!1&&h(q,n[q],f,(i?i+" ":"")+a);for(var q in o){var s={};s[q]=o[q](),h(a,s,f,i)}}else for(var k=0;k=0?"~~"+a.numOfAddedRules+"~~":"",p=n[i+k]||{};for(var q in m){var r=m[q];q=i+q,"object"!=typeof r&&("css"==j?"+"===r.toString().charAt(0)?p&&p[q]?p[q]=p[q]+", "+r.substr(1,r.length-1):p[q]=r.substr(1,r.length-1):">"===r.toString().charAt(0)?p&&p[q]?p[q]=p[q]+" "+r.substr(1,r.length-1):p[q]=r.substr(1,r.length-1):p[q]=r:p[q]=r)}n[i+k]=p}return a}catch(s){throw new Error("Error adding: "+JSON.stringify({rules:c,error:s.toString()}))}};return i};var A=f("../helpers/Extend");e.api.compile=function(a){return function(){for(var b=null,c=function(){},d=null,e=0;ed;d++)c=parseInt(a.substr(2*d,2),16),c=Math.round(Math.min(Math.max(0,c+c*b),255)).toString(16),e+=("00"+c).substr(c.length);return e};e.api.darken=function(a){return function(a,b){return B(a,-(b/100))}},e.api.define=function(a){return function(b,c){return a.getStorage().__defined||(a.getStorage().__defined={}),a.getStorage().__defined[b]=c,a}},e.api.hook=function(a){return function(b,c){return a.addHook(b,c),a}},e.api.importCSS=function(a){var b=f("../helpers/CSSParse");return function(c){try{var d=b(c);a.handlecss(d,"")}catch(e){console.log("Error in the CSS: '"+c+"'",e,e.stack)}return a}};var B=function(a,b){a=String(a).replace(/[^0-9a-f]/gi,""),a.length<6&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),b=b||0;var c,d,e="#";for(d=0;3>d;d++)c=parseInt(a.substr(2*d,2),16),c=Math.round(Math.min(Math.max(0,c+c*b),255)).toString(16),e+=("00"+c).substr(c.length);return e};e.api.lighten=function(a){return function(a,b){return B(a,b/100)}};var C={html:function(a){a.defaultProcessor=f(g+"/../processors/html/HTML.js")(),a.hook("add",function(b,c){return a.getRules(c||"mainstream").push(b),!0})},component:function(a){a.defaultProcessor=f(g+"/../processors/component/Component.js")(),a.hook("add",function(b){b instanceof Array||(b=[b]);for(var d=0;de;e++)d=c[e],b(d);return a}},e.api.register=function(a){return function(b,c){return a[b]=c,a}},e.api.storage=function(a){var b=a.getStorage(),c=function(d,e){if("undefined"!=typeof e)b[d]=e;else{if("object"!=typeof d){if(b[d])return b[d];throw new Error("There is no data in the storage associated with '"+d+"'")}for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&c(f,d[f])}return a};return c};var E=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;e.helpers.CSSParse=function(a,b){function c(a){var b=a.match(/\n/g);b&&(F+=b.length);var c=a.lastIndexOf("\n");G=~c?a.length-c:G+a.length}function e(){var a={line:F,column:G};return b.position?function(b){return b.position=new f(a),n(),b}:g}function f(a){this.start=a,this.end={line:F,column:G},this.source=b.source}function g(a){return n(),a}function h(c){var d=new Error(c+" near line "+F+":"+G);throw d.filename=b.source,d.line=F,d.column=G,d.source=a,d}function i(){return{type:"stylesheet",stylesheet:{rules:l()}}}function j(){return m(/^{\s*/)}function k(){return m(/^}/)}function l(){var b,c=[];for(n(),o(c);a.length&&"}"!=a.charAt(0)&&(b=C()||D());)c.push(b),o(c);return c}function m(b){var d=b.exec(a);if(d){var e=d[0];return c(e),a=a.slice(e.length),d}}function n(){m(/^\s*/)}function o(a){var b;for(a=a||[];b=p();)a.push(b);return a}function p(){var b=e();if("/"==a.charAt(0)&&"*"==a.charAt(1)){for(var d=2;""!=a.charAt(d)&&("*"!=a.charAt(d)||"/"!=a.charAt(d+1));)++d;if(d+=2,""===a.charAt(d-1))return h("End of comment missing");var f=a.slice(2,d-2);return G+=2,c(f),a=a.slice(d),G+=2,b({type:"comment",comment:f})}}function q(){var a=m(/^([^{]+)/);if(a)return d(a[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").split(/\s*,\s*/)}function r(){var a=e(),b=m(/^(\*?[-#\/\*\w]+(\[[0-9a-z_-]+\])?)\s*/);if(b){if(b=d(b[0]),!m(/^:\s*/))return h("property missing ':'");var c=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/);if(!c)return h("property missing value");var f=a({type:"declaration",property:b.replace(E,""),value:d(c[0]).replace(E,"")});return m(/^[;\s]*/),f}}function s(){var a=[];if(!j())return h("missing '{'");o(a);for(var b;b=r();)a.push(b),o(a);return k()?a:h("missing '}'")}function t(){for(var a,b=[],c=e();a=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)b.push(a[1]),m(/^,\s*/);return b.length?c({type:"keyframe",values:b,declarations:s()}):void 0}function u(){var a=e(),b=m(/^@([-\w]+)?keyframes */);if(b){var c=b[1],b=m(/^([-\w]+)\s*/);if(!b)return h("@keyframes missing name");var d=b[1];if(!j())return h("@keyframes missing '{'");for(var f,g=o();f=t();)g.push(f),g=g.concat(o());return k()?a({type:"keyframes",name:d,vendor:c,keyframes:g}):h("@keyframes missing '}'")}}function v(){var a=e(),b=m(/^@supports *([^{]+)/);if(b){var c=d(b[1]);if(!j())return h("@supports missing '{'");var f=o().concat(l());return k()?a({type:"supports",supports:c,rules:f}):h("@supports missing '}'")}}function w(){var a=e(),b=m(/^@host */);if(b){if(!j())return h("@host missing '{'");var c=o().concat(l());return k()?a({type:"host",rules:c}):h("@host missing '}'")}}function x(){var a=e(),b=m(/^@media *([^{]+)/);if(b){var c=d(b[1]);if(!j())return h("@media missing '{'");var f=o().concat(l());return k()?a({type:"media",media:c,rules:f}):h("@media missing '}'")}}function y(){var a=e(),b=m(/^@page */);if(b){var c=q()||[];if(!j())return h("@page missing '{'");for(var d,f=o();d=r();)f.push(d),f=f.concat(o());return k()?a({type:"page",selectors:c,declarations:f}):h("@page missing '}'")}}function z(){var a=e(),b=m(/^@([-\w]+)?document *([^{]+)/);if(b){var c=d(b[1]),f=d(b[2]);if(!j())return h("@document missing '{'");var g=o().concat(l());return k()?a({type:"document",document:f,vendor:c,rules:g}):h("@document missing '}'")}}function A(){var a=e(),b=m(/^@font-face */);if(b){if(!j())return h("@font-face missing '{'");for(var c,d=o();c=r();)d.push(c),d=d.concat(o());return k()?a({type:"font-face",declarations:d}):h("@font-face missing '}'")}}function B(a){var b=new RegExp("^@"+a+" *([^;\\n]+);");return function(){var c=e(),d=m(b);if(d){var f={type:a};return f[a]=d[1].trim(),c(f)}}}function C(){return"@"==a[0]?u()||x()||v()||H()||I()||J()||z()||y()||w()||A():void 0}function D(){var a=e(),b=q();return b?(o(),a({type:"rule",selectors:b,declarations:s()})):h("selector missing")}b=b||{},b.position=b.position===!1?!1:!0;var F=1,G=1;f.prototype.content=a;var H=B("import"),I=B("charset"),J=B("namespace");return i()},e.helpers.Clone=function Y(a){if(!a)return a;for(var b,c=[Number,String,Boolean],d=0;dd;d++)c=parseInt(a.substr(2*d,2),16),c=Math.round(Math.min(Math.max(0,c+c*b),255)).toString(16),e+=("00"+c).substr(c.length);return e},e.helpers.Extend=function(){for(var a=function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},b=arguments[0],c=1;c=0)&&(b["-webkit-"+d.prop]=e),(""===d.prefix||d.prefix.indexOf("m")>=0)&&(b["-moz-"+d.prop]=e),(""===d.prefix||d.prefix.indexOf("s")>=0)&&(b["-ms-"+d.prop]=e),(""===d.prefix||d.prefix.indexOf("o")>=0)&&(b["-o-"+d.prop]=e))},nonPrefixProp:function(a){var b=F(a);return b.prefix!==!1&&(""==b.prefix?b.prefix="-":b.prefix="-"+b.prefix+"-"),b}},e.helpers.RequireUncached=function(a){return delete f.cache[f.resolve(a)],f(a)},e.helpers.TransformUppercase=function(a,b){for(var d="",e=0;c=a.charAt(e);e++)d+=c===c.toUpperCase()&&c.toLowerCase()!==c.toUpperCase()?"-"+c.toLowerCase():c;return d};var G=function(a,b,d){var e="",h="",i=[],j=d.api;cssPreprocessor=f(g+"/../css/CSS.js")(),htmlPreprocessor=f(g+"/../html/HTML.js")();for(var k=function(a){for(var b=0;ba.length-1)return void b(e);var g=a[c];"function"==typeof g&&(g=g()),j.morph("html").add(g.html?g.html:{}), htmlPreprocessor(j.getRules(),function(a,b){h+=b,c+=1,e=a,f()},d)};f()},m=function(a){for(var b in a)if("_include"===b)if(a[b]instanceof Array)for(var d=0;d=0){c[d]={};for(var f in e){c[d][f]={};for(var g in e[f])c[d][f][g]=e[f][g]}}}return c},M=function(a,b){var c=[],d={},b=[].concat(b||[]);b.splice(0,0,""),b=b.join("|");for(var e in a){var f=a[e];for(var g in f)c.push({selector:e,prop:g,value:f[g],combine:b.indexOf("|"+g)<0&&e.indexOf("@font-face")<0})}for(var h=0;h","g");a="function"!=typeof c[d]?a.replace(e,c[d]):a.replace(e,c[d]())}}return a};e.processors.css.CSS=function(){var a=function(a,b,c){if(c=c||I,c.api&&c.api.jsonify){var d=L(a,c);return b(null,d),d}var e="";for(var g in a){var h=a[g];h=c.combineSelectors?M(h,c.preventCombining):h,e+="mainstream"===g?K(h,c):g+" {"+H+K(h,c,[" "," "])+"}"+H}return e=O(e,c),c&&c.api&&c.api.dynamicCSS&&(e=f("../html/helpers/TemplateEngine")(e,c)),c.minify?(e=N(e),b&&b(null,e)):b&&b(null,e),e};return a.type="css",a},e.processors.css.plugins.charset=function(){return function(a,b){"string"==typeof b?a.raw('@charset: "'+b+'";'):"object"==typeof b&&(b=b.charset.replace(/:/g,"").replace(/'/g,"").replace(/"/g,"").replace(/ /g,""),a.raw('@charset: "'+b+'";'))}},e.processors.css.plugins.document=function(){return function(a,b){if("object"==typeof b){var c="";if(c+="@"+b.vendor+"document",c+=" "+b.document,b.rules&&b.rules.length)for(var d=0;rule=b.rules[d];d++)a.handlecssrule(rule,c);else"undefined"!=typeof b.styles&&a.add(b.styles,c)}}},e.processors.css.plugins.keyframes=function(){return function(a,b){f(g+"/../CSS.js")(),f(g+"/../../../helpers/Prefixes");if("object"==typeof b){var c;if("undefined"!=typeof b.frames)c=b.frames;else if("undefined"!=typeof b.keyframes){c={};for(var d=0;rule=b.keyframes[d];d++)if("keyframe"===rule.type)for(var e=c[rule.values]={},h=0;declaration=rule.declarations[h];h++)"declaration"===declaration.type&&(e[declaration.property]=declaration.value)}if(a.jsonify){var i={};i.keyframes={name:b.name,frames:c},a.add(i)}else{var j=f(g+"/../../../../")();j.add(c).compile(function(c,d){var e="@keyframes "+b.name+" {\n";e+=d,e+="}",e=e+"\n"+e.replace("@keyframes","@-webkit-keyframes"),a.raw(e)},{combineSelectors:!1})}}}},e.processors.css.plugins.media=function(){return function(a,b){var c=f(g+"/../CSS.js")();if("object"==typeof b){for(var d="@media "+b.media+" {\n",e={},h={},i=0;rule=b.rules[i];i++){var j,k;if(rule.selectors&&(j=e[rule.selectors.toString()]={},k=h[rule.selectors.toString()]={},"rule"===rule.type))for(var l=0;declaration=rule.declarations[l];l++)"declaration"===declaration.type&&(j[declaration.property]=declaration.value,k[declaration.property]=declaration.value)}d+=c({mainstream:e}),d+="}",a.jsonify?a.add(h,"@media "+b.media):a.raw(d)}}},e.processors.css.plugins.namespace=function(){return function(a,b){"string"==typeof b?a.raw('@namespace: "'+b+'";'):"object"==typeof b&&(b=b.namespace.replace(/: /g,"").replace(/'/g,"").replace(/"/g,"").replace(/ /g,"").replace(/:h/g,"h"),a.raw('@namespace: "'+b+'";'))}},e.processors.css.plugins.page=function(){return function(a,b){if("object"==typeof b){var c="";c+=b.selectors.length>0?"@page "+b.selectors.join(", ")+" {\n":"@page {\n";for(var d=0;declaration=b.declarations[d];d++)"declaration"==declaration.type&&(c+=" "+declaration.property+": "+declaration.value+";\n");c+="}",a.raw(c)}}},e.processors.css.plugins.supports=function(){return function(a,b){var c=f(g+"/../CSS.js")();if("object"==typeof b){for(var d="@supports "+b.supports+" {\n",e={},h=0;rule=b.rules[h];h++){var i=e[rule.selectors.toString()]={};if("rule"===rule.type)for(var j=0;declaration=rule.declarations[j];j++)"declaration"===declaration.type&&(i[declaration.property]=declaration.value)}d+=c({mainstream:e}),d+="}",a.raw(d)}}};var P=null,H="\n",I={},Q=f("js-beautify").html,R=f("../../helpers/TransformUppercase"),S={},T=function(a){var b="";for(var c in P)if(c==a)for(var d=P[c].length,e=0;d>e;e++)b+=V("",P[c][e]);return b},U=function(a,b){return b&&b.keepCamelCase===!0?a:R(a,b)},V=function(a,b){var c="",d="",e="",g=f("./helpers/PropAnalyzer")(a);if(a=g.tag,""!=g.attrs&&(d+=" "+g.attrs),"string"==typeof b||null===b)return W(a,d,b);var h=function(a){""!=e&&(e+=H),e+=a},i=function(a){var b=[];for(var c in a)b.push(c.replace(/^\$/,"")+":"+a[c]);b.length>0&&(/data-absurd-event/g.test(d)?d.replace(/data-absurd-event="(.*)"/,'data-absurd-event="$1,'+b.join(",")+'"'):d+=' data-absurd-event="'+b.join(",")+'"')};for(var j in b){var k=b[j];if(/^\$/.test(j))i(b);else switch(j){case"_attrs":for(var l in k)d+="function"==typeof k[l]?" "+U(l,S)+'="'+k[l]()+'"':" "+U(l,S)+'="'+k[l]+'"';break;case"_":h(k);break;case"_tpl":if("string"==typeof k)h(T(k));else if(k instanceof Array){for(var m="",n=0;tpl=k[n];n++)m+=T(tpl),n0){for(var m="",n=0;v=k[n];n++)m+=V("","function"==typeof v?v():v),n"+H+c+H+"":"<"+U(a,S)+b+"/>")},X=function(a){return a=f("./helpers/TemplateEngine")(a.replace(/[\r\t\n]/g,""),S),S.minify?a:Q(a,{indent_size:S.indentSize||4})};return e.processors.html.HTML=function(){var a=function(a,b,c){P=a,b=b||function(){},c=S=c||I;var d=X(T("mainstream"));return b(null,d),d};return a.type="html",a},e.processors.html.helpers.PropAnalyzer=function(a){var b={tag:"",attrs:""},d=(a.length,""),e=!1,f=[],g="",h=!1,i="",j=!1;if(/(#|\.|\[|\])/gi.test(a)===!1)return{tag:a,attrs:""};for(var k=0;k/g,f=/(^( )?(var|if|for|else|switch|case|break|{|}|;))(.*)?/g,g="with(obj) { var r=[];\n",h=0,i=function(a,b){return g+=b?a.match(f)?a+"\n":"r.push("+a+");\n":""!=a?'r.push("'+a.replace(/"/g,'\\"')+'");\n':"",i};d=e.exec(a);)i(a.slice(h,d.index))(d[1],!0),h=d.index+d[0].length;i(a.substr(h,a.length-h)),g=(g+'return r.join(""); }').replace(/[\r\t\n]/g," ");try{c=new Function("obj",g).apply(b,[b])}catch(j){console.error("'"+j.message+"'"," in \n\nCode:\n",g,"\n")}return c},z()}(window);