Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ampproject/amp-date-countdown

Package Overview
Dependencies
Maintainers
16
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ampproject/amp-date-countdown - npm Package Compare versions

Comparing version 1.2110212130.0 to 1.2110252343.0

2

dist/component-preact.module.js

@@ -1,2 +0,2 @@

function _(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function w(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function A(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?w(Object(t),!0).forEach((function(e){_(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function Ri(n,e){if(null==n)return{};var t,r,a={},o=Object.keys(n);for(r=0;r<o.length;r++)t=o[r],e.indexOf(t)>=0||(a[t]=n[t]);return a}var{hasOwnProperty:c,toString:a}=Object.prototype;function f(n){return n||{}}import{cloneElement as de,createContext as pe,createElement as Sn,createRef as me}from"preact";import{hydrate as ye,render as En}from"preact";import{useCallback as be,useContext as ve,useEffect as On,useImperativeHandle as ge,useLayoutEffect as Vn,useMemo as jn,useRef as In,useState as Tn}from"preact/hooks";function je(n,e,t){return Sn.apply(void 0,arguments)}function we(n){return Tn(n)}function Se(n,e){Vn(n,e)}function Oe(n,e){return jn(n,e)}import{Children as Me,createPortal as $e,forwardRef as Yi}from"preact/compat";function Ne(n){return Yi(n)}var Gi=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],Qi=[null,"paint","layout","content","size","size paint","size layout","strict"],Ji={"position":"relative","width":"100%","height":"100%"};Ne((function(n,e){let{as:t="div",children:r,"class":a,contentAs:o="div",contentClassName:s,contentProps:i,contentRef:u,contentStyle:c,layout:l=!1,paint:f=!1,size:d=!1,"style":p,wrapperClassName:m,wrapperStyle:h}=n;const y=(d?4:0)+(l?2:0)+(f?1:0);return je(t,A(A({},Ri(n,Gi)),{},{ref:e,class:`${a||""} ${m||""}`.trim()||null,style:A(A(A({},p),h),{},{contain:Qi[y]})}),je(o,A(A({},i),{},{ref:u,class:s,style:A(A({},d&&Ji),{},{"overflow":f?"hidden":"visible"},c)}),r))}));var wn,Ki=["as","children","class","style","wrapperClassName","wrapperStyle"],Xi=Ne((function(n,e){let{as:t="div",children:r,"class":a,"style":o,wrapperClassName:s,wrapperStyle:i}=n;return je(t,A(A({},Ri(n,Ki)),{},{ref:e,class:`${a||""} ${s||""}`.trim()||null,style:A(A({},o),i)}),r)}));function $n(){const n=wn||(wn=pe({renderable:!0,playable:!0,loading:"auto"},void 0));return ve(n)}function te(n){return ne[n]}new WeakMap,new WeakMap;var ne={"de":["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],"en":["Years","Months","Days","Hours","Minutes","Seconds"],"es":["años","meses","días","horas","minutos","segundos"],"fr":["ans","mois","jours","heures","minutes","secondes"],"id":["tahun","bulan","hari","jam","menit","detik"],"it":["anni","mesi","giorni","ore","minuti","secondi"],"ja":["年","ヶ月","日","時間","分","秒"],"ko":["년","달","일","시간","분","초"],"nl":["jaar","maanden","dagen","uur","minuten","seconden"],"pt":["anos","meses","dias","horas","minutos","segundos"],"ru":["год","месяц","день","час","минута","секунда"],"th":["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],"tr":["yıl","ay","gün","saat","dakika","saniye"],"vi":["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]},ie=["datetime","whenEnded","locale","biggestUnit","countUp","render"],ee={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},oe="en",re="stop",se="DAYS",ue=!1,le=n=>`${n.days} ${n.dd}, ${n.hours} ${n.hh}, ${n.minutes} ${n.mm}, ${n.seconds} ${n.ss}`;function De(n){let{datetime:e,whenEnded:t=re,locale:r=oe,biggestUnit:a=se,countUp:o=ue,render:s=le}=n,i=Ri(n,ie);!function(){const{notify:n}=$n();Se((()=>{n&&n()}))}();const{playable:u}=$n(),c=Oe((()=>{return(n=e)?"number"==typeof n?n:"string"==typeof n?function(n){if(!n)return null;if("now"===n.toLowerCase())return Date.now();const e=Date.parse(n);return isNaN(e)?null:e}(n):(n=n).getTime():null;var n}),[e]),l=Oe((()=>function(n){var e;void 0===te(n)&&(e=`Invalid locale ${n}, defaulting to ${oe}. DateCountdown`,console.warn(e),n=oe);const t=te(n);return f({"years":t[0],"months":t[1],"days":t[2],"hours":t[3],"minutes":t[4],"seconds":t[5]})}(r)),[r]),[d,p]=we(c-Date.now()+1e3),m=Oe((()=>function(n,e,t,r){return A(A({},function(n,e,t){t&&(n*=-1);const r=ee[e]==ee.DAYS?ae(Math.floor(n/864e5)):0,a=ee[e]==ee.HOURS?ae(Math.floor(n/36e5)):ee[e]<ee.HOURS?ae(Math.floor(n%864e5/36e5)):0,o=ee[e]==ee.MINUTES?ae(Math.floor(n/6e4)):ee[e]<ee.MINUTES?ae(Math.floor(n%36e5/6e4)):0,s=ae(ee[e]==ee.SECONDS?Math.floor(n/1e3):Math.floor(n%6e4/1e3));return f({"d":r,"dd":ce(r),"h":a,"hh":ce(a),"m":o,"mm":ce(o),"s":s,"ss":ce(s)})}(n,e,r)),t)}(d,a,l,o)),[d,a,l,o]),h=In(null);On((()=>{if(!u||!h.current)return;const n=h.current.ownerDocument.defaultView,e=n.setInterval((()=>{const r=c-Date.now()+1e3;p(r),t===re&&r<1e3&&n.clearInterval(e)}),1e3);return()=>n.clearInterval(e)}),[u,c,t]);const y=function(n,e){const[t,r]=we(null);return Se((()=>{const t=n&&n(e)||null;if(t&&"function"==typeof t.then){let n=!1;return t.then((e=>{n||r(e)})),()=>{n=!0}}r(t)}),[n,e]),t}(s,m),b=y&&"object"==typeof y&&"__html"in y;return je(Xi,A(A({},i),{},{ref:h,dangerouslySetInnerHTML:b?y:null}),b?null:y)}function ce(n){return n<-9||n>9?String(n):n>=-9&&n<0?"-0"+-n:"0"+n}function ae(n){return n<0?n+1:n}export{De as BentoDateCountdown};
function n(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function e(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function t(t){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))}))}return t}function r(n,e){if(null==n)return{};var t,r,a={},o=Object.keys(n);for(r=0;r<o.length;r++)t=o[r],e.indexOf(t)>=0||(a[t]=n[t]);return a}var{hasOwnProperty:a,toString:o}=Object.prototype;function s(n){return n||{}}import{cloneElement as i,createContext as u,createElement as c,createRef as l}from"preact";import{hydrate as f,render as d}from"preact";import{useCallback as p,useContext as m,useEffect as h,useImperativeHandle as y,useLayoutEffect as b,useMemo as v,useRef as g,useState as j}from"preact/hooks";function w(n,e,t){return c.apply(void 0,arguments)}function S(n){return j(n)}function O(n,e){b(n,e)}function M(n,e){return v(n,e)}import{Children as $,createPortal as N,forwardRef as D}from"preact/compat";function k(n){return D(n)}var C=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],z=[null,"paint","layout","content","size","size paint","size layout","strict"],U={"position":"relative","width":"100%","height":"100%"};k((function(n,e){let{as:a="div",children:o,"class":s,contentAs:i="div",contentClassName:u,contentProps:c,contentRef:l,contentStyle:f,layout:d=!1,paint:p=!1,size:m=!1,"style":h,wrapperClassName:y,wrapperStyle:b}=n;const v=(m?4:0)+(d?2:0)+(p?1:0);return w(a,t(t({},r(n,C)),{},{ref:e,class:`${s||""} ${y||""}`.trim()||null,style:t(t(t({},h),b),{},{contain:z[v]})}),w(i,t(t({},c),{},{ref:l,class:u,style:t(t({},m&&U),{},{"overflow":p?"hidden":"visible"},f)}),o))}));var A,E=["as","children","class","style","wrapperClassName","wrapperStyle"],H=k((function(n,e){let{as:a="div",children:o,"class":s,"style":i,wrapperClassName:u,wrapperStyle:c}=n;return w(a,t(t({},r(n,E)),{},{ref:e,class:`${s||""} ${u||""}`.trim()||null,style:t(t({},i),c)}),o)}));function I(){const n=A||(A=u({renderable:!0,playable:!0,loading:"auto"},void 0));return m(n)}function P(n){return R[n]}new WeakMap,new WeakMap;var R={"de":["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],"en":["Years","Months","Days","Hours","Minutes","Seconds"],"es":["años","meses","días","horas","minutos","segundos"],"fr":["ans","mois","jours","heures","minutes","secondes"],"id":["tahun","bulan","hari","jam","menit","detik"],"it":["anni","mesi","giorni","ore","minuti","secondi"],"ja":["年","ヶ月","日","時間","分","秒"],"ko":["년","달","일","시간","분","초"],"nl":["jaar","maanden","dagen","uur","minuten","seconden"],"pt":["anos","meses","dias","horas","minutos","segundos"],"ru":["год","месяц","день","час","минута","секунда"],"th":["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],"tr":["yıl","ay","gün","saat","dakika","saniye"],"vi":["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]},T=["datetime","whenEnded","locale","biggestUnit","countUp","render"],Y={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},W="en",_="stop",x="DAYS",J=!1,L=n=>`${n.days} ${n.dd}, ${n.hours} ${n.hh}, ${n.minutes} ${n.mm}, ${n.seconds} ${n.ss}`;function q(n){let{datetime:e,whenEnded:a=_,locale:o=W,biggestUnit:i=x,countUp:u=J,render:c=L}=n,l=r(n,T);!function(){const{notify:n}=I();O((()=>{n&&n()}))}();const{playable:f}=I(),d=M((()=>{return(n=e)?"number"==typeof n?n:"string"==typeof n?function(n){if(!n)return null;if("now"===n.toLowerCase())return Date.now();const e=Date.parse(n);return isNaN(e)?null:e}(n):(n=n).getTime():null;var n}),[e]),p=M((()=>function(n){var e;void 0===P(n)&&(e=`Invalid locale ${n}, defaulting to ${W}. DateCountdown`,console.warn(e),n=W);const t=P(n);return s({"years":t[0],"months":t[1],"days":t[2],"hours":t[3],"minutes":t[4],"seconds":t[5]})}(o)),[o]),[m,y]=S(d-Date.now()+1e3),b=M((()=>function(n,e,r,a){return t(t({},function(n,e,t){t&&(n*=-1);const r=Y[e]==Y.DAYS?F(Math.floor(n/864e5)):0,a=Y[e]==Y.HOURS?F(Math.floor(n/36e5)):Y[e]<Y.HOURS?F(Math.floor(n%864e5/36e5)):0,o=Y[e]==Y.MINUTES?F(Math.floor(n/6e4)):Y[e]<Y.MINUTES?F(Math.floor(n%36e5/6e4)):0,i=F(Y[e]==Y.SECONDS?Math.floor(n/1e3):Math.floor(n%6e4/1e3));return s({"d":r,"dd":B(r),"h":a,"hh":B(a),"m":o,"mm":B(o),"s":i,"ss":B(i)})}(n,e,a)),r)}(m,i,p,u)),[m,i,p,u]),v=g(null);h((()=>{if(!f||!v.current)return;const n=v.current.ownerDocument.defaultView,e=n.setInterval((()=>{const t=d-Date.now()+1e3;y(t),a===_&&t<1e3&&n.clearInterval(e)}),1e3);return()=>n.clearInterval(e)}),[f,d,a]);const j=function(n,e){const[t,r]=S(null);return O((()=>{const t=n&&n(e)||null;if(t&&"function"==typeof t.then){let n=!1;return t.then((e=>{n||r(e)})),()=>{n=!0}}r(t)}),[n,e]),t}(c,b),$=j&&"object"==typeof j&&"__html"in j;return w(H,t(t({},l),{},{ref:v,dangerouslySetInnerHTML:$?j:null}),$?null:j)}function B(n){return n<-9||n>9?String(n):n>=-9&&n<0?"-0"+-n:"0"+n}function F(n){return n<0?n+1:n}export{q as BentoDateCountdown};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -1,2 +0,2 @@

function _(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function w(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function A(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?w(Object(t),!0).forEach((function(e){_(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function Ri(n,e){if(null==n)return{};var t,r,a={},o=Object.keys(n);for(r=0;r<o.length;r++)t=o[r],e.indexOf(t)>=0||(a[t]=n[t]);return a}var{hasOwnProperty:c,toString:a}=Object.prototype;function f(n){return n||{}}import{cloneElement as de,createContext as pe,createElement as Sn,createRef as me}from"react";import{hydrate as ye,render as En}from"react-dom";import{useCallback as be,useContext as ve,useEffect as On,useImperativeHandle as ge,useLayoutEffect as Vn,useMemo as jn,useRef as In,useState as Tn}from"react";function je(n,e,t){return Sn.apply(void 0,arguments)}function we(n){return Tn(n)}function Se(n,e){Vn(n,e)}function Oe(n,e){return jn(n,e)}import{Children as Me,createPortal as $e,forwardRef as Yi}from"react";function Ne(n){return Yi(n)}var Gi=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],Qi=[null,"paint","layout","content","size","size paint","size layout","strict"],Ji={"position":"relative","width":"100%","height":"100%"};Ne((function(n,e){let{as:t="div",children:r,"class":a,contentAs:o="div",contentClassName:s,contentProps:i,contentRef:u,contentStyle:c,layout:l=!1,paint:f=!1,size:d=!1,"style":p,wrapperClassName:m,wrapperStyle:h}=n;const y=(d?4:0)+(l?2:0)+(f?1:0);return je(t,A(A({},Ri(n,Gi)),{},{ref:e,class:`${a||""} ${m||""}`.trim()||null,style:A(A(A({},p),h),{},{contain:Qi[y]})}),je(o,A(A({},i),{},{ref:u,class:s,style:A(A({},d&&Ji),{},{"overflow":f?"hidden":"visible"},c)}),r))}));var wn,Ki=["as","children","class","style","wrapperClassName","wrapperStyle"],Xi=Ne((function(n,e){let{as:t="div",children:r,"class":a,"style":o,wrapperClassName:s,wrapperStyle:i}=n;return je(t,A(A({},Ri(n,Ki)),{},{ref:e,class:`${a||""} ${s||""}`.trim()||null,style:A(A({},o),i)}),r)}));function $n(){const n=wn||(wn=pe({renderable:!0,playable:!0,loading:"auto"},void 0));return ve(n)}function te(n){return ne[n]}new WeakMap,new WeakMap;var ne={"de":["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],"en":["Years","Months","Days","Hours","Minutes","Seconds"],"es":["años","meses","días","horas","minutos","segundos"],"fr":["ans","mois","jours","heures","minutes","secondes"],"id":["tahun","bulan","hari","jam","menit","detik"],"it":["anni","mesi","giorni","ore","minuti","secondi"],"ja":["年","ヶ月","日","時間","分","秒"],"ko":["년","달","일","시간","분","초"],"nl":["jaar","maanden","dagen","uur","minuten","seconden"],"pt":["anos","meses","dias","horas","minutos","segundos"],"ru":["год","месяц","день","час","минута","секунда"],"th":["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],"tr":["yıl","ay","gün","saat","dakika","saniye"],"vi":["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]},ie=["datetime","whenEnded","locale","biggestUnit","countUp","render"],ee={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},oe="en",re="stop",se="DAYS",ue=!1,le=n=>`${n.days} ${n.dd}, ${n.hours} ${n.hh}, ${n.minutes} ${n.mm}, ${n.seconds} ${n.ss}`;function De(n){let{datetime:e,whenEnded:t=re,locale:r=oe,biggestUnit:a=se,countUp:o=ue,render:s=le}=n,i=Ri(n,ie);!function(){const{notify:n}=$n();Se((()=>{n&&n()}))}();const{playable:u}=$n(),c=Oe((()=>{return(n=e)?"number"==typeof n?n:"string"==typeof n?function(n){if(!n)return null;if("now"===n.toLowerCase())return Date.now();const e=Date.parse(n);return isNaN(e)?null:e}(n):(n=n).getTime():null;var n}),[e]),l=Oe((()=>function(n){var e;void 0===te(n)&&(e=`Invalid locale ${n}, defaulting to ${oe}. DateCountdown`,console.warn(e),n=oe);const t=te(n);return f({"years":t[0],"months":t[1],"days":t[2],"hours":t[3],"minutes":t[4],"seconds":t[5]})}(r)),[r]),[d,p]=we(c-Date.now()+1e3),m=Oe((()=>function(n,e,t,r){return A(A({},function(n,e,t){t&&(n*=-1);const r=ee[e]==ee.DAYS?ae(Math.floor(n/864e5)):0,a=ee[e]==ee.HOURS?ae(Math.floor(n/36e5)):ee[e]<ee.HOURS?ae(Math.floor(n%864e5/36e5)):0,o=ee[e]==ee.MINUTES?ae(Math.floor(n/6e4)):ee[e]<ee.MINUTES?ae(Math.floor(n%36e5/6e4)):0,s=ae(ee[e]==ee.SECONDS?Math.floor(n/1e3):Math.floor(n%6e4/1e3));return f({"d":r,"dd":ce(r),"h":a,"hh":ce(a),"m":o,"mm":ce(o),"s":s,"ss":ce(s)})}(n,e,r)),t)}(d,a,l,o)),[d,a,l,o]),h=In(null);On((()=>{if(!u||!h.current)return;const n=h.current.ownerDocument.defaultView,e=n.setInterval((()=>{const r=c-Date.now()+1e3;p(r),t===re&&r<1e3&&n.clearInterval(e)}),1e3);return()=>n.clearInterval(e)}),[u,c,t]);const y=function(n,e){const[t,r]=we(null);return Se((()=>{const t=n&&n(e)||null;if(t&&"function"==typeof t.then){let n=!1;return t.then((e=>{n||r(e)})),()=>{n=!0}}r(t)}),[n,e]),t}(s,m),b=y&&"object"==typeof y&&"__html"in y;return je(Xi,A(A({},i),{},{ref:h,dangerouslySetInnerHTML:b?y:null}),b?null:y)}function ce(n){return n<-9||n>9?String(n):n>=-9&&n<0?"-0"+-n:"0"+n}function ae(n){return n<0?n+1:n}export{De as BentoDateCountdown};
function n(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function e(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function t(t){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(a,n))}))}return t}function r(n,e){if(null==n)return{};var t,r,a={},o=Object.keys(n);for(r=0;r<o.length;r++)t=o[r],e.indexOf(t)>=0||(a[t]=n[t]);return a}var{hasOwnProperty:a,toString:o}=Object.prototype;function s(n){return n||{}}import{cloneElement as i,createContext as u,createElement as c,createRef as l}from"react";import{hydrate as f,render as d}from"react-dom";import{useCallback as p,useContext as m,useEffect as h,useImperativeHandle as y,useLayoutEffect as b,useMemo as v,useRef as g,useState as j}from"react";function w(n,e,t){return c.apply(void 0,arguments)}function S(n){return j(n)}function O(n,e){b(n,e)}function M(n,e){return v(n,e)}import{Children as $,createPortal as N,forwardRef as D}from"react";function C(n){return D(n)}var k=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],z=[null,"paint","layout","content","size","size paint","size layout","strict"],U={"position":"relative","width":"100%","height":"100%"};C((function(n,e){let{as:a="div",children:o,"class":s,contentAs:i="div",contentClassName:u,contentProps:c,contentRef:l,contentStyle:f,layout:d=!1,paint:p=!1,size:m=!1,"style":h,wrapperClassName:y,wrapperStyle:b}=n;const v=(m?4:0)+(d?2:0)+(p?1:0);return w(a,t(t({},r(n,k)),{},{ref:e,class:`${s||""} ${y||""}`.trim()||null,style:t(t(t({},h),b),{},{contain:z[v]})}),w(i,t(t({},c),{},{ref:l,class:u,style:t(t({},m&&U),{},{"overflow":p?"hidden":"visible"},f)}),o))}));var A,E=["as","children","class","style","wrapperClassName","wrapperStyle"],H=C((function(n,e){let{as:a="div",children:o,"class":s,"style":i,wrapperClassName:u,wrapperStyle:c}=n;return w(a,t(t({},r(n,E)),{},{ref:e,class:`${s||""} ${u||""}`.trim()||null,style:t(t({},i),c)}),o)}));function I(){const n=A||(A=u({renderable:!0,playable:!0,loading:"auto"},void 0));return m(n)}function P(n){return R[n]}new WeakMap,new WeakMap;var R={"de":["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],"en":["Years","Months","Days","Hours","Minutes","Seconds"],"es":["años","meses","días","horas","minutos","segundos"],"fr":["ans","mois","jours","heures","minutes","secondes"],"id":["tahun","bulan","hari","jam","menit","detik"],"it":["anni","mesi","giorni","ore","minuti","secondi"],"ja":["年","ヶ月","日","時間","分","秒"],"ko":["년","달","일","시간","분","초"],"nl":["jaar","maanden","dagen","uur","minuten","seconden"],"pt":["anos","meses","dias","horas","minutos","segundos"],"ru":["год","месяц","день","час","минута","секунда"],"th":["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],"tr":["yıl","ay","gün","saat","dakika","saniye"],"vi":["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]},T=["datetime","whenEnded","locale","biggestUnit","countUp","render"],Y={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},W="en",_="stop",x="DAYS",J=!1,L=n=>`${n.days} ${n.dd}, ${n.hours} ${n.hh}, ${n.minutes} ${n.mm}, ${n.seconds} ${n.ss}`;function q(n){let{datetime:e,whenEnded:a=_,locale:o=W,biggestUnit:i=x,countUp:u=J,render:c=L}=n,l=r(n,T);!function(){const{notify:n}=I();O((()=>{n&&n()}))}();const{playable:f}=I(),d=M((()=>{return(n=e)?"number"==typeof n?n:"string"==typeof n?function(n){if(!n)return null;if("now"===n.toLowerCase())return Date.now();const e=Date.parse(n);return isNaN(e)?null:e}(n):(n=n).getTime():null;var n}),[e]),p=M((()=>function(n){var e;void 0===P(n)&&(e=`Invalid locale ${n}, defaulting to ${W}. DateCountdown`,console.warn(e),n=W);const t=P(n);return s({"years":t[0],"months":t[1],"days":t[2],"hours":t[3],"minutes":t[4],"seconds":t[5]})}(o)),[o]),[m,y]=S(d-Date.now()+1e3),b=M((()=>function(n,e,r,a){return t(t({},function(n,e,t){t&&(n*=-1);const r=Y[e]==Y.DAYS?F(Math.floor(n/864e5)):0,a=Y[e]==Y.HOURS?F(Math.floor(n/36e5)):Y[e]<Y.HOURS?F(Math.floor(n%864e5/36e5)):0,o=Y[e]==Y.MINUTES?F(Math.floor(n/6e4)):Y[e]<Y.MINUTES?F(Math.floor(n%36e5/6e4)):0,i=F(Y[e]==Y.SECONDS?Math.floor(n/1e3):Math.floor(n%6e4/1e3));return s({"d":r,"dd":B(r),"h":a,"hh":B(a),"m":o,"mm":B(o),"s":i,"ss":B(i)})}(n,e,a)),r)}(m,i,p,u)),[m,i,p,u]),v=g(null);h((()=>{if(!f||!v.current)return;const n=v.current.ownerDocument.defaultView,e=n.setInterval((()=>{const t=d-Date.now()+1e3;y(t),a===_&&t<1e3&&n.clearInterval(e)}),1e3);return()=>n.clearInterval(e)}),[f,d,a]);const j=function(n,e){const[t,r]=S(null);return O((()=>{const t=n&&n(e)||null;if(t&&"function"==typeof t.then){let n=!1;return t.then((e=>{n||r(e)})),()=>{n=!0}}r(t)}),[n,e]),t}(c,b),$=j&&"object"==typeof j&&"__html"in j;return w(H,t(t({},l),{},{ref:v,dangerouslySetInnerHTML:$?j:null}),$?null:j)}function B(n){return n<-9||n>9?String(n):n>=-9&&n<0?"-0"+-n:"0"+n}function F(n){return n<0?n+1:n}export{q as BentoDateCountdown};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -1,2 +0,2 @@

var{isArray:t}=Array;function n(n){return t(n)?n:[n]}function i(t,n){const i=[];let e=0;for(let o=0;o<t.length;o++){const r=t[o];n(r,o,t)?i.push(r):(e<o&&(t[e]=r),e++)}return e<t.length&&(t.length=e),i}function e(t,n){return t.indexOf(n)<0&&(t.push(n),!0)}function o(t,n){const i=t.indexOf(n);return-1!=i&&(t.splice(i,1),!0)}function r(t,n){return n.toUpperCase()}function s(t){return t.replace(/-([a-z])/g,r)}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);i<n;i++)e[i]=t[i];return e}function l(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return u(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var{hasOwnProperty:c,toString:a}=Object.prototype;function f(t){return t||{}}function h(t){return 1==(null==t?void 0:t.nodeType)}function d(t){return h(t)?(t=t).tagName.toLowerCase()+(t.id?`#${t.id}`:""):t}function v(t,n,i,e,o,r,s,u,l,c,a){return t}function p(t,n){return t}function m(t,n,e,o,r,s,u,l,c,a,f){return function(t,n,e="Assertion failed",o){var r,s;if(n)return n;t&&-1==e.indexOf(t)&&(e+=t);let u=3;const l=e.split("%s");let c=l.shift();const a=[c];for(;l.length;){const t=arguments[u++],n=l.shift();c+=d(t)+n,a.push(t,n.trim())}const f=new Error(c);throw f.messageArray=i(a,(t=>""!==t)),null===(r=(s=self).__AMP_REPORT_ERROR)||void 0===r||r.call(s,f),f}("​​​",t,n,e,o,r,s,u,l,c,a,f)}function y(t){if(!t)return null;if("now"===t.toLowerCase())return Date.now();const n=Date.parse(t);return isNaN(n)?null:n}function b(t){return t?"number"==typeof t?t:"string"==typeof t?y(t):(t=t).getTime():null}var g={"datetime":t=>m(y(t),"Invalid date: %s",t),"end-date":t=>m(y(t),"Invalid date: %s",t),"timeleft-ms":t=>Date.now()+Number(t),"timestamp-ms":t=>Number(t),"timestamp-seconds":t=>1e3*Number(t)};function _(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function w(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,e)}return i}function A(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?w(Object(i),!0).forEach((function(n){_(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}var P=["auto","lazy","eager","unload"],k={auto:0,lazy:1,eager:2,unload:3};function M(t,n){const i=k[t]||0,e=k[n]||0,o=Math.max(i,e);return P[o]}function R(){}function S(t,n=null){let i=!1;const e=()=>{i=!1,t()};return t=>{i||(i=!0,(t||n)(e))}}function E(t){const n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;const{message:i,stack:e}=t,o=new Error(i);for(const n in t)o[n]=t[n];return o.stack=e,o}function T(t){let n=null,i="";for(var e,o=l(arguments,!0);!(e=o()).done;){const t=e.value;t instanceof Error&&!n?n=E(t):(i&&(i+=" "),i+=t)}return n?i&&(n.message=i+": "+n.message):n=new Error(i),n}function I(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function O(t){const n=T.apply(null,arguments);setTimeout((()=>{throw I(n),n}))}function V(t,...n){try{return t.apply(null,n)}catch(t){O(t)}}function j(t,n,i,e=!0,o=!0){if(o){const o=n(t,i,e);o&&j(t,n,i,o,!1)}else if(t.children)for(var r,s=l(t.children,!0);!(r=s()).done;)j(r.value,n,i,e,!0)}R.prototype.key,R.prototype.type,R.prototype.deps,R.prototype.recursive,R.prototype.compute,R.prototype.defaultValue;var C=[],z=()=>{};function $(){}function x(){}function N(t,n){return t.values.scan(n)}function U(t,n,i){return t.values.scanAll(i)}function L(t,n){return t.values.has(n)}function D(t){return!!t.recursive}function W(t){return void 0!==t}$.prototype.values,$.prototype.setters,x.prototype.prop,x.prototype.subscribers,x.prototype.value,x.prototype.pending,x.prototype.counter,x.prototype.depValues,x.prototype.parentValue,x.prototype.parentContextNode,x.prototype.ping,x.prototype.pingDep,x.prototype.pingParent;var q=class{static get(t){let n=t.__AMP_NODE;return n||(n=new q(t,null),t.__AMP_NODE=n),n}static closest(t,n=!0){let i=t;for(;i;){if(i!=t||n){if(i.__AMP_NODE)return i.__AMP_NODE;const{nodeType:t}=i;if(9==t||11==t||1==t&&p(i).tagName.startsWith("AMP-"))return q.get(i)}i=i.__AMP_ASSIGNED_SLOT||i.assignedSlot||i.parentNode}return null}static assignSlot(t,n){t.__AMP_ASSIGNED_SLOT!=n&&(t.__AMP_ASSIGNED_SLOT=n,F(t))}static unassignSlot(t,n){t.__AMP_ASSIGNED_SLOT==n&&(t.__AMP_ASSIGNED_SLOT=void 0,F(t))}static rediscoverChildren(t){var n;const i=t.__AMP_NODE;null==i||null===(n=i.children)||void 0===n||n.forEach(H)}constructor(t,n){this.node=t,this.name=n,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new class{constructor(t){this.i=t,this.h=null,this.v=null,this.p=S(this.p.bind(this),setTimeout)}set(t,n,i){v(n),v(void 0!==i);const{key:e}=t,o=this.h||(this.h=new Map);let r=o.get(e);r||(r={values:[],setters:[]},o.set(e,r));const s=r.setters.indexOf(n),u=-1==s||r.values[s]!==i;-1==s?(r.setters.push(n),r.values.push(i)):u&&(r.values[s]=i),u&&(this.ping(t,!1),D(t)&&j(this.i,N,t,!0,!1))}remove(t,n){v(n);const{key:i}=t,e=this.h,o=null==e?void 0:e.get(i);if(o){const r=o.setters.indexOf(n);-1!=r&&(o.setters.splice(r,1),o.values.splice(r,1),0==o.setters.length&&e.delete(i),j(this.i,N,t))}}has(t){var n;return!(null===(n=this.h)||void 0===n||!n.has(t.key))}subscribe(t,n){const i=this.m(t);if(!e(i.subscribers,n))return;const o=i.value;W(o)&&this.g()&&n(o)}unsubscribe(t,n){var i;const e=null===(i=this.v)||void 0===i?void 0:i.get(t.key);e&&o(e.subscribers,n)&&this._(e)}ping(t,n){var i,e;null===(i=this.v)||void 0===i||null===(e=i.get(t.key))||void 0===e||e.ping(n)}parentUpdated(){this.g()&&j(this.i,U,void 0,C)}rootUpdated(){const t=this.v;t&&(this.g()?t.forEach((t=>{const{prop:n}=t;this.ping(n,!0)})):t.forEach((t=>{const{prop:n}=t;D(n)&&this.A(t,null)})))}scan(t){return this.ping(t,!0),!!D(t)&&!this.has(t)}scanAll(t){let n=null;const i=this.v;return i&&i.forEach((i=>{const{prop:e}=i,{key:o}=e;-1==(n||t).indexOf(o)&&(this.ping(e,!0),this.i.children&&this.has(e)&&(n||(n=t.slice(0)),n.push(o)))})),n||t}g(){return!!this.i.root}m(t){const{deps:n,key:i}=t,e=this.v||(this.v=new Map);let o=e.get(i);return o||(o={prop:t,subscribers:[],value:void 0,pending:0,counter:0,depValues:n.length>0?n.map(z):C,parentValue:void 0,parentContextNode:null,ping:t=>{if(this.g()){const n=t?2:1;o.pending=Math.max(o.pending,n),this.p()}},pingDep:n.length>0?n.map(((t,n)=>t=>{o.depValues[n]=t,o.ping()})):C,pingParent:D(t)?t=>{o.parentValue=t,o.ping()}:null},e.set(i,o),n.forEach(((t,n)=>this.subscribe(t,o.pingDep[n]))),o.ping(!1)),o}_(t){if(t.subscribers.length>0)return;const{pingDep:n,prop:i}=t,{deps:e,key:o}=i;this.v.delete(o),this.A(t,null),e.length>0&&e.forEach(((t,i)=>{this.unsubscribe(t,n[i])}))}p(){if(!this.g())return;const t=this.v;if(!t)return;let n;t.forEach((t=>{t.counter=0}));do{n=0,t.forEach((t=>{if(0!=t.pending){const{key:i}=t.prop;if(t.counter++,t.counter>5)return O(`cyclical prop: ${i}`),void(t.pending=0);n++,this.P(t)}}))}while(n>0)}P(t){const n=2==t.pending;let i;try{i=this.k(t,n)}catch(t){O(t)}t.pending=0,this.M(t,i)}M(t,n){const{prop:i,value:e}=t,{key:o}=i,r=this.v;if(e===n||t!==(null==r?void 0:r.get(o))||!this.g())return;t.value=n;const{subscribers:s}=t;for(var u,c=l(s,!0);!(u=c()).done;)(0,u.value)(n)}k(t,n){var i,e;v(this.g());const{depValues:o,prop:r}=t,{compute:s,defaultValue:u,key:l}=r,c=null===(i=this.h)||void 0===i||null===(e=i.get(l))||void 0===e?void 0:e.values,a=function(t,n){const{compute:i,recursive:e}=t;return"function"==typeof e?!n||e(n):!(e&&n&&!i)&&e}(r,c);if(n||a!=Boolean(t.parentContextNode)){const n=a?function(t,n,i,e=!0){for(let o=e?t:t.parent;o;o=o.parent)if(n(o,i))return o;return null}(this.i,L,r,!1):null;this.A(t,n)}const f=W(t.parentValue)?t.parentValue:a&&!t.parentContextNode?u:void 0;let h;if(o.every(W)&&(!a||W(f))){const{node:t}=this.i;c&&!s?h=c[0]:D(r)?c||o.length>0?h=function(t,n,i,e,o){switch(o.length){case 0:return t(n,i,e);case 1:return t(n,i,e,o[0]);case 2:return t(n,i,e,o[0],o[1]);case 3:return t(n,i,e,o[0],o[1],o[2]);default:return t.apply(null,[n,i,e].concat(o))}}(s,t,c||C,f,o):W(f)&&(h=f):s&&(h=function(t,n,i,e){switch(e.length){case 0:return t(n,i);case 1:return t(n,i,e[0]);case 2:return t(n,i,e[0],e[1]);case 3:return t(n,i,e[0],e[1],e[2]);default:return t.apply(null,[n,i].concat(e))}}(s,t,c||C,o))}return h}A(t,n){const{parentContextNode:i,pingParent:e,prop:o}=t;n!=i&&(t.parentContextNode=n,t.parentValue=void 0,i&&i.values.unsubscribe(o,v(e)),n&&n.values.subscribe(o,v(e)))}}(this),this.R=null,this.S=!1,this.T=S(this.I.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(t=>{var n,i;const e=t.target;e.assignedNodes().forEach(F),null===(n=q.closest(e))||void 0===n||null===(i=n.children)||void 0===i||i.forEach(H)})),this.discover()}discover(){this.isDiscoverable()?this.T():this.name&&this.children&&this.children.forEach(H)}isDiscoverable(){return!this.isRoot&&!this.S}setParent(t){const n=null!=t&&t.nodeType?q.get(t):t;this.O(n,null!=t)}setIsRoot(t){var n,i;this.isRoot=t;const e=t?this:null!==(n=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==n?n:null;this.updateRoot(e)}updateRoot(t){v(!t||t.isRoot);const n=this.root;var i,e;t!=n&&(this.root=t,this.values.rootUpdated(),null===(i=this.R)||void 0===i||i.forEach((t=>t.rootUpdated())),null===(e=this.children)||void 0===e||e.forEach((n=>n.updateRoot(t))))}addGroup(t,n,i){const e=this.groups||(this.groups=new Map),{children:o,node:r}=this,s=new q(r,t);return e.set(t,{cn:s,match:n,weight:i}),s.setParent(this),null==o||o.forEach(H),s}group(t){var n,i;return(null===(n=this.groups)||void 0===n||null===(i=n.get(t))||void 0===i?void 0:i.cn)||null}findGroup(t){const{groups:n}=this;if(!n)return null;let i=null,e=Number.NEGATIVE_INFINITY;return n.forEach((({cn:n,match:o,weight:r})=>{o(t,this.node)&&r>e&&(i=n,e=r)})),i}subscribe(t,n,i,e){const o=this.R||(this.R=new Map);let r=o.get(t);r||(r=new n(this,i,e),o.set(t,r))}unsubscribe(t){const n=this.R,i=null==n?void 0:n.get(t);i&&(i.dispose(),n.delete(t))}I(){if(!this.isDiscoverable())return;const t=q.closest(this.node,!1),n=(null==t?void 0:t.findGroup(this.node))||t;this.O(n,!1)}O(t,n){var i;this.S=n;const r=this.parent;if(t!=r){if(this.parent=t,null!=r&&r.children&&o(v(r.children),this),t){const n=t.children||(t.children=[]);e(n,this);for(var s,u=l(n,!0);!(s=u()).done;){const t=s.value;t!=this&&t.isDiscoverable()&&t.discover()}}this.values.parentUpdated()}this.updateRoot(null!==(i=null==t?void 0:t.root)&&void 0!==i?i:null)}};function F(t){!function(t,n,i=!0){const e=q.closest(t,i);if(e)if(e.node==t)n(e);else if(e.children)for(var o,r=l(e.children,!0);!(o=r()).done;){const i=o.value;t.contains(i.node)&&n(i)}}(t,H)}function H(t){t.discover()}var Z=[];function B(t,n){const i=A({key:t,type:null,deps:Z,recursive:!1,compute:null,defaultValue:void 0},n);return v(0==i.deps.length||i.compute),i}var Y=[],G=()=>{};function Q(t,i,e){i=n(i);const o=e;q.get(t).subscribe(o,K,e,i)}var J,K=class{constructor(t,n,i){if(this.contextNode=t,this.V=n,this.j=i,this.C=i.length>0?i.map(G):Y,this.$=i.length>0?i.map(((t,n)=>t=>{this.C[n]=t,this.N()})):Y,this.U=!1,this.L=null,this.N=S(this.N.bind(this),setTimeout),i.length>0){const{values:t}=this.contextNode;i.forEach(((n,i)=>t.subscribe(n,this.$[i])))}this.g()&&this.N()}dispose(){if(this.j.length>0){const{values:t}=this.contextNode;this.j.forEach(((n,i)=>t.unsubscribe(n,this.$[i])))}this.D()}rootUpdated(){const t=this.g();this.D(),t&&this.N()}g(){return!!this.contextNode.root}N(){this.g()&&(this.C.every(X)?(this.U=!0,this.W()):this.U&&(this.U=!1,this.D()))}W(){this.L&&(V(this.L),this.L=null);const t=this.V;this.L=function(t,n){switch(n.length){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);default:return t.apply(null,n)}}(t,this.C)}D(){this.L&&(V(this.L),this.L=null)}};function X(t){return void 0!==t}function tt(t){q.get(t).discover()}function nt(t,n,i,e){q.get(t).values.set(n,i,e)}function it(t,n,i){q.get(t).values.remove(n,i)}function et(){return J||(J=Promise.resolve(void 0))}var ot=class{constructor(){this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n}))}};function rt(t){return(t.ownerDocument||t).defaultView}function st(t){v(/^[\w-]+$/.test(t))}function ut(t,n){return t.querySelector(function(t,n){return t.replace(/^|,/g,"$&:scope ")}(n))}function lt(t,n){const i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!i&&i.call(t,n)}function ct(t,n){return st(n),ut(t,`> [${n}]`)}function at(t){return function(t,n){const i=[];for(let n=t.firstChild;n;n=n.nextSibling)!(function(t){let n;return"string"==typeof t?n=t:t.nodeType===Node.ELEMENT_NODE&&(n=p(t).tagName),!!n&&n.toLowerCase().startsWith("i-")}(e=n)||e.nodeType===Node.ELEMENT_NODE&&(p(e),e.hasAttribute("placeholder")||e.hasAttribute("fallback")||e.hasAttribute("overflow")))&&i.push(n);var e;return i}(t)}var ft={bubbles:!0,cancelable:!0};function ht(t,n,i){return function(t,n){for(const i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}function dt(t,n,i,e){const o=i||{},r=t.ownerDocument.createEvent("Event");r.data=o;const{bubbles:s,cancelable:u}=e||ft;r.initEvent(n,s,u),t.dispatchEvent(r)}function vt(t,n){return[{query:t.matchMedia(n),value:"1"},{query:null,value:""}]}function pt(t,n){return n.split(",").map((n=>{if(0==(n=n.replace(/\s+/g," ").trim()).length)return;let i,e,o;if(")"==n.charAt(n.length-1)){let t=1;for(o=n.length-2;o>=0;o--){const i=n.charAt(o);if("("==i?t--:")"==i&&t++,0==t)break}const i=o-1;if(o>0)for(o--;o>=0;o--){const t=n.charAt(o);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(o>=i)return null}else for(o=n.length-2;o>=0;o--){const t=n.charAt(o);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return o>=0?(i=n.substring(0,o+1).trim(),e=n.substring(o+1).trim()):(e=n,i=void 0),e?{query:i?t.matchMedia(i):null,value:e}:null})).filter(Boolean)}function mt(t,n,i){for(let e=0;e<t.length;e++){const{query:o}=t[e];o&&(void 0!==o.onchange?o.onchange=i?n:null:i?o.addListener(n):o.removeListener(n))}}var yt={"getPropertyPriority":()=>"","getPropertyValue":()=>""},bt=/vertical/,gt=new WeakMap,_t=new WeakMap,wt=new WeakMap;function At(t){let n=gt.get(t);return n||(n=new t.ResizeObserver(Pt),gt.set(t,n)),n}function Pt(t){const n=new Set;for(let i=t.length-1;i>=0;i--){const e=t[i],{target:o}=e;if(n.has(o))continue;n.add(o);const r=_t.get(o);if(r){wt.set(o,e);for(let t=0;t<r.length;t++){const{callback:n,type:i}=r[t];kt(i,n,e)}}}}function kt(t,n,i){if(0==t){const{contentRect:t}=i,{height:e,width:o}=t;V(n,{width:o,height:e})}else if(1==t){const{borderBoxSize:t}=i;let e;if(t)e=t.length>0?t[0]:{inlineSize:0,blockSize:0};else{const{target:t}=i,n=rt(t),o=bt.test(function(t,n){return t.getComputedStyle(n)||yt}(n,t)["writing-mode"]),{offsetHeight:r,offsetWidth:s}=t;let u,l;o?(l=s,u=r):(u=s,l=r),e={inlineSize:u,blockSize:l}}V(n,e)}}var Mt,Rt,St,Et,Tt,It,Ot,Vt,jt,Ct,zt={},$t=[],xt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Nt(t,n){for(var i in n)t[i]=n[i];return t}function Ut(t){var n=t.parentNode;n&&n.removeChild(t)}function Lt(t,n,i){var e,o,r,s={};for(r in n)"key"==r?e=n[r]:"ref"==r?o=n[r]:s[r]=n[r];if(arguments.length>2&&(s.children=arguments.length>3?Mt.call(arguments,2):i),"function"==typeof t&&null!=t.defaultProps)for(r in t.defaultProps)void 0===s[r]&&(s[r]=t.defaultProps[r]);return Dt(t,s,e,o,null)}function Dt(t,n,i,e,o){var r={type:t,props:n,key:i,ref:e,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++St:o};return null!=Rt.vnode&&Rt.vnode(r),r}function Wt(t){return t.children}function qt(t,n){this.props=t,this.context=n}function Ft(t,n){if(null==n)return t.__?Ft(t.__,t.__.__k.indexOf(t)+1):null;for(var i;n<t.__k.length;n++)if(null!=(i=t.__k[n])&&null!=i.__e)return i.__e;return"function"==typeof t.type?Ft(t):null}function Ht(t){var n,i;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(i=t.__k[n])&&null!=i.__e){t.__e=t.__c.base=i.__e;break}return Ht(t)}}function Zt(t){(!t.__d&&(t.__d=!0)&&Et.push(t)&&!Bt.__r++||It!==Rt.debounceRendering)&&((It=Rt.debounceRendering)||Tt)(Bt)}function Bt(){for(var t;Bt.__r=Et.length;)t=Et.sort((function(t,n){return t.__v.__b-n.__v.__b})),Et=[],t.some((function(t){var n,i,e,o,r,s;t.__d&&(r=(o=(n=t).__v).__e,(s=n.__P)&&(i=[],(e=Nt({},o)).__v=o.__v+1,en(s,o,e,n.__n,void 0!==s.ownerSVGElement,null!=o.__h?[r]:null,i,null==r?Ft(o):r,o.__h),on(i,o),o.__e!=r&&Ht(o)))}))}function Yt(t,n,i,e,o,r,s,u,l,c){var a,f,h,d,v,p,m,y=e&&e.__k||$t,b=y.length;for(i.__k=[],a=0;a<n.length;a++)if(null!=(d=i.__k[a]=null==(d=n[a])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?Dt(null,d,null,null,d):Array.isArray(d)?Dt(Wt,{children:d},null,null,null):d.__b>0?Dt(d.type,d.props,d.key,null,d.__v):d)){if(d.__=i,d.__b=i.__b+1,null===(h=y[a])||h&&d.key==h.key&&d.type===h.type)y[a]=void 0;else for(f=0;f<b;f++){if((h=y[f])&&d.key==h.key&&d.type===h.type){y[f]=void 0;break}h=null}en(t,d,h=h||zt,o,r,s,u,l,c),v=d.__e,(f=d.ref)&&h.ref!=f&&(m||(m=[]),h.ref&&m.push(h.ref,null,d),m.push(f,d.__c||v,d)),null!=v?(null==p&&(p=v),"function"==typeof d.type&&null!=d.__k&&d.__k===h.__k?d.__d=l=Gt(d,l,t):l=Jt(t,d,h,y,v,l),c||"option"!==i.type?"function"==typeof i.type&&(i.__d=l):t.value=""):l&&h.__e==l&&l.parentNode!=t&&(l=Ft(h))}for(i.__e=p,a=b;a--;)null!=y[a]&&("function"==typeof i.type&&null!=y[a].__e&&y[a].__e==i.__d&&(i.__d=Ft(e,a+1)),sn(y[a],y[a]));if(m)for(a=0;a<m.length;a++)rn(m[a],m[++a],m[++a])}function Gt(t,n,i){var e,o;for(e=0;e<t.__k.length;e++)(o=t.__k[e])&&(o.__=t,n="function"==typeof o.type?Gt(o,n,i):Jt(i,o,o,t.__k,o.__e,n));return n}function Qt(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){Qt(t,n)})):n.push(t)),n}function Jt(t,n,i,e,o,r){var s,u,l;if(void 0!==n.__d)s=n.__d,n.__d=void 0;else if(null==i||o!=r||null==o.parentNode)t:if(null==r||r.parentNode!==t)t.appendChild(o),s=null;else{for(u=r,l=0;(u=u.nextSibling)&&l<e.length;l+=2)if(u==o)break t;t.insertBefore(o,r),s=r}return void 0!==s?s:o.nextSibling}function Kt(t,n,i){"-"===n[0]?t.setProperty(n,i):t[n]=null==i?"":"number"!=typeof i||xt.test(n)?i:i+"px"}function Xt(t,n,i,e,o){var r;t:if("style"===n)if("string"==typeof i)t.style.cssText=i;else{if("string"==typeof e&&(t.style.cssText=e=""),e)for(n in e)i&&n in i||Kt(t.style,n,"");if(i)for(n in i)e&&i[n]===e[n]||Kt(t.style,n,i[n])}else if("o"===n[0]&&"n"===n[1])r=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in t?n.toLowerCase().slice(2):n.slice(2),t.l||(t.l={}),t.l[n+r]=i,i?e||t.addEventListener(n,r?nn:tn,r):t.removeEventListener(n,r?nn:tn,r);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in t)try{t[n]=null==i?"":i;break t}catch(t){}"function"==typeof i||(null!=i&&(!1!==i||"a"===n[0]&&"r"===n[1])?t.setAttribute(n,i):t.removeAttribute(n))}}function tn(t){this.l[t.type+!1](Rt.event?Rt.event(t):t)}function nn(t){this.l[t.type+!0](Rt.event?Rt.event(t):t)}function en(t,n,i,e,o,r,s,u,l){var c,a,f,h,d,v,p,m,y,b,g,_=n.type;if(void 0!==n.constructor)return null;null!=i.__h&&(l=i.__h,u=n.__e=i.__e,n.__h=null,r=[u]),(c=Rt.__b)&&c(n);try{t:if("function"==typeof _){if(m=n.props,y=(c=_.contextType)&&e[c.__c],b=c?y?y.props.value:c.__:e,i.__c?p=(a=n.__c=i.__c).__=a.__E:("prototype"in _&&_.prototype.render?n.__c=a=new _(m,b):(n.__c=a=new qt(m,b),a.constructor=_,a.render=un),y&&y.sub(a),a.props=m,a.state||(a.state={}),a.context=b,a.__n=e,f=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=_.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=Nt({},a.__s)),Nt(a.__s,_.getDerivedStateFromProps(m,a.__s))),h=a.props,d=a.state,f)null==_.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==_.getDerivedStateFromProps&&m!==h&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,b),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,b)||n.__v===i.__v){a.props=m,a.state=a.__s,n.__v!==i.__v&&(a.__d=!1),a.__v=n,n.__e=i.__e,n.__k=i.__k,n.__k.forEach((function(t){t&&(t.__=n)})),a.__h.length&&s.push(a);break t}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,b),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(h,d,v)}))}a.context=b,a.props=m,a.state=a.__s,(c=Rt.__r)&&c(n),a.__d=!1,a.__v=n,a.__P=t,c=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(e=Nt(Nt({},e),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(v=a.getSnapshotBeforeUpdate(h,d)),g=null!=c&&c.type===Wt&&null==c.key?c.props.children:c,Yt(t,Array.isArray(g)?g:[g],n,i,e,o,r,s,u,l),a.base=n.__e,n.__h=null,a.__h.length&&s.push(a),p&&(a.__E=a.__=null),a.__e=!1}else null==r&&n.__v===i.__v?(n.__k=i.__k,n.__e=i.__e):n.__e=function(t,n,i,e,o,r,s,u){var l,c,a,f=i.props,h=n.props,d=n.type,v=0;if("svg"===d&&(o=!0),null!=r)for(;v<r.length;v++)if((l=r[v])&&(l===t||(d?l.localName==d:3==l.nodeType))){t=l,r[v]=null;break}if(null==t){if(null===d)return document.createTextNode(h);t=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,h.is&&h),r=null,u=!1}if(null===d)f===h||u&&t.data===h||(t.data=h);else{if(r=r&&Mt.call(t.childNodes),c=(f=i.props||zt).dangerouslySetInnerHTML,a=h.dangerouslySetInnerHTML,!u){if(null!=r)for(f={},v=0;v<t.attributes.length;v++)f[t.attributes[v].name]=t.attributes[v].value;(a||c)&&(a&&(c&&a.__html==c.__html||a.__html===t.innerHTML)||(t.innerHTML=a&&a.__html||""))}if(function(t,n,i,e,o){var r;for(r in i)"children"===r||"key"===r||r in n||Xt(t,r,null,i[r],e);for(r in n)o&&"function"!=typeof n[r]||"children"===r||"key"===r||"value"===r||"checked"===r||i[r]===n[r]||Xt(t,r,n[r],i[r],e)}(t,h,f,o,u),a)n.__k=[];else if(v=n.props.children,Yt(t,Array.isArray(v)?v:[v],n,i,e,o&&"foreignObject"!==d,r,s,r?r[0]:i.__k&&Ft(i,0),u),null!=r)for(v=r.length;v--;)null!=r[v]&&Ut(r[v]);u||("value"in h&&void 0!==(v=h.value)&&(v!==t.value||"progress"===d&&!v)&&Xt(t,"value",v,f.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==t.checked&&Xt(t,"checked",v,f.checked,!1))}return t}(i.__e,n,i,e,o,r,s,l);(c=Rt.diffed)&&c(n)}catch(t){n.__v=null,(l||null!=r)&&(n.__e=u,n.__h=!!l,r[r.indexOf(u)]=null),Rt.__e(t,n,i)}}function on(t,n){Rt.__c&&Rt.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){Rt.__e(t,n.__v)}}))}function rn(t,n,i){try{"function"==typeof t?t(n):t.current=n}catch(t){Rt.__e(t,i)}}function sn(t,n,i){var e,o;if(Rt.unmount&&Rt.unmount(t),(e=t.ref)&&(e.current&&e.current!==t.__e||rn(e,null,n)),null!=(e=t.__c)){if(e.componentWillUnmount)try{e.componentWillUnmount()}catch(t){Rt.__e(t,n)}e.base=e.__P=null}if(e=t.__k)for(o=0;o<e.length;o++)e[o]&&sn(e[o],n,"function"!=typeof t.type);i||null==t.__e||Ut(t.__e),t.__e=t.__d=void 0}function un(t,n,i){return this.constructor(t,i)}function ln(t,n,i){var e,o,r;Rt.__&&Rt.__(t,n),o=(e="function"==typeof i)?null:i&&i.__k||n.__k,r=[],en(n,t=(!e&&i||n).__k=Lt(Wt,null,[t]),o||zt,zt,void 0!==n.ownerSVGElement,!e&&i?[i]:o?null:n.firstChild?Mt.call(n.childNodes):null,r,!e&&i?i:o?o.__e:n.firstChild,e),on(r,t)}function cn(t,n){ln(t,n,cn)}Mt=$t.slice,Rt={__e:function(t,n){for(var i,e,o;n=n.__;)if((i=n.__c)&&!i.__)try{if((e=i.constructor)&&null!=e.getDerivedStateFromError&&(i.setState(e.getDerivedStateFromError(t)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t),o=i.__d),o)return i.__E=i}catch(n){t=n}throw t}},St=0,qt.prototype.setState=function(t,n){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Nt({},this.state),"function"==typeof t&&(t=t(Nt({},i),this.props)),t&&Nt(i,t),null!=t&&this.__v&&(n&&this.__h.push(n),Zt(this))},qt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Zt(this))},qt.prototype.render=Wt,Et=[],Tt="function"==typeof Promise?Promise.prototype.then.bind(et()):setTimeout,Bt.__r=0,Ot=0;var an=0,fn=[],hn=Rt.__b,dn=Rt.__r,vn=Rt.diffed,pn=Rt.__c,mn=Rt.unmount;function yn(t,n){Rt.__h&&Rt.__h(jt,t,an||n),an=0;var i=jt.__H||(jt.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function bn(t,n){var i=yn(Vt++,7);return Mn(i.__H,n)&&(i.__=t(),i.__H=n,i.__h=t),i.__}function gn(){fn.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(Pn),t.__H.__h.forEach(kn),t.__H.__h=[]}catch(n){t.__H.__h=[],Rt.__e(n,t.__v)}})),fn=[]}Rt.__b=function(t){jt=null,hn&&hn(t)},Rt.__r=function(t){dn&&dn(t),Vt=0;var n=(jt=t.__c).__H;n&&(n.__h.forEach(Pn),n.__h.forEach(kn),n.__h=[])},Rt.diffed=function(t){vn&&vn(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==fn.push(n)&&Ct===Rt.requestAnimationFrame||((Ct=Rt.requestAnimationFrame)||function(t){var n,i=function(){clearTimeout(e),An&&cancelAnimationFrame(n),setTimeout(t)},e=setTimeout(i,100);An&&(n=requestAnimationFrame(i))})(gn)),jt=void 0},Rt.__c=function(t,n){n.some((function(t){try{t.__h.forEach(Pn),t.__h=t.__h.filter((function(t){return!t.__||kn(t)}))}catch(i){n.some((function(t){t.__h&&(t.__h=[])})),n=[],Rt.__e(i,t.__v)}})),pn&&pn(t,n)},Rt.unmount=function(t){mn&&mn(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach(Pn)}catch(t){Rt.__e(t,n.__v)}};var _n,wn,An="function"==typeof requestAnimationFrame;function Pn(t){var n=jt;"function"==typeof t.__c&&t.__c(),jt=n}function kn(t){var n=jt;t.__c=t.__(),jt=n}function Mn(t,n){return!t||t.length!==n.length||n.some((function(n,i){return n!==t[i]}))}function Rn(t,n){return"function"==typeof n?n(t):n}function Sn(t,n,i){return Lt.apply(void 0,arguments)}function En(t,n,i){ln(t,n,i)}function Tn(t){return an=1,n=Rn,i=t,(e=yn(Vt++,2)).t=n,e.__c||(e.__=[Rn(void 0,i),function(t){var n=e.t(e.__[0],t);e.__[0]!==n&&(e.__=[n,e.__[1]],e.__c.setState({}))}],e.__c=jt),e.__;var n,i,e}function In(t){return n=t,an=5,bn((function(){return{current:n}}),[]);var n}function On(t,n){var i,e,o;i=t,e=n,o=yn(Vt++,3),!Rt.__s&&Mn(o.__H,e)&&(o.__=i,o.__H=e,jt.__H.__h.push(o))}function Vn(t,n){var i,e,o;i=t,e=n,o=yn(Vt++,4),!Rt.__s&&Mn(o.__H,e)&&(o.__=i,o.__H=e,jt.__h.push(o))}function jn(t,n){return bn(t,n)}if("undefined"!=typeof AMP&&AMP.BaseElement)_n=AMP.BaseElement;else{const t=HTMLElement;class n{constructor(t){this.element=t,this.win=rt(t)}static"CustomElement"(n){return class extends t{constructor(){super(),this.implementation=new n(this)}connectedCallback(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()}disconnectedCallback(){this.implementation.unmountCallback()}getApi(){return this.implementation.getApi()}}}mutateElement(t){et().then(t)}isLayoutSupported(){return!0}mountCallback(){}unmountCallback(){}buildCallback(){}}_n=n}function Cn(){return wn||(wn=(n={__c:t="__cC"+Ot++,__:{renderable:!0,playable:!0,loading:"auto"},Consumer:function(t,n){return t.children(n)},Provider:function(n){var i,e;return this.getChildContext||(i=[],(e={})[t]=this,this.getChildContext=function(){return e},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&i.some(Zt)},this.sub=function(t){i.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){i.splice(i.indexOf(t),1),n&&n.call(t)}}),n.children}}).Provider.__=n.Consumer.contextType=n);var t,n}function zn({children:t,loading:n="auto",notify:i,playable:e=!0,renderable:o=!0}){const r=$n(),s=o&&r.renderable,u=s&&e&&r.playable,l=M(s?"auto":"lazy",M(n,r.loading)),c=i||r.notify,a=jn((()=>({renderable:s,playable:u,loading:l,notify:c})),[s,u,l,c]);return Sn(Cn().Provider,{children:t,value:a})}function $n(){return t=Cn(),n=jt.context[t.__c],(i=yn(Vt++,9)).c=t,n?(null==i.__&&(i.__=!0,n.sub(jt)),n.props.value):t.__;var t,n,i}var xn=B("CanRender",{defaultValue:!0,recursive:t=>t.reduce(Ln),compute:(t,n,i)=>i&&n.reduce(Ln,!0)||!1}),Nn=B("CanPlay",{defaultValue:!0,recursive:t=>t.reduce(Ln),deps:[xn],compute:(t,n,i,e)=>e&&i&&n.reduce(Ln,!0)||!1}),Un=B("Loading",{defaultValue:"auto",recursive:!0,deps:[xn],compute:(t,n,i,e)=>M(e?"auto":"lazy",M(i||"auto",n.reduce(M,"auto")))}),Ln=(t,n)=>t&&n,Dn=t=>t.ensureLoaded(),Wn=t=>t.pause(),qn=t=>t.unmount();function Fn(t,n=!0){Bn(t,n,!1,Dn)}function Hn(t,n=!0){Bn(t,n,!0,Wn)}function Zn(t,n=!0){Bn(t,n,!0,qn)}function Bn(t,i,e,o){const r=n(t);for(let t=0;t<r.length;t++)Yn(r[t],i,e,o)}function Yn(t,n,i,e){if(n&&t.classList.contains("i-amphtml-element")){const n=t;if(V(e,n),!i){const t=n.getPlaceholder();return void(t&&Yn(t,!0,!1,e))}}const o=t.getElementsByClassName("i-amphtml-element");let r=null;for(let t=0;t<o.length;t++){const n=o[t];if(i)V(e,n);else{r=r||[];let t=!1;for(let i=0;i<r.length;i++)if(r[i].contains(n)){t=!0;break}t||(r.push(n),V(e,n))}}}var Gn={},Qn=new WeakMap;function Jn(t,n,i,e=!1){if(t.setAttribute("slot",n),!e)return Sn(Kn,A(A({},i||Gn),{},{name:n}));const o=Qn.get(t);if(o&&function(t,n){if(null==t||null==n)return t===n;for(const i in t)if(t[i]!==n[i])return!1;for(const i in n)if(n[i]!==t[i])return!1;return!0}(o.oldProps,i))return o.component;function r(t){return Sn(Kn,A(A({},i||Gn),{},{name:n},t))}return Qn.set(t,{oldProps:i,component:r}),r}function Kn(t){const n=In(null);return function(t,n){const{"loading":i}=n||Gn,e=$n();Vn((()=>{const n=t.current;return v(h(n)),nt(n,xn,Kn,e.renderable),nt(n,Nn,Kn,e.playable),nt(n,Un,Kn,e.loading),e.playable||Xn(n,Hn,!0),()=>{var t;it(n,xn,Kn),it(n,Nn,Kn),it(n,Un,Kn),t=n,q.rediscoverChildren(t)}}),[t,e]),Vn((()=>{const n=t.current;return v(h(n)),"lazy"!=i&&Xn(n,Fn,!0),()=>{Xn(n,Zn,!1)}}),[t,i])}(n,t),On((()=>{t.postRender&&t.postRender()})),Sn("slot",A(A({},t),{},{ref:n}))}function Xn(t,n,i){const e=t.assignedElements?t.assignedElements():t;if(Array.isArray(e)&&0==e.length)return;if(!i)return void n(e);const o=t.ownerDocument.defaultView;o&&(o.requestIdleCallback||o.setTimeout)((()=>n(e)))}var ti={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},ni=function(){let t=0;return()=>String(++t)}(),ii=t=>"string"==typeof t||!!t.selector,ei=t=>3===t.nodeType&&0===t.nodeValue.trim().length;function oi(t,n,i,e,o){const{"layoutSizeDefined":r,"lightDomTag":s,"props":u}=t;o&&o.start();const l=A(A({},e),{},{ref:i});return s&&(l["i-amphtml-rendered"]=!0,l.__AMP_RENDERED=!0,l.as=s),r&&(t.usesShadowDom?l.style=ti:l.class="i-amphtml-fill-content"),ri(t,l,u,n,o),o&&o.complete(),l}function ri(t,n,i,e,o){if(function(t,n){return Object.values(t).some(n)}(i,ii)){const r=at(e);for(let e=0;e<r.length;e++){const s=r[e],u=ui(s,i);if(!u)continue;const l=i[u],{as:c=!1,single:a,name:f=u,clone:h,props:d={}}=l;v(h||t.usesShadowDom);const p={};if(ri(t,p,d,s,o),a)n[f]=Jn(s,s.getAttribute("slot")||`i-amphtml-${f}`,p,c);else{const t=n[f]||(n[f]=[]);v(!c),t.push(h?si(s):Jn(s,s.getAttribute("slot")||`i-amphtml-${f}-${ni()}`,p))}}}for(const c in i){const a=i[c];let f;if(v(!!a.attr+!!a.attrs+!!a.attrPrefix+!!a.selector+!!a.passthrough+!!a.passthroughNonEmpty<=1),a.passthrough)v(t.usesShadowDom),f=[Sn(Kn,{loading:"lazy"})];else if(a.passthroughNonEmpty)v(t.usesShadowDom),f=at(e).every(ei)?null:[Sn(Kn,{loading:"lazy"})];else if(a.attr)f=e.getAttribute(a.attr),a.media&&null!=f&&(f=o.resolveListQuery(String(f)));else if(a.parseAttrs)v(a.attrs),f=a.parseAttrs(e);else if(a.attrPrefix){const t={};let n=!1;const i=e.attributes;for(let e=0;e<i.length;e++){const o=i[e];u=o.name,l=a.attrPrefix,null!==u&&void 0!==l&&u.startsWith(l)&&u!==l&&(t[s(o.name.slice(a.attrPrefix.length))]=o.value,n=!0)}n&&(f=t)}if(null==f)null!=a.default&&(n[c]=a.default);else{const t="number"==a.type?parseFloat(f):"boolean"==a.type?null==(r=f)?void 0:"false"!==r:"date"==a.type?b(f):f;n[c]=t}}var r,u,l}function si(t){const n={"key":t},{attributes:i,localName:e}=t,{length:o}=i;for(let t=0;t<o;t++){const{name:e,value:o}=i[t];n[e]=o}return Sn(e,n)}function ui(t,n){for(const i in n){const e=n[i];if(lt(t,"string"==typeof e?e:e.selector))return i}return null}var li=self.AMP_CONFIG||{},ci=("string"==typeof li.thirdPartyFrameRegex?new RegExp(li.thirdPartyFrameRegex):li.thirdPartyFrameRegex,("string"==typeof li.cdnProxyRegex?new RegExp(li.cdnProxyRegex):li.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function ai(t){if(!self.document||!self.document.head)return null;if(self.location&&ci.test(self.location.origin))return null;const n=self.document.head.querySelector(`meta[name="${t}"]`);return n&&n.getAttribute("content")||null}li.thirdPartyUrl,li.thirdPartyFrameHost,li.cdnUrl||ai("runtime-host"),li.errorReportingUrl,li.betaErrorReportingUrl,li.localDev,li.geoApiUrl||ai("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var fi=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";new RegExp("(-shadowcsshost"+fi,"gim"),new RegExp("(-shadowcsscontext"+fi,"gim"),new RegExp("-shadowcsshost","gim"),new RegExp("-shadowcsscontext","gim");var hi={childList:!0},di={childList:!0,characterData:!0},vi={childList:!0},pi=f({"style":"display: contents; background: inherit;","part":"c"}),mi=f({"name":"i-amphtml-svc"}),yi=f({"i-amphtml-rendered":""}),bi=()=>!0;function gi(t,n){return Object.values(t).some(n)}var _i=t=>!!t.media,wi=t=>"string"==typeof t||!!t.selector,Ai=t=>!(!t.passthrough&&!t.passthroughNonEmpty),Pi=class extends _n{static R1(){return!0}static requiresShadowDom(){return this.usesShadowDom}static usesLoading(){return this.loadable}static prerenderAllowed(){return!this.usesLoading()}constructor(t){super(t),this.q=f({"loading":"auto","onReadyState":(t,n)=>{this.F(t,n)},"onPlayingState":t=>{this.H(t)},"onLoading":()=>{this.handleOnLoading()},"onLoad":()=>{this.handleOnLoad()},"onError":()=>{this.handleOnError()}}),this.Z={renderable:!1,playable:!0,loading:"auto",notify:()=>this.mutateElement((()=>{}))},this.B=!1,this.Y=null,this.G=null,this.J=t=>{null!==t&&(this.Y?this.K(t):this.X(t)),this.G=t,this.tt()},this.nt=null,this.it=null,this.et=null,this.ot=!1,this.rt=null,this.st=()=>{this.ot=!1,this.ut()},this.lt=!1,this.ct=!1,this.observer=null,this.at=new class{constructor(t){this.ft=t,this.ht=!1,this.dt=!1,this.vt=this.vt.bind(this)}updatePlaying(t){t!==this.ht&&(this.ht=t,t?(this.dt=!1,function(t,n){!function(t,n,i){const e=t.ownerDocument.defaultView;if(!e)return;let o=_t.get(t);if(o||(o=[],_t.set(t,o),At(e).observe(t)),!o.some((t=>t.callback===i&&1===t.type))){o.push({type:1,callback:i});const n=wt.get(t);n&&setTimeout((()=>kt(1,i,n)))}}(t,0,n)}(this.ft,this.vt)):function(t,n){!function(t,n,e){const o=_t.get(t);if(o&&(i(o,(t=>t.callback===e&&1===t.type)),0==o.length)){_t.delete(t),wt.delete(t);const n=t.ownerDocument.defaultView;n&&At(n).unobserve(t)}}(t,0,n)}(this.ft,this.vt))}vt({blockSize:t,inlineSize:n}){const i=n>0&&t>0;if(i===this.dt)return;this.dt=i;const e=this.ft;i||e.pause()}}(t),this.yt=null}init(){}isLayoutSupported(t){return this.constructor.layoutSizeDefined?function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)||"container"==t:super.isLayoutSupported(t)}buildCallback(){const t=this.constructor;this.observer=new MutationObserver((t=>this.bt(t)));const n=t.props,i=gi(n,wi)?hi:null,e=gi(n,Ai)?di:null,o=t.usesTemplate?vi:null;this.observer.observe(this.element,A(A(A({attributes:!0},i),e),o)),this.yt=gi(n,_i)?new class{constructor(t,n){this.gt=t,this._t=n,this.wt={},this.At=null}start(){this.At=this.wt,this.wt={}}resolveMatchQuery(t){return"1"===this.Pt(t,vt,"1")}resolveListQuery(t){return this.Pt(t,pt,"")}complete(){for(const t in this.At)t in this.wt||mt(this.At[t],this._t,!1);this.At=null}dispose(){for(const t in this.wt)mt(this.wt[t],this._t,!1);this.wt={}}Pt(t,n,i){if(!t.trim())return i;let e=this.wt[t]||this.At[t];return e||(e=n(this.gt,t),mt(e,this._t,!0)),this.wt[t]=e,function(t){for(let n=0;n<t.length;n++){const{query:i,value:e}=t[n];if(!i||i.matches)return e}return""}(e)}}(this.win,(()=>this.kt())):null;const r=t.staticProps,s=this.init();Object.assign(this.q,r,s),this.checkPropsPostMutations(),Q(this.element,[],(()=>()=>{this.ct=!1,this.et&&En(null,this.et)})),Q(this.element,[xn,Nn,Un],((t,n,i)=>{this.Z.renderable=t,this.Z.playable=n,this.Z.loading=i,this.ct=!0,this.kt()}));const u=t.useContexts;var l;return 0!=u.length&&Q(this.element,u,((...t)=>{this.it=t,this.kt()})),this.rt=new ot,this.kt(),t.loadable&&(null===(l=this.setReadyState)||void 0===l||l.call(this,"loading")),this.tt(),this.rt.promise}ensureLoaded(){this.constructor.loadable&&(this.mutateProps(f({"loading":"eager"})),this.B=!0)}mountCallback(){tt(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.B=!1)}unmountCallback(){var t;tt(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.H(!1),null===(t=this.yt)||void 0===t||t.dispose()}mutatedAttributesCallback(){this.et&&this.kt()}attemptChangeHeight(t){return super.attemptChangeHeight(t).catch((t=>{throw this.getOverflowElement&&!this.getOverflowElement()&&console.warn("[overflow] element not found. Provide one to enable resizing to full contents.",this.element),t}))}mutateProps(t){Object.assign(this.q,t),this.kt()}api(){return v(this.G)}registerApiAction(t,n,i=2){var e;null===(e=this.registerAction)||void 0===e||e.call(this,t,(t=>n(this.api(),t)),i)}mutationObserverCallback(t){}checkPropsPostMutations(){}updatePropsForRendering(t){}isReady(t){return!0}bt(t){const n=this.constructor;this.mutationObserverCallback(t);const i=t.some((t=>function(t,n){const{type:i}=n;if("attributes"==i){if(t.usesTemplate&&"template"==n.attributeName)return!0;const i=t.props;for(const t in i){const r=i[t];if(n.attributeName==r.attr||r.attrs&&r.attrs.includes(v(n.attributeName))||(e=n.attributeName,o=r.attrPrefix,null!==e&&void 0!==o&&e.startsWith(o)&&e!==o))return!0}return!1}var e,o;return"childList"==i&&(Mi(n.addedNodes)||Mi(n.removedNodes))}(n,t)));i&&(this.checkPropsPostMutations(),this.kt())}kt(){this.ot||(this.ot=!0,this.mutateElement(this.st))}tt(){const{G:t}=this,n=null==t?void 0:t.readyState;n&&n!==this.element.readyState&&this.F(n)}F(t,n){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,t,n),this.constructor.unloadOnPause&&this.H("complete"==t),this.B&&(this.B=!1,this.mutateProps({"loading":"auto"}))}handleOnLoad(){var t,n,i;null===(t=this.toggleLoading)||void 0===t||t.call(this,!1),null===(n=this.toggleFallback)||void 0===n||n.call(this,!1),null===(i=this.togglePlaceholder)||void 0===i||i.call(this,!1)}handleOnLoading(){var t;null===(t=this.toggleLoading)||void 0===t||t.call(this,!0)}handleOnError(){var t,n,i,e,o;null===(t=this.toggleLoading)||void 0===t||t.call(this,!1),null!==(n=this.getFallback)&&void 0!==n&&n.call(this)?(null===(i=this.toggleFallback)||void 0===i||i.call(this,!0),null===(e=this.togglePlaceholder)||void 0===e||e.call(this,!1)):null===(o=this.togglePlaceholder)||void 0===o||o.call(this,!0)}ut(){if(!this.ct)return;const t=this.constructor,n=t.usesShadowDom,i=n?null:t.lightDomTag,e=t.detached;if(!this.et){const d=this.win.document;if(n){v(!e);let{shadowRoot:n}=this.element,i=n&&(h=n,st("c"),ut(h,"> c"));if(i)this.lt=!0;else{var o,r,s,u,l,c;n=this.element.attachShadow({mode:"open",delegatesFocus:t.delegatesFocus});const e=t.shadowCss;e&&function(t,n,i){const e=t.ownerDocument,o=e.defaultView;if(void 0!==t.adoptedStyleSheets&&void 0!==o.CSSStyleSheet.prototype.replaceSync){const e=o.__AMP_SHADOW_CSS||(o.__AMP_SHADOW_CSS={});let r=e[n];r||(r=new o.CSSStyleSheet,r.replaceSync(i),e[n]=r),t.adoptedStyleSheets=t.adoptedStyleSheets.concat(r)}else{const o=e.createElement("style");o.setAttribute("data-name",n),o.textContent=i,t.appendChild(o)}}(n,this.element.tagName,e),i=ht(d,"c",pi),n.appendChild(i);const a=ht(d,"slot",mi);n.appendChild(a),null===(o=this.getPlaceholder)||void 0===o||null===(r=o.call(this))||void 0===r||r.setAttribute("slot","i-amphtml-svc"),null===(s=this.getFallback)||void 0===s||null===(u=s.call(this))||void 0===u||u.setAttribute("slot","i-amphtml-svc"),null===(l=this.getOverflowElement)||void 0===l||null===(c=l.call(this))||void 0===c||c.setAttribute("slot","i-amphtml-svc")}this.et=i,function(t,n){q.get(t).setParent(n)}(n,this.element),function(t,n,i,e=0){q.get(t).addGroup(n,i,e)}(this.element,"unslotted",bi,-1),a=this.element,f=xn,q.get(a).group("unslotted").values.set(f,this,!1)}else if(i){this.et=this.element;const n=ct(this.et,"i-amphtml-rendered")||ht(d,i,yi);n.__AMP_RENDERED=!0,t.layoutSizeDefined&&n.classList.add("i-amphtml-fill-content"),this.et.appendChild(n)}else{const t=d.createElement("i-amphtml-c");this.et=t,t.classList.add("i-amphtml-fill-content"),e||this.element.appendChild(t)}}var a,f,h;const d=t.useContexts,p=this.it;if(0!=d.length&&null==p)return;const m=oi(t,this.element,this.J,this.q,this.yt);if(this.updatePropsForRendering(m),!this.isReady(m))return;let y=Sn(t.Component,m);for(let t=0;t<d.length;t++){const n=d[t].type,i=p[t];i&&(y=Sn(n.Provider,{value:i},y))}const b=Sn(zn,A({},this.Z),y);if(this.lt)this.lt=!1,cn(b,this.et);else{const t=i?ct(this.et,"i-amphtml-rendered"):null;t&&(t.__AMP_RENDERED=!0),En(b,this.et,t)}n||e||this.mutateElement((()=>dt(this.element,"amp:dom-update",null))),this.rt&&(this.rt.resolve(),this.rt=null)}getProp(t,n){return i=this.q,e=t,c.call(i,e)?this.q[t]:n;var i,e}getApi(){const t=this.Y;return t?Promise.resolve(t):(this.nt||(this.nt=new ot),this.nt.promise)}X(t){const n=Object.create(null),i=Object.keys(t);for(let t=0;t<i.length;t++)ki(this,n,i[t]);this.Y=n,this.nt&&(this.nt.resolve(n),this.nt=null)}K(t){}triggerEvent(t,n,i){dt(t,n,i)}pauseCallback(){if(this.constructor.unloadOnPause)this.mutateProps(f({"loading":"unload"})),this.B=!0;else{var t;const{G:n}=this;null==n||null===(t=n.pause)||void 0===t||t.call(n)}}H(t){this.at.updatePlaying(t)}};function ki(t,n,i){Object.defineProperty(n,i,{configurable:!0,get:()=>t.G[i],set(n){t.G[i]=n}})}function Mi(t){for(let n=0;n<t.length;n++){const i=t[n];if(h(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}function Ri(t,n){if(null==t)return{};var i,e,o={},r=Object.keys(t);for(e=0;e<r.length;e++)i=r[e],n.indexOf(i)>=0||(o[i]=t[i]);return o}function Si(t,n){for(var i in n)t[i]=n[i];return t}function Ei(t,n){for(var i in t)if("__source"!==i&&!(i in n))return!0;for(var e in n)if("__source"!==e&&t[e]!==n[e])return!0;return!1}function Ti(t){this.props=t}Pi.Component=function(){v(!1)},Pi.staticProps=void 0,Pi.useContexts=[],Pi.loadable=!1,Pi.unloadOnPause=!1,Pi.layoutSizeDefined=!1,Pi.lightDomTag="",Pi.usesTemplate=!1,Pi.shadowCss=null,Pi.usesShadowDom=!1,Pi.detached=!1,Pi.delegatesFocus=!1,Pi.props={},(Ti.prototype=new qt).isPureReactComponent=!0,Ti.prototype.shouldComponentUpdate=function(t,n){return Ei(this.props,t)||Ei(this.state,n)};var Ii=Rt.__b;Rt.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Ii&&Ii(t)};var Oi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Vi=Rt.__e;Rt.__e=function(t,n,i){if(t.then)for(var e,o=n;o=o.__;)if((e=o.__c)&&e.__c)return null==n.__e&&(n.__e=i.__e,n.__k=i.__k),e.__c(t,n);Vi(t,n,i)};var ji=Rt.unmount;function Ci(){this.__u=0,this.t=null,this.__b=null}function zi(t){var n=t.__.__c;return n&&n.__e&&n.__e(t)}function $i(){this.u=null,this.o=null}Rt.unmount=function(t){var n=t.__c;n&&n.__R&&n.__R(),n&&!0===t.__h&&(t.type=null),ji&&ji(t)},(Ci.prototype=new qt).__c=function(t,n){var i=n.__c,e=this;null==e.t&&(e.t=[]),e.t.push(i);var o=zi(e.__v),r=!1,s=function(){r||(r=!0,i.__R=null,o?o(u):u())};i.__R=s;var u=function(){if(!--e.__u){if(e.state.__e){var t=e.state.__e;e.__v.__k[0]=function t(n,i,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map((function(n){return t(n,i,e)})),n.__c&&n.__c.__P===i&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}(t,t.__c.__P,t.__c.__O)}var n;for(e.setState({__e:e.__b=null});n=e.t.pop();)n.forceUpdate()}},l=!0===n.__h;e.__u++||l||e.setState({__e:e.__b=e.__v.__k[0]}),t.then(s,s)},Ci.prototype.componentWillUnmount=function(){this.t=[]},Ci.prototype.render=function(t,n){if(this.__b){if(this.__v.__k){var i=document.createElement("div"),e=this.__v.__k[0].__c;this.__v.__k[0]=function t(n,i,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),n.__c.__H=null),null!=(n=Si({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=i),n.__c=null),n.__k=n.__k&&n.__k.map((function(n){return t(n,i,e)}))),n}(this.__b,i,e.__O=e.__P)}this.__b=null}var o=n.__e&&Lt(Wt,null,t.fallback);return o&&(o.__h=null),[Lt(Wt,null,n.__e?null:t.children),o]};var xi=function(t,n,i){if(++i[1]===i[0]&&t.o.delete(n),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(i=t.u;i;){for(;i.length>3;)i.pop()();if(i[1]<i[0])break;t.u=i=i[2]}};($i.prototype=new qt).__e=function(t){var n=this,i=zi(n.__v),e=n.o.get(t);return e[0]++,function(o){var r=function(){n.props.revealOrder?(e.push(o),xi(n,t,e)):o()};i?i(r):r()}},$i.prototype.render=function(t){this.u=null,this.o=new Map;var n=Qt(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&n.reverse();for(var i=n.length;i--;)this.o.set(n[i],this.u=[1,0,this.u]);return t.children},$i.prototype.componentDidUpdate=$i.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(n,i){xi(t,i,n)}))};var Ni="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ui=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Li=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};qt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(qt.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}));var Di=Rt.event;function Wi(){}function qi(){return this.cancelBubble}function Fi(){return this.defaultPrevented}Rt.event=function(t){return Di&&(t=Di(t)),t.persist=Wi,t.isPropagationStopped=qi,t.isDefaultPrevented=Fi,t.nativeEvent=t};var Hi={configurable:!0,get:function(){return this.class}},Zi=Rt.vnode;Rt.vnode=function(t){var n=t.type,i=t.props,e=i;if("string"==typeof n){for(var o in e={},i){var r=i[o];"value"===o&&"defaultValue"in i&&null==r||("defaultValue"===o&&"value"in i&&null==i.value?o="value":"download"===o&&!0===r?r="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+n)&&!Li(i.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():Ui.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===r&&(r=void 0),e[o]=r)}"select"==n&&e.multiple&&Array.isArray(e.value)&&(e.value=Qt(i.children).forEach((function(t){t.props.selected=-1!=e.value.indexOf(t.props.value)}))),"select"==n&&null!=e.defaultValue&&(e.value=Qt(i.children).forEach((function(t){t.props.selected=e.multiple?-1!=e.defaultValue.indexOf(t.props.value):e.defaultValue==t.props.value}))),t.props=e}n&&i.class!=i.className&&(Hi.enumerable="className"in i,null!=i.className&&(e.class=i.className),Object.defineProperty(e,"className",Hi)),t.$$typeof=Ni,Zi&&Zi(t)};var Bi=Rt.__r;function Yi(t){return function(t){function n(n,i){var e=Si({},n);return delete e.ref,t(e,(i=n.ref||i)&&("object"!=typeof i||"current"in i)?i:null)}return n.$$typeof=Oi,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(t.displayName||t.name)+")",n}(t)}Rt.__r=function(t){Bi&&Bi(t),t.__c};var Gi=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],Qi=[null,"paint","layout","content","size","size paint","size layout","strict"],Ji={"position":"relative","width":"100%","height":"100%"};Yi((function(t,n){let{as:i="div",children:e,"class":o,contentAs:r="div",contentClassName:s,contentProps:u,contentRef:l,contentStyle:c,layout:a=!1,paint:f=!1,size:h=!1,"style":d,wrapperClassName:v,wrapperStyle:p}=t;const m=(h?4:0)+(a?2:0)+(f?1:0);return Sn(i,A(A({},Ri(t,Gi)),{},{ref:n,class:`${o||""} ${v||""}`.trim()||null,style:A(A(A({},d),p),{},{contain:Qi[m]})}),Sn(r,A(A({},u),{},{ref:l,class:s,style:A(A({},h&&Ji),{},{"overflow":f?"hidden":"visible"},c)}),e))}));var Ki=["as","children","class","style","wrapperClassName","wrapperStyle"],Xi=Yi((function(t,n){let{as:i="div",children:e,"class":o,"style":r,wrapperClassName:s,wrapperStyle:u}=t;return Sn(i,A(A({},Ri(t,Ki)),{},{ref:n,class:`${o||""} ${s||""}`.trim()||null,style:A(A({},r),u)}),e)}));function te(t){return ne[t]}new WeakMap,new WeakMap;var ne={"de":["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],"en":["Years","Months","Days","Hours","Minutes","Seconds"],"es":["años","meses","días","horas","minutos","segundos"],"fr":["ans","mois","jours","heures","minutes","secondes"],"id":["tahun","bulan","hari","jam","menit","detik"],"it":["anni","mesi","giorni","ore","minuti","secondi"],"ja":["年","ヶ月","日","時間","分","秒"],"ko":["년","달","일","시간","분","초"],"nl":["jaar","maanden","dagen","uur","minuten","seconden"],"pt":["anos","meses","dias","horas","minutos","segundos"],"ru":["год","месяц","день","час","минута","секунда"],"th":["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],"tr":["yıl","ay","gün","saat","dakika","saniye"],"vi":["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]},ie=["datetime","whenEnded","locale","biggestUnit","countUp","render"],ee={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},oe="en",re="stop",se="DAYS",ue=!1,le=t=>`${t.days} ${t.dd}, ${t.hours} ${t.hh}, ${t.minutes} ${t.mm}, ${t.seconds} ${t.ss}`;function ce(t){return t<-9||t>9?String(t):t>=-9&&t<0?"-0"+-t:"0"+t}function ae(t){return t<0?t+1:t}var fe=class extends Pi{};function he(){{const t=document.createElement("style");t.textContent="bento-date-countdown{display:block;overflow:hidden;position:relative}bento-date-countdown:not(.i-amphtml-built){color:transparent!important}bento-date-countdown:not(.i-amphtml-built)>:not([placeholder]):not([slot=i-amphtml-svc]){display:none;content-visibility:hidden}\n/*# sourceURL=/extensions/amp-date-countdown/1.0/amp-date-countdown.css*/",document.head.appendChild(t)}customElements.define("bento-date-countdown",fe.CustomElement(fe))}fe.Component=function(t){let{datetime:n,whenEnded:i=re,locale:e=oe,biggestUnit:o=se,countUp:r=ue,render:s=le}=t,u=Ri(t,ie);!function(){const{notify:t}=$n();Vn((()=>{t&&t()}))}();const{playable:l}=$n(),c=jn((()=>b(n)),[n]),a=jn((()=>function(t){var n;void 0===te(t)&&(n=`Invalid locale ${t}, defaulting to ${oe}. DateCountdown`,console.warn(n),t=oe);const i=te(t);return f({"years":i[0],"months":i[1],"days":i[2],"hours":i[3],"minutes":i[4],"seconds":i[5]})}(e)),[e]),[h,d]=Tn(c-Date.now()+1e3),v=jn((()=>function(t,n,i,e){return A(A({},function(t,n,i){i&&(t*=-1);const e=ee[n]==ee.DAYS?ae(Math.floor(t/864e5)):0,o=ee[n]==ee.HOURS?ae(Math.floor(t/36e5)):ee[n]<ee.HOURS?ae(Math.floor(t%864e5/36e5)):0,r=ee[n]==ee.MINUTES?ae(Math.floor(t/6e4)):ee[n]<ee.MINUTES?ae(Math.floor(t%36e5/6e4)):0,s=ae(ee[n]==ee.SECONDS?Math.floor(t/1e3):Math.floor(t%6e4/1e3));return f({"d":e,"dd":ce(e),"h":o,"hh":ce(o),"m":r,"mm":ce(r),"s":s,"ss":ce(s)})}(t,n,e)),i)}(h,o,a,r)),[h,o,a,r]),p=In(null);On((()=>{if(!l||!p.current)return;const t=p.current.ownerDocument.defaultView,n=t.setInterval((()=>{const e=c-Date.now()+1e3;d(e),i===re&&e<1e3&&t.clearInterval(n)}),1e3);return()=>t.clearInterval(n)}),[l,c,i]);const m=function(t,n){const[i,e]=Tn(null);return Vn((()=>{const i=t&&t(n)||null;if(i&&"function"==typeof i.then){let t=!1;return i.then((n=>{t||e(n)})),()=>{t=!0}}e(i)}),[t,n]),i}(s,v),y=m&&"object"==typeof m&&"__html"in m;return Sn(Xi,A(A({},u),{},{ref:p,dangerouslySetInnerHTML:y?m:null}),y?null:m)},fe.layoutSizeDefined=!0,fe.lightDomTag="div",fe.usesTemplate=!0,fe.props={"datetime":{attrs:["end-date","timeleft-ms","timestamp-ms","timestamp-seconds","offset-seconds"],parseAttrs:function(t){return function(t,n){const i=m(function(t,n){const i=n.map((t=>v(g[t])));for(let e=0;e<n.length;++e){const o=t.getAttribute(n[e]);if(o)return i[e](o)}return null}(t,n),"One of attributes [%s] is required",n.join(", "));return i+1e3*(Number(t.getAttribute("offset-seconds"))||0)}(t,["end-date","timeleft-ms","timestamp-ms","timestamp-seconds"])}},"whenEnded":{attr:"when-ended",type:"string"},"locale":{attr:"locale",type:"string"},"biggestUnit":{attr:"biggest-unit",type:"string"},"countUp":{attr:"count-up",type:"boolean"}};export{he as defineElement};
var{isArray:t}=Array;function n(n){return t(n)?n:[n]}function i(t,n){const i=[];let e=0;for(let r=0;r<t.length;r++){const o=t[r];n(o,r,t)?i.push(o):(e<r&&(t[e]=o),e++)}return e<t.length&&(t.length=e),i}function e(t,n){return t.indexOf(n)<0&&(t.push(n),!0)}function r(t,n){const i=t.indexOf(n);return-1!=i&&(t.splice(i,1),!0)}function o(t,n){return n.toUpperCase()}function s(t){return t.replace(/-([a-z])/g,o)}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);i<n;i++)e[i]=t[i];return e}function l(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return u(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var{hasOwnProperty:c,toString:a}=Object.prototype;function f(t){return t||{}}function h(t){return 1==(null==t?void 0:t.nodeType)}function d(t){return h(t)?(t=t).tagName.toLowerCase()+(t.id?`#${t.id}`:""):t}function v(t,n,i,e,r,o,s,u,l,c,a){return t}function p(t,n){return t}function m(t,n,e,r,o,s,u,l,c,a,f){return function(t,n,e="Assertion failed",r){var o,s;if(n)return n;t&&-1==e.indexOf(t)&&(e+=t);let u=3;const l=e.split("%s");let c=l.shift();const a=[c];for(;l.length;){const t=arguments[u++],n=l.shift();c+=d(t)+n,a.push(t,n.trim())}const f=new Error(c);throw f.messageArray=i(a,(t=>""!==t)),null===(o=(s=self).__AMP_REPORT_ERROR)||void 0===o||o.call(s,f),f}("​​​",t,n,e,r,o,s,u,l,c,a,f)}function y(t){if(!t)return null;if("now"===t.toLowerCase())return Date.now();const n=Date.parse(t);return isNaN(n)?null:n}function b(t){return t?"number"==typeof t?t:"string"==typeof t?y(t):(t=t).getTime():null}var g={"datetime":t=>m(y(t),"Invalid date: %s",t),"end-date":t=>m(y(t),"Invalid date: %s",t),"timeleft-ms":t=>Date.now()+Number(t),"timestamp-ms":t=>Number(t),"timestamp-seconds":t=>1e3*Number(t)};function _(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function w(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,e)}return i}function A(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?w(Object(i),!0).forEach((function(n){_(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}var P=["auto","lazy","eager","unload"],k={auto:0,lazy:1,eager:2,unload:3};function M(t,n){const i=k[t]||0,e=k[n]||0,r=Math.max(i,e);return P[r]}function R(){}function S(t,n=null){let i=!1;const e=()=>{i=!1,t()};return t=>{i||(i=!0,(t||n)(e))}}function E(t){const n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;const{message:i,stack:e}=t,r=new Error(i);for(const n in t)r[n]=t[n];return r.stack=e,r}function T(t){let n=null,i="";for(var e,r=l(arguments,!0);!(e=r()).done;){const t=e.value;t instanceof Error&&!n?n=E(t):(i&&(i+=" "),i+=t)}return n?i&&(n.message=i+": "+n.message):n=new Error(i),n}function I(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function O(t){const n=T.apply(null,arguments);setTimeout((()=>{throw I(n),n}))}function V(t,...n){try{return t.apply(null,n)}catch(t){O(t)}}function j(t,n,i,e=!0,r=!0){if(r){const r=n(t,i,e);r&&j(t,n,i,r,!1)}else if(t.children)for(var o,s=l(t.children,!0);!(o=s()).done;)j(o.value,n,i,e,!0)}R.prototype.key,R.prototype.type,R.prototype.deps,R.prototype.recursive,R.prototype.compute,R.prototype.defaultValue;var C=[],z=()=>{};function $(){}function x(){}function N(t,n){return t.values.scan(n)}function U(t,n,i){return t.values.scanAll(i)}function L(t,n){return t.values.has(n)}function D(t){return!!t.recursive}function W(t){return void 0!==t}$.prototype.values,$.prototype.setters,x.prototype.prop,x.prototype.subscribers,x.prototype.value,x.prototype.pending,x.prototype.counter,x.prototype.depValues,x.prototype.parentValue,x.prototype.parentContextNode,x.prototype.ping,x.prototype.pingDep,x.prototype.pingParent;var q=class{static get(t){let n=t.__AMP_NODE;return n||(n=new q(t,null),t.__AMP_NODE=n),n}static closest(t,n=!0){let i=t;for(;i;){if(i!=t||n){if(i.__AMP_NODE)return i.__AMP_NODE;const{nodeType:t}=i;if(9==t||11==t||1==t&&p(i).tagName.startsWith("AMP-"))return q.get(i)}i=i.__AMP_ASSIGNED_SLOT||i.assignedSlot||i.parentNode}return null}static assignSlot(t,n){t.__AMP_ASSIGNED_SLOT!=n&&(t.__AMP_ASSIGNED_SLOT=n,F(t))}static unassignSlot(t,n){t.__AMP_ASSIGNED_SLOT==n&&(t.__AMP_ASSIGNED_SLOT=void 0,F(t))}static rediscoverChildren(t){var n;const i=t.__AMP_NODE;null==i||null===(n=i.children)||void 0===n||n.forEach(H)}constructor(t,n){this.node=t,this.name=n,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new class{constructor(t){this.i=t,this.h=null,this.v=null,this.p=S(this.p.bind(this),setTimeout)}set(t,n,i){v(n),v(void 0!==i);const{key:e}=t,r=this.h||(this.h=new Map);let o=r.get(e);o||(o={values:[],setters:[]},r.set(e,o));const s=o.setters.indexOf(n),u=-1==s||o.values[s]!==i;-1==s?(o.setters.push(n),o.values.push(i)):u&&(o.values[s]=i),u&&(this.ping(t,!1),D(t)&&j(this.i,N,t,!0,!1))}remove(t,n){v(n);const{key:i}=t,e=this.h,r=null==e?void 0:e.get(i);if(r){const o=r.setters.indexOf(n);-1!=o&&(r.setters.splice(o,1),r.values.splice(o,1),0==r.setters.length&&e.delete(i),j(this.i,N,t))}}has(t){var n;return!(null===(n=this.h)||void 0===n||!n.has(t.key))}subscribe(t,n){const i=this.m(t);if(!e(i.subscribers,n))return;const r=i.value;W(r)&&this.g()&&n(r)}unsubscribe(t,n){var i;const e=null===(i=this.v)||void 0===i?void 0:i.get(t.key);e&&r(e.subscribers,n)&&this._(e)}ping(t,n){var i,e;null===(i=this.v)||void 0===i||null===(e=i.get(t.key))||void 0===e||e.ping(n)}parentUpdated(){this.g()&&j(this.i,U,void 0,C)}rootUpdated(){const t=this.v;t&&(this.g()?t.forEach((t=>{const{prop:n}=t;this.ping(n,!0)})):t.forEach((t=>{const{prop:n}=t;D(n)&&this.A(t,null)})))}scan(t){return this.ping(t,!0),!!D(t)&&!this.has(t)}scanAll(t){let n=null;const i=this.v;return i&&i.forEach((i=>{const{prop:e}=i,{key:r}=e;-1==(n||t).indexOf(r)&&(this.ping(e,!0),this.i.children&&this.has(e)&&(n||(n=t.slice(0)),n.push(r)))})),n||t}g(){return!!this.i.root}m(t){const{deps:n,key:i}=t,e=this.v||(this.v=new Map);let r=e.get(i);return r||(r={prop:t,subscribers:[],value:void 0,pending:0,counter:0,depValues:n.length>0?n.map(z):C,parentValue:void 0,parentContextNode:null,ping:t=>{if(this.g()){const n=t?2:1;r.pending=Math.max(r.pending,n),this.p()}},pingDep:n.length>0?n.map(((t,n)=>t=>{r.depValues[n]=t,r.ping()})):C,pingParent:D(t)?t=>{r.parentValue=t,r.ping()}:null},e.set(i,r),n.forEach(((t,n)=>this.subscribe(t,r.pingDep[n]))),r.ping(!1)),r}_(t){if(t.subscribers.length>0)return;const{pingDep:n,prop:i}=t,{deps:e,key:r}=i;this.v.delete(r),this.A(t,null),e.length>0&&e.forEach(((t,i)=>{this.unsubscribe(t,n[i])}))}p(){if(!this.g())return;const t=this.v;if(!t)return;let n;t.forEach((t=>{t.counter=0}));do{n=0,t.forEach((t=>{if(0!=t.pending){const{key:i}=t.prop;if(t.counter++,t.counter>5)return O(`cyclical prop: ${i}`),void(t.pending=0);n++,this.P(t)}}))}while(n>0)}P(t){const n=2==t.pending;let i;try{i=this.k(t,n)}catch(t){O(t)}t.pending=0,this.M(t,i)}M(t,n){const{prop:i,value:e}=t,{key:r}=i,o=this.v;if(e===n||t!==(null==o?void 0:o.get(r))||!this.g())return;t.value=n;const{subscribers:s}=t;for(var u,c=l(s,!0);!(u=c()).done;)(0,u.value)(n)}k(t,n){var i,e;v(this.g());const{depValues:r,prop:o}=t,{compute:s,defaultValue:u,key:l}=o,c=null===(i=this.h)||void 0===i||null===(e=i.get(l))||void 0===e?void 0:e.values,a=function(t,n){const{compute:i,recursive:e}=t;return"function"==typeof e?!n||e(n):!(e&&n&&!i)&&e}(o,c);if(n||a!=Boolean(t.parentContextNode)){const n=a?function(t,n,i,e=!0){for(let r=e?t:t.parent;r;r=r.parent)if(n(r,i))return r;return null}(this.i,L,o,!1):null;this.A(t,n)}const f=W(t.parentValue)?t.parentValue:a&&!t.parentContextNode?u:void 0;let h;if(r.every(W)&&(!a||W(f))){const{node:t}=this.i;c&&!s?h=c[0]:D(o)?c||r.length>0?h=function(t,n,i,e,r){switch(r.length){case 0:return t(n,i,e);case 1:return t(n,i,e,r[0]);case 2:return t(n,i,e,r[0],r[1]);case 3:return t(n,i,e,r[0],r[1],r[2]);default:return t.apply(null,[n,i,e].concat(r))}}(s,t,c||C,f,r):W(f)&&(h=f):s&&(h=function(t,n,i,e){switch(e.length){case 0:return t(n,i);case 1:return t(n,i,e[0]);case 2:return t(n,i,e[0],e[1]);case 3:return t(n,i,e[0],e[1],e[2]);default:return t.apply(null,[n,i].concat(e))}}(s,t,c||C,r))}return h}A(t,n){const{parentContextNode:i,pingParent:e,prop:r}=t;n!=i&&(t.parentContextNode=n,t.parentValue=void 0,i&&i.values.unsubscribe(r,v(e)),n&&n.values.subscribe(r,v(e)))}}(this),this.R=null,this.S=!1,this.T=S(this.I.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(t=>{var n,i;const e=t.target;e.assignedNodes().forEach(F),null===(n=q.closest(e))||void 0===n||null===(i=n.children)||void 0===i||i.forEach(H)})),this.discover()}discover(){this.isDiscoverable()?this.T():this.name&&this.children&&this.children.forEach(H)}isDiscoverable(){return!this.isRoot&&!this.S}setParent(t){const n=null!=t&&t.nodeType?q.get(t):t;this.O(n,null!=t)}setIsRoot(t){var n,i;this.isRoot=t;const e=t?this:null!==(n=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==n?n:null;this.updateRoot(e)}updateRoot(t){v(!t||t.isRoot);const n=this.root;var i,e;t!=n&&(this.root=t,this.values.rootUpdated(),null===(i=this.R)||void 0===i||i.forEach((t=>t.rootUpdated())),null===(e=this.children)||void 0===e||e.forEach((n=>n.updateRoot(t))))}addGroup(t,n,i){const e=this.groups||(this.groups=new Map),{children:r,node:o}=this,s=new q(o,t);return e.set(t,{cn:s,match:n,weight:i}),s.setParent(this),null==r||r.forEach(H),s}group(t){var n,i;return(null===(n=this.groups)||void 0===n||null===(i=n.get(t))||void 0===i?void 0:i.cn)||null}findGroup(t){const{groups:n}=this;if(!n)return null;let i=null,e=Number.NEGATIVE_INFINITY;return n.forEach((({cn:n,match:r,weight:o})=>{r(t,this.node)&&o>e&&(i=n,e=o)})),i}subscribe(t,n,i,e){const r=this.R||(this.R=new Map);let o=r.get(t);o||(o=new n(this,i,e),r.set(t,o))}unsubscribe(t){const n=this.R,i=null==n?void 0:n.get(t);i&&(i.dispose(),n.delete(t))}I(){if(!this.isDiscoverable())return;const t=q.closest(this.node,!1),n=(null==t?void 0:t.findGroup(this.node))||t;this.O(n,!1)}O(t,n){var i;this.S=n;const o=this.parent;if(t!=o){if(this.parent=t,null!=o&&o.children&&r(v(o.children),this),t){const n=t.children||(t.children=[]);e(n,this);for(var s,u=l(n,!0);!(s=u()).done;){const t=s.value;t!=this&&t.isDiscoverable()&&t.discover()}}this.values.parentUpdated()}this.updateRoot(null!==(i=null==t?void 0:t.root)&&void 0!==i?i:null)}};function F(t){!function(t,n,i=!0){const e=q.closest(t,i);if(e)if(e.node==t)n(e);else if(e.children)for(var r,o=l(e.children,!0);!(r=o()).done;){const i=r.value;t.contains(i.node)&&n(i)}}(t,H)}function H(t){t.discover()}var Z=[];function B(t,n){const i=A({key:t,type:null,deps:Z,recursive:!1,compute:null,defaultValue:void 0},n);return v(0==i.deps.length||i.compute),i}var Y=[],G=()=>{};function Q(t,i,e){i=n(i);const r=e;q.get(t).subscribe(r,K,e,i)}var J,K=class{constructor(t,n,i){if(this.contextNode=t,this.V=n,this.j=i,this.C=i.length>0?i.map(G):Y,this.$=i.length>0?i.map(((t,n)=>t=>{this.C[n]=t,this.N()})):Y,this.U=!1,this.L=null,this.N=S(this.N.bind(this),setTimeout),i.length>0){const{values:t}=this.contextNode;i.forEach(((n,i)=>t.subscribe(n,this.$[i])))}this.g()&&this.N()}dispose(){if(this.j.length>0){const{values:t}=this.contextNode;this.j.forEach(((n,i)=>t.unsubscribe(n,this.$[i])))}this.D()}rootUpdated(){const t=this.g();this.D(),t&&this.N()}g(){return!!this.contextNode.root}N(){this.g()&&(this.C.every(X)?(this.U=!0,this.W()):this.U&&(this.U=!1,this.D()))}W(){this.L&&(V(this.L),this.L=null);const t=this.V;this.L=function(t,n){switch(n.length){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);default:return t.apply(null,n)}}(t,this.C)}D(){this.L&&(V(this.L),this.L=null)}};function X(t){return void 0!==t}function tt(t){q.get(t).discover()}function nt(t,n,i,e){q.get(t).values.set(n,i,e)}function it(t,n,i){q.get(t).values.remove(n,i)}function et(){return J||(J=Promise.resolve(void 0))}var rt=class{constructor(){this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n}))}};function ot(t){return(t.ownerDocument||t).defaultView}function st(t){v(/^[\w-]+$/.test(t))}function ut(t,n){return t.querySelector(function(t,n){return t.replace(/^|,/g,"$&:scope ")}(n))}function lt(t,n){const i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!i&&i.call(t,n)}function ct(t,n){return st(n),ut(t,`> [${n}]`)}function at(t){return function(t,n){const i=[];for(let n=t.firstChild;n;n=n.nextSibling)!(function(t){let n;return"string"==typeof t?n=t:t.nodeType===Node.ELEMENT_NODE&&(n=p(t).tagName),!!n&&n.toLowerCase().startsWith("i-")}(e=n)||e.nodeType===Node.ELEMENT_NODE&&(p(e),e.hasAttribute("placeholder")||e.hasAttribute("fallback")||e.hasAttribute("overflow")))&&i.push(n);var e;return i}(t)}var ft={bubbles:!0,cancelable:!0};function ht(t,n,i){return function(t,n){for(const i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}function dt(t,n,i,e){const r=i||{},o=t.ownerDocument.createEvent("Event");o.data=r;const{bubbles:s,cancelable:u}=e||ft;o.initEvent(n,s,u),t.dispatchEvent(o)}function vt(t,n){return[{query:t.matchMedia(n),value:"1"},{query:null,value:""}]}function pt(t,n){return n.split(",").map((n=>{if(0==(n=n.replace(/\s+/g," ").trim()).length)return;let i,e,r;if(")"==n.charAt(n.length-1)){let t=1;for(r=n.length-2;r>=0;r--){const i=n.charAt(r);if("("==i?t--:")"==i&&t++,0==t)break}const i=r-1;if(r>0)for(r--;r>=0;r--){const t=n.charAt(r);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(r>=i)return null}else for(r=n.length-2;r>=0;r--){const t=n.charAt(r);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return r>=0?(i=n.substring(0,r+1).trim(),e=n.substring(r+1).trim()):(e=n,i=void 0),e?{query:i?t.matchMedia(i):null,value:e}:null})).filter(Boolean)}function mt(t,n,i){for(let e=0;e<t.length;e++){const{query:r}=t[e];r&&(void 0!==r.onchange?r.onchange=i?n:null:i?r.addListener(n):r.removeListener(n))}}var yt={"getPropertyPriority":()=>"","getPropertyValue":()=>""},bt=/vertical/,gt=new WeakMap,_t=new WeakMap,wt=new WeakMap;function At(t){let n=gt.get(t);return n||(n=new t.ResizeObserver(Pt),gt.set(t,n)),n}function Pt(t){const n=new Set;for(let i=t.length-1;i>=0;i--){const e=t[i],{target:r}=e;if(n.has(r))continue;n.add(r);const o=_t.get(r);if(o){wt.set(r,e);for(let t=0;t<o.length;t++){const{callback:n,type:i}=o[t];kt(i,n,e)}}}}function kt(t,n,i){if(0==t){const{contentRect:t}=i,{height:e,width:r}=t;V(n,{width:r,height:e})}else if(1==t){const{borderBoxSize:t}=i;let e;if(t)e=t.length>0?t[0]:{inlineSize:0,blockSize:0};else{const{target:t}=i,n=ot(t),r=bt.test(function(t,n){return t.getComputedStyle(n)||yt}(n,t)["writing-mode"]),{offsetHeight:o,offsetWidth:s}=t;let u,l;r?(l=s,u=o):(u=s,l=o),e={inlineSize:u,blockSize:l}}V(n,e)}}var Mt,Rt,St,Et,Tt,It,Ot,Vt,jt,Ct,zt={},$t=[],xt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Nt(t,n){for(var i in n)t[i]=n[i];return t}function Ut(t){var n=t.parentNode;n&&n.removeChild(t)}function Lt(t,n,i){var e,r,o,s={};for(o in n)"key"==o?e=n[o]:"ref"==o?r=n[o]:s[o]=n[o];if(arguments.length>2&&(s.children=arguments.length>3?Mt.call(arguments,2):i),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===s[o]&&(s[o]=t.defaultProps[o]);return Dt(t,s,e,r,null)}function Dt(t,n,i,e,r){var o={type:t,props:n,key:i,ref:e,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++St:r};return null==r&&null!=Rt.vnode&&Rt.vnode(o),o}function Wt(t){return t.children}function qt(t,n){this.props=t,this.context=n}function Ft(t,n){if(null==n)return t.__?Ft(t.__,t.__.__k.indexOf(t)+1):null;for(var i;n<t.__k.length;n++)if(null!=(i=t.__k[n])&&null!=i.__e)return i.__e;return"function"==typeof t.type?Ft(t):null}function Ht(t){var n,i;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(i=t.__k[n])&&null!=i.__e){t.__e=t.__c.base=i.__e;break}return Ht(t)}}function Zt(t){(!t.__d&&(t.__d=!0)&&Et.push(t)&&!Bt.__r++||It!==Rt.debounceRendering)&&((It=Rt.debounceRendering)||Tt)(Bt)}function Bt(){for(var t;Bt.__r=Et.length;)t=Et.sort((function(t,n){return t.__v.__b-n.__v.__b})),Et=[],t.some((function(t){var n,i,e,r,o,s;t.__d&&(o=(r=(n=t).__v).__e,(s=n.__P)&&(i=[],(e=Nt({},r)).__v=r.__v+1,en(s,r,e,n.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,i,null==o?Ft(r):o,r.__h),rn(i,r),r.__e!=o&&Ht(r)))}))}function Yt(t,n,i,e,r,o,s,u,l,c){var a,f,h,d,v,p,m,y=e&&e.__k||$t,b=y.length;for(i.__k=[],a=0;a<n.length;a++)if(null!=(d=i.__k[a]=null==(d=n[a])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?Dt(null,d,null,null,d):Array.isArray(d)?Dt(Wt,{children:d},null,null,null):d.__b>0?Dt(d.type,d.props,d.key,null,d.__v):d)){if(d.__=i,d.__b=i.__b+1,null===(h=y[a])||h&&d.key==h.key&&d.type===h.type)y[a]=void 0;else for(f=0;f<b;f++){if((h=y[f])&&d.key==h.key&&d.type===h.type){y[f]=void 0;break}h=null}en(t,d,h=h||zt,r,o,s,u,l,c),v=d.__e,(f=d.ref)&&h.ref!=f&&(m||(m=[]),h.ref&&m.push(h.ref,null,d),m.push(f,d.__c||v,d)),null!=v?(null==p&&(p=v),"function"==typeof d.type&&d.__k===h.__k?d.__d=l=Gt(d,l,t):l=Jt(t,d,h,y,v,l),"function"==typeof i.type&&(i.__d=l)):l&&h.__e==l&&l.parentNode!=t&&(l=Ft(h))}for(i.__e=p,a=b;a--;)null!=y[a]&&("function"==typeof i.type&&null!=y[a].__e&&y[a].__e==i.__d&&(i.__d=Ft(e,a+1)),sn(y[a],y[a]));if(m)for(a=0;a<m.length;a++)on(m[a],m[++a],m[++a])}function Gt(t,n,i){for(var e,r=t.__k,o=0;r&&o<r.length;o++)(e=r[o])&&(e.__=t,n="function"==typeof e.type?Gt(e,n,i):Jt(i,e,e,r,e.__e,n));return n}function Qt(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){Qt(t,n)})):n.push(t)),n}function Jt(t,n,i,e,r,o){var s,u,l;if(void 0!==n.__d)s=n.__d,n.__d=void 0;else if(null==i||r!=o||null==r.parentNode)t:if(null==o||o.parentNode!==t)t.appendChild(r),s=null;else{for(u=o,l=0;(u=u.nextSibling)&&l<e.length;l+=2)if(u==r)break t;t.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function Kt(t,n,i){"-"===n[0]?t.setProperty(n,i):t[n]=null==i?"":"number"!=typeof i||xt.test(n)?i:i+"px"}function Xt(t,n,i,e,r){var o;t:if("style"===n)if("string"==typeof i)t.style.cssText=i;else{if("string"==typeof e&&(t.style.cssText=e=""),e)for(n in e)i&&n in i||Kt(t.style,n,"");if(i)for(n in i)e&&i[n]===e[n]||Kt(t.style,n,i[n])}else if("o"===n[0]&&"n"===n[1])o=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in t?n.toLowerCase().slice(2):n.slice(2),t.l||(t.l={}),t.l[n+o]=i,i?e||t.addEventListener(n,o?nn:tn,o):t.removeEventListener(n,o?nn:tn,o);else if("dangerouslySetInnerHTML"!==n){if(r)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in t)try{t[n]=null==i?"":i;break t}catch(t){}"function"==typeof i||(null!=i&&(!1!==i||"a"===n[0]&&"r"===n[1])?t.setAttribute(n,i):t.removeAttribute(n))}}function tn(t){this.l[t.type+!1](Rt.event?Rt.event(t):t)}function nn(t){this.l[t.type+!0](Rt.event?Rt.event(t):t)}function en(t,n,i,e,r,o,s,u,l){var c,a,f,h,d,v,p,m,y,b,g,_=n.type;if(void 0!==n.constructor)return null;null!=i.__h&&(l=i.__h,u=n.__e=i.__e,n.__h=null,o=[u]),(c=Rt.__b)&&c(n);try{t:if("function"==typeof _){if(m=n.props,y=(c=_.contextType)&&e[c.__c],b=c?y?y.props.value:c.__:e,i.__c?p=(a=n.__c=i.__c).__=a.__E:("prototype"in _&&_.prototype.render?n.__c=a=new _(m,b):(n.__c=a=new qt(m,b),a.constructor=_,a.render=un),y&&y.sub(a),a.props=m,a.state||(a.state={}),a.context=b,a.__n=e,f=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=_.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=Nt({},a.__s)),Nt(a.__s,_.getDerivedStateFromProps(m,a.__s))),h=a.props,d=a.state,f)null==_.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==_.getDerivedStateFromProps&&m!==h&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,b),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,b)||n.__v===i.__v){a.props=m,a.state=a.__s,n.__v!==i.__v&&(a.__d=!1),a.__v=n,n.__e=i.__e,n.__k=i.__k,n.__k.forEach((function(t){t&&(t.__=n)})),a.__h.length&&s.push(a);break t}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,b),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(h,d,v)}))}a.context=b,a.props=m,a.state=a.__s,(c=Rt.__r)&&c(n),a.__d=!1,a.__v=n,a.__P=t,c=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(e=Nt(Nt({},e),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(v=a.getSnapshotBeforeUpdate(h,d)),g=null!=c&&c.type===Wt&&null==c.key?c.props.children:c,Yt(t,Array.isArray(g)?g:[g],n,i,e,r,o,s,u,l),a.base=n.__e,n.__h=null,a.__h.length&&s.push(a),p&&(a.__E=a.__=null),a.__e=!1}else null==o&&n.__v===i.__v?(n.__k=i.__k,n.__e=i.__e):n.__e=function(t,n,i,e,r,o,s,u){var l,c,a,f=i.props,h=n.props,d=n.type,v=0;if("svg"===d&&(r=!0),null!=o)for(;v<o.length;v++)if((l=o[v])&&(l===t||(d?l.localName==d:3==l.nodeType))){t=l,o[v]=null;break}if(null==t){if(null===d)return document.createTextNode(h);t=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,h.is&&h),o=null,u=!1}if(null===d)f===h||u&&t.data===h||(t.data=h);else{if(o=o&&Mt.call(t.childNodes),c=(f=i.props||zt).dangerouslySetInnerHTML,a=h.dangerouslySetInnerHTML,!u){if(null!=o)for(f={},v=0;v<t.attributes.length;v++)f[t.attributes[v].name]=t.attributes[v].value;(a||c)&&(a&&(c&&a.__html==c.__html||a.__html===t.innerHTML)||(t.innerHTML=a&&a.__html||""))}if(function(t,n,i,e,r){var o;for(o in i)"children"===o||"key"===o||o in n||Xt(t,o,null,i[o],e);for(o in n)r&&"function"!=typeof n[o]||"children"===o||"key"===o||"value"===o||"checked"===o||i[o]===n[o]||Xt(t,o,n[o],i[o],e)}(t,h,f,r,u),a)n.__k=[];else if(v=n.props.children,Yt(t,Array.isArray(v)?v:[v],n,i,e,r&&"foreignObject"!==d,o,s,o?o[0]:i.__k&&Ft(i,0),u),null!=o)for(v=o.length;v--;)null!=o[v]&&Ut(o[v]);u||("value"in h&&void 0!==(v=h.value)&&(v!==t.value||"progress"===d&&!v)&&Xt(t,"value",v,f.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==t.checked&&Xt(t,"checked",v,f.checked,!1))}return t}(i.__e,n,i,e,r,o,s,l);(c=Rt.diffed)&&c(n)}catch(t){n.__v=null,(l||null!=o)&&(n.__e=u,n.__h=!!l,o[o.indexOf(u)]=null),Rt.__e(t,n,i)}}function rn(t,n){Rt.__c&&Rt.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){Rt.__e(t,n.__v)}}))}function on(t,n,i){try{"function"==typeof t?t(n):t.current=n}catch(t){Rt.__e(t,i)}}function sn(t,n,i){var e,r;if(Rt.unmount&&Rt.unmount(t),(e=t.ref)&&(e.current&&e.current!==t.__e||on(e,null,n)),null!=(e=t.__c)){if(e.componentWillUnmount)try{e.componentWillUnmount()}catch(t){Rt.__e(t,n)}e.base=e.__P=null}if(e=t.__k)for(r=0;r<e.length;r++)e[r]&&sn(e[r],n,"function"!=typeof t.type);i||null==t.__e||Ut(t.__e),t.__e=t.__d=void 0}function un(t,n,i){return this.constructor(t,i)}function ln(t,n,i){var e,r,o;Rt.__&&Rt.__(t,n),r=(e="function"==typeof i)?null:i&&i.__k||n.__k,o=[],en(n,t=(!e&&i||n).__k=Lt(Wt,null,[t]),r||zt,zt,void 0!==n.ownerSVGElement,!e&&i?[i]:r?null:n.firstChild?Mt.call(n.childNodes):null,o,!e&&i?i:r?r.__e:n.firstChild,e),rn(o,t)}function cn(t,n){ln(t,n,cn)}Mt=$t.slice,Rt={__e:function(t,n){for(var i,e,r;n=n.__;)if((i=n.__c)&&!i.__)try{if((e=i.constructor)&&null!=e.getDerivedStateFromError&&(i.setState(e.getDerivedStateFromError(t)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t),r=i.__d),r)return i.__E=i}catch(n){t=n}throw t}},St=0,qt.prototype.setState=function(t,n){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Nt({},this.state),"function"==typeof t&&(t=t(Nt({},i),this.props)),t&&Nt(i,t),null!=t&&this.__v&&(n&&this.__h.push(n),Zt(this))},qt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Zt(this))},qt.prototype.render=Wt,Et=[],Tt="function"==typeof Promise?Promise.prototype.then.bind(et()):setTimeout,Bt.__r=0,Ot=0;var an=0,fn=[],hn=Rt.__b,dn=Rt.__r,vn=Rt.diffed,pn=Rt.__c,mn=Rt.unmount;function yn(t,n){Rt.__h&&Rt.__h(jt,t,an||n),an=0;var i=jt.__H||(jt.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function bn(t,n){var i=yn(Vt++,7);return Mn(i.__H,n)&&(i.__=t(),i.__H=n,i.__h=t),i.__}function gn(){fn.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(Pn),t.__H.__h.forEach(kn),t.__H.__h=[]}catch(n){t.__H.__h=[],Rt.__e(n,t.__v)}})),fn=[]}Rt.__b=function(t){jt=null,hn&&hn(t)},Rt.__r=function(t){dn&&dn(t),Vt=0;var n=(jt=t.__c).__H;n&&(n.__h.forEach(Pn),n.__h.forEach(kn),n.__h=[])},Rt.diffed=function(t){vn&&vn(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==fn.push(n)&&Ct===Rt.requestAnimationFrame||((Ct=Rt.requestAnimationFrame)||function(t){var n,i=function(){clearTimeout(e),An&&cancelAnimationFrame(n),setTimeout(t)},e=setTimeout(i,100);An&&(n=requestAnimationFrame(i))})(gn)),jt=null},Rt.__c=function(t,n){n.some((function(t){try{t.__h.forEach(Pn),t.__h=t.__h.filter((function(t){return!t.__||kn(t)}))}catch(i){n.some((function(t){t.__h&&(t.__h=[])})),n=[],Rt.__e(i,t.__v)}})),pn&&pn(t,n)},Rt.unmount=function(t){mn&&mn(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach(Pn)}catch(t){Rt.__e(t,n.__v)}};var _n,wn,An="function"==typeof requestAnimationFrame;function Pn(t){var n=jt;"function"==typeof t.__c&&t.__c(),jt=n}function kn(t){var n=jt;t.__c=t.__(),jt=n}function Mn(t,n){return!t||t.length!==n.length||n.some((function(n,i){return n!==t[i]}))}function Rn(t,n){return"function"==typeof n?n(t):n}function Sn(t,n,i){return Lt.apply(void 0,arguments)}function En(t,n,i){ln(t,n,i)}function Tn(t){return an=1,n=Rn,i=t,(e=yn(Vt++,2)).t=n,e.__c||(e.__=[Rn(void 0,i),function(t){var n=e.t(e.__[0],t);e.__[0]!==n&&(e.__=[n,e.__[1]],e.__c.setState({}))}],e.__c=jt),e.__;var n,i,e}function In(t){return n=t,an=5,bn((function(){return{current:n}}),[]);var n}function On(t,n){var i,e,r;i=t,e=n,r=yn(Vt++,3),!Rt.__s&&Mn(r.__H,e)&&(r.__=i,r.__H=e,jt.__H.__h.push(r))}function Vn(t,n){var i,e,r;i=t,e=n,r=yn(Vt++,4),!Rt.__s&&Mn(r.__H,e)&&(r.__=i,r.__H=e,jt.__h.push(r))}function jn(t,n){return bn(t,n)}if("undefined"!=typeof AMP&&AMP.BaseElement)_n=AMP.BaseElement;else{const t=HTMLElement;class n{constructor(t){this.element=t,this.win=ot(t)}static"CustomElement"(n){return class extends t{constructor(){super(),this.implementation=new n(this)}connectedCallback(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()}disconnectedCallback(){this.implementation.unmountCallback()}getApi(){return this.implementation.getApi()}}}mutateElement(t){et().then(t)}isLayoutSupported(){return!0}mountCallback(){}unmountCallback(){}buildCallback(){}}_n=n}function Cn(){return wn||(wn=(n={__c:t="__cC"+Ot++,__:{renderable:!0,playable:!0,loading:"auto"},Consumer:function(t,n){return t.children(n)},Provider:function(n){var i,e;return this.getChildContext||(i=[],(e={})[t]=this,this.getChildContext=function(){return e},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&i.some(Zt)},this.sub=function(t){i.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){i.splice(i.indexOf(t),1),n&&n.call(t)}}),n.children}}).Provider.__=n.Consumer.contextType=n);var t,n}function zn({children:t,loading:n="auto",notify:i,playable:e=!0,renderable:r=!0}){const o=$n(),s=r&&o.renderable,u=s&&e&&o.playable,l=M(s?"auto":"lazy",M(n,o.loading)),c=i||o.notify,a=jn((()=>({renderable:s,playable:u,loading:l,notify:c})),[s,u,l,c]);return Sn(Cn().Provider,{children:t,value:a})}function $n(){return t=Cn(),n=jt.context[t.__c],(i=yn(Vt++,9)).c=t,n?(null==i.__&&(i.__=!0,n.sub(jt)),n.props.value):t.__;var t,n,i}var xn=B("CanRender",{defaultValue:!0,recursive:t=>t.reduce(Ln),compute:(t,n,i)=>i&&n.reduce(Ln,!0)||!1}),Nn=B("CanPlay",{defaultValue:!0,recursive:t=>t.reduce(Ln),deps:[xn],compute:(t,n,i,e)=>e&&i&&n.reduce(Ln,!0)||!1}),Un=B("Loading",{defaultValue:"auto",recursive:!0,deps:[xn],compute:(t,n,i,e)=>M(e?"auto":"lazy",M(i||"auto",n.reduce(M,"auto")))}),Ln=(t,n)=>t&&n,Dn=t=>t.ensureLoaded(),Wn=t=>t.pause(),qn=t=>t.unmount();function Fn(t,n=!0){Bn(t,n,!1,Dn)}function Hn(t,n=!0){Bn(t,n,!0,Wn)}function Zn(t,n=!0){Bn(t,n,!0,qn)}function Bn(t,i,e,r){const o=n(t);for(let t=0;t<o.length;t++)Yn(o[t],i,e,r)}function Yn(t,n,i,e){if(n&&t.classList.contains("i-amphtml-element")){const n=t;if(V(e,n),!i){const t=n.getPlaceholder();return void(t&&Yn(t,!0,!1,e))}}const r=t.getElementsByClassName("i-amphtml-element");let o=null;for(let t=0;t<r.length;t++){const n=r[t];if(i)V(e,n);else{o=o||[];let t=!1;for(let i=0;i<o.length;i++)if(o[i].contains(n)){t=!0;break}t||(o.push(n),V(e,n))}}}var Gn={},Qn=new WeakMap;function Jn(t,n,i,e=!1){if(t.setAttribute("slot",n),!e)return Sn(Kn,A(A({},i||Gn),{},{name:n}));const r=Qn.get(t);if(r&&function(t,n){if(null==t||null==n)return t===n;for(const i in t)if(t[i]!==n[i])return!1;for(const i in n)if(n[i]!==t[i])return!1;return!0}(r.oldProps,i))return r.component;function o(t){return Sn(Kn,A(A({},i||Gn),{},{name:n},t))}return Qn.set(t,{oldProps:i,component:o}),o}function Kn(t){const n=In(null);return function(t,n){const{"loading":i}=n||Gn,e=$n();Vn((()=>{const n=t.current;return v(h(n)),nt(n,xn,Kn,e.renderable),nt(n,Nn,Kn,e.playable),nt(n,Un,Kn,e.loading),e.playable||Xn(n,Hn,!0),()=>{var t;it(n,xn,Kn),it(n,Nn,Kn),it(n,Un,Kn),t=n,q.rediscoverChildren(t)}}),[t,e]),Vn((()=>{const n=t.current;return v(h(n)),"lazy"!=i&&Xn(n,Fn,!0),()=>{Xn(n,Zn,!1)}}),[t,i])}(n,t),On((()=>{t.postRender&&t.postRender()})),Sn("slot",A(A({},t),{},{ref:n}))}function Xn(t,n,i){const e=t.assignedElements?t.assignedElements():t;if(Array.isArray(e)&&0==e.length)return;if(!i)return void n(e);const r=t.ownerDocument.defaultView;r&&(r.requestIdleCallback||r.setTimeout)((()=>n(e)))}var ti={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},ni=function(){let t=0;return()=>String(++t)}(),ii=t=>"string"==typeof t||!!t.selector,ei=t=>3===t.nodeType&&0===t.nodeValue.trim().length;function ri(t,n,i,e,r){const{"layoutSizeDefined":o,"lightDomTag":s,"props":u}=t;r&&r.start();const l=A(A({},e),{},{ref:i});return s&&(l["i-amphtml-rendered"]=!0,l.__AMP_RENDERED=!0,l.as=s),o&&(t.usesShadowDom?l.style=ti:l.class="i-amphtml-fill-content"),oi(t,l,u,n,r),r&&r.complete(),l}function oi(t,n,i,e,r){if(function(t,n){return Object.values(t).some(n)}(i,ii)){const o=at(e);for(let e=0;e<o.length;e++){const s=o[e],u=ui(s,i);if(!u)continue;const l=i[u],{as:c=!1,single:a,name:f=u,clone:h,props:d={}}=l;v(h||t.usesShadowDom);const p={};if(oi(t,p,d,s,r),a)n[f]=Jn(s,s.getAttribute("slot")||`i-amphtml-${f}`,p,c);else{const t=n[f]||(n[f]=[]);v(!c),t.push(h?si(s):Jn(s,s.getAttribute("slot")||`i-amphtml-${f}-${ni()}`,p))}}}for(const c in i){const a=i[c];let f;if(v(!!a.attr+!!a.attrs+!!a.attrPrefix+!!a.selector+!!a.passthrough+!!a.passthroughNonEmpty<=1),a.passthrough)v(t.usesShadowDom),f=[Sn(Kn,{loading:"lazy"})];else if(a.passthroughNonEmpty)v(t.usesShadowDom),f=at(e).every(ei)?null:[Sn(Kn,{loading:"lazy"})];else if(a.attr)f=e.getAttribute(a.attr),a.media&&null!=f&&(f=r.resolveListQuery(String(f)));else if(a.parseAttrs)v(a.attrs),f=a.parseAttrs(e);else if(a.attrPrefix){const t={};let n=!1;const i=e.attributes;for(let e=0;e<i.length;e++){const r=i[e];u=r.name,l=a.attrPrefix,null!==u&&void 0!==l&&u.startsWith(l)&&u!==l&&(t[s(r.name.slice(a.attrPrefix.length))]=r.value,n=!0)}n&&(f=t)}if(null==f)null!=a.default&&(n[c]=a.default);else{const t="number"==a.type?parseFloat(f):"boolean"==a.type?null==(o=f)?void 0:"false"!==o:"date"==a.type?b(f):f;n[c]=t}}var o,u,l}function si(t){const n={"key":t},{attributes:i,localName:e}=t,{length:r}=i;for(let t=0;t<r;t++){const{name:e,value:r}=i[t];n[e]=r}return Sn(e,n)}function ui(t,n){for(const i in n){const e=n[i];if(lt(t,"string"==typeof e?e:e.selector))return i}return null}var li=self.AMP_CONFIG||{},ci=("string"==typeof li.thirdPartyFrameRegex?new RegExp(li.thirdPartyFrameRegex):li.thirdPartyFrameRegex,("string"==typeof li.cdnProxyRegex?new RegExp(li.cdnProxyRegex):li.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function ai(t){if(!self.document||!self.document.head)return null;if(self.location&&ci.test(self.location.origin))return null;const n=self.document.head.querySelector(`meta[name="${t}"]`);return n&&n.getAttribute("content")||null}li.thirdPartyUrl,li.thirdPartyFrameHost,li.cdnUrl||ai("runtime-host"),li.errorReportingUrl,li.betaErrorReportingUrl,li.localDev,li.geoApiUrl||ai("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var fi=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";new RegExp("(-shadowcsshost"+fi,"gim"),new RegExp("(-shadowcsscontext"+fi,"gim"),new RegExp("-shadowcsshost","gim"),new RegExp("-shadowcsscontext","gim");var hi={childList:!0},di={childList:!0,characterData:!0},vi={childList:!0},pi=f({"style":"display: contents; background: inherit;","part":"c"}),mi=f({"name":"i-amphtml-svc"}),yi=f({"i-amphtml-rendered":""}),bi=()=>!0;function gi(t,n){return Object.values(t).some(n)}var _i=t=>!!t.media,wi=t=>"string"==typeof t||!!t.selector,Ai=t=>!(!t.passthrough&&!t.passthroughNonEmpty),Pi=class extends _n{static R1(){return!0}static requiresShadowDom(){return this.usesShadowDom}static usesLoading(){return this.loadable}static prerenderAllowed(){return!this.usesLoading()}constructor(t){super(t),this.q=f({"loading":"auto","onReadyState":(t,n)=>{this.F(t,n)},"onPlayingState":t=>{this.H(t)},"onLoading":()=>{this.handleOnLoading()},"onLoad":()=>{this.handleOnLoad()},"onError":()=>{this.handleOnError()}}),this.Z={renderable:!1,playable:!0,loading:"auto",notify:()=>this.mutateElement((()=>{}))},this.B=!1,this.Y=null,this.G=null,this.J=t=>{null!==t&&(this.Y?this.K(t):this.X(t)),this.G=t,this.tt()},this.nt=null,this.it=null,this.et=null,this.rt=!1,this.ot=null,this.st=()=>{this.rt=!1,this.ut()},this.lt=!1,this.ct=!1,this.observer=null,this.at=new class{constructor(t){this.ft=t,this.ht=!1,this.dt=!1,this.vt=this.vt.bind(this)}updatePlaying(t){t!==this.ht&&(this.ht=t,t?(this.dt=!1,function(t,n){!function(t,n,i){const e=t.ownerDocument.defaultView;if(!e)return;let r=_t.get(t);if(r||(r=[],_t.set(t,r),At(e).observe(t)),!r.some((t=>t.callback===i&&1===t.type))){r.push({type:1,callback:i});const n=wt.get(t);n&&setTimeout((()=>kt(1,i,n)))}}(t,0,n)}(this.ft,this.vt)):function(t,n){!function(t,n,e){const r=_t.get(t);if(r&&(i(r,(t=>t.callback===e&&1===t.type)),0==r.length)){_t.delete(t),wt.delete(t);const n=t.ownerDocument.defaultView;n&&At(n).unobserve(t)}}(t,0,n)}(this.ft,this.vt))}vt({blockSize:t,inlineSize:n}){const i=n>0&&t>0;if(i===this.dt)return;this.dt=i;const e=this.ft;i||e.pause()}}(t),this.yt=null}init(){}isLayoutSupported(t){return this.constructor.layoutSizeDefined?function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)||"container"==t:super.isLayoutSupported(t)}buildCallback(){const t=this.constructor;this.observer=new MutationObserver((t=>this.bt(t)));const n=t.props,i=gi(n,wi)?hi:null,e=gi(n,Ai)?di:null,r=t.usesTemplate?vi:null;this.observer.observe(this.element,A(A(A({attributes:!0},i),e),r)),this.yt=gi(n,_i)?new class{constructor(t,n){this.gt=t,this._t=n,this.wt={},this.At=null}start(){this.At=this.wt,this.wt={}}resolveMatchQuery(t){return"1"===this.Pt(t,vt,"1")}resolveListQuery(t){return this.Pt(t,pt,"")}complete(){for(const t in this.At)t in this.wt||mt(this.At[t],this._t,!1);this.At=null}dispose(){for(const t in this.wt)mt(this.wt[t],this._t,!1);this.wt={}}Pt(t,n,i){if(!t.trim())return i;let e=this.wt[t]||this.At[t];return e||(e=n(this.gt,t),mt(e,this._t,!0)),this.wt[t]=e,function(t){for(let n=0;n<t.length;n++){const{query:i,value:e}=t[n];if(!i||i.matches)return e}return""}(e)}}(this.win,(()=>this.kt())):null;const o=t.staticProps,s=this.init();Object.assign(this.q,o,s),this.checkPropsPostMutations(),Q(this.element,[],(()=>()=>{this.ct=!1,this.et&&En(null,this.et)})),Q(this.element,[xn,Nn,Un],((t,n,i)=>{this.Z.renderable=t,this.Z.playable=n,this.Z.loading=i,this.ct=!0,this.kt()}));const u=t.useContexts;var l;return 0!=u.length&&Q(this.element,u,((...t)=>{this.it=t,this.kt()})),this.ot=new rt,this.kt(),t.loadable&&(null===(l=this.setReadyState)||void 0===l||l.call(this,"loading")),this.tt(),this.ot.promise}ensureLoaded(){this.constructor.loadable&&(this.mutateProps(f({"loading":"eager"})),this.B=!0)}mountCallback(){tt(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.B=!1)}unmountCallback(){var t;tt(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.H(!1),null===(t=this.yt)||void 0===t||t.dispose()}mutatedAttributesCallback(){this.et&&this.kt()}attemptChangeHeight(t){return super.attemptChangeHeight(t).catch((t=>{throw this.getOverflowElement&&!this.getOverflowElement()&&console.warn("[overflow] element not found. Provide one to enable resizing to full contents.",this.element),t}))}mutateProps(t){Object.assign(this.q,t),this.kt()}api(){return v(this.G)}registerApiAction(t,n,i=2){var e;null===(e=this.registerAction)||void 0===e||e.call(this,t,(t=>n(this.api(),t)),i)}mutationObserverCallback(t){}checkPropsPostMutations(){}updatePropsForRendering(t){}isReady(t){return!0}bt(t){const n=this.constructor;this.mutationObserverCallback(t);const i=t.some((t=>function(t,n){const{type:i}=n;if("attributes"==i){if(t.usesTemplate&&"template"==n.attributeName)return!0;const i=t.props;for(const t in i){const o=i[t];if(n.attributeName==o.attr||o.attrs&&o.attrs.includes(v(n.attributeName))||(e=n.attributeName,r=o.attrPrefix,null!==e&&void 0!==r&&e.startsWith(r)&&e!==r))return!0}return!1}var e,r;return"childList"==i&&(Mi(n.addedNodes)||Mi(n.removedNodes))}(n,t)));i&&(this.checkPropsPostMutations(),this.kt())}kt(){this.rt||(this.rt=!0,this.mutateElement(this.st))}tt(){const{G:t}=this,n=null==t?void 0:t.readyState;n&&n!==this.element.readyState&&this.F(n)}F(t,n){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,t,n),this.constructor.unloadOnPause&&this.H("complete"==t),this.B&&(this.B=!1,this.mutateProps({"loading":"auto"}))}handleOnLoad(){var t,n,i;null===(t=this.toggleLoading)||void 0===t||t.call(this,!1),null===(n=this.toggleFallback)||void 0===n||n.call(this,!1),null===(i=this.togglePlaceholder)||void 0===i||i.call(this,!1)}handleOnLoading(){var t;null===(t=this.toggleLoading)||void 0===t||t.call(this,!0)}handleOnError(){var t,n,i,e,r;null===(t=this.toggleLoading)||void 0===t||t.call(this,!1),null!==(n=this.getFallback)&&void 0!==n&&n.call(this)?(null===(i=this.toggleFallback)||void 0===i||i.call(this,!0),null===(e=this.togglePlaceholder)||void 0===e||e.call(this,!1)):null===(r=this.togglePlaceholder)||void 0===r||r.call(this,!0)}ut(){if(!this.ct)return;const t=this.constructor,n=t.usesShadowDom,i=n?null:t.lightDomTag,e=t.detached;if(!this.et){const d=this.win.document;if(n){v(!e);let{shadowRoot:n}=this.element,i=n&&(h=n,st("c"),ut(h,"> c"));if(i)this.lt=!0;else{var r,o,s,u,l,c;n=this.element.attachShadow({mode:"open",delegatesFocus:t.delegatesFocus});const e=t.shadowCss;e&&function(t,n,i){const e=t.ownerDocument,r=e.defaultView;if(void 0!==t.adoptedStyleSheets&&void 0!==r.CSSStyleSheet.prototype.replaceSync){const e=r.__AMP_SHADOW_CSS||(r.__AMP_SHADOW_CSS={});let o=e[n];o||(o=new r.CSSStyleSheet,o.replaceSync(i),e[n]=o),t.adoptedStyleSheets=t.adoptedStyleSheets.concat(o)}else{const r=e.createElement("style");r.setAttribute("data-name",n),r.textContent=i,t.appendChild(r)}}(n,this.element.tagName,e),i=ht(d,"c",pi),n.appendChild(i);const a=ht(d,"slot",mi);n.appendChild(a),null===(r=this.getPlaceholder)||void 0===r||null===(o=r.call(this))||void 0===o||o.setAttribute("slot","i-amphtml-svc"),null===(s=this.getFallback)||void 0===s||null===(u=s.call(this))||void 0===u||u.setAttribute("slot","i-amphtml-svc"),null===(l=this.getOverflowElement)||void 0===l||null===(c=l.call(this))||void 0===c||c.setAttribute("slot","i-amphtml-svc")}this.et=i,function(t,n){q.get(t).setParent(n)}(n,this.element),function(t,n,i,e=0){q.get(t).addGroup(n,i,e)}(this.element,"unslotted",bi,-1),a=this.element,f=xn,q.get(a).group("unslotted").values.set(f,this,!1)}else if(i){this.et=this.element;const n=ct(this.et,"i-amphtml-rendered")||ht(d,i,yi);n.__AMP_RENDERED=!0,t.layoutSizeDefined&&n.classList.add("i-amphtml-fill-content"),this.et.appendChild(n)}else{const t=d.createElement("i-amphtml-c");this.et=t,t.classList.add("i-amphtml-fill-content"),e||this.element.appendChild(t)}}var a,f,h;const d=t.useContexts,p=this.it;if(0!=d.length&&null==p)return;const m=ri(t,this.element,this.J,this.q,this.yt);if(this.updatePropsForRendering(m),!this.isReady(m))return;let y=Sn(t.Component,m);for(let t=0;t<d.length;t++){const n=d[t].type,i=p[t];i&&(y=Sn(n.Provider,{value:i},y))}const b=Sn(zn,A({},this.Z),y);if(this.lt)this.lt=!1,cn(b,this.et);else{const t=i?ct(this.et,"i-amphtml-rendered"):null;t&&(t.__AMP_RENDERED=!0),En(b,this.et,t)}n||e||this.mutateElement((()=>dt(this.element,"amp:dom-update",null))),this.ot&&(this.ot.resolve(),this.ot=null)}getProp(t,n){return i=this.q,e=t,c.call(i,e)?this.q[t]:n;var i,e}getApi(){const t=this.Y;return t?Promise.resolve(t):(this.nt||(this.nt=new rt),this.nt.promise)}X(t){const n=Object.create(null),i=Object.keys(t);for(let t=0;t<i.length;t++)ki(this,n,i[t]);this.Y=n,this.nt&&(this.nt.resolve(n),this.nt=null)}K(t){}triggerEvent(t,n,i){dt(t,n,i)}pauseCallback(){if(this.constructor.unloadOnPause)this.mutateProps(f({"loading":"unload"})),this.B=!0;else{var t;const{G:n}=this;null==n||null===(t=n.pause)||void 0===t||t.call(n)}}H(t){this.at.updatePlaying(t)}};function ki(t,n,i){Object.defineProperty(n,i,{configurable:!0,get:()=>t.G[i],set(n){t.G[i]=n}})}function Mi(t){for(let n=0;n<t.length;n++){const i=t[n];if(h(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}function Ri(t,n){if(null==t)return{};var i,e,r={},o=Object.keys(t);for(e=0;e<o.length;e++)i=o[e],n.indexOf(i)>=0||(r[i]=t[i]);return r}function Si(t,n){for(var i in n)t[i]=n[i];return t}function Ei(t,n){for(var i in t)if("__source"!==i&&!(i in n))return!0;for(var e in n)if("__source"!==e&&t[e]!==n[e])return!0;return!1}function Ti(t){this.props=t}Pi.Component=function(){v(!1)},Pi.staticProps=void 0,Pi.useContexts=[],Pi.loadable=!1,Pi.unloadOnPause=!1,Pi.layoutSizeDefined=!1,Pi.lightDomTag="",Pi.usesTemplate=!1,Pi.shadowCss=null,Pi.usesShadowDom=!1,Pi.detached=!1,Pi.delegatesFocus=!1,Pi.props={},(Ti.prototype=new qt).isPureReactComponent=!0,Ti.prototype.shouldComponentUpdate=function(t,n){return Ei(this.props,t)||Ei(this.state,n)};var Ii=Rt.__b;Rt.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Ii&&Ii(t)};var Oi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Vi=Rt.__e;Rt.__e=function(t,n,i){if(t.then)for(var e,r=n;r=r.__;)if((e=r.__c)&&e.__c)return null==n.__e&&(n.__e=i.__e,n.__k=i.__k),e.__c(t,n);Vi(t,n,i)};var ji=Rt.unmount;function Ci(){this.__u=0,this.t=null,this.__b=null}function zi(t){var n=t.__.__c;return n&&n.__e&&n.__e(t)}function $i(){this.u=null,this.o=null}Rt.unmount=function(t){var n=t.__c;n&&n.__R&&n.__R(),n&&!0===t.__h&&(t.type=null),ji&&ji(t)},(Ci.prototype=new qt).__c=function(t,n){var i=n.__c,e=this;null==e.t&&(e.t=[]),e.t.push(i);var r=zi(e.__v),o=!1,s=function(){o||(o=!0,i.__R=null,r?r(u):u())};i.__R=s;var u=function(){if(!--e.__u){if(e.state.__e){var t=e.state.__e;e.__v.__k[0]=function t(n,i,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map((function(n){return t(n,i,e)})),n.__c&&n.__c.__P===i&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}(t,t.__c.__P,t.__c.__O)}var n;for(e.setState({__e:e.__b=null});n=e.t.pop();)n.forceUpdate()}},l=!0===n.__h;e.__u++||l||e.setState({__e:e.__b=e.__v.__k[0]}),t.then(s,s)},Ci.prototype.componentWillUnmount=function(){this.t=[]},Ci.prototype.render=function(t,n){if(this.__b){if(this.__v.__k){var i=document.createElement("div"),e=this.__v.__k[0].__c;this.__v.__k[0]=function t(n,i,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),n.__c.__H=null),null!=(n=Si({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=i),n.__c=null),n.__k=n.__k&&n.__k.map((function(n){return t(n,i,e)}))),n}(this.__b,i,e.__O=e.__P)}this.__b=null}var r=n.__e&&Lt(Wt,null,t.fallback);return r&&(r.__h=null),[Lt(Wt,null,n.__e?null:t.children),r]};var xi=function(t,n,i){if(++i[1]===i[0]&&t.o.delete(n),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(i=t.u;i;){for(;i.length>3;)i.pop()();if(i[1]<i[0])break;t.u=i=i[2]}};($i.prototype=new qt).__e=function(t){var n=this,i=zi(n.__v),e=n.o.get(t);return e[0]++,function(r){var o=function(){n.props.revealOrder?(e.push(r),xi(n,t,e)):r()};i?i(o):o()}},$i.prototype.render=function(t){this.u=null,this.o=new Map;var n=Qt(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&n.reverse();for(var i=n.length;i--;)this.o.set(n[i],this.u=[1,0,this.u]);return t.children},$i.prototype.componentDidUpdate=$i.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(n,i){xi(t,i,n)}))};var Ni="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ui=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Li="undefined"!=typeof document,Di=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};qt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(qt.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}));var Wi=Rt.event;function qi(){}function Fi(){return this.cancelBubble}function Hi(){return this.defaultPrevented}Rt.event=function(t){return Wi&&(t=Wi(t)),t.persist=qi,t.isPropagationStopped=Fi,t.isDefaultPrevented=Hi,t.nativeEvent=t};var Zi={configurable:!0,get:function(){return this.class}},Bi=Rt.vnode;Rt.vnode=function(t){var n=t.type,i=t.props,e=i;if("string"==typeof n){var r=-1===n.indexOf("-");for(var o in e={},i){var s=i[o];Li&&"children"===o&&"noscript"===n||"value"===o&&"defaultValue"in i&&null==s||("defaultValue"===o&&"value"in i&&null==i.value?o="value":"download"===o&&!0===s?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+n)&&!Di(i.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():r&&Ui.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),e[o]=s)}"select"==n&&e.multiple&&Array.isArray(e.value)&&(e.value=Qt(i.children).forEach((function(t){t.props.selected=-1!=e.value.indexOf(t.props.value)}))),"select"==n&&null!=e.defaultValue&&(e.value=Qt(i.children).forEach((function(t){t.props.selected=e.multiple?-1!=e.defaultValue.indexOf(t.props.value):e.defaultValue==t.props.value}))),t.props=e}n&&i.class!=i.className&&(Zi.enumerable="className"in i,null!=i.className&&(e.class=i.className),Object.defineProperty(e,"className",Zi)),t.$$typeof=Ni,Bi&&Bi(t)};var Yi=Rt.__r;function Gi(t){return function(t){function n(n,i){var e=Si({},n);return delete e.ref,t(e,(i=n.ref||i)&&("object"!=typeof i||"current"in i)?i:null)}return n.$$typeof=Oi,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(t.displayName||t.name)+")",n}(t)}Rt.__r=function(t){Yi&&Yi(t),t.__c};var Qi=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],Ji=[null,"paint","layout","content","size","size paint","size layout","strict"],Ki={"position":"relative","width":"100%","height":"100%"};Gi((function(t,n){let{as:i="div",children:e,"class":r,contentAs:o="div",contentClassName:s,contentProps:u,contentRef:l,contentStyle:c,layout:a=!1,paint:f=!1,size:h=!1,"style":d,wrapperClassName:v,wrapperStyle:p}=t;const m=(h?4:0)+(a?2:0)+(f?1:0);return Sn(i,A(A({},Ri(t,Qi)),{},{ref:n,class:`${r||""} ${v||""}`.trim()||null,style:A(A(A({},d),p),{},{contain:Ji[m]})}),Sn(o,A(A({},u),{},{ref:l,class:s,style:A(A({},h&&Ki),{},{"overflow":f?"hidden":"visible"},c)}),e))}));var Xi=["as","children","class","style","wrapperClassName","wrapperStyle"],te=Gi((function(t,n){let{as:i="div",children:e,"class":r,"style":o,wrapperClassName:s,wrapperStyle:u}=t;return Sn(i,A(A({},Ri(t,Xi)),{},{ref:n,class:`${r||""} ${s||""}`.trim()||null,style:A(A({},o),u)}),e)}));function ne(t){return ie[t]}new WeakMap,new WeakMap;var ie={"de":["Jahren","Monaten","Tagen","Stunden","Minuten","Sekunden"],"en":["Years","Months","Days","Hours","Minutes","Seconds"],"es":["años","meses","días","horas","minutos","segundos"],"fr":["ans","mois","jours","heures","minutes","secondes"],"id":["tahun","bulan","hari","jam","menit","detik"],"it":["anni","mesi","giorni","ore","minuti","secondi"],"ja":["年","ヶ月","日","時間","分","秒"],"ko":["년","달","일","시간","분","초"],"nl":["jaar","maanden","dagen","uur","minuten","seconden"],"pt":["anos","meses","dias","horas","minutos","segundos"],"ru":["год","месяц","день","час","минута","секунда"],"th":["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที"],"tr":["yıl","ay","gün","saat","dakika","saniye"],"vi":["năm","tháng","ngày","giờ","phút","giây"],"zh-cn":["年","月","天","小时","分钟","秒"],"zh-tw":["年","月","天","小時","分鐘","秒"]},ee=["datetime","whenEnded","locale","biggestUnit","countUp","render"],re={DAYS:1,HOURS:2,MINUTES:3,SECONDS:4},oe="en",se="stop",ue="DAYS",le=!1,ce=t=>`${t.days} ${t.dd}, ${t.hours} ${t.hh}, ${t.minutes} ${t.mm}, ${t.seconds} ${t.ss}`;function ae(t){return t<-9||t>9?String(t):t>=-9&&t<0?"-0"+-t:"0"+t}function fe(t){return t<0?t+1:t}var he=class extends Pi{};function de(){{const t=document.createElement("style");t.textContent="bento-date-countdown{display:block;overflow:hidden;position:relative}bento-date-countdown:not(.i-amphtml-built){color:transparent!important}bento-date-countdown:not(.i-amphtml-built)>:not([placeholder]):not([slot=i-amphtml-svc]){display:none;content-visibility:hidden}\n/*# sourceURL=/extensions/amp-date-countdown/1.0/amp-date-countdown.css*/",document.head.appendChild(t)}customElements.define("bento-date-countdown",he.CustomElement(he))}he.Component=function(t){let{datetime:n,whenEnded:i=se,locale:e=oe,biggestUnit:r=ue,countUp:o=le,render:s=ce}=t,u=Ri(t,ee);!function(){const{notify:t}=$n();Vn((()=>{t&&t()}))}();const{playable:l}=$n(),c=jn((()=>b(n)),[n]),a=jn((()=>function(t){var n;void 0===ne(t)&&(n=`Invalid locale ${t}, defaulting to ${oe}. DateCountdown`,console.warn(n),t=oe);const i=ne(t);return f({"years":i[0],"months":i[1],"days":i[2],"hours":i[3],"minutes":i[4],"seconds":i[5]})}(e)),[e]),[h,d]=Tn(c-Date.now()+1e3),v=jn((()=>function(t,n,i,e){return A(A({},function(t,n,i){i&&(t*=-1);const e=re[n]==re.DAYS?fe(Math.floor(t/864e5)):0,r=re[n]==re.HOURS?fe(Math.floor(t/36e5)):re[n]<re.HOURS?fe(Math.floor(t%864e5/36e5)):0,o=re[n]==re.MINUTES?fe(Math.floor(t/6e4)):re[n]<re.MINUTES?fe(Math.floor(t%36e5/6e4)):0,s=fe(re[n]==re.SECONDS?Math.floor(t/1e3):Math.floor(t%6e4/1e3));return f({"d":e,"dd":ae(e),"h":r,"hh":ae(r),"m":o,"mm":ae(o),"s":s,"ss":ae(s)})}(t,n,e)),i)}(h,r,a,o)),[h,r,a,o]),p=In(null);On((()=>{if(!l||!p.current)return;const t=p.current.ownerDocument.defaultView,n=t.setInterval((()=>{const e=c-Date.now()+1e3;d(e),i===se&&e<1e3&&t.clearInterval(n)}),1e3);return()=>t.clearInterval(n)}),[l,c,i]);const m=function(t,n){const[i,e]=Tn(null);return Vn((()=>{const i=t&&t(n)||null;if(i&&"function"==typeof i.then){let t=!1;return i.then((n=>{t||e(n)})),()=>{t=!0}}e(i)}),[t,n]),i}(s,v),y=m&&"object"==typeof m&&"__html"in m;return Sn(te,A(A({},u),{},{ref:p,dangerouslySetInnerHTML:y?m:null}),y?null:m)},he.layoutSizeDefined=!0,he.lightDomTag="div",he.usesTemplate=!0,he.props={"datetime":{attrs:["end-date","timeleft-ms","timestamp-ms","timestamp-seconds","offset-seconds"],parseAttrs:function(t){return function(t,n){const i=m(function(t,n){const i=n.map((t=>v(g[t])));for(let e=0;e<n.length;++e){const r=t.getAttribute(n[e]);if(r)return i[e](r)}return null}(t,n),"One of attributes [%s] is required",n.join(", "));return i+1e3*(Number(t.getAttribute("offset-seconds"))||0)}(t,["end-date","timeleft-ms","timestamp-ms","timestamp-seconds"])}},"whenEnded":{attr:"when-ended",type:"string"},"locale":{attr:"locale",type:"string"},"biggestUnit":{attr:"biggest-unit",type:"string"},"countUp":{attr:"count-up",type:"boolean"}};export{de as defineElement};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -3,0 +3,0 @@ /**

{
"name": "@ampproject/amp-date-countdown",
"version": "1.2110212130.0",
"version": "1.2110252343.0",
"description": "AMP HTML amp-date-countdown Component",
"author": "The AMP HTML Authors",
"license": "Apache-2.0",
"main": "./dist/component-preact.js",
"module": "./dist/component-preact.module.js",
"main": "./dist/web-component.js",
"module": "./dist/web-component.module.js",
"exports": {
".": "./preact",
".": "./web-component",
"./web-component": {
"import": "./dist/web-component.module.js",
"require": "./dist/web-component.js"
},
"./preact": {

@@ -12,0 +16,0 @@ "import": "./dist/component-preact.module.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc