5 lines
110 KiB
JavaScript
5 lines
110 KiB
JavaScript
|
!function(){var t,e,r,n,i;!function(){function s(){}function o(t,e){if("."!==t.charAt(0))return t;for(var r=t.split("/"),n=e.split("/").slice(0,-1),i=0,s=r.length;s>i;i++){var o=r[i];if(".."===o)n.pop();else{if("."===o)continue;n.push(o)}}return n.join("/")}if(i=this.Ember=this.Ember||{},"undefined"==typeof i&&(i={}),"undefined"==typeof i.__loader){var a={},l={};t=function(t,e,r){a[t]={deps:e,callback:r}},n=r=e=function(t){var r=l[t];if(void 0!==r)return l[t];if(r===s)return void 0;if(l[t]={},!a[t])throw new Error("Could not find module "+t);for(var n,i=a[t],c=i.deps,u=i.callback,p=[],h=c.length,m=0;h>m;m++)p.push("exports"===c[m]?n={}:e(o(c[m],t)));var d=0===h?u.call(this):u.apply(this,p);return l[t]=n||(void 0===d?s:d)},n._eak_seen=a,i.__loader={define:t,require:r,registry:a}}else t=i.__loader.define,n=r=e=i.__loader.require}(),t("ember-metal/core",["exports"],function(t){"use strict";function e(){return this}"undefined"==typeof i&&(i={}),i.imports=i.imports||this,i.lookup=i.lookup||this;var r=i.exports=i.exports||this;r.Em=r.Ember=i,i.isNamespace=!0,i.toString=function(){return"Ember"},i.VERSION="1.10.0",i.ENV||(i.ENV="undefined"!=typeof EmberENV?EmberENV:"undefined"!=typeof ENV?ENV:{}),i.config=i.config||{},"undefined"==typeof i.ENV.DISABLE_RANGE_API&&(i.ENV.DISABLE_RANGE_API=!0),"undefined"==typeof MetamorphENV&&(r.MetamorphENV={}),MetamorphENV.DISABLE_RANGE_API=i.ENV.DISABLE_RANGE_API,i.FEATURES=i.ENV.FEATURES||{},i.FEATURES.isEnabled=function(t){var e=i.FEATURES[t];return i.ENV.ENABLE_ALL_FEATURES?!0:e===!0||e===!1||void 0===e?e:i.ENV.ENABLE_OPTIONAL_FEATURES?!0:!1},i.EXTEND_PROTOTYPES=i.ENV.EXTEND_PROTOTYPES,"undefined"==typeof i.EXTEND_PROTOTYPES&&(i.EXTEND_PROTOTYPES=!0),i.LOG_STACKTRACE_ON_DEPRECATION=i.ENV.LOG_STACKTRACE_ON_DEPRECATION!==!1,i.SHIM_ES5=i.ENV.SHIM_ES5===!1?!1:i.EXTEND_PROTOTYPES,i.LOG_VERSION=i.ENV.LOG_VERSION===!1?!1:!0,t.K=e,i.K=e,"undefined"==typeof i.assert&&(i.assert=e),"undefined"==typeof i.warn&&(i.warn=e),"undefined"==typeof i.debug&&(i.debug=e),"undefined"==typeof i.runInDebug&&(i.runInDebug=e),"undefined"==typeof i.deprecate&&(i.deprecate=e),"undefined"==typeof i.deprecateFunc&&(i.deprecateFunc=function(t,e){return e}),t["default"]=i}),t("ember-template-compiler",["ember-metal/core","ember-template-compiler/system/precompile","ember-template-compiler/system/compile","ember-template-compiler/system/template","ember-template-compiler/plugins","ember-template-compiler/plugins/transform-each-in-to-hash","ember-template-compiler/plugins/transform-with-as-to-hash","ember-template-compiler/compat","exports"],function(t,e,r,n,i,s,o,a,l){"use strict";var c=t["default"],u=e["default"],p=r["default"],h=n["default"],m=i.registerPlugin,d=s["default"],f=o["default"];m("ast",f),m("ast",d),l._Ember=c,l.precompile=u,l.compile=p,l.template=h,l.registerPlugin=m}),t("ember-template-compiler/compat",["ember-metal/core","ember-template-compiler/compat/precompile","ember-template-compiler/system/compile","ember-template-compiler/system/template"],function(t,e,r,n){"use strict";var i=t["default"],s=e["default"],o=r["default"],a=n["default"],l=i.Handlebars=i.Handlebars||{};l.precompile=s,l.compile=o,l.template=a}),t("ember-template-compiler/compat/precompile",["exports"],function(t){"use strict";var r,n;t["default"]=function(t){if((!r||!n)&&i.__loader.registry["htmlbars-compiler/compiler"]){var s=e("htmlbars-compiler/compiler");r=s.compile,n=s.compileSpec}if(!r||!n)throw new Error("Cannot call `precompile` without the template compiler loaded. Please load `ember-template-compiler.js` prior to calling `precompile`.");var o=void 0===arguments[1]?!0:arguments[1],a=o?r:n;return a(t)}}),t("ember-template-compiler/plugins",["exports"],function(t){"use strict";function e(t,e){if(!r[t])throw new Error('Attempting to register "'+e+'" as "'+t+'" which is not a valid HTMLBars plugin type.');r[t].push(e)}var r={ast:[]};t.registerPlugin=e,t["default"]=r}),t("ember-template-compiler/plugins/transform-each-in-to-hash",["exports"],function(t){"use strict";function e(){this.syntax=null}e.prototype.transform=function(t){var e
|
||
|
}var c=t["default"];e.SourceLocation=r,e.stripFlags=n,e.stripComment=i,e.preparePath=s,e.prepareMustache=o,e.prepareRawBlock=a,e.prepareBlock=l}),t("htmlbars-syntax/handlebars/compiler/parser",["exports"],function(t){"use strict";var e=function(){function t(){this.yy={}}var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,content:12,COMMENT:13,CONTENT:14,openRawBlock:15,END_RAW_BLOCK:16,OPEN_RAW_BLOCK:17,sexpr:18,CLOSE_RAW_BLOCK:19,openBlock:20,block_option0:21,closeBlock:22,openInverse:23,block_option1:24,OPEN_BLOCK:25,openBlock_option0:26,CLOSE:27,OPEN_INVERSE:28,openInverse_option0:29,openInverseChain:30,OPEN_INVERSE_CHAIN:31,openInverseChain_option0:32,inverseAndProgram:33,INVERSE:34,inverseChain:35,inverseChain_option0:36,OPEN_ENDBLOCK:37,path:38,OPEN:39,OPEN_UNESCAPED:40,CLOSE_UNESCAPED:41,OPEN_PARTIAL:42,helperName:43,sexpr_repetition0:44,sexpr_option0:45,dataName:46,param:47,STRING:48,NUMBER:49,BOOLEAN:50,OPEN_SEXPR:51,CLOSE_SEXPR:52,hash:53,hash_repetition_plus0:54,hashSegment:55,ID:56,EQUALS:57,blockParams:58,OPEN_BLOCK_PARAMS:59,blockParams_repetition_plus0:60,CLOSE_BLOCK_PARAMS:61,DATA:62,pathSegments:63,SEP:64,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",13:"COMMENT",14:"CONTENT",16:"END_RAW_BLOCK",17:"OPEN_RAW_BLOCK",19:"CLOSE_RAW_BLOCK",25:"OPEN_BLOCK",27:"CLOSE",28:"OPEN_INVERSE",31:"OPEN_INVERSE_CHAIN",34:"INVERSE",37:"OPEN_ENDBLOCK",39:"OPEN",40:"OPEN_UNESCAPED",41:"CLOSE_UNESCAPED",42:"OPEN_PARTIAL",48:"STRING",49:"NUMBER",50:"BOOLEAN",51:"OPEN_SEXPR",52:"CLOSE_SEXPR",56:"ID",57:"EQUALS",59:"OPEN_BLOCK_PARAMS",61:"CLOSE_BLOCK_PARAMS",62:"DATA",64:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[12,1],[10,3],[15,3],[9,4],[9,4],[20,4],[23,4],[30,4],[33,2],[35,3],[35,1],[22,3],[8,3],[8,3],[11,3],[18,3],[18,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,3],[53,1],[55,3],[58,3],[43,1],[43,1],[43,1],[46,2],[38,1],[63,3],[63,1],[6,0],[6,2],[21,0],[21,1],[24,0],[24,1],[26,0],[26,1],[29,0],[29,1],[32,0],[32,1],[36,0],[36,1],[44,0],[44,2],[45,0],[45,1],[54,1],[54,2],[60,1],[60,2]],performAction:function(t,e,r,n,i,s){var o=s.length-1;switch(i){case 1:return s[o-1];case 2:this.$=new n.Program(s[o],null,{},n.locInfo(this._$));break;case 3:this.$=s[o];break;case 4:this.$=s[o];break;case 5:this.$=s[o];break;case 6:this.$=s[o];break;case 7:this.$=s[o];break;case 8:this.$=new n.CommentStatement(n.stripComment(s[o]),n.stripFlags(s[o],s[o]),n.locInfo(this._$));break;case 9:this.$=new n.ContentStatement(s[o],n.locInfo(this._$));break;case 10:this.$=n.prepareRawBlock(s[o-2],s[o-1],s[o],this._$);break;case 11:this.$={sexpr:s[o-1]};break;case 12:this.$=n.prepareBlock(s[o-3],s[o-2],s[o-1],s[o],!1,this._$);break;case 13:this.$=n.prepareBlock(s[o-3],s[o-2],s[o-1],s[o],!0,this._$);break;case 14:this.$={sexpr:s[o-2],blockParams:s[o-1],strip:n.stripFlags(s[o-3],s[o])};break;case 15:this.$={sexpr:s[o-2],blockParams:s[o-1],strip:n.stripFlags(s[o-3],s[o])};break;case 16:this.$={sexpr:s[o-2],blockParams:s[o-1],strip:n.stripFlags(s[o-3],s[o])};break;case 17:this.$={strip:n.stripFlags(s[o-1],s[o-1]),program:s[o]};break;case 18:var a=n.prepareBlock(s[o-2],s[o-1],s[o],s[o],!1,this._$),l=new n.Program([a],null,{},n.locInfo(this._$));l.chained=!0,this.$={strip:s[o-2].strip,program:l,chain:!0};break;case 19:this.$=s[o];break;case 20:this.$={path:s[o-1],strip:n.stripFlags(s[o-2],s[o])};break;case 21:this.$=n.prepareMustache(s[o-1],s[o-2],n.stripFlags(s[o-2],s[o]),this._$);break;case 22:this.$=n.prepareMustache(s[o-1],s[o-2],n.stripFlags(s[o-2],s[o]),this._$);break;case 23:this.$=new n.PartialStatement(s[o-1],n.stripFlags(s[o-2],s[o]),n.locInfo(this._$));break;case 24:this.$=new n.SubExpression(s[o-2],s[o-1],s[o],n.locInfo(this._$));break;case 25:this.$=new n.SubExpression(s[o],null,null,n.locInfo(this._$));break;case 26:this.$=s[o];break;case 27:this.$=new n.StringLiteral(s[o],n.locInfo(this._$));break;case 28:this.$=new n.NumberLiteral(s[o],n.locInfo(this._$));break;case 29:this.$=new n.BooleanLiteral(s[o],n.locInfo(this._$))
|
||
|
if("object"==typeof t){if("MustacheStatement"!==t.type)throw new Error("Unsupported node in attribute value: "+t.type);e.push(t)}else e.length>0&&"TextNode"===e[e.length-1].type?e[e.length-1].chars+=t:e.push(h.text(t))},c.prototype.finalizeAttributeValue=function(){this.currentAttribute&&(this.currentAttribute.value=s(this.currentAttribute),delete this.currentAttribute.quoted,delete this.currentAttribute)},c.prototype.addTagHelper=function(t){var e=this.token.helpers=this.token.helpers||[];e.push(t)},i.unwrapMustache=l,i.Tokenizer=c}),t("htmlbars-syntax/utils",["./builders","../htmlbars-util/array-utils","exports"],function(t,e,r){"use strict";function n(t,e){for(var r=t.attributes.length,n=[],i=0;r>i;i++)n.push(t.attributes[i].name);var s=u(n,"as");if(-1!==s&&r>s&&"|"===n[s+1].charAt(0)){var o=n.slice(s).join(" ");if("|"!==o.charAt(o.length-1)||2!==o.match(/\|/g).length)throw new Error("Invalid block parameters syntax: '"+o+"'");var a=[];for(i=s+1;r>i;i++){var l=n[i].replace(/\|/g,"");if(""!==l){if(p.test(l))throw new Error("Invalid identifier for block parameters: '"+l+"' in '"+o+"'");a.push(l)}}if(0===a.length)throw new Error("Cannot use zero block parameters: '"+o+"'");t.attributes=t.attributes.slice(0,s),e.blockParams=a}}function i(t){var e=t.body;0!==e.length&&(o(e[0])&&e.unshift(c("")),o(e[e.length-1])&&e.push(c("")))}function s(t){return"Program"===t.type?t.body:"ElementNode"===t.type?t.children:void 0}function o(t){return"MustacheStatement"===t.type||"BlockStatement"===t.type||"ComponentNode"===t.type}function a(t,e){var r,n=s(t),i=n.length;i>0&&(r=n[i-1],o(r)&&o(e)&&n.push(c(""))),n.push(e)}function l(t){return t.params&&t.params.length>0||t.hash&&t.hash.pairs.length>0}var c=t.buildText,u=e.indexOfArray,p=/[!"#%-,\.\/;->@\[-\^`\{-~]/;r.parseComponentBlockParams=n,r.postprocessProgram=i,r.childrenFor=s,r.usesMorph=o,r.appendChild=a,r.isHelper=l}),t("htmlbars-syntax/walker",["exports"],function(t){"use strict";function e(t){this.order=t,this.stack=[]}t["default"]=e,e.prototype.visit=function(t,e){t&&(this.stack.push(t),"post"===this.order?(this.children(t,e),e(t,this)):(e(t,this),this.children(t,e)),this.stack.pop())};var r={Program:function(t,e,r){for(var n=0;n<e.body.length;n++)t.visit(e.body[n],r)},ElementNode:function(t,e,r){for(var n=0;n<e.children.length;n++)t.visit(e.children[n],r)},BlockStatement:function(t,e,r){t.visit(e.program,r),t.visit(e.inverse,r)},ComponentNode:function(t,e,r){t.visit(e.program,r)}};e.prototype.children=function(t,e){var n=r[t.type];n&&n(this,t,e)}}),t("htmlbars-test-helpers",["exports"],function(t){"use strict";function e(t,e){var r=n(t.innerHTML);QUnit.push(r===e,r,e)}function r(t,r){var n;if(!t.nodeType&&t.length)for(n=document.createDocumentFragment();t[0];)n.appendChild(t[0]);else n=t;var i=document.createElement("div");i.appendChild(n.cloneNode(!0)),e(i,r)}function n(t){return l&&(t=t.replace(/\r\n/gm,""),t=t.replace(/<\/?[A-Z\-]+/gi,function(t){return t.toLowerCase()}),t=t.replace(/id=([^ >]+)/gi,function(t,e){return'id="'+e+'"'}),t=t.replace(/<(\/?):([^ >]+)/gi,function(t,e,r){return"<"+e+r}),t=t.replace(/style="(.+?)"/gi,function(t,e){return'style="'+e.toLowerCase()+';"'})),c&&(t=t.replace(/ xmlns="[^"]+"/,""),t=t.replace(/<([^ >]+) [^\/>]*\/>/gi,function(t,e){return t.slice(0,t.length-3)+"></"+e+">"})),t}function i(t){equal(t.outerHTML,p)}function s(t){return 3===t.nodeType?t.nodeValue:t[h]}function o(t){if("function"==typeof Object.create)return Object.create(t);var e=function(){};return e.prototype=t,new e}t.equalInnerHTML=e,t.equalHTML=r;var a=document.createElement("div");a.setAttribute("id","womp");var l=a.outerHTML.indexOf("id=womp")>-1,c=function(){if(!document.createElementNS)return!1;var t=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");t.appendChild(e);var r=t.cloneNode(!0);return'<svg xmlns="http://www.w3.org/2000/svg" />'===r.innerHTML}();t.normalizeInnerHTML=n;var u=document.createElement("input");u.setAttribute("checked","checked");var p=u.outerHTML;t.isCheckedInputHTML=i;var h=void 0===document.createElement("di
|
||
|
}),t("simple-html-tokenizer/char-refs/min",["exports"],function(t){"use strict";t["default"]={quot:[34],amp:[38],apos:[39],lt:[60],gt:[62]}}),t("simple-html-tokenizer/entity-parser",["exports"],function(t){"use strict";function e(t){this.namedCodepoints=t}e.prototype.parse=function(t){var e=t.input.slice(t["char"]),r=e.match(/^#(?:x|X)([0-9A-Fa-f]+);/);if(r)return t["char"]+=r[0].length,String.fromCharCode(parseInt(r[1],16));if(r=e.match(/^#([0-9]+);/))return t["char"]+=r[0].length,String.fromCharCode(parseInt(r[1],10));if(r=e.match(/^([A-Za-z]+);/)){var n=this.namedCodepoints[r[1]];if(n){t["char"]+=r[0].length;for(var i=0,s="";i<n.length;i++)s+=String.fromCharCode(n[i]);return s}}},t["default"]=e}),t("simple-html-tokenizer/generate",["./generator","exports"],function(t,e){"use strict";var r=t["default"];e["default"]=function(t){var e=new r;return e.generate(t)}}),t("simple-html-tokenizer/generator",["exports"],function(t){"use strict";function e(){this.escape=r}var r=function(){function t(){return n["char"]}var e=/[&<>"'`]/,r=/[&<>"'`]/g,n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};return function(n){return e.test(n)?n.replace(r,t):n}}();e.prototype={generate:function(t){for(var e,r="",n=0;n<t.length;n++)e=t[n],r+=this[e.type](e);return r},escape:function(t){var e=this.unsafeCharsMap;return t.replace(this.unsafeChars,function(t){return e["char"]||t})},StartTag:function(t){var e="<";return e+=t.tagName,t.attributes.length&&(e+=" "+this.Attributes(t.attributes)),e+=">"},EndTag:function(t){return"</"+t.tagName+">"},Chars:function(t){return this.escape(t.chars)},Comment:function(t){return"<!--"+t.chars+"-->"},Attributes:function(t){for(var e,r=[],n=0,i=t.length;i>n;n++)e=t[n],r.push(this.Attribute(e[0],e[1]));return r.join(" ")},Attribute:function(t,e){var r=t;return e&&(e=this.escape(e),r+='="'+e+'"'),r}},t["default"]=e}),t("simple-html-tokenizer/tokenize",["./tokenizer","./entity-parser","./char-refs/full","exports"],function(t,e,r,n){"use strict";var i=t["default"],s=e["default"],o=r["default"];n["default"]=function(t){var e=new i(t,new s(o));return e.tokenize()}}),t("simple-html-tokenizer/tokenizer",["./utils","./tokens","exports"],function(t,e,r){"use strict";function n(t,e){this.input=i(t),this.entityParser=e,this["char"]=0,this.line=1,this.column=0,this.state="data",this.token=null}var i=t.preprocessInput,s=t.isAlpha,o=t.isSpace,a=e.StartTag,l=e.EndTag,c=e.Chars,u=e.Comment;n.prototype={tokenize:function(){for(var t,e=[];;){if(t=this.lex(),"EOF"===t)break;t&&e.push(t)}return this.token&&e.push(this.token),e},tokenizePart:function(t){this.input+=i(t);for(var e,r=[];this["char"]<this.input.length;)e=this.lex(),e&&r.push(e);return this.tokens=(this.tokens||[]).concat(r),r},tokenizeEOF:function(){var t=this.token;return t?(this.token=null,t):void 0},createTag:function(t,e){var r=this.token;return this.token=new t(e),this.state="tagName",r},addToTagName:function(t){this.token.tagName+=t},selfClosing:function(){this.token.selfClosing=!0},createAttribute:function(t){this._currentAttribute=[t.toLowerCase(),"",null],this.token.attributes.push(this._currentAttribute),this.state="attributeName"},addToAttributeName:function(t){this._currentAttribute[0]+=t},markAttributeQuoted:function(t){this._currentAttribute[2]=t},finalizeAttributeValue:function(){this._currentAttribute&&(null===this._currentAttribute[2]&&(this._currentAttribute[2]=!1),this._currentAttribute=void 0)},addToAttributeValue:function(t){this._currentAttribute[1]=this._currentAttribute[1]||"",this._currentAttribute[1]+=t},createComment:function(){var t=this.token;return this.token=new u,this.state="commentStart",t},addToComment:function(t){this.addChar(t)},addChar:function(t){this.token.chars+=t},finalizeToken:function(){return"StartTag"===this.token.type&&this.finalizeAttributeValue(),this.token},emitData:function(){this.addLocInfo(this.line,this.column-1);var t=this.token;return this.token=null,this.state="tagOpen",t},emitToken:function(){this.addLocInfo();var t=this.finalizeToken();return this.token=null,this.state="data",t},addData:f
|