(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var aa="INPUT",ba="_imgFileNameError",ca="_imgUrlTextError",da="about:invalid#zClosurez",ea="allHolder",fa="aria-expanded",ha="bgresponse",ia="chooseWidget",ja="commentBodyField",e="complete",ka="displayModeLayout",ma="displayModeNone",h="div",na="encodedSelectedId",m="function",oa="goog-zippy-collapsed",pa="goog-zippy-expanded",qa="hidden",ra="identity-type-",sa="identityHolder",ta="identityMenu",ua="keypress",va="layout-widget-description",wa="layout-widget-title",xa="main-status-holder",ya="nameUrlIdentityHolder", n="none",za="number",p="object",Aa="postCommentSubmit",Ba="ready",Ca="rotate(-45deg)",Da="sectionWidth",Ea="select-multiple",Fa="showPreview",Ga="status-message",Ha="status-message-inner",q="string",Ia="subscribeButtonHolder",Ja="success",Ka="true",t,La=function(a){var b=0;return function(){return b>>0),Xa=0,Za=function(a,b,c){return a.call.apply(a.bind, arguments)},$a=function(a,b,c){if(!a)throw Error();if(2c?Math.max(0,a.length+c):c;if(typeof a===q)return typeof b!==q||1!=b.length?-1:a.indexOf(b,c);for(;cc&&(c=Math.max(0,a.length+c));if(typeof a===q)return typeof b!==q||1!=b.length? -1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},ib=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=typeof a===q?a.split(""):a,g=0;gb?null:typeof a===q?a.charAt(b):a[b]},y=function(a,b){return 0<=gb(a,b)},nb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},ob=function(a,b){b=gb(a,b);var c;(c=0<=b)&&Array.prototype.splice.call(a,b,1);return c},pb=function(a){return Array.prototype.concat.apply([],arguments)},qb=function(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a, b):Array.prototype.slice.call(a,b,c)};var sb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},tb=/&/g,ub=//g,xb=/"/g,yb=/'/g,zb=/\x00/g,Ab=/[\x00&<>"']/,z=function(a,b){return-1!=a.indexOf(b)},Bb=function(a,b){return ab?1:0};var A;a:{var Cb=u.navigator;if(Cb){var Db=Cb.userAgent;if(Db){A=Db;break a}}A=""};var Eb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Fb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Gb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Hb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Ib=function(a){for(var b in a)return!1;return!0},Jb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Kb=function(a,b){for(var c,d,f=1;f+~[\]()=^$|]+$/.test(c))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+a);a:{for(var d={"(":")","[":"]"},f=[],g=0;g")&&(a=a.replace(vb,">")),-1!=a.indexOf('"')&&(a=a.replace(xb,""")),-1!=a.indexOf("'")&&(a=a.replace(yb,"'")),-1!=a.indexOf("\x00")&& (a=a.replace(zb,"�")));return a};var oc=function(a){oc[" "](a);return a};oc[" "]=Qa;var pc=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};var qc=z(A,"Opera"),F=z(A,"Trident")||z(A,"MSIE"),rc=z(A,"Edge"),G=z(A,"Gecko")&&!(z(A.toLowerCase(),"webkit")&&!z(A,"Edge"))&&!(z(A,"Trident")||z(A,"MSIE"))&&!z(A,"Edge"),J=z(A.toLowerCase(),"webkit")&&!z(A,"Edge"),sc=z(A,"Macintosh"),tc=function(){var a=u.document;return a?a.documentMode:void 0},uc; a:{var vc="",wc=function(){var a=A;if(G)return/rv:([^\);]+)(\)|;)/.exec(a);if(rc)return/Edge\/([\d\.]+)/.exec(a);if(F)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(J)return/WebKit\/(\S+)/.exec(a);if(qc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();wc&&(vc=wc?wc[1]:"");if(F){var xc=tc();if(null!=xc&&xc>parseFloat(vc)){uc=String(xc);break a}}uc=vc} var yc=uc,zc={},Ac=function(a){return pc(zc,a,function(){for(var b=0,c=sb(String(yc)).split("."),d=sb(String(a)).split("."),f=Math.max(c.length,d.length),g=0;0==b&&g");c=c.join("")}c=Nc(a,c);d&&(typeof d===q?c.className=d:Array.isArray(d)?c.className=d.join(" "):Kc(c,d));22*this.b&&this.pb(),!0):!1};t.pb=function(){if(this.b!=this.c.length){for(var a=0,b=0;a=d.c.length)throw Qc;var g=d.c[b++];return a?g:d.j[g]};return f};var Tc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var L=function(){this.ua=this.ua;this.Kb=this.Kb};L.prototype.ua=!1;L.prototype.ka=function(){this.ua||(this.ua=!0,this.h())};L.prototype.h=function(){if(this.Kb)for(;this.Kb.length;)this.Kb.shift()()};var Uc=function(a){a&&typeof a.ka==m&&a.ka()};var Vc=!F||9<=Number(Dc),Wc=F&&!Ac("9"),Xc=function(){if(!u.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{u.addEventListener("test",Qa,b),u.removeEventListener("test",Qa,b)}catch(c){}return a}();var O=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.ra=!1};O.prototype.stopPropagation=function(){this.ra=!0};O.prototype.preventDefault=function(){this.defaultPrevented=!0};var P=function(a,b){O.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.wa=null;a&&this.Vd(a,b)};x(P,O); P.prototype.Vd=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(G){a:{try{oc(b.nodeName);var d=!0;break a}catch(f){}d=!1}d||(b=null)}}else"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c==ua?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.wa=a;a.defaultPrevented&& this.preventDefault()};P.prototype.stopPropagation=function(){P.l.stopPropagation.call(this);this.wa.stopPropagation?this.wa.stopPropagation():this.wa.cancelBubble=!0};P.prototype.preventDefault=function(){P.l.preventDefault.call(this);var a=this.wa;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Wc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Yc="closure_listenable_"+(1E6*Math.random()|0),Zc=function(a){return!(!a||!a[Yc])},$c=0;var ad=function(a,b,c,d,f,g){this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!f;this.xb=g;this.key=++$c;this.Fa=this.mb=!1};ad.prototype.Ib=function(){this.Fa=!0;this.xb=this.src=this.proxy=this.listener=null};var bd=function(a){this.src=a;this.m={};this.gb=0};t=bd.prototype;t.add=function(a,b,c,d,f){var g=a.toString();a=this.m[g];a||(a=this.m[g]=[],this.gb++);var k=cd(a,b,d,f);-1d.keyCode||void 0!=d.returnValue)){a:{var f=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(k){f=!0}if(f||void 0==d.returnValue)d.returnValue=!0}d=[];for(f=b.currentTarget;f;f=f.parentNode)d.push(f);a=a.type;for(f= d.length-1;!b.ra&&0<=f;f--){b.currentTarget=d[f];var g=rd(d[f],a,!0,b);c=c&&g}for(f=0;!b.ra&&f>>0),hd=function(a){if(Ua(a))return a;a[sd]||(a[sd]=function(b){return a.handleEvent(b)});return a[sd]};var td=function(a){L.call(this);this.za=a;this.c={}};x(td,L);var ud=[];t=td.prototype;t.Ea=function(a,b,c,d){return this.Qg(a,b,c,d)};t.Qg=function(a,b,c,d,f){Array.isArray(b)||(b&&(ud[0]=b.toString()),b=ud);for(var g=0;ga)throw Error("Bad port number "+a);this.Lb=a}else this.Lb=null;return this};t.getPath=function(){return this.te};t.setPath=function(a,b){this.ca();this.te=b?Sd(a,!0):a;return this}; t.Me=function(a,b){this.ca();a instanceof Md?(this.ga=a,this.ga.Qc(this.G)):(b||(a=Nd(a,Td)),this.ga=new Md(a,this.G));return this};t.kg=function(){return this.ga.toString()};t.Pb=function(a,b){this.ca();this.ga.set(a,b);return this};t.Je=function(a,b){this.ca();this.Na=b?Sd(a):a;return this};t.ca=function(){if(this.Og)throw Error("Tried to modify a read-only Uri");};t.Qc=function(a){this.G=a;this.ga&&this.ga.Qc(a);return this}; var Sd=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Nd=function(a,b,c){return typeof a===q?(a=encodeURI(a).replace(b,Ud),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Ud=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Od=/[#\/\?@]/g,Qd=/[#\?:]/g,Pd=/[#\?]/g,Td=/[#\?@]/g,Rd=/#/g,Md=function(a,b){this.b=this.g=null;this.ba=a||null;this.G=!!b};t=Md.prototype; t.P=function(){if(!this.g&&(this.g=new Sc,this.b=0,this.ba)){var a=this;Dd(this.ba,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)})}};t.o=function(){this.P();return this.b};t.add=function(a,b){this.P();this.Ca();a=this.ya(a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.b+=1;return this};t.remove=function(a){this.P();a=this.ya(a);return this.g.ja(a)?(this.Ca(),this.b-=this.g.get(a).length,this.g.remove(a)):!1};t.clear=function(){this.Ca();this.g=null;this.b=0}; t.isEmpty=function(){this.P();return 0==this.b};t.ja=function(a){this.P();a=this.ya(a);return this.g.ja(a)};t.forEach=function(a,b){this.P();this.g.forEach(function(c,d){ib(c,function(f){a.call(b,f,d,this)},this)},this)};t.L=function(){this.P();for(var a=this.g.v(),b=this.g.L(),c=[],d=0;d(navigator.userAgent.match(l)||[])[1]||537>(navigator.userAgent.match(k)||[])[1]||r.test(navigator.userAgent)&& N:g.test(navigator.userAgent)||10547>(navigator.userAgent.match(l)||[])[1]||537>(navigator.userAgent.match(k)||[])[1]||r.test(navigator.userAgent)&&N;var pe={},wb=document.getElementsByTagName("use"),qe=0;oe&&b()};var te=function(a){return/^[A-Za-z0-9]+$/.test(a)||/^#[0-9A-Fa-f]{3}$/.test(a)||/^#[0-9A-Fa-f]{6}$/.test(a)||/^rgb *\( *\d{1,3}%? *, *\d{1,3}%? *, *\d{1,3}%? *\)$/.test(a)||/^rgba *\( *\d{1,3}%? *, *\d{1,3}%? *, *\d{1,3}%? *, *\d{1,3}%? *\)$/.test(a)},ue=function(a){a=a.split(",");for(var b=0;b=a|| 96<=a&&106>=a||65<=a&&90>=a||(J||rc)&&0==a)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:return G;default:return!1}},Ze=function(a){if(G)a=af(a);else if(sc&&J)switch(a){case 93:a=91}return a},af=function(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224; default:return a}};var bf=function(a,b){R.call(this);a&&this.rd(a,b)};x(bf,R);t=bf.prototype;t.va=null;t.Eb=null;t.xc=null;t.Fb=null;t.F=-1;t.X=-1;t.fc=!1; var cf={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},df={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},ef=!J||Ac("525"),ff=sc&&G;t=bf.prototype; t.zg=function(a){(J||rc)&&(17==this.F&&!a.ctrlKey||18==this.F&&!a.altKey||sc&&91==this.F&&!a.metaKey)&&this.Ce();-1==this.F&&(a.ctrlKey&&17!=a.keyCode?this.F=17:a.altKey&&18!=a.keyCode?this.F=18:a.metaKey&&91!=a.keyCode&&(this.F=91));ef&&!$e(a.keyCode,this.F,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?this.handleEvent(a):(this.X=Ze(a.keyCode),ff&&(this.fc=a.altKey))};t.Ce=function(){this.X=this.F=-1};t.Ag=function(a){this.Ce();this.fc=a.altKey}; t.handleEvent=function(a){var b=a.wa,c=b.altKey;if(F&&a.type==ua){var d=this.X;var f=13!=d&&27!=d?b.keyCode:0}else(J||rc)&&a.type==ua?(d=this.X,f=0<=b.charCode&&63232>b.charCode&&Ye(d)?b.charCode:0):qc&&!J?(d=this.X,f=Ye(d)?b.keyCode:0):(a.type==ua?(ff&&(c=this.fc),b.keyCode==b.charCode?32>b.keyCode?(d=b.keyCode,f=0):(d=this.X,f=b.charCode):(d=b.keyCode||this.X,f=b.charCode||0)):(d=b.keyCode||this.X,f=b.charCode||0),sc&&63==f&&224==d&&(d=191));var g=d=Ze(d);d?63232<=d&&d in cf?g=cf[d]:25==d&&a.shiftKey&& (g=9):b.keyIdentifier&&b.keyIdentifier in df&&(g=df[b.keyIdentifier]);G&&ef&&a.type==ua&&!$e(g,this.F,a.shiftKey,a.ctrlKey,c,a.metaKey)||(a=g==this.F,this.F=g,b=new gf(g,f,a,b),b.altKey=c,this.dispatchEvent(b))};t.Oa=function(){return this.va};t.rd=function(a,b){this.Fb&&this.detach();this.va=a;this.Eb=Q(this.va,ua,this,b);this.xc=Q(this.va,"keydown",this.zg,b,this);this.Fb=Q(this.va,"keyup",this.Ag,b,this)}; t.detach=function(){this.Eb&&(od(this.Eb),od(this.xc),od(this.Fb),this.Fb=this.xc=this.Eb=null);this.va=null;this.X=this.F=-1};t.h=function(){bf.l.h.call(this);this.detach()};var gf=function(a,b,c,d){P.call(this,d);this.type="key";this.keyCode=a;this.charCode=b};x(gf,P);var hf={},jf=null,kf=function(a){a=Ya(a);delete hf[a];Ib(hf)&&jf&&jf.stop()},mf=function(){jf||(jf=new Xe(function(){lf(bb())},20));var a=jf;a.Cb()||a.start()},lf=function(a){Eb(hf,function(b){b.dh(a)});Ib(hf)||mf()};var nf=function(){R.call(this);this.fb=0;this.endTime=this.startTime=null};x(nf,R);t=nf.prototype;t.Gh=function(){this.fb=1};t.Oe=function(){this.fb=0};t.$d=function(){return 1==this.fb};t.Zd=function(){return-1==this.fb};t.ae=function(){return 0==this.fb};t.eh=function(){this.S("begin")};t.oe=function(){this.S("end")};t.kh=function(){this.S("finish")};t.nh=function(){this.S("play")};t.rh=function(){this.S("resume")};t.sh=function(){this.S("stop")};t.S=function(a){this.dispatchEvent(a)};var of=function(a,b,c,d){nf.call(this);if(!Array.isArray(a)||!Array.isArray(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.eb=a;this.hg=b;this.duration=c;this.md=d;this.coords=[];this.progress=0};x(of,nf);t=of.prototype; t.play=function(a){if(a||this.ae())this.progress=0,this.coords=this.eb;else if(this.$d())return!1;kf(this);this.startTime=a=bb();this.Zd()&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.progress||this.eh();this.nh();this.Zd()&&this.rh();this.Gh();var b=Ya(this);b in hf||(hf[b]=this);mf();this.Ad(a);return!0};t.stop=function(a){kf(this);this.Oe();a&&(this.progress=1);this.We(this.progress);this.sh();this.oe()}; t.h=function(){this.ae()||this.stop(!1);this.hh();of.l.h.call(this)};t.dh=function(a){this.Ad(a)};t.Ad=function(a){athis.Jb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.V=new zf;this.fa=new Af;this.delay=0;this.zc=null;this.kb()};x(Cf,L);t=Cf.prototype;t.ub=function(){var a=bb();if(!(null!=this.zc&&a-this.zcthis.Jb&&0=this.o()){for(var c=this.M,d=0;d=b))return 1==b?nb(a):(a[0]=a.pop(),this.Vg(0)),c.Yc}; t.Vg=function(a){for(var b=this.M,c=b.length,d=b[a];a>1;){var f=this.og(a),g=this.sg(a);f=gd.getKey())break;b[a]=b[f];a=f}b[a]=d};t.Yg=function(a){for(var b=this.M,c=b[a];0c.getKey())b[a]=b[d],a=d;else break}b[a]=c};t.og=function(a){return 2*a+1};t.sg=function(a){return 2*a+2};t.pg=function(a){return a-1>>1};t.v=function(){for(var a=this.M,b=[],c=a.length,d=0;dthis.Ec};t.Dh=function(a){this.yd=a};t.Ch=function(a){this.ld=a};function Mf(a,b,c,d,f){this.Va=a;this.Fe=b;this.Ee=c||null;this.data=d||null;if(f){if(this.lc=f,"displayModeSnippet"!=f&&"displayModeFull"!=f&&f!=ka&&f!=ma)throw"bad display mode: "+f;}else this.lc=ma;this.Db=!1}Mf.prototype.ng=function(){return this.Va};function Nf(a){this.cg=!0;this.B=a;this.Tb=null}t=Nf.prototype;t.Hf=function(a){this.Tb=a};t.gf=function(){return this.B.data};t.Cf=function(a){return this.B.data=a};t.Ef=function(a){return this.B.Db=a}; t.df=function(){var a={};a.type=this.Tb.Ue;a.instanceId=this.B.Va;a.sectionId=this.B.Fe;a.actionUrl=X.hc;a.quickEditUrl=X.Gd+"&widgetType="+this.Tb.Ue+"&widgetId="+this.B.Va+"§ionId="+this.B.Fe+"&action="+X.bd;return a};t.ac=function(a,b,c,d){b=b||{};window.__wavt&&(b.xssi_token=window.__wavt);X.ac(a,b,this.B.Va,this.Tb.Ue,c,d)};function X(){}X.lf=function(a,b,c){X.ha={};X.Gd=a;X.hc=b;X.Rh=c;X.Qa={};X.Vb=new If;X.ne=0;X.Kc=0;Q(X.Vb,Ba,function(){X.Kc++});Q(X.Vb,e,function(){X.Kc--})}; X.Kf=function(a){a=X.af(a.document);document.body.appendChild(a)};X.If=function(a){X.Kf(window);if(window.parent==window){var b="Preview";a&&(b=a);a=X.$e(window.document,b);document.body.appendChild(a[0]);document.body.appendChild(a[1])}};X.nf=ia;X.Ze=ia;X.bd="editWidget";X.ff=function(){return X.hc};X.Ff=function(a,b){X.Hc=a;X.uh=b};X.jf=function(){return X.Hc};X.Gf=function(a){X.Kh=a};X.cd=function(){return X.Kh};X.Df=function(a){X.Qa=a}; X.ef=function(){var a={},b;for(b in X.Qa){var c=X.Qa[b];a[c.name]=c.data}c={};for(b in X.ha)c[b]=X.ha[b].A.B.data;a.widgets=c;return a};X.ed=function(a,b){var c=new Nf(b);a=new window[a](c);c.Hf(a);X.ha[b.Va]=a;X.ad(a);return a};X.uf=function(a,b){a=X.ed(a,b);a.A.Ef(!0);return a};X.ad=function(a){a.A.B.lc!=ma&&(a.A.cg=!1)};X.ta=function(a){return X.ha?X.ha[a]:null}; X.$b=function(a,b,c,d,f){var g="";d&&(g="&widgetId="+d);a=X.Gd+"&action="+a+"§ionId="+b+"&widgetType="+c+g;if(window.name==f)return window.location.replace(a),window.focus(),window;f=window.open(a,f,"width=570,height=600,left=75,top=20,resizable=yes,scrollbars=yes");f.focus();return f}; X.sf=function(a){var b=a.getAttribute("id"),c=X.ta(b);if(c){var d=c.A.La;if(null!=d&&!d.closed)return d.focus(),!1}d="config"+b;a=X.$b(X.bd,a.parentNode.getAttribute("id"),a.getAttribute("widgetType"),b,d);c&&(c.A.La=a);return!1};X.tf=function(a){X.$b(X.Ze,a.parentNode.getAttribute("id"),a.getAttribute("widgetType"),a.getAttribute("id"),X.nf);return!1};X.bf=function(a,b,c){X.ia(c,c.LayoutsMessages.DELETING);X.gd("delete",{},a,b)}; Nf.prototype.zf=function(a,b){X.ia(b,b.LayoutsMessages.SAVING);this.ac("configure",a)};X.Af=function(a,b,c){a.sectionid=document.getElementById("sectionId").value;X.ia(c,c.LayoutsMessages.SAVING);X.gd("addnew",a,"",b)};X.Nh=function(a,b,c){b=X.ta(b);b.A.B.Db?X.Af(a,c,window):b.A.zf(a,window)};X.ac=function(a,b,c,d,f,g){X.fd(X.hc,a,b,c,d,f,g)};X.gd=function(a,b,c,d,f){X.Hc&&(b.security_token=X.uh,X.fd(X.Hc,a,b,c,d,f))}; X.fd=function(a,b,c,d,f,g,k){b=["action="+encodeURIComponent(b),"widgetId="+encodeURIComponent(d),"widgetType="+encodeURIComponent(f),"responseType=js"];for(var l in c)if(typeof c[l]==p)for(d=c[l],f=0;fthis.ab&&(a=this.ab/this.s.width);this.s.height>this.ab&&(b=this.ab/this.s.height);a=Math.min(a,b);this.I.style.width=Math.round(this.s.width*a)+"px";this.I.style.height=Math.round(this.s.height*a)+"px";this.I.src=this.s.src;this.I.style.display="";this.yb.style.display=n;this.nb.style.display="";this.f.disabled=!0;this.ee&&this.ee.call({}, this.I.src,this.tc,this.Aa,this.zb)};t.cb=function(a,b,c,d){a?(Of(this.D+ba,b),Qf(this.D+ca)):(Of(this.D+ca,b),Qf(this.D+ba));this.I.style.display=n;this.yb.style.display="";this.nb.style.display=n;this.f.disabled=!1;this.ce&&this.ce.call({},c,d)};t.jh=function(){if(2>this.sc){this.sc++;var a=this.s.src;this.s.src="";this.Za(a)}else this.cb(this.uc.checked,WidgetMessages.SIV_INVALID_URL,this.I.src,[])};t.Za=function(a){this.Re();this.s.src=a}; t.Wf=function(a){a=a||window.event;window.event?(a.returnValue=!1,a.cancelBubble=!0):(a.preventDefault(),a.stopPropagation());this.I.style.display=n;this.nb.style.display=n;this.yb.style.display="";this.f.disabled=!1;this.Ta.value="";this.Be();this.Nc=!0;this.de&&this.de.call({})};t.Eg=function(){this.uc.checked=Ka;this.Ta.value="";this.Re();this.Xg();this.Id=!0;try{this.u.submit()}catch(a){this.cb(!0,WidgetMessages.SIV_INVALID_URL,this.u.value,[])}this.Wg()}; t.ic=function(){var a=this.qd.document.result;if(a)if(a.hasErrors)0c?(b=c/b,this.Aa=Math.round(a.origWidth*b),this.zb=Math.round(a.origHeight*b)):(this.Aa=a.origWidth,this.zb=a.origHeight);this.tc=a.mainSrc;this.Za(a.thumbSrc)}else this.cb(!0,WidgetMessages.SIV_INVALID_URL,this.f.value, [])};t.Fg=function(a){9!=(a||window.event).keyCode&&(this.Ud.checked=Ka,null!=this.Gb&&(window.clearTimeout(this.Gb),this.Gb=null),a=v(this.Pg,this),this.Gb=window.setTimeout(a,1E3))};t.Pg=function(){if(this.Nc||this.s.src!=this.Ta.value)this.Be(),this.Za(this.Ta.value);this.Nc=!1};t.Rg=function(a){this.Ud.checked=!0;this.Ta.value=a;this.Za(a)}; t.Re=function(){this.I.src="https://resources.blogblog.com/img/icon_inprogress.gif";this.I.style.width=this.Dc;this.I.style.height=this.Dc;this.I.style.display="";this.yb.style.display=n;this.nb.style.display=n}; t.Xg=function(){if(!this.u){this.u=document.createElement("form");this.u.action="imageUpload.do";this.u.method="POST";this.u.target=this.qd.name;this.u.encoding="multipart/form-data";this.u.style.display=n;if(this.ud){var a=Nc(document,aa);a.type=qa;a.name="blogID";a.value=this.ud;this.u.appendChild(a)}a=Nc(document,aa);a.type=qa;a.name=Da;a.id=Da;this.u.appendChild(a);a=Nc(document,aa);a.type=qa;a.name="security_token";a.value=this.Bh;this.u.appendChild(a);document.body.appendChild(this.u)}a=this.Sd(); -1==a&&(a=1600);document.getElementById(Da).value=a;this.xa={parent:this.f.parentNode,nextSibling:this.f.nextSibling};this.f.parentNode.removeChild(this.f);this.u.appendChild(this.f)};t.Eh=function(a){this.ab=a;this.Dc=a+"px"};t.Wg=function(){this.u.removeChild(this.f);this.xa&&this.xa.nextSibling?this.xa.parent.insertBefore(this.f,this.xa.nextSibling):this.xa.parent.appendChild(this.f)}; t.Be=function(){var a=Nc(document,aa);a.type="file";a.name=this.f.name;a.id=this.f.id;a.onchange=this.f.onchange;var b=this.f.nextSibling;null==b?this.f.parentNode.appendChild(a):this.f.parentNode.insertBefore(a,b);this.f.parentNode.removeChild(this.f);this.f=a};t.Sd=function(){return-1==this.Ge&&this.fe?this.fe():this.Ge};function Z(){this.Xc={}}var Rf=new Z;Z.prototype.Zf=function(a,b,c,d,f,g,k,l){this.Xc[a]=new Y(a,b,eval(c),eval(d),eval(f),g,eval(k),l);return this.Xc[a]};Z.prototype.Rd=function(a){return this.Xc[a]}; Z.prototype.ic=function(a){(a=this.Rd(a))&&a.Id&&a.ic()};w("_UploadSimpleImage",Rf);Z.prototype._createUsiContainer=Z.prototype.Zf;Z.prototype._getUsiContainer=Z.prototype.Rd;Z.prototype._channelResultArrived=Z.prototype.ic;Y.prototype._changeImage=Y.prototype.Wf;Y.prototype._imgUrlFileOnChange=Y.prototype.Eg;Y.prototype._imgUrlTextOnKeyUp=Y.prototype.Fg;Y.prototype._loadInitialUrl=Y.prototype.Rg;Y.prototype._loadImageFromUrl=Y.prototype.Za;Y.prototype._setPreviewSize=Y.prototype.Eh;}).call(this);