You are on page 1of 8

var h,k=this,l=function(a){return"string"==typeof a},m=function(a)

{return"number"==typeof a},aa=function(){},n=function(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";else
if("function"==b&&"undefined"==typeof a.call)return"object";return
b},ba=function(a){var b=n(a);return"array"==b||"object"==b&&"number"==typeof
a.length},p=function(a){var b=typeof a;return"object"==b&&null!
=a||"function"==b},ca=Date.now||function(){return+new Date},q=function(a,b)
{a=a.split(".");var c=k;a[0]in c||"undefined"==typeof c.execScript||
c.execScript("var "+
a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]&&c[d]!
==Object.prototype[d]?c[d]:c[d]={}:c[d]=b},r=function(a,b){function c()
{}c.prototype=b.prototype;a.aa=b.prototype;a.prototype=new
c;a.prototype.constructor=a;a.va=function(a,c,f){for(var d=Array(arguments.length-
2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return
b.prototype[c].apply(a,d)}};q("ddab.layouts.utils.VersionInfo.VERSION","4.0");var
t=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var
b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};r(t,Error);t.prototy
pe.name="CustomError";var u=function(a,b){a=a.split("%s");for(var c="",d=a.length-
1,e=0;e<d;e++)c+=a[e]+(e<b.length?
b[e]:"%s");t.call(this,c+a[d])};r(u,t);u.prototype.name="AssertionError";
var da=function(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else
a&&(e+=": "+a,f=b);throw new u(""+e,f||[]);},v=function(a,b,c){a||
da("",null,b,Array.prototype.slice.call(arguments,2))},w=function(a,b){throw new
u("Failure"+(a?":
"+a:""),Array.prototype.slice.call(arguments,1));},ea=function(a,b,c){m(a)||
da("Expected number but got %s: %s.",
[n(a),a],b,Array.prototype.slice.call(arguments,2))};var
fa=Array.prototype.indexOf?function(a,b){v(null!=a.length);return
Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(l(a))return
l(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in
a&&a[c]===b)return c;return-1},ha=Array.prototype.forEach?function(a,b){v(null!
=a.length);Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var
c=a.length,d=l(a)?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void
0,d[e],e,a)},ia=function(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[]};var ja=String.prototype.trim?function(a)
{return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)
[1]},ra=function(a){if(!ka.test(a))return a;-1!
=a.indexOf("&")&&(a=a.replace(la,"&amp;"));-1!
=a.indexOf("<")&&(a=a.replace(ma,"&lt;"));-1!
=a.indexOf(">")&&(a=a.replace(na,"&gt;"));-1!
=a.indexOf('"')&&(a=a.replace(oa,"&quot;"));-1!
=a.indexOf("'")&&(a=a.replace(pa,"&#39;"));-1!
=a.indexOf("\x00")&&(a=a.replace(qa,"&#0;"));return
a},la=/&/g,ma=/</g,na=/>/g,oa=/"/g,pa=/'/g,qa=/\x00/g,ka=
/[\x00&<>"']/,sa=function(a){return
Array.prototype.join.call(arguments,"")},ta=function(a,b){return a<b?-1:a>b?
1:0},ua=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return
c.toUpperCase()})},va=function(a){var b=l(void 0)?"undefined".replace(/([-()\[\]{}
+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new
RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return
b+e.toUpperCase()})};var y;a:{var wa=k.navigator;if(wa){var xa=wa.userAgent;if(xa)
{y=xa;break a}}y=""};var ya=function(a,b){for(var c in a)b.call(void
0,a[c],c,a)},za=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!
0;return!1},Aa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable
toLocaleString toString valueOf".split(" "),Ba=function(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<Aa.length;f+
+)c=Aa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var
Ca=function(a){Ca[" "](a);return a};Ca[" "]=aa;var Ea=function(a){var b=Da;return
Object.prototype.hasOwnProperty.call(b,"9")?b["9"]:b["9"]=a("9")};var Fa=-1!
=y.indexOf("Opera"),z=-1!=y.indexOf("Trident")||-1!=y.indexOf("MSIE"),Ga=-1!
=y.indexOf("Edge"),Ha=-1!=y.indexOf("Gecko")&&!(-1!
=y.toLowerCase().indexOf("webkit")&&-1==y.indexOf("Edge"))&&!(-1!
=y.indexOf("Trident")||-1!=y.indexOf("MSIE"))&&-1==y.indexOf("Edge"),A=-1!
=y.toLowerCase().indexOf("webkit")&&-1==y.indexOf("Edge"),Ia=function(){var
a=k.document;return a?a.documentMode:void 0},Ja;
a:{var Ka="",La=function(){var a=y;if(Ha)return/rv:([^\);]+)
(\)|;)/.exec(a);if(Ga)return/Edge\/([\d\.]+)/.exec(a);if(z)return/\b(?:MSIE|rv)[: ]
([^\);]+)(\)|;)/.exec(a);if(A)return/WebKit\/(\S+)/.exec(a);if(Fa)return/
(?:Version)[ \/]?(\S+)/.exec(a)}();La&&(Ka=La?La[1]:"");if(z){var Ma=Ia();if(null!
=Ma&&Ma>parseFloat(Ka)){Ja=String(Ma);break a}}Ja=Ka}
var Na=Ja,Da={},Oa=function(){return Ea(function(){for(var
a=0,b=ja(String(Na)).split("."),c=ja("9").split("."),d=Math.max(b.length,c.length),
e=0;0==a&&e<d;e++){var f=b[e]||"",g=c[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||
["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||
["","","",""];if(0==f[0].length&&0==g[0].length)break;a=ta(0==f[1].length?
0:parseInt(f[1],10),0==g[1].length?0:parseInt(g[1],10))||
ta(0==f[2].length,0==g[2].length)||ta(f[2],g[2]);f=f[3];g=g[3]}while(0==a)}return
0<=a})},B;var Pa=k.document;
B=Pa&&z?Ia()||("CSS1Compat"==Pa.compatMode?parseInt(Na,10):5):void 0;var Qa=!z||
9<=Number(B),Ra=z&&!Oa();var C=function(){this.L="";this.ca=Sa};C.prototype.j=!
0;var Sa={};C.prototype.s=function(){return this.L};C.prototype.toString=function()
{return"SafeScript{"+this.L+"}"};var Ta=function(a){if(a instanceof
C&&a.constructor===C&&a.ca===Sa)return a.L;w("expected object of type SafeScript,
got '"+a+"' of type "+n(a));return"type_error:SafeScript"};var D=function()
{this.N="";this.fa=Ua};D.prototype.j=!0;D.prototype.s=function(){return
this.N};D.prototype.toString=function(){return"TrustedResourceUrl{"+this.N+"}"};var
Va=function(a){if(a instanceof D&&a.constructor===D&&a.fa===Ua)return
a.N;w("expected object of type TrustedResourceUrl, got '"+a+"' of type
"+n(a));return"type_error:TrustedResourceUrl"},Ua={};var E=function()
{this.g="";this.ea=Wa};E.prototype.j=!0;E.prototype.s=function(){return
this.g};E.prototype.toString=function(){return"SafeUrl{"+this.g+"}"};var
Xa=function(a){if(a instanceof E&&a.constructor===E&&a.ea===Wa)return
a.g;w("expected object of type SafeUrl, got '"+a+"' of type
"+n(a));return"type_error:SafeUrl"},Wa={};var F=function()
{this.M="";this.da=Ya};F.prototype.j=!0;var Ya={};F.prototype.s=function(){return
this.M};F.prototype.toString=function(){return"SafeStyle{"+this.M+"}"};var
Za=function(a){if(a instanceof F&&a.constructor===F&&a.da===Ya)return
a.M;w("expected object of type SafeStyle, got '"+a+"' of type
"+n(a));return"type_error:SafeStyle"};var G=function()
{this.g="";this.ba=$a};G.prototype.j=!0;G.prototype.s=function(){return
this.g};G.prototype.toString=function(){return"SafeHtml{"+this.g+"}"};var
ab=function(a){if(a instanceof G&&a.constructor===G&&a.ba===$a)return
a.g;w("expected object of type SafeHtml, got '"+a+"' of type
"+n(a));return"type_error:SafeHtml"},$a={};var H=function(a,b){this.x=void 0!==a?
a:0;this.y=void 0!==b?b:0};h=H.prototype;h.clone=function(){return new
H(this.x,this.y)};h.toString=function(){return"("+this.x+",
"+this.y+")"};h.ceil=function()
{this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};h.floor=function()
{this.x=Math.floor(this.x);this.y=Math.floor(this.y);return
this};h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return
this};
h.translate=function(a,b){a instanceof H?(this.x+=a.x,this.y+=a.y):
(this.x+=Number(a),m(b)&&(this.y+=b));return this};h.scale=function(a,b){b=m(b)?
b:a;this.x*=a;this.y*=b;return this};var I=function(a,b)
{this.width=a;this.height=b};h=I.prototype;h.clone=function(){return new
I(this.width,this.height)};h.toString=function(){return"("+this.width+" x
"+this.height+")"};h.aspectRatio=function(){return
this.width/this.height};h.ceil=function()
{this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return
this};h.floor=function()
{this.width=Math.floor(this.width);this.height=Math.floor(this.height);return
this};
h.round=function()
{this.width=Math.round(this.width);this.height=Math.round(this.height);return
this};h.scale=function(a,b){b=m(b)?b:a;this.width*=a;this.height*=b;return
this};var cb=function(a,b){ya(b,function(b,d){b&&b.j&&(b=b.s());"style"==d?
a.style.cssText=b:"class"==d?a.className=b:"for"==d?
a.htmlFor=b:bb.hasOwnProperty(d)?
a.setAttribute(bb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?
a.setAttribute(d,b):a[d]=b})},bb={cellpadding:"cellPadding",cellspacing:"cellSpacin
g",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength
",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"v
Align",width:"width"},
eb=function(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!
Qa&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push('
name="',ra(g.name),'"');if(g.type){f.push(' type="',ra(g.type),'"');var
x={};Ba(x,g);delete
x.type;g=x}f.push(">");f=f.join("")}f=e.createElement(f);g&&(l(g)?
f.className=g:"array"==n(g)?f.className=g.join("
"):cb(f,g));2<d.length&&db(e,f,d);return f},db=function(a,b,c){function d(c)
{c&&b.appendChild(l(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var
f=c[e];if(!ba(f)||
p(f)&&0<f.nodeType)d(f);else{a:{if(f&&"number"==typeof f.length){if(p(f)){var
g="function"==typeof f.item||"string"==typeof f.item;break a}if("function"==n(f))
{g="function"==typeof f.item;break a}}g=!1}ha(g?ia(f):f,d)}}},fb=function(a)
{for(var b;b=a.firstChild;)a.removeChild(b)},gb=function(a){v(a,"Node cannot be
null or undefined.");return 9==a.nodeType?a:a.ownerDocument||
a.document},hb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},ib={IMG:"
",BR:"\n"},kb=function(a){if(Ra&&null!==a&&"innerText"in
a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];jb(a,b,!
0);a=b.join("")}a=a.replace(/ \xAD /g,"
").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Ra||(a=a.replace(/ +/g," "));" "!
=a&&(a=a.replace(/^\s*/,""));return a},jb=function(a,b,c){if(!(a.nodeName in
hb))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/
(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in
ib)b.push(ib[a.nodeName]);else for(a=a.firstChild;a;)jb(a,b,c),a=a.nextSibling};var
lb=Object.freeze||function(a){return a};var mb=function(){};var nb=!z||
9<=Number(B),ob=z&&!Oa(),pb=function(){if(!k.addEventListener||!
Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",
{get:function(){a=!
0}});k.addEventListener("test",aa,b);k.removeEventListener("test",aa,b);return a}
();var J=function(a,b)
{this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.h=!
1;this.Z=!0};J.prototype.stopPropagation=function(){this.h=!
0};J.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Z=!1};var
K=function(a,b){J.call(this,a?
a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.
screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key
="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKe
y=!1;this.state=null;this.pointerId=0;this.pointerType="";this.o=null;if(a){var
c=this.type=a.type,d=a.changedTouches?
a.changedTouches[0]:null;this.target=a.target||
a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(Ha){a:
{try{Ca(b.nodeName);
var e=!0;break a}catch(f){}e=!1}e||(b=null)}}else"mouseover"==c?
b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;null===d?
(this.offsetX=A||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=A||void 0!
==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?
a.clientX:a.pageX,this.clientY=void 0!==a.clientY?
a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):
(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?
d.clientY:d.pageY,
this.screenX=d.screenX||0,this.screenY=d.screenY||
0);this.button=a.button;this.keyCode=a.keyCode||
0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?
a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;t
his.metaKey=a.metaKey;this.pointerId=a.pointerId||
0;this.pointerType=l(a.pointerType)?
a.pointerType:qb[a.pointerType]||"";this.state=a.state;this.o=a;a.defaultPrevented&
&this.preventDefault()}};r(K,J);var qb=lb({2:"touch",3:"pen",4:"mouse"});
K.prototype.stopPropagation=function()
{K.aa.stopPropagation.call(this);this.o.stopPropagation?
this.o.stopPropagation():this.o.cancelBubble=!
0};K.prototype.preventDefault=function(){K.aa.preventDefault.call(this);var
a=this.o;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!
1,ob)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var
rb="closure_listenable_"+(1E6*Math.random()|0),L=function(a){return!(!a||!
a[rb])},sb=0;var tb=function(a,b,c,d,e)
{this.listener=a;this.F=null;this.src=b;this.type=c;this.capture=!!
d;this.C=e;this.key=++sb;this.l=this.B=!1},ub=function(a){a.l=!
0;a.listener=null;a.F=null;a.src=null;a.C=null};var M=function(a)
{this.src=a;this.c={};this.G=0};M.prototype.add=function(a,b,c,d,e){var
f=a.toString();a=this.c[f];a||(a=this.c[f]=[],this.G++);var g=vb(a,b,d,e);-1<g?
(b=a[g],c||(b.B=!1)):(b=new tb(b,this.src,f,!!d,e),b.B=c,a.push(b));return
b};M.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.c))return!
1;var e=this.c[a];b=vb(e,b,c,d);return-1<b?(ub(e[b]),v(null!
=e.length),Array.prototype.splice.call(e,b,1),0==e.length&&(delete
this.c[a],this.G--),!0):!1};
var wb=function(a,b){var c=b.type;if(c in a.c){var
d=a.c[c],e=fa(d,b),f;if(f=0<=e)v(null!
=d.length),Array.prototype.splice.call(d,e,1);f&&(ub(b),0==a.c[c].length&&(delete
a.c[c],a.G--))}};M.prototype.I=function(a,b,c,d){a=this.c[a.toString()];var e=-
1;a&&(e=vb(a,b,c,d));return-1<e?a[e]:null};M.prototype.hasListener=function(a,b)
{var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return za(this.c,function(a)
{for(var f=0;f<a.length;++f)if(!(c&&a[f].type!=d||e&&a[f].capture!=b))return!
0;return!1})};
var vb=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!
f.l&&f.listener==b&&f.capture==!!c&&f.C==d)return e}return-1};var
xb="closure_lm_"+(1E6*Math.random()|0),yb={},zb=0,N=function(a,b,c,d,e)
{if(d&&d.once)Ab(a,b,c,d,e);else if("array"==n(b))for(var f=0;f<b.length;f+
+)N(a,b[f],c,d,e);else c=Bb(c),L(a)?(d=p(d)?!!d.capture:!!
d,Cb(a),a.f.add(String(b),c,!1,d,e)):Db(a,b,c,!1,d,e)},Db=function(a,b,c,d,e,f)
{if(!b)throw Error("Invalid event type");var g=p(e)?!!e.capture:!!e,x=O(a);x||
(a[xb]=x=new M(a));c=x.add(b,c,d,g,f);if(!c.F)
{d=Eb();c.F=d;d.src=a;d.listener=c;if(a.addEventListener)pb||(e=g),void 0===e&&(e=!
1),a.addEventListener(b.toString(),
d,e);else if(a.attachEvent)a.attachEvent(Fb(b.toString()),d);else
if(a.addListener&&a.removeListener)v("change"===b,"MediaQueryList only has a change
event"),a.addListener(d);else throw Error("addEventListener and attachEvent are
unavailable.");zb++}},Eb=function(){var a=Gb,b=nb?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},Ab=function(a,b,c,d,e){if("array"==n(b))for(var f=0;f<b.length;f+
+)Ab(a,b[f],c,d,e);else c=Bb(c),L(a)?a.f.add(String(b),
c,!0,p(d)?!!d.capture:!!d,e):Db(a,b,c,!0,d,e)},Hb=function(a,b,c,d,e)
{if("array"==n(b))for(var f=0;f<b.length;f++)Hb(a,b[f],c,d,e);else d=p(d)?!!
d.capture:!!d,c=Bb(c),L(a)?
a.f.remove(String(b),c,d,e):a&&(a=O(a))&&(b=a.I(b,c,d,e))&&Ib(b)},Ib=function(a)
{if(!m(a)&&a&&!a.l){var b=a.src;if(L(b))wb(b.f,a);else{var
c=a.type,d=a.F;b.removeEventListener?
b.removeEventListener(c,d,a.capture):b.detachEvent?
b.detachEvent(Fb(c),d):b.addListener&&b.removeListener&&b.removeListener(d);zb--;
(c=O(b))?(wb(c,a),0==
c.G&&(c.src=null,b[xb]=null)):ub(a)}}},Fb=function(a){return a in yb?
yb[a]:yb[a]="on"+a},Kb=function(a,b,c,d){var e=!
0;if(a=O(a))if(b=a.c[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var
f=b[a];f&&f.capture==c&&!f.l&&(f=Jb(f,d),e=e&&!1!==f)}return e},Jb=function(a,b)
{var c=a.listener,d=a.C||a.src;a.B&&Ib(a);return c.call(d,b)},Lb=function(a,b)
{v(L(a),"Can not use goog.events.dispatchEvent with non-goog.events.Listenable
instance.");a.dispatchEvent(b)},Gb=function(a,b){if(a.l)return!0;if(!nb){if(!b)a:
{b=
["window","event"];for(var c=k,d=0;d<b.length;d++)if(c=c[b[d]],null==c)
{b=null;break a}b=c}d=b;b=new K(d,this);c=!0;if(!(0>d.keyCode||void 0!
=d.returnValue)){a:{var e=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(g){e=!
0}if(e||void 0==d.returnValue)d.returnValue=!
0}d=[];for(e=b.currentTarget;e;e=e.parentNode)d.push(e);a=a.type;for(e=d.length-1;!
b.h&&0<=e;e--){b.currentTarget=d[e];var f=Kb(d[e],a,!0,b);c=c&&f}for(e=0;!
b.h&&e<d.length;e++)b.currentTarget=d[e],f=Kb(d[e],a,!1,b),c=c&&f}return c}return
Jb(a,
new K(b,this))},O=function(a){a=a[xb];return a instanceof M?
a:null},Mb="__closure_events_fn_"+(1E9*Math.random()>>>0),Bb=function(a)
{v(a,"Listener can not be null.");if("function"==n(a))return a;v(a.handleEvent,"An
object listener must have handleEvent method.");a[Mb]||(a[Mb]=function(b){return
a.handleEvent(b)});return a[Mb]};var P=function(){this.f=new
M(this);this.ga=this;this.X=null};r(P,mb);P.prototype[rb]=!
0;P.prototype.addEventListener=function(a,b,c,d)
{N(this,a,b,c,d)};P.prototype.removeEventListener=function(a,b,c,d)
{Hb(this,a,b,c,d)};
P.prototype.dispatchEvent=function(a){Cb(this);var b=this.X;if(b){var c=[];for(var
d=1;b;b=b.X)c.push(b),v(1E3>++d,"infinite loop")}b=this.ga;d=a.type||
a;if(l(a))a=new J(a,b);else if(a instanceof J)a.target=a.target||b;else{var
e=a;a=new J(d,b);Ba(a,e)}e=!0;if(c)for(var f=c.length-1;!a.h&&0<=f;f--){var
g=a.currentTarget=c[f];e=Q(g,d,!0,a)&&e}a.h||(g=a.currentTarget=b,e=Q(g,d,!
0,a)&&e,a.h||(e=Q(g,d,!1,a)&&e));if(c)for(f=0;!a.h&&f<c.length;f+
+)g=a.currentTarget=c[f],e=Q(g,d,!1,a)&&e;return e};
var Q=function(a,b,c,d){b=a.f.c[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.l&&g.capture==c){var
x=g.listener,jc=g.C||g.src;g.B&&wb(a.f,g);e=!1!==x.call(jc,d)&&e}}return e&&0!
=d.Z};P.prototype.I=function(a,b,c,d){return
this.f.I(String(a),b,c,d)};P.prototype.hasListener=function(a,b){return
this.f.hasListener(void 0!==a?String(a):void 0,b)};var Cb=function(a){v(a.f,"Event
target is not initialized. Did you call the superclass (goog.events.EventTarget)
constructor?")};var R=function(a,b,c,d)
{this.top=a;this.right=b;this.bottom=c;this.left=d};h=R.prototype;h.clone=function(
){return new R(this.top,this.right,this.bottom,this.left)};h.toString=function()
{return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b,
"+this.left+"l)"};h.contains=function(a){return this&&a?a instanceof R?
a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>
=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
h.expand=function(a,b,c,d){p(a)?(this.top-
=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-
=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return
this};h.ceil=function()
{this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.cei
l(this.bottom);this.left=Math.ceil(this.left);return this};
h.floor=function()
{this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.f
loor(this.bottom);this.left=Math.floor(this.left);return this};h.round=function()
{this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.r
ound(this.bottom);this.left=Math.round(this.left);return this};
h.translate=function(a,b){a instanceof H?
(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):
(ea(a),this.left+=a,this.right+=a,m(b)&&(this.top+=b,this.bottom+=b));return
this};h.scale=function(a,b){b=m(b)?
b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};var
S=function(a,b,c){if(l(b))(b=Nb(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var
e=b[d],f=Nb(c,d);f&&(c.style[f]=e)}},Ob={},Nb=function(a,b){var c=Ob[b];if(!c){var
d=ua(b);c=d;void 0===a.style[d]&&(d=(A?"Webkit":Ha?"Moz":z?"ms":Fa?"O":null)
+va(d),void 0!==a.style[d]&&(c=d));Ob[b]=c}return c},T=function(a,b){var
c=gb(a);return
c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,
null))?a[b]||a.getPropertyValue(b)||"":""},Pb=function(a,b){if(/^\d+px?
$/.test(b))return parseInt(b,
10);var
c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.styl
e.left=b;b=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return+b},U=funct
ion(a,b){return(b=a.currentStyle?a.currentStyle[b]:null)?
Pb(a,b):0},Qb=function(a,b){if(z){var
c=U(a,b+"Left"),d=U(a,b+"Right"),e=U(a,b+"Top");a=U(a,b+"Bottom");return new
R(e,d,a,c)}c=T(a,b+"Left");d=T(a,b+"Right");e=T(a,b+"Top");a=T(a,b+"Bottom");return
new R(parseFloat(e),parseFloat(d),parseFloat(a),parseFloat(c))},Rb={thin:2,
medium:4,thick:6},Sb=function(a,b){if("none"==(a.currentStyle?
a.currentStyle[b+"Style"]:null))return 0;b=a.currentStyle?
a.currentStyle[b+"Width"]:null;return b in Rb?Rb[b]:Pb(a,b)},Tb=function(a){if(z&&!
(9<=Number(B))){var
b=Sb(a,"borderLeft"),c=Sb(a,"borderRight"),d=Sb(a,"borderTop");a=Sb(a,"borderBottom
");return new
R(d,c,a,b)}b=T(a,"borderLeftWidth");c=T(a,"borderRightWidth");d=T(a,"borderTopWidth
");a=T(a,"borderBottomWidth");return new
R(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var V=function(a,b,c,d)
{P.call(this);this.w=a;this.ma=b;this.ra=c;this.ha=d;this.b=null;this.U=new
I(0,0);S(this.w,"overflow","hidden");this.b=document.createElement("img");this.b.sr
c=this.ma;S(this.b,"position","inherit");N(this.b,"load",this.na,!
1,this);N(this.b,"error",this.la,!
1,this)};r(V,P);q("ddab.layouts.utils.DynamicImageFit",V);V.addEventListener=V.prot
otype.addEventListener;V.removeEventListener=V.prototype.removeEventListener;V.prot
otype.ja=function(){return this.b};
V.prototype.getImage=V.prototype.ja;
V.prototype.na=function(){this.U=new I(this.b.width,this.b.height);var a=new
I(this.w.clientWidth,this.w.clientHeight);var b=this.U;var
c=this.ra;if("none"==c||"shrink_to_fit"==c&&b.width<=a.width&&b.height<=a.height)c=
b;else{b=b.aspectRatio();var
d=a.aspectRatio();c="fit"==c&&b>d||"fill"==c&&b<d||"shrink_to_fit"==c&&b>d?new
I(Math.floor(a.width),Math.floor(a.width/b)):new
I(Math.floor(a.height*b),Math.floor(a.height))}b=c;d=this.ha;var e=new H((a.width-
b.width)/2,(a.height-b.height)/2);if("center"!=
d)
{if("top"==d||"top_left"==d||"top_right"==d)e.y=0;if("bottom"==d||"bottom_left"==d|
|"bottom_right"==d)e.y=a.height-
b.height;if("left"==d||"top_left"==d||"bottom_left"==d)e.x=0;if("right"==d||"top_ri
ght"==d||"bottom_right"==d)e.x=a.width-
b.width}this.b.width=c.width;this.b.height=c.height;S(this.b,"left",e.x+"px");S(thi
s.b,"top",e.y+"px");fb(this.w);this.w.appendChild(this.b);Lb(this,"image_load")};V.
prototype.la=function()
{this.b.width=0;this.b.height=0;Lb(this,"image_load_error")};var Ub=function(a,b,c)
{this.reset(a,b,c,void 0,void 0)};Ub.prototype.S=null;var
Vb=0;Ub.prototype.reset=function(a,b,c,d,e){"number"==typeof e||Vb++;d||
ca();this.u=a;delete this.S};Ub.prototype.$=function(a){this.u=a};var W=function(a)
{this.W=a;this.T=this.H=this.u=this.D=null},Wb=function(a,b)
{this.name=a;this.value=b};Wb.prototype.toString=function(){return this.name};var
Xb=new Wb("INFO",800),Yb=new Wb("CONFIG",700);W.prototype.getName=function(){return
this.W};W.prototype.getParent=function(){return this.D};W.prototype.$=function(a)
{this.u=a};var Zb=function(a){if(a.u)return a.u;if(a.D)return Zb(a.D);w("Root
logger has no level set.");return null};
W.prototype.log=function(a,b,c)
{if(a.value>=Zb(this).value)for("function"==n(b)&&(b=b()),a=new
Ub(a,String(b),this.W),c&&(a.S=c),c=this;c;){var d=c,e=a;if(d.T)for(var
f=0;b=d.T[f];f++)b(e);c=c.getParent()}};W.prototype.info=function(a,b)
{this.log(Xb,a,b)};var $b={},ac=null,bc=function(a){ac||(ac=new W(""),$b[""]=ac,ac.
$(Yb));var b;if(!(b=$b[a])){b=new W(a);var
c=a.lastIndexOf("."),d=a.substr(c+1);c=bc(a.substr(0,c));c.H||
(c.H={});c.H[d]=b;b.D=c;$b[a]=b}return
b};q("ddab.layouts.utils.simpleUnicode.CharacterSet",{ua:"cjk"});var
dc=function(a,b){switch(b){case "cjk":var c=cc}return c?c.test(a):!
1};q("ddab.layouts.utils.simpleUnicode.matchesCharacterSet",dc);for(var
ec=[/\u3000-\u303f/,/\u3040-\u309f/,/\u30a0-\u30ff/,/\uff00-\uffef/,/\u4e00-\u9fff/
,/\u3400-\u4dff/,/\uf900-\ufaff/,/\uac00-\ud7a3/],fc="",gc=0,hc=ec.length;gc<hc;gc+
+)fc+=ec[gc].source;var cc=new
RegExp("["+fc+"]");q("ddab.layouts.utils.simpleUnicode.CJK_REGEXP",cc);var
X=function(a,b,c,d){P.call(this);this.a=a;this.V=!
1;this.v=b;a=this.a;b=Qb(a,"padding");var e=Tb(a),f=a.style.maxWidth;f=(f?
parseInt(f,10):a.getBoundingClientRect().width)-e.left-b.left-b.right-
e.right;a=a.getBoundingClientRect().height-e.top-b.top-b.bottom-e.bottom;a=new
I(f,a);this.K=a.width;this.J=a.height;this.P=0;this.R=c;this.ta=d;this.pa=bc("ddab.
layouts.utils.DynamicTextFit");this.i=0;c=parseInt(T(this.a,"fontSize"),10);S(this.
a,"overflow","hidden");(isNaN(c)||c<this.v)&&S(this.a,"font-size",
this.v+"px");this.R||S(this.a,"white-
space","nowrap")};r(X,P);q("ddab.layouts.utils.DynamicTextFit",X);X.addEventListene
r=X.prototype.addEventListener;X.removeEventListener=X.prototype.removeEventListene
r;var
ic=/\s+/,kc={display:"block",margin:0,overflow:"hidden",padding:0,position:"absolut
e",visibility:"hidden"},Y={A:"horizontal",m:"vertical"};
X.prototype.qa=function(){var
a=Math.round(parseFloat(T(this.a,"fontSize"))),b=kb(this.a).trim().split(ic);if(1!
=b.length||!/^[\s\xa0]*$/.test(b[0]))
{a=lc(this,b,a,"vertical");this.P=a=lc(this,b,a,"horizontal");if(this.ta){var
c=this.P,d=b;if(!(c!=this.v||Z(this,d,c,Y.m)&&Z(this,d,c,Y.A)))
{d=mc(this,d,c,Y.m);d=mc(this,d,c,Y.A);a=d.join(" ");var e=Z(this,d,c,Y.A,!
0);d=Z(this,d,c,Y.A,!1);a=1!=b.length||e?a+"\u2026":d?a.slice(0,-
4)+"\u2026":nc(this,a,c);b=this.a;v(null!=b,"goog.dom.setTextContent expects a non-
null value for node");
if("textContent"in b)b.textContent=a;else if(3==b.nodeType)b.data=String(a);else
if(b.firstChild&&3==b.firstChild.nodeType){for(;b.lastChild!
=b.firstChild;)b.removeChild(b.lastChild);b.firstChild.data=String(a)}else
fb(b),c=gb(b),b.appendChild(c.createTextNode(String(a)));this.V=!
0}}Lb(this,"textfit")}};X.prototype.scaleText=X.prototype.qa;X.prototype.sa=functio
n(a,b){var
c=kb(this.a);dc(c,b)&&(this.v=a)};X.prototype.setAlternateMinFontSize=X.prototype.s
a;X.prototype.ka=function(){return this.P};
X.prototype.getScaledFontSize=X.prototype.ka;X.prototype.ia=function(){return
this.i};X.prototype.getCycleCount=X.prototype.ia;X.prototype.oa=function(){return
this.V};X.prototype.isTruncated=X.prototype.oa;
var Z=function(a,b,c,d,e){e=eb("DIV",null,b.join(" ")+
(e?"\u2026":""));a.a.appendChild(e);b=b.length;var
f=T(a.a,"lineHeight");c="vertical"==d?
{fontSize:c+"px",lineHeight:/^[\s\xa0]*$/.test(f)?"normal":f,maxWidth:Math.floor(a.
K)+"px"}:{fontSize:c+"px",height:a.J+"px",lineHeight:"normal"!=f?
f:c+"px",maxWidth:Math.floor(a.K)
+"px",overflow:"auto",whiteSpace:a.R&&1<b?"normal":"nowrap"};Ba(c,kc);S(e,c);c=e.ge
tBoundingClientRect();a="vertical"==d?
Number(a.J.toFixed(4))>=Number(c.height.toFixed(4)):e.scrollWidth<=
a.K;e&&e.parentNode&&e.parentNode.removeChild(e);return a},lc=function(a,b,c,d)
{for(;!Z(a,b,c,d)&&c>a.v;)c--,S(a.a,"font-size",c+"px");return c},oc=function(a,b)
{T(a.a,"line-height");a=Math.floor(a.J/b);return isNaN(a)?-1:a},pc=function(a)
{S(a.a,{overflow:"hidden","text-overflow":"ellipsis","white-
space":"nowrap"})},nc=function(a,b,c){if(a.R)S(a.a,"word-wrap","break-word");else
return pc(a),b;a.i=0;for(var d=b,e=6;!Z(a,[b],c,Y.m,!0)&&0<e;){if(2>oc(a,c))return
pc(a),b;var f=parseInt(.8*b.length,10);
f={O:b.substring(0,f),Y:b.substring(f,b.length)};b=f.O;e--;a.i++}for(e=16;!Z(a,
[b],c,Y.m,!0);){if(2>oc(a,c)||0==e)return pc(a),b;6<b.length?(f=b.length-
6,f={O:b.substring(0,f),Y:b.substring(f,b.length)},b=f.O):b=b.substring(0,b.length-
1);e--;a.i++}e=0;if(f){for(;Z(a,[b],c,Y.m,!0);)b+=f.Y.substr(e,1),e++,a.i+
+;b=b.substring(0,b.length-1);b+="\u2026";a.pa.info(sa("chars started with
",d.length," ended with ",b.length," removed ",d.length-b.length," chars in ",a.i,"
iterations"))}return b},mc=function(a,
b,c,d){for(;1<b.length&&!Z(a,b,c,d,!0);)b.pop();return
b};q("ddab.layouts.utils.styleUtils.getPaddingBox",function(a){return
Qb(a,"padding")});q("ddab.layouts.utils.styleUtils.getMarginBox",function(a){return
Qb(a,"margin")});var qc=function(a){var b=Qb(a,"padding");a=Tb(a);return new
R(b.top+a.top,b.right+a.right,b.bottom+a.bottom,b.left+a.left)};q("ddab.layouts.uti
ls.styleUtils.getPaddingBorderBox",qc);
q("ddab.layouts.utils.styleUtils.getBoundingClientRectContentSize",function(a){var
b=a.getBoundingClientRect(),c=0,d=0;b&&(a=qc(a),c=b.right-b.left-a.right-
a.left,d=b.bottom-b.top-a.bottom-a.top);return new
I(c,d)});q("ng.safehtml.googSceHelper.isGoogHtmlType",function(a){return a&&a.j?!
0:!1});q("ng.safehtml.googSceHelper.isCOMPILED",function(){return!
0});q("ng.safehtml.googSceHelper.unwrapAny",function(a){if(a instanceof D)return
Va(a);if(a instanceof G)return ab(a);if(a instanceof E)return Xa(a);if(a instanceof
F)return Za(a);if(a instanceof C)return Ta(a);throw Error();});
q("ng.safehtml.googSceHelper.unwrapGivenContext",function(a,b){if("html"==a)return
ab(b);if("resourceUrl"==a||"templateUrl"==a)return Va(b);if("url"==a)return b
instanceof D?Va(b):Xa(b);if("css"==a)return Za(b);if("js"==a)return Ta(b);throw
Error();});

You might also like