, as required by soy internals. Consider using goog.soy.renderElement instead.\nTemplate output: %s",b&&b[0],a)},ao=/^<(body|caption|col|colgroup|head|html|tr|td|th|tbody|thead|tfoot)>/i,Wn={};var eo=function(a){return ge(Vd(a.replace(bo,function(a,c){return co.test(c)?"":" "}).replace(/[\t\n ]+/g," ")))},co=/^(?:abbr|acronym|address|b|em|i|small|strong|su[bp]|u)$/i,bo=/<[!\/]?([a-z0-9]+)([\/ ][^>]*)?>/gi;var fo=function(a,b){this.dg=a;this.ut=!!b;this.em={0:this.dg+"-arrowright",1:this.dg+"-arrowup",2:this.dg+"-arrowdown",3:this.dg+"-arrowleft"}};D(fo,Bm);t=fo.prototype;t.Bo=!1;t.wi=2;t.hm=20;t.ag=3;t.sr=null;t.mk=-5;t.ui=!1;t.Nk=function(a){this.ic=a};t.setPosition=function(a,b,c,e){null!=a&&(this.ag=a);null!=b&&(this.wi=b);B(c)&&(this.hm=Math.max(c,15));B(e)&&(this.mk=e)};t.Dz=function(a,b){this.Rb=a;this.gm=b};t.uz=function(a){this.ui=a};
t.Ga=function(a,b,c){F(this.gm,"Must call setElements first.");this.Ah(this.ag,this.Cu(this.ag,this.wi),this.Du(),0,c)};t.Du=function(){return 2==this.wi?go(this.ag)?this.Rb.offsetHeight/2:this.Rb.offsetWidth/2:this.hm};t.Cu=function(a,b){2==b&&(b=0);return b};t.qz=function(a){this.Bo=a};
t.Ah=function(a,b,c,e,f){if(this.ic){var g=ho(a,b),h;h=this.ic;var k=this.Rb,n=this.sr,p=Ck(wk,h);a:{var p=(go(a)?p.height/2:p.width/2)-c,q=yl(h,g);if(n)n=n.clone(),k&&(k=xl(k),n.left+=k.x,n.right+=k.x,n.top+=k.y,n.bottom+=k.y);else if(n=uk(h),!n){h=p;break a}h=Dk(h).MA();go(a)?h.top
n.bottom&&q&1&&(p-=h.bottom-n.bottom):h.leftn.right&&q&4&&(p-=h.right-n.right);h=p}h=go(a)?new Q(this.mk,h):new Q(h,this.mk);p=go(a)?6:9;
this.ui&&2==e&&(p=go(a)?4:1);q=a^3;go(a)&&"rtl"==this.ic.dir&&(q=a);g=Al(this.ic,ho(q,b),this.Rb,g,h,f,this.Bo?p:0,void 0,this.sr);if(2!=e&&g&496){this.Ah(a^3,b,c,this.ui&&0==e?1:2,f);return}!this.ut||g&496||(e=parseFloat(this.Rb.style.left),f=parseFloat(this.Rb.style.top),F(!isNaN(e)&&!isNaN(f),"Could not parse position."),isFinite(e)&&0==e%1&&isFinite(f)&&0==f%1||pk(this.Rb,Math.round(e),Math.round(f)))}this.ky(a,b,c)};
t.ky=function(a,b,c){var e=this.gm;df(this.em,function(a){Xl(e,a,!1)},this);V(e,this.em[a]);e.style.top=e.style.left=e.style.right=e.style.bottom="";this.ic?(b=zk(this.ic,this.Rb),c=io(this.ic,a),go(a)?e.style.top=jo(b.y+c.y,15,this.Rb.offsetHeight-15)+Hc:e.style.left=jo(b.x+c.x,15,this.Rb.offsetWidth-15)+Hc):e.style[0==b?go(a)?"top":nc:go(a)?"bottom":"right"]=c+Hc};
var jo=function(a,b,c){return b>c?b:Math.min(Math.max(a,b),c)},ho=function(a,b){switch(a){case 2:return 0==b?1:5;case 1:return 0==b?0:4;case 0:return 0==b?12:13;default:return 0==b?8:9}},io=function(a,b){var c=0,e=0;a=Ck(wk,a);switch(b){case 2:c=a.width/2;break;case 1:c=a.width/2;e=a.height;break;case 0:e=a.height/2;break;case 3:c=a.width,e=a.height/2}return new Q(c,e)},go=function(a){return 0==a||3==a};var ko=function(a){M.call(this);this.dom=a||R()};D(ko,M);ko.prototype.uo=function(){Fl(this.a(),this.vb());U(this.a(),"live","polite")};ko.prototype.vb=function(){return"tooltip"};var lo=function(a){ko.call(this,a);this.ya=this.dom.c(d,"jfk-tooltip-contentId");this.fm=this.dom.c(d,"jfk-tooltip-arrow",this.dom.c(d,"jfk-tooltip-arrowimplbefore"),this.dom.c(d,"jfk-tooltip-arrowimplafter"));this.vl=this.dom.c(d,{"class":"jfk-tooltip",role:"tooltip"},this.ya,this.fm);this.uo()};D(lo,ko);lo.prototype.a=function(){return this.vl};lo.prototype.L=function(){return this.ya};lo.prototype.h=function(){this.vl&&oj(this.vl)};var mo=function(a){lo.call(this,a)};D(mo,lo);mo.prototype.uo=function(){Fl(this.a(),this.vb())};var po=function(a,b,c){c||(c=b instanceof si?eo(ti(b)):b);a.removeAttribute(fd);a.removeAttribute(sb);a.removeAttribute(pb);b?(b instanceof si?a.kf=b:(a.setAttribute(pb,b),a.kf=null),a.setAttribute(Za,c)):(a.kf=null,a.removeAttribute(Za));a=R(a)||R();b=Md(a.o);no[b]||(no[b]=new oo(a))},no={},oo=function(a){Zl.call(this);this.Kc=a;this.en=new Xj(this.JA,0,this);this.Cb(this.en);var b=fj();this.hh=Id(b.MutationObserver)?new b.MutationObserver(C(this.kv,this)):null;a=a.o;this.listen(a,[rc,r,l,$a,Dg,
ic],this.$s,!0);this.listen(a,[sc,Db,Cg],this.nz,!0)};D(oo,Zl);t=oo.prototype;t.h=function(){this.Hm();oo.b.h.call(this)};t.dr=function(a){switch(a.type){case r:case sc:case rc:case l:this.Do=!1;break;case ic:this.Do=!0}};
t.nz=function(a){this.hh&&this.hh.disconnect();this.dr(a);var b=a.target;a=a.type==Db||a.type==Cg;var c=this.aa&&tj(this.aa.L(),b);if(this.Do||!a||c){this.Aw=a;if(a=b&&b.getAttribute&&this.hh)a=b.getAttribute(Kc)||null,a=Ne(El,a);a&&(this.Dx(b),(a=Il(b))&&(b=a));this.Ud=b}else this.Ud=null;this.Ek()};t.Dx=function(a){this.hh.observe(a,{attributes:!0})};t.$s=function(a){this.dr(a);var b=a.target;a=a.type==r||a.type==l;b=this.aa&&tj(this.aa.L(),b);a&&b||(this.Ud=null,this.Ek())};
t.kv=function(a){G(a,C(function(a){var b=Il(a.target);b&&"aria-activedescendant"==a.attributeName&&(this.Ud=b,this.Ek())},this))};t.Ek=function(){this.Hm();this.en.start(this.Zb?50:300)};t.Hm=function(){this.Eh&&(zh(this.Eh),this.Eh=0,this.Zb=null)};
t.JA=function(){if(!this.Ud)this.no();else if(!(this.Zb&&this.aa&&tj(this.aa.a(),this.Ud))||this.Zb.getAttribute("data-tooltip-unhoverable")){var a=Gj(this.Ud,function(a){return a.getAttribute&&(a.getAttribute(sb)||a.getAttribute(pb)||a.kf)&&!a.getAttribute("data-tooltip-suspended")},!0),b=!1;this.Zb&&this.Zb!=a&&(this.no(),b=!0);if(!this.Zb&&a&&(this.Zb=a,this.kA(a))){var c=Ei;if(a.getAttribute(sb))for(var e=$i("jfk-tooltip-data",a),f=0;f=a.scrollWidth&&a.offsetHeight>=a.scrollHeight||this.Aw&&"mouse"==a.getAttribute("data-tooltip-trigger")?!1:!0};
var qo=function(a){if(a)switch(a.toLowerCase().split(",")[0]){case "l":return 0;case "t":return 2;case "r":return 3}return 1};
oo.prototype.Lq=function(a,b,c,e,f){this.Eh=0;this.aa||(this.aa=new mo(this.Kc),this.oo(),this.Kc.o.body.appendChild(this.aa.a()),this.Cb(this.aa),this.Le=new fo("jfk-tooltip",!0),this.Le.qz(!0),this.Le.uz(!0),this.Le.Dz(this.aa.a(),this.aa.fm));var g;a:{if(c)switch(c.toLowerCase().split(",")[1]){case "l":g=0;break a;case "r":g=1;break a}g=2}this.Le.setPosition(qo(c),g,void 0,e);Vl(this.aa.a(),dc);this.ai!=f&&(this.ai&&!Td(ke(this.ai))&&Vl(this.aa.a(),this.ai),Td(ke(f))||V(this.aa.a(),f),this.ai=
f);pk(this.aa.a(),0,0);if(b instanceof si)Ri(this.aa.L(),b);else for(lj(this.aa.L());c=b.firstChild;)this.aa.L().appendChild(c);this.Le.Nk(a);this.Le.Ga(null,0)};oo.prototype.oo=function(){this.aa&&V(this.aa.a(),dc)};oo.prototype.no=function(){this.oo();this.Zb=null};I&&L(8);var ro=function(a,b){this.be=typeof a==yc?0a?-1:null:null==a?null:a?-1:1;this.As=!!b};t=ro.prototype;t.Ft=hi;t.Fs=function(a,b){return 0>Number(a)*Number(b)};t.tt=function(a,b,c,e){return e&&(this.Fs(b,this.be)||1==this.be&&ei.test($h(a,c))||-1==this.be&&di.test($h(a,c)))?1==this.be?"\u200e":"\u200f":""};t.vA=function(a,b,c){null==a&&(a=this.Ft(ti(b),!0));return this.wA(a,b,c)};
t.wA=function(a,b,c){c=c||void 0==c;var e;e=0!=a&&a!=this.be;if(this.As||e){var f;e&&(f=-1==a?"rtl":"ltr");e=Ci("span",{dir:f},b)}else e=b;b=ti(b);return e=Di(0,e,this.tt(b,a,!0,c))};t.mark=function(){switch(this.be){case 1:return"\u200e";case -1:return"\u200f";default:return""}};var so=function(a){if(null!=a)switch(a.Sb){case 1:return 1;case -1:return-1;case 0:return 0}return null},uo=function(a){return null!=a&&a.Qa===In?(F(a.constructor===Pn),a):a instanceof si?to(ti(a),a.Oc()):to(de(String(String(a))),so(a))},vo=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return new b(String(a))}},to=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,e){a=new b(String(a));void 0!==e&&(a.Sb=e);return a}}(Pn);vo(Qn);
vo(Rn);vo(Sn);vo(Tn);vo(Un);var wo=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return(a=String(a))?new b(a):""}},xo=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,e){a=String(a);if(!a)return"";a=new b(a);void 0!==e&&(a.Sb=e);return a}}(Pn);wo(Qn);wo(Sn);wo(Rn);wo(Tn);
var yo=wo(Un),zo=/^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\b/,Go=function(a,b){if(!b)return String(a).replace(Ao,"").replace(Bo,"<");a=String(a).replace(/\[/g,"[");var c=[],e=[];a=a.replace(Ao,function(a,f){if(f&&(f=f.toLowerCase(),b.hasOwnProperty(f)&&b[f])){var g=c.length,h="",p="";if("/"!=a.charAt(1)){for(var h="<",q;q=Co.exec(a);)if(q[1]&&"dir"==q[1].toLowerCase()){if(a=q[2]){if("'"==a.charAt(0)||'"'==a.charAt(0))a=a.substr(1,a.length-
2);a=a.toLowerCase();if("ltr"==a||"rtl"==a||"auto"==a)p=' dir="'+a+'"'}break}Co.lastIndex=0}c[g]=h+f+">";e[g]=p;return"["+g+"]"}return""});a=String(a).replace(Do,Eo);var f=Fo(c);a=a.replace(/\[(\d+)\]/g,function(a,b){return e[b]&&c[b]?c[b].substr(0,c[b].length-1)+e[b]+">":c[b]});return a+f},Fo=function(a){for(var b=[],c=0,e=a.length;cf?a[c]="":(a[c]=b.slice(f).reverse().join(""),b.length=f)):""==f&&0>Ee(b,"")&&0>Ee(b,"")?a[c]="":zo.test(f)||
b.push(""+f.substring(1))}return b.reverse().join("")},X=function(a){return null!=a&&a.Qa===In?(F(a.constructor===Pn),String(Go(a.Ta())).replace(Do,Eo)):de(String(a))},Io=function(a){if(null!=a&&a.Qa===Ln)return F(a.constructor===Tn),a.Ta().replace(/([^"'\s])$/,"$1 ");a=String(a);Ho.test(a)||(ve("Bad value `%s` for |filterHtmlAttributes",[a]),a="zSoyz");return a},Mo=function(a){if(null!=a&&a.Qa===Jn)return F(a.constructor===Rn),String(a).replace(Jo,Ko);if(null!=a&&a.Qa===Kn)return F(a.constructor===
Sn),String(a).replace(Jo,Ko);a instanceof mi?a=String(ni(a)).replace(Jo,Ko):a instanceof ji?a=String(ki(a)).replace(Jo,Ko):(a=String(a),Lo.test(a)?a=a.replace(Jo,Ko):(ve("Bad value `%s` for |filterNormalizeUri",[a]),a="about:invalid#zSoyz"));return a},No={},Oo=function(a,b){a=No[a]||(No[a]=new ro(a));var c=Gi(Uh("Soy |bidiSpanWrap is applied on an autoescaped text."),String(b));b=a.vA(so(b),c);return ti(b)},Po={"\x00":"","\t":" ","\n":"
","\x0B":"","\f":"","\r":"
"," ":" ",
'"':""","&":"&","'":"'","-":"-","/":"/","<":"<","=":"=",">":">","`":"`","\u0085":"
","\u00a0":" ","\u2028":"
","\u2029":"
"},Eo=function(a){return Po[a]},Qo={"\x00":"%00","\u0001":"%01","\u0002":"%02","\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\x0B":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11","\u0012":"%12","\u0013":"%13","\u0014":"%14",
"\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87","\uff08":"%EF%BC%88","\uff09":"%EF%BC%89",
"\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"},Ko=function(a){return Qo[a]},Do=/[\x00\x22\x27\x3c\x3e]/g,Jo=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,Lo=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,
Ho=/^(?!on|src|(?:style|action|archive|background|cite|classid|codebase|data|dsync|href|longdesc|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,Ao=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,Bo=/"+uo(null==(b=a.content)?"":b)+" ")};Ro.dc="jfk.templates.button.strict";var To=function(a,b,c,e){kn.call(this,a,So.K(),b);this.sl=c||0;this.Gl=e||0;this.Dl=!1};D(To,kn);t=To.prototype;t.getStyle=function(){return this.sl};t.qj=function(){return this.Gl};t.$z=function(a){this.sl!=a&&(this.sl=a,this.hk())};t.Cq=function(a){this.Gl!=a&&(this.Gl=a,this.hk())};t.eA=function(a){this.Dl=a};t.Ic=function(a){this.hl(a);var b=this.a();b&&(this.Dl?po(b,a,void 0):a?b.title=a:b.removeAttribute(fd))};t.$=function(a){this.isEnabled()!=a&&(To.b.$.call(this,a),this.hk())};
t.focus=function(){var a=this.N();try{a.focus()}catch(b){}};t.Fe=function(a){To.b.Fe.call(this,a);this.Ge(!1)};t.Fa=function(a){To.b.Fa.call(this,a);this.isEnabled()&&this.Ge(!0)};t.Nb=function(a){To.b.Nb.call(this,a);this.isEnabled()&&this.Ge(!0)};t.Ge=function(a){this.a()&&Xl(this.a(),"jfk-button-clear-outline",a)};t.hk=function(){this.a()&&this.m.WA(this)};
var So=function(){this.Mq=this.v()+"-standard";this.Rl=this.v()+"-action";this.Ip=this.v()+"-primary";this.bn=this.v()+ea;this.Dn=this.v()+"-flat";this.kp=this.v()+"-narrow";this.gp=this.v()+"-mini";this.Pm=this.v()+"-contrast"};D(So,hn);x(So);t=So.prototype;t.kd=function(a,b,c){a&&c.$z(a);b&&c.Cq(b)};t.v=function(){return"jfk-button"};
t.c=function(a){Ce(a,To,"Button is expected to be instance of jfk.Button");var b=a.j(),c=$n(Ro,{disabled:!a.isEnabled(),checked:a.Yc(),style:a.getStyle(),title:a.Rc(),eB:a.Dl,value:a.getValue(),width:a.qj()},void 0,b);b.append(c,a.Ta());this.D(a,c);return c};
t.D=function(a,b){So.b.D.call(this,a,b);this.Dm||(this.Dm=pf(this.Mq,Pd(this.kd,0,null),this.Rl,Pd(this.kd,2,null),this.Ip,Pd(this.kd,3,null),this.bn,Pd(this.kd,1,null),this.Dn,Pd(this.kd,4,null),this.gp,Pd(this.kd,5,null),this.Pm,Pd(this.kd,6,null),this.kp,Pd(this.kd,null,1)));for(var c=Rl(b),e=0;e