Advertisement
Chriser_

amp-ad-0.1.js

Jun 10th, 2018
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (self.AMP=self.AMP||[]).push({n:"amp-ad",v:"1528391646530",f:(function(AMP){var k;function m(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]}function r(a,b){b=void 0===b?"":b;try{return decodeURIComponent(a)}catch(c){return b}};var aa=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function t(a){var b=Object.create(null);if(!a)return b;for(var c;c=aa.exec(a);){var d=r(c[1],c[1]),e=c[2]?r(c[2],c[2]):"";b[d]=e}return b};var ba="";function u(){var a=void 0,b=a||self,c;if(b.AMP_MODE)c=b.AMP_MODE;else{c=b;var d=t(c.location.originalHash||c.location.hash),e=t(c.location.search);ba||(ba=c.AMP_CONFIG&&c.AMP_CONFIG.v?c.AMP_CONFIG.v:"011528391646530");c=b.AMP_MODE={localDev:!1,development:!("1"!=d.development&&!c.AMP_DEV_MODE),examiner:"2"==d.development,filter:d.filter,geoOverride:d["amp-geo"],minified:!0,lite:void 0!=e.amp_lite,test:!1,log:d.log,version:"1528391646530",rtvVersion:ba}}return c};function ca(a){return"number"===typeof a&&isFinite(a)};self.log=self.log||{user:null,dev:null,userForEmbed:null};var y=self.log;function z(){if(!y.user)throw Error("failed to call initLogConstructor");return y.user}function B(){if(y.dev)return y.dev;throw Error("failed to call initLogConstructor");};var da=Object.prototype.hasOwnProperty;function C(a){var b=Object.create(null);a&&Object.assign(b,a);return b}function D(a){return a||{}};function G(a,b){return b.length>a.length?!1:0==a.lastIndexOf(b,0)};var ea=self.AMP_CONFIG||{},ga=ea.thirdPartyUrl||"https://3p.ampproject.net",ha=ea.thirdPartyFrameHost||"ampproject.net";function H(a){this.ka=a;this.P=this.X=0;this.L=Object.create(null)}H.prototype.has=function(a){return!!this.L[a]};H.prototype.get=function(a){var b=this.L[a];if(b)return b.access=++this.P,b.payload};H.prototype.put=function(a,b){this.has(a)||this.X++;this.L[a]={payload:b,access:this.P};if(!(this.X<=this.ka)){B().warn("lru-cache","Trimming LRU cache");a=this.L;var c=this.P+1,d,e;for(e in a){var f=a[e].access;f<c&&(c=f,d=e)}void 0!==d&&(delete a[d],this.X--)}};D({c:!0,v:!0,a:!0,ad:!0});var ia,ja;
  2. function I(a){var b;ia||(ia=self.document.createElement("a"),ja=self.UrlCache||(self.UrlCache=new H(100)));var c=b?null:ja,d=ia;if(c&&c.has(a))a=c.get(a);else{d.href=a;d.protocol||(d.href=d.href);var e={href:d.href,protocol:d.protocol,host:d.host,hostname:d.hostname,port:"0"==d.port?"":d.port,pathname:d.pathname,search:d.search,hash:d.hash,origin:null};"/"!==e.pathname[0]&&(e.pathname="/"+e.pathname);if("http:"==e.protocol&&80==e.port||"https:"==e.protocol&&443==e.port)e.port="",e.host=e.hostname;
  3. e.origin=d.origin&&"null"!=d.origin?d.origin:"data:"!=e.protocol&&e.host?e.protocol+"//"+e.host:e.href;c&&c.put(a,e);a=e}return a}function ka(a){"string"==typeof a&&(a=I(a));var b;(b="https:"==a.protocol||"localhost"==a.hostname)||(a=a.hostname,b=a.length-10,b=0<=b&&a.indexOf(".localhost",b)==b);return b};function J(a,b){var c=la(a);return!!c[b]}
  4. function la(a){if(a.__AMP__EXPERIMENT_TOGGLES)return a.__AMP__EXPERIMENT_TOGGLES;a.__AMP__EXPERIMENT_TOGGLES=Object.create(null);var b=a.__AMP__EXPERIMENT_TOGGLES;if(a.AMP_CONFIG)for(var c in a.AMP_CONFIG){var d=a.AMP_CONFIG[c];"number"===typeof d&&0<=d&&1>=d&&(b[c]=Math.random()<d)}if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-doc-opt-in"])&&0<a.AMP_CONFIG["allow-doc-opt-in"].length){var e=a.AMP_CONFIG["allow-doc-opt-in"],f=a.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(f){var g=
  5. f.getAttribute("content").split(",");for(c=0;c<g.length;c++)-1!=e.indexOf(g[c])&&(b[g[c]]=!0)}}Object.assign(b,ma(a));if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-url-opt-in"])&&0<a.AMP_CONFIG["allow-url-opt-in"].length){c=a.AMP_CONFIG["allow-url-opt-in"];a=t(a.location.originalHash||a.location.hash);for(var h=0;h<c.length;h++){var l=a["e-"+c[h]];"1"==l&&(b[c[h]]=!0);"0"==l&&(b[c[h]]=!1)}}return b}
  6. function ma(a){a:{var b;try{b=a.document.cookie}catch(h){b=""}if(a=b)for(a=a.split(";"),b=0;b<a.length;b++){var c=a[b].trim(),d=c.indexOf("="),e;if(e=-1!=d)e=c.substring(0,d).trim(),e="AMP_EXP"==r(e,void 0);if(e){a=c.substring(d+1).trim();a=r(a,a);break a}}a=null}var f=a,g=f?f.split(/\s*,\s*/g):[];a=Object.create(null);for(b=0;b<g.length;b++)0!=g[b].length&&("-"==g[b][0]?a[g[b].substr(1)]=!1:a[g[b]]=!0);return a}
  7. function na(a,b){a.experimentBranches=a.experimentBranches||{};var c={},d;for(d in b)if(b.hasOwnProperty(d))if(a.experimentBranches.hasOwnProperty(d))c[d]=a.experimentBranches[d];else if(!b[d].isTrafficEligible||!b[d].isTrafficEligible(a))a.experimentBranches[d]=null;else if(!a.experimentBranches[d]&&J(a,d)){var e=b[d].branches,f=e;a.experimentBranches[d]=f[Math.floor(Math.random()*f.length)]||null;c[d]=a.experimentBranches[d]}}
  8. function oa(a,b,c){a.experimentBranches=a.experimentBranches||{};var d=!!c,e=J(a,b),d=!(void 0!==d?!d:e);d!=e&&(la(a)[b]=d);a.experimentBranches[b]=c};function pa(a){for(var b=a.nodeName,c=0,d=0,e=a.previousElementSibling;e&&25>d&&100>c;)e.nodeName==b&&d++,c++,e=e.previousElementSibling;return 25>d&&100>c?"."+d:""};function K(){var a,b;this.promise=new Promise(function(c,d){a=c;b=d});this.resolve=a;this.reject=b};function qa(a){if(a.nodeType){var b=(a.ownerDocument||a).defaultView;if(b=b!=(b.__AMP_TOP||b)&&ra(b,"url-replace")?sa(b,"url-replace"):null)return b}return L(a,"url-replace")}function M(a,b){a=a.__AMP_TOP||a;return sa(a,b)}function L(a,b){a=N(a);a=ta(a);return sa(a,b)}function ua(a,b){return va(ta(a),b)}function N(a){return a.nodeType?M((a.ownerDocument||a).defaultView,"ampdoc").getAmpDoc(a):a}function ta(a){a=N(a);return a.isSingleDoc()?a.win:a}
  9. function sa(a,b){ra(a,b);var c=wa(a);a=c[b];a.obj||(a.obj=new a.ctor(a.context),a.ctor=null,a.context=null,a.resolve&&a.resolve(a.obj));return a.obj}function xa(a,b){var c=va(a,b);if(c)return c;var d=new K,e=d,f=e.promise,e=e.resolve;wa(a)[b]={obj:null,promise:f,resolve:e,context:null,ctor:null};return f}function va(a,b){var c=wa(a)[b];if(c){if(c.promise)return c.promise;sa(a,b);return c.promise=Promise.resolve(c.obj)}return null}function wa(a){var b=a.services;b||(b=a.services={});return b}
  10. function ra(a,b){a=a.services&&a.services[b];return!(!a||!a.ctor&&!a.obj)};/*
  11.  https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
  12. function ya(a,b,c){a=a.createElement(b);for(var d in c)a.setAttribute(d,c[d]);return a}var za;function Aa(a,b){for(var c=[],d=a.parentElement;d;d=d.parentElement)b(d)&&c.push(d);return c}function Ba(a){var b="BODY",b=b.toUpperCase();return Aa(a,function(a){return a.tagName==b})};var Ca=[];function Da(a,b,c){return Ea(a,b,c,void 0).then(function(a){return z().assert(a,"Service %s was requested to be provided through %s, but %s is not loaded in the current page. To fix this problem load the JavaScript file for %s in this page.",b,c,c,c)})}function Ea(a,b,c,d){var e=N(a),f=ua(a,b);return f?f:e.whenBodyAvailable().then(function(){return Fa(e.win,c)}).then(function(){var f;d?f=ua(a,b):(f=e.win,f=f.ampExtendedElements&&f.ampExtendedElements[c]?xa(ta(a),b):null);return f})}
  13. function Fa(a,b){return Promise.resolve().then(function(){if(Ca.includes(b)){var c=M(a,"extensions");return c.waitForExtension(a,b)}})};function Ga(a){var b=!0;if(b=void 0===b?!1:b){var c=N(a);M(c.win,"extensions").installExtensionForDoc(c,"amp-analytics")}return Da(a,"amp-analytics-instrumentation","amp-analytics")}function Ha(a){return Ea(a,"amp-analytics-instrumentation","amp-analytics")}function Ia(a){return Ea(a,"consentPolicyManager","amp-consent")};var O={_ping_:{renderStartImplemented:!0,clientIdScope:"_PING_",consentHandlingOverride:!0},"24smi":{prefetch:"https://jsn.24smi.net/smi.js",preconnect:"https://data.24smi.net"},a8:{prefetch:"https://statics.a8.net/amp/ad.js",renderStartImplemented:!0},a9:{prefetch:"https://c.amazon-adsystem.com/aax2/assoc.js"},accesstrade:{prefetch:"https://h.accesstrade.net/js/amp/amp.js"},adagio:{prefetch:"https://js-ssl.neodatagroup.com/adagio_amp.js",preconnect:["https://ad-aws-it.neodatagroup.com","https://tracker.neodatagroup.com"],
  14. renderStartImplemented:!0},adblade:{prefetch:"https://web.adblade.com/js/ads/async/show.js",preconnect:["https://staticd.cdn.adblade.com","https://static.adblade.com"],renderStartImplemented:!0},adbutler:{prefetch:"https://servedbyadbutler.com/app.js"},adform:{},adfox:{prefetch:"https://yastatic.net/pcode/adfox/loader.js",renderStartImplemented:!0},adgeneration:{prefetch:"https://i.socdm.com/sdk/js/adg-script-loader.js"},adhese:{renderStartImplemented:!0},adincube:{renderStartImplemented:!0},adition:{},
  15. adman:{},admanmedia:{renderStartImplemented:!0},admixer:{renderStartImplemented:!0,preconnect:["https://inv-nets.admixer.net","https://cdn.admixer.net"]},adocean:{},adpicker:{renderStartImplemented:!0},adplugg:{prefetch:"https://www.adplugg.com/serve/js/ad.js",renderStartImplemented:!0},adreactor:{},adsense:{prefetch:"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",preconnect:"https://googleads.g.doubleclick.net",clientIdScope:"AMP_ECID_GOOGLE",clientIdCookieName:"_ga",remoteHTMLDisabled:!0,
  16. masterFrameAccessibleType:"google_network",fullWidthHeightRatio:1.2,consentHandlingOverride:!0},adsnative:{prefetch:"https://static.adsnative.com/static/js/render.v1.js",preconnect:"https://api.adsnative.com"},adspeed:{preconnect:"https://g.adspeed.net",renderStartImplemented:!0},adspirit:{},adstir:{prefetch:"https://js.ad-stir.com/js/adstir_async.js",preconnect:"https://ad.ad-stir.com"},adtech:{prefetch:"https://s.aolcdn.com/os/ads/adsWrapper3.js",preconnect:["https://mads.at.atwola.com","https://aka-cdn.adtechus.com"]},
  17. adthrive:{prefetch:["https://www.googletagservices.com/tag/js/gpt.js"],preconnect:["https://partner.googleadservices.com","https://securepubads.g.doubleclick.net","https://tpc.googlesyndication.com"],renderStartImplemented:!0},adunity:{preconnect:["https://content.adunity.com"],renderStartImplemented:!0},aduptech:{prefetch:"https://s.d.adup-tech.com/jsapi",preconnect:["https://d.adup-tech.com","https://m.adup-tech.com"],renderStartImplemented:!0},adventive:{preconnect:["https://ads.adventive.com",
  18. "https://amp.adventivedev.com"],renderStartImplemented:!0},adverline:{prefetch:"https://ads.adverline.com/richmedias/amp.js",preconnect:["https://adnext.fr"],renderStartImplemented:!0},adverticum:{},advertserve:{renderStartImplemented:!0},adzerk:{},affiliateb:{prefetch:"https://track.affiliate-b.com/amp/a.js",renderStartImplemented:!0},appvador:{prefetch:["https://cdn.apvdr.com/js/VastAdUnit.min.js","https://cdn.apvdr.com/js/VideoAd.min.js","https://cdn.apvdr.com/js/VideoAd3PAS.min.js","https://cdn.apvdr.com/js/VideoAdAutoPlay.min.js",
  19. "https://cdn.apvdr.com/js/VideoAdNative.min.js"],renderStartImplemented:!0},amoad:{prefetch:["https://j.amoad.com/js/a.js","https://j.amoad.com/js/n.js"],preconnect:["https://d.amoad.com","https://i.amoad.com","https://m.amoad.com","https://v.amoad.com"]},appnexus:{prefetch:"https://acdn.adnxs.com/ast/ast.js",preconnect:"https://ib.adnxs.com",renderStartImplemented:!0},atomx:{prefetch:"https://s.ato.mx/p.js"},beopinion:{prefetch:"https://widget.beopinion.com/sdk.js",preconnect:["https://t.beopinion.com",
  20. "https://s.beopinion.com","https://data.beopinion.com"],renderStartImplemented:!0},bidtellect:{},brainy:{},bringhub:{renderStartImplemented:!0,preconnect:["https://static.bh-cdn.com","https://core-api.bringhub.io"]},broadstreetads:{prefetch:"https://cdn.broadstreetads.com/init-2.min.js"},caajainfeed:{prefetch:["https://cdn.amanad.adtdp.com/sdk/ajaamp.js"],preconnect:["https://ad.amanad.adtdp.com"]},capirs:{renderStartImplemented:!0},caprofitx:{prefetch:["https://cdn.caprofitx.com/pfx.min.js","https://cdn.caprofitx.com/tags/amp/profitx_amp.js"],
  21. preconnect:"https://ad.caprofitx.adtdp.com"},cedato:{renderStartImplemented:!0},chargeads:{},colombia:{prefetch:"https://static.clmbtech.com/ad/commons/js/colombia-amp.js"},connatix:{renderStartImplemented:!0},contentad:{},criteo:{prefetch:"https://static.criteo.net/js/ld/publishertag.js",preconnect:"https://cas.criteo.com"},csa:{prefetch:"https://www.google.com/adsense/search/ads.js"},dable:{preconnect:["https://static.dable.io","https://api.dable.io","https://images.dable.io"],renderStartImplemented:!0},
  22. directadvert:{renderStartImplemented:!0},distroscale:{preconnect:["https://c.jsrdn.com","https://s.jsrdn.com","https://i.jsrdn.com"],renderStartImplemented:!0},dotandads:{prefetch:"https://amp.ad.dotandad.com/dotandadsAmp.js",preconnect:"https://bal.ad.dotandad.com"},doubleclick:{prefetch:["https://www.googletagservices.com/tag/js/gpt.js","https://securepubads.g.doubleclick.net/static/glade.js"],preconnect:["https://partner.googleadservices.com","https://tpc.googlesyndication.com"],clientIdScope:"AMP_ECID_GOOGLE",
  23. clientIdCookieName:"_ga",renderStartImplemented:!0,masterFrameAccessibleType:"google_network"},eadv:{renderStartImplemented:!0,clientIdScope:"AMP_ECID_EADV",prefetch:["https://www.eadv.it/track/esr.min.js","https://www.eadv.it/track/ead.min.js"]},eas:{prefetch:"https://amp.emediate.eu/amp.v0.js",renderStartImplemented:!0},engageya:{},eplanning:{prefetch:"https://us.img.e-planning.net/layers/epl-amp.js"},ezoic:{prefetch:["https://www.googletagservices.com/tag/js/gpt.js","https://g.ezoic.net/ezoic/ampad.js"],
  24. clientIdScope:"AMP_ECID_EZOIC"},f1e:{prefetch:"https://img.ak.impact-ad.jp/util/f1e_amp.min.js"},f1h:{preconnect:"https://img.ak.impact-ad.jp",renderStartImplemented:!0},fake:{},felmat:{prefetch:"https://t.felmat.net/js/fmamp.js",renderStartImplemented:!0},flite:{},fluct:{preconnect:["https://cdn-fluct.sh.adingo.jp","https://s.sh.adingo.jp","https://i.adingo.jp"]},fusion:{prefetch:"https://assets.adtomafusion.net/fusion/latest/fusion-amp.min.js"},genieessp:{prefetch:"https://js.gsspcln.jp/l/amp.js"},
  25. giraff:{renderStartImplemented:!0},gmossp:{prefetch:"https://cdn.gmossp-sp.jp/ads/amp.js"},gumgum:{prefetch:"https://g2.gumgum.com/javascripts/ad.js",renderStartImplemented:!0},holder:{prefetch:"https://i.holder.com.ua/js2/holder/ajax/ampv1.js",preconnect:"https://h.holder.com.ua",renderStartImplemented:!0},ibillboard:{},imedia:{prefetch:"https://i.imedia.cz/js/im3.js",renderStartImplemented:!0},imobile:{prefetch:"https://spamp.i-mobile.co.jp/script/amp.js",preconnect:"https://spad.i-mobile.co.jp"},
  26. imonomy:{renderStartImplemented:!0},improvedigital:{},industrybrains:{prefetch:"https://web.industrybrains.com/js/ads/async/show.js",preconnect:["https://staticd.cdn.industrybrains.com","https://static.industrybrains.com"],renderStartImplemented:!0},inmobi:{prefetch:"https://cf.cdn.inmobi.com/ad/inmobi.secure.js",renderStartImplemented:!0},innity:{prefetch:"https://cdn.innity.net/admanager.js",preconnect:"https://as.innity.com",renderStartImplemented:!0},ix:{prefetch:["https://js-sec.indexww.com/apl/amp.js"],
  27. preconnect:"https://as-sec.casalemedia.com",renderStartImplemented:!0},kargo:{},kiosked:{renderStartImplemented:!0},kixer:{prefetch:"https://cdn.kixer.com/ad/load.js",renderStartImplemented:!0},kuadio:{},ligatus:{prefetch:"https://ssl.ligatus.com/render/ligrend.js",renderStartImplemented:!0},lockerdome:{prefetch:"https://cdn2.lockerdomecdn.com/_js/amp.js",renderStartImplemented:!0},loka:{prefetch:"https://loka-cdn.akamaized.net/scene/amp.js",preconnect:["https://scene-front.lokaplatform.com","https://loka-materials.akamaized.net"],
  28. renderStartImplemented:!0},mads:{prefetch:"https://eu2.madsone.com/js/tags.js"},"mantis-display":{prefetch:"https://assets.mantisadnetwork.com/mantodea.min.js",preconnect:["https://mantodea.mantisadnetwork.com","https://res.cloudinary.com","https://resize.mantisadnetwork.com"]},"mantis-recommend":{prefetch:"https://assets.mantisadnetwork.com/recommend.min.js",preconnect:["https://mantodea.mantisadnetwork.com","https://resize.mantisadnetwork.com"]},mediaimpact:{prefetch:"https://ec-ns.sascdn.com/diff/251/pages/amp_default.js",
  29. preconnect:["https://ww251.smartadserver.com","https://static.sascdn.com/"],renderStartImplemented:!0},medianet:{preconnect:"https://contextual.media.net",renderStartImplemented:!0},mediavine:{prefetch:"https://amp.mediavine.com/wrapper.min.js",preconnect:["https://partner.googleadservices.com","https://securepubads.g.doubleclick.net","https://tpc.googlesyndication.com"],renderStartImplemented:!0,consentHandlingOverride:!0},medyanet:{renderStartImplemented:!0},meg:{renderStartImplemented:!0},microad:{prefetch:"https://j.microad.net/js/camp.js",
  30. preconnect:["https://s-rtb.send.microad.jp","https://s-rtb.send.microadinc.com","https://cache.send.microad.jp","https://cache.send.microadinc.com","https://deb.send.microad.jp"]},mixpo:{prefetch:"https://cdn.mixpo.com/js/loader.js",preconnect:["https://player1.mixpo.com","https://player2.mixpo.com"]},monetizer101:{renderStartImplemented:!0},mytarget:{prefetch:"https://ad.mail.ru/static/ads-async.js",renderStartImplemented:!0},mywidget:{preconnect:"https://likemore-fe.go.mail.ru",prefetch:"https://likemore-go.imgsmail.ru/widget_amp.js",
  31. renderStartImplemented:!0},nativo:{prefetch:"https://s.ntv.io/serve/load.js"},navegg:{renderStartImplemented:!0},nend:{prefetch:"https://js1.nend.net/js/amp.js",preconnect:["https://output.nend.net","https://img1.nend.net"]},netletix:{preconnect:["https://call.netzathleten-media.de"],renderStartImplemented:!0},nokta:{prefetch:"https://static.virgul.com/theme/mockups/noktaamp/ampjs.js",renderStartImplemented:!0},openadstream:{},openx:{prefetch:"https://www.googletagservices.com/tag/js/gpt.js",preconnect:["https://partner.googleadservices.com",
  32. "https://securepubads.g.doubleclick.net","https://tpc.googlesyndication.com"],renderStartImplemented:!0},outbrain:{renderStartImplemented:!0,prefetch:"https://widgets.outbrain.com/widgetAMP/outbrainAMP.min.js",preconnect:["https://odb.outbrain.com"]},pixels:{prefetch:"https://cdn.adsfactor.net/amp/pixels-amp.min.js",clientIdCookieName:"__AF",renderStartImplemented:!0},plista:{},polymorphicads:{prefetch:"https://www.polymorphicads.jp/js/amp.js",preconnect:["https://img.polymorphicads.jp","https://ad.polymorphicads.jp"],
  33. renderStartImplemented:!0},popin:{renderStartImplemented:!0},postquare:{},pubexchange:{},pubguru:{renderStartImplemented:!0},pubmatic:{prefetch:"https://ads.pubmatic.com/AdServer/js/amp.js"},pubmine:{prefetch:["https://s.pubmine.com/head.js","https://s.pubmine.com/showad.js"],preconnect:"https://delivery.g.switchadhub.com",renderStartImplemented:!0},pulsepoint:{prefetch:"https://ads.contextweb.com/TagPublish/getjs.static.js",preconnect:"https://tag.contextweb.com"},purch:{prefetch:"https://ramp.purch.com/serve/creative_amp.js",
  34. renderStartImplemented:!0},quoraad:{prefetch:"https://a.quora.com/amp_ad.js",preconnect:"https://ampad.quora.com",renderStartImplemented:!0},relap:{renderStartImplemented:!0},revcontent:{prefetch:"https://labs-cdn.revcontent.com/build/amphtml/revcontent.amp.min.js",preconnect:["https://trends.revcontent.com","https://cdn.revcontent.com","https://img.revcontent.com"],renderStartImplemented:!0},revjet:{prefetch:"https://cdn.revjet.com/~cdn/JS/03/amp.js",renderStartImplemented:!0},rubicon:{},sekindo:{renderStartImplemented:!0},
  35. sharethrough:{renderStartImplemented:!0},sklik:{prefetch:"https://c.imedia.cz/js/amp.js"},slimcutmedia:{preconnect:["https://sb.freeskreen.com","https://static.freeskreen.com","https://video.freeskreen.com"],renderStartImplemented:!0},smartadserver:{prefetch:"https://ec-ns.sascdn.com/diff/js/amp.v0.js",preconnect:"https://static.sascdn.com",renderStartImplemented:!0},smartclip:{prefetch:"https://cdn.smartclip.net/amp/amp.v0.js",preconnect:"https://des.smartclip.net",renderStartImplemented:!0},smi2:{renderStartImplemented:!0},
  36. sogouad:{prefetch:"https://theta.sogoucdn.com/wap/js/aw.js",renderStartImplemented:!0},sortable:{prefetch:"https://www.googletagservices.com/tag/js/gpt.js",preconnect:["https://tags-cdn.deployads.com","https://partner.googleadservices.com","https://securepubads.g.doubleclick.net","https://tpc.googlesyndication.com"],renderStartImplemented:!0},sovrn:{prefetch:"https://ap.lijit.com/www/sovrn_amp/sovrn_ads.js"},spotx:{preconnect:"https://js.spotx.tv",renderStartImplemented:!0},sunmedia:{prefetch:"https://vod.addevweb.com/sunmedia/amp/ads/sunmedia.js",
  37. preconnect:"https://static.addevweb.com",renderStartImplemented:!0},swoop:{prefetch:"https://www.swoop-amp.com/amp.js",preconnect:["https://www.swpsvc.com","https://client.swpcld.com"],renderStartImplemented:!0},taboola:{},teads:{prefetch:"https://cdn.teads.tv/media/format/v3/teads-format.min.js",preconnect:["https://cdn2.teads.tv","https://a.teads.tv","https://t.teads.tv"]},triplelift:{},trugaze:{clientIdScope:"__tg_amp",renderStartImplemented:!0},uas:{prefetch:"https://ads.pubmatic.com/AdServer/js/phoenix.js"},
  38. uzou:{preconnect:["https://speee-ad.akamaized.net"],renderStartImplemented:!0},unruly:{prefetch:"https://video.unrulymedia.com/amp-demo/native-loader.js",renderStartImplemented:!0},valuecommerce:{prefetch:"https://amp.valuecommerce.com/amp_bridge.js",preconnect:["https://ad.jp.ap.valuecommerce.com","https://ad.omks.valuecommerce.com"],renderStartImplemented:!0},videonow:{renderStartImplemented:!0},viralize:{renderStartImplemented:!0},vmfive:{prefetch:"https://man.vm5apis.com/dist/adn-web-sdk.js",
  39. preconnect:["https://vawpro.vm5apis.com","https://vahfront.vm5apis.com"],renderStartImplemented:!0},webediads:{prefetch:"https://eu1.wbdds.com/amp.min.js",preconnect:["https://goutee.top","https://mediaathay.org.uk"],renderStartImplemented:!0},"weborama-display":{prefetch:["https://cstatic.weborama.fr/js/advertiserv2/adperf_launch_1.0.0_scrambled.js","https://cstatic.weborama.fr/js/advertiserv2/adperf_core_1.0.0_scrambled.js"]},widespace:{},wpmedia:{prefetch:"https://std.wpcdn.pl/wpjslib/wpjslib-amp.js",
  40. preconnect:["https://www.wp.pl","https://v.wpimg.pl"],renderStartImplemented:!0},xlift:{prefetch:"https://cdn.x-lift.jp/resources/common/xlift_amp.js",renderStartImplemented:!0},yahoo:{prefetch:"https://s.yimg.com/os/ampad/display.js",preconnect:"https://us.adserver.yahoo.com"},yahoojp:{prefetch:["https://s.yimg.jp/images/listing/tool/yads/ydn/amp/amp.js","https://yads.c.yimg.jp/js/yads.js"],preconnect:"https://yads.yahoo.co.jp"},yandex:{prefetch:"https://yastatic.net/partner-code/loaders/context_amp.js",
  41. renderStartImplemented:!0},yengo:{renderStartImplemented:!0},yieldbot:{prefetch:["https://cdn.yldbt.com/js/yieldbot.intent.amp.js","https://msg.yldbt.com/js/ybmsg.html"],preconnect:"https://i.yldbt.com"},yieldmo:{prefetch:"https://static.yieldmo.com/ym.1.js",preconnect:["https://s.yieldmo.com","https://ads.yieldmo.com"],renderStartImplemented:!0},yieldone:{prefetch:"https://img.ak.impact-ad.jp/ic/pone/commonjs/yone-amp.js"},yieldpro:{preconnect:"https://creatives.yieldpro.eu",renderStartImplemented:!0},
  42. zedo:{prefetch:"https://ss3.zedo.com/gecko/tag/Gecko.amp.min.js",renderStartImplemented:!0},zergnet:{},zucks:{preconnect:["https://j.zucks.net.zimg.jp","https://sh.zucks.net","https://k.zucks.net","https://static.zucks.net.zimg.jp"]}};function Ja(a){var b=O[a.element.getAttribute("type")];return b&&b.clientIdScope?Ka(a.getAmpDoc(),b.clientIdScope,b.clientIdCookieName):Promise.resolve()}function Ka(a,b,c){var d,e=isNaN(d)||null==d?1E3:d,f=xa(ta(a),"cid").then(function(a){if(a)return a.get({scope:b,createCookieIfNotPresent:!0,cookieName:c},Promise.resolve(void 0)).catch(function(a){B().error("AD-CID",a)})});return M(a.win,"timer").timeoutPromise(e,f,"cid timeout").catch(function(a){B().warn("AD-CID",a)})};function La(a,b){try{return JSON.parse(a)}catch(c){b&&b(c)}};var Ma=/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org((\/.*)|($))+/;function Na(a,b,c){if(!a.ampAdPageCorrelator){var d;d=b;var e=L(c||a.document,"documentInfo").get().pageViewId,e=Number(e||0);d=d?e+d.replace(/\D/g,"")%1E6*1E6:Math.floor(4503599627370496*Math.random());a.ampAdPageCorrelator=d}return a.ampAdPageCorrelator}function Oa(a,b){var c=a.filter(function(a){return Number(a)}).join(",");b=b||"";return b+(b&&c?",":"")+c};function Pa(a,b){var c=L(b,"viewer").getParam("exp")||t(a.location.search).exp;if(!c)return null;var d=["doubleclick"==(b.getAttribute("type")||"").toLowerCase()?"da":"aa","a4a"],e,f;d.forEach(function(a){return e=e||(f=(new RegExp("(?:^|,)"+a+":(-?\\d+)")).exec(c))&&f[1]});return e||null}function Qa(a){return a.every(function(a){return!isNaN(parseInt(a,10))})}
  43. function Ra(a,b){if(a){var c=b.getAttribute("data-experiment-id"),d;if(d=c)d=(d=c)?d.split(","):[],d=Qa(d);d?b.setAttribute("data-experiment-id",Oa([a],c)):b.setAttribute("data-experiment-id",a)}};var Sa={"-1":"117152632",0:null};function Ta(a,b,c){var d;(d=c)||(d=!(a.crypto&&(a.crypto.subtle||a.crypto.webkitSubtle)&&Ma.test(a.location.origin)));if(d||!b.getAttribute("data-ad-client"))return!1;var e,f=Pa(a,b);void 0!=f&&(e=Sa[f],B().info("amp-ad-network-adsense-impl","url experiment selection "+f+": "+e+"."));e&&(Ra(e,b),oa(a,"expAdsenseA4A",e));return!0};function Ua(a,b,c){return!c};var Va={"-1":"117152632",0:null,3:"21060728",4:"21060729",5:"21061787",6:"21061788",7:"117152666",8:"117152667"};function Wa(){}k=Wa.prototype;k.isCdnProxy=function(a){return Ma.test(a.location.origin)};k.unconditionedExperimentSelection=function(a,b){this.selectAndSetUnconditionedExp(a,b,["21061372","21061373"],"expUnconditionedCanonicalHoldback")};k.selectAndSetUnconditionedExp=function(a,b,c,d){if(c=this.maybeSelectExperiment(a,b,c,d))Ra(c,b),oa(a,d,c)};
  44. k.isA4aEnabled=function(a,b,c){function d(a){return z().warn("amp-ad-network-doubleclick-impl",a+" is no longer supported for DoubleClick.Please refer to https://github.com/ampproject/amphtml/issues/11834 for more information")}this.unconditionedExperimentSelection(a,b);var e="useSameDomainRenderingUntilDeprecated",f=e in b.dataset||(La(b.getAttribute("json"))||{})[e];f&&d(e);c&&d("remote.html");var g,h=Pa(a,b)||"";if(!this.isCdnProxy(a))return"21061373"!=(a.experimentBranches?a.experimentBranches.expUnconditionedCanonicalHoldback:
  45. null)?(Ra("21060933",b),!0):!1;void 0!=h&&(g=Va[h],"117152666"!=g&&"117152667"!=g||!a.document.querySelector("meta[name=amp-ad-enable-refresh]")&&!a.document.querySelector("amp-ad[type=doubleclick][data-enable-refresh]")?B().info("amp-ad-network-doubleclick-impl","url experiment selection "+h+": "+g+"."):g=void 0);g&&(Ra(g,b),oa(a,"expDoubleclickA4A",g));return J(a,"rollback-delayed-fetch-deprecation")||"21061788"==g?!!b.getAttribute("rtc-config")||!(f||c):!0};
  46. k.maybeSelectExperiment=function(a,b,c,d){b={};b[d]={isTrafficEligible:function(){return!0},branches:c};na(a,b);return a.experimentBranches?a.experimentBranches[d]:null};var Xa=new Wa;function Ya(a,b,c){return Xa.isA4aEnabled(a,b,c)};function Za(a,b,c){var d;return!c&&!!(d=b.getAttribute("src"))&&!!b.getAttribute("data-use-a4a")&&(G(d,"https://sp.gmossp-sp.jp/")||G(d,"https://amp.sp.gmossp-sp.jp/_a4a/"))};function $a(a,b,c){var d;return!c&&!!b.getAttribute("data-use-a4a")&&!!(d=b.getAttribute("src"))&&0==d.indexOf("https://ib.3lift.com/")};var ab;function bb(){ab||(ab=C({adsense:Ta,adzerk:function(){return!0},doubleclick:Ya,triplelift:$a,cloudflare:Ua,gmossp:Za,fake:function(){return!0}}));return ab};var cb,db="Webkit webkit Moz moz ms O o".split(" ");function P(a,b,c,d){var e=a.style;if(!G(b,"--")){cb||(cb=C());var f=cb[b];if(!f){f=b;if(void 0===e[b]){var g=b.charAt(0).toUpperCase()+b.slice(1);b:{for(var h=0;h<db.length;h++){var l=db[h]+g;if(void 0!==e[l]){g=l;break b}}g=""}void 0!==e[g]&&(f=g)}cb[b]=f}b=f}b&&(a.style[b]=d?c+d:c)};function eb(a,b){Ha(a).then(function(c){c&&c.triggerEventForTarget(a,"user-error",b)})};var Q;function fb(a,b,c){function d(a){try{return g(a)}catch(q){throw self.reportError(q),q;}}var e=void 0,f=a,g=c,h=gb(),l=!1;e&&(l=e.capture);f.addEventListener(b,d,h?e:l);return function(){f&&f.removeEventListener(b,d,h?e:l);d=f=g=null}}function gb(){if(void 0!==Q)return Q;Q=!1;try{var a={get capture(){Q=!0}};self.addEventListener("test-options",null,a);self.removeEventListener("test-options",null,a)}catch(b){}return Q};function hb(a,b,c){var d=c,e=fb(a,b,function(a){try{d(a)}finally{d=null,e()}});return e}function ib(a){var b,c;if(a.complete||"complete"==a.readyState||a.document&&"complete"==a.document.readyState)return Promise.resolve(a);var d=new Promise(function(d,f){var e=a.tagName;b="AUDIO"===e||"VIDEO"===e?hb(a,"loadstart",d):hb(a,"load",d);e&&(c=hb(a,"error",f))});return d.then(function(){c&&c();return a},function(){b&&b();var c=a;c&&c.src&&(c=c.src);throw z().createError("Failed to load:",c);})};self.AMPErrors=self.AMPErrors||[];function jb(a){var b=a.performance&&a.performance.timing;if(b&&0!=b.navigationStart){var c=b.navigationStart;if(ca(c)&&!(0>c))return c}};function kb(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a||"fluid"==a||"intrinsic"==a}function lb(a){a=parseFloat(a);return ca(a)?a:void 0};function mb(a,b){return Ia(a).then(function(a){return a?a.whenPolicyResolved(b):null})}function nb(a,b){return Ia(a).then(function(a){return a?a.getMergedSharedData(b):null})};function ob(a,b){var c,d=!0,d=void 0===d?!1:d;c=void 0===c?!1:c;var e=a.ownerDocument,f=ya(e,"amp-analytics",D({sandbox:"true",trigger:c?"":"immediate"})),g=ya(e,"script",D({type:"application/json"}));g.textContent=JSON.stringify(b);f.appendChild(g);f.CONFIG=b;d?(b=M(a.ownerDocument.defaultView,"extensions"),d=N(a),b.installExtensionForDoc(d,"amp-analytics")):Ha(a).then(function(){});a.appendChild(f);return f};var pb={"AMP-FX-FLYING-CARPET":!0,"AMP-LIGHTBOX":!0,"AMP-STICKY-AD":!0,"AMP-LIGHTBOX-GALLERY":!0};function qb(a,b){var c=!1,d=0;do{if(pb[a.tagName])d++,c=!1;else{var e=(b.getComputedStyle(a)||C()).position;"fixed"!=e&&"sticky"!=e||(c=!0)}a=a.parentElement}while(a&&"BODY"!=a.tagName);return!c&&1>=d}
  47. function rb(a){if(void 0===a.__AMP__AD_CONTAINER){var b=a;do if(b=b.parentElement,pb[b.tagName])return a.__AMP__AD_CONTAINER=b.tagName;while(b&&"BODY"!=b.tagName);a.__AMP__AD_CONTAINER=null}return a.__AMP__AD_CONTAINER};var R={};
  48. function sb(a,b,c,d){c=c||b.getAttribute("type");z().assert(c,"Attribute type required for <amp-ad>: %s",b);for(var e=0,f=a;f&&f!=f.parent;f=f.parent)e++;var e=String(e)+"-"+tb(a),g=f={},h=b.dataset,l;for(l in h)G(l,"vars")||(g[l]=h[l]);if(l=b.getAttribute("json")){l=La(l);if(void 0===l)throw z().createError("Error parsing JSON in json attribute in element %s",b);for(var n in l)g[n]=l[n]}n=f;l=Date.now();f=b.getAttribute("width");g=b.getAttribute("height");n=n?n:{};n.width=lb(f);n.height=lb(g);b.getAttribute("title")&&
  49. (n.title=b.getAttribute("title"));var q=a.location.href;"about:srcdoc"==q&&(q=a.parent.location.href);for(var w=L(b,"documentInfo").get(),p=L(b,"viewer"),f=p.getUnconfirmedReferrerUrl(),x=b.getPageLayoutBox(),g=n,h=w.sourceUrl,A=w.canonicalUrl,w=w.pageViewId,q={href:q},Ob=b.tagName,Pb={localDev:!1,development:u().development,filter:u().filter,minified:!0,lite:u().lite,test:!1,log:u().log,version:u().version,rtvVersion:u().rtvVersion},Qb=!(!a.AMP_CONFIG||!a.AMP_CONFIG.canary),p=!p.isVisible(),x=x?
  50. {left:x.left,top:x.top,width:x.width,height:x.height}:null,Rb=b.getIntersectionChangeEntry(),v=b,fa=[],E=0;v&&1==v.nodeType&&25>E;){var F="";v.id&&(F="/"+v.id);var Sb=v.nodeName.toLowerCase();fa.push(""+Sb+F+pa(v));E++;v=v.parentElement}v=fa.join();fa=v.length;E=5381;for(F=0;F<fa;F++)E=33*E^v.charCodeAt(F);g._context=D({ampcontextVersion:"1528391646530",ampcontextFilepath:ga+"/1528391646530/ampcontext-v0.js",sourceUrl:h,referrer:f,canonicalUrl:A,pageViewId:w,location:q,startTime:l,
  51. tagName:Ob,mode:Pb,canary:Qb,hidden:p,initialLayoutRect:x,initialIntersection:Rb,domFingerprint:String(E>>>0),experimentToggles:la(a),sentinel:e});(a=b.getAttribute("src"))&&(n.src=a);f=n;f.type=c;Object.assign(f._context,d);return f}
  52. function ub(a,b,c,d,e){b=sb(a,b,c,d);var f=a.document.createElement("iframe");R[b.type]||(R[b.type]=0);R[b.type]+=1;c=vb(a,c,e);var g=I(c).hostname;d=JSON.stringify(D({host:g,type:b.type,count:R[b.type],attributes:b}));f.src=c;f.ampLocation=I(c);f.name=d;b.width&&(f.width=b.width);b.height&&(f.height=b.height);b.title&&(f.title=b.title);f.setAttribute("scrolling","no");P(f,"border","none");f.onload=function(){this.readyState="complete"};J(a,"no-sync-xhr-in-ads")&&f.setAttribute("allow","sync-xhr 'none';");
  53. f.setAttribute("data-amp-3p-sentinel",b._context.sentinel);return f}function wb(a,b,c,d){a=vb(a,c,d);b.preload(a,"document");var e=ga+"/1528391646530/f.js";b.preload(e,"script")}
  54. function vb(a,b,c){var d=void 0,e=a.bootstrapBaseUrl;if(e)a=e;else{var f;f=d;var g=a.document.querySelector('meta[name="amp-3p-iframe-src"]');if(g)if(c)z().error("3p-frame","3p iframe url disabled for "+(b||"unknown")),f=null;else{b=g.getAttribute("content");var h;h=void 0===h?"source":h;z().assert(null!=b,"%s %s must be available",g,h);z().assert(ka(b)||/^(\/\/)/.test(b),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',g,
  55. h,b);z().assert(-1==b.indexOf("?"),"3p iframe url must not include query string %s in element %s.",b,g);h=I(b);z().assert("localhost"==h.hostname&&!f||h.origin!=I(a.location.href).origin,"3p iframe url must not be on the same origin as the current document %s (%s) in element %s. See https://github.com/ampproject/amphtml/blob/master/spec/amp-iframe-origin-policy.md for details.",b,h.origin,g);f=b+"?1528391646530"}else f=null;f||(a.defaultBootstrapSubDomain=a.defaultBootstrapSubDomain||"d-"+
  56. tb(a),f="https://"+a.defaultBootstrapSubDomain+("."+ha+"/1528391646530/")+"frame.html");a=a.bootstrapBaseUrl=f}return a}function tb(a){var b;if(a.crypto&&a.crypto.getRandomValues){var c=new Uint32Array(2);a.crypto.getRandomValues(c);b=String(c[0])+c[1]}else b=String(a.Math.random()).substr(2)+"0";return b};var xb=null,yb=null;function zb(a,b){void 0===a["3pla"]&&(a["3pla"]=0);a["3pla"]++;if(!xb){var c=new K;xb=c.promise;yb=c.resolve}M(a,"timer").timeoutPromise(1E3,b).catch(function(){}).then(function(){--a["3pla"]||(yb(),yb=xb=null)})};function Ab(a,b,c){if(!(0==b&&0==c||0==a.width&&0==a.height)){b=a.left+b;c=a.top+c;var d=a.width;a=a.height;a={left:b,top:c,width:d,height:a,bottom:c+a,right:b+d,x:b,y:c}}return a};D({frameborder:"0",allowfullscreen:"",allowtransparency:"",scrolling:"no",marginwidth:"0",marginheight:"0"});
  57. var Bb={adSlotCleared:"-1",urlBuilt:"1",adRequestStart:"2",adRequestEnd:"3",adResponseValidateStart:"5",renderFriendlyStart:"6",renderCrossDomainStart:"7",renderFriendlyEnd:"8",renderCrossDomainEnd:"9",preAdThrottle:"10",renderSafeFrameStart:"11",throttled3p:"12",adResponseValidateEnd:"13",xDomIframeLoaded:"14",friendlyIframeLoaded:"15",adSlotCollapsed:"16",adSlotUnhidden:"17",layoutAdPromiseDelay:"18",signatureVerifySuccess:"19",networkError:"20",friendlyIframeIniLoad:"21",visHalf:"22",visHalfIniLoad:"23",
  58. firstVisible:"24",visLoadAndOneSec:"25",iniLoad:"26",resumeCallback:"27",visIniLoad:"29",upgradeDelay:"30",crossDomainIframeLoaded:"31"};function Cb(){this.B={}}k=Cb.prototype;k.addPingsForVisibility=function(){};k.sendPing=function(){};k.setPingParameter=function(a,b){null!=a&&""!==a&&null!==b&&void 0!==b&&""!==b&&(this.B[a]=String(b))};k.setPingParameters=function(a){for(var b in a)a.hasOwnProperty(b)&&this.setPingParameter(b,a[b])};k.reset=function(){this.B={}};k.getInitTime=function(){};k.getDeltaTime=function(){};
  59. function S(a,b,c){this.B={};var d=this;this.na=b.getAttribute("data-a4a-upgrade-type")?"a4a":"amp";this.pa=c;this.la=Na(a,void 0,b);var e=jb(a)||Date.now();this.N="number"==typeof e?e:Number(e);this.getDeltaTime=a.performance&&a.performance.now?a.performance.now.bind(a.performance):function(){return Date.now()-d.N};this.da="https://csi.gstatic.com/csi";this.ra=qa(b);this.I=L(b,"viewer")}m(S,Cb);S.prototype.setPingAddress=function(a){this.da=a};
  60. S.prototype.sendPing=function(a){var b=Bb[a]||9999,c=isNaN(Number(this.B.forced_delta))?Math.round(this.getDeltaTime()):this.B.forced_delta;delete this.B.forced_delta;var d;d=this.B;var e=[],f;for(f in d){var g=d[f];if(null!=g)if(Array.isArray(g))for(var h=0;h<g.length;h++){var l=g[h];e.push(encodeURIComponent(f)+"="+encodeURIComponent(l))}else e.push(encodeURIComponent(f)+"="+encodeURIComponent(g))}d=e.join("&");""!=d&&(d=this.ra.expandStringSync(d,{AD_SLOT_NAMESPACE:this.na,AD_SLOT_ID:this.pa,AD_SLOT_TIME_TO_EVENT:c,
  61. AD_SLOT_EVENT_NAME:a,AD_SLOT_EVENT_ID:b,AD_PAGE_CORRELATOR:this.la,AD_PAGE_VISIBLE:this.I.isVisible()?1:0,AD_PAGE_FIRST_VISIBLE_TIME:Math.round(this.I.getFirstVisibleTime()-this.N),AD_PAGE_LAST_VISIBLE_TIME:Math.round(this.I.getLastVisibleTime()-this.N)}));if(a=d?this.da+"?"+d:"")(new Image).src=a,B().info("PING",a)};S.prototype.getInitTime=function(){return this.N};
  62. S.prototype.addPingsForVisibility=function(a){var b=this;Ga(a).then(function(c){var d=a.signals(),e=Promise.race([d.whenSignal("ini-load"),d.whenSignal("load-end")]),f=c.getAnalyticsRoot(a).getVisibilityManager();f.listenElement(a,{visiblePercentageMin:50},null,null,function(){b.sendPing("visHalf")});f.listenElement(a,{visiblePercentageMin:50},e,null,function(){b.sendPing("visHalfIniLoad")});f.listenElement(a,{visiblePercentageMin:1},null,null,function(){b.sendPing("firstVisible")});e.then(function(){b.sendPing("iniLoad")});
  63. f.listenElement(a,{waitFor:"ini-load"},e,null,function(){b.sendPing("visIniLoad")});f.listenElement(a,{visiblePercentageMin:1,waitFor:"ini-load",totalTimeMin:1E3},e,null,function(){b.sendPing("visLoadAndOneSec")})})};var Db={a4aProfilingRate:{isTrafficEligible:function(){return!0},branches:["unused","unused"]}};function Eb(a,b){var c=100;function d(d){g=null;f=a.setTimeout(e,c);b.apply(null,d)}function e(){f=0;g&&d(g)}var f=0,g=null;return function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];f?g=b:d(b)}};function Fb(a){if(!Gb(a))return null;var b=a.indexOf("{");try{return JSON.parse(a.substr(b))}catch(c){return B().error("MESSAGING","Failed to parse message: "+a,c),null}}function Gb(a){return"string"==typeof a&&0==a.indexOf("amp-")&&-1!=a.indexOf("{")};function T(a){this.h=a;this.l=a.element;this.Z=a.win.document;a.getFallback()||(a=Hb(this,"fallback"))&&this.h.element.appendChild(a)}T.prototype.createPlaceholder=function(){return Hb(this,"placeholder")};T.prototype.applyNoContentUI=function(){var a=this;"AMP-STICKY-AD"==rb(this.l)?this.h.collapse():this.h.attemptCollapse().catch(function(){a.h.mutateElement(function(){a.h.togglePlaceholder(!1);a.h.toggleFallback(!0)})})};T.prototype.applyUnlayoutUI=function(){var a=this;this.h.mutateElement(function(){a.h.toggleFallback(!1)})};
  64. function Hb(a,b){if("AMP-EMBED"==a.l.tagName)return null;var c=a.Z.createElement("div");c.setAttribute(b,"");a=a.Z.createElement("div");a.classList.add("i-amphtml-ad-default-holder");a.setAttribute("data-ad-holder-text","Ad");c.appendChild(a);return c}
  65. T.prototype.updateSize=function(a,b,c,d){var e,f;a=parseInt(a,10);isNaN(a)||(e=Math.max(this.l.offsetHeight+a-c,a));b=parseInt(b,10);isNaN(b)||(f=Math.max(this.l.offsetWidth+b-d,b));var g={success:!0,newWidth:f,newHeight:e};return e||f?"AMP-STICKY-AD"==rb(this.l)?(g.success=!1,Promise.resolve(g)):this.h.attemptChangeSize(e,f).then(function(){return g},function(){g.success=!1;return g}):Promise.reject(Error("undefined width and height"))};AMP.AmpAdUIHandler=T;var Ib=["script","style"],Jb="amp-accordion amp-app-banner amp-carousel amp-fit-text amp-form amp-selector amp-sidebar".split(" "),Kb="action alt class disabled height href id name placeholder readonly src tabindex title type value width".split(" ");
  66. function Lb(a,b,c){for(var d=[a],e=b.filter(function(a){return Kb.includes(a)});0<d.length;)if(a=d.pop(),"string"===typeof a)c.push(a);else if(a.nodeType===Node.TEXT_NODE)c.push(a.textContent);else if(a.nodeType===Node.ELEMENT_NODE&&Mb(a))for(Nb(a,e,c),d.push("</"+a.tagName.toLowerCase()+">"),a=a.lastChild;a;a=a.previousSibling)d.push(a)}function Mb(a){var b=a.tagName.toLowerCase();return G(b,"amp-")?!(!Jb.includes(b)||!a.textContent):!(Ib.includes(b)||!a.textContent)}
  67. function Nb(a,b,c){c.push("<"+a.tagName.toLowerCase());b.forEach(function(b){a.hasAttribute(b)&&c.push(" "+b+'="'+a.getAttribute(b)+'"')});c.push(">")};function Tb(a,b){for(var c=[],d=0,e=0;e<a.length;e++){var f=a[e];b(f,e,a)?(d<e&&(a[d]=f),d++):c.push(f)}d<a.length&&(a.length=d)};function Ub(a,b,c){var d=a.listeningFors;!d&&c&&(d=a.listeningFors=Object.create(null));a=d||null;if(!a)return a;var e=a[b];!e&&c&&(e=a[b]=[]);return e||null}function Vb(a,b,c){var d=I(b.src).origin,e=c?b.getAttribute("data-amp-3p-sentinel"):"amp";a=Ub(a,e,!0);for(var f,e=0;e<a.length;e++){var g=a[e];if(g.frame===b){f=g;break}}f||(f={frame:b,origin:d,events:Object.create(null)},a.push(f));return f.events}
  68. function Wb(a){for(var b=D({sentinel:"unlisten"}),c=a.length-1;0<=c;c--){var d=a[c];if(!d.frame.contentWindow){a.splice(c,1);var e=d.events,f;for(f in e)e[f].splice(0,Infinity).forEach(function(a){a(b)})}}}
  69. function Xb(a){if(!a.listeningFors){var b=function(b){if(b.data){var c=Yb(b.data);if(c&&c.sentinel){var e;e=c.sentinel;var f=b.origin,g=b.source,h=Ub(a,e);if(h){for(var l,n=0;n<h.length;n++){var q=h[n],w=q.frame.contentWindow;if(w)if("amp"===e){if(q.origin===f&&w==g){l=q;break}}else{var p;if(!(p=g==w))b:{for(p=g;p&&p!=p.parent;p=p.parent)if(p==w){p=!0;break b}p=!1}if(p){l=q;break}}else setTimeout(Wb,0,h)}e=l?l.events:null}else e=h;var x=e;if(x){var A=x[c.type];if(A)for(A=A.slice(),e=0;e<A.length;e++)(0,A[e])(c,
  70. b.source,b.origin)}}}};a.addEventListener("message",b)}}function U(a,b,c,d,e){function f(b,d,f){if(e||d==a.contentWindow)"unlisten"==b.sentinel?l():c(b,d,f)}var g=a.ownerDocument.defaultView;Xb(g);d=Vb(g,a,d);var h=d[b]||(d[b]=[]),l;h.push(f);return l=function(){if(f){var a=h.indexOf(f);-1<a&&h.splice(a,1);c=h=f=null}}}
  71. function V(a,b){var c=[];"string"==typeof b&&(b=[b]);return new Promise(function(d){for(var e=0;e<b.length;e++){var f=U(a,b[e],function(a,b,e){for(var f=0;f<c.length;f++)c[f]();d({data:a,source:b,origin:e})},!0);c.push(f)}})}function Zb(a,b,c,d,e){if(a.contentWindow)for(d.type=c,d.sentinel=e?a.getAttribute("data-amp-3p-sentinel"):"amp",a=d,e&&(a="amp-"+JSON.stringify(d)),d=0;d<b.length;d++)e=b[d],e.win.postMessage(a,e.origin)}
  72. function Yb(a){"string"==typeof a&&(a="{"==a.charAt(0)?La(a,function(a){B().warn("IFRAME-HELPER","Postmessage could not be parsed. Is it in a valid JSON format?",a)})||null:Gb(a)?Fb(a):null);return a}function W(a,b,c,d){var e=this;this.T=a;this.U=c;this.K=[];this.qa=U(this.T,b,function(a,b,c){e.K.some(function(a){return a.win==b})||e.K.push({win:b,origin:c});d(a,b,c)},this.U,this.U)}W.prototype.send=function(a,b){Tb(this.K,function(a){return!!a.win.parent});Zb(this.T,this.K,a,b,this.U)};
  73. W.prototype.destroy=function(){this.qa();this.K.length=0};function X(a,b,c){var d=this;this.J=a;this.ga=M(a.win,"timer");this.inViewport_=this.fa=!1;this.D=[];this.M=0;this.ja=this.$.bind(this);this.ea=new W(b,"send-intersections",c||!1,function(){return $b(d)});this.w=null}X.prototype.fire=function(){if(this.fa){var a=this.J.element.getIntersectionChangeEntry();0<this.D.length&&this.D[this.D.length-1].time==a.time||(this.D.push(a),this.M||(this.$(),this.M=this.ga.delay(this.ja,100)))}};
  74. function $b(a){a.fa=!0;a.J.getVsync().measure(function(){if(a.J.isInViewport())a.onViewportCallback(!0);a.fire()})}X.prototype.onViewportCallback=function(a){if(this.inViewport_!=a)if(this.inViewport_=a,this.fire(),a){var b=this.fire.bind(this),c=this.J.getViewport().onScroll(b),d=this.J.getViewport().onChanged(b);this.w=function(){c();d()}}else this.w&&(this.w(),this.w=null)};X.prototype.$=function(){this.M=0;this.D.length&&(this.ea.send("intersection",D({changes:this.D})),this.D.length=0)};
  75. X.prototype.destroy=function(){this.ga.cancel(this.M);this.w&&(this.w(),this.w=null);this.ea.destroy()};function Y(a){this.ia=a.win;this.h=a;this.l=a.element;this.ha=a.uiHandler;this.C=this.F=this.m=this.iframe=null;this.ca=!1;this.A=[];this.I=L(this.h.getAmpDoc(),"viewer");this.O=L(this.h.getAmpDoc(),"viewport");this.W=!1}
  76. Y.prototype.init=function(a,b){var c=this;this.iframe=a;this.iframe.setAttribute("scrolling","no");this.h.applyFillContent(this.iframe);var d=M(this.h.win,"timer");this.m=new X(this.h,this.iframe,!0);this.F=new W(this.iframe,"send-embed-state",!0,function(){return ac(c,c.h.isInViewport())});J(this.ia,"inabox-position-api")&&(this.C=new W(this.iframe,"send-positions",!0,function(){bc(c);cc(c)}));V(this.iframe,"entity-id").then(function(a){c.l.creativeId=a.data.id});dc(this,"get-html",function(a){var b=
  77. a.selector;a=a.attributes;var d="";c.l.hasAttribute("data-html-access-allowed")&&(b=c.h.win.document.querySelector(b),d=[],b&&Lb(b,a,d),d=d.join("").replace(/\s{2,}/g," "));return Promise.resolve(d)});dc(this,"get-consent-state",function(){return c.h.getConsentState().then(function(a){return{consentState:a}})});this.A.push(U(this.iframe,"embed-size",function(a,b,d){ec(c,a.height,a.width,b,d)},!0,!0));this.A.push(this.I.onVisibilityChanged(function(){ac(c,c.h.isInViewport())}));this.A.push(U(this.iframe,
  78. "user-error-in-iframe",function(a){a=a.message;if("string"==typeof a){var b=Error(a);b.name="3pError";a=c.h.win;J(a,"user-error-reporting")&&(b={errorName:b.name,errorMessage:b.message},a=M(a,"ampdoc").getAmpDoc().getRootNode(),eb(a.documentElement||a.body||a,b))}},!0,!0));var e=ib(this.iframe).then(function(){c.iframe&&(c.iframe.readyState="complete");return d.promise(10)});this.h.emitLifecycleEvent&&e.then(function(){c.h.emitLifecycleEvent("xDomIframeLoaded")});a=new K;var f=a.promise,g=a.resolve;
  79. a=new K;var h=a.promise,l=a.resolve;this.h.config&&this.h.config.renderStartImplemented?V(this.iframe,["render-start","no-content"]).then(function(a){"render-start"==a.data.type?(fc(c,a),g()):(gc(c),l())}):(V(this.iframe,"bootstrap-loaded").then(function(){fc(c);g()}),V(this.iframe,"no-content").then(function(){gc(c);l()}));V(this.iframe,"ini-load").then(function(){c.h.signals().signal("ini-load")});this.l.appendChild(this.iframe);b?(fc(this),g()):(P(this.iframe,"visibility","hidden"),this.h.lifecycleReporter.addPingsForVisibility(this.l));
  80. Promise.race([f,e,d.promise(1E4)]).then(function(){c.iframe&&(P(c.iframe,"visibility",""),c.h.emitLifecycleEvent&&c.h.emitLifecycleEvent("adSlotUnhidden"))});return Promise.race([e,h])};function dc(a,b,c){a.A.push(U(a.iframe,b,function(d,e,f){if(a.iframe){var g=d.messageId;c(d.payload).then(function(c){var d={messageId:g};d.content=c;Zb(a.iframe,[{win:e,origin:f}],b+"-result",d,!0)})}},!0,!1))}
  81. function fc(a,b){a.h.renderStarted();if(b){var c=b.data;ec(a,c.height,c.width,b.source,b.origin);a.h.emitLifecycleEvent&&a.h.emitLifecycleEvent("renderCrossDomainStart")}}Y.prototype.freeXOriginIframe=function(a){hc(this);if(!a&&this.iframe){var b=this.iframe;b.parentElement&&b.parentElement.removeChild(b);this.iframe=null}};function gc(a){a.iframe&&(a.freeXOriginIframe(0<=a.iframe.name.indexOf("_master")),a.ha.applyNoContentUI())}
  82. function hc(a){a.A.forEach(function(a){return a()});a.A.length=0;a.F&&(a.F.destroy(),a.F=null);a.C&&(a.C.destroy(),a.C=null);a.m&&(a.m.destroy(),a.m=null)}function ec(a,b,c,d,e){a.h.getVsync().mutate(function(){a.iframe&&a.ha.updateSize(b,c,a.iframe.offsetHeight,a.iframe.offsetWidth).then(function(b){a.iframe&&Zb(a.iframe,[{win:d,origin:e}],b.success?"embed-size-changed":"embed-size-denied",D({requestedWidth:b.newWidth,requestedHeight:b.newHeight}),!0)},function(){})})}
  83. function ac(a,b){a.F&&a.F.send("embed-state",D({inViewport:b,pageHidden:!a.I.isVisible()}))}function ic(a){return a.O.getClientRectAsync(a.iframe).then(function(b){var c=a.O.getRect();return D({targetRect:b,viewportRect:c})})}function bc(a){a.W||(a.W=!0,ic(a).then(function(b){a.W=!1;a.C.send("position",b)}))}
  84. function cc(a){a.ca||(a.ca=!0,a.A.push(a.O.onScroll(Eb(a.ia,function(){ic(a).then(function(b){a.C.send("position",b)})}))),a.A.push(a.O.onResize(function(){ic(a).then(function(b){a.C.send("position",b)})})))}Y.prototype.viewportCallback=function(a){if(this.m)this.m.onViewportCallback(a);ac(this,a)};Y.prototype.onLayoutMeasure=function(){this.m&&this.m.fire()};AMP.AmpAdXOriginIframeHandler=Y;function jc(a,b){var c=100;return Math.min(Math.max(a,c),b)};function kc(a){a=AMP.BaseElement.call(this,a)||this;a.T=null;a.config=null;a.uiHandler=null;a.j=null;a.oa=null;a.ma=null;a.ba=!1;a.S=null;a.w=null;a.m=null;a.R=void 0;a.G=null;var b;b=a.element.getAttribute("data-amp-slot-index");var c=a.win;na(c,Db);var d=a.element.getAttribute("type"),e=a.win;("doubleclick"==d||"adsense"==d)&&J(e,"a4aProfilingRate")&&(c.experimentBranches&&c.experimentBranches.expDoubleclickA4A||c.experimentBranches&&c.experimentBranches.expAdsenseA4A)?(d=a.win,e=Na(d),d.ampAnalyticsPageLoadMetricsConfig=
  85. d.ampAnalyticsPageLoadMetricsConfig||D({requests:{fvt:"https://csi.gstatic.com/csi?s=a4a"+("&c="+e+"&met.a4a=")+"makeBodyVisible.${makeBodyVisible}~firstVisibleTime.${firstVisibleTime}~firstContentfulPaint.${firstContentfulPaint}~firstViewportReady.${firstViewportReady}"},transport:{beacon:!1,xhrpost:!1},triggers:{iniLoad:{on:"visible",request:"fvt",selector:"body"}}}),d.ampAnalyticsPageLoadMetricsElement=d.ampAnalyticsPageLoadMetricsElement||ob(a.element,d.ampAnalyticsPageLoadMetricsConfig),b=new S(c,
  86. a.element,Number(b))):b=new Cb;b.setPingParameters({s:"AD_SLOT_NAMESPACE",dt:"NAV_TIMING(navigationStart)",v:"2",c:"AD_PAGE_CORRELATOR",rls:"AMP_VERSION",v_h:"VIEWPORT_HEIGHT",s_t:"SCROLL_TOP",slotId:"AD_SLOT_ID",stageName:"AD_SLOT_EVENT_NAME",stageIdx:"AD_SLOT_EVENT_ID","met.AD_SLOT_NAMESPACE.AD_SLOT_ID":"AD_SLOT_EVENT_NAME.AD_SLOT_TIME_TO_EVENT","e.AD_SLOT_ID":a.element.getAttribute("data-experiment-id"),"adt.AD_SLOT_ID":a.element.getAttribute("type"),"met.AD_SLOT_NAMESPACE":"firstVisibleTime.AD_PAGE_FIRST_VISIBLE_TIME,lastVisibleTime.AD_PAGE_LAST_VISIBLE_TIME"});
  87. a.lifecycleReporter=b;a.H=void 0;a.aa=!1;a.V=!1;return a}m(kc,AMP.BaseElement);k=kc.prototype;k.getLayoutPriority=function(){return this.element.getAmpDoc().isSingleDoc()?2:1};
  88. k.renderOutsideViewport=function(){if(this.win["3pla"])return!1;var a;var b=this.element.getAttribute("data-loading-strategy");null==b?a=null:"prefer-viewability-over-views"==b||""==b?a=1.25:(a="Value of data-loading-strategy should be a float number in range of [0, 3], but got "+b,b=z().assertNumber(parseFloat(b),a),z().assert(0<=b&&3>=b,a),a=b);return null!==a?a:AMP.BaseElement.prototype.renderOutsideViewport.call(this)};k.isLayoutSupported=function(a){return kb(a)};k.getResource=function(){return this.element.getResources().getResourceForElement(this.element)};
  89. k.getConsentPolicy=function(){var a=this.element.getAttribute("type");return(a=O[a])&&a.consentHandlingOverride?null:AMP.BaseElement.prototype.getConsentPolicy.call(this)};
  90. k.buildCallback=function(){this.H=this.element.getAttribute("type");var a=Math.round(this.getResource().getUpgradeDelayMs());B().info("amp-ad-3p-impl","upgradeDelay "+this.H+": "+a);this.emitLifecycleEvent("upgradeDelay",{forced_delta:a});this.oa=this.getPlaceholder();this.ma=this.getFallback();this.config=O[this.H];z().assert(this.config,'Type "'+this.H+'" is not supported in amp-ad');this.uiHandler=new T(this);this.element.hasAttribute("data-full-width")?(z().assert("100vw"==this.element.getAttribute("width"),
  91. 'Ad units with data-full-width must have width="100vw".'),z().assert(!!this.config.fullWidthHeightRatio,"Ad network does not support full width ads."),B().info("amp-ad-3p-impl","#${this.getResource().getId()} Full width requested"),a=!0):a=!1;if(this.V=a)return lc(this)};
  92. k.preconnectCallback=function(a){var b=this;wb(this.win,this.preconnect,this.H,this.config.remoteHTMLDisabled);"string"==typeof this.config.prefetch?this.preconnect.preload(this.config.prefetch,"script"):this.config.prefetch&&this.config.prefetch.forEach(function(a){b.preconnect.preload(a,"script")});"string"==typeof this.config.preconnect?this.preconnect.url(this.config.preconnect,a):this.config.preconnect&&this.config.preconnect.forEach(function(c){b.preconnect.url(c,a)});var c=this.element.getAttribute("src");
  93. c&&this.preconnect.url(c)};k.onLayoutMeasure=function(){var a=this;this.ba=!qb(this.element,this.win);void 0===this.R&&(this.R=rb(this.element));mc(this);if(this.j)this.j.onLayoutMeasure();if(this.V&&!this.aa){this.aa=!0;var b=this.getLayoutBox();this.getVsync().run({measure:function(b){b.direction=(a.win.getComputedStyle(a.element)||C()).direction},mutate:function(c){"rtl"==c.direction?P(a.element,"marginRight",b.left,"px"):P(a.element,"marginLeft",-b.left,"px")}},{direction:""})}};
  94. function mc(a){if(a.j&&a.j.iframe){var b=a.getViewport().getLayoutRect(a.j.iframe),c=a.getLayoutBox();a.S=Ab(b,-c.left,-c.top)}}k.getIntersectionElementLayoutBox=function(){if(!this.j||!this.j.iframe)return AMP.BaseElement.prototype.getIntersectionElementLayoutBox.call(this);var a=this.getLayoutBox();this.S||mc(this);return Ab(this.S,a.left,a.top)};
  95. k.layoutCallback=function(){var a=this;if(this.G)return this.G;this.emitLifecycleEvent("preAdThrottle");z().assert(!this.ba,"<amp-ad> is not allowed to be placed in elements with position:fixed: %s",this.element);var b=this.getConsentState(),c=AMP.BaseElement.prototype.getConsentPolicy.call(this),d=c?nb(this.getAmpDoc(),c):Promise.resolve(null);this.G=Promise.all([Ja(this),b,d]).then(function(b){var c={clientId:b[0]||null,container:a.R,initialConsentState:b[1],consentSharedData:b[2]};a.emitLifecycleEvent("adRequestStart");
  96. c=ub(a.element.ownerDocument.defaultView,a.element,a.H,c,a.config.remoteHTMLDisabled);a.j=new Y(a);return a.j.init(c)});zb(this.win,this.G);return this.G};k.viewportCallback=function(a){this.j&&this.j.viewportCallback(a)};k.unlayoutCallback=function(){this.G=null;this.uiHandler.applyUnlayoutUI();this.j&&(this.j.freeXOriginIframe(),this.j=null);this.emitLifecycleEvent("adSlotCleared");return!0};k.createPlaceholderCallback=function(){return this.uiHandler.createPlaceholder()};
  97. k.getConsentState=function(){var a=AMP.BaseElement.prototype.getConsentPolicy.call(this);return a?mb(this.getAmpDoc(),a):Promise.resolve(null)};k.emitLifecycleEvent=function(a,b){b&&this.lifecycleReporter.setPingParameters(b);this.lifecycleReporter.sendPing(a)};
  98. function lc(a){var b=a.getViewport().getSize(),c=Math.min(500,b.height),d=a.config.fullWidthHeightRatio,e=Math.round(b.width/d),f=jc(e,c),g=b.width;return a.attemptChangeSize(f,g).then(function(){B().info("amp-ad-3p-impl","Size change accepted: "+g+"x"+f)},function(){B().info("amp-ad-3p-impl","Size change rejected: "+g+"x"+f)})};var nc={},oc=null;function pc(a){a=AMP.BaseElement.call(this,a)||this;a.Y=null;a.o=null;a.uiHandler=null;return a}m(pc,AMP.BaseElement);k=pc.prototype;k.getLayoutPriority=function(){return 0};k.isLayoutSupported=function(a){return kb(a)};k.buildCallback=function(){this.Y=this.element.getAttribute("data-url");this.o=this.element.getAttribute("data-slot");z().assert(null===this.o||this.o.match(/^[0-9a-z]+$/),"custom ad slot should be alphanumeric: "+this.o);this.uiHandler=new T(this)};
  99. k.layoutCallback=function(){var a=this,b=qc(this),c=nc[b]||M(this.win,"xhr").fetchJson(b).then(function(a){return a.json()});null!==this.o&&(nc[b]=c);return c.then(function(b){var c=b;null!==a.o&&(c=b.hasOwnProperty(a.o)?b[a.o]:null);if(c&&"object"==typeof c){c=rc(a,c);a.renderStarted();try{M(a.win,"templates").findAndRenderTemplate(a.element,c).then(function(b){for(var c=a.element;c.firstChild;)c.removeChild(c.firstChild);a.element.appendChild(b);a.signals().signal("ini-load")})}catch(f){a.uiHandler.applyNoContentUI()}}else a.uiHandler.applyNoContentUI()})};
  100. function rc(a,b){var c;c=a.element;if(null==za){var d=c.ownerDocument;try{var e=d.createElement("div"),f=d.createElement("div");e.appendChild(f);za=e.querySelector(":scope div")===f}catch(h){za=!1}}za?c=c.querySelector(":scope > template"):(c.classList.add("i-amphtml-scoped"),d=c.querySelector(".i-amphtml-scoped > template"),c.classList.remove("i-amphtml-scoped"),c=d);if(c)return b;z().assert(b.templateId,"TemplateId not specified");z().assert(b.data&&"object"==typeof b.data,"Template data not specified");
  101. a.element.setAttribute("template",b.templateId);if(b.vars&&"object"==typeof b.vars)for(c=b.vars,d=Object.keys(c),e=0;e<d.length;e++){var g="data-vars-"+d[e];try{a.element.setAttribute(g,c[d[e]])}catch(h){a.user().error("amp-ad-custom","Fail to set attribute: ",h)}}return b.data}k.unlayoutCallback=function(){this.uiHandler.applyUnlayoutUI();return!0};k.createPlaceholderCallback=function(){return this.uiHandler.createPlaceholder()};
  102. function qc(a){if(null===a.o)return a.Y;if(null===oc){oc={};for(var b={},c=Ba(a.element)[0].querySelectorAll("amp-ad[type=custom]"),d=0;d<c.length;d++){var e=c[d],f=e.getAttribute("data-url"),e=e.getAttribute("data-slot");null!==e&&(f in b||(b[f]=[]),b[f].push(encodeURIComponent(e)))}for(var g in b)c=oc,f=g,d=b[g].join(","),(d=encodeURIComponent("ampslots")+"="+encodeURIComponent(d))?(f=f.split("#",2),e=f[0].split("?",2),d=e[0]+(e[1]?"?"+e[1]+"&"+d:"?"+d),d+=f[1]?"#"+f[1]:""):d=f,c[g]=d}return oc[a.Y]}
  103. ;function Z(a){return AMP.BaseElement.apply(this,arguments)||this}m(Z,AMP.BaseElement);Z.prototype.isLayoutSupported=function(){return!0};
  104. Z.prototype.upgradeCallback=function(){var a=this,b=bb(),c=this.element.getAttribute("data-consent-notification-id"),d=c?Da(this.element,"userNotificationManager","amp-user-notification").then(function(a){return a.get(c)}):Promise.resolve(),e=this.element.getAttribute("type");return d.then(function(){var c="custom"===e;z().assert(c||da.call(O,e)||da.call(b,e),'Unknown ad type "'+e+'"');if(c)return new pc(a.element);a.win.ampAdSlotIdCounter=a.win.ampAdSlotIdCounter||0;var d=a.win.ampAdSlotIdCounter++;
  105. return new Promise(function(c){a.getVsync().mutate(function(){a.element.setAttribute("data-amp-slot-index",d);var f=!(O[e]||{}).remoteHTMLDisabled&&a.win.document.querySelector("meta[name=amp-3p-iframe-src]");if(!b[e]||!b[e](a.win,a.element,f))return c(new kc(a.element));var g="amp-ad-network-"+e+"-impl";a.element.setAttribute("data-a4a-upgrade-type",g);c(M(a.win,"extensions").loadElementClass(g).then(function(b){return new b(a.element)}).catch(function(b){var c=a.element.tagName;a.user().error(c,
  106. "Unable to load ad implementation for type ",e,", falling back to 3p, error: ",b);return new kc(a.element)}))})})})};
  107. (function(a){a.registerElement("amp-ad",Z,'amp-ad iframe,amp-embed iframe{border:0!important;margin:0!important;padding:0!important}.i-amphtml-ad-default-holder{position:absolute;left:0;right:0;top:0;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background-color:hsla(0,0%,78%,0.05)}.i-amphtml-ad-default-holder:after{content:"Ad";content:attr(data-ad-holder-text);background-color:transparent;border-radius:2px;color:#696969;font-size:10px;line-height:1;font-family:Arial,sans-serif;padding:3px 4px 1px;border:1px solid #696969}amp-ad[data-a4a-upgrade-type=amp-ad-network-doubleclick-impl]>iframe,amp-ad[type=adsense]>iframe{top:50%!important;left:50%!important;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}[dir=rtl] amp-ad[data-a4a-upgrade-type=amp-ad-network-doubleclick-impl]>iframe,[dir=rtl] amp-ad[type=adsense]>iframe{left:0!important;right:50%!important;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}amp-ad[data-a4a-upgrade-type=amp-ad-network-adsense-impl]>iframe,amp-ad[data-a4a-upgrade-type=amp-ad-network-doubleclick-impl]>iframe{min-height:0;min-width:0}amp-ad[data-a4a-upgrade-type=amp-ad-network-doubleclick-impl][height=fluid]>iframe{height:100%!important;width:100%!important;position:relative}amp-ad[data-a4a-upgrade-type=amp-ad-network-doubleclick-impl][height=fluid]{width:100%!important}\n/*# sourceURL=/extensions/amp-ad/0.1/amp-ad.css*/');a.registerElement("amp-embed",
  108. Z)})(self.AMP);
  109. })});
  110. //# sourceMappingURL=amp-ad-0.1.js.map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement