Free javascript Hosting


amp-script-0-1.js

Uploaded on Oct 20 2021 02:24 by jusjeruk8888

(self.AMP=self.AMP||[]).push({m:0,v:"2110082201001",n:"amp-script",ev:"0.1",l:true,f:function(AMP,_){"use strict";var w;function ja(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ka(a){for(var b=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],c=0;c<b.length;++c){var d=b[c];if(d&&d.Math==Math)return d}return function(){throw Error("Cannot find global object")}()}var la=ka(this);"function"===typeof Symbol&&Symbol("x");function ma(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ja(a)}}function na(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}var pa,oa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b};if("function"==typeof Object.setPrototypeOf)pa=Object.setPrototypeOf;else{var qa;a:{var ra={a:!0},ta={};try{ta.__proto__=ra;qa=ta.a;break a}catch(a){}qa=!1}pa=qa?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var va,ua=pa;function wa(){var a=this;this.promise=new Promise((function(b,c){a.resolve=b;a.reject=c}))}function ya(a,b,c,d,e){var l=e.executorsAllowed.includes(8);return{execute:function(f,g,k){return l&&k&&(f=b.getNode(f[g+1]))&&(k=f.transferControlToOffscreen(),c.messageToWorker({12:9,13:[f._index_],38:k},[k])),g+2}}}var za=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14];function Aa(a,b){Array.prototype.forEach.call(a,b)}function Ba(a,b){var c=this;this.nodes=this.count=this.stringContext=this.baseElement=void 0;this.createNodes=function(d,e){for(var l=(d=new Uint16Array(d)).length,f=0;f<l;f+=5){var g=void 0;if(3===d[f+1])g=document.createTextNode(c.stringContext.get(d[f+3]));else if(8===d[f+1])g=document.createComment(c.stringContext.get(d[f+3]));else if(11===d[f+1])g=document.createDocumentFragment();else if(g=c.stringContext.get(d[f+2]),g=0!==d[f+4]?document.createElementNS(c.stringContext.get(d[f+4]),g):document.createElement(g),e&&!e.sanitize(g))continue;c.storeNode(g,d[f])}};this.getNode=function(d){return(d=c.nodes.get(d))&&"BODY"===d.nodeName?c.baseElement:d};this.storeNodes=function(d){c.storeNode(d,++c.count);Aa(d.childNodes,(function(e){return c.storeNodes(e)}))};this.count=2;this.stringContext=a;this.nodes=new Map([[1,b],[2,b]]);this.baseElement=b;b._index_=2;Aa(b.childNodes,(function(d){return c.storeNodes(d)}))}Ba.prototype.storeNode=function(a,b){a._index_=b;this.nodes.set(b,a)};var Ca=new Map;function Da(a,b){b&&"value"in b&&null===b.oninput&&(b.oninput=function(){return Ea(a,b)})}function Fa(a,b){b&&"value"in b&&!Ca.get(b)&&(new MutationObserver((function(c){return c.map((function(d){return Ea(a,d.target)}))})).observe(b,{attributes:!0}),Ca.set(b,!0))}function Ea(a,b){return a.messageToWorker({12:4,40:{7:b._index_,21:b.value}})}function Na(a){return Object.values(a).map((function(b){return[b.identifier,b.screenX,b.screenY,b.clientX,b.clientY,b.pageX,b.pageY,b.target._index_]}))}function Oa(a,b,c,d,e){function l(n,q){return function(p){q&&p.preventDefault();var r=p.currentTarget;if(r&&"value"in r)Ea(c,p.currentTarget);else if("resize"===p.type){r=window;var u=r.innerHeight;if(k[0]===r.innerWidth&&k[1]===u)return;k=[window.innerWidth,window.innerHeight];c.messageToWorker({12:5,40:k})}c.messageToWorker({12:1,39:{7:n,25:p.bubbles,26:p.cancelable,27:p.cancelBubble,28:[p.currentTarget._index_||0],29:p.defaultPrevented,30:p.eventPhase,31:p.isTrusted,32:p.returnValue,13:[p.target._index_||0],33:p.timeStamp,12:p.type,35:"keyCode"in p?p.keyCode:void 0,60:"pageX"in p?p.pageX:void 0,61:"pageY"in p?p.pageY:void 0,65:"offsetX"in p?p.offsetX:void 0,66:"offsetY"in p?p.offsetY:void 0,62:"touches"in p?Na(p.touches):void 0,63:"changedTouches"in p?Na(p.changedTouches):void 0}})}}var f=[],g=e.executorsAllowed.includes(4),k=[window.innerWidth,window.innerHeight];return{execute:function(n,q,p){var r=n[q+2],u=q+4+2*r;if(r=q+4+6*n[q+3]+2*r,g&&p&&(p=b.getNode(n[q+1])))for(var z=q+4;z<r;){var A=z<=u;q=p;var N=A,E=n,I=z,S=a.get(E[I]),T=E[I+1];if(q===b.baseElement)N?addEventListener(S,f[T]=l(1,!!E[I+5])):removeEventListener(S,f[T]);else{var U=null!==q.oninput,xa="change"===S;N?(xa&&(U=!0,q.onchange=null),q.addEventListener(S,f[T]=l(q._index_,!!E[I+5]))):(xa&&(U=!1),q.removeEventListener(S,f[T]));q&&"value"in q&&(U||Da(c,q),Fa(c,q))}z+=A?2:6}return r}}}function Pa(a,b,c,d,e){var l=e.executorsAllowed.includes(5);return{execute:function(f,g,k){return l&&k&&(f=b.getNode(f[g+1]))&&(k=f.getBoundingClientRect(),c.messageToWorker({12:6,13:[f._index_],38:[k.top,k.right,k.bottom,k.left,k.width,k.height]})),g+2}}}function Qa(a,b,c,d,e){var l=b.getNode,f=e.executorsAllowed.includes(2);return{execute:function(g,k,n){var q=g[k+4],p=g[k+5];if(f&&n){var r=l(g[k+1]);r&&(0<p&&g.slice(k+6+q,k+6+q+p).forEach((function(u){(u=l(u))&&u.remove()})),0<q&&g.slice(k+6,k+6+q).forEach((function(u){var z=g[k+2];(u=l(u))&&(r.insertBefore(u,z&&l(z)||null),Da(c,u),Fa(c,u))})))}return k+6+q+p}}}function Ra(a,b,c,d,e){var l=e.executorsAllowed.includes(0);return{execute:function(f,g,k){if(l&&k){k=b.getNode(f[g+1]);var n=a.get(f[g+2]);f=0!==(f=f[g+4])?a.get(f-1):null;k&&null!=n&&(e.sanitizer?e.sanitizer.setAttribute(k,n,f):null==f?k.removeAttribute(n):k.setAttribute(n,f))}return g+5}}}function Sa(a,b,c,d,e){var l=e.executorsAllowed.includes(1);return{execute:function(f,g,k){return l&&k&&(k=b.getNode(f[g+1]),f=f[g+2],k&&f&&(k.textContent=a.get(f))),g+3}}}function Ta(a,b,c,d,e){var l=e.executorsAllowed.includes(3);return{execute:function(f,g,k){if(l&&k){k=b.getNode(f[g+1]);var n=a.get(f[g+2]),q=f[g+4];f=1===f[g+3]?1===q:0!==q?a.get(q):null;k&&n&&null!=f&&(e.sanitizer?e.sanitizer.setProperty(k,n,String(f)):k[n]=f)}return g+5}}}function Ua(a,b,c,d,e){var f,l=e.executorsAllowed.includes(6),g=0;return{execute:function(k,n,q){if(l&&q&&e.longTask)if(6===k[n]){if(g++,!f){var p=new Promise((function(r){return f=r}));Promise.resolve().then((function(){return e.longTask&&e.longTask(p)}))}}else 7===k[n]&&(g--,f&&0>=g&&(f(),f=null,g=0));return n+2},get active(){return null!==f}}}var Va=new Float32Array(1),Wa=new Uint16Array(Va.buffer);function Xa(a,b,c,d,e,l){for(var f=[],g=0;g<c;g++)switch(a[b++]){case 1:f.push(a[b++]);break;case 2:Wa[0]=a[b++];Wa[1]=a[b++];f.push(Va[0]);break;case 3:f.push(d.get(a[b++]));break;case 4:var k=a[b++];b=Xa(a,b,k,d,e,l);f.push(b.args);b=b.offset;break;case 5:if(!l)throw Error("objectContext not provided.");f.push(l.get(a[b++]));break;case 6:k=e.getNode(a[b++]);f.push(k.getContext("2d"));break;case 7:f.push(e.getNode(a[b++]));break;default:throw Error("Cannot deserialize argument.")}return{args:f,offset:b}}function Ya(a,b,c,d,e){var l=e.executorsAllowed.includes(9);return{execute:function(f,g,k){var n=a.get(f[g+1]),q=f[g+2];g=Xa(f,g+3,1,a,b,d);var p=g.offset;g=g.args[0];q=Xa(f,p,q,a,b,d);f=q.offset;q=q.args;return l&&k&&(Za(g,n)?g[n]=q[0]:g[n].apply(g,q instanceof Array?q:na(ma(q)))),f}}}function Za(a,b){if(!a)throw Error("Property "+b+" does not exist on "+a+".");var c=Object.getOwnPropertyDescriptor(a,b);return void 0!==c?"set"in c:Za(Object.getPrototypeOf(a),b)}function $a(a,b,c,d,e){var l=e.executorsAllowed.includes(10);if(!d)throw Error("objectContext is not defined.");return{execute:function(f,g,k){var n=a.get(f[g+1]),q=f[g+2],p=f[g+3];g=Xa(f,g+4,1,a,b,d);var r=g.offset;g=g.args[0];p=Xa(f,r,p,a,b,d);f=p.offset;p=p.args;return l&&k&&"new"!==n&&d.store(q,g[n].apply(g,p instanceof Array?p:na(ma(p)))),f}}}function ab(a,b,c,d,e){var l=e.executorsAllowed.includes(11);return{execute:function(f,g,k){return l&&k&&(k=b.getNode(f[g+1]))&&self.createImageBitmap(k).then((function(n){c.messageToWorker({12:10,73:f[g+2],38:n},[n])})),g+3}}}function bb(a,b,c,d,e){var l=e.executorsAllowed.includes(12);return{execute:function(f,g,k){if(l&&k){k=f[g+1];var n=f[g+2],q=f[g+3],p=f[g+4];if(f=0<=q?a.get(q):"",q=0<=p?a.get(p):null,1===k)(function(u,z){e.sanitizer&&2===u&&e.sanitizer.getStorage(u,z).then((function(A){c.messageToWorker({12:11,74:z,75:u,21:A})}))})(n,f);else if(2===k)if(k=n,n=f,f=q,e.sanitizer)e.sanitizer.setStorage(k,n,f);else{var r;if(0===k?r=window.localStorage:1===k&&(r=window.sessionStorage),r)if(null==n){if(null!=f)throw Error("Unexpected storage operation.");r.clear()}else null==f?r.removeItem(n):r.setItem(n,f)}}return g+5}}}var cb=0,db={};function eb(a,b,c,d,e){var l=e.executorsAllowed.includes(13);return{execute:function(f,g){if(l){var k=f[g+1],n=f[g+2];f=f[g+3];f=a.hasIndex(f)?JSON.parse(a.get(f)):void 0;1===k?db[n].resolve(f):db[n].reject(f);delete db[n]}return g+4}}}function fb(a,b,c,d,e){var l=e.executorsAllowed.includes(14);return{execute:function(f,g,k){return l&&k&&(f=b.getNode(f[g+1]))&&f.scrollIntoView(),g+2}}}function gb(a,b,c,d,e){var l=this;this.nodeContext=this.stringContext=void 0;this.mutationQueue=[];this.pendingMutations=!1;this.executors=this.sanitizer=this.mutationPumpFunction=void 0;this.syncFlush=function(f){f=void 0===f?!0:f;var g=[];return l.mutationQueue.forEach((function(k){for(var n=k.length,q=0;q<n;){var r,p=k[q];if(!(r=f)){a:switch(p){case 4:case 5:case 6:case 7:case 12:case 8:case 13:r=!1;break a;default:r=!0}r=!r}r||g.push(p);q=l.executors[p].execute(k,q,r)}})),l.mutationQueue=[],l.pendingMutations=!1,g};this.stringContext=a;this.nodeContext=b;this.sanitizer=d.sanitizer;this.mutationPumpFunction=d.mutationPump;b=Ua.apply(null,a=[a,b,c,e,d]);this.executors={2:Qa.apply(null,a),0:Ra.apply(null,a),1:Sa.apply(null,a),3:Ta.apply(null,a),4:Oa.apply(null,a),5:Pa.apply(null,a),6:b,7:b,8:ya.apply(null,a),9:Ya.apply(null,a),10:$a.apply(null,a),11:ab.apply(null,a),12:bb.apply(null,a),13:eb.apply(null,a),14:fb.apply(null,a)}}gb.prototype.mutate=function(a,b,c,d){this.stringContext.storeValues(c);this.nodeContext.createNodes(b,this.sanitizer);this.mutationQueue=this.mutationQueue.concat(d);this.pendingMutations||(this.pendingMutations=!0,this.mutationPumpFunction(this.syncFlush,a))};function hb(){this.strings=[]}hb.prototype.get=function(a){return this.strings[a]||""};hb.prototype.hasIndex=function(a){return void 0!==this.strings[a]};hb.prototype.store=function(a){this.strings.push(a)};hb.prototype.storeValues=function(a){var b=this;a.forEach((function(c){return b.store(c)}))};var ib=[8,3];function ub(a,b,c,d){var e=[].slice.call(a.childNodes).filter(c);return e={7:a._index_,11:0,0:a.nodeType,1:b(a.localName||a.nodeName),4:e.map((function(l){return ub(l,b,c,d)})),2:[].map.call(a.attributes||[],(function(l){return[b(l.namespaceURI||"null"),b(l.name),b(l.value)]}))},null!=a.namespaceURI&&(e[6]=b(a.namespaceURI)),ib.includes(a.nodeType)&&null!==a.textContent&&(e[5]=b(a.textContent)),Da(d,a),Fa(d,a),e}function vb(){return(vb=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c,d=arguments[b];for(c in d)Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}return a}).apply(this,arguments)}function wb(a,b){var c=this;this.readyPromiseResolve=this.iframe=this.readyPromise=this.onmessageerror=this.onmessage=this.onerror=this.url=void 0;this.url=a;this.iframe=window.document.createElement("iframe");this.iframe.setAttribute("sandbox","allow-scripts");this.iframe.setAttribute("style","display:none");this.iframe.setAttribute("src",b);this.url=a;this.readyPromise=new Promise((function(d){c.readyPromiseResolve=d}));this.setupInit();this.proxyFromWorker();window.document.body.appendChild(this.iframe)}wb.prototype.setupInit=function(){function a(c){c.source==b.iframe.contentWindow&&fetch(b.url.toString()).then((function(d){return d.text()})).then((function(d){var e=c.data;"iframe-ready"==e.type?b.iframe.contentWindow.postMessage({type:"init-worker",code:d},"*"):"worker-ready"===e.type&&(b.readyPromiseResolve(),window.removeEventListener("message",a))}))}var b=this;window.addEventListener("message",a)};wb.prototype.proxyFromWorker=function(){var a=this;window.addEventListener("message",(function(b){if(b.source==a.iframe.contentWindow){var c=b.data,d=c.type;c=c.message;"onmessage"==d&&a.onmessage?a.onmessage(vb({},b,{data:c})):"onerror"===d&&a.onerror?a.onerror(c):"onmessageerror"===d&&a.onmessageerror&&a.onmessageerror(vb({},b,{data:c}))}}))};wb.prototype.postMessage=function(a,b){var c=this,d={type:"postMessage",message:a};this.readyPromise.then((function(){c.iframe.contentWindow.postMessage(d,"*",b)}))};wb.prototype.terminate=function(){this.iframe.contentWindow.postMessage({type:"terminate"},"*");this.iframe.remove()};function xb(a,b,c,d,e){this[55]=void 0;this.nodeContext=b;this.config=e;b=function(r,u,z){u=u.hydrateFilter||function(){return!0};var A=[],N=new Map;return{skeleton:ub(r,(function(E){if(N.has(E))return N.get(E);var I=A.length;return N.set(E,I),A.push(E),I}),u,z),strings:A}}(a,e,this);var l=b.skeleton,f=b.strings;b=[];var q,g=[],k=yb("localStorage"),n=yb("sessionStorage");for(q in a.style)b.push(q);for(var p in a)p.startsWith("on")&&g.push(p);c="'use strict';(function(){"+c+"self['window']=self;var workerDOM=WorkerThread.workerDOM;WorkerThread.hydrate(workerDOM.document,"+JSON.stringify(f)+","+JSON.stringify(l)+","+JSON.stringify(b)+","+JSON.stringify(g)+",["+window.innerWidth+","+window.innerHeight+"],"+JSON.stringify(k)+","+JSON.stringify(n)+");workerDOM.document[59](this);Object.assign(self,workerDOM);}).call(self);"+d+"//# sourceURL="+encodeURI(e.authorURL);this[55]=e.sandbox?new wb(URL.createObjectURL(new Blob([c])),e.sandbox.iframeUrl):new Worker(URL.createObjectURL(new Blob([c])));e.onCreateWorker&&e.onCreateWorker(a,f,l,b)}xb.prototype.ready=function(){return this.worker.readyPromise||Promise.resolve()};xb.prototype.messageToWorker=function(a,b){this.config.onSendMessage&&this.config.onSendMessage(a);this.worker.postMessage(a,b||[])};la.Object.defineProperties(xb.prototype,{worker:{configurable:!0,enumerable:!0,get:function(){return this[55]}}});function yb(a){try{return{storage:window[a],errorMsg:null}}catch(b){return{errorMsg:b.message,storage:null}}}function zb(){this.objects=void 0;this.objects=new Map}zb.prototype.store=function(a,b){this.objects.set(a,b)};zb.prototype.get=function(a){var b=this.objects.get(a);if(b)return b;throw Error("Object with id ("+a+") does not exist.")};function Ab(a,b){this.T=a;this.config=b}Ab.prototype.callFunction=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.config.executorsAllowed.includes(13))throw Error("[worker-dom]: Error calling "+a+". You must enable the FUNCTION_CALL executor within the config.");var e=function(){var l,f,g=new Promise((function(n,q){l=n;f=q}));cb>=Number.MAX_VALUE&&(cb=0);var k=cb++;return db[k]={promise:g,resolve:l,reject:f},{promise:g,index:k}}();d=e.promise;e=e.index;return a={12:12,77:a,78:JSON.stringify(c),7:e},this.T.messageToWorker(a),d};Ab.prototype.terminate=function(){this.T.worker.terminate()};la.Object.defineProperties(Ab.prototype,{onerror:{configurable:!0,enumerable:!0,set:function(a){this.T.worker.onerror=a}}});var Bb=[3,2];function Cb(a,b,c){var d=new hb,e=new zb,l=new Ba(d,b),f=function(g){return Object.assign({},{mutationPump:requestAnimationFrame.bind(null),executorsAllowed:za},g)}(c);return a.then((function(g){var k=ma(g);g=k.next().value;k=k.next().value;if(g&&k&&c.authorURL){var n=new xb(b,l,g,k,f),q=new gb(d,l,n,f,e);return n.worker.onmessage=function(p){var r=p.data;Bb.includes(r[12])&&(q.mutate(r[54],r[37],r[41],new Uint16Array(r[36])),c.onReceiveMessage)&&c.onReceiveMessage(p)},n.ready().then((function(){return new Ab(n,f)}))}return null}))}function Db(a){return null===a.parentNode||(a=(a.parentNode.localName||a.parentNode.nodeName).toLowerCase(),!/amp-/.test(a)||"amp-script"===a)}function Eb(a,b,c){return c.hydrateFilter=Db,Cb(b,a,c)}function Fb(a,b){for(var c=[],d=0,e=0;e<a.length;e++){var l=a[e];b(l,e,a)?c.push(l):(d<e&&(a[d]=l),d++)}d<a.length&&(a.length=d);return c}function Gb(a){return a||{}}function Hb(a){return 1==(null==a?void 0:a.nodeType)?a.tagName.toLowerCase()+(a.id?"#"+a.id:""):a}function Ib(a,b,c,d){var e=void 0===c?"Assertion failed":c;if(!b){a&&-1==e.indexOf(a)&&(e+=a);for(var l=3,f=e.split("%s"),g=f.shift(),k=[g];f.length;){var n=arguments[l++],q=f.shift();g+=Hb(n)+q;k.push(n,q.trim())}l=Error(g);l.messageArray=Fb(k,(function(u){return""!==u}));var p,r;null==(r=(p=self).__AMP_REPORT_ERROR)||r.call(p,l);throw l}}function Jb(a,b,c){Ib("​​​",a,b,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Kb(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a||"fluid"==a||"intrinsic"==a}function Lb(a){a.classList.add("i-amphtml-fill-content");a.classList.add("i-amphtml-replaced-content")}
/* https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
function Mb(a,b){var c=[];for(a=a.firstElementChild;a;a=a.nextElementSibling)b(a)&&c.push(a);return c}function Nb(a){return Mb(a,(function(b){if("string"==typeof b)var c=b;else b.nodeType===Node.ELEMENT_NODE&&(c=b.tagName);b=c&&c.toLowerCase().startsWith("i-")?!0:b.nodeType!==Node.ELEMENT_NODE?!1:b.hasAttribute("placeholder")||b.hasAttribute("fallback")||b.hasAttribute("overflow");return!b}))}function Ob(a,b){try{return JSON.parse(a)}catch(c){return null==b||b(c),null}}function Pb(a){if("undefined"!==typeof TextEncoder)a=new TextEncoder("utf-8").encode(a);else{a=unescape(encodeURIComponent(a));for(var b=new Uint8Array(a.length),c=0;c<a.length;c++){var d=a.charCodeAt(c);b[c]=d}a=b}return a}
/* @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */
var Qb=Object.hasOwnProperty,Rb=Object.setPrototypeOf,Sb=Object.isFrozen,Tb=Object.getPrototypeOf,Ub=Object.getOwnPropertyDescriptor,y=Object.freeze,B=Object.seal,Vb=Object.create,Wb="undefined"!==typeof Reflect&&Reflect,Xb=Wb.apply,Yb=Wb.construct;Xb||(Xb=function(a,b,c){return a.apply(b,c)});y||(y=function(a){return a});B||(B=function(a){return a});Yb||(Yb=function(a,b){var c=Function.prototype.bind,d=c.apply,e=[null],l=e.concat;if(Array.isArray(b)){for(var f=0,g=Array(b.length);f<b.length;f++)g[f]=b[f];b=g}else b=Array.from(b);return new(d.call(c,a,l.call(e,b)))});var Zb=F(Array.prototype.forEach),$b=F(Array.prototype.pop),ac=F(Array.prototype.push),bc=F(String.prototype.toLowerCase),rc=F(String.prototype.match),H=F(String.prototype.replace),sc=F(String.prototype.indexOf),tc=F(String.prototype.trim),J=F(RegExp.prototype.test),vc=uc();function F(a){return function(b){for(var c=arguments.length,d=Array(1<c?c-1:0),e=1;e<c;e++)d[e-1]=arguments[e];return Xb(a,b,d)}}function uc(){var a=TypeError;return function(){for(var b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];return Yb(a,c)}}function K(a,b){Rb&&Rb(a,null);for(var c=b.length;c--;){var d=b[c];if("string"===typeof d){var e=bc(d);e!==d&&(Sb(b)||(b[c]=e),d=e)}a[d]=!0}return a}function O(a){var b=Vb(null),c=void 0;for(c in a)Xb(Qb,a,[c])&&(b[c]=a[c]);return b}function wc(a,b){for(;null!==a;){var c=Ub(a,b);if(c){if(c.get)return F(c.get);if("function"===typeof c.value)return F(c.value)}a=Tb(a)}return function(d){console.warn("fallback value for",d);return null}}var xc=y("a abbr acronym address area article aside audio b bdi bdo big blink blockquote body br button canvas caption center cite code col colgroup content data datalist dd decorator del details dfn dialog dir div dl dt element em fieldset figcaption figure font footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i img input ins kbd label legend li main map mark marquee menu menuitem meter nav nobr ol optgroup option output p picture pre progress q rp rt ruby s samp section select shadow small source spacer span strike strong style sub summary sup table tbody td template textarea tfoot th thead time tr track tt u ul var video wbr".split(" ")),yc=y("svg a altglyph altglyphdef altglyphitem animatecolor animatemotion animatetransform circle clippath defs desc ellipse filter font g glyph glyphref hkern image line lineargradient marker mask metadata mpath path pattern polygon polyline radialgradient rect stop style switch symbol text textpath title tref tspan view vkern".split(" ")),zc=y("feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence".split(" ")),Ac=y("animate color-profile cursor discard fedropshadow feimage font-face font-face-format font-face-name font-face-src font-face-uri foreignobject hatch hatchpath mesh meshgradient meshpatch meshrow missing-glyph script set solidcolor unknown use".split(" ")),Bc=y("math menclose merror mfenced mfrac mglyph mi mlabeledtr mmultiscripts mn mo mover mpadded mphantom mroot mrow ms mspace msqrt mstyle msub msup msubsup mtable mtd mtext mtr munder munderover".split(" ")),Cc=y("maction maligngroup malignmark mlongdiv mscarries mscarry msgroup mstack msline msrow semantics annotation annotation-xml mprescripts none".split(" ")),Dc=y(["#text"]),Ec=y("accept action align alt autocapitalize autocomplete autopictureinpicture autoplay background bgcolor border capture cellpadding cellspacing checked cite class clear color cols colspan controls controlslist coords crossorigin datetime decoding default dir disabled disablepictureinpicture disableremoteplayback download draggable enctype enterkeyhint face for headers height hidden high href hreflang id inputmode integrity ismap kind label lang list loading loop low max maxlength media method min minlength multiple muted name noshade novalidate nowrap open optimum pattern placeholder playsinline poster preload pubdate radiogroup readonly rel required rev reversed role rows rowspan spellcheck scope selected shape size sizes span srclang start src srcset step style summary tabindex title translate type usemap valign value width xmlns slot".split(" ")),Fc=y("accent-height accumulate additive alignment-baseline ascent attributename attributetype azimuth basefrequency baseline-shift begin bias by class clip clippathunits clip-path clip-rule color color-interpolation color-interpolation-filters color-profile color-rendering cx cy d dx dy diffuseconstant direction display divisor dur edgemode elevation end fill fill-opacity fill-rule filter filterunits flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight fx fy g1 g2 glyph-name glyphref gradientunits gradienttransform height href id image-rendering in in2 k k1 k2 k3 k4 kerning keypoints keysplines keytimes lang lengthadjust letter-spacing kernelmatrix kernelunitlength lighting-color local marker-end marker-mid marker-start markerheight markerunits markerwidth maskcontentunits maskunits max mask media method mode min name numoctaves offset operator opacity order orient orientation origin overflow paint-order path pathlength patterncontentunits patterntransform patternunits points preservealpha preserveaspectratio primitiveunits r rx ry radius refx refy repeatcount repeatdur restart result rotate scale seed shape-rendering specularconstant specularexponent spreadmethod startoffset stddeviation stitchtiles stop-color stop-opacity stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke stroke-width style surfacescale systemlanguage tabindex targetx targety transform text-anchor text-decoration text-rendering textlength type u1 u2 unicode values viewbox visibility version vert-adv-y vert-origin-x vert-origin-y width word-spacing wrap writing-mode xchannelselector ychannelselector x x1 x2 xmlns y y1 y2 z zoomandpan".split(" ")),Gc=y("accent accentunder align bevelled close columnsalign columnlines columnspan denomalign depth dir display displaystyle encoding fence frame height href id largeop length linethickness lspace lquote mathbackground mathcolor mathsize mathvariant maxsize minsize movablelimits notation numalign open rowalign rowlines rowspacing rowspan rspace rquote scriptlevel scriptminsize scriptsizemultiplier selection separator separators stretchy subscriptshift supscriptshift symmetric voffset width xmlns".split(" ")),Hc=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ic=B(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Jc=B(/<%[\s\S]*|[\s\S]*%>/gm),Kc=B(/^data-[\-\w.\u00B7-\uFFFF]/),Lc=B(/^aria-[\-\w]+$/),Mc=B(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Nc=B(/^(?:\w+script|data):/i),Oc=B(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pc="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};function P(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}return Array.from(a)}function Qc(a,b){if("object"!==("undefined"===typeof a?"undefined":Pc(a))||"function"!==typeof a.createPolicy)return null;var c=null;b.currentScript&&b.currentScript.hasAttribute("data-tt-policy-suffix")&&(c=b.currentScript.getAttribute("data-tt-policy-suffix"));var d="dompurify"+(c?"#"+c:"");try{return a.createPolicy(d,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+d+" could not be created."),null}}function Rc(){function a(h){var m,t;d("beforeSanitizeAttributes",h,null);var v=h.attributes;if(v){var x={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:C};for(t=v.length;t--;){var L=m=v[t],G=L.name,Ga=L.namespaceURI;m=tc(m.value);var Q=aa(G);x.attrName=Q;x.attrValue=m;x.keepAttr=!0;x.forceKeepAttr=void 0;d("uponSanitizeAttribute",h,x);m=x.attrValue;if(!x.forceKeepAttr&&(k(G,h),x.keepAttr))if(J(/\/>/i,m))k(G,h);else{ba&&(m=H(m,Ic," "),m=H(m,Jc," "));var Qd=aa(h.nodeName);if(b(Qd,Q,m))try{Ga?h.setAttributeNS(Ga,G,m):h.setAttribute(G,m),$b(r.removed)}catch(Le){}}}d("afterSanitizeAttributes",h,null)}}function b(h,m,t){if(cc&&("id"===m||"name"===m)&&(t in A||t in Rd))return!1;if(!jb||kb[m]||!J(Kc,m))if(!dc||!J(Lc,m))if(!C[m]||kb[m]||!(lb[m]||J(mb,H(t,Oc,""))||("src"===m||"xlink:href"===m||"href"===m)&&"script"!==h&&0===sc(t,"data:")&&ec[h]||fc&&!J(Nc,H(t,Oc,"")))&&t)return!1;return!0}function c(h){var m=void 0;d("beforeSanitizeElements",h,null);if(l(h)||rc(h.nodeName,/[\u0080-\uFFFF]/))return n(h),!0;var t=aa(h.nodeName);d("uponSanitizeElement",h,{tagName:t,allowedTags:D});if(!(e(h.firstElementChild)||e(h.content)&&e(h.content.firstElementChild))&&J(/<[/\w]/g,h.innerHTML)&&J(/<[/\w]/g,h.textContent)||"select"===t&&J(/<template/i,h.innerHTML))return n(h),!0;if(!D[t]||nb[t]){if(ob&&!ca[t]){var v=pb(h)||h.parentNode,x=Sd(h)||h.childNodes;if(x&&v)for(t=x.length-1;0<=t;--t)v.insertBefore(Td(x[t],!0),Ud(h))}n(h);return!0}if(h instanceof S&&!q(h)||("noscript"===t||"noembed"===t)&&J(/<\/no(script|embed)/i,h.innerHTML))return n(h),!0;ba&&3===h.nodeType&&(m=h.textContent,m=H(m,Ic," "),m=H(m,Jc," "),h.textContent!==m&&(ac(r.removed,{element:h.cloneNode()}),h.textContent=m));d("afterSanitizeElements",h,null);return!1}function d(h,m,t){M[h]&&Zb(M[h],(function(v){v.call(r,m,t,da)}))}function e(h){return"object"===("undefined"===typeof I?"undefined":Pc(I))?h instanceof I:h&&"object"===("undefined"===typeof h?"undefined":Pc(h))&&"number"===typeof h.nodeType&&"string"===typeof h.nodeName}function l(h){return h instanceof Vd||h instanceof Wd?!1:"string"===typeof h.nodeName&&"string"===typeof h.textContent&&"function"===typeof h.removeChild&&h.attributes instanceof xa&&"function"===typeof h.removeAttribute&&"function"===typeof h.setAttribute&&"string"===typeof h.namespaceURI&&"function"===typeof h.insertBefore?!1:!0}function f(h){return Xd.call(h.ownerDocument||h,h,T.SHOW_ELEMENT|T.SHOW_COMMENT|T.SHOW_TEXT,null,!1)}function g(h){var m=void 0,t=void 0;if(qb)h="<remove></remove>"+h;else{var v=rc(h,/^[\r\n\t ]+/);t=v&&v[0]}"application/xhtml+xml"===ea&&(h='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+h+"</body></html>");var x=W?W.createHTML(h):h;if("http://www.w3.org/1999/xhtml"===Ha)try{m=(new Yd).parseFromString(x,ea)}catch(G){}if(!m||!m.documentElement){m=rb.createDocument(Ha,"template",null);try{m.documentElement.innerHTML=gc?"":x}catch(G){}}var L=m.body||m.documentElement;h&&t&&L.insertBefore(A.createTextNode(t),L.childNodes[0]||null);return"http://www.w3.org/1999/xhtml"===Ha?Zd.call(m,fa?"html":"body")[0]:fa?m.documentElement:L}function k(h,m){try{ac(r.removed,{attribute:m.getAttributeNode(h),from:m})}catch(t){ac(r.removed,{attribute:null,from:m})}m.removeAttribute(h);if("is"===h&&!C[h])if(ha||Ia)try{n(m)}catch(t){}else try{m.setAttribute(h,"")}catch(t){}}function n(h){ac(r.removed,{element:h});try{h.parentNode.removeChild(h)}catch(m){try{h.outerHTML=hc}catch(t){h.remove()}}}function q(h){var m=pb(h);m&&m.tagName||(m={namespaceURI:"http://www.w3.org/1999/xhtml",tagName:"template"});var t=bc(h.tagName),v=bc(m.tagName);if("http://www.w3.org/2000/svg"===h.namespaceURI)return"http://www.w3.org/1999/xhtml"===m.namespaceURI?"svg"===t:"http://www.w3.org/1998/Math/MathML"===m.namespaceURI?"svg"===t&&("annotation-xml"===v||ic[v]):!!Ja[t];if("http://www.w3.org/1998/Math/MathML"===h.namespaceURI)return"http://www.w3.org/1999/xhtml"===m.namespaceURI?"math"===t:"http://www.w3.org/2000/svg"===m.namespaceURI?"math"===t&&jc[v]:!!sb[t];if("http://www.w3.org/1999/xhtml"===h.namespaceURI){if("http://www.w3.org/2000/svg"===m.namespaceURI&&!jc[v]||"http://www.w3.org/1998/Math/MathML"===m.namespaceURI&&!ic[v])return!1;var x=K({},["title","style","font","a","script"]);return!sb[t]&&(x[t]||!Ja[t])}return!1}function p(h){da&&da===h||(h&&"object"===("undefined"===typeof h?"undefined":Pc(h))||(h={}),h=O(h),D="ALLOWED_TAGS"in h?K({},h.ALLOWED_TAGS):kc,C="ALLOWED_ATTR"in h?K({},h.ALLOWED_ATTR):lc,lb="ADD_URI_SAFE_ATTR"in h?K(O(mc),h.ADD_URI_SAFE_ATTR):mc,ec="ADD_DATA_URI_TAGS"in h?K(O(nc),h.ADD_DATA_URI_TAGS):nc,ca="FORBID_CONTENTS"in h?K({},h.FORBID_CONTENTS):oc,nb="FORBID_TAGS"in h?K({},h.FORBID_TAGS):{},kb="FORBID_ATTR"in h?K({},h.FORBID_ATTR):{},ia="USE_PROFILES"in h?h.USE_PROFILES:!1,dc=!1!==h.ALLOW_ARIA_ATTR,jb=!1!==h.ALLOW_DATA_ATTR,fc=h.ALLOW_UNKNOWN_PROTOCOLS||!1,ba=h.SAFE_FOR_TEMPLATES||!1,fa=h.WHOLE_DOCUMENT||!1,ha=h.RETURN_DOM||!1,Ia=h.RETURN_DOM_FRAGMENT||!1,pc=!1!==h.RETURN_DOM_IMPORT,Ka=h.RETURN_TRUSTED_TYPE||!1,qb=h.FORCE_BODY||!1,cc=!1!==h.SANITIZE_DOM,ob=!1!==h.KEEP_CONTENT,sa=h.IN_PLACE||!1,mb=h.ALLOWED_URI_REGEXP||mb,Ha=h.NAMESPACE||"http://www.w3.org/1999/xhtml",ea=-1===$d.indexOf(h.PARSER_MEDIA_TYPE)?ea="text/html":ea=h.PARSER_MEDIA_TYPE,aa="application/xhtml+xml"===ea?function(m){return m}:bc,ba&&(jb=!1),Ia&&(ha=!0),ia&&(D=K({},[].concat(P(Dc))),C=[],!0===ia.html&&(K(D,xc),K(C,Ec)),!0===ia.svg&&(K(D,yc),K(C,Fc),K(C,Hc)),!0===ia.svgFilters&&(K(D,zc),K(C,Fc),K(C,Hc)),!0===ia.mathMl&&(K(D,Bc),K(C,Gc),K(C,Hc))),h.ADD_TAGS&&(D===kc&&(D=O(D)),K(D,h.ADD_TAGS)),h.ADD_ATTR&&(C===lc&&(C=O(C)),K(C,h.ADD_ATTR)),h.ADD_URI_SAFE_ATTR&&K(lb,h.ADD_URI_SAFE_ATTR),h.FORBID_CONTENTS&&(ca===oc&&(ca=O(ca)),K(ca,h.FORBID_CONTENTS)),ob&&(D["#text"]=!0),fa&&K(D,["html","head","body"]),D.table&&(K(D,["tbody"]),delete nb.tbody),y&&y(h),da=h)}function r(h){return Rc(h)}var u=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"undefined"===typeof window?null:window;r.version="2.3.3";r.removed=[];if(!u||!u.document||9!==u.document.nodeType)return r.isSupported=!1,r;var z=u.document,A=u.document,N=u.DocumentFragment,E=u.HTMLTemplateElement,I=u.Node,S=u.Element,T=u.NodeFilter,U=u.NamedNodeMap,xa=void 0===U?u.NamedNodeMap||u.MozNamedAttrMap:U,Vd=u.Text,Wd=u.Comment,Yd=u.DOMParser;U=u.trustedTypes;var La=S.prototype,Td=wc(La,"cloneNode"),Ud=wc(La,"nextSibling"),Sd=wc(La,"childNodes"),pb=wc(La,"parentNode");"function"===typeof E&&(E=A.createElement("template"),E.content&&E.content.ownerDocument&&(A=E.content.ownerDocument));var W=Qc(U,z),hc=W&&Ka?W.createHTML(""):"",Ma=A,rb=Ma.implementation,Xd=Ma.createNodeIterator,ae=Ma.createDocumentFragment,Zd=Ma.getElementsByTagName,be=z.importNode,qc={};try{qc=O(A).documentMode?A.documentMode:{}}catch(h){}var M={};r.isSupported="function"===typeof pb&&rb&&"undefined"!==typeof rb.createHTMLDocument&&9!==qc;var mb=Mc,D=null,kc=K({},[].concat(P(xc),P(yc),P(zc),P(Bc),P(Dc))),C=null,lc=K({},[].concat(P(Ec),P(Fc),P(Gc),P(Hc))),nb=null,kb=null,dc=!0,jb=!0,fc=!1,ba=!1,fa=!1,tb=!1,qb=!1,ha=!1,Ia=!1,pc=!0,Ka=!1,cc=!0,ob=!0,sa=!1,ia={},ca=null,oc=K({},"annotation-xml audio colgroup desc foreignobject head iframe math mi mn mo ms mtext noembed noframes noscript plaintext script style svg template thead title video xmp".split(" ")),ec=null,nc=K({},"audio video img source image track".split(" ")),lb=null,mc=K({},"alt class for id label name pattern placeholder role summary title value style xmlns".split(" ")),Ha="http://www.w3.org/1999/xhtml",gc=!1,ea=void 0,$d=["application/xhtml+xml","text/html"],aa=void 0,da=null,Rd=A.createElement("form"),ic=K({},["mi","mo","mn","ms","mtext"]),jc=K({},["foreignobject","desc","title","annotation-xml"]),Ja=K({},yc);K(Ja,zc);K(Ja,Ac);var sb=K({},Bc);K(sb,Cc);var ce=function t(m){var v=void 0,x=f(m);for(d("beforeSanitizeShadowDOM",m,null);v=x.nextNode();)d("uponSanitizeShadowNode",v,null),c(v)||(v.content instanceof N&&t(v.content),a(v));d("afterSanitizeShadowDOM",m,null)};r.sanitize=function(m,t){var v=void 0,x=void 0,L=void 0,G=void 0;(gc=!m)&&(m="\x3c!--\x3e");if("string"!==typeof m&&!e(m)){if("function"!==typeof m.toString)throw vc("toString is not a function");m=m.toString();if("string"!==typeof m)throw vc("dirty is not a string, aborting")}if(!r.isSupported){if("object"===Pc(u.toStaticHTML)||"function"===typeof u.toStaticHTML){if("string"===typeof m)return u.toStaticHTML(m);if(e(m))return u.toStaticHTML(m.outerHTML)}return m}tb||p(t);r.removed=[];"string"===typeof m&&(sa=!1);if(!sa)if(m instanceof I)v=g("\x3c!----\x3e"),x=v.ownerDocument.importNode(m,!0),1===x.nodeType&&"BODY"===x.nodeName?v=x:"HTML"===x.nodeName?v=x:v.appendChild(x);else{if(!ha&&!ba&&!fa&&-1===m.indexOf("<"))return W&&Ka?W.createHTML(m):m;v=g(m);if(!v)return ha?null:hc}v&&qb&&n(v.firstChild);for(var Ga=f(sa?m:v);t=Ga.nextNode();)3===t.nodeType&&t===L||c(t)||(t.content instanceof N&&ce(t.content),a(t),L=t);L=null;if(sa)return m;if(ha){if(Ia)for(G=ae.call(v.ownerDocument);v.firstChild;)G.appendChild(v.firstChild);else G=v;pc&&(G=be.call(z,G,!0));return G}var Q=fa?v.outerHTML:v.innerHTML;ba&&(Q=H(Q,Ic," "),Q=H(Q,Jc," "));return W&&Ka?W.createHTML(Q):Q};r.setConfig=function(m){p(m);tb=!0};r.clearConfig=function(){da=null;tb=!1};r.isValidAttribute=function(m,t,v){da||p({});m=aa(m);t=aa(t);return b(m,t,v)};r.addHook=function(m,t){"function"===typeof t&&(M[m]=M[m]||[],ac(M[m],t))};r.removeHook=function(m){M[m]&&$b(M[m])};r.removeHooks=function(m){M[m]&&(M[m]=[])};r.removeAllHooks=function(){M={}};return r}var Sc=Rc();function Tc(a){var b=a.documentElement;return["⚡4email","amp4email"].some((function(c){return b.hasAttribute(c)}))}var Uc=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function Vc(a,b){var c=b=void 0===b?"":b;try{return decodeURIComponent(a)}catch(d){return c}}function Wc(a){var b=Object.create(null);if(!a)return b;for(var c;c=Uc.exec(a);){var d=Vc(c[1],c[1]);c=c[2]?Vc(c[2].replace(/\+/g," "),c[2]):"";b[d]=c}return b}function Xc(a){a=(a||self).location;return Wc(a.originalHash||a.hash)}var R=self.AMP_CONFIG||{},Yc=("string"==typeof R.cdnProxyRegex?new RegExp(R.cdnProxyRegex):R.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Zc(a){if(!self.document||!self.document.head||self.location&&Yc.test(self.location.origin))return null;var b=self.document.head.querySelector('meta[name="'+a+'"]');return b&&b.getAttribute("content")||null}var $c={thirdParty:R.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:R.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:("string"==typeof R.thirdPartyFrameRegex?new RegExp(R.thirdPartyFrameRegex):R.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdn:R.cdnUrl||Zc("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Yc,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:R.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:R.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:R.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:R.geoApiUrl||Zc("amp-geo-api")};var ad="";self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var bd=self.__AMP_LOG;function cd(){throw Error("failed to call initLogConstructor")}function V(){bd.user||(bd.user=cd());return bd.user}function dd(){return bd.dev||(bd.dev=cd())}function X(a,b,c,d,e,l){return V().assert(a,b,c,d,e,l,void 0,void 0,void 0,void 0,void 0)}var ed=/(\S+)(?:\s+(?:(-?\d+(?:\.\d+)?)([a-zA-Z]*)))?\s*(?:,|$)/g;function fd(a){for(var c,b=[];c=ed.exec(a);){var d=c[1],e=void 0,l=void 0;if(c[2]){var f=c[3].toLowerCase();if("w"==f)e=parseInt(c[2],10);else if("x"==f)l=parseFloat(c[2]);else continue}else l=1;b.push({url:d,width:e,dpr:l})}return new gd(b)}function gd(a){Jb(0<a.length,"Srcset must have at least one source");this.h=a;for(var b=!1,c=!1,d=0;d<a.length;d++){var e=a[d];b=b||!!e.width;c=c||!!e.dpr}Jb(!!(b^c),"Srcset must have width or dpr sources, but not both");a.sort(b?hd:id);this.ca=b}gd.prototype.select=function(a,b){if(this.ca){b*=a;a=this.h;for(var c=0,d=1/0,e=1/0,l=0;l<a.length;l++){var f=a[l].width,g=Math.abs(f-b);if(g<=1.1*d||1.2<b/e)c=l,d=g,e=f;else break}b=c}else{a=this.h;c=0;d=1/0;for(e=0;e<a.length;e++)if(l=Math.abs(a[e].dpr-b),l<=d)c=e,d=l;else break;b=c}return this.h[b].url};gd.prototype.getUrls=function(){return this.h.map((function(a){return a.url}))};gd.prototype.stringify=function(a){for(var b=[],c=this.h,d=0;d<c.length;d++){var e=c[d],l=e.url;a&&(l=a(l));l=this.ca?l+" "+e.width+"w":l+" "+e.dpr+"x";b.push(l)}return b.join(", ")};function hd(a,b){Jb(a.width!=b.width,"Duplicate width: %s",a.width);return a.width-b.width}function id(a,b){Jb(a.dpr!=b.dpr,"Duplicate dpr: %s",a.dpr);return a.dpr-b.dpr}function jd(){this.fa=100;this.M=this.S=0;this.G=Object.create(null)}jd.prototype.has=function(a){return!!this.G[a]};jd.prototype.get=function(a){var b=this.G[a];if(b)return b.access=++this.M,b.payload};jd.prototype.put=function(a,b){this.has(a)||this.S++;this.G[a]={payload:b,access:this.M};if(!(this.S<=this.fa)){a=this.G;var d,c=this.M+1;for(d in a){var e=a[d].access;if(e<c){c=e;var l=d}}void 0!==l&&(delete a[l],this.S--)}};var ld,md,kd=new Set(["c","v","a","ad"]);function nd(a){return"string"==typeof a?od(a):a}function od(a){ld||(ld=self.document.createElement("a"),md=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new jd));var b=ld,c=md;if(c&&c.has(a))a=c.get(a);else{b.href=a;b.protocol||(b.href=b.href);var d={href:b.href,protocol:b.protocol,host:b.host,hostname:b.hostname,port:"0"==b.port?"":b.port,pathname:b.pathname,search:b.search,hash:b.hash,origin:null};"/"!==d.pathname[0]&&(d.pathname="/"+d.pathname);if("http:"==d.protocol&&80==d.port||"https:"==d.protocol&&443==d.port)d.port="",d.host=d.hostname;d.origin=b.origin&&"null"!=b.origin?b.origin:"data:"!=d.protocol&&d.host?d.protocol+"//"+d.host:d.href;c&&c.put(a,d);a=d}return a}function pd(a){a=nd(a);if(!$c.cdnProxyRegex.test(nd(a).origin))return a.href;var b=a.pathname.split("/");X(kd.has(b[1]),"Unknown path prefix in url %s",a.href);var c=b[2],d="s"==c?"https://"+decodeURIComponent(b[3]):"http://"+decodeURIComponent(c);X(0<d.indexOf("."),"Expected a . in origin %s",d);b.splice(1,"s"==c?3:2);b=d+b.join("/");d=(d=a.search)&&"?"!=d?(d=d.replace(/[?&](amp_(js[^&=]*|gsa|r|kit)|usqp)\b[^&]*/g,"").replace(/^[?&]/,""))?"?"+d:"":"";return b+d+(a.hash||"")}function qd(a,b){b=nd(b);if("function"==typeof URL)var c=new URL(a,b.href).toString();else{c=a;var d=nd(b);c=c.replace(/\\/g,"/");var e=od(c);c=c.toLowerCase().startsWith(e.protocol)?e.href:c.startsWith("//")?d.protocol+c:c.startsWith("/")?d.origin+c:d.origin+d.pathname.replace(/\/[^/]*$/,"/")+c}return c}function rd(a){var b=od(a),c=Wc(b.search);X(!("__amp_source_origin"in c),"Source origin is not allowed in %s",a)}function sd(a,b,c){return td(b)?ud(a,b,c):c}function td(a){return"src"==a||"href"==a||"xlink:href"==a||"srcset"==a}function ud(a,b,c){var d=self.location;rd(c);var e=$c.cdnProxyRegex.test(nd(d).origin),l=od(pd(d));if("href"==b&&!c.startsWith("#"))return qd(c,l);if("src"==b)return"amp-img"==a?vd(c,l,e):qd(c,l);if("srcset"==b){try{var f=fd(c)}catch(g){return V().error("URL-REWRITE","Failed to parse srcset: ",g),c}return f.stringify((function(g){return vd(g,l,e)}))}return c}function vd(a,b,c){a=od(qd(a,b));return"data:"==a.protocol||$c.cdnProxyRegex.test(nd(a).origin)||!c?a.href:$c.cdn+"/i/"+("https:"==a.protocol?"s/":"")+encodeURIComponent(a.host)+a.pathname+(a.search||"")+(a.hash||"")}var wd={"AMP-IMG":["src","srcset","layout","width","height"]};function xd(a,b){var c=a.tagName.startsWith("AMP-"),d=a.hasAttribute("i-amphtml-binding");if(!d&&wd[a.tagName])a.setAttribute("i-amphtml-ignore","");else if(d||c)a.hasAttribute("i-amphtml-key")||a.setAttribute("i-amphtml-key",b())}var yd={applet:!0,audio:!0,base:!0,embed:!0,frame:!0,frameset:!0,iframe:!0,img:!0,link:!0,meta:!0,object:!0,style:!0,video:!0},zd={"amp-accordion":!0,"amp-anim":!0,"amp-bind-macro":!0,"amp-carousel":!0,"amp-fit-text":!0,"amp-img":!0,"amp-layout":!0,"amp-selector":!0,"amp-sidebar":!0,"amp-timeago":!0},Ad="a amp-img article aside b blockquote br caption code col colgroup dd del details div dl dt em figcaption figure footer h1 h2 h3 header hr i ins li main mark nav ol p pre q s section small span strong sub summary sup table tbody td tfoot th thead time tr u ul".split(" "),Bd="amp-fx fallback heights layout min-font-size max-font-size on option placeholder submitting submit-success submit-error validation-for verify-error visible-when-invalid href style text subscriptions-action subscriptions-actions subscriptions-decorate subscriptions-dialog subscriptions-display subscriptions-section subscriptions-service subscriptions-google-rtc amp-nested-submenu amp-nested-submenu-open amp-nested-submenu-close itemprop".split(" "),Cd={a:["rel","target"],div:["template"],form:["action-xhr","verify-xhr","custom-validation-reporting","target"],input:["mask-output"],template:["type"],textarea:["autoexpand"]},Dd=["_top","_blank"],Ed=/^(?:\w+script|data|blob):/i,Fd=/^(?:blob):/i,Gd=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Hd=Object.freeze(Gb({input:{type:/(?:image|button)/i}})),Id=Object.freeze(Gb({input:{type:/(?:button|file|image|password)/i}})),Jd=Object.freeze("form formaction formmethod formtarget formnovalidate formenctype".split(" ")),Kd=Object.freeze(Gb({input:Jd,textarea:Jd,select:Jd})),Ld=Object.freeze(Gb({"amp-anim":["controls"],form:["name"]})),Md=/!important|position\s*:\s*fixed|position\s*:\s*sticky/i;function Nd(a,b,c,d){var e=!0,l=e=void 0===e?!1:e,f=c?c.replace(Gd,""):"";if(!l){if(b.startsWith("on")&&"on"!=b)return!1;var g=f.toLowerCase();if(0<=g.indexOf("<script")||0<=g.indexOf("</script")||Ed.test(f))return!1}if(Fd.test(f))return!1;if("style"==b)return!Md.test(c);if("class"==b&&c&&/(^|\W)i-amphtml-/i.test(c)||td(b)&&/__amp_source_origin/.test(c))return!1;var k=Tc(d),n=Object.assign(Object.create(null),Kd,k?Ld:{})[a];if(n&&-1!=n.indexOf(b))return!1;var q=Object.assign(Object.create(null),Hd,k?Id:{})[a];if(q){var p=q[b];if(p&&-1!=c.search(p))return!1}return!0}var Od={script:{attribute:"type",values:["application/json","application/ld+json"]}},Pd={USE_PROFILES:{html:!0,svg:!0,svgFilters:!0}};function de(a){var b=Gb({IN_PLACE:!0});this.H=a;this.ha=1;this.j=Sc(self);this.X=Sc(self);a=Object.assign(b||{},Object.assign({},Pd,{ADD_ATTR:Bd,ADD_TAGS:["use"],FORBID_TAGS:Object.keys(yd),FORCE_BODY:!0,RETURN_DOM:!0,ALLOW_UNKNOWN_PROTOCOLS:!0}));this.j.setConfig(a);ee(this,this.j);fe(this.X)}de.prototype.purifyHtml=function(a){return this.j.sanitize(a)};de.prototype.purifyTagsForTripleMustache=function(a){a=this.X.sanitize(a,{ALLOWED_TAGS:Ad,FORCE_BODY:!0,RETURN_DOM_FRAGMENT:!0});var b=this.H.createElement("div");b.appendChild(a);return b.innerHTML};de.prototype.getAllowedTags=function(){var a={};this.j.addHook("uponSanitizeElement",(function(c,d){Object.assign(a,d.allowedTags)}));var b=this.H.createElement("p");this.j.sanitize(b);Object.keys(yd).forEach((function(c){a[c]=!1}));this.j.removeHook("uponSanitizeElement");return a};de.prototype.validateAttributeChange=function(a,b,c){var d=a.nodeName.toLowerCase(),e=Od[d];if(e){var l=e.values;if(e.attribute===b&&(null==c||!l.includes(c)))return!1}if("a"===d&&"target"===b&&(null==c||!Dd.includes(c)))return!1;if(null==c)return!0;if(ge(b)!==he)return!1;if(!this.j.isValidAttribute(d,b,c)){var f=Cd[d];if(!(f&&f.includes(b)||d.startsWith("amp-")))return!1}a=a.ownerDocument?a.ownerDocument:a;return c&&!Nd(d,b,c,a)?!1:!0};function ee(a,b){var d,l,c=Tc(a.H),e=[],f=[];b.addHook("uponSanitizeElement",(function(g,k){var n=k.tagName;d=k.allowedTags;n.startsWith("amp-")&&(d[n]=!c||zd[n]);"a"===n&&g.hasAttribute("href")&&!g.hasAttribute("target")&&g.setAttribute("target","_top");var q=Od[n];q&&(k=q.attribute,q=q.values,g.hasAttribute(k)&&q.includes(g.getAttribute(k))&&(d[n]=!0,e.push(n)))}));b.addHook("afterSanitizeElements",(function(){e.forEach((function(g){delete d[g]}));e.length=0}));b.addHook("uponSanitizeAttribute",(function(g,k){function n(){l[p]||(l[p]=!0,f.push(p))}var q=g.nodeName.toLowerCase(),p=k.attrName,r=k.attrValue;l=k.allowedAttributes;if(q.startsWith("amp-"))n();else{if("a"==q&&"target"==p){var u=r.toLowerCase();r=Dd.includes(u)?u:"_top"}var z=Cd[q];z&&z.includes(p)&&n()}var A=ge(p);A===ie&&(z=p.substring(1,p.length-1),g.setAttribute("data-amp-bind-"+z,r));A!==he&&g.setAttribute("i-amphtml-binding","");Nd(q,p,r,a.H)?sd&&r&&!p.startsWith("data-amp-bind-")&&(r=sd(q,p,r)):(k.keepAttr=!1,V().error("purifier",'Removed invalid attribute %s[%s="%s"].',q,p,r));k.attrValue=r}));b.addHook("afterSanitizeAttributes",(function(g){xd(g,(function(){return String(a.ha++)}));f.forEach((function(k){delete l[k]}));f.length=0;"use"===g.nodeName.toLowerCase()&&["href","xlink:href"].forEach((function(k){if(g.hasAttribute(k)&&!g.getAttribute(k).startsWith("#")){var n;null==(n=g.parentElement)||n.removeChild(g);V().error("purifier",'Removed invalid <use>. use[href] must start with "#".')}}))}))}function fe(a){var b;a.addHook("uponSanitizeElement",(function(c,d){var e=d.tagName;b=d.allowedTags;"template"===e&&(c=c.getAttribute("type"))&&"amp-mustache"===c.toLowerCase()&&(b.template=!0)}));a.addHook("afterSanitizeElements",(function(){b.template=!1}))}var he=0,ie=1,je=2;function ge(a){return"["==a[0]&&"]"==a[a.length-1]?ie:a.startsWith("data-amp-bind-")?je:he}function ke(a){var b=$c.cdn;var c=self;if(c.__AMP_MODE)c=c.__AMP_MODE;else{var d=Xc(c)||Xc(c);d=["1","actions","amp","amp4ads","amp4email"].includes(d.development)||!!c.AMP_DEV_MODE;if(!ad){var e;ad=(null==(e=c.AMP_CONFIG)?void 0:e.v)||"012110082201001"}c=c.__AMP_MODE={localDev:!1,development:d,esm:!1,test:!1,rtvVersion:ad}}return b+"/rtv/"+c.rtvVersion+"/v0/"+a+"-0.1.js"}function le(a,b){var c=a=a.__AMP_TOP||(a.__AMP_TOP=a),d=me(c),e=d["purifier-inplace"];e||(e=d["purifier-inplace"]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:!1});e.ctor||(e.ctor=b,e.context=a,e.sharedInstance=!1,e.resolve&&ne(c,"purifier-inplace"))}function Y(a,b){a=a.__AMP_TOP||(a.__AMP_TOP=a);return ne(a,b)}function oe(a,b){a=pe(a);a=qe(a);return re(a,b)?ne(a,b):null}function se(a,b){return te(qe(a),b)}function pe(a){return a.nodeType?Y((a.ownerDocument||a).defaultView,"ampdoc").getAmpDoc(a):a}function qe(a){a=pe(a);return a.isSingleDoc()?a.win:a}function ne(a,b){re(a,b);a=me(a)[b];a.obj||(a.obj=new a.ctor(a.context),a.context=null,a.resolve&&a.resolve(a.obj));return a.obj}function te(a,b){var c=me(a)[b];if(c){if(c.promise)return c.promise;ne(a,b);return c.promise=Promise.resolve(c.obj)}return null}function me(a){var b=a.__AMP_SERVICES;b||(b=a.__AMP_SERVICES={});return b}function re(a,b){a=a.__AMP_SERVICES&&a.__AMP_SERVICES[b];return!(!a||!a.ctor)}function ue(){var a=new wa,b=a.promise,c=a.reject;a=a.resolve;b.catch((function(){}));return{obj:null,promise:b,resolve:a,reject:c,context:null,ctor:null}}function ve(a){return we(a,"amp-script","amp-script",void 0).then((function(b){return X(b,"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.","amp-script","amp-script","amp-script","amp-script")}))}function we(a,b,c,d){var e=se(a,b);if(e)return e;var l=pe(a);return l.whenExtensionsKnown().then((function(){var f=l.getExtensionVersion(c);return f?Y(l.win,"extensions").waitForExtension(c,f):null})).then((function(f){if(f)if(d)var g=se(a,b);else{g=qe(a);var k=te(g,b);k?g=k:(g=me(g),g[b]=ue(),g=g[b].promise)}else g=null;return g}))}function xe(a){var b=oe(a,"bind");return b?Promise.resolve(b):we(a,"bind","amp-bind")}var ye="change click dblclick input keypress submit keydown".split(" ");function ze(a){var b=this;this.aa=a;this.W=this.da.bind(this);this.A=0;this.I=!1;ye.forEach((function(c){b.aa.addEventListener(c,b.W,!0)}))}w=ze.prototype;w.dispose=function(){var a=this;ye.forEach((function(b){a.aa.removeEventListener(b,a.W,!0)}))};w.hasBeenActive=function(){return 0<this.A};w.isActive=function(){return 0<this.A&&5e3>=Date.now()-this.A||this.I};w.getLastActivationTime=function(){return this.A};w.expandLongTask=function(a){var b=this;if(this.isActive()){this.I=!0;var c=function(){b.I=!1;b.A=Date.now()};a.then(c,c)}};w.isInLongTask=function(){return this.I};w.da=function(a){a.isTrusted&&(this.A=Date.now())};self.__AMP_ERRORS=self.__AMP_ERRORS||[];function Z(a){a=AMP.BaseElement.call(this,a)||this;a.ba=Y(a.win,"vsync");a.C=null;a.L=null;a.K=null;a.D="amp-script[unknown].js";a.Z=!1;a.$=!1;a.Y=new wa;a.F=!1;a.P=!1;a.J=!1;return a}var Ae=AMP.BaseElement;Z.prototype=oa(Ae.prototype);Z.prototype.constructor=Z;if(ua)ua(Z,Ae);else for(var Be in Ae)if("prototype"!=Be)if(Object.defineProperties){var Ce=Object.getOwnPropertyDescriptor(Ae,Be);Ce&&Object.defineProperty(Z,Be,Ce)}else Z[Be]=Ae[Be];Z.ka=Ae.prototype;w=Z.prototype;w.isLayoutSupported=function(a){return"container"==a||Kb(a)};w.buildCallback=function(){var a=this;this.P=(this.J=this.element.hasAttribute("sandboxed"))||this.element.hasAttribute("nodom");(this.F=this.element.hasAttribute("data-ampdevmode")||this.element.ownerDocument.documentElement.hasAttribute("data-ampdevmode"))&&V().warn("amp-script","JavaScript size and script hash requirements are disabled in development mode.",this.element);this.P&&(this.element.hasAttribute("width")||this.element.hasAttribute("height")||this.element.hasAttribute("layout"))&&V().warn("amp-script","Cannot set width, height, or layout of a nodom <amp-script>",this.element);return ve(this.element).then((function(b){a.setService(b)}))};w.onLayoutMeasure=function(){if(!this.Z&&!this.$){var a=this.getLayoutSize(),b=a.height;0===a.width&&0===b&&(this.$=!0,V().warn("amp-script","Skipped initializing amp-script due to zero width and height.",this.element))}};w.setService=function(a){this.K=a};w.getUserActivation=function(){return this.L};w.callFunction=function(a,b){var c=arguments,d=this;return this.Y.promise.then((function(){return d.C.callFunction.apply(d.C,c)}))};w.layoutCallback=function(){var a=this;this.Z=!0;if(this.element.sizerElement){var b=this.win.document.createElement("div");Lb(b);for(var c=Nb(this.element),d=0;d<c.length;d++)b.appendChild(c[d]);this.element.appendChild(b)}this.L=new ze(this.element);this.D=this.element.hasAttribute("src")?'amp-script[src="'+this.element.getAttribute("src")+'"].js':'amp-script[script="'+this.element.getAttribute("script")+'"].js';var e=De(this,this.D);if(!e)return V().error("amp-script",'"src" or "script" attribute is required.'),Promise.reject(Error("CANCELLED"));var l=Promise.all([Ee(this),e]).then((function(k){var n=k[0],q=k[1];return!a.F&&a.K.sizeLimitExceeded(q.length)?(V().error("amp-script","Maximum total script size exceeded (%s). %s is disabled. See https://amp.dev/documentation/components/amp-script/#size-of-javascript-code.",15e4,a.D),a.element.classList.add("i-amphtml-broken"),[]):[n,q]})),f=(this.element.getAttribute("sandbox")||"").split(" ").map((function(k){return k.trim()}));var g=$c.thirdParty+"/2110082201001/amp-script-proxy-iframe.html";d={authorURL:this.D,mutationPump:this.ia.bind(this),longTask:function(k){a.L.expandLongTask(k)},sanitizer:new Fe(this,f),onCreateWorker:function(k){dd().info("amp-script","Create worker:",k)},onSendMessage:function(k){dd().info("amp-script","To worker:",k)},onReceiveMessage:function(k){dd().info("amp-script","From worker:",k)},sandbox:this.J&&{iframeUrl:g}};return Eb(b||this.element,l,d).then((function(k){a.C=k;a.Y.resolve();a.C&&(a.C.onerror=function(n){n.preventDefault();V().error("amp-script",n.message+"\n at ("+n.filename+":"+n.lineno+")")})}))};function Ee(a){var b=ke(a.P?"amp-script-worker-nodom":"amp-script-worker");return Y(a.win,"xhr").fetchText(b,{ampCors:!1}).then((function(c){return c.text()}))}function De(a,b){var c=a.element.getAttribute("src");if(c)return Ge(a,c,b);var d=a.element.getAttribute("script");if(d){var e=a.getAmpDoc().getElementById(d);X(e,"[%s] %s could not find element with #%s.","amp-script",b,d);var l=e.getAttribute("target");X("amp-script"===l,'[%s] script#%s must have target="amp-script".',"amp-script",d);var f=e.textContent;return a.F||a.J?Promise.resolve(f):a.K.checkSha384(f,b).then((function(){return f}))}return null}function Ge(a,b,c){return Y(a.win,"xhr").fetchText(b,{ampCors:!1}).then((function(d){if(d.url&&He(a,d.url)){var e=d.headers.get("Content-Type");if(!e||!e.startsWith("application/javascript")&&!e.startsWith("text/javascript"))throw V().createError("amp-script",'Same-origin "src" requires "Content-Type: text/javascript" or "Content-Type: application/javascript". Fetched source for '+c+' has "Content-Type: '+e+'". See https://amp.dev/documentation/components/amp-script/#security-features.');return d.text()}return a.F?d.text():d.text().then((function(l){return a.K.checkSha384(l,c).then((function(){return l}))}))}))}function He(a,b){var c=oe(a.element,"url"),d=c.getSourceOrigin(a.getAmpDoc().getUrl()),e=c.parse(b).origin;return d===e}w.isMutationAllowedByFixedSize=function(){return Kb(this.getLayout())};w.isMutationAllowedByUserGesture=function(){return this.L.isActive()};w.ia=function(a,b){var c=this;1==b&&this.ba.mutate((function(){return c.element.classList.add("i-amphtml-hydrated")}));var d=this.isMutationAllowedByFixedSize()||this.isMutationAllowedByUserGesture();this.ba.mutate((function(){var e=a(d),l=Object.create(null);e.forEach((function(f){l[f]=l[f]+1||1}));Object.keys(l).forEach((function(f){var g=l[f],k=V(),n=k.error;switch(f){case"0":case"3":f="DOM element attributes or styles";break;case"1":f="textContent or the like";break;case"2":f="DOM element children, innerHTML, or the like";break;default:f="the DOM"}n.call(k,"amp-script","Blocked "+g+" attempts to modify "+f+". For variable-sized <amp-script> containers, a user action has to happen first.")}));0<e.length&&2===b&&(c.C.terminate(),c.element.classList.remove("i-amphtml-hydrated"),c.element.classList.add("i-amphtml-broken"),V().error("amp-script","%s was terminated due to illegal mutation.",c.D))}))};function Ie(a){this.ea=a;this.N=0;this.h=[];var b=a.getMetaByName("amp-script-src");b&&(this.h=b.split(/\s+/).filter(Boolean));this.ga=Y(a.win,"crypto")}Ie.prototype.checkSha384=function(a,b){var c=this;a=Pb(a);return this.ga.sha384Base64(a).then((function(d){if(!d||!c.h.includes("sha384-"+d))throw V().createError("amp-script","Script hash not found or incorrect for "+b+'. You must include <meta name="amp-script-src" content="sha384-'+d+'">. During development, you can disable this check by adding the "data-ampdevmode" attribute to '+b+", or the root html nodeSee https://amp.dev/documentation/components/amp-script/#script-hash.")}))};Ie.prototype.sizeLimitExceeded=function(a){this.N+=a;return 15e4<this.N};Ie.prototype.fetch=function(a,b){var c=a.slice(11).split(".");X(2===c.length&&0<c[0].length&&0<c[1].length,'[amp-script]: "amp-script" URIs must be of the format "scriptId.functionIdentifier".');var d=c[0],e=c[1],l=this.ea.getElementById(d);X(l&&"AMP-SCRIPT"===l.tagName,"[amp-script]: could not find <amp-script> with script set to "+d);var f=Array.prototype.slice.call(arguments,1);return l.getImpl().then((function(g){return g.callFunction.apply(g,[e].concat(f))}))};var Je="form button fieldset input object output select textarea".split(" ");function Fe(a,b){var c=this;this.B=a.win;this.O=a.element;le(this.B,(function(){return new de(a.win.document)}));this.R=Y(this.B,"purifier-inplace");this.o=this.R.getAllowedTags();this.V=function(){return a.isMutationAllowedByUserGesture()};this.ja=function(){return!c.V()&&a.isMutationAllowedByFixedSize()};this.o["amp-img"]=!0;this.o["amp-layout"]=!0;this.o["amp-pixel"]=!1;this.U=b.includes("allow-forms");Je.forEach((function(d){c.o[d]=c.U}))}w=Fe.prototype;w.sanitize=function(a){var b=a.nodeName.toLowerCase(),c=this.o[b];c||Ke(this,b)||V().warn("amp-script","Sanitized node:",a);return c};w.setAttribute=function(a,b,c){var d=a.nodeName.toLowerCase();if(this.o[d]){var e=b.toLowerCase();if(this.R.validateAttributeChange(a,e,c))return null==c?a.removeAttribute(e):(b=sd(d,e,c),a.setAttribute(e,b)),"a"===d&&a.hasAttribute("href")&&!a.hasAttribute("target")&&a.setAttribute("target","_top"),!0}Ke(this,d)||V().warn("amp-script",'Sanitized [%s]="%s":',b,c,a);return!1};function Ke(a,b){return!a.U&&Je.includes(b)?(V().warn("amp-script",'Form elements (%s) cannot be mutated unless your <amp-script> includes the attribute sandbox="allow-forms".',b),!0):!1}w.setProperty=function(a,b,c){var d=b.toLowerCase();return this.R.validateAttributeChange(a,d,c)?(a[b]=c,!0):!1};w.getStorage=function(a,b){if(2===a)return xe(this.O).then((function(l){if(l)return l.getStateValue(b||".")}));var c=0===a?this.B.localStorage:1===a?this.B.sessionStorage:null;a={};for(var d=0;d<c.length;d++){var e=c.key(d);e&&!e.startsWith("amp-")&&(a[e]=c.getItem(e))}return a};w.setStorage=function(a,b,c){var d=this;if(2===a)return xe(this.O).then((function(e){if(e){var l=Ob(c,(function(){dd().error("amp-script","Invalid AMP.setState() argument: %s",c)}));if(l){var f=d.V(),g=d.ja()?[d.O]:void 0;f||g||V().warn("amp-script","AMP.setState only updated page state and did not reevaluate bindings due to lack of recent user interaction.");e.setState(l,{skipEval:!f&&!g,skipAmpState:!1,constrain:g})}}}));a=0===a?this.B.localStorage:1===a?this.B.sessionStorage:null;null===b?null===c&&V().error("amp-script","Storage.clear() is not supported in amp-script."):b.startsWith("amp-")?V().error("amp-script",'Invalid "amp-" prefix for storage key: %s',b):null===c?a.removeItem(b):a.setItem(b,c);va||(va=Promise.resolve(void 0));b=va;return b};AMP.registerServiceForDoc("amp-script",Ie);AMP.registerElement("amp-script",Z,"amp-script{opacity:1}amp-script.i-amphtml-hydrated{opacity:1}\n/*# sourceURL=/extensions/amp-script/0.1/amp-script.css*/")}});//# sourceMappingURL=amp-script-0.1.js.map

Back to list