closure 1.4.3 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +12 -12
- data/closure-compiler/README.md +503 -0
- data/closure-compiler/compiler.jar +0 -0
- data/closure-templates/SoyToJsSrcCompiler.jar +0 -0
- data/closure-templates/soyutils.js +1593 -469
- data/closure-templates/soyutils_usegoog.js +1105 -223
- data/docs/SCRIPT.md +5 -5
- data/docs/closure/Closure/BeanShell.html +63 -54
- data/docs/closure/Closure/Compiler/Compilation.html +124 -107
- data/docs/closure/Closure/Compiler/Error.html +28 -21
- data/docs/closure/Closure/Compiler.html +81 -76
- data/docs/closure/Closure/FileResponse.html +113 -98
- data/docs/closure/Closure/Goog.html +264 -253
- data/docs/closure/Closure/Middleware.html +66 -55
- data/docs/closure/Closure/Script/NotFound.html +28 -21
- data/docs/closure/Closure/Script/RenderStackOverflow.html +28 -21
- data/docs/closure/Closure/Script.html +212 -203
- data/docs/closure/Closure/Server.html +100 -90
- data/docs/closure/Closure/ShowExceptions.html +63 -52
- data/docs/closure/Closure/Sources.html +254 -246
- data/docs/closure/Closure/Templates/Error.html +28 -21
- data/docs/closure/Closure/Templates.html +88 -80
- data/docs/closure/Closure.html +181 -163
- data/docs/closure/_index.html +42 -38
- data/docs/closure/class_list.html +19 -8
- data/docs/closure/css/full_list.css +4 -2
- data/docs/closure/css/style.css +68 -51
- data/docs/closure/file.LICENSE.html +24 -217
- data/docs/closure/file.README.html +54 -47
- data/docs/closure/file_list.html +20 -9
- data/docs/closure/frames.html +18 -5
- data/docs/closure/index.html +54 -47
- data/docs/closure/js/app.js +60 -46
- data/docs/closure/js/full_list.js +24 -10
- data/docs/closure/js/jquery.js +4 -16
- data/docs/closure/method_list.html +74 -175
- data/docs/closure/top-level-namespace.html +29 -20
- data/lib/closure/compiler.rb +32 -42
- data/lib/closure/goog.rb +12 -12
- data/lib/closure/server.rb +6 -6
- data/lib/closure/show_exceptions.rb +15 -12
- data/lib/closure/version.rb +1 -1
- data/scripts/git.erb +183 -0
- data/scripts/hello/compiler.js.erb +2 -2
- data/scripts/hello/hello.js +1 -1
- data/scripts/hello/index.erb +6 -0
- data/scripts/hello/legume.js +12 -7
- data/scripts/index.erb +15 -13
- data/scripts/modules/compiler.js.erb +3 -3
- data/scripts/modules/compiler_build.js +3 -3
- data/scripts/modules/compiler_build.map +13 -12159
- data/scripts/modules/compiler_build_api.js +1 -1
- data/scripts/modules/compiler_build_app.js +74 -71
- data/scripts/modules/compiler_build_settings.js +2 -2
- data/scripts/modules/index.erb +5 -3
- data/scripts/modules/settings.js +1 -1
- data/scripts/svn.erb +11 -11
- data/scripts/welcome.erb +7 -6
- metadata +65 -81
- data/closure-compiler/README +0 -292
- data/scripts/hello/compiler_build.js +0 -5
- data/scripts/hello/compiler_build.map +0 -748
- data/scripts/hello/compiler_debug.js +0 -119
- data/scripts/modules/compiler_debug.js +0 -6
- data/scripts/modules/compiler_debug_api.js +0 -11
- data/scripts/modules/compiler_debug_app.js +0 -2414
- data/scripts/modules/compiler_debug_settings.js +0 -39
- data/scripts/rails/index.erb +0 -46
- data/scripts/rails/rails_ujs.js +0 -96
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
qa("example.api.setMessage",function(a){var b=cc;ob(b.h,"span",b.F())[0].innerHTML=ua(a)});ee(U.O(),"api");
|
@@ -1,75 +1,78 @@
|
|
1
|
-
|
2
|
-
function
|
3
|
-
|
4
|
-
|
5
|
-
function
|
6
|
-
|
7
|
-
function
|
8
|
-
|
9
|
-
|
10
|
-
function
|
11
|
-
|
12
|
-
|
13
|
-
function
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
function
|
22
|
-
|
23
|
-
function
|
24
|
-
function Tb(a,b
|
25
|
-
function
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
function
|
34
|
-
|
35
|
-
|
36
|
-
function
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
function
|
42
|
-
function
|
43
|
-
function
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
function
|
48
|
-
|
49
|
-
function
|
50
|
-
function
|
51
|
-
function
|
52
|
-
|
53
|
-
|
54
|
-
function
|
55
|
-
n.Ub=function(a,b,c,d){var e=a.Ia().join("\n");this.L.info("Code loaded for module(s): "+b);var f=!0;try{var h;if(this.Xa){var j=this.Xa,m=e.length-j.length;h=m>=0&&e.indexOf(j,m)==m}else h=1;if(h)if(q.execScript)q.execScript(e,"JavaScript");else if(q.eval)if(pa==k&&(q.eval("var _et_ = 1;"),typeof q._et_!="undefined"?(delete q._et_,pa=!0):pa=!1),pa)q.eval(e);else{var o=q.document,u=o.createElement("script");u.type="text/javascript";u.defer=!1;u.appendChild(o.createTextNode(e));o.body.appendChild(u);
|
56
|
-
o.body.removeChild(u)}else g(Error("goog.globalEval not available"));else f=!1}catch(p){f=!1,this.L.log(yc,"Loaded incomplete code for module(s): "+b,p)}(e=f)?e&&c&&c():(this.L.log(yc,"Request failed for module(s): "+b,i),d&&d(k));Jc(a.l,a)};n.handleError=function(a,b,c,d){this.L.log(yc,"Request failed for module(s): "+b,i);c&&c(d);Jc(a.l,a)};n.c=function(){gd.g.c.call(this);this.A.l();this.A=k};/*
|
1
|
+
var k,aa=aa||{},l=this;function ba(){}function ca(a){a.O=function(){return a.ja?a.ja:a.ja=new a}}
|
2
|
+
function da(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
|
3
|
+
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ha(a){return"array"==da(a)}function ia(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function n(a){return"string"==typeof a}function p(a){return"function"==da(a)}function ja(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var q="closure_uid_"+(1E9*Math.random()>>>0),ka=0;function la(a,b,c){return a.call.apply(a.bind,arguments)}
|
4
|
+
function ma(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function r(a,b,c){r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return r.apply(null,arguments)}
|
5
|
+
function na(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}var oa=Date.now||function(){return+new Date},pa=null;function qa(a,b){var c=a.split("."),d=l;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]?d=d[e]:d=d[e]={}:d[e]=b}
|
6
|
+
function t(a,b){function c(){}c.prototype=b.prototype;a.s=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.wa=function(a,c,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[c].apply(a,g)}};function u(a){if(Error.captureStackTrace)Error.captureStackTrace(this,u);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}t(u,Error);u.prototype.name="CustomError";var ra;function sa(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}var ta=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};
|
7
|
+
function ua(a){if(!va.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(wa,"&"));-1!=a.indexOf("<")&&(a=a.replace(xa,"<"));-1!=a.indexOf(">")&&(a=a.replace(ya,">"));-1!=a.indexOf('"')&&(a=a.replace(za,"""));-1!=a.indexOf("'")&&(a=a.replace(Aa,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(Ba,"�"));return a}var wa=/&/g,xa=/</g,ya=/>/g,za=/"/g,Aa=/'/g,Ba=/\x00/g,va=/[\x00&<>"']/;function Ca(a,b){return a<b?-1:a>b?1:0};function Da(a,b){b.unshift(a);u.call(this,sa.apply(null,b));b.shift()}t(Da,u);Da.prototype.name="AssertionError";function Ea(a,b){throw new Da("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var v=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(n(a))return n(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Fa=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=n(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ga=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,
|
8
|
+
b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=n(a)?a.split(""):a,h=0;h<d;h++)if(h in g){var m=g[h];b.call(c,m,h,a)&&(e[f++]=m)}return e},Ha=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=n(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ia=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=n(a)?a.split(""):a,f=0;f<d;f++)if(f in
|
9
|
+
e&&b.call(c,e[f],f,a))return!0;return!1};function Ja(a){var b=Ka;a:{for(var c=a.length,d=n(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:n(a)?a.charAt(b):a[b]}function La(a,b){0<=v(a,b)||a.push(b)}function w(a,b){var c=v(a,b),d;(d=0<=c)&&Array.prototype.splice.call(a,c,1);return d}function Ma(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}
|
10
|
+
function Na(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ia(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}}function Oa(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++],f;f=e;f=ja(f)?"o"+(f[q]||(f[q]=++ka)):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};var x;a:{var Pa=l.navigator;if(Pa){var Qa=Pa.userAgent;if(Qa){x=Qa;break a}}x=""}function y(a){return-1!=x.indexOf(a)};function Ra(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Sa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ta(a){return null!==a&&"withCredentials"in a}function Ua(a,b){return null!==a&&b in a?a[b]:void 0}var Va="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
|
11
|
+
function Wa(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Va.length;f++)c=Va[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Xa=y("Opera")||y("OPR"),z=y("Trident")||y("MSIE"),Ya=y("Edge"),A=y("Gecko")&&!(-1!=x.toLowerCase().indexOf("webkit")&&!y("Edge"))&&!(y("Trident")||y("MSIE"))&&!y("Edge"),Za=-1!=x.toLowerCase().indexOf("webkit")&&!y("Edge");function $a(){var a=l.document;return a?a.documentMode:void 0}var ab;
|
12
|
+
a:{var bb="",cb=function(){var a=x;if(A)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Ya)return/Edge\/([\d\.]+)/.exec(a);if(z)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Za)return/WebKit\/(\S+)/.exec(a);if(Xa)return/(?:Version)[ \/]?(\S+)/.exec(a)}();cb&&(bb=cb?cb[1]:"");if(z){var db=$a();if(null!=db&&db>parseFloat(bb)){ab=String(db);break a}}ab=bb}var eb={};
|
13
|
+
function B(a){var b;if(!(b=eb[a])){b=0;for(var c=ta(String(ab)).split("."),d=ta(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",h=d[f]||"",m=RegExp("(\\d*)(\\D*)","g"),ea=RegExp("(\\d*)(\\D*)","g");do{var fa=m.exec(g)||["","",""],ga=ea.exec(h)||["","",""];if(0==fa[0].length&&0==ga[0].length)break;b=Ca(0==fa[1].length?0:parseInt(fa[1],10),0==ga[1].length?0:parseInt(ga[1],10))||Ca(0==fa[2].length,0==ga[2].length)||Ca(fa[2],ga[2])}while(0==b)}b=eb[a]=0<=b}return b}
|
14
|
+
var fb=l.document,gb=fb&&z?$a()||("CSS1Compat"==fb.compatMode?parseInt(ab,10):5):void 0;var hb=!z||9<=Number(gb);!A&&!z||z&&9<=Number(gb)||A&&B("1.9.1");z&&B("9");function ib(a,b){Ra(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:jb.hasOwnProperty(d)?a.setAttribute(jb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var jb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
|
15
|
+
function kb(a,b,c){function d(c){c&&b.appendChild(n(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];!ia(f)||ja(f)&&0<f.nodeType?d(f):Fa(lb(f)?Ma(f):f,d)}}function mb(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function lb(a){if(a&&"number"==typeof a.length){if(ja(a))return"function"==typeof a.item||"string"==typeof a.item;if(p(a))return"function"==typeof a.item}return!1}function nb(a){this.a=a||l.document||document}
|
16
|
+
nb.prototype.F=function(a){return n(a)?this.a.getElementById(a):a};function ob(a,b,c){a=c||a.a;b=b&&"*"!=b?b.toUpperCase():"";a.querySelectorAll&&a.querySelector&&b?b=a.querySelectorAll(b+""):b=a.getElementsByTagName(b||"*");return b}
|
17
|
+
nb.prototype.b=function(a,b,c){var d=this.a,e=arguments,f=e[0],g=e[1];if(!hb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ua(g.name),'"');if(g.type){f.push(' type="',ua(g.type),'"');var h={};Wa(h,g);delete h.type;g=h}f.push(">");f=f.join("")}f=d.createElement(f);g&&(n(g)?f.className=g:ha(g)?f.className=g.join(" "):ib(f,g));2<e.length&&kb(d,f,e);return f};
|
18
|
+
nb.prototype.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};function C(){0!=pb&&(qb[this[q]||(this[q]=++ka)]=this);this.m=this.m;this.A=this.A}var pb=0,qb={};C.prototype.m=!1;C.prototype.w=function(){if(!this.m&&(this.m=!0,this.j(),0!=pb)){var a=this[q]||(this[q]=++ka);delete qb[a]}};C.prototype.j=function(){if(this.A)for(;this.A.length;)this.A.shift()()};function rb(a){a&&"function"==typeof a.w&&a.w()}function sb(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ia(d)?sb.apply(null,d):rb(d)}};var tb=!z||9<=Number(gb),ub=z&&!B("9");!Za||B("528");A&&B("1.9b")||z&&B("8")||Xa&&B("9.5")||Za&&B("528");A&&!B("8")||z&&B("9");function vb(a){this.id=a}vb.prototype.toString=function(){return this.id};function D(a,b){this.type=a instanceof vb?String(a):a;this.a=this.target=b;this.ka=!0}D.prototype.b=function(){this.ka=!1};function wb(a){wb[" "](a);return a}wb[" "]=ba;function xb(a,b){D.call(this,a?a.type:"");this.a=this.target=null;this.clientY=this.clientX=0;this.c=this.state=null;if(a){this.type=a.type;var c=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.a=b;var d=a.relatedTarget;if(d&&A)try{wb(d.nodeName)}catch(e){}null===c?(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY):(this.clientX=void 0!==c.clientX?c.clientX:c.pageX,this.clientY=void 0!==c.clientY?c.clientY:c.pageY);
|
19
|
+
this.state=a.state;this.c=a;a.defaultPrevented&&this.b()}}t(xb,D);xb.prototype.b=function(){xb.s.b.call(this);var a=this.c;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,ub)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var yb="closure_listenable_"+(1E6*Math.random()|0),zb=0;function Ab(a,b,c,d,e){this.listener=a;this.a=null;this.src=b;this.type=c;this.W=!!d;this.Z=e;this.ha=++zb;this.M=this.V=!1}function Bb(a){a.M=!0;a.listener=null;a.a=null;a.src=null;a.Z=null};function Cb(a){this.src=a;this.a={};this.b=0}function Db(a,b,c,d,e){var f=b.toString();b=a.a[f];b||(b=a.a[f]=[],a.b++);var g=Eb(b,c,d,e);-1<g?(a=b[g],a.V=!1):(a=new Ab(c,a.src,f,!!d,e),a.V=!1,b.push(a));return a}function Fb(a,b){var c=b.type;c in a.a&&w(a.a[c],b)&&(Bb(b),0==a.a[c].length&&(delete a.a[c],a.b--))}function Gb(a,b,c,d,e){a=a.a[b.toString()];b=-1;a&&(b=Eb(a,c,d,e));return-1<b?a[b]:null}
|
20
|
+
function Eb(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.M&&f.listener==b&&f.W==!!c&&f.Z==d)return e}return-1};var Hb="closure_lm_"+(1E6*Math.random()|0),Ib={},Jb=0;
|
21
|
+
function Kb(a,b,c,d,e){if(ha(b)){for(var f=0;f<b.length;f++)Kb(a,b[f],c,d,e);return null}c=Lb(c);if(a&&a[yb])a=a.L(b,c,d,e);else{if(!b)throw Error("Invalid event type");var f=!!d,g=Mb(a);g||(a[Hb]=g=new Cb(a));c=Db(g,b,c,d,e);if(!c.a){d=Nb();c.a=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,f);else if(a.attachEvent)a.attachEvent(Ob(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Jb++}a=c}return a}
|
22
|
+
function Nb(){var a=Pb,b=tb?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b}function Qb(a,b,c,d,e){if(ha(b))for(var f=0;f<b.length;f++)Qb(a,b[f],c,d,e);else c=Lb(c),a&&a[yb]?a.da(b,c,d,e):a&&(a=Mb(a))&&(b=Gb(a,b,c,!!d,e))&&Rb(b)}
|
23
|
+
function Rb(a){if("number"!=typeof a&&a&&!a.M){var b=a.src;if(b&&b[yb])Fb(b.D,a);else{var c=a.type,d=a.a;b.removeEventListener?b.removeEventListener(c,d,a.W):b.detachEvent&&b.detachEvent(Ob(c),d);Jb--;(c=Mb(b))?(Fb(c,a),0==c.b&&(c.src=null,b[Hb]=null)):Bb(a)}}}function Ob(a){return a in Ib?Ib[a]:Ib[a]="on"+a}function Sb(a,b,c,d){var e=!0;if(a=Mb(a))if(b=a.a[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.W==c&&!f.M&&(f=Tb(f,d),e=e&&!1!==f)}return e}
|
24
|
+
function Tb(a,b){var c=a.listener,d=a.Z||a.src;a.V&&Rb(a);return c.call(d,b)}
|
25
|
+
function Pb(a,b){if(a.M)return!0;if(!tb){var c;if(!(c=b))a:{c=["window","event"];for(var d=l,e;e=c.shift();)if(null!=d[e])d=d[e];else{c=null;break a}c=d}e=c;c=new xb(e,this);d=!0;if(!(0>e.keyCode||void 0!=e.returnValue)){a:{var f=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(m){f=!0}if(f||void 0==e.returnValue)e.returnValue=!0}e=[];for(f=c.a;f;f=f.parentNode)e.push(f);for(var f=a.type,g=e.length-1;0<=g;g--){c.a=e[g];var h=Sb(e[g],f,!0,c),d=d&&h}for(g=0;g<e.length;g++)c.a=e[g],h=Sb(e[g],f,!1,c),
|
26
|
+
d=d&&h}return d}return Tb(a,new xb(b,this))}function Mb(a){a=a[Hb];return a instanceof Cb?a:null}var Ub="__closure_events_fn_"+(1E9*Math.random()>>>0);function Lb(a){if(p(a))return a;a[Ub]||(a[Ub]=function(b){return a.handleEvent(b)});return a[Ub]};function E(a){C.call(this);this.b=a;this.a={}}t(E,C);var Vb=[];E.prototype.L=function(a,b,c,d){ha(b)||(b&&(Vb[0]=b.toString()),b=Vb);for(var e=0;e<b.length;e++){var f=Kb(a,b[e],c||this.handleEvent,d||!1,this.b||this);if(!f)break;this.a[f.ha]=f}return this};
|
27
|
+
E.prototype.da=function(a,b,c,d,e){if(ha(b))for(var f=0;f<b.length;f++)this.da(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.b||this,c=Lb(c),d=!!d,b=a&&a[yb]?Gb(a.D,String(b),c,d,e):a?(a=Mb(a))?Gb(a,b,c,d,e):null:null,b&&(Rb(b),delete this.a[b.ha]);return this};function Wb(a){Ra(a.a,function(a,c){this.a.hasOwnProperty(c)&&Rb(a)},a);a.a={}}E.prototype.j=function(){E.s.j.call(this);Wb(this)};E.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function F(){C.call(this);this.D=new Cb(this);this.la=this;this.u=null}t(F,C);F.prototype[yb]=!0;k=F.prototype;k.ca=function(a){this.u=a};k.removeEventListener=function(a,b,c,d){Qb(this,a,b,c,d)};
|
28
|
+
function G(a,b){var c,d=a.u;if(d)for(c=[];d;d=d.u)c.push(d);var d=a.la,e=b,f=e.type||e;if(n(e))e=new D(e,d);else if(e instanceof D)e.target=e.target||d;else{var g=e,e=new D(f,d);Wa(e,g)}var g=!0,h;if(c)for(var m=c.length-1;0<=m;m--)h=e.a=c[m],g=Xb(h,f,!0,e)&&g;h=e.a=d;g=Xb(h,f,!0,e)&&g;g=Xb(h,f,!1,e)&&g;if(c)for(m=0;m<c.length;m++)h=e.a=c[m],g=Xb(h,f,!1,e)&&g}
|
29
|
+
k.j=function(){F.s.j.call(this);if(this.D){var a=this.D,b=0,c;for(c in a.a){for(var d=a.a[c],e=0;e<d.length;e++)++b,Bb(d[e]);delete a.a[c];a.b--}}this.u=null};k.L=function(a,b,c,d){return Db(this.D,String(a),b,c,d)};k.da=function(a,b,c,d){var e;e=this.D;a=String(a).toString();if(a in e.a){var f=e.a[a];b=Eb(f,b,c,d);-1<b?(Bb(f[b]),Array.prototype.splice.call(f,b,1),0==f.length&&(delete e.a[a],e.b--),e=!0):e=!1}else e=!1;return e};
|
30
|
+
function Xb(a,b,c,d){b=a.D.a[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.M&&g.W==c){var h=g.listener,m=g.Z||g.src;g.V&&Fb(a.D,g);e=!1!==h.call(m,d)&&e}}return e&&0!=d.ka};function Yb(){}ca(Yb);Yb.prototype.a=0;function H(a){F.call(this);a||(a=ra||(ra=new nb));this.h=a;this.i=null;this.B=!1;this.a=null;this.g=void 0;this.f=this.b=this.c=null}t(H,F);k=H.prototype;k.sa=Yb.O();k.Y=function(){return this.i||(this.i=":"+(this.sa.a++).toString(36))};k.F=function(){return this.a};function Zb(a,b){if(a==b)throw Error("Unable to set parent component");var c;if(c=b&&a.c&&a.i){c=a.c;var d=a.i;c=c.f&&d?Ua(c.f,d)||null:null}if(c&&a.c!=b)throw Error("Unable to set parent component");a.c=b;H.s.ca.call(a,b)}
|
31
|
+
k.ca=function(a){if(this.c&&this.c!=a)throw Error("Method not supported");H.s.ca.call(this,a)};k.R=function(){this.a=this.h.a.createElement("DIV")};function $b(a,b,c){if(a.B)throw Error("Component already rendered");a.a||a.R();b?b.insertBefore(a.a,c||null):a.h.a.body.appendChild(a.a);a.c&&!a.c.B||a.X()}k.X=function(){this.B=!0;ac(this,function(a){!a.B&&a.F()&&a.X()})};function bc(a){ac(a,function(a){a.B&&bc(a)});a.g&&Wb(a.g);a.B=!1}
|
32
|
+
k.j=function(){this.B&&bc(this);this.g&&(this.g.w(),delete this.g);ac(this,function(a){a.w()});this.a&&mb(this.a);this.c=this.a=this.f=this.b=null;H.s.j.call(this)};function ac(a,b){a.b&&Fa(a.b,b,void 0)}k.removeChild=function(a,b){if(a){var c=n(a)?a:a.Y();a=this.f&&c?Ua(this.f,c)||null:null;if(c&&a){var d=this.f;c in d&&delete d[c];w(this.b,a);b&&(bc(a),a.a&&mb(a.a));Zb(a,null)}}if(!a)throw Error("Child is not in parent component");return a};function I(a){H.call(this,a)}var cc;t(I,H);var dc=ba;I.prototype.R=function(){var a=this.h;this.a=a.b("div",void 0,a.b("span",void 0,"Messages appear here"),a.b("button",void 0,"Load Settings"))};I.prototype.X=function(){I.s.X.call(this);var a=ob(this.h,"button",this.F())[0];this.g||(this.g=new E(this));this.g.L(a,"click",this.l)};I.prototype.l=function(a){dc.call(this,a)};I.prototype.va=function(){};function ec(a){if(!cc){var b=new nb,c=new I(b);$b(c,b.F(a));cc=c}}qa("example.App.install",ec);function fc(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function gc(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function hc(a,b){this.c=a;this.f=b;this.b=0;this.a=null}function ic(a){var b;0<a.b?(a.b--,b=a.a,a.a=b.next,b.next=null):b=a.c();return b}function jc(a,b){a.f(b);100>a.b&&(a.b++,b.next=a.a,a.a=b)};var lc=new hc(function(){return new kc},function(a){a.reset()});function mc(){var a=nc,b=null;a.a&&(b=a.a,a.a=a.a.next,a.a||(a.b=null),b.next=null);return b}function kc(){this.next=this.b=this.a=null}kc.prototype.reset=function(){this.next=this.b=this.a=null};function oc(a){return function(){throw Error(a);}};function pc(a){l.setTimeout(function(){throw a;},0)}var qc;
|
33
|
+
function rc(){var a=l.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!y("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=r(function(a){if(("*"==d||a.origin==d)&&a.data==
|
34
|
+
c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!y("Trident")&&!y("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var a=c.ga;c.ga=null;a()}};return function(a){d.next={ga:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(a){var b=document.createElement("SCRIPT");
|
35
|
+
b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){l.setTimeout(a,0)}};function sc(a,b){tc||uc();vc||(tc(),vc=!0);var c=nc,d=ic(lc);d.a=a;d.b=b;d.next=null;c.b?c.b.next=d:c.a=d;c.b=d}var tc;function uc(){if(l.Promise&&l.Promise.resolve){var a=l.Promise.resolve(void 0);tc=function(){a.then(wc)}}else tc=function(){var a=wc;!p(l.setImmediate)||l.Window&&l.Window.prototype&&!y("Edge")&&l.Window.prototype.setImmediate==l.setImmediate?(qc||(qc=rc()),qc(a)):l.setImmediate(a)}}var vc=!1,nc=new function(){this.b=this.a=null};
|
36
|
+
function wc(){for(var a=null;a=mc();){try{a.a.call(a.b)}catch(b){pc(b)}jc(lc,a)}vc=!1};function J(a,b){this.a=xc;this.h=void 0;this.c=this.b=this.f=null;this.g=this.m=!1;if(a!=ba)try{var c=this;a.call(b,function(a){yc(c,zc,a)},function(a){try{if(a instanceof Error)throw a;throw Error("Promise rejected.");}catch(b){}yc(c,K,a)})}catch(d){yc(this,K,d)}}var xc=0,zc=2,K=3;function Ac(){this.next=this.c=this.b=this.f=this.a=null;this.g=!1}Ac.prototype.reset=function(){this.c=this.b=this.f=this.a=null;this.g=!1};var Bc=new hc(function(){return new Ac},function(a){a.reset()});
|
37
|
+
function Cc(a,b,c){var d=ic(Bc);d.f=a;d.b=b;d.c=c;return d}J.prototype.then=function(a,b,c){return Dc(this,p(a)?a:null,p(b)?b:null,c)};fc(J);function Ec(a,b){a.b||a.a!=zc&&a.a!=K||Fc(a);a.c?a.c.next=b:a.b=b;a.c=b}function Dc(a,b,c,d){var e=Cc(null,null,null);e.a=new J(function(a,g){e.f=b?function(c){try{var e=b.call(d,c);a(e)}catch(ea){g(ea)}}:a;e.b=c?function(b){try{var e=c.call(d,b);a(e)}catch(ea){g(ea)}}:g});e.a.f=a;Ec(a,e);return e.a}J.prototype.l=function(a){this.a=xc;yc(this,zc,a)};
|
38
|
+
J.prototype.A=function(a){this.a=xc;yc(this,K,a)};function yc(a,b,c){if(a.a==xc){a==c&&(b=K,c=new TypeError("Promise cannot resolve to itself"));a.a=1;var d;a:{var e=c,f=a.l,g=a.A;if(e instanceof J)Ec(e,Cc(f||ba,g||null,a)),d=!0;else if(gc(e))e.then(f,g,a),d=!0;else{if(ja(e))try{var h=e.then;if(p(h)){Gc(e,h,f,g,a);d=!0;break a}}catch(m){g.call(a,m);d=!0;break a}d=!1}}d||(a.h=c,a.a=b,a.f=null,Fc(a),b!=K||Hc(a,c))}}
|
39
|
+
function Gc(a,b,c,d,e){function f(a){h||(h=!0,d.call(e,a))}function g(a){h||(h=!0,c.call(e,a))}var h=!1;try{b.call(a,g,f)}catch(m){f(m)}}function Fc(a){a.m||(a.m=!0,sc(a.i,a))}function Ic(a){var b=null;a.b&&(b=a.b,a.b=b.next,b.next=null);a.b||(a.c=null);return b}
|
40
|
+
J.prototype.i=function(){for(var a=null;a=Ic(this);){var b=this.a,c=this.h;if(b==K&&a.b&&!a.g)for(var d=void 0,d=this;d&&d.g;d=d.f)d.g=!1;if(a.a)a.a.f=null,Jc(a,b,c);else try{a.g?a.f.call(a.c):Jc(a,b,c)}catch(e){Kc.call(null,e)}jc(Bc,a)}this.m=!1};function Jc(a,b,c){b==zc?a.f.call(a.c,c):a.b&&a.b.call(a.c,c)}function Hc(a,b){a.g=!0;sc(function(){a.g&&Kc.call(null,b)})}var Kc=pc;function Lc(a,b,c){if(p(a))c&&(a=r(a,c));else if(a&&"function"==typeof a.handleEvent)a=r(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:l.setTimeout(a,b||0)};var Mc="StopIteration"in l?l.StopIteration:{message:"StopIteration",stack:""};function Nc(){}Nc.prototype.next=function(){throw Mc;};Nc.prototype.aa=function(){return this};function Oc(a){if(a instanceof Nc)return a;if("function"==typeof a.aa)return a.aa(!1);if(ia(a)){var b=0,c=new Nc;c.next=function(){for(;;){if(b>=a.length)throw Mc;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
|
41
|
+
function Pc(a,b){if(ia(a))try{Fa(a,b,void 0)}catch(c){if(c!==Mc)throw c;}else{a=Oc(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Mc)throw c;}}};function L(a,b){this.b={};this.a=[];this.f=this.c=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)Qc(this,arguments[d],arguments[d+1])}else if(a){if(a instanceof L)d=a.P(),c=a.pa();else{var c=[],e=0;for(d in a)c[e++]=d;d=c;c=Sa(a)}for(e=0;e<d.length;e++)Qc(this,d[e],c[e])}}k=L.prototype;k.pa=function(){Rc(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};k.P=function(){Rc(this);return this.a.concat()};
|
42
|
+
k.clear=function(){this.b={};this.f=this.c=this.a.length=0};function Rc(a){if(a.c!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Object.prototype.hasOwnProperty.call(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.c!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Object.prototype.hasOwnProperty.call(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function Sc(a,b){return Object.prototype.hasOwnProperty.call(a.b,b)?a.b[b]:void 0}
|
43
|
+
function Qc(a,b,c){Object.prototype.hasOwnProperty.call(a.b,b)||(a.c++,a.a.push(b),a.f++);a.b[b]=c}k.forEach=function(a,b){for(var c=this.P(),d=0;d<c.length;d++){var e=c[d];a.call(b,Sc(this,e),e,this)}};k.clone=function(){return new L(this)};k.aa=function(a){Rc(this);var b=0,c=this.f,d=this,e=new Nc;e.next=function(){if(c!=d.f)throw Error("The map has changed since the iterator was created");if(b>=d.a.length)throw Mc;var e=d.a[b++];return a?e:d.b[e]};return e};function Tc(a,b,c,d,e){this.reset(a,b,c,d,e)}Tc.prototype.a=null;var Uc=0;Tc.prototype.reset=function(a,b,c,d,e){"number"==typeof e||Uc++;d||oa();this.b=b;delete this.a};function Vc(a){this.f=a;this.b=this.c=this.a=null}function M(a,b){this.name=a;this.value=b}M.prototype.toString=function(){return this.name};var Wc=new M("SEVERE",1E3),Xc=new M("WARNING",900),Yc=new M("INFO",800),Zc=new M("CONFIG",700),$c=new M("FINE",500);function ad(a){if(a.c)return a.c;if(a.a)return ad(a.a);Ea("Root logger has no level set.");return null}
|
44
|
+
Vc.prototype.log=function(a,b,c){if(a.value>=ad(this).value)for(p(b)&&(b=b()),a=new Tc(a,String(b),this.f),c&&(a.a=c),c="log:"+a.b,l.console&&(l.console.timeStamp?l.console.timeStamp(c):l.console.markTimeline&&l.console.markTimeline(c)),l.msWriteProfilerMark&&l.msWriteProfilerMark(c),c=this;c;)c=c.a};var bd={},cd=null;
|
45
|
+
function N(a){cd||(cd=new Vc(""),bd[""]=cd,cd.c=Zc);var b;if(!(b=bd[a])){b=new Vc(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=N(a.substr(0,c));c.b||(c.b={});c.b[d]=b;b.a=c;bd[a]=b}return b};function O(a,b){a&&a.log(Yc,b,void 0)}function P(a,b){a&&a.log($c,b,void 0)};function dd(a){C.call(this);this.a=a;this.$=[]}t(dd,C);dd.prototype.ba=function(){return this.a};dd.prototype.j=function(){dd.s.j.call(this);this.$=this.a=null};function ed(){}ed.prototype.a=null;function fd(a){var b;(b=a.a)||(b={},gd(a)&&(b[0]=!0,b[1]=!0),b=a.a=b);return b};var hd;function id(){}t(id,ed);function jd(a){return(a=gd(a))?new ActiveXObject(a):new XMLHttpRequest}function gd(a){if(!a.b&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.b=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.b}hd=new id;var kd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function Q(a){F.call(this);this.ma=new L;this.I=a||null;this.c=!1;this.H=this.a=null;this.g=this.N=this.l="";this.f=this.K=this.i=this.J=!1;this.h=0;this.v=null;this.U=ld;this.C=this.oa=!1}t(Q,F);var ld="";Q.prototype.b=N("goog.net.XhrIo");var md=/^https?$/i,nd=["POST","PUT"];
|
46
|
+
function od(a,b){if(a.a)throw Error("[goog.net.XhrIo] Object is active with another request="+a.l+"; newUri="+b);a.l=b;a.g="";a.N="GET";a.J=!1;a.c=!0;a.a=a.I?jd(a.I):jd(hd);a.H=a.I?fd(a.I):fd(hd);a.a.onreadystatechange=r(a.T,a);try{P(a.b,R(a,"Opening Xhr")),a.K=!0,a.a.open("GET",String(b),!0),a.K=!1}catch(f){P(a.b,R(a,"Error opening Xhr: "+f.message));pd(a,f);return}var c=a.ma.clone(),d=Ja(c.P()),e=l.FormData&&!1;!(0<=v(nd,"GET"))||d||e||Qc(c,"Content-Type","application/x-www-form-urlencoded;charset=utf-8");
|
47
|
+
c.forEach(function(a,b){this.a.setRequestHeader(b,a)},a);a.U&&(a.a.responseType=a.U);Ta(a.a)&&(a.a.withCredentials=a.oa);try{qd(a),0<a.h&&(a.C=rd(a.a),P(a.b,R(a,"Will abort after "+a.h+"ms if incomplete, xhr2 "+a.C)),a.C?(a.a.timeout=a.h,a.a.ontimeout=r(a.fa,a)):a.v=Lc(a.fa,a.h,a)),P(a.b,R(a,"Sending request")),a.i=!0,a.a.send(""),a.i=!1}catch(f){P(a.b,R(a,"Send error: "+f.message)),pd(a,f)}}function rd(a){return z&&B(9)&&"number"==typeof a.timeout&&void 0!==a.ontimeout}
|
48
|
+
function Ka(a){return"content-type"==a.toLowerCase()}Q.prototype.fa=function(){"undefined"!=typeof aa&&this.a&&(this.g="Timed out after "+this.h+"ms, aborting",P(this.b,R(this,this.g)),G(this,"timeout"),this.a&&this.c&&(P(this.b,R(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,G(this,"complete"),G(this,"abort"),sd(this)))};function pd(a,b){a.c=!1;a.a&&(a.f=!0,a.a.abort(),a.f=!1);a.g=b;td(a);sd(a)}function td(a){a.J||(a.J=!0,G(a,"complete"),G(a,"error"))}
|
49
|
+
Q.prototype.j=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),sd(this,!0));Q.s.j.call(this)};Q.prototype.T=function(){this.m||(this.K||this.i||this.f?ud(this):this.na())};Q.prototype.na=function(){ud(this)};
|
50
|
+
function ud(a){if(a.c&&"undefined"!=typeof aa)if(a.H[1]&&4==vd(a)&&2==wd(a))P(a.b,R(a,"Local request error detected and ignored"));else if(a.i&&4==vd(a))Lc(a.T,0,a);else if(G(a,"readystatechange"),4==vd(a)){P(a.b,R(a,"Request complete"));a.c=!1;try{if(xd(a))G(a,"complete"),G(a,"success");else{var b;try{b=2<vd(a)?a.a.statusText:""}catch(c){P(a.b,"Can not get status: "+c.message),b=""}a.g=b+" ["+wd(a)+"]";td(a)}}finally{sd(a)}}}
|
51
|
+
function sd(a,b){if(a.a){qd(a);var c=a.a,d=a.H[0]?ba:null;a.a=null;a.H=null;b||G(a,"ready");try{c.onreadystatechange=d}catch(e){(c=a.b)&&c.log(Wc,"Problem encountered resetting onreadystatechange: "+e.message,void 0)}}}function qd(a){a.a&&a.C&&(a.a.ontimeout=null);"number"==typeof a.v&&(l.clearTimeout(a.v),a.v=null)}
|
52
|
+
function xd(a){var b=wd(a),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=String(a.l).match(kd)[1]||null,!a&&l.self&&l.self.location&&(a=l.self.location.protocol,a=a.substr(0,a.length-1)),b=!md.test(a?a.toLowerCase():"");c=b}return c}function vd(a){return a.a?a.a.readyState:0}function wd(a){try{return 2<vd(a)?a.a.status:-1}catch(b){return-1}}function R(a,b){return b+" ["+a.N+" "+a.l+" "+wd(a)+"]"};function S(a){F.call(this);this.a=new dd(a);this.b=new E(this)}t(S,F);S.prototype.c=N("goog.net.BulkLoader");
|
53
|
+
S.prototype.f=function(a,b){O(this.c,'Received event "'+b.type+'" for id '+a+" with uri "+this.a.a[a]);var c=b.target;if(xd(c)){var d=this.a,e;try{e=c.a?c.a.responseText:""}catch(f){P(c.b,"Can not get responseText: "+f.message),e=""}d.$[a]=e;a:if(e=this.a,d=e.$,d.length==e.a.length){for(e=0;e<d.length;e++)if(null==d[e]){d=!1;break a}d=!0}else d=!1;d&&(O(this.c,"All uris loaded."),G(this,"success"))}else G(this,"error");c.w()};
|
54
|
+
S.prototype.j=function(){S.s.j.call(this);this.b.w();this.b=null;this.a.w();this.a=null};/*
|
57
55
|
Portions of this code are from MochiKit, received by
|
58
56
|
The Closure Authors under the MIT license. All other code is Copyright
|
59
57
|
2005-2009 The Closure Authors. All Rights Reserved.
|
60
58
|
*/
|
61
|
-
function
|
62
|
-
function
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
this.
|
68
|
-
function
|
69
|
-
function
|
70
|
-
function
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
59
|
+
function yd(a,b){this.f=[];this.v=b||null;this.b=this.a=!1;this.c=void 0;this.l=this.A=this.m=!1;this.g=0;this.h=null;this.u=0}yd.prototype.i=function(a,b){this.m=!1;this.a=!0;this.c=b;this.b=!a;zd(this)};function Ad(a,b,c){a.f.push([b,c,void 0]);a.a&&zd(a)}yd.prototype.then=function(a,b,c){var d,e,f=new J(function(a,b){d=a;e=b});Ad(this,d,function(a){e(a)});return f.then(a,b,c)};fc(yd);function Bd(a){return Ia(a.f,function(a){return p(a[1])})}
|
60
|
+
function zd(a){if(a.g&&a.a&&Bd(a)){var b=a.g,c=Cd[b];c&&(l.clearTimeout(c.a),delete Cd[b]);a.g=0}a.h&&(a.h.u--,delete a.h);for(var b=a.c,d=c=!1;a.f.length&&!a.m;){var e=a.f.shift(),f=e[0],g=e[1],e=e[2];if(f=a.b?g:f)try{var h=f.call(e||a.v,b);void 0!==h&&(a.b=a.b&&(h==b||h instanceof Error),a.c=b=h);if(gc(b)||"function"===typeof l.Promise&&b instanceof l.Promise)d=!0,a.m=!0}catch(m){b=m,a.b=!0,Bd(a)||(c=!0)}}a.c=b;d&&(h=r(a.i,a,!0),d=r(a.i,a,!1),b instanceof yd?(Ad(b,h,d),b.A=!0):b.then(h,d));c&&(b=
|
61
|
+
new Dd(b),Cd[b.a]=b,a.g=b.a)}function Ed(){u.call(this)}t(Ed,u);Ed.prototype.message="Deferred has already fired";Ed.prototype.name="AlreadyCalledError";function Dd(a){this.a=l.setTimeout(r(this.c,this),0);this.b=a}Dd.prototype.c=function(){delete Cd[this.a];throw this.b;};var Cd={};function Fd(){F.call(this);this.b=new E(this);this.a={}}t(Fd,F);k=Fd.prototype;k.S=N("goog.module.ModuleLoader");
|
62
|
+
k.ta=function(a,b,c,d){var e=this.a[a]||new Gd;e.f=!0;e.c=c||null;e.a=d||null;if(this.a[a])null!=e.b&&Hd(this,a);else{this.a[a]=e;c=[];for(d=0;d<a.length;d++)Na(c,b[a[d]].ba());O(this.S,"downloadModules ids:"+a+" uris:"+c);this.a[a].g=c;b=new S(c);c=this.b;c.L(b,"success",r(this.ra,this,b,a));c.L(b,"error",r(this.qa,this,b,a));a=b.b;c=b.a.ba();O(b.c,"Starting load of code with "+c.length+" uris.");for(d=0;d<c.length;d++)e=new Q,a.L(e,"complete",r(b.f,b,d)),od(e,c[d])}};
|
63
|
+
function Hd(a,b){G(a,new Id);O(a.S,"evaluateCode ids:"+b);var c=a.a[b],d=c.b,e=null;try{var f=d.join("\n");if(l.execScript)l.execScript(f,"JavaScript");else if(l.eval){if(null==pa)if(l.eval("var _evalTest_ = 1;"),"undefined"!=typeof l._evalTest_){try{delete l._evalTest_}catch(m){}pa=!0}else pa=!1;if(pa)l.eval(f);else{var g=l.document,h=g.createElement("SCRIPT");h.type="text/javascript";h.defer=!1;h.appendChild(g.createTextNode(f));g.body.appendChild(h);g.body.removeChild(h)}}else throw Error("goog.globalEval not available");
|
64
|
+
}catch(m){e=m,(d=a.S)&&d.log(Xc,"Loaded incomplete code for module(s): "+b,m)}G(a,new Jd);e?Kd(a,b,c.a,null,e):c.c&&c.c();delete a.a[b]}k.ra=function(a,b){O(this.S,"Code loaded for module(s): "+b);var c=this.a[b];c.b=a.a.$;c.f&&Hd(this,b);Lc(a.w,5,a)};k.qa=function(a,b,c){var d=this.a[b];d&&(delete this.a[b],Kd(this,b,d.a,c));Lc(a.w,5,a)};function Kd(a,b,c,d,e){G(a,new Ld(0,e));(a=a.S)&&a.log(Xc,"Request failed for module(s): "+b,void 0);c&&c(d)}
|
65
|
+
k.j=function(){Fd.s.j.call(this);this.b.w();this.b=null};var Md=new vb("a"),Nd=new vb("b"),Od=new vb("c");function Jd(){D.call(this,Md)}t(Jd,D);function Id(){D.call(this,Nd)}t(Id,D);function Ld(a,b){D.call(this,Od);this.error=b||null}t(Ld,D);function Gd(){this.b=this.g=null;this.f=!1;this.a=this.c=null};function T(a,b){C.call(this);this.f=b;this.a=[];if(a>this.f)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(var c=0;c<a;c++)this.a.push(this.b())}t(T,C);function Pd(a,b){a.a.length<a.f?a.a.push(b):a.c(b)}T.prototype.b=function(){return{}};T.prototype.c=function(a){if(ja(a))if(p(a.w))a.w();else for(var b in a)delete a[b]};T.prototype.j=function(){T.s.j.call(this);for(var a=this.a;a.length;)this.c(a.pop());delete this.a};function Qd(){this.a=[];this.g=new L;this.A=this.u=this.v=this.h=0;this.b=new L;this.m=this.l=0;this.C=1;this.c=new T(0,4E3);this.c.b=function(){return new Rd};this.i=new T(0,50);this.i.b=function(){return new Sd};var a=this;this.f=new T(0,2E3);this.f.b=function(){return String(a.C++)};this.f.c=function(){}}N("goog.debug.Trace");function Sd(){this.ea=this.time=this.count=0}
|
66
|
+
Sd.prototype.toString=function(){var a=[];a.push(this.type," ",this.count," (",Math.round(10*this.time)/10," ms)");this.ea&&a.push(" [VarAlloc = ",this.ea,"]");return a.join("")};function Rd(){}function Td(a,b,c,d){var e=[];-1==c?e.push(" "):e.push(Ud(a.b-c));e.push(" ",Vd(a.b-b));0==a.a?e.push(" Start "):1==a.a?(e.push(" Done "),e.push(Ud(a.g-a.startTime)," ms ")):e.push(" Comment ");e.push(d,a);0<a.f&&e.push("[VarAlloc ",a.f,"] ");return e.join("")}
|
67
|
+
Rd.prototype.toString=function(){return null==this.type?this.c:"["+this.type+"] "+this.c};Qd.prototype.reset=function(){for(var a=0;a<this.a.length;a++){var b=this.c.id;b&&Pd(this.f,b);Pd(this.c,this.a[a])}this.a.length=0;this.g.clear();this.h=oa();this.m=this.l=this.A=this.u=this.v=0;b=this.b.P();for(a=0;a<b.length;a++){var c=Sc(this.b,b[a]);c.count=0;c.time=0;c.ea=0;Pd(this.i,c)}this.b.clear()};
|
68
|
+
Qd.prototype.toString=function(){for(var a=[],b=-1,c=[],d=0;d<this.a.length;d++){var e=this.a[d];1==e.a&&c.pop();a.push(" ",Td(e,this.h,b,c.join("")));b=e.b;a.push("\n");0==e.a&&c.push("| ")}if(0!=this.g.c){var f=oa();a.push(" Unstopped timers:\n");Pc(this.g,function(b){a.push(" ",b," (",f-b.startTime," ms, started at ",Vd(b.startTime),")\n")})}b=this.b.P();for(d=0;d<b.length;d++)c=Sc(this.b,b[d]),1<c.count&&a.push(" TOTAL ",c,"\n");a.push("Total tracers created ",this.l,"\n","Total comments created ",
|
69
|
+
this.m,"\n","Overhead start: ",this.v," ms\n","Overhead end: ",this.u," ms\n","Overhead comment: ",this.A," ms\n");return a.join("")};function Ud(a){a=Math.round(a);var b="";1E3>a&&(b=" ");100>a&&(b=" ");10>a&&(b=" ");return b+a}function Vd(a){a=Math.round(a);return String(100+a/1E3%60).substring(1,3)+"."+String(1E3+a%1E3).substring(1,4)}new Qd;function Wd(){C.call(this)}t(Wd,C);function Xd(a,b){this.a=a;this.c=b}Xd.prototype.b=function(a){this.a&&(this.a.call(this.c||null,a),this.a=this.c=null)};function Yd(a,b){C.call(this);this.b=a;this.g=b;this.a=[];this.f=[];this.c=[]}t(Yd,C);k=Yd.prototype;k.ia=null;k.ua=Wd;k.G=null;k.Y=function(){return this.g};k.ba=function(){return this.ia};function Zd(a,b){var c=new a.ua;b();a.G=c;c=(c=!!$d(a.c,b()))||!!$d(a.a,b());c||(a.f.length=0);return c}function ae(a,b){var c=$d(a.f,b);c&&window.setTimeout(oc("Module errback failures: "+c),0);a.c.length=0;a.a.length=0}
|
70
|
+
function $d(a,b){for(var c=[],d=0;d<a.length;d++)try{a[d].b(b)}catch(e){pc(e),c.push(e)}a.length=0;return c.length?c:null}k.j=function(){Yd.s.j.call(this);rb(this.G)};function U(){C.call(this);this.o={};this.c=[];this.f=[];this.g=[];this.a=[];this.l=[];this.u={};this.H=this.h=new Yd([],"");this.J=new yd;this.b=N("goog.module.ModuleManager");this.C=null;this.i=0;this.N=this.K=!1}t(U,C);ca(U);U.prototype.I=function(){return null};function V(a){var b=0<a.c.length;b!=a.K&&(be(a,b?"active":"idle"),a.K=b);b=0<a.l.length;b!=a.N&&(be(a,b?"userActive":"userIdle"),a.N=b)}
|
71
|
+
U.prototype.v=function(a,b,c){b||(this.i=0);a=ce(this,a);O(this.b,"Loading module(s): "+a);this.c=a;this.f=Ma(a);V(this);0!=a.length&&(this.g.push.apply(this.g,a),c=r(this.C.ta,this.C,Ma(a),this.o,null,r(this.T,this,this.f,a),r(this.U,this),!!c),(a=5E3*Math.pow(this.i,2))?window.setTimeout(c,a):c())};
|
72
|
+
function ce(a,b){for(var c=0;c<b.length;c++)if(a.o[b[c]].G)throw Error("Module already loaded: "+b[c]);for(var d=[],c=0;c<b.length;c++)d=d.concat(de(a,b[c]));Oa(d);return 1<d.length?(c=d.shift(),O(a.b,"Must load "+c+" module before "+b),a.a=Ha(d,function(a){return[a]}).concat(a.a),[c]):d}function de(a,b){var c=[];0<=v(a.g,b)||c.push(b);for(var d=Ma(a.o[b].b);d.length;){var e=d.pop();a.o[e].G||0<=v(a.g,e)||(c.unshift(e),Array.prototype.unshift.apply(d,a.o[e].b))}Oa(c);return c}
|
73
|
+
function ee(a,b){if(a.m){var c=a.b;c&&c.log(Xc,"Module loaded after module manager was disposed: "+b,void 0)}else O(a.b,"Module loaded: "+b),Zd(a.o[b],r(a.I,a))&&fe(a,ge),w(a.l,b),w(a.c,b),0==a.c.length&&he(a),V(a)}
|
74
|
+
function ie(a,b,c,d){var e=a.o[b];if(e.G)O(a.b,b+" module already loaded"),a=new Xd(c,d),window.setTimeout(r(a.b,a),0);else{var f;a:if(0<=v(a.c,b))f=!0;else{for(f=0;f<a.a.length;f++)if(0<=v(a.a[f],b)){f=!0;break a}f=!1}f?(O(a.b,b+" module already loading"),e.a.push(new Xd(c,d))):(O(a.b,"Registering callback for module: "+b),e.a.push(new Xd(c,d)),O(a.b,"Initiating module load: "+b),b=[b],0==a.c.length?a.v(b):(a.a.push(b),V(a)))}}var ge=4;
|
75
|
+
U.prototype.T=function(a,b,c){this.i++;this.f=a;Fa(b,na(w,this.g),this);401==c?(O(this.b,"Module loading unauthorized"),fe(this,0),this.a.length=0):410==c?(je(this,3),he(this)):3<=this.i?(O(this.b,"Aborting after failure to load: "+this.c),je(this,1),he(this)):(O(this.b,"Retrying after failure to load: "+this.c),this.v(this.f,!0,8001==c))};U.prototype.U=function(){O(this.b,"Aborting after timeout: "+this.c);je(this,2);he(this)};
|
76
|
+
function je(a,b){1<a.f.length?a.a=Ha(a.f,function(a){return[a]}).concat(a.a):fe(a,b)}
|
77
|
+
function fe(a,b){var c=a.f;a.c.length=0;for(var d=[],e=0;e<a.a.length;e++){var f=Ga(a.a[e],function(a){var b=de(this,a);return Ia(c,function(a){return 0<=v(b,a)})},a);Na(d,f)}for(e=0;e<c.length;e++)La(d,c[e]);for(e=0;e<d.length;e++){for(f=0;f<a.a.length;f++)w(a.a[f],d[e]);w(a.l,d[e])}var g=a.u.error;if(g)for(e=0;e<g.length;e++)for(var h=g[e],f=0;f<d.length;f++)h("error",d[f],b);for(e=0;e<c.length;e++)a.o[c[e]]&&ae(a.o[c[e]],b);a.f.length=0;V(a)}
|
78
|
+
function he(a){for(;a.a.length;){var b=Ga(a.a.shift(),function(a){return!this.o[a].G},a);if(0<b.length){a.v(b);return}}V(a)}function be(a,b){for(var c=a.u[b],d=0;c&&d<c.length;d++)c[d](b)}U.prototype.j=function(){U.s.j.call(this);sb(Sa(this.o),this.h);this.u=this.a=this.l=this.f=this.c=this.o=null};dc=function(){ie(U.O(),"settings",this.va,this)};ec("content");var W=U.O(),ke=new Fd;W.C=ke;var le=l.MODULE_INFO,me;for(me in le)W.o[me]=new Yd(le[me],me);if(!W.J.a){var X=W.J;if(X.a){if(!X.l)throw new Ed;X.l=!1}X.a=!0;X.c=void 0;X.b=!1;zd(X)}W.H==W.h&&(W.H=null,Zd(W.h,r(W.I,W))&&fe(W,ge),V(W));var ne=l.MODULE_URIS,oe;for(oe in ne)W.o[oe].ia=ne[oe];ee(W,"app");qa("example.api.load",function(a){ie(W,"api",a)});qa("example.api.isLoaded",function(){var a=W.o.api;return a?!!a.G:!1});
|
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
if(
|
1
|
+
function pe(){var a=Y;return a.b?a.b.length:0}function qe(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}function re(a){H.call(this,a)}t(re,H);re.prototype.R=function(){re.s.R.call(this)};var Y=cc,Z=new re(Y.h),se=pe();if(Z.B)throw Error("Component already rendered");if(0>se||se>pe())throw Error("Child component index out of bounds");Y.f&&Y.b||(Y.f={},Y.b=[]);if(Z.c==Y){var te=Z.Y();Y.f[te]=Z;w(Y.b,Z)}else{var ue=Y.f,ve=Z.Y();if(null!==ue&&ve in ue)throw Error('The object already contains the key "'+ve+'"');ue[ve]=Z}Zb(Z,Y);(function(a,b,c,d){Array.prototype.splice.apply(a,qe(arguments,1))})(Y.b,se,0,Z);
|
2
|
+
if(Z.B&&Y.B&&Z.c==Y){var we=Y.a,xe=we.childNodes[se]||null;xe!=Z.F()&&we.insertBefore(Z.F(),xe)}else{Y.a||Y.R();var ye=Y.b?Y.b[se+1]||null:null;$b(Z,Y.a,ye?ye.a:null)}ee(U.O(),"settings");
|
data/scripts/modules/index.erb
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
+
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
|
5
|
+
<meta content="utf-8" http-equiv="encoding">
|
4
6
|
<style type="text/css" media="screen">
|
5
|
-
|
6
|
-
|
7
|
+
html {font-family: sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;}
|
8
|
+
button,input,optgroup,select,textarea {font-family: sans-serif; font-size: inherit;}
|
7
9
|
</style>
|
8
10
|
</head>
|
9
11
|
<body>
|
10
12
|
<p>
|
11
13
|
Thanks to the <a href="http://plovr.com/">plovr</a> project.
|
12
|
-
This is one of their
|
14
|
+
This is one of their
|
13
15
|
<a href="http://code.google.com/p/plovr/source/browse/#hg%2Ftestdata%2Fmodules">tests</a>.
|
14
16
|
</p>
|
15
17
|
<div id="content"></div>
|
data/scripts/modules/settings.js
CHANGED