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

@bentoproject/accordion

Package Overview
Dependencies
Maintainers
3
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bentoproject/accordion - npm Package Compare versions

Comparing version 1.2112231523.0 to 1.2112231523.1

2

dist/component-preact.js

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

var n,r=Object.create,t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,a=function(n){return t(n,"__esModule",{value:!0})},c=function(n){return function(n,r,o){if(r&&"object"==typeof r||"function"==typeof r)for(var a,c=i(r),f=0,l=c.length;f<l;f++)a=c[f],u.call(n,a)||"default"===a||t(n,a,{get:function(n){return r[n]}.bind(null,a),enumerable:!(o=e(r,a))||o.enumerable});return n}(a(t(null!=n?r(o(n)):{},"default",n&&n.__esModule&&"default"in n?{get:function(){return n.default},enumerable:!0}:{value:n,enumerable:!0})),n)};function f(n){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function l(n){var r=function(n,r){if("object"!==f(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var e=t.call(n,"string");if("object"!==f(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===f(r)?r:String(r)}function v(n,r){(null==r||r>n.length)&&(r=n.length);for(var t=0,e=new Array(r);t<r;t++)e[t]=n[t];return e}function d(){return n||(n=Promise.resolve(void 0))}function b(n,r,t){return r in n?Object.defineProperty(n,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[r]=t,n}function y(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),t.push.apply(t,e)}return t}function h(n){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?y(Object(t),!0).forEach((function(r){b(n,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))}))}return n}function p(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,r){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var e,i,o=[],u=!0,a=!1;try{for(t=t.call(n);!(u=(e=t.next()).done)&&(o.push(e.value),!r||o.length!==r);u=!0);}catch(n){a=!0,i=n}finally{try{u||null==t.return||t.return()}finally{if(a)throw i}}return o}}(n,r)||function(n,r){if(n){if("string"==typeof n)return v(n,r);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(n,r):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(n,r){if(null==n)return{};var t,e,i={},o=Object.keys(n);for(e=0;e<o.length;e++)t=o[e],r.indexOf(t)>=0||(i[t]=n[t]);return i}!function(n,r){for(var e in a(n),r)t(n,e,{get:r[e],enumerable:!0})}(exports,{BentoAccordion:function(){return cn},BentoAccordionContent:function(){return dn},BentoAccordionHeader:function(){return vn},BentoAccordionSection:function(){return ln}});var m=Object.prototype;function g(n,r){return Object.keys(n).reduce((function(t,e){return r.includes(e)||(t[e]=n[e]),t}),{})}m.hasOwnProperty,m.toString;var j=c(require("preact")),O=(c(require("preact")),c(require("preact/hooks")));function S(n,r,t){return j.createElement.apply(void 0,arguments)}function w(n){return j.createContext(n,void 0)}function x(n){return O.useState(n)}function A(n){return O.useRef(n)}function I(n,r){O.useEffect(n,r)}function M(n,r){O.useLayoutEffect(n,r)}function z(n){return O.useContext(n)}function Y(n,r){return O.useMemo(n,r)}function C(n,r){return O.useCallback(n,r)}var E,k,q=c(require("preact")),B=["ref"],H="undefined"!=typeof Symbol&&(null===(E=Symbol.for)||void 0===E?void 0:E.call(Symbol,"react.forward_ref"))||3911,_=q.options.__b;q.options.__b=function(n){var r;null!==(r=n.type)&&void 0!==r&&r.Bl&&n.ref&&(n.props.ref=n.ref,n.ref=null),null==_||_(n)};var P,T=["auto","lazy","eager","unload"],U=(b(k={},"auto",0),b(k,"lazy",1),b(k,"eager",2),b(k,"unload",3),k);function W(n,r){var t=U[n]||0,e=U[r]||0,i=Math.max(t,e);return T[i]}function $(){return P||(P=w({renderable:!0,playable:!0,loading:"auto"}))}function D(n){var r=n.children,t=n.loading,e=void 0===t?"auto":t,i=n.notify,o=n.playable,u=void 0===o||o,a=n.renderable,c=void 0===a||a,f=z($()),l=c&&f.renderable,v=l&&u&&f.playable,d=W(l?"auto":"lazy",W(e,f.loading)),b=i||f.notify,y=Y((function(){return{renderable:l,playable:v,loading:d,notify:b}}),[l,v,d,b]);return S($().Provider,{children:r,value:y})}Array.isArray;var F,G=["Webkit","webkit","Moz","moz","ms","O","o"];function J(n,r,t){if(Q(r))return r;var e;F||(e=Object.create(null),F=e);var i=F[r];if(!i||t){if(i=r,void 0===n[r]){var o=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(r),u=function(n,r){for(var t=0;t<G.length;t++){var e=G[t]+r;if(void 0!==n[e])return e}return""}(n,o);void 0!==n[u]&&(i=u)}t||(F[r]=i)}return i}function K(n,r,t,e,i){var o=J(n.style,r,i);if(o){var u=e?t+e:t;Q(o)?n.style.setProperty(o,u):n.style[o]=u}}function L(n,r,t){var e=J(n.style,r,t);if(e)return Q(e)?n.style.getPropertyValue(e):n.style[e]}function N(n,r){for(var t in r)K(n,t,r[t])}function Q(n){return n.startsWith("--")}function R(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;n.classList.add("i-amphtml-animating");var e=r();return e.onfinish=e.oncancel=function(){e=null,t&&t(),n.classList.remove("i-amphtml-animating")},function(){e&&e.cancel()}}function V(n){var r=window.innerHeight,t=Math.abs(n)/r*500;return Math.min(Math.max(t,200),500)}var X,Z=["animate","as","children","expandSingleSection","id"],nn=["animate","as","children","expanded","id","onExpandStateChange"],rn=w({}),tn=w({}),en={},on={},un=(X=0,function(){return String(++X)}),an=function(){return String(Math.floor(1e5*Math.random()))},cn=function(n){function r(n){var r=n.ref;return function(n,r){var t=n.animate,e=void 0!==t&&t,i=n.as,o=void 0===i?"section":i,u=n.children,a=n.expandSingleSection,c=void 0!==a&&a,f=n.id,l=s(n,Z),v=p(x(en),2),y=v[0],m=v[1],j=A(on),w=p(x(an),1)[0],M=f||"a".concat(w);I((function(){c&&m((function(n){var r={},t=0;for(var e in n)r[e]=n[e]&&0==t++;return r}))}),[c]);var z=C((function(n,r,t){var e=t.current;return m((function(t){return fn(n,r,t,c)})),j.current=h(h({},j.current),{},b({},n,e)),function(){m((function(r){return g(r,n)})),j.current=g(j.current,n)}}),[c]),E=C((function(n,r){m((function(t){var e=null!=r?r:!t[n],i=fn(n,e,t,c);return d().then((function(){for(var n in t){var r=j.current[n];r&&t[n]!=i[n]&&r(i[n])}})),i}))}),[c]),k=C((function(n,r){var t;return null!==(t=y[n])&&void 0!==t?t:r}),[y]),q=C((function(n){if(n)n in y&&E(n);else if(!c)for(var r in y)E(r)}),[y,E,c]),B=C((function(n){if(n)k(n,!0)||E(n);else if(!c)for(var r in y)k(r,!0)||E(r)}),[y,E,k,c]),H=C((function(n){if(n)k(n,!1)&&E(n);else for(var r in y)k(r,!1)&&E(r)}),[y,E,k]);!function(n,r,t){O.useImperativeHandle(n,(function(){return{toggle:q,expand:B,collapse:H}}),t)}(r,0,[q,H,B]);var _=Y((function(){return{registerSection:z,toggleExpanded:E,isExpanded:k,animate:e,prefix:M}}),[z,E,k,e,M]);return S(o,h({id:f},l),S(rn.Provider,{value:_},u))}(s(n,B),r)}return r.$$typeof=H,r.render=r,r.prototype.isReactComponent=!0,r.Bl=!0,r}();function fn(n,r,t,e){var i;if(e&&r)for(var o in i=b({},n,r),t)o!=n&&(i[o]=!1);else i=h(h({},t),{},b({},n,r));return i}function ln(n){var r=n.animate,t=void 0!==r&&r,e=n.as,i=void 0===e?"section":e,o=n.children,u=n.expanded,a=void 0!==u&&u,c=n.id,f=n.onExpandStateChange,l=s(n,nn),v=p(x(un),1)[0],b=c||v,y=p(x(an),1)[0],m=p(x(a),2),g=m[0],j=m[1],O=p(x(null),2),w=O[0],I=O[1],E=p(x(null),2),k=E[0],q=E[1],B=z(rn),H=B.animate,_=B.isExpanded,P=B.prefix,T=B.registerSection,U=B.toggleExpanded,W=_?_(b,a):g,$=null!=H?H:t,D=w||"".concat(P||"a","-content-").concat(b,"-").concat(y),F=k||"".concat(P||"a","-header-").concat(b,"-").concat(y),G=A(null);G.current=f,M((function(){if(T)return T(b,a,G)}),[T,b,a]);var J=C((function(n){U?U(b,n):j((function(r){var t=null!=n?n:!r;return d().then((function(){var n=G.current;n&&n(t)})),t}))}),[b,U]),K=Y((function(){return{animate:$,contentId:D,headerId:F,expanded:W,toggleHandler:J,setContentId:I,setHeaderId:q}}),[$,D,F,W,J]);return S(i,h({},l),S(tn.Provider,{value:K},o))}function vn(n){var r="class",t="tabIndex",e=n.as,i=void 0===e?"div":e,o=n.children,u=n.id,a=n.role,c=void 0===a?"button":a,f=n[r],v=void 0===f?"":f,d=n[t],b=void 0===d?0:d,y=s(n,["as","children","id","role",r,t].map(l)),p=z(tn),m=p.contentId,g=p.expanded,j=p.headerId,O=p.setHeaderId,w=p.toggleHandler;return M((function(){O&&O(u)}),[O,u]),S(i,h(h({},y),{},{id:j,role:c,class:"".concat(v," ").concat("section-child-00fce3c"," ").concat("header-00fce3c"),tabIndex:b,"aria-controls":m,onClick:function(){return w()},"aria-expanded":String(g)}),o)}function dn(n){var r="class",t=n.as,e=void 0===t?"div":t,i=n.children,o=n.id,u=n.role,a=void 0===u?"region":u,c=n[r],f=void 0===c?"":c,v=s(n,["as","children","id","role",r].map(l)),d=A(null),b=A(!1),y=z(tn),p=y.animate,m=y.contentId,g=y.expanded,j=y.headerId,O=y.setContentId;return I((function(){return b.current=!0,function(){return b.current=!1}}),[]),M((function(){O&&O(o)}),[O,o]),M((function(){var n=b.current,r=d.current;if(p&&n&&r&&r.animate)return g?function(n){return R(n,(function(){var r=L(n,"height"),t=L(n,"opacity"),e=L(n,"overflowY");N(n,{height:0,opacity:0,overflowY:"auto"});var i=n.scrollHeight;N(n,{height:r,opacity:t,overflowY:e});var o=V(i);return n.animate([{height:0,opacity:0,overflowY:"hidden"},{height:i+"px",opacity:1,overflowY:"hidden"}],{easing:"cubic-bezier(0.47, 0, 0.745, 0.715)",duration:o})}))}(r):function(n){return R(n,(function(){var r=n.offsetHeight,t=V(r);return n.animate([{height:r+"px",opacity:1,overflowY:"hidden"},{height:"0",opacity:0,overflowY:"hidden"}],{easing:"cubic-bezier(0.39, 0.575, 0.565, 1)",duration:t})}))}(r)}),[g,p]),S(D,{renderable:g},S(e,h(h({},v),{},{ref:d,class:f+" section-child-00fce3c"+(g?"":" content-hidden-00fce3c"),id:m,"aria-labelledby":j,role:a}),i))}cn.displayName="Accordion";
var n,r=Object.create,t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,a=function(n){return t(n,"__esModule",{value:!0})},c=function(n){return function(n,r,o){if(r&&"object"==typeof r||"function"==typeof r)for(var a,c=i(r),f=0,l=c.length;f<l;f++)a=c[f],u.call(n,a)||"default"===a||t(n,a,{get:function(n){return r[n]}.bind(null,a),enumerable:!(o=e(r,a))||o.enumerable});return n}(a(t(null!=n?r(o(n)):{},"default",n&&n.__esModule&&"default"in n?{get:function(){return n.default},enumerable:!0}:{value:n,enumerable:!0})),n)};function f(n){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function l(n){var r=function(n,r){if("object"!==f(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var e=t.call(n,"string");if("object"!==f(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===f(r)?r:String(r)}function v(n,r){(null==r||r>n.length)&&(r=n.length);for(var t=0,e=new Array(r);t<r;t++)e[t]=n[t];return e}function d(){return n||(n=Promise.resolve(void 0))}function b(n,r,t){return r in n?Object.defineProperty(n,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[r]=t,n}function y(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),t.push.apply(t,e)}return t}function h(n){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?y(Object(t),!0).forEach((function(r){b(n,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))}))}return n}function p(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,r){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var e,i,o=[],u=!0,a=!1;try{for(t=t.call(n);!(u=(e=t.next()).done)&&(o.push(e.value),!r||o.length!==r);u=!0);}catch(n){a=!0,i=n}finally{try{u||null==t.return||t.return()}finally{if(a)throw i}}return o}}(n,r)||function(n,r){if(n){if("string"==typeof n)return v(n,r);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(n,r):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(n,r){if(null==n)return{};var t,e,i={},o=Object.keys(n);for(e=0;e<o.length;e++)t=o[e],r.indexOf(t)>=0||(i[t]=n[t]);return i}!function(n,r){for(var e in a(n),r)t(n,e,{get:r[e],enumerable:!0})}(exports,{BentoAccordion:function(){return X},BentoAccordionContent:function(){return tn},BentoAccordionHeader:function(){return rn},BentoAccordionSection:function(){return nn}});var m=Object.prototype;function g(n,r){return Object.keys(n).reduce((function(t,e){return r.includes(e)||(t[e]=n[e]),t}),{})}m.hasOwnProperty,m.toString,c(require("preact"));var j,O,S=c(require("preact")),w=c(require("preact/hooks")),x=c(require("preact")),A=["ref"],I="undefined"!=typeof Symbol&&(null===(j=Symbol.for)||void 0===j?void 0:j.call(Symbol,"react.forward_ref"))||3911,M=x.options.__b;x.options.__b=function(n){var r;null!==(r=n.type)&&void 0!==r&&r.Bl&&n.ref&&(n.props.ref=n.ref,n.ref=null),null==M||M(n)};var z,Y=["auto","lazy","eager","unload"],C=(b(O={},"auto",0),b(O,"lazy",1),b(O,"eager",2),b(O,"unload",3),O);function E(n,r){var t=C[n]||0,e=C[r]||0,i=Math.max(t,e);return Y[i]}function k(){return z||(z=(0,S.createContext)({renderable:!0,playable:!0,loading:"auto"}))}function q(n){var r=n.children,t=n.loading,e=void 0===t?"auto":t,i=n.notify,o=n.playable,u=void 0===o||o,a=n.renderable,c=void 0===a||a,f=function(){var n=k();return(0,w.useContext)(n)}(),l=c&&f.renderable,v=l&&u&&f.playable,d=E(l?"auto":"lazy",E(e,f.loading)),b=i||f.notify,y=(0,w.useMemo)((function(){return{renderable:l,playable:v,loading:d,notify:b}}),[l,v,d,b]),h=k();return S.createElement(h.Provider,{children:r,value:y})}Array.isArray;var B,H=["Webkit","webkit","Moz","moz","ms","O","o"];function _(n,r,t){if(W(r))return r;var e;B||(e=Object.create(null),B=e);var i=B[r];if(!i||t){if(i=r,void 0===n[r]){var o=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(r),u=function(n,r){for(var t=0;t<H.length;t++){var e=H[t]+r;if(void 0!==n[e])return e}return""}(n,o);void 0!==n[u]&&(i=u)}t||(B[r]=i)}return i}function P(n,r,t,e,i){var o=_(n.style,r,i);if(o){var u=e?t+e:t;W(o)?n.style.setProperty(o,u):n.style[o]=u}}function T(n,r,t){var e=_(n.style,r,t);if(e)return W(e)?n.style.getPropertyValue(e):n.style[e]}function U(n,r){for(var t in r)P(n,t,r[t])}function W(n){return n.startsWith("--")}function $(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;n.classList.add("i-amphtml-animating");var e=r();return e.onfinish=e.oncancel=function(){e=null,t&&t(),n.classList.remove("i-amphtml-animating")},function(){e&&e.cancel()}}function D(n){var r=window.innerHeight,t=Math.abs(n)/r*500;return Math.min(Math.max(t,200),500)}var F,G=["animate","as","children","expandSingleSection","id"],J=["animate","as","children","expanded","id","onExpandStateChange"],K=S.createContext({}),L=S.createContext({}),N={},Q={},R=(F=0,function(){return String(++F)}),V=function(){return String(Math.floor(1e5*Math.random()))},X=function(n){function r(n){var r=n.ref;return function(n,r){var t=n.animate,e=void 0!==t&&t,i=n.as,o=void 0===i?"section":i,u=n.children,a=n.expandSingleSection,c=void 0!==a&&a,f=n.id,l=s(n,G),v=p((0,w.useState)(N),2),y=v[0],m=v[1],j=(0,w.useRef)(Q),O=p((0,w.useState)(V),1)[0],x=f||"a".concat(O);(0,w.useEffect)((function(){c&&m((function(n){var r={},t=0;for(var e in n)r[e]=n[e]&&0==t++;return r}))}),[c]);var A=(0,w.useCallback)((function(n,r,t){var e=t.current;return m((function(t){return Z(n,r,t,c)})),j.current=h(h({},j.current),{},b({},n,e)),function(){m((function(r){return g(r,n)})),j.current=g(j.current,n)}}),[c]),I=(0,w.useCallback)((function(n,r){m((function(t){var e=null!=r?r:!t[n],i=Z(n,e,t,c);return d().then((function(){for(var n in t){var r=j.current[n];r&&t[n]!=i[n]&&r(i[n])}})),i}))}),[c]),M=(0,w.useCallback)((function(n,r){var t;return null!==(t=y[n])&&void 0!==t?t:r}),[y]),z=(0,w.useCallback)((function(n){if(n)n in y&&I(n);else if(!c)for(var r in y)I(r)}),[y,I,c]),Y=(0,w.useCallback)((function(n){if(n)M(n,!0)||I(n);else if(!c)for(var r in y)M(r,!0)||I(r)}),[y,I,M,c]),C=(0,w.useCallback)((function(n){if(n)M(n,!1)&&I(n);else for(var r in y)M(r,!1)&&I(r)}),[y,I,M]);(0,w.useImperativeHandle)(r,(function(){return{toggle:z,expand:Y,collapse:C}}),[z,C,Y]);var E=(0,w.useMemo)((function(){return{registerSection:A,toggleExpanded:I,isExpanded:M,animate:e,prefix:x}}),[A,I,M,e,x]);return S.createElement(o,h({id:f},l),S.createElement(K.Provider,{value:E},u))}(s(n,A),r)}return r.$$typeof=I,r.render=r,r.prototype.isReactComponent=!0,r.Bl=!0,r}();function Z(n,r,t,e){var i;if(e&&r)for(var o in i=b({},n,r),t)o!=n&&(i[o]=!1);else i=h(h({},t),{},b({},n,r));return i}function nn(n){var r=n.animate,t=void 0!==r&&r,e=n.as,i=void 0===e?"section":e,o=n.children,u=n.expanded,a=void 0!==u&&u,c=n.id,f=n.onExpandStateChange,l=s(n,J),v=p((0,w.useState)(R),1)[0],b=c||v,y=p((0,w.useState)(V),1)[0],m=p((0,w.useState)(a),2),g=m[0],j=m[1],O=p((0,w.useState)(null),2),x=O[0],A=O[1],I=p((0,w.useState)(null),2),M=I[0],z=I[1],Y=(0,w.useContext)(K),C=Y.animate,E=Y.isExpanded,k=Y.prefix,q=Y.registerSection,B=Y.toggleExpanded,H=E?E(b,a):g,_=null!=C?C:t,P=x||"".concat(k||"a","-content-").concat(b,"-").concat(y),T=M||"".concat(k||"a","-header-").concat(b,"-").concat(y),U=(0,w.useRef)(null);U.current=f,(0,w.useLayoutEffect)((function(){if(q)return q(b,a,U)}),[q,b,a]);var W=(0,w.useCallback)((function(n){B?B(b,n):j((function(r){var t=null!=n?n:!r;return d().then((function(){var n=U.current;n&&n(t)})),t}))}),[b,B]),$=(0,w.useMemo)((function(){return{animate:_,contentId:P,headerId:T,expanded:H,toggleHandler:W,setContentId:A,setHeaderId:z}}),[_,P,T,H,W]);return S.createElement(i,h({},l),S.createElement(L.Provider,{value:$},o))}function rn(n){var r="class",t="tabIndex",e=n.as,i=void 0===e?"div":e,o=n.children,u=n.id,a=n.role,c=void 0===a?"button":a,f=n[r],v=void 0===f?"":f,d=n[t],b=void 0===d?0:d,y=s(n,["as","children","id","role",r,t].map(l)),p=(0,w.useContext)(L),m=p.contentId,g=p.expanded,j=p.headerId,O=p.setHeaderId,x=p.toggleHandler;return(0,w.useLayoutEffect)((function(){O&&O(u)}),[O,u]),S.createElement(i,h(h({},y),{},{id:j,role:c,class:"".concat(v," ").concat("section-child-00fce3c"," ").concat("header-00fce3c"),tabIndex:b,"aria-controls":m,onClick:function(){return x()},"aria-expanded":String(g)}),o)}function tn(n){var r="class",t=n.as,e=void 0===t?"div":t,i=n.children,o=n.id,u=n.role,a=void 0===u?"region":u,c=n[r],f=void 0===c?"":c,v=s(n,["as","children","id","role",r].map(l)),d=(0,w.useRef)(null),b=(0,w.useRef)(!1),y=(0,w.useContext)(L),p=y.animate,m=y.contentId,g=y.expanded,j=y.headerId,O=y.setContentId;return(0,w.useEffect)((function(){return b.current=!0,function(){return b.current=!1}}),[]),(0,w.useLayoutEffect)((function(){O&&O(o)}),[O,o]),(0,w.useLayoutEffect)((function(){var n=b.current,r=d.current;if(p&&n&&r&&r.animate)return g?function(n){return $(n,(function(){var r=T(n,"height"),t=T(n,"opacity"),e=T(n,"overflowY");U(n,{height:0,opacity:0,overflowY:"auto"});var i=n.scrollHeight;U(n,{height:r,opacity:t,overflowY:e});var o=D(i);return n.animate([{height:0,opacity:0,overflowY:"hidden"},{height:i+"px",opacity:1,overflowY:"hidden"}],{easing:"cubic-bezier(0.47, 0, 0.745, 0.715)",duration:o})}))}(r):function(n){return $(n,(function(){var r=n.offsetHeight,t=D(r);return n.animate([{height:r+"px",opacity:1,overflowY:"hidden"},{height:"0",opacity:0,overflowY:"hidden"}],{easing:"cubic-bezier(0.39, 0.575, 0.565, 1)",duration:t})}))}(r)}),[g,p]),S.createElement(q,{renderable:g},S.createElement(e,h(h({},v),{},{ref:d,class:f+" section-child-00fce3c"+(g?"":" content-hidden-00fce3c"),id:m,"aria-labelledby":j,role:a}),i))}X.displayName="Accordion";

@@ -109,38 +109,8 @@ var __create = Object.create;

// src/preact/index.js
var preact = __toModule(require("preact"));
var preactDOM = __toModule(require("preact"));
var hooks = __toModule(require("preact/hooks"));
function createElement2(unusedType, unusedProps, var_args) {
return preact.createElement.apply(void 0, arguments);
}
function createContext2(value) {
return preact.createContext(value, void 0);
}
function useState2(initial) {
return hooks.useState(initial);
}
function useRef2(initial) {
return hooks.useRef(initial);
}
function useEffect2(effect, opt_deps) {
hooks.useEffect(effect, opt_deps);
}
function useLayoutEffect2(effect, opt_deps) {
hooks.useLayoutEffect(effect, opt_deps);
}
function useContext2(context2) {
return hooks.useContext(context2);
}
function useMemo2(cb, opt_deps) {
return hooks.useMemo(cb, opt_deps);
}
function useCallback2(cb, opt_deps) {
return hooks.useCallback(cb, opt_deps);
}
function useImperativeHandle2(ref, create, opt_deps) {
return hooks.useImperativeHandle(ref, create, opt_deps);
}
var import_dom = __toModule(require("preact"));
var import_preact = __toModule(require("preact"));
var import_hooks = __toModule(require("preact/hooks"));
// src/preact/compat.js
var import_preact = __toModule(require("preact"));
var import_preact2 = __toModule(require("preact"));

@@ -169,4 +139,4 @@ // src/core/mode/prod.js

var REACT_FORWARD_SYMBOL = typeof Symbol !== "undefined" && (Symbol.for == null ? void 0 : Symbol.for("react.forward_ref")) || 3911;
var oldDiff = import_preact.options["__b"];
import_preact.options["__b"] = newDiff;
var oldDiff = import_preact2.options["__b"];
import_preact2.options["__b"] = newDiff;
function newDiff(vnode) {

@@ -215,3 +185,3 @@ var _vnode$type;

function getAmpContext() {
return context || (context = createContext2({
return context || (context = (0, import_preact.createContext)({
renderable: true,

@@ -229,3 +199,3 @@ playable: true,

var notify = notifyProp || parent.notify;
var current = useMemo2(function() {
var current = (0, import_hooks.useMemo)(function() {
return {

@@ -239,3 +209,3 @@ renderable: renderable,

var AmpContext = getAmpContext();
return createElement2(AmpContext.Provider, {
return import_preact.createElement(AmpContext.Provider, {
children: children,

@@ -247,3 +217,3 @@ value: current

var AmpContext = getAmpContext();
return useContext2(AmpContext);
return (0, import_hooks.useContext)(AmpContext);
}

@@ -454,4 +424,4 @@

}
var AccordionContext = createContext2({});
var SectionContext = createContext2({});
var AccordionContext = import_preact.createContext({});
var SectionContext = import_preact.createContext({});
var EMPTY_EXPANDED_MAP = {};

@@ -463,7 +433,7 @@ var EMPTY_EVENT_MAP = {};

var _ref$animate = _ref.animate, animate2 = _ref$animate === void 0 ? false : _ref$animate, _ref$as = _ref.as, Comp = _ref$as === void 0 ? "section" : _ref$as, children = _ref.children, _ref$expandSingleSect = _ref.expandSingleSection, expandSingleSection = _ref$expandSingleSect === void 0 ? false : _ref$expandSingleSect, id = _ref.id, rest = _objectWithoutPropertiesLoose2(_ref, _excluded2);
var _useState = useState2(EMPTY_EXPANDED_MAP), expandedMap = _useState[0], setExpandedMap = _useState[1];
var eventMapRef = useRef2(EMPTY_EVENT_MAP);
var _useState2 = useState2(generateRandomId), randomPrefix = _useState2[0];
var _useState = (0, import_hooks.useState)(EMPTY_EXPANDED_MAP), expandedMap = _useState[0], setExpandedMap = _useState[1];
var eventMapRef = (0, import_hooks.useRef)(EMPTY_EVENT_MAP);
var _useState2 = (0, import_hooks.useState)(generateRandomId), randomPrefix = _useState2[0];
var prefix = id || "a" + randomPrefix;
useEffect2(function() {
(0, import_hooks.useEffect)(function() {
if (!expandSingleSection) {

@@ -481,3 +451,3 @@ return;

}, [expandSingleSection]);
var registerSection = useCallback2(function(id2, defaultExpanded, _ref2) {
var registerSection = (0, import_hooks.useCallback)(function(id2, defaultExpanded, _ref2) {
var _extends2;

@@ -496,3 +466,3 @@ var onExpandStateChange = _ref2.current;

}, [expandSingleSection]);
var toggleExpanded = useCallback2(function(id2, opt_expand) {
var toggleExpanded = (0, import_hooks.useCallback)(function(id2, opt_expand) {
setExpandedMap(function(expandedMap2) {

@@ -512,7 +482,7 @@ var newExpanded = opt_expand != null ? opt_expand : !expandedMap2[id2];

}, [expandSingleSection]);
var isExpanded = useCallback2(function(id2, defaultExpanded) {
var isExpanded = (0, import_hooks.useCallback)(function(id2, defaultExpanded) {
var _expandedMap$id;
return (_expandedMap$id = expandedMap[id2]) != null ? _expandedMap$id : defaultExpanded;
}, [expandedMap]);
var toggle = useCallback2(function(id2) {
var toggle = (0, import_hooks.useCallback)(function(id2) {
if (id2) {

@@ -530,3 +500,3 @@ if (id2 in expandedMap) {

}, [expandedMap, toggleExpanded, expandSingleSection]);
var expand = useCallback2(function(id2) {
var expand = (0, import_hooks.useCallback)(function(id2) {
if (id2) {

@@ -546,3 +516,3 @@ if (!isExpanded(id2, true)) {

}, [expandedMap, toggleExpanded, isExpanded, expandSingleSection]);
var collapse = useCallback2(function(id2) {
var collapse = (0, import_hooks.useCallback)(function(id2) {
if (id2) {

@@ -560,3 +530,3 @@ if (isExpanded(id2, false)) {

}, [expandedMap, toggleExpanded, isExpanded]);
useImperativeHandle2(ref, function() {
(0, import_hooks.useImperativeHandle)(ref, function() {
return {

@@ -568,3 +538,3 @@ toggle: toggle,

}, [toggle, collapse, expand]);
var context2 = useMemo2(function() {
var context2 = (0, import_hooks.useMemo)(function() {
return {

@@ -578,5 +548,5 @@ registerSection: registerSection,

}, [registerSection, toggleExpanded, isExpanded, animate2, prefix]);
return createElement2(Comp, _extends({
return import_preact.createElement(Comp, _extends({
id: id
}, rest), createElement2(AccordionContext.Provider, {
}, rest), import_preact.createElement(AccordionContext.Provider, {
value: context2

@@ -605,9 +575,9 @@ }, children));

var _ref3$animate = _ref3.animate, defaultAnimate = _ref3$animate === void 0 ? false : _ref3$animate, _ref3$as = _ref3.as, Comp = _ref3$as === void 0 ? "section" : _ref3$as, children = _ref3.children, _ref3$expanded = _ref3.expanded, defaultExpanded = _ref3$expanded === void 0 ? false : _ref3$expanded, propId = _ref3.id, onExpandStateChange = _ref3.onExpandStateChange, rest = _objectWithoutPropertiesLoose2(_ref3, _excluded22);
var _useState3 = useState2(generateSectionId), genId = _useState3[0];
var _useState3 = (0, import_hooks.useState)(generateSectionId), genId = _useState3[0];
var id = propId || genId;
var _useState4 = useState2(generateRandomId), suffix = _useState4[0];
var _useState5 = useState2(defaultExpanded), expandedState = _useState5[0], setExpandedState = _useState5[1];
var _useState6 = useState2(null), contentIdState = _useState6[0], setContentIdState = _useState6[1];
var _useState7 = useState2(null), headerIdState = _useState7[0], setHeaderIdState = _useState7[1];
var _useContext = useContext2(AccordionContext), contextAnimate = _useContext.animate, isExpanded = _useContext.isExpanded, prefix = _useContext.prefix, registerSection = _useContext.registerSection, toggleExpanded = _useContext.toggleExpanded;
var _useState4 = (0, import_hooks.useState)(generateRandomId), suffix = _useState4[0];
var _useState5 = (0, import_hooks.useState)(defaultExpanded), expandedState = _useState5[0], setExpandedState = _useState5[1];
var _useState6 = (0, import_hooks.useState)(null), contentIdState = _useState6[0], setContentIdState = _useState6[1];
var _useState7 = (0, import_hooks.useState)(null), headerIdState = _useState7[0], setHeaderIdState = _useState7[1];
var _useContext = (0, import_hooks.useContext)(AccordionContext), contextAnimate = _useContext.animate, isExpanded = _useContext.isExpanded, prefix = _useContext.prefix, registerSection = _useContext.registerSection, toggleExpanded = _useContext.toggleExpanded;
var expanded = isExpanded ? isExpanded(id, defaultExpanded) : expandedState;

@@ -617,5 +587,5 @@ var animate2 = contextAnimate != null ? contextAnimate : defaultAnimate;

var headerId = headerIdState || (prefix || "a") + "-header-" + id + "-" + suffix;
var onExpandStateChangeRef = useRef2(null);
var onExpandStateChangeRef = (0, import_hooks.useRef)(null);
onExpandStateChangeRef.current = onExpandStateChange;
useLayoutEffect2(function() {
(0, import_hooks.useLayoutEffect)(function() {
if (registerSection) {

@@ -625,3 +595,3 @@ return registerSection(id, defaultExpanded, onExpandStateChangeRef);

}, [registerSection, id, defaultExpanded]);
var toggleHandler = useCallback2(function(opt_expand) {
var toggleHandler = (0, import_hooks.useCallback)(function(opt_expand) {
if (toggleExpanded) {

@@ -642,3 +612,3 @@ toggleExpanded(id, opt_expand);

}, [id, toggleExpanded]);
var context2 = useMemo2(function() {
var context2 = (0, import_hooks.useMemo)(function() {
return {

@@ -654,3 +624,3 @@ animate: animate2,

}, [animate2, contentId, headerId, expanded, toggleHandler]);
return createElement2(Comp, _extends({}, rest), createElement2(SectionContext.Provider, {
return import_preact.createElement(Comp, _extends({}, rest), import_preact.createElement(SectionContext.Provider, {
value: context2

@@ -661,4 +631,4 @@ }, children));

var _propName = propName("class"), _propName2 = propName("tabIndex"), _ref4$as = _ref4.as, Comp = _ref4$as === void 0 ? "div" : _ref4$as, children = _ref4.children, id = _ref4.id, _ref4$role = _ref4.role, role = _ref4$role === void 0 ? "button" : _ref4$role, _ref4$_propName = _ref4[_propName], className = _ref4$_propName === void 0 ? "" : _ref4$_propName, _ref4$_propName2 = _ref4[_propName2], tabIndex = _ref4$_propName2 === void 0 ? 0 : _ref4$_propName2, rest = _objectWithoutPropertiesLoose2(_ref4, ["as", "children", "id", "role", _propName, _propName2].map(_toPropertyKey));
var _useContext2 = useContext2(SectionContext), contentId = _useContext2.contentId, expanded = _useContext2.expanded, headerId = _useContext2.headerId, setHeaderId = _useContext2.setHeaderId, toggleHandler = _useContext2.toggleHandler;
useLayoutEffect2(function() {
var _useContext2 = (0, import_hooks.useContext)(SectionContext), contentId = _useContext2.contentId, expanded = _useContext2.expanded, headerId = _useContext2.headerId, setHeaderId = _useContext2.setHeaderId, toggleHandler = _useContext2.toggleHandler;
(0, import_hooks.useLayoutEffect)(function() {
if (setHeaderId) {

@@ -668,3 +638,3 @@ setHeaderId(id);

}, [setHeaderId, id]);
return createElement2(Comp, _extends({}, rest, {
return import_preact.createElement(Comp, _extends({}, rest, {
id: headerId,

@@ -684,6 +654,6 @@ role: role,

var _propName3 = propName("class"), _ref5$as = _ref5.as, Comp = _ref5$as === void 0 ? "div" : _ref5$as, children = _ref5.children, id = _ref5.id, _ref5$role = _ref5.role, role = _ref5$role === void 0 ? "region" : _ref5$role, _ref5$_propName = _ref5[_propName3], className = _ref5$_propName === void 0 ? "" : _ref5$_propName, rest = _objectWithoutPropertiesLoose2(_ref5, ["as", "children", "id", "role", _propName3].map(_toPropertyKey));
var ref = useRef2(null);
var hasMountedRef = useRef2(false);
var _useContext3 = useContext2(SectionContext), animate2 = _useContext3.animate, contentId = _useContext3.contentId, expanded = _useContext3.expanded, headerId = _useContext3.headerId, setContentId = _useContext3.setContentId;
useEffect2(function() {
var ref = (0, import_hooks.useRef)(null);
var hasMountedRef = (0, import_hooks.useRef)(false);
var _useContext3 = (0, import_hooks.useContext)(SectionContext), animate2 = _useContext3.animate, contentId = _useContext3.contentId, expanded = _useContext3.expanded, headerId = _useContext3.headerId, setContentId = _useContext3.setContentId;
(0, import_hooks.useEffect)(function() {
hasMountedRef.current = true;

@@ -694,3 +664,3 @@ return function() {

}, []);
useLayoutEffect2(function() {
(0, import_hooks.useLayoutEffect)(function() {
if (setContentId) {

@@ -700,3 +670,3 @@ setContentId(id);

}, [setContentId, id]);
useLayoutEffect2(function() {
(0, import_hooks.useLayoutEffect)(function() {
var hasMounted = hasMountedRef.current;

@@ -709,5 +679,5 @@ var content = ref.current;

}, [expanded, animate2]);
return createElement2(WithAmpContext, {
return import_preact.createElement(WithAmpContext, {
renderable: expanded
}, createElement2(Comp, _extends({}, rest, {
}, import_preact.createElement(Comp, _extends({}, rest, {
ref: ref,

@@ -714,0 +684,0 @@ class: obj_str_default((_objstr = {}, _objstr[className] = true, _objstr[$sectionChild] = true, _objstr[$contentHidden] = !expanded, _objstr)),

@@ -59,52 +59,5 @@ // extensions/amp-accordion/1.0/component.jss.js

// src/preact/index.js
import {
cloneElement,
createContext,
createElement,
createRef
} from "preact";
import {
hydrate,
render
} from "preact";
import {
useCallback,
useContext,
useEffect,
useImperativeHandle,
useLayoutEffect,
useMemo,
useRef,
useState
} from "preact/hooks";
function createElement2(unusedType, unusedProps, var_args) {
return createElement.apply(void 0, arguments);
}
function createContext2(value) {
return createContext(value, void 0);
}
function useState2(initial) {
return useState(initial);
}
function useRef2(initial) {
return useRef(initial);
}
function useEffect2(effect, opt_deps) {
useEffect(effect, opt_deps);
}
function useLayoutEffect2(effect, opt_deps) {
useLayoutEffect(effect, opt_deps);
}
function useContext2(context2) {
return useContext(context2);
}
function useMemo2(cb, opt_deps) {
return useMemo(cb, opt_deps);
}
function useCallback2(cb, opt_deps) {
return useCallback(cb, opt_deps);
}
function useImperativeHandle2(ref, create, opt_deps) {
return useImperativeHandle(ref, create, opt_deps);
}
import { hydrate, render } from "preact";
import { createElement, cloneElement, createRef, createContext } from "preact";
import { useState, useRef, useEffect, useLayoutEffect, useContext, useMemo, useCallback, useImperativeHandle } from "preact/hooks";

@@ -187,3 +140,3 @@ // src/preact/compat.js

function getAmpContext() {
return context || (context = createContext2({
return context || (context = createContext({
renderable: true,

@@ -206,3 +159,3 @@ playable: true,

const notify = notifyProp || parent.notify;
const current = useMemo2(() => ({
const current = useMemo(() => ({
renderable,

@@ -214,3 +167,3 @@ playable,

const AmpContext = getAmpContext();
return createElement2(AmpContext.Provider, {
return createElement(AmpContext.Provider, {
children,

@@ -222,3 +175,3 @@ value: current

const AmpContext = getAmpContext();
return useContext2(AmpContext);
return useContext(AmpContext);
}

@@ -423,4 +376,4 @@

}
var AccordionContext = createContext2({});
var SectionContext = createContext2({});
var AccordionContext = createContext({});
var SectionContext = createContext({});
var EMPTY_EXPANDED_MAP = {};

@@ -438,7 +391,7 @@ var EMPTY_EVENT_MAP = {};

} = _ref, rest = _objectWithoutPropertiesLoose2(_ref, _excluded2);
const [expandedMap, setExpandedMap] = useState2(EMPTY_EXPANDED_MAP);
const eventMapRef = useRef2(EMPTY_EVENT_MAP);
const [randomPrefix] = useState2(generateRandomId);
const [expandedMap, setExpandedMap] = useState(EMPTY_EXPANDED_MAP);
const eventMapRef = useRef(EMPTY_EVENT_MAP);
const [randomPrefix] = useState(generateRandomId);
const prefix = id || `a${randomPrefix}`;
useEffect2(() => {
useEffect(() => {
if (!expandSingleSection) {

@@ -456,3 +409,3 @@ return;

}, [expandSingleSection]);
const registerSection = useCallback2((id2, defaultExpanded, {
const registerSection = useCallback((id2, defaultExpanded, {
current: onExpandStateChange

@@ -471,3 +424,3 @@ }) => {

}, [expandSingleSection]);
const toggleExpanded = useCallback2((id2, opt_expand) => {
const toggleExpanded = useCallback((id2, opt_expand) => {
setExpandedMap((expandedMap2) => {

@@ -487,7 +440,7 @@ const newExpanded = opt_expand != null ? opt_expand : !expandedMap2[id2];

}, [expandSingleSection]);
const isExpanded = useCallback2((id2, defaultExpanded) => {
const isExpanded = useCallback((id2, defaultExpanded) => {
var _expandedMap$id;
return (_expandedMap$id = expandedMap[id2]) != null ? _expandedMap$id : defaultExpanded;
}, [expandedMap]);
const toggle = useCallback2((id2) => {
const toggle = useCallback((id2) => {
if (id2) {

@@ -505,3 +458,3 @@ if (id2 in expandedMap) {

}, [expandedMap, toggleExpanded, expandSingleSection]);
const expand = useCallback2((id2) => {
const expand = useCallback((id2) => {
if (id2) {

@@ -521,3 +474,3 @@ if (!isExpanded(id2, true)) {

}, [expandedMap, toggleExpanded, isExpanded, expandSingleSection]);
const collapse = useCallback2((id2) => {
const collapse = useCallback((id2) => {
if (id2) {

@@ -535,3 +488,3 @@ if (isExpanded(id2, false)) {

}, [expandedMap, toggleExpanded, isExpanded]);
useImperativeHandle2(ref, () => ({
useImperativeHandle(ref, () => ({
toggle,

@@ -541,3 +494,3 @@ expand,

}), [toggle, collapse, expand]);
const context2 = useMemo2(() => ({
const context2 = useMemo(() => ({
registerSection,

@@ -549,5 +502,5 @@ toggleExpanded,

}), [registerSection, toggleExpanded, isExpanded, animate2, prefix]);
return createElement2(Comp, _extends({
return createElement(Comp, _extends({
id
}, rest), createElement2(AccordionContext.Provider, {
}, rest), createElement(AccordionContext.Provider, {
value: context2

@@ -585,8 +538,8 @@ }, children));

} = _ref2, rest = _objectWithoutPropertiesLoose2(_ref2, _excluded22);
const [genId] = useState2(generateSectionId);
const [genId] = useState(generateSectionId);
const id = propId || genId;
const [suffix] = useState2(generateRandomId);
const [expandedState, setExpandedState] = useState2(defaultExpanded);
const [contentIdState, setContentIdState] = useState2(null);
const [headerIdState, setHeaderIdState] = useState2(null);
const [suffix] = useState(generateRandomId);
const [expandedState, setExpandedState] = useState(defaultExpanded);
const [contentIdState, setContentIdState] = useState(null);
const [headerIdState, setHeaderIdState] = useState(null);
const {

@@ -598,3 +551,3 @@ animate: contextAnimate,

toggleExpanded
} = useContext2(AccordionContext);
} = useContext(AccordionContext);
const expanded = isExpanded ? isExpanded(id, defaultExpanded) : expandedState;

@@ -604,5 +557,5 @@ const animate2 = contextAnimate != null ? contextAnimate : defaultAnimate;

const headerId = headerIdState || `${prefix || "a"}-header-${id}-${suffix}`;
const onExpandStateChangeRef = useRef2(null);
const onExpandStateChangeRef = useRef(null);
onExpandStateChangeRef.current = onExpandStateChange;
useLayoutEffect2(() => {
useLayoutEffect(() => {
if (registerSection) {

@@ -612,3 +565,3 @@ return registerSection(id, defaultExpanded, onExpandStateChangeRef);

}, [registerSection, id, defaultExpanded]);
const toggleHandler = useCallback2((opt_expand) => {
const toggleHandler = useCallback((opt_expand) => {
if (toggleExpanded) {

@@ -629,3 +582,3 @@ toggleExpanded(id, opt_expand);

}, [id, toggleExpanded]);
const context2 = useMemo2(() => ({
const context2 = useMemo(() => ({
animate: animate2,

@@ -639,3 +592,3 @@ contentId,

}), [animate2, contentId, headerId, expanded, toggleHandler]);
return createElement2(Comp, _extends({}, rest), createElement2(SectionContext.Provider, {
return createElement(Comp, _extends({}, rest), createElement(SectionContext.Provider, {
value: context2

@@ -659,4 +612,4 @@ }, children));

toggleHandler
} = useContext2(SectionContext);
useLayoutEffect2(() => {
} = useContext(SectionContext);
useLayoutEffect(() => {
if (setHeaderId) {

@@ -666,3 +619,3 @@ setHeaderId(id);

}, [setHeaderId, id]);
return createElement2(Comp, _extends({}, rest, {
return createElement(Comp, _extends({}, rest, {
id: headerId,

@@ -685,4 +638,4 @@ role,

} = _ref4, rest = _objectWithoutPropertiesLoose2(_ref4, ["as", "children", "id", "role", _propName3].map(_toPropertyKey));
const ref = useRef2(null);
const hasMountedRef = useRef2(false);
const ref = useRef(null);
const hasMountedRef = useRef(false);
const {

@@ -694,8 +647,8 @@ animate: animate2,

setContentId
} = useContext2(SectionContext);
useEffect2(() => {
} = useContext(SectionContext);
useEffect(() => {
hasMountedRef.current = true;
return () => hasMountedRef.current = false;
}, []);
useLayoutEffect2(() => {
useLayoutEffect(() => {
if (setContentId) {

@@ -705,3 +658,3 @@ setContentId(id);

}, [setContentId, id]);
useLayoutEffect2(() => {
useLayoutEffect(() => {
const hasMounted = hasMountedRef.current;

@@ -714,5 +667,5 @@ const content = ref.current;

}, [expanded, animate2]);
return createElement2(WithAmpContext, {
return createElement(WithAmpContext, {
renderable: expanded
}, createElement2(Comp, _extends({}, rest, {
}, createElement(Comp, _extends({}, rest, {
ref,

@@ -719,0 +672,0 @@ class: obj_str_default({

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

var n;function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function e(n){var e=function(n,e){if("object"!==t(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var o=r.call(n,"string");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===t(e)?e:String(e)}function r(){return n||(n=Promise.resolve(void 0))}function o(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function i(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function c(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?i(Object(e),!0).forEach((function(t){o(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function a(n,t){if(null==n)return{};var e,r,o={},i=Object.keys(n);for(r=0;r<i.length;r++)e=i[r],t.indexOf(e)>=0||(o[e]=n[e]);return o}var{hasOwnProperty:u,toString:l}=Object.prototype;function f(n,t){return Object.keys(n).reduce(((e,r)=>(t.includes(r)||(e[r]=n[r]),e)),{})}import{cloneElement as d,createContext as s,createElement as b,createRef as p}from"preact";import{hydrate as h,render as v}from"preact";import{useCallback as g,useContext as m,useEffect as y,useImperativeHandle as S,useLayoutEffect as x,useMemo as j,useRef as O,useState as w}from"preact/hooks";function I(n,t,e){return b.apply(void 0,arguments)}function $(n){return s(n,void 0)}function z(n){return w(n)}function E(n){return O(n)}function M(n,t){y(n,t)}function Y(n,t){x(n,t)}function C(n){return m(n)}function k(n,t){return j(n,t)}function H(n,t){return g(n,t)}import{options as P,toChildArray as A}from"preact";var T,W=["ref"],_="undefined"!=typeof Symbol&&(null===(T=Symbol.for)||void 0===T?void 0:T.call(Symbol,"react.forward_ref"))||3911,q=P.__b;P.__b=function(n){var t;null!==(t=n.type)&&void 0!==t&&t.gf&&n.ref&&(n.props.ref=n.ref,n.ref=null),null==q||q(n)};var B,D,F=["auto","lazy","eager","unload"],G={auto:0,lazy:1,eager:2,unload:3};function J(n,t){const e=G[n]||0,r=G[t]||0,o=Math.max(e,r);return F[o]}function K(){return B||(B=$({renderable:!0,playable:!0,loading:"auto"}))}function L({children:n,loading:t="auto",notify:e,playable:r=!0,renderable:o=!0}){const i=C(K()),c=o&&i.renderable,a=c&&r&&i.playable,u=J(c?"auto":"lazy",J(t,i.loading)),l=e||i.notify,f=k((()=>({renderable:c,playable:a,loading:u,notify:l})),[c,a,u,l]);return I(K().Provider,{children:n,value:f})}var N=["Webkit","webkit","Moz","moz","ms","O","o"];function Q(n,t,e){if(X(t))return t;D||(D=Object.create(null));let r=D[t];if(!r||e){if(r=t,void 0===n[t]){const e=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(t),o=function(n,t){for(let e=0;e<N.length;e++){const r=N[e]+t;if(void 0!==n[r])return r}return""}(n,e);void 0!==n[o]&&(r=o)}e||(D[t]=r)}return r}function R(n,t,e,r,o){const i=Q(n.style,t,o);if(!i)return;const c=r?e+r:e;X(i)?n.style.setProperty(i,c):n.style[i]=c}function U(n,t,e){const r=Q(n.style,t,e);if(r)return X(r)?n.style.getPropertyValue(r):n.style[r]}function V(n,t){for(const e in t)R(n,e,t[e])}function X(n){return n.startsWith("--")}function Z(n,t,e){n.classList.add("i-amphtml-animating");let r=t();return r.onfinish=r.oncancel=()=>{r=null,e&&e(),n.classList.remove("i-amphtml-animating")},()=>{r&&r.cancel()}}function nn(n){const t=window.innerHeight,e=Math.abs(n)/t*500;return Math.min(Math.max(e,200),500)}var tn=["animate","as","children","expandSingleSection","id"],en=["animate","as","children","expanded","id","onExpandStateChange"],rn=$({}),on=$({}),cn={},an={},un=function(){let n=0;return()=>String(++n)}(),ln=()=>String(Math.floor(1e5*Math.random())),fn=function(n){function t(n){const{ref:t}=n;return function(n,t){let{animate:e=!1,as:o="section",children:i,expandSingleSection:u=!1,id:l}=n,d=a(n,tn);const[s,b]=z(cn),p=E(an),[h]=z(ln),v=l||`a${h}`;M((()=>{u&&b((n=>{const t={};let e=0;for(const r in n)t[r]=n[r]&&0==e++;return t}))}),[u]);const g=H(((n,t,{current:e})=>(b((e=>dn(n,t,e,u))),p.current=c(c({},p.current),{},{[n]:e}),()=>{b((t=>f(t,n))),p.current=f(p.current,n)})),[u]),m=H(((n,t)=>{b((e=>{const o=null!=t?t:!e[n],i=dn(n,o,e,u);return r().then((()=>{for(const n in e){const t=p.current[n];t&&e[n]!=i[n]&&t(i[n])}})),i}))}),[u]),y=H(((n,t)=>{var e;return null!==(e=s[n])&&void 0!==e?e:t}),[s]),x=H((n=>{if(n)n in s&&m(n);else if(!u)for(const n in s)m(n)}),[s,m,u]),j=H((n=>{if(n)y(n,!0)||m(n);else if(!u)for(const n in s)y(n,!0)||m(n)}),[s,m,y,u]),O=H((n=>{if(n)y(n,!1)&&m(n);else for(const n in s)y(n,!1)&&m(n)}),[s,m,y]);!function(n,t,e){S(n,(()=>({toggle:x,expand:j,collapse:O})),e)}(t,0,[x,O,j]);const w=k((()=>({registerSection:g,toggleExpanded:m,isExpanded:y,animate:e,prefix:v})),[g,m,y,e,v]);return I(o,c({id:l},d),I(rn.Provider,{value:w},i))}(a(n,W),t)}return t.$$typeof=_,t.render=t,t.prototype.isReactComponent=!0,t.gf=!0,t}();function dn(n,t,e,r){let o;if(r&&t){o={[n]:t};for(const t in e)t!=n&&(o[t]=!1)}else o=c(c({},e),{},{[n]:t});return o}function sn(n){let{animate:t=!1,as:e="section",children:o,expanded:i=!1,id:u,onExpandStateChange:l}=n,f=a(n,en);const[d]=z(un),s=u||d,[b]=z(ln),[p,h]=z(i),[v,g]=z(null),[m,y]=z(null),{animate:S,isExpanded:x,prefix:j,registerSection:O,toggleExpanded:w}=C(rn),$=x?x(s,i):p,M=null!=S?S:t,P=v||`${j||"a"}-content-${s}-${b}`,A=m||`${j||"a"}-header-${s}-${b}`,T=E(null);T.current=l,Y((()=>{if(O)return O(s,i,T)}),[O,s,i]);const W=H((n=>{w?w(s,n):h((t=>{const e=null!=n?n:!t;return r().then((()=>{const n=T.current;n&&n(e)})),e}))}),[s,w]),_=k((()=>({animate:M,contentId:P,headerId:A,expanded:$,toggleHandler:W,setContentId:g,setHeaderId:y})),[M,P,A,$,W]);return I(e,c({},f),I(on.Provider,{value:_},o))}function bn(n){let t="class",r="tabIndex",{as:o="div",children:i,id:u,role:l="button",[t]:f="",[r]:d=0}=n,s=a(n,["as","children","id","role",t,r].map(e));const{contentId:b,expanded:p,headerId:h,setHeaderId:v,toggleHandler:g}=C(on);return Y((()=>{v&&v(u)}),[v,u]),I(o,c(c({},s),{},{id:h,role:l,class:`${f} section-child-00fce3c header-00fce3c`,tabIndex:d,"aria-controls":b,onClick:()=>g(),"aria-expanded":String(p)}),i)}function pn(n){let t="class",{as:r="div",children:o,id:i,role:u="region",[t]:l=""}=n,f=a(n,["as","children","id","role",t].map(e));const d=E(null),s=E(!1),{animate:b,contentId:p,expanded:h,headerId:v,setContentId:g}=C(on);return M((()=>(s.current=!0,()=>s.current=!1)),[]),Y((()=>{g&&g(i)}),[g,i]),Y((()=>{const n=s.current,t=d.current;if(b&&n&&t&&t.animate)return h?function(n){return Z(n,(()=>{const t=U(n,"height"),e=U(n,"opacity"),r=U(n,"overflowY");V(n,{height:0,opacity:0,overflowY:"auto"});const o=n.scrollHeight;V(n,{height:t,opacity:e,overflowY:r});const i=nn(o);return n.animate([{height:0,opacity:0,overflowY:"hidden"},{height:o+"px",opacity:1,overflowY:"hidden"}],{easing:"cubic-bezier(0.47, 0, 0.745, 0.715)",duration:i})}))}(t):function(n){return Z(n,(()=>{const t=n.offsetHeight,e=nn(t);return n.animate([{height:t+"px",opacity:1,overflowY:"hidden"},{height:"0",opacity:0,overflowY:"hidden"}],{easing:"cubic-bezier(0.39, 0.575, 0.565, 1)",duration:e})}))}(t)}),[h,b]),I(L,{renderable:h},I(r,c(c({},f),{},{ref:d,class:l+" section-child-00fce3c"+(h?"":" content-hidden-00fce3c"),id:p,"aria-labelledby":v,role:u}),o))}fn.displayName="Accordion";export{fn as BentoAccordion,pn as BentoAccordionContent,bn as BentoAccordionHeader,sn as BentoAccordionSection};
var n;function e(n){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function t(n){var t=function(n,t){if("object"!==e(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var o=r.call(n,"string");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===e(t)?t:String(t)}function r(){return n||(n=Promise.resolve(void 0))}function o(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function i(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 c(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?i(Object(t),!0).forEach((function(e){o(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function a(n,e){if(null==n)return{};var t,r,o={},i=Object.keys(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)>=0||(o[t]=n[t]);return o}var{hasOwnProperty:l,toString:u}=Object.prototype;function d(n,e){return Object.keys(n).reduce(((t,r)=>(e.includes(r)||(t[r]=n[r]),t)),{})}import{hydrate as f,render as s}from"preact";import{createElement as b,cloneElement as p,createRef as h,createContext as g}from"preact";import{useState as m,useRef as v,useEffect as y,useLayoutEffect as S,useContext as x,useMemo as j,useCallback as O,useImperativeHandle as w}from"preact/hooks";import{options as I,toChildArray as $}from"preact";var z,E=["ref"],M="undefined"!=typeof Symbol&&(null===(z=Symbol.for)||void 0===z?void 0:z.call(Symbol,"react.forward_ref"))||3911,Y=I.__b;I.__b=function(n){var e;null!==(e=n.type)&&void 0!==e&&e.gf&&n.ref&&(n.props.ref=n.ref,n.ref=null),null==Y||Y(n)};var C,k,H=["auto","lazy","eager","unload"],P={auto:0,lazy:1,eager:2,unload:3};function A(n,e){const t=P[n]||0,r=P[e]||0,o=Math.max(t,r);return H[o]}function T(){return C||(C=g({renderable:!0,playable:!0,loading:"auto"}))}function W({children:n,loading:e="auto",notify:t,playable:r=!0,renderable:o=!0}){const i=function(){const n=T();return x(n)}(),c=o&&i.renderable,a=c&&r&&i.playable,l=A(c?"auto":"lazy",A(e,i.loading)),u=t||i.notify,d=j((()=>({renderable:c,playable:a,loading:l,notify:u})),[c,a,l,u]),f=T();return b(f.Provider,{children:n,value:d})}var _=["Webkit","webkit","Moz","moz","ms","O","o"];function q(n,e,t){if(G(e))return e;k||(k=Object.create(null));let r=k[e];if(!r||t){if(r=e,void 0===n[e]){const t=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(e),o=function(n,e){for(let t=0;t<_.length;t++){const r=_[t]+e;if(void 0!==n[r])return r}return""}(n,t);void 0!==n[o]&&(r=o)}t||(k[e]=r)}return r}function B(n,e,t,r,o){const i=q(n.style,e,o);if(!i)return;const c=r?t+r:t;G(i)?n.style.setProperty(i,c):n.style[i]=c}function D(n,e,t){const r=q(n.style,e,t);if(r)return G(r)?n.style.getPropertyValue(r):n.style[r]}function F(n,e){for(const t in e)B(n,t,e[t])}function G(n){return n.startsWith("--")}function J(n,e,t){n.classList.add("i-amphtml-animating");let r=e();return r.onfinish=r.oncancel=()=>{r=null,t&&t(),n.classList.remove("i-amphtml-animating")},()=>{r&&r.cancel()}}function K(n){const e=window.innerHeight,t=Math.abs(n)/e*500;return Math.min(Math.max(t,200),500)}var L=["animate","as","children","expandSingleSection","id"],N=["animate","as","children","expanded","id","onExpandStateChange"],Q=g({}),R=g({}),U={},V={},X=function(){let n=0;return()=>String(++n)}(),Z=()=>String(Math.floor(1e5*Math.random())),nn=function(n){function e(n){const{ref:e}=n;return function(n,e){let{animate:t=!1,as:o="section",children:i,expandSingleSection:l=!1,id:u}=n,f=a(n,L);const[s,p]=m(U),h=v(V),[g]=m(Z),S=u||`a${g}`;y((()=>{l&&p((n=>{const e={};let t=0;for(const r in n)e[r]=n[r]&&0==t++;return e}))}),[l]);const x=O(((n,e,{current:t})=>(p((t=>en(n,e,t,l))),h.current=c(c({},h.current),{},{[n]:t}),()=>{p((e=>d(e,n))),h.current=d(h.current,n)})),[l]),I=O(((n,e)=>{p((t=>{const o=null!=e?e:!t[n],i=en(n,o,t,l);return r().then((()=>{for(const n in t){const e=h.current[n];e&&t[n]!=i[n]&&e(i[n])}})),i}))}),[l]),$=O(((n,e)=>{var t;return null!==(t=s[n])&&void 0!==t?t:e}),[s]),z=O((n=>{if(n)n in s&&I(n);else if(!l)for(const n in s)I(n)}),[s,I,l]),E=O((n=>{if(n)$(n,!0)||I(n);else if(!l)for(const n in s)$(n,!0)||I(n)}),[s,I,$,l]),M=O((n=>{if(n)$(n,!1)&&I(n);else for(const n in s)$(n,!1)&&I(n)}),[s,I,$]);w(e,(()=>({toggle:z,expand:E,collapse:M})),[z,M,E]);const Y=j((()=>({registerSection:x,toggleExpanded:I,isExpanded:$,animate:t,prefix:S})),[x,I,$,t,S]);return b(o,c({id:u},f),b(Q.Provider,{value:Y},i))}(a(n,E),e)}return e.$$typeof=M,e.render=e,e.prototype.isReactComponent=!0,e.gf=!0,e}();function en(n,e,t,r){let o;if(r&&e){o={[n]:e};for(const e in t)e!=n&&(o[e]=!1)}else o=c(c({},t),{},{[n]:e});return o}function tn(n){let{animate:e=!1,as:t="section",children:o,expanded:i=!1,id:l,onExpandStateChange:u}=n,d=a(n,N);const[f]=m(X),s=l||f,[p]=m(Z),[h,g]=m(i),[y,w]=m(null),[I,$]=m(null),{animate:z,isExpanded:E,prefix:M,registerSection:Y,toggleExpanded:C}=x(Q),k=E?E(s,i):h,H=null!=z?z:e,P=y||`${M||"a"}-content-${s}-${p}`,A=I||`${M||"a"}-header-${s}-${p}`,T=v(null);T.current=u,S((()=>{if(Y)return Y(s,i,T)}),[Y,s,i]);const W=O((n=>{C?C(s,n):g((e=>{const t=null!=n?n:!e;return r().then((()=>{const n=T.current;n&&n(t)})),t}))}),[s,C]),_=j((()=>({animate:H,contentId:P,headerId:A,expanded:k,toggleHandler:W,setContentId:w,setHeaderId:$})),[H,P,A,k,W]);return b(t,c({},d),b(R.Provider,{value:_},o))}function rn(n){let e="class",r="tabIndex",{as:o="div",children:i,id:l,role:u="button",[e]:d="",[r]:f=0}=n,s=a(n,["as","children","id","role",e,r].map(t));const{contentId:p,expanded:h,headerId:g,setHeaderId:m,toggleHandler:v}=x(R);return S((()=>{m&&m(l)}),[m,l]),b(o,c(c({},s),{},{id:g,role:u,class:`${d} section-child-00fce3c header-00fce3c`,tabIndex:f,"aria-controls":p,onClick:()=>v(),"aria-expanded":String(h)}),i)}function on(n){let e="class",{as:r="div",children:o,id:i,role:l="region",[e]:u=""}=n,d=a(n,["as","children","id","role",e].map(t));const f=v(null),s=v(!1),{animate:p,contentId:h,expanded:g,headerId:m,setContentId:j}=x(R);return y((()=>(s.current=!0,()=>s.current=!1)),[]),S((()=>{j&&j(i)}),[j,i]),S((()=>{const n=s.current,e=f.current;if(p&&n&&e&&e.animate)return g?function(n){return J(n,(()=>{const e=D(n,"height"),t=D(n,"opacity"),r=D(n,"overflowY");F(n,{height:0,opacity:0,overflowY:"auto"});const o=n.scrollHeight;F(n,{height:e,opacity:t,overflowY:r});const i=K(o);return n.animate([{height:0,opacity:0,overflowY:"hidden"},{height:o+"px",opacity:1,overflowY:"hidden"}],{easing:"cubic-bezier(0.47, 0, 0.745, 0.715)",duration:i})}))}(e):function(n){return J(n,(()=>{const e=n.offsetHeight,t=K(e);return n.animate([{height:e+"px",opacity:1,overflowY:"hidden"},{height:"0",opacity:0,overflowY:"hidden"}],{easing:"cubic-bezier(0.39, 0.575, 0.565, 1)",duration:t})}))}(e)}),[g,p]),b(W,{renderable:g},b(r,c(c({},d),{},{ref:f,class:u+" section-child-00fce3c"+(g?"":" content-hidden-00fce3c"),id:h,"aria-labelledby":m,role:l}),o))}nn.displayName="Accordion";export{nn as BentoAccordion,on as BentoAccordionContent,rn as BentoAccordionHeader,tn as BentoAccordionSection};

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

var n,r=Object.create,t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,a=function(n){return t(n,"__esModule",{value:!0})},c=function(n){return function(n,r,o){if(r&&"object"==typeof r||"function"==typeof r)for(var a,c=i(r),f=0,l=c.length;f<l;f++)a=c[f],u.call(n,a)||"default"===a||t(n,a,{get:function(n){return r[n]}.bind(null,a),enumerable:!(o=e(r,a))||o.enumerable});return n}(a(t(null!=n?r(o(n)):{},"default",n&&n.__esModule&&"default"in n?{get:function(){return n.default},enumerable:!0}:{value:n,enumerable:!0})),n)};function f(n){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function l(n){var r=function(n,r){if("object"!==f(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var e=t.call(n,"string");if("object"!==f(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===f(r)?r:String(r)}function v(n,r){(null==r||r>n.length)&&(r=n.length);for(var t=0,e=new Array(r);t<r;t++)e[t]=n[t];return e}function d(){return n||(n=Promise.resolve(void 0))}function b(n,r,t){return r in n?Object.defineProperty(n,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[r]=t,n}function y(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),t.push.apply(t,e)}return t}function h(n){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?y(Object(t),!0).forEach((function(r){b(n,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))}))}return n}function m(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,r){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var e,i,o=[],u=!0,a=!1;try{for(t=t.call(n);!(u=(e=t.next()).done)&&(o.push(e.value),!r||o.length!==r);u=!0);}catch(n){a=!0,i=n}finally{try{u||null==t.return||t.return()}finally{if(a)throw i}}return o}}(n,r)||function(n,r){if(n){if("string"==typeof n)return v(n,r);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(n,r):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(n,r){if(null==n)return{};var t,e,i={},o=Object.keys(n);for(e=0;e<o.length;e++)t=o[e],r.indexOf(t)>=0||(i[t]=n[t]);return i}!function(n,r){for(var e in a(n),r)t(n,e,{get:r[e],enumerable:!0})}(exports,{BentoAccordion:function(){return en},BentoAccordionContent:function(){return cn},BentoAccordionHeader:function(){return an},BentoAccordionSection:function(){return un}});var p=Object.prototype;function g(n,r){return Object.keys(n).reduce((function(t,e){return r.includes(e)||(t[e]=n[e]),t}),{})}p.hasOwnProperty,p.toString;var j=c(require("react")),O=(c(require("react-dom")),c(require("react")));function S(n,r,t){return j.createElement.apply(void 0,arguments)}function w(n){return j.createContext(n,void 0)}function x(n){return O.useState(n)}function A(n){return O.useRef(n)}function M(n,r){O.useEffect(n,r)}function z(n,r){O.useLayoutEffect(n,r)}function I(n){return O.useContext(n)}function Y(n,r){return O.useMemo(n,r)}function C(n,r){return O.useCallback(n,r)}var E,q,B=c(require("react")),N=["auto","lazy","eager","unload"],k=(b(E={},"auto",0),b(E,"lazy",1),b(E,"eager",2),b(E,"unload",3),E);function H(n,r){var t=k[n]||0,e=k[r]||0,i=Math.max(t,e);return N[i]}function P(){return q||(q=w({renderable:!0,playable:!0,loading:"auto"}))}function T(n){var r=n.children,t=n.loading,e=void 0===t?"auto":t,i=n.notify,o=n.playable,u=void 0===o||o,a=n.renderable,c=void 0===a||a,f=I(P()),l=c&&f.renderable,v=l&&u&&f.playable,d=H(l?"auto":"lazy",H(e,f.loading)),b=i||f.notify,y=Y((function(){return{renderable:l,playable:v,loading:d,notify:b}}),[l,v,d,b]);return S(P().Provider,{children:r,value:y})}Array.isArray;var _,U=["Webkit","webkit","Moz","moz","ms","O","o"];function W(n,r,t){if(G(r))return r;var e;_||(e=Object.create(null),_=e);var i=_[r];if(!i||t){if(i=r,void 0===n[r]){var o=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(r),u=function(n,r){for(var t=0;t<U.length;t++){var e=U[t]+r;if(void 0!==n[e])return e}return""}(n,o);void 0!==n[u]&&(i=u)}t||(_[r]=i)}return i}function $(n,r,t,e,i){var o=W(n.style,r,i);if(o){var u=e?t+e:t;G(o)?n.style.setProperty(o,u):n.style[o]=u}}function D(n,r,t){var e=W(n.style,r,t);if(e)return G(e)?n.style.getPropertyValue(e):n.style[e]}function F(n,r){for(var t in r)$(n,t,r[t])}function G(n){return n.startsWith("--")}function J(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;n.classList.add("i-amphtml-animating");var e=r();return e.onfinish=e.oncancel=function(){e=null,t&&t(),n.classList.remove("i-amphtml-animating")},function(){e&&e.cancel()}}function K(n){var r=window.innerHeight,t=Math.abs(n)/r*500;return Math.min(Math.max(t,200),500)}var L,Q=["animate","as","children","expandSingleSection","id"],R=["animate","as","children","expanded","id","onExpandStateChange"],V=w({}),X=w({}),Z={},nn={},rn=(L=0,function(){return String(++L)}),tn=function(){return String(Math.floor(1e5*Math.random()))},en=(0,B.forwardRef)((function(n,r){var t=n.animate,e=void 0!==t&&t,i=n.as,o=void 0===i?"section":i,u=n.children,a=n.expandSingleSection,c=void 0!==a&&a,f=n.id,l=s(n,Q),v=m(x(Z),2),y=v[0],p=v[1],j=A(nn),w=m(x(tn),1)[0],z=f||"a".concat(w);M((function(){c&&p((function(n){var r={},t=0;for(var e in n)r[e]=n[e]&&0==t++;return r}))}),[c]);var I=C((function(n,r,t){var e=t.current;return p((function(t){return on(n,r,t,c)})),j.current=h(h({},j.current),{},b({},n,e)),function(){p((function(r){return g(r,n)})),j.current=g(j.current,n)}}),[c]),E=C((function(n,r){p((function(t){var e=null!=r?r:!t[n],i=on(n,e,t,c);return d().then((function(){for(var n in t){var r=j.current[n];r&&t[n]!=i[n]&&r(i[n])}})),i}))}),[c]),q=C((function(n,r){var t;return null!==(t=y[n])&&void 0!==t?t:r}),[y]),B=C((function(n){if(n)n in y&&E(n);else if(!c)for(var r in y)E(r)}),[y,E,c]),N=C((function(n){if(n)q(n,!0)||E(n);else if(!c)for(var r in y)q(r,!0)||E(r)}),[y,E,q,c]),k=C((function(n){if(n)q(n,!1)&&E(n);else for(var r in y)q(r,!1)&&E(r)}),[y,E,q]);!function(n,r,t){O.useImperativeHandle(n,(function(){return{toggle:B,expand:N,collapse:k}}),t)}(r,0,[B,k,N]);var H=Y((function(){return{registerSection:I,toggleExpanded:E,isExpanded:q,animate:e,prefix:z}}),[I,E,q,e,z]);return S(o,h({id:f},l),S(V.Provider,{value:H},u))}));function on(n,r,t,e){var i;if(e&&r)for(var o in i=b({},n,r),t)o!=n&&(i[o]=!1);else i=h(h({},t),{},b({},n,r));return i}function un(n){var r=n.animate,t=void 0!==r&&r,e=n.as,i=void 0===e?"section":e,o=n.children,u=n.expanded,a=void 0!==u&&u,c=n.id,f=n.onExpandStateChange,l=s(n,R),v=m(x(rn),1)[0],b=c||v,y=m(x(tn),1)[0],p=m(x(a),2),g=p[0],j=p[1],O=m(x(null),2),w=O[0],M=O[1],E=m(x(null),2),q=E[0],B=E[1],N=I(V),k=N.animate,H=N.isExpanded,P=N.prefix,T=N.registerSection,_=N.toggleExpanded,U=H?H(b,a):g,W=null!=k?k:t,$=w||"".concat(P||"a","-content-").concat(b,"-").concat(y),D=q||"".concat(P||"a","-header-").concat(b,"-").concat(y),F=A(null);F.current=f,z((function(){if(T)return T(b,a,F)}),[T,b,a]);var G=C((function(n){_?_(b,n):j((function(r){var t=null!=n?n:!r;return d().then((function(){var n=F.current;n&&n(t)})),t}))}),[b,_]),J=Y((function(){return{animate:W,contentId:$,headerId:D,expanded:U,toggleHandler:G,setContentId:M,setHeaderId:B}}),[W,$,D,U,G]);return S(i,h({},l),S(X.Provider,{value:J},o))}function an(n){var r="className",t="tabindex",e=n.as,i=void 0===e?"div":e,o=n.children,u=n.id,a=n.role,c=void 0===a?"button":a,f=n[r],v=void 0===f?"":f,d=n[t],b=void 0===d?0:d,y=s(n,["as","children","id","role",r,t].map(l)),m=I(X),p=m.contentId,g=m.expanded,j=m.headerId,O=m.setHeaderId,w=m.toggleHandler;return z((function(){O&&O(u)}),[O,u]),S(i,h(h({},y),{},{id:j,role:c,className:"".concat(v," ").concat("section-child-00fce3c"," ").concat("header-00fce3c"),tabindex:b,"aria-controls":p,onClick:function(){return w()},"aria-expanded":String(g)}),o)}function cn(n){var r="className",t=n.as,e=void 0===t?"div":t,i=n.children,o=n.id,u=n.role,a=void 0===u?"region":u,c=n[r],f=void 0===c?"":c,v=s(n,["as","children","id","role",r].map(l)),d=A(null),b=A(!1),y=I(X),m=y.animate,p=y.contentId,g=y.expanded,j=y.headerId,O=y.setContentId;return M((function(){return b.current=!0,function(){return b.current=!1}}),[]),z((function(){O&&O(o)}),[O,o]),z((function(){var n=b.current,r=d.current;if(m&&n&&r&&r.animate)return g?function(n){return J(n,(function(){var r=D(n,"height"),t=D(n,"opacity"),e=D(n,"overflowY");F(n,{height:0,opacity:0,overflowY:"auto"});var i=n.scrollHeight;F(n,{height:r,opacity:t,overflowY:e});var o=K(i);return n.animate([{height:0,opacity:0,overflowY:"hidden"},{height:i+"px",opacity:1,overflowY:"hidden"}],{easing:"cubic-bezier(0.47, 0, 0.745, 0.715)",duration:o})}))}(r):function(n){return J(n,(function(){var r=n.offsetHeight,t=K(r);return n.animate([{height:r+"px",opacity:1,overflowY:"hidden"},{height:"0",opacity:0,overflowY:"hidden"}],{easing:"cubic-bezier(0.39, 0.575, 0.565, 1)",duration:t})}))}(r)}),[g,m]),S(T,{renderable:g},S(e,h(h({},v),{},{ref:d,className:f+" section-child-00fce3c"+(g?"":" content-hidden-00fce3c"),id:p,"aria-labelledby":j,role:a}),i))}en.displayName="Accordion";
var n,r=Object.create,t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,a=function(n){return t(n,"__esModule",{value:!0})},c=function(n){return function(n,r,o){if(r&&"object"==typeof r||"function"==typeof r)for(var a,c=i(r),f=0,l=c.length;f<l;f++)a=c[f],u.call(n,a)||"default"===a||t(n,a,{get:function(n){return r[n]}.bind(null,a),enumerable:!(o=e(r,a))||o.enumerable});return n}(a(t(null!=n?r(o(n)):{},"default",n&&n.__esModule&&"default"in n?{get:function(){return n.default},enumerable:!0}:{value:n,enumerable:!0})),n)};function f(n){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function l(n){var r=function(n,r){if("object"!==f(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var e=t.call(n,"string");if("object"!==f(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===f(r)?r:String(r)}function v(n,r){(null==r||r>n.length)&&(r=n.length);for(var t=0,e=new Array(r);t<r;t++)e[t]=n[t];return e}function d(){return n||(n=Promise.resolve(void 0))}function b(n,r,t){return r in n?Object.defineProperty(n,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[r]=t,n}function y(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),t.push.apply(t,e)}return t}function h(n){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?y(Object(t),!0).forEach((function(r){b(n,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))}))}return n}function m(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,r){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var e,i,o=[],u=!0,a=!1;try{for(t=t.call(n);!(u=(e=t.next()).done)&&(o.push(e.value),!r||o.length!==r);u=!0);}catch(n){a=!0,i=n}finally{try{u||null==t.return||t.return()}finally{if(a)throw i}}return o}}(n,r)||function(n,r){if(n){if("string"==typeof n)return v(n,r);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(n,r):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(n,r){if(null==n)return{};var t,e,i={},o=Object.keys(n);for(e=0;e<o.length;e++)t=o[e],r.indexOf(t)>=0||(i[t]=n[t]);return i}!function(n,r){for(var e in a(n),r)t(n,e,{get:r[e],enumerable:!0})}(exports,{BentoAccordion:function(){return L},BentoAccordionContent:function(){return X},BentoAccordionHeader:function(){return V},BentoAccordionSection:function(){return R}});var p=Object.prototype;function g(n,r){return Object.keys(n).reduce((function(t,e){return r.includes(e)||(t[e]=n[e]),t}),{})}p.hasOwnProperty,p.toString,c(require("react-dom"));var j,O,S=c(require("react")),w=c(require("react")),x=c(require("react")),A=["auto","lazy","eager","unload"],M=(b(j={},"auto",0),b(j,"lazy",1),b(j,"eager",2),b(j,"unload",3),j);function z(n,r){var t=M[n]||0,e=M[r]||0,i=Math.max(t,e);return A[i]}function I(){return O||(O=(0,S.createContext)({renderable:!0,playable:!0,loading:"auto"}))}function Y(n){var r=n.children,t=n.loading,e=void 0===t?"auto":t,i=n.notify,o=n.playable,u=void 0===o||o,a=n.renderable,c=void 0===a||a,f=function(){var n=I();return(0,w.useContext)(n)}(),l=c&&f.renderable,v=l&&u&&f.playable,d=z(l?"auto":"lazy",z(e,f.loading)),b=i||f.notify,y=(0,w.useMemo)((function(){return{renderable:l,playable:v,loading:d,notify:b}}),[l,v,d,b]),h=I();return S.createElement(h.Provider,{children:r,value:y})}Array.isArray;var C,E=["Webkit","webkit","Moz","moz","ms","O","o"];function q(n,r,t){if(H(r))return r;var e;C||(e=Object.create(null),C=e);var i=C[r];if(!i||t){if(i=r,void 0===n[r]){var o=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(r),u=function(n,r){for(var t=0;t<E.length;t++){var e=E[t]+r;if(void 0!==n[e])return e}return""}(n,o);void 0!==n[u]&&(i=u)}t||(C[r]=i)}return i}function B(n,r,t,e,i){var o=q(n.style,r,i);if(o){var u=e?t+e:t;H(o)?n.style.setProperty(o,u):n.style[o]=u}}function N(n,r,t){var e=q(n.style,r,t);if(e)return H(e)?n.style.getPropertyValue(e):n.style[e]}function k(n,r){for(var t in r)B(n,t,r[t])}function H(n){return n.startsWith("--")}function P(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;n.classList.add("i-amphtml-animating");var e=r();return e.onfinish=e.oncancel=function(){e=null,t&&t(),n.classList.remove("i-amphtml-animating")},function(){e&&e.cancel()}}function T(n){var r=window.innerHeight,t=Math.abs(n)/r*500;return Math.min(Math.max(t,200),500)}var _,U=["animate","as","children","expandSingleSection","id"],W=["animate","as","children","expanded","id","onExpandStateChange"],$=S.createContext({}),D=S.createContext({}),F={},G={},J=(_=0,function(){return String(++_)}),K=function(){return String(Math.floor(1e5*Math.random()))},L=(0,x.forwardRef)((function(n,r){var t=n.animate,e=void 0!==t&&t,i=n.as,o=void 0===i?"section":i,u=n.children,a=n.expandSingleSection,c=void 0!==a&&a,f=n.id,l=s(n,U),v=m((0,w.useState)(F),2),y=v[0],p=v[1],j=(0,w.useRef)(G),O=m((0,w.useState)(K),1)[0],x=f||"a".concat(O);(0,w.useEffect)((function(){c&&p((function(n){var r={},t=0;for(var e in n)r[e]=n[e]&&0==t++;return r}))}),[c]);var A=(0,w.useCallback)((function(n,r,t){var e=t.current;return p((function(t){return Q(n,r,t,c)})),j.current=h(h({},j.current),{},b({},n,e)),function(){p((function(r){return g(r,n)})),j.current=g(j.current,n)}}),[c]),M=(0,w.useCallback)((function(n,r){p((function(t){var e=null!=r?r:!t[n],i=Q(n,e,t,c);return d().then((function(){for(var n in t){var r=j.current[n];r&&t[n]!=i[n]&&r(i[n])}})),i}))}),[c]),z=(0,w.useCallback)((function(n,r){var t;return null!==(t=y[n])&&void 0!==t?t:r}),[y]),I=(0,w.useCallback)((function(n){if(n)n in y&&M(n);else if(!c)for(var r in y)M(r)}),[y,M,c]),Y=(0,w.useCallback)((function(n){if(n)z(n,!0)||M(n);else if(!c)for(var r in y)z(r,!0)||M(r)}),[y,M,z,c]),C=(0,w.useCallback)((function(n){if(n)z(n,!1)&&M(n);else for(var r in y)z(r,!1)&&M(r)}),[y,M,z]);(0,w.useImperativeHandle)(r,(function(){return{toggle:I,expand:Y,collapse:C}}),[I,C,Y]);var E=(0,w.useMemo)((function(){return{registerSection:A,toggleExpanded:M,isExpanded:z,animate:e,prefix:x}}),[A,M,z,e,x]);return S.createElement(o,h({id:f},l),S.createElement($.Provider,{value:E},u))}));function Q(n,r,t,e){var i;if(e&&r)for(var o in i=b({},n,r),t)o!=n&&(i[o]=!1);else i=h(h({},t),{},b({},n,r));return i}function R(n){var r=n.animate,t=void 0!==r&&r,e=n.as,i=void 0===e?"section":e,o=n.children,u=n.expanded,a=void 0!==u&&u,c=n.id,f=n.onExpandStateChange,l=s(n,W),v=m((0,w.useState)(J),1)[0],b=c||v,y=m((0,w.useState)(K),1)[0],p=m((0,w.useState)(a),2),g=p[0],j=p[1],O=m((0,w.useState)(null),2),x=O[0],A=O[1],M=m((0,w.useState)(null),2),z=M[0],I=M[1],Y=(0,w.useContext)($),C=Y.animate,E=Y.isExpanded,q=Y.prefix,B=Y.registerSection,N=Y.toggleExpanded,k=E?E(b,a):g,H=null!=C?C:t,P=x||"".concat(q||"a","-content-").concat(b,"-").concat(y),T=z||"".concat(q||"a","-header-").concat(b,"-").concat(y),_=(0,w.useRef)(null);_.current=f,(0,w.useLayoutEffect)((function(){if(B)return B(b,a,_)}),[B,b,a]);var U=(0,w.useCallback)((function(n){N?N(b,n):j((function(r){var t=null!=n?n:!r;return d().then((function(){var n=_.current;n&&n(t)})),t}))}),[b,N]),F=(0,w.useMemo)((function(){return{animate:H,contentId:P,headerId:T,expanded:k,toggleHandler:U,setContentId:A,setHeaderId:I}}),[H,P,T,k,U]);return S.createElement(i,h({},l),S.createElement(D.Provider,{value:F},o))}function V(n){var r="className",t="tabindex",e=n.as,i=void 0===e?"div":e,o=n.children,u=n.id,a=n.role,c=void 0===a?"button":a,f=n[r],v=void 0===f?"":f,d=n[t],b=void 0===d?0:d,y=s(n,["as","children","id","role",r,t].map(l)),m=(0,w.useContext)(D),p=m.contentId,g=m.expanded,j=m.headerId,O=m.setHeaderId,x=m.toggleHandler;return(0,w.useLayoutEffect)((function(){O&&O(u)}),[O,u]),S.createElement(i,h(h({},y),{},{id:j,role:c,className:"".concat(v," ").concat("section-child-00fce3c"," ").concat("header-00fce3c"),tabindex:b,"aria-controls":p,onClick:function(){return x()},"aria-expanded":String(g)}),o)}function X(n){var r="className",t=n.as,e=void 0===t?"div":t,i=n.children,o=n.id,u=n.role,a=void 0===u?"region":u,c=n[r],f=void 0===c?"":c,v=s(n,["as","children","id","role",r].map(l)),d=(0,w.useRef)(null),b=(0,w.useRef)(!1),y=(0,w.useContext)(D),m=y.animate,p=y.contentId,g=y.expanded,j=y.headerId,O=y.setContentId;return(0,w.useEffect)((function(){return b.current=!0,function(){return b.current=!1}}),[]),(0,w.useLayoutEffect)((function(){O&&O(o)}),[O,o]),(0,w.useLayoutEffect)((function(){var n=b.current,r=d.current;if(m&&n&&r&&r.animate)return g?function(n){return P(n,(function(){var r=N(n,"height"),t=N(n,"opacity"),e=N(n,"overflowY");k(n,{height:0,opacity:0,overflowY:"auto"});var i=n.scrollHeight;k(n,{height:r,opacity:t,overflowY:e});var o=T(i);return n.animate([{height:0,opacity:0,overflowY:"hidden"},{height:i+"px",opacity:1,overflowY:"hidden"}],{easing:"cubic-bezier(0.47, 0, 0.745, 0.715)",duration:o})}))}(r):function(n){return P(n,(function(){var r=n.offsetHeight,t=T(r);return n.animate([{height:r+"px",opacity:1,overflowY:"hidden"},{height:"0",opacity:0,overflowY:"hidden"}],{easing:"cubic-bezier(0.39, 0.575, 0.565, 1)",duration:t})}))}(r)}),[g,m]),S.createElement(Y,{renderable:g},S.createElement(e,h(h({},v),{},{ref:d,className:f+" section-child-00fce3c"+(g?"":" content-hidden-00fce3c"),id:p,"aria-labelledby":j,role:a}),i))}L.displayName="Accordion";

@@ -109,35 +109,5 @@ var __create = Object.create;

// src/preact/index.js
var preact = __toModule(require("react"));
var preactDOM = __toModule(require("react-dom"));
var hooks = __toModule(require("react"));
function createElement2(unusedType, unusedProps, var_args) {
return preact.createElement.apply(void 0, arguments);
}
function createContext2(value) {
return preact.createContext(value, void 0);
}
function useState2(initial) {
return hooks.useState(initial);
}
function useRef2(initial) {
return hooks.useRef(initial);
}
function useEffect2(effect, opt_deps) {
hooks.useEffect(effect, opt_deps);
}
function useLayoutEffect2(effect, opt_deps) {
hooks.useLayoutEffect(effect, opt_deps);
}
function useContext2(context2) {
return hooks.useContext(context2);
}
function useMemo2(cb, opt_deps) {
return hooks.useMemo(cb, opt_deps);
}
function useCallback2(cb, opt_deps) {
return hooks.useCallback(cb, opt_deps);
}
function useImperativeHandle2(ref, create, opt_deps) {
return hooks.useImperativeHandle(ref, create, opt_deps);
}
var import_dom = __toModule(require("react-dom"));
var import_preact = __toModule(require("react"));
var import_hooks = __toModule(require("react"));

@@ -167,3 +137,3 @@ // extensions/amp-accordion/1.0/component.js

function getAmpContext() {
return context || (context = createContext2({
return context || (context = (0, import_preact.createContext)({
renderable: true,

@@ -181,3 +151,3 @@ playable: true,

var notify = notifyProp || parent.notify;
var current = useMemo2(function() {
var current = (0, import_hooks.useMemo)(function() {
return {

@@ -191,3 +161,3 @@ renderable: renderable,

var AmpContext = getAmpContext();
return createElement2(AmpContext.Provider, {
return import_preact.createElement(AmpContext.Provider, {
children: children,

@@ -199,3 +169,3 @@ value: current

var AmpContext = getAmpContext();
return useContext2(AmpContext);
return (0, import_hooks.useContext)(AmpContext);
}

@@ -401,4 +371,4 @@

}
var AccordionContext = createContext2({});
var SectionContext = createContext2({});
var AccordionContext = import_preact.createContext({});
var SectionContext = import_preact.createContext({});
var EMPTY_EXPANDED_MAP = {};

@@ -410,7 +380,7 @@ var EMPTY_EVENT_MAP = {};

var _ref$animate = _ref.animate, animate2 = _ref$animate === void 0 ? false : _ref$animate, _ref$as = _ref.as, Comp = _ref$as === void 0 ? "section" : _ref$as, children = _ref.children, _ref$expandSingleSect = _ref.expandSingleSection, expandSingleSection = _ref$expandSingleSect === void 0 ? false : _ref$expandSingleSect, id = _ref.id, rest = _objectWithoutPropertiesLoose(_ref, _excluded);
var _useState = useState2(EMPTY_EXPANDED_MAP), expandedMap = _useState[0], setExpandedMap = _useState[1];
var eventMapRef = useRef2(EMPTY_EVENT_MAP);
var _useState2 = useState2(generateRandomId), randomPrefix = _useState2[0];
var _useState = (0, import_hooks.useState)(EMPTY_EXPANDED_MAP), expandedMap = _useState[0], setExpandedMap = _useState[1];
var eventMapRef = (0, import_hooks.useRef)(EMPTY_EVENT_MAP);
var _useState2 = (0, import_hooks.useState)(generateRandomId), randomPrefix = _useState2[0];
var prefix = id || "a" + randomPrefix;
useEffect2(function() {
(0, import_hooks.useEffect)(function() {
if (!expandSingleSection) {

@@ -428,3 +398,3 @@ return;

}, [expandSingleSection]);
var registerSection = useCallback2(function(id2, defaultExpanded, _ref2) {
var registerSection = (0, import_hooks.useCallback)(function(id2, defaultExpanded, _ref2) {
var _extends2;

@@ -443,3 +413,3 @@ var onExpandStateChange = _ref2.current;

}, [expandSingleSection]);
var toggleExpanded = useCallback2(function(id2, opt_expand) {
var toggleExpanded = (0, import_hooks.useCallback)(function(id2, opt_expand) {
setExpandedMap(function(expandedMap2) {

@@ -459,7 +429,7 @@ var newExpanded = opt_expand != null ? opt_expand : !expandedMap2[id2];

}, [expandSingleSection]);
var isExpanded = useCallback2(function(id2, defaultExpanded) {
var isExpanded = (0, import_hooks.useCallback)(function(id2, defaultExpanded) {
var _expandedMap$id;
return (_expandedMap$id = expandedMap[id2]) != null ? _expandedMap$id : defaultExpanded;
}, [expandedMap]);
var toggle = useCallback2(function(id2) {
var toggle = (0, import_hooks.useCallback)(function(id2) {
if (id2) {

@@ -477,3 +447,3 @@ if (id2 in expandedMap) {

}, [expandedMap, toggleExpanded, expandSingleSection]);
var expand = useCallback2(function(id2) {
var expand = (0, import_hooks.useCallback)(function(id2) {
if (id2) {

@@ -493,3 +463,3 @@ if (!isExpanded(id2, true)) {

}, [expandedMap, toggleExpanded, isExpanded, expandSingleSection]);
var collapse = useCallback2(function(id2) {
var collapse = (0, import_hooks.useCallback)(function(id2) {
if (id2) {

@@ -507,3 +477,3 @@ if (isExpanded(id2, false)) {

}, [expandedMap, toggleExpanded, isExpanded]);
useImperativeHandle2(ref, function() {
(0, import_hooks.useImperativeHandle)(ref, function() {
return {

@@ -515,3 +485,3 @@ toggle: toggle,

}, [toggle, collapse, expand]);
var context2 = useMemo2(function() {
var context2 = (0, import_hooks.useMemo)(function() {
return {

@@ -525,5 +495,5 @@ registerSection: registerSection,

}, [registerSection, toggleExpanded, isExpanded, animate2, prefix]);
return createElement2(Comp, _extends({
return import_preact.createElement(Comp, _extends({
id: id
}, rest), createElement2(AccordionContext.Provider, {
}, rest), import_preact.createElement(AccordionContext.Provider, {
value: context2

@@ -552,9 +522,9 @@ }, children));

var _ref3$animate = _ref3.animate, defaultAnimate = _ref3$animate === void 0 ? false : _ref3$animate, _ref3$as = _ref3.as, Comp = _ref3$as === void 0 ? "section" : _ref3$as, children = _ref3.children, _ref3$expanded = _ref3.expanded, defaultExpanded = _ref3$expanded === void 0 ? false : _ref3$expanded, propId = _ref3.id, onExpandStateChange = _ref3.onExpandStateChange, rest = _objectWithoutPropertiesLoose(_ref3, _excluded2);
var _useState3 = useState2(generateSectionId), genId = _useState3[0];
var _useState3 = (0, import_hooks.useState)(generateSectionId), genId = _useState3[0];
var id = propId || genId;
var _useState4 = useState2(generateRandomId), suffix = _useState4[0];
var _useState5 = useState2(defaultExpanded), expandedState = _useState5[0], setExpandedState = _useState5[1];
var _useState6 = useState2(null), contentIdState = _useState6[0], setContentIdState = _useState6[1];
var _useState7 = useState2(null), headerIdState = _useState7[0], setHeaderIdState = _useState7[1];
var _useContext = useContext2(AccordionContext), contextAnimate = _useContext.animate, isExpanded = _useContext.isExpanded, prefix = _useContext.prefix, registerSection = _useContext.registerSection, toggleExpanded = _useContext.toggleExpanded;
var _useState4 = (0, import_hooks.useState)(generateRandomId), suffix = _useState4[0];
var _useState5 = (0, import_hooks.useState)(defaultExpanded), expandedState = _useState5[0], setExpandedState = _useState5[1];
var _useState6 = (0, import_hooks.useState)(null), contentIdState = _useState6[0], setContentIdState = _useState6[1];
var _useState7 = (0, import_hooks.useState)(null), headerIdState = _useState7[0], setHeaderIdState = _useState7[1];
var _useContext = (0, import_hooks.useContext)(AccordionContext), contextAnimate = _useContext.animate, isExpanded = _useContext.isExpanded, prefix = _useContext.prefix, registerSection = _useContext.registerSection, toggleExpanded = _useContext.toggleExpanded;
var expanded = isExpanded ? isExpanded(id, defaultExpanded) : expandedState;

@@ -564,5 +534,5 @@ var animate2 = contextAnimate != null ? contextAnimate : defaultAnimate;

var headerId = headerIdState || (prefix || "a") + "-header-" + id + "-" + suffix;
var onExpandStateChangeRef = useRef2(null);
var onExpandStateChangeRef = (0, import_hooks.useRef)(null);
onExpandStateChangeRef.current = onExpandStateChange;
useLayoutEffect2(function() {
(0, import_hooks.useLayoutEffect)(function() {
if (registerSection) {

@@ -572,3 +542,3 @@ return registerSection(id, defaultExpanded, onExpandStateChangeRef);

}, [registerSection, id, defaultExpanded]);
var toggleHandler = useCallback2(function(opt_expand) {
var toggleHandler = (0, import_hooks.useCallback)(function(opt_expand) {
if (toggleExpanded) {

@@ -589,3 +559,3 @@ toggleExpanded(id, opt_expand);

}, [id, toggleExpanded]);
var context2 = useMemo2(function() {
var context2 = (0, import_hooks.useMemo)(function() {
return {

@@ -601,3 +571,3 @@ animate: animate2,

}, [animate2, contentId, headerId, expanded, toggleHandler]);
return createElement2(Comp, _extends({}, rest), createElement2(SectionContext.Provider, {
return import_preact.createElement(Comp, _extends({}, rest), import_preact.createElement(SectionContext.Provider, {
value: context2

@@ -608,4 +578,4 @@ }, children));

var _propName = "className", _propName2 = "tabindex", _ref4$as = _ref4.as, Comp = _ref4$as === void 0 ? "div" : _ref4$as, children = _ref4.children, id = _ref4.id, _ref4$role = _ref4.role, role = _ref4$role === void 0 ? "button" : _ref4$role, _ref4$_propName = _ref4[_propName], className = _ref4$_propName === void 0 ? "" : _ref4$_propName, _ref4$_propName2 = _ref4[_propName2], tabIndex = _ref4$_propName2 === void 0 ? 0 : _ref4$_propName2, rest = _objectWithoutPropertiesLoose(_ref4, ["as", "children", "id", "role", _propName, _propName2].map(_toPropertyKey));
var _useContext2 = useContext2(SectionContext), contentId = _useContext2.contentId, expanded = _useContext2.expanded, headerId = _useContext2.headerId, setHeaderId = _useContext2.setHeaderId, toggleHandler = _useContext2.toggleHandler;
useLayoutEffect2(function() {
var _useContext2 = (0, import_hooks.useContext)(SectionContext), contentId = _useContext2.contentId, expanded = _useContext2.expanded, headerId = _useContext2.headerId, setHeaderId = _useContext2.setHeaderId, toggleHandler = _useContext2.toggleHandler;
(0, import_hooks.useLayoutEffect)(function() {
if (setHeaderId) {

@@ -615,3 +585,3 @@ setHeaderId(id);

}, [setHeaderId, id]);
return createElement2(Comp, _extends({}, rest, {
return import_preact.createElement(Comp, _extends({}, rest, {
id: headerId,

@@ -631,6 +601,6 @@ role: role,

var _propName3 = "className", _ref5$as = _ref5.as, Comp = _ref5$as === void 0 ? "div" : _ref5$as, children = _ref5.children, id = _ref5.id, _ref5$role = _ref5.role, role = _ref5$role === void 0 ? "region" : _ref5$role, _ref5$_propName = _ref5[_propName3], className = _ref5$_propName === void 0 ? "" : _ref5$_propName, rest = _objectWithoutPropertiesLoose(_ref5, ["as", "children", "id", "role", _propName3].map(_toPropertyKey));
var ref = useRef2(null);
var hasMountedRef = useRef2(false);
var _useContext3 = useContext2(SectionContext), animate2 = _useContext3.animate, contentId = _useContext3.contentId, expanded = _useContext3.expanded, headerId = _useContext3.headerId, setContentId = _useContext3.setContentId;
useEffect2(function() {
var ref = (0, import_hooks.useRef)(null);
var hasMountedRef = (0, import_hooks.useRef)(false);
var _useContext3 = (0, import_hooks.useContext)(SectionContext), animate2 = _useContext3.animate, contentId = _useContext3.contentId, expanded = _useContext3.expanded, headerId = _useContext3.headerId, setContentId = _useContext3.setContentId;
(0, import_hooks.useEffect)(function() {
hasMountedRef.current = true;

@@ -641,3 +611,3 @@ return function() {

}, []);
useLayoutEffect2(function() {
(0, import_hooks.useLayoutEffect)(function() {
if (setContentId) {

@@ -647,3 +617,3 @@ setContentId(id);

}, [setContentId, id]);
useLayoutEffect2(function() {
(0, import_hooks.useLayoutEffect)(function() {
var hasMounted = hasMountedRef.current;

@@ -656,5 +626,5 @@ var content = ref.current;

}, [expanded, animate2]);
return createElement2(WithAmpContext, {
return import_preact.createElement(WithAmpContext, {
renderable: expanded
}, createElement2(Comp, _extends({}, rest, {
}, import_preact.createElement(Comp, _extends({}, rest, {
ref: ref,

@@ -661,0 +631,0 @@ className: obj_str_default((_objstr = {}, _objstr[className] = true, _objstr[$sectionChild] = true, _objstr[$contentHidden] = !expanded, _objstr)),

@@ -59,52 +59,5 @@ // extensions/amp-accordion/1.0/component.jss.js

// src/preact/index.js
import {
cloneElement,
createContext,
createElement,
createRef
} from "react";
import {
hydrate,
render
} from "react-dom";
import {
useCallback,
useContext,
useEffect,
useImperativeHandle,
useLayoutEffect,
useMemo,
useRef,
useState
} from "react";
function createElement2(unusedType, unusedProps, var_args) {
return createElement.apply(void 0, arguments);
}
function createContext2(value) {
return createContext(value, void 0);
}
function useState2(initial) {
return useState(initial);
}
function useRef2(initial) {
return useRef(initial);
}
function useEffect2(effect, opt_deps) {
useEffect(effect, opt_deps);
}
function useLayoutEffect2(effect, opt_deps) {
useLayoutEffect(effect, opt_deps);
}
function useContext2(context2) {
return useContext(context2);
}
function useMemo2(cb, opt_deps) {
return useMemo(cb, opt_deps);
}
function useCallback2(cb, opt_deps) {
return useCallback(cb, opt_deps);
}
function useImperativeHandle2(ref, create, opt_deps) {
return useImperativeHandle(ref, create, opt_deps);
}
import { hydrate, render } from "react-dom";
import { createElement, cloneElement, createRef, createContext } from "react";
import { useState, useRef, useEffect, useLayoutEffect, useContext, useMemo, useCallback, useImperativeHandle } from "react";

@@ -138,3 +91,3 @@ // extensions/amp-accordion/1.0/component.js

function getAmpContext() {
return context || (context = createContext2({
return context || (context = createContext({
renderable: true,

@@ -157,3 +110,3 @@ playable: true,

const notify = notifyProp || parent.notify;
const current = useMemo2(() => ({
const current = useMemo(() => ({
renderable,

@@ -165,3 +118,3 @@ playable,

const AmpContext = getAmpContext();
return createElement2(AmpContext.Provider, {
return createElement(AmpContext.Provider, {
children,

@@ -173,3 +126,3 @@ value: current

const AmpContext = getAmpContext();
return useContext2(AmpContext);
return useContext(AmpContext);
}

@@ -369,4 +322,4 @@

}
var AccordionContext = createContext2({});
var SectionContext = createContext2({});
var AccordionContext = createContext({});
var SectionContext = createContext({});
var EMPTY_EXPANDED_MAP = {};

@@ -384,7 +337,7 @@ var EMPTY_EVENT_MAP = {};

} = _ref, rest = _objectWithoutPropertiesLoose(_ref, _excluded);
const [expandedMap, setExpandedMap] = useState2(EMPTY_EXPANDED_MAP);
const eventMapRef = useRef2(EMPTY_EVENT_MAP);
const [randomPrefix] = useState2(generateRandomId);
const [expandedMap, setExpandedMap] = useState(EMPTY_EXPANDED_MAP);
const eventMapRef = useRef(EMPTY_EVENT_MAP);
const [randomPrefix] = useState(generateRandomId);
const prefix = id || `a${randomPrefix}`;
useEffect2(() => {
useEffect(() => {
if (!expandSingleSection) {

@@ -402,3 +355,3 @@ return;

}, [expandSingleSection]);
const registerSection = useCallback2((id2, defaultExpanded, {
const registerSection = useCallback((id2, defaultExpanded, {
current: onExpandStateChange

@@ -417,3 +370,3 @@ }) => {

}, [expandSingleSection]);
const toggleExpanded = useCallback2((id2, opt_expand) => {
const toggleExpanded = useCallback((id2, opt_expand) => {
setExpandedMap((expandedMap2) => {

@@ -433,7 +386,7 @@ const newExpanded = opt_expand != null ? opt_expand : !expandedMap2[id2];

}, [expandSingleSection]);
const isExpanded = useCallback2((id2, defaultExpanded) => {
const isExpanded = useCallback((id2, defaultExpanded) => {
var _expandedMap$id;
return (_expandedMap$id = expandedMap[id2]) != null ? _expandedMap$id : defaultExpanded;
}, [expandedMap]);
const toggle = useCallback2((id2) => {
const toggle = useCallback((id2) => {
if (id2) {

@@ -451,3 +404,3 @@ if (id2 in expandedMap) {

}, [expandedMap, toggleExpanded, expandSingleSection]);
const expand = useCallback2((id2) => {
const expand = useCallback((id2) => {
if (id2) {

@@ -467,3 +420,3 @@ if (!isExpanded(id2, true)) {

}, [expandedMap, toggleExpanded, isExpanded, expandSingleSection]);
const collapse = useCallback2((id2) => {
const collapse = useCallback((id2) => {
if (id2) {

@@ -481,3 +434,3 @@ if (isExpanded(id2, false)) {

}, [expandedMap, toggleExpanded, isExpanded]);
useImperativeHandle2(ref, () => ({
useImperativeHandle(ref, () => ({
toggle,

@@ -487,3 +440,3 @@ expand,

}), [toggle, collapse, expand]);
const context2 = useMemo2(() => ({
const context2 = useMemo(() => ({
registerSection,

@@ -495,5 +448,5 @@ toggleExpanded,

}), [registerSection, toggleExpanded, isExpanded, animate2, prefix]);
return createElement2(Comp, _extends({
return createElement(Comp, _extends({
id
}, rest), createElement2(AccordionContext.Provider, {
}, rest), createElement(AccordionContext.Provider, {
value: context2

@@ -531,8 +484,8 @@ }, children));

} = _ref2, rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
const [genId] = useState2(generateSectionId);
const [genId] = useState(generateSectionId);
const id = propId || genId;
const [suffix] = useState2(generateRandomId);
const [expandedState, setExpandedState] = useState2(defaultExpanded);
const [contentIdState, setContentIdState] = useState2(null);
const [headerIdState, setHeaderIdState] = useState2(null);
const [suffix] = useState(generateRandomId);
const [expandedState, setExpandedState] = useState(defaultExpanded);
const [contentIdState, setContentIdState] = useState(null);
const [headerIdState, setHeaderIdState] = useState(null);
const {

@@ -544,3 +497,3 @@ animate: contextAnimate,

toggleExpanded
} = useContext2(AccordionContext);
} = useContext(AccordionContext);
const expanded = isExpanded ? isExpanded(id, defaultExpanded) : expandedState;

@@ -550,5 +503,5 @@ const animate2 = contextAnimate != null ? contextAnimate : defaultAnimate;

const headerId = headerIdState || `${prefix || "a"}-header-${id}-${suffix}`;
const onExpandStateChangeRef = useRef2(null);
const onExpandStateChangeRef = useRef(null);
onExpandStateChangeRef.current = onExpandStateChange;
useLayoutEffect2(() => {
useLayoutEffect(() => {
if (registerSection) {

@@ -558,3 +511,3 @@ return registerSection(id, defaultExpanded, onExpandStateChangeRef);

}, [registerSection, id, defaultExpanded]);
const toggleHandler = useCallback2((opt_expand) => {
const toggleHandler = useCallback((opt_expand) => {
if (toggleExpanded) {

@@ -575,3 +528,3 @@ toggleExpanded(id, opt_expand);

}, [id, toggleExpanded]);
const context2 = useMemo2(() => ({
const context2 = useMemo(() => ({
animate: animate2,

@@ -585,3 +538,3 @@ contentId,

}), [animate2, contentId, headerId, expanded, toggleHandler]);
return createElement2(Comp, _extends({}, rest), createElement2(SectionContext.Provider, {
return createElement(Comp, _extends({}, rest), createElement(SectionContext.Provider, {
value: context2

@@ -605,4 +558,4 @@ }, children));

toggleHandler
} = useContext2(SectionContext);
useLayoutEffect2(() => {
} = useContext(SectionContext);
useLayoutEffect(() => {
if (setHeaderId) {

@@ -612,3 +565,3 @@ setHeaderId(id);

}, [setHeaderId, id]);
return createElement2(Comp, _extends({}, rest, {
return createElement(Comp, _extends({}, rest, {
id: headerId,

@@ -631,4 +584,4 @@ role,

} = _ref4, rest = _objectWithoutPropertiesLoose(_ref4, ["as", "children", "id", "role", _propName3].map(_toPropertyKey));
const ref = useRef2(null);
const hasMountedRef = useRef2(false);
const ref = useRef(null);
const hasMountedRef = useRef(false);
const {

@@ -640,8 +593,8 @@ animate: animate2,

setContentId
} = useContext2(SectionContext);
useEffect2(() => {
} = useContext(SectionContext);
useEffect(() => {
hasMountedRef.current = true;
return () => hasMountedRef.current = false;
}, []);
useLayoutEffect2(() => {
useLayoutEffect(() => {
if (setContentId) {

@@ -651,3 +604,3 @@ setContentId(id);

}, [setContentId, id]);
useLayoutEffect2(() => {
useLayoutEffect(() => {
const hasMounted = hasMountedRef.current;

@@ -660,5 +613,5 @@ const content = ref.current;

}, [expanded, animate2]);
return createElement2(WithAmpContext, {
return createElement(WithAmpContext, {
renderable: expanded
}, createElement2(Comp, _extends({}, rest, {
}, createElement(Comp, _extends({}, rest, {
ref,

@@ -665,0 +618,0 @@ className: obj_str_default({

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

var n;function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function e(n){var e=function(n,e){if("object"!==t(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var o=r.call(n,"string");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===t(e)?e:String(e)}function r(){return n||(n=Promise.resolve(void 0))}function o(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function i(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function c(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?i(Object(e),!0).forEach((function(t){o(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function a(n,t){if(null==n)return{};var e,r,o={},i=Object.keys(n);for(r=0;r<i.length;r++)e=i[r],t.indexOf(e)>=0||(o[e]=n[e]);return o}var{hasOwnProperty:u,toString:l}=Object.prototype;function d(n,t){return Object.keys(n).reduce(((e,r)=>(t.includes(r)||(e[r]=n[r]),e)),{})}import{cloneElement as f,createContext as s,createElement as b,createRef as h}from"react";import{hydrate as p,render as m}from"react-dom";import{useCallback as g,useContext as v,useEffect as y,useImperativeHandle as x,useLayoutEffect as S,useMemo as j,useRef as O,useState as w}from"react";function I(n,t,e){return b.apply(void 0,arguments)}function $(n){return s(n,void 0)}function z(n){return w(n)}function E(n){return O(n)}function M(n,t){y(n,t)}function Y(n,t){S(n,t)}function C(n){return v(n)}function H(n,t){return j(n,t)}function N(n,t){return g(n,t)}import{forwardRef as k}from"react";var P,A,T=["auto","lazy","eager","unload"],W={auto:0,lazy:1,eager:2,unload:3};function q(n,t){const e=W[n]||0,r=W[t]||0,o=Math.max(e,r);return T[o]}function B(){return P||(P=$({renderable:!0,playable:!0,loading:"auto"}))}function D({children:n,loading:t="auto",notify:e,playable:r=!0,renderable:o=!0}){const i=C(B()),c=o&&i.renderable,a=c&&r&&i.playable,u=q(c?"auto":"lazy",q(t,i.loading)),l=e||i.notify,d=H((()=>({renderable:c,playable:a,loading:u,notify:l})),[c,a,u,l]);return I(B().Provider,{children:n,value:d})}var F=["Webkit","webkit","Moz","moz","ms","O","o"];function G(n,t,e){if(Q(t))return t;A||(A=Object.create(null));let r=A[t];if(!r||e){if(r=t,void 0===n[t]){const e=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(t),o=function(n,t){for(let e=0;e<F.length;e++){const r=F[e]+t;if(void 0!==n[r])return r}return""}(n,e);void 0!==n[o]&&(r=o)}e||(A[t]=r)}return r}function J(n,t,e,r,o){const i=G(n.style,t,o);if(!i)return;const c=r?e+r:e;Q(i)?n.style.setProperty(i,c):n.style[i]=c}function K(n,t,e){const r=G(n.style,t,e);if(r)return Q(r)?n.style.getPropertyValue(r):n.style[r]}function L(n,t){for(const e in t)J(n,e,t[e])}function Q(n){return n.startsWith("--")}function R(n,t,e){n.classList.add("i-amphtml-animating");let r=t();return r.onfinish=r.oncancel=()=>{r=null,e&&e(),n.classList.remove("i-amphtml-animating")},()=>{r&&r.cancel()}}function U(n){const t=window.innerHeight,e=Math.abs(n)/t*500;return Math.min(Math.max(e,200),500)}var V=["animate","as","children","expandSingleSection","id"],X=["animate","as","children","expanded","id","onExpandStateChange"],Z=$({}),_=$({}),nn={},tn={},en=function(){let n=0;return()=>String(++n)}(),rn=()=>String(Math.floor(1e5*Math.random())),on=k((function(n,t){let{animate:e=!1,as:o="section",children:i,expandSingleSection:u=!1,id:l}=n,f=a(n,V);const[s,b]=z(nn),h=E(tn),[p]=z(rn),m=l||`a${p}`;M((()=>{u&&b((n=>{const t={};let e=0;for(const r in n)t[r]=n[r]&&0==e++;return t}))}),[u]);const g=N(((n,t,{current:e})=>(b((e=>cn(n,t,e,u))),h.current=c(c({},h.current),{},{[n]:e}),()=>{b((t=>d(t,n))),h.current=d(h.current,n)})),[u]),v=N(((n,t)=>{b((e=>{const o=null!=t?t:!e[n],i=cn(n,o,e,u);return r().then((()=>{for(const n in e){const t=h.current[n];t&&e[n]!=i[n]&&t(i[n])}})),i}))}),[u]),y=N(((n,t)=>{var e;return null!==(e=s[n])&&void 0!==e?e:t}),[s]),S=N((n=>{if(n)n in s&&v(n);else if(!u)for(const n in s)v(n)}),[s,v,u]),j=N((n=>{if(n)y(n,!0)||v(n);else if(!u)for(const n in s)y(n,!0)||v(n)}),[s,v,y,u]),O=N((n=>{if(n)y(n,!1)&&v(n);else for(const n in s)y(n,!1)&&v(n)}),[s,v,y]);!function(n,t,e){x(n,(()=>({toggle:S,expand:j,collapse:O})),e)}(t,0,[S,O,j]);const w=H((()=>({registerSection:g,toggleExpanded:v,isExpanded:y,animate:e,prefix:m})),[g,v,y,e,m]);return I(o,c({id:l},f),I(Z.Provider,{value:w},i))}));function cn(n,t,e,r){let o;if(r&&t){o={[n]:t};for(const t in e)t!=n&&(o[t]=!1)}else o=c(c({},e),{},{[n]:t});return o}function an(n){let{animate:t=!1,as:e="section",children:o,expanded:i=!1,id:u,onExpandStateChange:l}=n,d=a(n,X);const[f]=z(en),s=u||f,[b]=z(rn),[h,p]=z(i),[m,g]=z(null),[v,y]=z(null),{animate:x,isExpanded:S,prefix:j,registerSection:O,toggleExpanded:w}=C(Z),$=S?S(s,i):h,M=null!=x?x:t,k=m||`${j||"a"}-content-${s}-${b}`,P=v||`${j||"a"}-header-${s}-${b}`,A=E(null);A.current=l,Y((()=>{if(O)return O(s,i,A)}),[O,s,i]);const T=N((n=>{w?w(s,n):p((t=>{const e=null!=n?n:!t;return r().then((()=>{const n=A.current;n&&n(e)})),e}))}),[s,w]),W=H((()=>({animate:M,contentId:k,headerId:P,expanded:$,toggleHandler:T,setContentId:g,setHeaderId:y})),[M,k,P,$,T]);return I(e,c({},d),I(_.Provider,{value:W},o))}function un(n){let t="className",r="tabindex",{as:o="div",children:i,id:u,role:l="button",[t]:d="",[r]:f=0}=n,s=a(n,["as","children","id","role",t,r].map(e));const{contentId:b,expanded:h,headerId:p,setHeaderId:m,toggleHandler:g}=C(_);return Y((()=>{m&&m(u)}),[m,u]),I(o,c(c({},s),{},{id:p,role:l,className:`${d} section-child-00fce3c header-00fce3c`,tabindex:f,"aria-controls":b,onClick:()=>g(),"aria-expanded":String(h)}),i)}function ln(n){let t="className",{as:r="div",children:o,id:i,role:u="region",[t]:l=""}=n,d=a(n,["as","children","id","role",t].map(e));const f=E(null),s=E(!1),{animate:b,contentId:h,expanded:p,headerId:m,setContentId:g}=C(_);return M((()=>(s.current=!0,()=>s.current=!1)),[]),Y((()=>{g&&g(i)}),[g,i]),Y((()=>{const n=s.current,t=f.current;if(b&&n&&t&&t.animate)return p?function(n){return R(n,(()=>{const t=K(n,"height"),e=K(n,"opacity"),r=K(n,"overflowY");L(n,{height:0,opacity:0,overflowY:"auto"});const o=n.scrollHeight;L(n,{height:t,opacity:e,overflowY:r});const i=U(o);return n.animate([{height:0,opacity:0,overflowY:"hidden"},{height:o+"px",opacity:1,overflowY:"hidden"}],{easing:"cubic-bezier(0.47, 0, 0.745, 0.715)",duration:i})}))}(t):function(n){return R(n,(()=>{const t=n.offsetHeight,e=U(t);return n.animate([{height:t+"px",opacity:1,overflowY:"hidden"},{height:"0",opacity:0,overflowY:"hidden"}],{easing:"cubic-bezier(0.39, 0.575, 0.565, 1)",duration:e})}))}(t)}),[p,b]),I(D,{renderable:p},I(r,c(c({},d),{},{ref:f,className:l+" section-child-00fce3c"+(p?"":" content-hidden-00fce3c"),id:h,"aria-labelledby":m,role:u}),o))}on.displayName="Accordion";export{on as BentoAccordion,ln as BentoAccordionContent,un as BentoAccordionHeader,an as BentoAccordionSection};
var n;function e(n){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function t(n){var t=function(n,t){if("object"!==e(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var o=r.call(n,"string");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===e(t)?t:String(t)}function r(){return n||(n=Promise.resolve(void 0))}function o(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function i(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?i(Object(t),!0).forEach((function(e){o(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function c(n,e){if(null==n)return{};var t,r,o={},i=Object.keys(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)>=0||(o[t]=n[t]);return o}var{hasOwnProperty:l,toString:u}=Object.prototype;function d(n,e){return Object.keys(n).reduce(((t,r)=>(e.includes(r)||(t[r]=n[r]),t)),{})}import{hydrate as f,render as s}from"react-dom";import{createElement as b,cloneElement as h,createRef as p,createContext as m}from"react";import{useState as g,useRef as v,useEffect as y,useLayoutEffect as x,useContext as S,useMemo as j,useCallback as O,useImperativeHandle as w}from"react";import{forwardRef as I}from"react";var $,z,E=["auto","lazy","eager","unload"],M={auto:0,lazy:1,eager:2,unload:3};function Y(n,e){const t=M[n]||0,r=M[e]||0,o=Math.max(t,r);return E[o]}function C(){return $||($=m({renderable:!0,playable:!0,loading:"auto"}))}function H({children:n,loading:e="auto",notify:t,playable:r=!0,renderable:o=!0}){const i=function(){const n=C();return S(n)}(),a=o&&i.renderable,c=a&&r&&i.playable,l=Y(a?"auto":"lazy",Y(e,i.loading)),u=t||i.notify,d=j((()=>({renderable:a,playable:c,loading:l,notify:u})),[a,c,l,u]),f=C();return b(f.Provider,{children:n,value:d})}var N=["Webkit","webkit","Moz","moz","ms","O","o"];function k(n,e,t){if(W(e))return e;z||(z=Object.create(null));let r=z[e];if(!r||t){if(r=e,void 0===n[e]){const t=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(e),o=function(n,e){for(let t=0;t<N.length;t++){const r=N[t]+e;if(void 0!==n[r])return r}return""}(n,t);void 0!==n[o]&&(r=o)}t||(z[e]=r)}return r}function P(n,e,t,r,o){const i=k(n.style,e,o);if(!i)return;const a=r?t+r:t;W(i)?n.style.setProperty(i,a):n.style[i]=a}function A(n,e,t){const r=k(n.style,e,t);if(r)return W(r)?n.style.getPropertyValue(r):n.style[r]}function T(n,e){for(const t in e)P(n,t,e[t])}function W(n){return n.startsWith("--")}function q(n,e,t){n.classList.add("i-amphtml-animating");let r=e();return r.onfinish=r.oncancel=()=>{r=null,t&&t(),n.classList.remove("i-amphtml-animating")},()=>{r&&r.cancel()}}function B(n){const e=window.innerHeight,t=Math.abs(n)/e*500;return Math.min(Math.max(t,200),500)}var D=["animate","as","children","expandSingleSection","id"],F=["animate","as","children","expanded","id","onExpandStateChange"],G=m({}),J=m({}),K={},L={},Q=function(){let n=0;return()=>String(++n)}(),R=()=>String(Math.floor(1e5*Math.random())),U=I((function(n,e){let{animate:t=!1,as:o="section",children:i,expandSingleSection:l=!1,id:u}=n,f=c(n,D);const[s,h]=g(K),p=v(L),[m]=g(R),x=u||`a${m}`;y((()=>{l&&h((n=>{const e={};let t=0;for(const r in n)e[r]=n[r]&&0==t++;return e}))}),[l]);const S=O(((n,e,{current:t})=>(h((t=>V(n,e,t,l))),p.current=a(a({},p.current),{},{[n]:t}),()=>{h((e=>d(e,n))),p.current=d(p.current,n)})),[l]),I=O(((n,e)=>{h((t=>{const o=null!=e?e:!t[n],i=V(n,o,t,l);return r().then((()=>{for(const n in t){const e=p.current[n];e&&t[n]!=i[n]&&e(i[n])}})),i}))}),[l]),$=O(((n,e)=>{var t;return null!==(t=s[n])&&void 0!==t?t:e}),[s]),z=O((n=>{if(n)n in s&&I(n);else if(!l)for(const n in s)I(n)}),[s,I,l]),E=O((n=>{if(n)$(n,!0)||I(n);else if(!l)for(const n in s)$(n,!0)||I(n)}),[s,I,$,l]),M=O((n=>{if(n)$(n,!1)&&I(n);else for(const n in s)$(n,!1)&&I(n)}),[s,I,$]);w(e,(()=>({toggle:z,expand:E,collapse:M})),[z,M,E]);const Y=j((()=>({registerSection:S,toggleExpanded:I,isExpanded:$,animate:t,prefix:x})),[S,I,$,t,x]);return b(o,a({id:u},f),b(G.Provider,{value:Y},i))}));function V(n,e,t,r){let o;if(r&&e){o={[n]:e};for(const e in t)e!=n&&(o[e]=!1)}else o=a(a({},t),{},{[n]:e});return o}function X(n){let{animate:e=!1,as:t="section",children:o,expanded:i=!1,id:l,onExpandStateChange:u}=n,d=c(n,F);const[f]=g(Q),s=l||f,[h]=g(R),[p,m]=g(i),[y,w]=g(null),[I,$]=g(null),{animate:z,isExpanded:E,prefix:M,registerSection:Y,toggleExpanded:C}=S(G),H=E?E(s,i):p,N=null!=z?z:e,k=y||`${M||"a"}-content-${s}-${h}`,P=I||`${M||"a"}-header-${s}-${h}`,A=v(null);A.current=u,x((()=>{if(Y)return Y(s,i,A)}),[Y,s,i]);const T=O((n=>{C?C(s,n):m((e=>{const t=null!=n?n:!e;return r().then((()=>{const n=A.current;n&&n(t)})),t}))}),[s,C]),W=j((()=>({animate:N,contentId:k,headerId:P,expanded:H,toggleHandler:T,setContentId:w,setHeaderId:$})),[N,k,P,H,T]);return b(t,a({},d),b(J.Provider,{value:W},o))}function Z(n){let e="className",r="tabindex",{as:o="div",children:i,id:l,role:u="button",[e]:d="",[r]:f=0}=n,s=c(n,["as","children","id","role",e,r].map(t));const{contentId:h,expanded:p,headerId:m,setHeaderId:g,toggleHandler:v}=S(J);return x((()=>{g&&g(l)}),[g,l]),b(o,a(a({},s),{},{id:m,role:u,className:`${d} section-child-00fce3c header-00fce3c`,tabindex:f,"aria-controls":h,onClick:()=>v(),"aria-expanded":String(p)}),i)}function _(n){let e="className",{as:r="div",children:o,id:i,role:l="region",[e]:u=""}=n,d=c(n,["as","children","id","role",e].map(t));const f=v(null),s=v(!1),{animate:h,contentId:p,expanded:m,headerId:g,setContentId:j}=S(J);return y((()=>(s.current=!0,()=>s.current=!1)),[]),x((()=>{j&&j(i)}),[j,i]),x((()=>{const n=s.current,e=f.current;if(h&&n&&e&&e.animate)return m?function(n){return q(n,(()=>{const e=A(n,"height"),t=A(n,"opacity"),r=A(n,"overflowY");T(n,{height:0,opacity:0,overflowY:"auto"});const o=n.scrollHeight;T(n,{height:e,opacity:t,overflowY:r});const i=B(o);return n.animate([{height:0,opacity:0,overflowY:"hidden"},{height:o+"px",opacity:1,overflowY:"hidden"}],{easing:"cubic-bezier(0.47, 0, 0.745, 0.715)",duration:i})}))}(e):function(n){return q(n,(()=>{const e=n.offsetHeight,t=B(e);return n.animate([{height:e+"px",opacity:1,overflowY:"hidden"},{height:"0",opacity:0,overflowY:"hidden"}],{easing:"cubic-bezier(0.39, 0.575, 0.565, 1)",duration:t})}))}(e)}),[m,h]),b(H,{renderable:m},b(r,a(a({},d),{},{ref:f,className:u+" section-child-00fce3c"+(m?"":" content-hidden-00fce3c"),id:p,"aria-labelledby":g,role:l}),o))}U.displayName="Accordion";export{U as BentoAccordion,_ as BentoAccordionContent,Z as BentoAccordionHeader,X as BentoAccordionSection};

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

var n=Object.defineProperty;function t(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function i(n,t){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.push.apply(i,r)}return i}function r(n){for(var r=1;r<arguments.length;r++){var u=null!=arguments[r]?arguments[r]:{};r%2?i(Object(u),!0).forEach((function(i){t(n,i,u[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(u)):i(Object(u)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(u,t))}))}return n}function u(n,t){return(u=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&u(n,t)}function o(n){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function l(n){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function f(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function a(n,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(n)}function c(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var i,r=o(n);if(t){var u=o(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return a(this,i)}}!function(t,i){for(var r in function(t){n(t,"__esModule",{value:!0})}(t),i)n(t,r,{get:i[r],enumerable:!0})}(exports,{defineElement:function(){return jr}});var s=Array.isArray;function v(n){return s(n)?n:[n]}function h(n,t){return n.indexOf(t)<0&&(n.push(t),!0)}function d(n,t){var i=n.indexOf(t);return-1!=i&&(n.splice(i,1),!0)}function p(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=n[i];return r}function y(n,t){if(n){if("string"==typeof n)return p(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?p(n,t):void 0}}function m(n,t){var i="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(i)return(i=i.call(n)).next.bind(i);if(Array.isArray(n)||(i=y(n))||t&&n&&"number"==typeof n.length){i&&(n=i);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}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 b,g=Object.prototype,w=g.hasOwnProperty;function _(n){var t=Object.create(null);return n&&Object.assign(t,n),t}function S(n){return n||{}}function x(n,t){return Object.keys(n).reduce((function(i,r){return t.includes(r)||(i[r]=n[r]),i}),{})}function j(n,t){if(null==n||null==t)return n===t;for(var i in n)if(n[i]!==t[i])return!1;for(var r in t)if(t[r]!==n[r])return!1;return!0}function O(n,t,i){var r=n[t];return void 0===r&&(r=i(n,t),n[t]=r),r}function k(n){return 1==(null==n?void 0:n.nodeType)}function M(n,t,i,r,u,e,o,l,f,a,c){return n}function A(n){return(n.ownerDocument||n).defaultView}function E(n){return void 0!==b?b:b=function(n){try{var t=n.ownerDocument,i=t.createElement("div"),r=t.createElement("div");return i.appendChild(r),i.querySelector(":scope div")===r}catch(n){return!1}}(n)}function P(n,t){return n.replace(/^|,/g,"$&".concat(t," "))}function z(n){M(/^[\w-]+$/.test(n))}function R(n,t){var i=n.classList,r="i-amphtml-scoped";i.add(r);var u=P(t,".".concat(r)),e=n.querySelectorAll(u);return i.remove(r),e}function T(n,t){if(E(n))return n.querySelector(P(t,":scope"));var i=R(n,t)[0];return void 0===i?null:i}function I(n,t){return z(t),T(n,"> [".concat(t,"]"))}function C(n){return function(n,t){for(var i=[],r=n.firstChild;r;r=r.nextSibling)e=void 0,o=void 0,"string"==typeof(e=u=r)?o=e:k(e)&&(o=e.tagName),!(o&&o.toLowerCase().startsWith("i-")||u.nodeType===Node.ELEMENT_NODE&&(u.hasAttribute("placeholder")||u.hasAttribute("fallback")||u.hasAttribute("overflow")))&&i.push(r);var u,e,o;return i}(n)}g.toString;var L,H={bubbles:!0,cancelable:!0};function N(n,t,i){return function(n,t){for(var i in t)n.setAttribute(i,t[i]);return n}(n.createElement(t),i)}function F(n,t,i,r){var u=i||{};M(n.ownerDocument);var e=n.ownerDocument.createEvent("Event");e.data=u;var o=r||H,l=o.bubbles,f=o.cancelable;e.initEvent(t,l,f),n.dispatchEvent(e)}function Y(){return L||(L=Promise.resolve(void 0))}var $,V,q,W,B,D,Z,U,X,G,J=function(){var n=this;this.promise=new Promise((function(t,i){n.resolve=t,n.reject=i}))},K={},Q=[],nn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function tn(n,t){for(var i in t)n[i]=t[i];return n}function rn(n){var t=n.parentNode;t&&t.removeChild(n)}function un(n,t,i){var r,u,e,o={};for(e in t)"key"==e?r=t[e]:"ref"==e?u=t[e]:o[e]=t[e];if(arguments.length>2&&(o.children=arguments.length>3?$.call(arguments,2):i),"function"==typeof n&&null!=n.defaultProps)for(e in n.defaultProps)void 0===o[e]&&(o[e]=n.defaultProps[e]);return en(n,o,r,u,null)}function en(n,t,i,r,u){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++q:u};return null==u&&null!=V.vnode&&V.vnode(e),e}function on(n){return n.children}function ln(n,t){this.props=n,this.context=t}function fn(n,t){if(null==t)return n.__?fn(n.__,n.__.__k.indexOf(n)+1):null;for(var i;t<n.__k.length;t++)if(null!=(i=n.__k[t])&&null!=i.__e)return i.__e;return"function"==typeof n.type?fn(n):null}function an(n){var t,i;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,t=0;t<n.__k.length;t++)if(null!=(i=n.__k[t])&&null!=i.__e){n.__e=n.__c.base=i.__e;break}return an(n)}}function cn(n){(!n.__d&&(n.__d=!0)&&W.push(n)&&!sn.__r++||D!==V.debounceRendering)&&((D=V.debounceRendering)||B)(sn)}function sn(){for(var n;sn.__r=W.length;)n=W.sort((function(n,t){return n.__v.__b-t.__v.__b})),W=[],n.some((function(n){var t,i,r,u,e,o;n.__d&&(e=(u=(t=n).__v).__e,(o=t.__P)&&(i=[],(r=tn({},u)).__v=u.__v+1,gn(o,u,r,t.__n,void 0!==o.ownerSVGElement,null!=u.__h?[e]:null,i,null==e?fn(u):e,u.__h),wn(i,u),u.__e!=e&&an(u)))}))}function vn(n,t,i,r,u,e,o,l,f,a){var c,s,v,h,d,p,y,m=r&&r.__k||Q,b=m.length;for(i.__k=[],c=0;c<t.length;c++)if(null!=(h=i.__k[c]=null==(h=t[c])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?en(null,h,null,null,h):Array.isArray(h)?en(on,{children:h},null,null,null):h.__b>0?en(h.type,h.props,h.key,null,h.__v):h)){if(h.__=i,h.__b=i.__b+1,null===(v=m[c])||v&&h.key==v.key&&h.type===v.type)m[c]=void 0;else for(s=0;s<b;s++){if((v=m[s])&&h.key==v.key&&h.type===v.type){m[s]=void 0;break}v=null}gn(n,h,v=v||K,u,e,o,l,f,a),d=h.__e,(s=h.ref)&&v.ref!=s&&(y||(y=[]),v.ref&&y.push(v.ref,null,h),y.push(s,h.__c||d,h)),null!=d?(null==p&&(p=d),"function"==typeof h.type&&h.__k===v.__k?h.__d=f=hn(h,f,n):f=dn(n,h,v,m,d,f),"function"==typeof i.type&&(i.__d=f)):f&&v.__e==f&&f.parentNode!=n&&(f=fn(v))}for(i.__e=p,c=b;c--;)null!=m[c]&&("function"==typeof i.type&&null!=m[c].__e&&m[c].__e==i.__d&&(i.__d=fn(r,c+1)),Sn(m[c],m[c]));if(y)for(c=0;c<y.length;c++)_n(y[c],y[++c],y[++c])}function hn(n,t,i){for(var r,u=n.__k,e=0;u&&e<u.length;e++)(r=u[e])&&(r.__=n,t="function"==typeof r.type?hn(r,t,i):dn(i,r,r,u,r.__e,t));return t}function dn(n,t,i,r,u,e){var o,l,f;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==i||u!=e||null==u.parentNode)n:if(null==e||e.parentNode!==n)n.appendChild(u),o=null;else{for(l=e,f=0;(l=l.nextSibling)&&f<r.length;f+=2)if(l==u)break n;n.insertBefore(u,e),o=e}return void 0!==o?o:u.nextSibling}function pn(n,t,i){"-"===t[0]?n.setProperty(t,i):n[t]=null==i?"":"number"!=typeof i||nn.test(t)?i:i+"px"}function yn(n,t,i,r,u){var e;n:if("style"===t)if("string"==typeof i)n.style.cssText=i;else{if("string"==typeof r&&(n.style.cssText=r=""),r)for(t in r)i&&t in i||pn(n.style,t,"");if(i)for(t in i)r&&i[t]===r[t]||pn(n.style,t,i[t])}else if("o"===t[0]&&"n"===t[1])e=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in n?t.toLowerCase().slice(2):t.slice(2),n.l||(n.l={}),n.l[t+e]=i,i?r||n.addEventListener(t,e?bn:mn,e):n.removeEventListener(t,e?bn:mn,e);else if("dangerouslySetInnerHTML"!==t){if(u)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in n)try{n[t]=null==i?"":i;break n}catch(n){}"function"==typeof i||(null!=i&&(!1!==i||"a"===t[0]&&"r"===t[1])?n.setAttribute(t,i):n.removeAttribute(t))}}function mn(n){this.l[n.type+!1](V.event?V.event(n):n)}function bn(n){this.l[n.type+!0](V.event?V.event(n):n)}function gn(n,t,i,r,u,e,o,l,f){var a,c,s,v,h,d,p,y,m,b,g,w=t.type;if(void 0!==t.constructor)return null;null!=i.__h&&(f=i.__h,l=t.__e=i.__e,t.__h=null,e=[l]),(a=V.__b)&&a(t);try{n:if("function"==typeof w){if(y=t.props,m=(a=w.contextType)&&r[a.__c],b=a?m?m.props.value:a.__:r,i.__c?p=(c=t.__c=i.__c).__=c.__E:("prototype"in w&&w.prototype.render?t.__c=c=new w(y,b):(t.__c=c=new ln(y,b),c.constructor=w,c.render=xn),m&&m.sub(c),c.props=y,c.state||(c.state={}),c.context=b,c.__n=r,s=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=w.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=tn({},c.__s)),tn(c.__s,w.getDerivedStateFromProps(y,c.__s))),v=c.props,h=c.state,s)null==w.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==w.getDerivedStateFromProps&&y!==v&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(y,b),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(y,c.__s,b)||t.__v===i.__v){c.props=y,c.state=c.__s,t.__v!==i.__v&&(c.__d=!1),c.__v=t,t.__e=i.__e,t.__k=i.__k,t.__k.forEach((function(n){n&&(n.__=t)})),c.__h.length&&o.push(c);break n}null!=c.componentWillUpdate&&c.componentWillUpdate(y,c.__s,b),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(v,h,d)}))}c.context=b,c.props=y,c.state=c.__s,(a=V.__r)&&a(t),c.__d=!1,c.__v=t,c.__P=n,a=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(r=tn(tn({},r),c.getChildContext())),s||null==c.getSnapshotBeforeUpdate||(d=c.getSnapshotBeforeUpdate(v,h)),g=null!=a&&a.type===on&&null==a.key?a.props.children:a,vn(n,Array.isArray(g)?g:[g],t,i,r,u,e,o,l,f),c.base=t.__e,t.__h=null,c.__h.length&&o.push(c),p&&(c.__E=c.__=null),c.__e=!1}else null==e&&t.__v===i.__v?(t.__k=i.__k,t.__e=i.__e):t.__e=function(n,t,i,r,u,e,o,l){var f,a,c,s=i.props,v=t.props,h=t.type,d=0;if("svg"===h&&(u=!0),null!=e)for(;d<e.length;d++)if((f=e[d])&&(f===n||(h?f.localName==h:3==f.nodeType))){n=f,e[d]=null;break}if(null==n){if(null===h)return document.createTextNode(v);n=u?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,v.is&&v),e=null,l=!1}if(null===h)s===v||l&&n.data===v||(n.data=v);else{if(e=e&&$.call(n.childNodes),a=(s=i.props||K).dangerouslySetInnerHTML,c=v.dangerouslySetInnerHTML,!l){if(null!=e)for(s={},d=0;d<n.attributes.length;d++)s[n.attributes[d].name]=n.attributes[d].value;(c||a)&&(c&&(a&&c.__html==a.__html||c.__html===n.innerHTML)||(n.innerHTML=c&&c.__html||""))}if(function(n,t,i,r,u){var e;for(e in i)"children"===e||"key"===e||e in t||yn(n,e,null,i[e],r);for(e in t)u&&"function"!=typeof t[e]||"children"===e||"key"===e||"value"===e||"checked"===e||i[e]===t[e]||yn(n,e,t[e],i[e],r)}(n,v,s,u,l),c)t.__k=[];else if(d=t.props.children,vn(n,Array.isArray(d)?d:[d],t,i,r,u&&"foreignObject"!==h,e,o,e?e[0]:i.__k&&fn(i,0),l),null!=e)for(d=e.length;d--;)null!=e[d]&&rn(e[d]);l||("value"in v&&void 0!==(d=v.value)&&(d!==n.value||"progress"===h&&!d)&&yn(n,"value",d,s.value,!1),"checked"in v&&void 0!==(d=v.checked)&&d!==n.checked&&yn(n,"checked",d,s.checked,!1))}return n}(i.__e,t,i,r,u,e,o,f);(a=V.diffed)&&a(t)}catch(n){t.__v=null,(f||null!=e)&&(t.__e=l,t.__h=!!f,e[e.indexOf(l)]=null),V.__e(n,t,i)}}function wn(n,t){V.__c&&V.__c(t,n),n.some((function(t){try{n=t.__h,t.__h=[],n.some((function(n){n.call(t)}))}catch(n){V.__e(n,t.__v)}}))}function _n(n,t,i){try{"function"==typeof n?n(t):n.current=t}catch(n){V.__e(n,i)}}function Sn(n,t,i){var r,u;if(V.unmount&&V.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||_n(r,null,t)),null!=(r=n.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){V.__e(n,t)}r.base=r.__P=null}if(r=n.__k)for(u=0;u<r.length;u++)r[u]&&Sn(r[u],t,"function"!=typeof n.type);i||null==n.__e||rn(n.__e),n.__e=n.__d=void 0}function xn(n,t,i){return this.constructor(n,i)}function jn(n,t,i){var r,u,e;V.__&&V.__(n,t),u=(r="function"==typeof i)?null:i&&i.__k||t.__k,e=[],gn(t,n=(!r&&i||t).__k=un(on,null,[n]),u||K,K,void 0!==t.ownerSVGElement,!r&&i?[i]:u?null:t.firstChild?$.call(t.childNodes):null,e,!r&&i?i:u?u.__e:t.firstChild,r),wn(e,n)}function On(n,t){jn(n,t,On)}$=Q.slice,V={__e:function(n,t){for(var i,r,u;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),u=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n),u=i.__d),u)return i.__E=i}catch(t){n=t}throw n}},q=0,ln.prototype.setState=function(n,t){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=tn({},this.state),"function"==typeof n&&(n=n(tn({},i),this.props)),n&&tn(i,n),null!=n&&this.__v&&(t&&this.__h.push(t),cn(this))},ln.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),cn(this))},ln.prototype.render=on,W=[],B="function"==typeof Promise?Promise.prototype.then.bind(Y()):setTimeout,sn.__r=0,Z=0;var kn=0,Mn=[],An=V.__b,En=V.__r,Pn=V.diffed,zn=V.__c,Rn=V.unmount;function Tn(n,t){V.__h&&V.__h(X,n,kn||t),kn=0;var i=X.__H||(X.__H={__:[],__h:[]});return n>=i.__.length&&i.__.push({}),i.__[n]}function In(n,t){var i=Tn(U++,4);!V.__s&&Yn(i.__H,t)&&(i.__=n,i.__H=t,X.__h.push(i))}function Cn(n,t){var i=Tn(U++,7);return Yn(i.__H,t)&&(i.__=n(),i.__H=t,i.__h=n),i.__}function Ln(){Mn.forEach((function(n){if(n.__P)try{n.__H.__h.forEach(Nn),n.__H.__h.forEach(Fn),n.__H.__h=[]}catch(t){n.__H.__h=[],V.__e(t,n.__v)}})),Mn=[]}V.__b=function(n){X=null,An&&An(n)},V.__r=function(n){En&&En(n),U=0;var t=(X=n.__c).__H;t&&(t.__h.forEach(Nn),t.__h.forEach(Fn),t.__h=[])},V.diffed=function(n){Pn&&Pn(n);var t=n.__c;t&&t.__H&&t.__H.__h.length&&(1!==Mn.push(t)&&G===V.requestAnimationFrame||((G=V.requestAnimationFrame)||function(n){var t,i=function(){clearTimeout(r),Hn&&cancelAnimationFrame(t),setTimeout(n)},r=setTimeout(i,100);Hn&&(t=requestAnimationFrame(i))})(Ln)),X=null},V.__c=function(n,t){t.some((function(n){try{n.__h.forEach(Nn),n.__h=n.__h.filter((function(n){return!n.__||Fn(n)}))}catch(i){t.some((function(n){n.__h&&(n.__h=[])})),t=[],V.__e(i,n.__v)}})),zn&&zn(n,t)},V.unmount=function(n){Rn&&Rn(n);var t=n.__c;if(t&&t.__H)try{t.__H.__.forEach(Nn)}catch(n){V.__e(n,t.__v)}};var Hn="function"==typeof requestAnimationFrame;function Nn(n){var t=X;"function"==typeof n.__c&&n.__c(),X=t}function Fn(n){var t=X;n.__c=n.__(),X=t}function Yn(n,t){return!n||n.length!==t.length||t.some((function(t,i){return t!==n[i]}))}function $n(n,t){return"function"==typeof t?t(n):t}function Vn(n,t,i){return un.apply(void 0,arguments)}function qn(n,t,i){jn(n,t,i)}function Wn(n){return(i={__c:t="__cC"+Z++,__:n,Consumer:function(n,t){return n.children(t)},Provider:function(n){var i,r;return this.getChildContext||(i=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&i.some(cn)},this.sub=function(n){i.push(n);var t=n.componentWillUnmount;n.componentWillUnmount=function(){i.splice(i.indexOf(n),1),t&&t.call(n)}}),n.children}}).Provider.__=i.Consumer.contextType=i;var t,i}function Bn(n){return kn=1,t=$n,i=n,(r=Tn(U++,2)).t=t,r.__c||(r.__=[$n(void 0,i),function(n){var t=r.t(r.__[0],n);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=X),r.__;var t,i,r}function Dn(n){return t=n,kn=5,Cn((function(){return{current:t}}),[]);var t}function Zn(n,t){var i,r,u;i=n,r=t,u=Tn(U++,3),!V.__s&&Yn(u.__H,r)&&(u.__=i,u.__H=r,X.__H.__h.push(u))}function Un(n,t){In(n,t)}function Xn(n){return t=n,i=X.context[t.__c],(r=Tn(U++,9)).c=t,i?(null==r.__&&(r.__=!0,i.sub(X)),i.props.value):t.__;var t,i,r}function Gn(n,t){return Cn(n,t)}function Jn(n,t){return i=n,kn=8,Cn((function(){return i}),t);var i}function Kn(n,t,i){return r=n,u=t,kn=6,void In((function(){"function"==typeof r?r(u()):r&&(r.current=u())}),null==(e=i)?e:e.concat(r));var r,u,e}var Qn,nt=["auto","lazy","eager","unload"],tt=(t(Qn={},"auto",0),t(Qn,"lazy",1),t(Qn,"eager",2),t(Qn,"unload",3),Qn);function it(n,t){var i=tt[n]||0,r=tt[t]||0,u=Math.max(i,r);return nt[u]}function rt(n,t){var i=!1,r=function(){i=!1,n()};return function(n){i||(i=!0,(n||t)(r))}}function ut(n){var t=Object.getOwnPropertyDescriptor(n,"message");if(null!=t&&t.writable)return n;var i=n.message,r=n.stack,u=new Error(i);for(var e in n)u[e]=n[e];return u.stack=r,u}function et(n){for(var t,i=null,r="",u=m(arguments,!0);!(t=u()).done;){var e=t.value;e instanceof Error&&!i?i=ut(e):(r&&(r+=" "),r+=e)}return i?r&&(i.message=r+": "+i.message):i=new Error(r),i}function ot(n){var t,i;null===(t=(i=self).__AMP_REPORT_ERROR)||void 0===t||t.call(i,n)}function lt(n){var t=et.apply(null,arguments);setTimeout((function(){throw ot(t),t}))}function ft(n){try{for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return n.apply(null,i)}catch(n){lt(n)}}function at(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(u){var e=t(n,i,r);e&&at(n,t,i,e,!1)}else if(n.children)for(var o,l=m(n.children,!0);!(o=l()).done;){var f=o.value;at(f,t,i,r,!0)}}var ct=[],st=function(){},vt=function(){function n(n){this.Dh=n,this.v=null,this.m=null,this.nl=rt(this.nl.bind(this),setTimeout)}var t=n.prototype;return t.set=function(n,t,i){M(t),M(void 0!==i);var r=n.key,u=this.v||(this.v=new Map),e=u.get(r);e||(e={values:[],setters:[]},u.set(r,e));var o=e.setters.indexOf(t),l=-1==o||e.values[o]!==i;-1==o?(e.setters.push(t),e.values.push(i)):l&&(e.values[o]=i),l&&(this.ping(n,!1),yt(n)&&at(this.Dh,ht,n,!0,!1))},t.remove=function(n,t){M(t);var i=n.key,r=this.v,u=null==r?void 0:r.get(i);if(u){M(r);var e=u.setters.indexOf(t);-1!=e&&(u.setters.splice(e,1),u.values.splice(e,1),0==u.setters.length&&r.delete(i),at(this.Dh,ht,n))}},t.has=function(n){var t;return!(null===(t=this.v)||void 0===t||!t.has(n.key))},t.subscribe=function(n,t){var i=this.tl(n);if(h(i.subscribers,t)){var r=i.value;mt(r)&&this.qi()&&t(r)}},t.unsubscribe=function(n,t){var i,r=null===(i=this.m)||void 0===i?void 0:i.get(n.key);r&&d(r.subscribers,t)&&this.il(r)},t.ping=function(n,t){var i,r;null===(i=this.m)||void 0===i||null===(r=i.get(n.key))||void 0===r||r.ping(t)},t.parentUpdated=function(){this.qi()&&at(this.Dh,dt,void 0,ct)},t.rootUpdated=function(){var n=this,t=this.m;t&&(this.qi()?t.forEach((function(t){var i=t.prop;n.ping(i,!0)})):t.forEach((function(t){yt(t.prop)&&n.rl(t,null)})))},t.scan=function(n){return this.ping(n,!0),!!yt(n)&&!this.has(n)},t.scanAll=function(n){var t=this,i=null,r=this.m;return r&&r.forEach((function(r){var u=r.prop,e=u.key;-1==(i||n).indexOf(e)&&(t.ping(u,!0),t.Dh.children&&t.has(u)&&(i||(i=n.slice(0)),i.push(e)))})),i||n},t.qi=function(){return!!this.Dh.root},t.tl=function(n){var t=this,i=n.deps,r=n.key,u=this.m||(this.m=new Map),e=u.get(r);return e||(e={prop:n,subscribers:[],value:void 0,pending:0,counter:0,depValues:i.length>0?i.map(st):ct,parentValue:void 0,parentContextNode:null,ping:function(n){if(t.qi()){var i=n?2:1;e.pending=Math.max(e.pending,i),t.nl()}},pingDep:i.length>0?i.map((function(n,t){return function(n){e.depValues[t]=n,e.ping()}})):ct,pingParent:yt(n)?function(n){e.parentValue=n,e.ping()}:null},u.set(r,e),i.forEach((function(n,i){return t.subscribe(n,e.pingDep[i])})),e.ping(!1)),e},t.il=function(n){var t,i=this;if(!(n.subscribers.length>0)){var r=n.pingDep,u=n.prop,e=u.deps,o=u.key;null===(t=this.m)||void 0===t||t.delete(o),this.rl(n,null),e.length>0&&e.forEach((function(n,t){i.unsubscribe(n,r[t])}))}},t.nl=function(){var n=this;if(this.qi()){var t=this.m;if(t){var i;t.forEach((function(n){n.counter=0}));do{i=0,t.forEach((function(t){if(0!=t.pending){var r=t.prop.key;if(t.counter++,t.counter>5)return lt("cyclical prop: ".concat(r)),void(t.pending=0);i++,n.ul(t)}}))}while(i>0)}}},t.ul=function(n){var t,i=2==n.pending;try{t=this.el(n,i)}catch(n){lt(n)}n.pending=0,this.ol(n,t)},t.ol=function(n,t){var i=n.prop,r=n.value,u=i.key,e=this.m;if(r!==t&&n===(null==e?void 0:e.get(u))&&this.qi()){n.value=t;for(var o,l=m(n.subscribers,!0);!(o=l()).done;)(0,o.value)(t)}},t.el=function(n,t){var i,r;M(this.qi());var u=n.depValues,e=n.prop,o=e.compute,l=e.defaultValue,f=e.key,a=null===(i=this.v)||void 0===i||null===(r=i.get(f))||void 0===r?void 0:r.values,c=function(n,t){var i=n.compute,r=n.recursive;return"function"==typeof r?!t||r(t):!(r&&t&&!i)&&r}(e,a);if(t||c!=Boolean(n.parentContextNode)){var s=c?function(n,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?n.parent:n;r;r=r.parent)if(t(r,i))return r;return null}(this.Dh,pt,e,!1):null;this.rl(n,s)}var v=mt(n.parentValue)?n.parentValue:c&&!n.parentContextNode?l:void 0,h=void 0;if(u.every(mt)&&(!c||mt(v))){var d=this.Dh.node;a&&!o?h=a[0]:yt(e)?a||u.length>0?h=function(n,t,i,r,u){switch(u.length){case 0:return n(t,i,r);case 1:return n(t,i,r,u[0]);case 2:return n(t,i,r,u[0],u[1]);case 3:return n(t,i,r,u[0],u[1],u[2]);default:return n.apply(null,[t,i,r].concat(u))}}(o,d,a||ct,v,u):mt(v)&&(h=v):o&&(h=function(n,t,i,r){switch(r.length){case 0:return n(t,i);case 1:return n(t,i,r[0]);case 2:return n(t,i,r[0],r[1]);case 3:return n(t,i,r[0],r[1],r[2]);default:return n.apply(null,[t,i].concat(r))}}(o,d,a||ct,u))}return h},t.rl=function(n,t){var i=n.parentContextNode,r=n.pingParent,u=n.prop;t!=i&&(n.parentContextNode=t,n.parentValue=void 0,M(r),i&&i.values.unsubscribe(u,r),t&&(M(r),t.values.subscribe(u,r)))},n}();function ht(n,t){return n.values.scan(t)}function dt(n,t,i){return n.values.scanAll(i)}function pt(n,t){return n.values.has(t)}function yt(n){return!!n.recursive}function mt(n){return void 0!==n}var bt=function(){function n(t,i){this.node=t,this.name=i,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new vt(this),this.ll=null,this.fl=!1,this.al=rt(this.cl.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(function(t){var i,r,u=t.target;u.assignedNodes().forEach(gt),null===(i=n.closest(u))||void 0===i||null===(r=i.children)||void 0===r||r.forEach(wt)})),this.discover()}n.get=function(t){var i=t.__AMP_NODE;return i||(i=new n(t,null),t.__AMP_NODE=i),i},n.closest=function(t){for(var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t;r;){if(r!=t||i){if(r.__AMP_NODE)return r.__AMP_NODE;var u=r,e=u.nodeType;if(9==e||11==e||k(r)&&r.tagName.startsWith("AMP-"))return n.get(r)}var o=r.__AMP_ASSIGNED_SLOT||r.assignedSlot;r=o||r.parentNode}return null},n.assignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT!=t&&(n.__AMP_ASSIGNED_SLOT=t,gt(n))},n.unassignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT==t&&(n.__AMP_ASSIGNED_SLOT=void 0,gt(n))},n.rediscoverChildren=function(n){var t,i=n.__AMP_NODE;null==i||null===(t=i.children)||void 0===t||t.forEach(wt)};var t=n.prototype;return t.discover=function(){this.isDiscoverable()?this.al():this.name&&this.children&&this.children.forEach(wt)},t.isDiscoverable=function(){return!this.isRoot&&!this.fl},t.setParent=function(t){var i=null!=t&&t.nodeType?n.get(t):t;this.sl(i,null!=t)},t.setIsRoot=function(n){var t,i;this.isRoot=n;var r=n?this:null!==(t=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==t?t:null;this.updateRoot(r)},t.updateRoot=function(n){M(!n||n.isRoot);var t,i,r=this.root;n!=r&&(this.root=n,this.values.rootUpdated(),null===(t=this.ll)||void 0===t||t.forEach((function(n){return n.rootUpdated()})),null===(i=this.children)||void 0===i||i.forEach((function(t){return t.updateRoot(n)})))},t.addGroup=function(t,i,r){var u=this.groups||(this.groups=new Map),e=this.children,o=new n(this.node,t);return u.set(t,{cn:o,match:i,weight:r}),o.setParent(this),null==e||e.forEach(wt),o},t.group=function(n){var t,i;return(null===(t=this.groups)||void 0===t||null===(i=t.get(n))||void 0===i?void 0:i.cn)||null},t.findGroup=function(n){var t=this,i=this.groups;if(!i)return null;var r=null,u=Number.NEGATIVE_INFINITY;return i.forEach((function(i){var e=i.cn,o=i.match,l=i.weight;o(n,t.node)&&l>u&&(r=e,u=l)})),r},t.subscribe=function(n,t,i,r){var u=this.ll||(this.ll=new Map),e=u.get(n);e||(e=new t(this,i,r),u.set(n,e))},t.unsubscribe=function(n){var t=this.ll,i=null==t?void 0:t.get(n);i&&(i.dispose(),M(t),t.delete(n))},t.cl=function(){if(this.isDiscoverable()){var t=n.closest(this.node,!1),i=(null==t?void 0:t.findGroup(this.node))||t;this.sl(i,!1)}},t.sl=function(n,t){var i;this.fl=t;var r=this.parent;if(n!=r){if(this.parent=n,null!=r&&r.children&&(M(r.children),d(r.children,this)),n){var u=n.children||(n.children=[]);h(u,this);for(var e,o=m(u,!0);!(e=o()).done;){var l=e.value;l!=this&&l.isDiscoverable()&&l.discover()}}this.values.parentUpdated()}this.updateRoot(null!==(i=null==n?void 0:n.root)&&void 0!==i?i:null)},n}();function gt(n){!function(n,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=bt.closest(n,i);if(r)if(r.node==n)t(r);else if(r.children)for(var u,e=m(r.children,!0);!(u=e()).done;){var o=u.value;n.contains(o.node)&&t(o)}}(n,wt)}function wt(n){n.discover()}var _t=[];function St(n,t){var i=r({key:n,deps:_t,recursive:!1},t);return M(0==i.deps.length||i.compute),i}var xt=[],jt=function(){};function Ot(n,t,i){t=v(t);var r=i;bt.get(n).subscribe(r,kt,i,t)}var kt=function(){function n(n,t,i){var r=this;if(this.contextNode=n,this.vl=t,this.hl=i,this.dl=i.length>0?i.map(jt):xt,this.pl=i.length>0?i.map((function(n,t){return function(n){r.dl[t]=n,r.yl()}})):xt,this.Kn=!1,this.ml=null,this.yl=rt(this.yl.bind(this),setTimeout),i.length>0){var u=this.contextNode.values;i.forEach((function(n,t){return u.subscribe(n,r.pl[t])}))}this.qi()&&this.yl()}var t=n.prototype;return t.dispose=function(){var n=this;if(this.hl.length>0){var t=this.contextNode.values;this.hl.forEach((function(i,r){return t.unsubscribe(i,n.pl[r])}))}this._e()},t.rootUpdated=function(){var n=this.qi();this._e(),n&&this.yl()},t.qi=function(){return!!this.contextNode.root},t.yl=function(){this.qi()&&(this.dl.every(Mt)?(this.Kn=!0,this.bl()):this.Kn&&(this.Kn=!1,this._e()))},t.bl=function(){this._e();var n=this.vl;this.ml=function(n,t){switch(t.length){case 0:return n();case 1:return n(t[0]);case 2:return n(t[0],t[1]);case 3:return n(t[0],t[1],t[2]);default:return n.apply(null,t)}}(n,this.dl)},t._e=function(){this.ml&&(ft(this.ml),this.ml=null)},n}();function Mt(n){return void 0!==n}function At(n){bt.get(n).discover()}function Et(n,t,i,r){bt.get(n).values.set(t,i,r)}function Pt(n,t,i){bt.get(n).values.remove(t,i)}var zt,Rt=function(){function n(n,t){this.o=n,this.J=t,this._t={},this.kt=null}var t=n.prototype;return t.start=function(){this.kt=this._t,this._t={}},t.resolveMatchQuery=function(n){return"1"===this.Rt(n,Tt,"1")},t.resolveListQuery=function(n){return this.Rt(n,It,"")},t.complete=function(){for(var n in this.kt)n in this._t||Ct(this.kt[n],this.J,!1);this.kt=null},t.dispose=function(){for(var n in this._t)Ct(this._t[n],this.J,!1);this._t={}},t.Rt=function(n,t,i){if(!n.trim())return i;var r=this._t[n];return r||(M(this.kt),r=this.kt[n]),r||Ct(r=t(this.o,n),this.J,!0),this._t[n]=r,function(n){for(var t=0;t<n.length;t++){var i=n[t],r=i.query,u=i.value;if(!r||r.matches)return u}return""}(r)},n}();function Tt(n,t){return[{query:n.matchMedia(t),value:"1"},{query:null,value:""}]}function It(n,t){return t.split(",").map((function(t){if(0!=(t=t.replace(/\s+/g," ").trim()).length){var i,r,u;if(")"==t.charAt(t.length-1)){var e=1;for(u=t.length-2;u>=0;u--){var o=t.charAt(u);if("("==o?e--:")"==o&&e++,0==e)break}var l=u-1;if(u>0)for(u--;u>=0;u--){var f=t.charAt(u);if(!("%"==f||"-"==f||"_"==f||f>="a"&&f<="z"||f>="A"&&f<="Z"||f>="0"&&f<="9"))break}if(u>=l)return null}else for(u=t.length-2;u>=0;u--){var a=t.charAt(u);if(!("%"==a||"."==a||a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"))break}return u>=0?(i=t.substring(0,u+1).trim(),r=t.substring(u+1).trim()):(r=t,i=void 0),r?{query:i?n.matchMedia(i):null,value:r}:null}})).filter(Boolean)}function Ct(n,t,i){for(var r=0;r<n.length;r++){var u=n[r].query;u&&(void 0!==u.onchange?u.onchange=i?t:null:i?u.addListener(t):u.removeListener(t))}}var Lt=["Webkit","webkit","Moz","moz","ms","O","o"],Ht={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}};function Nt(n,t,i){if(Vt(t))return t;zt||(zt=_());var r=zt[t];if(!r||i){if(r=t,void 0===n[t]){var u=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(t),e=function(n,t){for(var i=0;i<Lt.length;i++){var r=Lt[i]+t;if(void 0!==n[r])return r}return""}(n,u);void 0!==n[e]&&(r=e)}i||(zt[t]=r)}return r}function Ft(n,t,i,r,u){var e=Nt(n.style,t,u);if(e){var o=r?i+r:i;Vt(e)?n.style.setProperty(e,o):n.style[e]=o}}function Yt(n,t,i){var r=Nt(n.style,t,i);if(r)return Vt(r)?n.style.getPropertyValue(r):n.style[r]}function $t(n,t){for(var i in t)Ft(n,i,t[i])}function Vt(n){return n.startsWith("--")}var qt=/vertical/,Wt=new WeakMap,Bt=new WeakMap,Dt=new WeakMap;function Zt(n){var t=Wt.get(n);return t||(t=new n.ResizeObserver(Ut),Wt.set(n,t)),t}function Ut(n){for(var t=new Set,i=n.length-1;i>=0;i--){var r=n[i],u=r.target;if(!t.has(u)){t.add(u);var e=Bt.get(u);if(e){Dt.set(u,r);for(var o=0;o<e.length;o++){var l=e[o],f=l.callback;Xt(l.type,f,r)}}}}}function Xt(n,t,i){if(0==n){var r=i.contentRect,u=r.height;ft(t,{width:r.width,height:u})}else if(1==n){var e,o=i.borderBoxSize;if(o)e=o.length>0?o[0]:{inlineSize:0,blockSize:0};else{var l,f,a=i.target,c=A(a),s=qt.test(function(n,t){return n.getComputedStyle(t)||Ht}(c,a).writingMode),v=a,h=v.offsetHeight,d=v.offsetWidth;s?(f=d,l=h):(l=d,f=h),e={inlineSize:l,blockSize:f}}ft(t,e)}}var Gt,Jt,Kt,Qt=function(){function n(n){this.gl=n,this.wl=!1,this._l=!1,this.Sl=this.Sl.bind(this)}var t=n.prototype;return t.updatePlaying=function(n){n!==this.wl&&(this.wl=n,n?(this._l=!1,function(n,t,i){var r=n.ownerDocument.defaultView;if(r){var u=Bt.get(n);if(u||(u=[],Bt.set(n,u),Zt(r).observe(n)),!u.some((function(n){return n.callback===i&&1===n.type}))){u.push({type:1,callback:i});var e=Dt.get(n);e&&setTimeout((function(){return Xt(1,i,e)}))}}}(this.gl,0,this.Sl)):function(n,t){!function(n,t,i){var r=Bt.get(n);if(r&&(function(n,t){for(var r=[],u=0,e=0;e<n.length;e++){var o=n[e];(l=o).callback===i&&1===l.type?r.push(o):(u<e&&(n[u]=o),u++)}var l;u<n.length&&(n.length=u)}(r),0==r.length)){Bt.delete(n),Dt.delete(n);var u=n.ownerDocument.defaultView;u&&Zt(u).unobserve(n)}}(n,0,t)}(this.gl,this.Sl))},t.Sl=function(n){var t=n.blockSize,i=n.inlineSize>0&&t>0;if(i!==this._l){this._l=i;var r=this.gl;i||r.pause()}},n}();function ni(){return Kt||(Kt=Wn({renderable:!0,playable:!0,loading:"auto"}))}function ti(n){var t=n.children,i=n.loading,r=void 0===i?"auto":i,u=n.notify,e=n.playable,o=void 0===e||e,l=n.renderable,f=void 0===l||l,a=ii(),c=f&&a.renderable,s=c&&o&&a.playable,v=it(c?"auto":"lazy",it(r,a.loading)),h=u||a.notify,d=Gn((function(){return{renderable:c,playable:s,loading:v,notify:h}}),[c,s,v,h]);return Vn(ni().Provider,{children:t,value:d})}function ii(){return Xn(ni())}Gt="undefined"!=typeof AMP&&AMP.BaseElement?AMP.BaseElement:function(){function n(n){this.element=n,this.win=A(n)}n.CustomElement=function(n){return Jt||(Jt=function(n){if("object"!==("undefined"==typeof Reflect?"undefined":l(Reflect))||!Reflect.construct)return n;function t(){return Reflect.construct(n,arguments,this.constructor)}return t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,n)}(HTMLElement)),function(t){e(r,Jt);var i=c(r);function r(){var t;return(t=i.call(this)).implementation=new n(f(t)),t}var u=r.prototype;return u.connectedCallback=function(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()},u.disconnectedCallback=function(){this.implementation.unmountCallback()},u.getApi=function(){return this.implementation.getApi()},r}()};var t=n.prototype;return t.mutateElement=function(n){Y().then(n)},t.isLayoutSupported=function(){return!0},t.mountCallback=function(){},t.unmountCallback=function(){},t.buildCallback=function(){},n}();var ri=St("CanRender",{defaultValue:!0,recursive:function(n){return n.reduce(oi)},compute:function(n,t,i){return i&&t.reduce(oi,!0)||!1}}),ui=St("CanPlay",{defaultValue:!0,recursive:function(n){return n.reduce(oi)},deps:[ri],compute:function(n,t,i,r){return r&&i&&t.reduce(oi,!0)||!1}}),ei=St("Loading",{defaultValue:"auto",recursive:!0,deps:[ri],compute:function(n,t,i,r){return it(r?"auto":"lazy",it(i||"auto",t.reduce(it,"auto")))}}),oi=function(n,t){return n&&t};function li(){var n=0;return function(){return String(++n)}}var fi=function(n){return n.ensureLoaded()},ai=function(n){return n.pause()},ci=function(n){return n.unmount()};function si(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];di(n,t,!1,fi)}function vi(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];di(n,t,!0,ai)}function hi(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];di(n,t,!0,ci)}function di(n,t,i,r){for(var u=v(n),e=0;e<u.length;e++)pi(u[e],t,i,r)}function pi(n,t,i,r){if(t&&n.classList.contains("i-amphtml-element")){var u=n;if(ft(r,u),!i){var e=u.getPlaceholder();return void(e&&pi(e,!0,!1,r))}}for(var o=n.getElementsByClassName("i-amphtml-element"),l=null,f=0;f<o.length;f++){var a=o[f];if(i)ft(r,a);else{l=l||[];for(var c=!1,s=0;s<l.length;s++)if(l[s].contains(a)){c=!0;break}c||(l.push(a),ft(r,a))}}}var yi={},mi=new WeakMap;function bi(n,t,i){var u=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n.setAttribute("slot",t),!u)return Vn(gi,r(r({},i||yi),{},{name:t}));var e=mi.get(n);if(e&&j(e.oldProps,i))return e.component;function o(n){return Vn(gi,r(r({},i||yi),{},{name:t},n))}return mi.set(n,{oldProps:i,component:o}),o}function gi(n){var t=Dn(null);return wi(t,n),Zn((function(){n.postRender&&n.postRender()})),Vn("slot",r(r({},n),{},{ref:t}))}function wi(n,t){var i=(t||yi).loading,r=ii();Un((function(){var t=n.current;return M(k(t)),Et(t,ri,gi,r.renderable),Et(t,ui,gi,r.playable),Et(t,ei,gi,r.loading),r.playable||_i(t,vi,!0),function(){var n;Pt(t,ri,gi),Pt(t,ui,gi),Pt(t,ei,gi),n=t,bt.rediscoverChildren(n)}}),[n,r]),Un((function(){var t=n.current;return M(k(t)),"lazy"!=i&&_i(t,si,!0),function(){_i(t,hi,!1)}}),[n,i])}function _i(n,t,i){var r=n.assignedElements?n.assignedElements():n;if(!Array.isArray(r)||0!=r.length)if(i){var u=n.ownerDocument.defaultView;u&&(u.requestIdleCallback||u.setTimeout)((function(){return t(r)}))}else t(r)}var Si={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},xi=li();function ji(n,t){return Object.values(n).some(t)}var Oi=function(n){return"string"==typeof n||!!n.selector},ki=function(n){return 3===n.nodeType&&0===n.nodeValue.trim().length};function Mi(n,t,i,u,e){var o=n.layoutSizeDefined,l=n.lightDomTag,f=n.props;e&&e.start();var a=r(r({},u),{},{ref:i});return l&&(a["i-amphtml-rendered"]=!0,a.__AMP_RENDERED=!0,a.as=l),o&&(n.usesShadowDom?a.style=Si:a.class="i-amphtml-fill-content"),Ai(n,a,f,t,e),e&&e.complete(),a}function Ai(n,t,i,r,u){if(ji(i,Oi))for(var e=C(r),o=0;o<e.length;o++){var l=e[o],f=Pi(l,i);if(f){var a=i[f],c=a.as,s=void 0!==c&&c,v=a.single,h=a.name,d=void 0===h?f:h,p=a.clone,y=a.props,m=void 0===y?{}:y;M(p||n.usesShadowDom);var b={};if(Ai(n,b,m,l,u),v)t[d]=bi(l,l.getAttribute("slot")||"i-amphtml-".concat(d),b,s);else{var g=t[d]||(t[d]=[]);M(!s),g.push(p?Ei(l):bi(l,l.getAttribute("slot")||"i-amphtml-".concat(d,"-").concat(xi()),b))}}}for(var w in i){var _=i[w];M(!!_.attr+!!_.attrs+!!_.attrMatches+!!_.selector+!!_.passthrough+!!_.passthroughNonEmpty<=1);var S=void 0;if(_.passthrough?(M(n.usesShadowDom),S=[Vn(gi,{loading:"lazy"})]):_.passthroughNonEmpty?(M(n.usesShadowDom),S=C(r).every(ki)?null:[Vn(gi,{loading:"lazy"})]):_.attr?(S=r.getAttribute(_.attr),_.media&&null!=S&&(S=u.resolveListQuery(String(S)))):_.parseAttrs&&(M(_.attrs||_.attrMatches),S=_.parseAttrs(r)),null==S)null!=_.default&&(t[w]=_.default);else{var x="number"==_.type?parseFloat(S):"boolean"==_.type?null==(j=S)?void 0:"false"!==j:S;t[w]=x}}var j}function Ei(n){for(var t={"key":n},i=n.attributes,r=n.localName,u=i.length,e=0;e<u;e++){var o=i[e],l=o.name,f=o.value;t[l]=f}return Vn(r,t)}function Pi(n,t){for(var i in t){var r=t[i];if(u=n,e="string"==typeof r?r:r.selector,o=void 0,(o=u.matches||u.webkitMatchesSelector||u.mozMatchesSelector||u.msMatchesSelector||u.oMatchesSelector)&&o.call(u,e))return i}var u,e,o;return null}var zi=self.AMP_CONFIG||{},Ri=("string"==typeof zi.thirdPartyFrameRegex?new RegExp(zi.thirdPartyFrameRegex):zi.thirdPartyFrameRegex,("string"==typeof zi.cdnProxyRegex?new RegExp(zi.cdnProxyRegex):zi.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function Ti(n){if(!self.document||!self.document.head)return null;if(self.location&&Ri.test(self.location.origin))return null;var t=self.document.head.querySelector('meta[name="'.concat(n,'"]'));return t&&t.getAttribute("content")||null}zi.thirdPartyUrl,zi.thirdPartyFrameHost,zi.cdnUrl||Ti("runtime-host"),zi.errorReportingUrl,zi.betaErrorReportingUrl,zi.localDev,zi.geoApiUrl||Ti("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var Ii=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";new RegExp("(-shadowcsshost"+Ii,"gim"),new RegExp("(-shadowcsscontext"+Ii,"gim"),new RegExp("-shadowcsshost","gim"),new RegExp("-shadowcsscontext","gim");var Ci={childList:!0},Li={childList:!0,characterData:!0},Hi={childList:!0},Ni=S({"style":"display: contents; background: inherit;","part":"c"}),Fi=S({"name":"i-amphtml-svc"}),Yi=S({"i-amphtml-rendered":""}),$i=function(){return!0},Vi=function(n){return!!n.media},qi=function(n){return!(!n.passthrough&&!n.passthroughNonEmpty)},Wi=function(n){e(i,n);var t=c(i);function i(n){var i;return(i=t.call(this,n)).xl=S({"loading":"auto","onReadyState":function(n,t){i.jl(n,t)},"onPlayingState":function(n){i.Ol(n)},"onLoading":function(){i.handleOnLoading()},"onLoad":function(){i.handleOnLoad()},"onError":function(){i.handleOnError()}}),i.kl={renderable:!1,playable:!0,loading:"auto",notify:function(){return i.mutateElement((function(){}))}},i.Ml=!1,i.Al=null,i.El=null,i.Pl=function(n){null!==n&&(i.Al?i.zl(n):i.Rl(n)),i.El=n,i.Tl()},i.Il=null,i.Cl=null,i.Ll=null,i.Hl=!1,i.Nl=null,i.Fl=function(){i.Hl=!1,i.Yl()},i.$l=!1,i.$i=!1,i.observer=null,i.Vl=new Qt(n),i.on=null,i}i.R1=function(){return!0},i.requiresShadowDom=function(){return this.usesShadowDom},i.usesLoading=function(){return this.loadable},i.prerenderAllowed=function(){return!this.usesLoading()};var u=i.prototype;return u.init=function(){},u.isLayoutSupported=function(t){return this.constructor.layoutSizeDefined?function(n){return"fixed"==n||"fixed-height"==n||"responsive"==n||"fill"==n||"flex-item"==n||"fluid"==n||"intrinsic"==n}(t)||"container"==t:n.prototype.isLayoutSupported.call(this,t)},u.buildCallback=function(){var n=this,t=this.constructor;this.observer=new MutationObserver((function(t){return n.ql(t)}));var i=t.props,u=ji(i,Oi)?Ci:null,e=ji(i,qi)?Li:null,o=t.usesTemplate?Hi:null;this.observer.observe(this.element,r(r(r({attributes:!0},u),e),o)),this.on=ji(i,Vi)?new Rt(this.win,(function(){return n.Wl()})):null;var l=t.staticProps,f=this.init();Object.assign(this.xl,l,f),this.checkPropsPostMutations(),Ot(this.element,[],(function(){return function(){n.$i=!1,n.Ll&&qn(null,n.Ll)}})),Ot(this.element,[ri,ui,ei],(function(t,i,r){n.kl.renderable=t,n.kl.playable=i,n.kl.loading=r,n.$i=!0,n.Wl()}));var a,c=t.useContexts;return 0!=c.length&&Ot(this.element,c,(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];n.Cl=i,n.Wl()})),this.Nl=new J,this.Wl(),t.loadable&&(null===(a=this.setReadyState)||void 0===a||a.call(this,"loading")),this.Tl(),this.Nl.promise},u.ensureLoaded=function(){this.constructor.loadable&&(this.mutateProps(S({"loading":"eager"})),this.Ml=!0)},u.mountCallback=function(){At(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.Ml=!1)},u.unmountCallback=function(){var n;At(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.Ol(!1),null===(n=this.on)||void 0===n||n.dispose()},u.mutatedAttributesCallback=function(){this.Ll&&this.Wl()},u.attemptChangeHeight=function(t){var i=this;return n.prototype.attemptChangeHeight.call(this,t).catch((function(n){throw i.getOverflowElement&&!i.getOverflowElement()&&console.warn("[overflow] element not found. Provide one to enable resizing to full contents.",i.element),n}))},u.mutateProps=function(n){Object.assign(this.xl,n),this.Wl()},u.api=function(){return M(this.El)},u.registerApiAction=function(n,t){var i,r=this,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;null===(i=this.registerAction)||void 0===i||i.call(this,n,(function(n){return t(r.api(),n)}),u)},u.mutationObserverCallback=function(n){},u.checkPropsPostMutations=function(){},u.updatePropsForRendering=function(n){},u.isReady=function(n){return!0},u.ql=function(n){var t=this.constructor;this.mutationObserverCallback(n);var i=n.some((function(n){return function(n,t){var i=t.type;if("attributes"==i){if(n.usesTemplate&&"template"==t.attributeName)return!0;var r=n.props;for(var u in r){var e,o=r[u];if(t.attributeName==o.attr||o.attrs&&o.attrs.includes(M(t.attributeName))||null!==(e=o.attrMatches)&&void 0!==e&&e.call(o,t.attributeName))return!0}return!1}return"childList"==i&&(Di(t.addedNodes)||Di(t.removedNodes))}(t,n)}));i&&(this.checkPropsPostMutations(),this.Wl())},u.Wl=function(){this.Hl||(this.Hl=!0,this.mutateElement(this.Fl))},u.Tl=function(){var n=this.El,t=null==n?void 0:n.readyState;t&&t!==this.element.readyState&&this.jl(t)},u.jl=function(n,t){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,n,t),this.constructor.unloadOnPause&&this.Ol("complete"==n),this.Ml&&(this.Ml=!1,this.mutateProps({"loading":"auto"}))},u.handleOnLoad=function(){var n,t,i;null===(n=this.toggleLoading)||void 0===n||n.call(this,!1),null===(t=this.toggleFallback)||void 0===t||t.call(this,!1),null===(i=this.togglePlaceholder)||void 0===i||i.call(this,!1)},u.handleOnLoading=function(){var n;null===(n=this.toggleLoading)||void 0===n||n.call(this,!0)},u.handleOnError=function(){var n,t,i,r,u;null===(n=this.toggleLoading)||void 0===n||n.call(this,!1),null!==(t=this.getFallback)&&void 0!==t&&t.call(this)?(null===(i=this.toggleFallback)||void 0===i||i.call(this,!0),null===(r=this.togglePlaceholder)||void 0===r||r.call(this,!1)):null===(u=this.togglePlaceholder)||void 0===u||u.call(this,!0)},u.Yl=function(){var n,t,i,u=this;if(this.$i){var e,o=this.constructor,l=o.usesShadowDom,f=l?null:o.lightDomTag,a=o.detached;if(!this.Ll){var c=this.win.document;if(l){M(!a);var s=this.element.shadowRoot,v=s&&(e=s,z("c"),T(e,"> ".concat("c")));if(v)this.$l=!0;else{var h,d,p,y,m,b;s=this.element.attachShadow({mode:"open",delegatesFocus:o.delegatesFocus});var g=o.shadowCss;g&&function(n,t,i){var r=n.ownerDocument,u=r.defaultView;if(void 0!==n.adoptedStyleSheets&&void 0!==u.CSSStyleSheet.prototype.replaceSync){var e=u.__AMP_SHADOW_CSS||(u.__AMP_SHADOW_CSS={}),o=e[t];o||((o=new u.CSSStyleSheet).replaceSync(i),e[t]=o),n.adoptedStyleSheets=n.adoptedStyleSheets.concat(o)}else{var l=r.createElement("style");l.setAttribute("data-name",t),l.textContent=i,n.appendChild(l)}}(s,this.element.tagName,g),v=N(c,"c",Ni),s.appendChild(v);var w=N(c,"slot",Fi);s.appendChild(w),null===(h=this.getPlaceholder)||void 0===h||null===(d=h.call(this))||void 0===d||d.setAttribute("slot","i-amphtml-svc"),null===(p=this.getFallback)||void 0===p||null===(y=p.call(this))||void 0===y||y.setAttribute("slot","i-amphtml-svc"),null===(m=this.getOverflowElement)||void 0===m||null===(b=m.call(this))||void 0===b||b.setAttribute("slot","i-amphtml-svc")}this.Ll=v,function(n,t){bt.get(n).setParent(t)}(s,this.element),function(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;bt.get(n).addGroup(t,i,r)}(this.element,"unslotted",$i,-1),n=this.element,t=ri,this,null===(i=bt.get(n).group("unslotted"))||void 0===i||i.values.set(t,this,!1)}else if(f){this.Ll=this.element;var _=I(this.Ll,"i-amphtml-rendered")||N(c,f,Yi);_.__AMP_RENDERED=!0,o.layoutSizeDefined&&_.classList.add("i-amphtml-fill-content"),this.Ll.appendChild(_)}else{var S=c.createElement("i-amphtml-c");this.Ll=S,S.classList.add("i-amphtml-fill-content"),a||this.element.appendChild(S)}}var x=o.useContexts,j=this.Cl;if(0==x.length||null!=j){var O=Mi(o,this.element,this.Pl,this.xl,this.on);if(this.updatePropsForRendering(O),this.isReady(O)){for(var k=Vn(o.Component,O),A=0;A<x.length;A++){var E=x[A].type,P=j[A];P&&(k=Vn(E.Provider,{value:P},k))}var R=Vn(ti,r({},this.kl),k);if(this.$l)this.$l=!1,function(n,t){On(n,t)}(R,this.Ll);else{var C=f?I(this.Ll,"i-amphtml-rendered"):null;C&&(C.__AMP_RENDERED=!0),qn(R,this.Ll,C)}l||a||this.mutateElement((function(){return F(u.element,"amp:dom-update",null)})),this.Nl&&(this.Nl.resolve(),this.Nl=null)}}}},u.getProp=function(n,t){return i=this.xl,r=n,w.call(i,r)?this.xl[n]:t;var i,r},u.getApi=function(){var n=this.Al;return n?Promise.resolve(n):(this.Il||(this.Il=new J),this.Il.promise)},u.Rl=function(n){for(var t=_(),i=Object.keys(n),r=0;r<i.length;r++)Bi(this,t,i[r]);this.Al=t,this.Il&&(this.Il.resolve(t),this.Il=null)},u.zl=function(n){},u.triggerEvent=function(n,t,i){F(n,t,i)},u.pauseCallback=function(){if(this.constructor.unloadOnPause)this.mutateProps(S({"loading":"unload"})),this.Ml=!0;else{var n,t=this.El;null==t||null===(n=t.pause)||void 0===n||n.call(t)}},u.Ol=function(n){this.Vl.updatePlaying(n)},i}(Gt);function Bi(n,t,i){Object.defineProperty(t,i,{configurable:!0,get:function(){return n.El[i]},set:function(t){n.El[i]=t}})}function Di(n){for(var t=0;t<n.length;t++){var i=n[t];if(k(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 Zi(n,t){if(null==n)return{};var i,r,u={},e=Object.keys(n);for(r=0;r<e.length;r++)i=e[r],t.indexOf(i)>=0||(u[i]=n[i]);return u}Wi.Component=function(){M(!1)},Wi.staticProps=void 0,Wi.useContexts=[],Wi.loadable=!1,Wi.unloadOnPause=!1,Wi.layoutSizeDefined=!1,Wi.lightDomTag="",Wi.usesTemplate=!1,Wi.shadowCss=null,Wi.usesShadowDom=!1,Wi.detached=!1,Wi.delegatesFocus=!1,Wi.props={};var Ui,Xi=["ref"],Gi="undefined"!=typeof Symbol&&(null===(Ui=Symbol.for)||void 0===Ui?void 0:Ui.call(Symbol,"react.forward_ref"))||3911,Ji=V.__b;function Ki(n){function t(t){var i=t.ref,r=Zi(t,Xi);return n(r,i)}return t.$$typeof=Gi,t.render=t,t.prototype.isReactComponent=!0,t.Bl=!0,t}function Qi(n){var t=function(n,t){if("object"!==l(n)||null===n)return n;var i=n[Symbol.toPrimitive];if(void 0!==i){var r=i.call(n,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===l(t)?t:String(t)}V.__b=function(n){var t;null!==(t=n.type)&&void 0!==t&&t.Bl&&n.ref&&(n.props.ref=n.ref,n.ref=null),null==Ji||Ji(n)};var nr=[null,"paint","layout","content","size","size paint","size layout","strict"],tr={"position":"relative","width":"100%","height":"100%"};function ir(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var i=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=i){var r,u,e=[],o=!0,l=!1;try{for(i=i.call(n);!(o=(r=i.next()).done)&&(e.push(r.value),!t||e.length!==t);o=!0);}catch(n){l=!0,u=n}finally{try{o||null==i.return||i.return()}finally{if(l)throw u}}return e}}(n,t)||y(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rr(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;n.classList.add("i-amphtml-animating");var r=t();return r.onfinish=r.oncancel=function(){r=null,i&&i(),n.classList.remove("i-amphtml-animating")},function(){r&&r.cancel()}}function ur(n){var t=window.innerHeight,i=Math.abs(n)/t*500;return Math.min(Math.max(i,200),500)}Ki((function(n,t){var i="class",u=n.as,e=void 0===u?"div":u,o=n.children,l=n.contentAs,f=void 0===l?"div":l,a=n.contentClassName,c=n.contentProps,s=n.contentRef,v=n.contentStyle,h=n.layout,d=void 0!==h&&h,p=n.paint,y=void 0!==p&&p,m=n.size,b=void 0!==m&&m,g=n.style,w=n.wrapperClassName,_=n.wrapperStyle,S=n[i],x=(b?4:0)+(d?2:0)+(y?1:0);return Vn(e,r(r({},Zi(n,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(Qi))),{},{ref:t,class:"".concat(S||""," ").concat(w||"").trim()||null,style:r(r(r({},g),_),{},{contain:nr[x]})}),Vn(f,r(r({},c),{},{ref:s,class:a,style:r(r({},b&&tr),{},{"overflow":y?"hidden":"visible"},v)}),o))})),Ki((function(n,t){var i="class",u=n.as,e=void 0===u?"div":u,o=n.children,l=n.style,f=n.wrapperClassName,a=n.wrapperStyle,c=n[i];return Vn(e,r(r({},Zi(n,["as","children","style","wrapperClassName","wrapperStyle",i].map(Qi))),{},{ref:t,class:"".concat(c||""," ").concat(f||"").trim()||null,style:r(r({},l),a)}),o)}));var er=["animate","as","children","expandSingleSection","id"],or=["animate","as","children","expanded","id","onExpandStateChange"],lr=Wn({}),fr=Wn({}),ar={},cr={},sr=li(),vr=function(){return String(Math.floor(1e5*Math.random()))},hr=Ki((function(n,i){var u=n.animate,e=void 0!==u&&u,o=n.as,l=void 0===o?"section":o,f=n.children,a=n.expandSingleSection,c=void 0!==a&&a,s=n.id,v=Zi(n,er),h=ir(Bn(ar),2),d=h[0],p=h[1],y=Dn(cr),m=ir(Bn(vr),1)[0],b=s||"a".concat(m);Zn((function(){c&&p((function(n){var t={},i=0;for(var r in n)t[r]=n[r]&&0==i++;return t}))}),[c]);var g=Jn((function(n,i,u){var e=u.current;return p((function(t){return dr(n,i,t,c)})),y.current=r(r({},y.current),{},t({},n,e)),function(){p((function(t){return x(t,n)})),y.current=x(y.current,n)}}),[c]),w=Jn((function(n,t){p((function(i){var r=null!=t?t:!i[n],u=dr(n,r,i,c);return Y().then((function(){for(var n in i){var t=y.current[n];t&&i[n]!=u[n]&&t(u[n])}})),u}))}),[c]),_=Jn((function(n,t){var i;return null!==(i=d[n])&&void 0!==i?i:t}),[d]),S=Jn((function(n){if(n)n in d&&w(n);else if(!c)for(var t in d)w(t)}),[d,w,c]),j=Jn((function(n){if(n)_(n,!0)||w(n);else if(!c)for(var t in d)_(t,!0)||w(t)}),[d,w,_,c]),O=Jn((function(n){if(n)_(n,!1)&&w(n);else for(var t in d)_(t,!1)&&w(t)}),[d,w,_]);Kn(i,(function(){return{toggle:S,expand:j,collapse:O}}),[S,O,j]);var k=Gn((function(){return{registerSection:g,toggleExpanded:w,isExpanded:_,animate:e,prefix:b}}),[g,w,_,e,b]);return Vn(l,r({id:s},v),Vn(lr.Provider,{value:k},f))}));function dr(n,i,u,e){var o;if(e&&i)for(var l in o=t({},n,i),u)l!=n&&(o[l]=!1);else o=r(r({},u),{},t({},n,i));return o}function pr(n){var t=n.animate,i=void 0!==t&&t,u=n.as,e=void 0===u?"section":u,o=n.children,l=n.expanded,f=void 0!==l&&l,a=n.id,c=n.onExpandStateChange,s=Zi(n,or),v=ir(Bn(sr),1)[0],h=a||v,d=ir(Bn(vr),1)[0],p=ir(Bn(f),2),y=p[0],m=p[1],b=ir(Bn(null),2),g=b[0],w=b[1],_=ir(Bn(null),2),S=_[0],x=_[1],j=Xn(lr),O=j.animate,k=j.isExpanded,M=j.prefix,A=j.registerSection,E=j.toggleExpanded,P=k?k(h,f):y,z=null!=O?O:i,R=g||"".concat(M||"a","-content-").concat(h,"-").concat(d),T=S||"".concat(M||"a","-header-").concat(h,"-").concat(d),I=Dn(null);I.current=c,Un((function(){if(A)return A(h,f,I)}),[A,h,f]);var C=Jn((function(n){E?E(h,n):m((function(t){var i=null!=n?n:!t;return Y().then((function(){var n=I.current;n&&n(i)})),i}))}),[h,E]),L=Gn((function(){return{animate:z,contentId:R,headerId:T,expanded:P,toggleHandler:C,setContentId:w,setHeaderId:x}}),[z,R,T,P,C]);return Vn(e,r({},s),Vn(fr.Provider,{value:L},o))}function yr(n){var t="class",i="tabIndex",u=n.as,e=void 0===u?"div":u,o=n.children,l=n.id,f=n.role,a=void 0===f?"button":f,c=n[t],s=void 0===c?"":c,v=n[i],h=void 0===v?0:v,d=Zi(n,["as","children","id","role",t,i].map(Qi)),p=Xn(fr),y=p.contentId,m=p.expanded,b=p.headerId,g=p.setHeaderId,w=p.toggleHandler;return Un((function(){g&&g(l)}),[g,l]),Vn(e,r(r({},d),{},{id:b,role:a,class:"".concat(s," ").concat("section-child-00fce3c"," ").concat("header-00fce3c"),tabIndex:h,"aria-controls":y,onClick:function(){return w()},"aria-expanded":String(m)}),o)}function mr(n){var t="class",i=n.as,u=void 0===i?"div":i,e=n.children,o=n.id,l=n.role,f=void 0===l?"region":l,a=n[t],c=void 0===a?"":a,s=Zi(n,["as","children","id","role",t].map(Qi)),v=Dn(null),h=Dn(!1),d=Xn(fr),p=d.animate,y=d.contentId,m=d.expanded,b=d.headerId,g=d.setContentId;return Zn((function(){return h.current=!0,function(){return h.current=!1}}),[]),Un((function(){g&&g(o)}),[g,o]),Un((function(){var n=h.current,t=v.current;if(p&&n&&t&&t.animate)return m?function(n){return rr(n,(function(){var t=Yt(n,"height"),i=Yt(n,"opacity"),r=Yt(n,"overflowY");$t(n,{height:0,opacity:0,overflowY:"auto"});var u=n.scrollHeight;$t(n,{height:t,opacity:i,overflowY:r});var e=ur(u);return n.animate([{height:0,opacity:0,overflowY:"hidden"},{height:u+"px",opacity:1,overflowY:"hidden"}],{easing:"cubic-bezier(0.47, 0, 0.745, 0.715)",duration:e})}))}(t):function(n){return rr(n,(function(){var t=n.offsetHeight,i=ur(t);return n.animate([{height:t+"px",opacity:1,overflowY:"hidden"},{height:"0",opacity:0,overflowY:"hidden"}],{easing:"cubic-bezier(0.39, 0.575, 0.565, 1)",duration:i})}))}(t)}),[m,p]),Vn(ti,{renderable:m},Vn(u,r(r({},s),{},{ref:v,class:c+" section-child-00fce3c"+(m?"":" content-hidden-00fce3c"),id:y,"aria-labelledby":b,role:f}),e))}hr.displayName="Accordion";var br=function(n){e(i,Wi);var t=c(i);function i(){return t.apply(this,arguments)}return i.prototype.init=function(){var n=this,t=function(t){return function(i){var r;!function(n,t,i){var r=n.hasAttribute(t),u=void 0!==i?i:!r;u!==r&&(u?n.setAttribute(t,""):n.removeAttribute(t))}(t,"expanded",i),null===(r=t.__AMP_PR)||void 0===r||r.call(t),n.triggerEvent(t,i?"expand":"collapse")}},i=this.element,r=new MutationObserver((function(){n.mutateProps(gr(i,r,t))}));return r.observe(i,{attributeFilter:["expanded","id"],subtree:!0,childList:!0}),S({"children":gr(i,r,t).children})},i}();function gr(n,t,i){var u,e,o,l,f,a=(e=n,o="section",z(o),l=e,f="> ".concat(o),(u=E(l)?l.querySelectorAll(P(f,":scope")):R(l,f))?Array.prototype.slice.call(u):[]).map((function(n){n.__AMP_PR||(n.__AMP_PR=function(){return t.takeRecords()});var u=O(n,"__AMP_H_SHIM",_r),e=O(n,"__AMP_C_SHIM",xr),o=O(n,"__AMP_EXPAND_STATE_SHIM",i),l=S({"key":n,"expanded":n.hasAttribute("expanded"),"id":n.getAttribute("id"),"onExpandStateChange":o}),f=S({"as":u,"id":n.firstElementChild.getAttribute("id"),"role":n.firstElementChild.getAttribute("role")||void 0}),a=S({"as":e,"id":n.lastElementChild.getAttribute("id"),"role":n.lastElementChild.getAttribute("role")||void 0});return Vn(pr,r({},l),Vn(yr,r({},f)),Vn(mr,r({},a)))}));return S({"children":a})}function wr(n,t){var i=t["aria-controls"],r=t["aria-expanded"],u=t.id,e=t.onClick,o=t.role,l=n.firstElementChild;return Un((function(){if(l&&e)return l.setAttribute("id",u),l.classList.add("i-amphtml-accordion-header"),l.addEventListener("click",e),l.hasAttribute("tabindex")||l.setAttribute("tabindex",0),l.setAttribute("aria-expanded",r),l.setAttribute("aria-controls",i),l.setAttribute("role",o),n.__AMP_PR&&n.__AMP_PR(),function(){l.removeEventListener("click",M(e))}}),[n,l,u,o,e,i,r]),Vn("header",null)}var _r=function(n){return wr.bind(null,n)};function Sr(n,t,i){var r=t["aria-labelledby"],u=t.id,e=t.role,o=n.lastElementChild,l=Dn();return l.current=o,wi(l),function(n,t){Kn(n,(function(){return t}),[t])}(i,o),Un((function(){o&&(o.classList.add("i-amphtml-accordion-content"),o.setAttribute("id",u),o.setAttribute("role",e),o.setAttribute("aria-labelledby",r),n.__AMP_PR&&n.__AMP_PR())}),[n,o,u,e,r]),Vn("div",null)}var xr=function(n){return Ki(Sr.bind(null,n))};function jr(){customElements.define("bento-accordion",br.CustomElement(br))}
var n=Object.defineProperty;function t(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function i(n,t){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.push.apply(i,r)}return i}function r(n){for(var r=1;r<arguments.length;r++){var u=null!=arguments[r]?arguments[r]:{};r%2?i(Object(u),!0).forEach((function(i){t(n,i,u[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(u)):i(Object(u)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(u,t))}))}return n}function u(n,t){return(u=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&u(n,t)}function o(n){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function l(n){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function f(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function a(n,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(n)}function c(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var i,r=o(n);if(t){var u=o(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return a(this,i)}}!function(t,i){for(var r in function(t){n(t,"__esModule",{value:!0})}(t),i)n(t,r,{get:i[r],enumerable:!0})}(exports,{defineElement:function(){return wr}});var s=Array.isArray;function v(n){return s(n)?n:[n]}function h(n,t){return n.indexOf(t)<0&&(n.push(t),!0)}function d(n,t){var i=n.indexOf(t);return-1!=i&&(n.splice(i,1),!0)}function p(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=n[i];return r}function y(n,t){if(n){if("string"==typeof n)return p(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?p(n,t):void 0}}function m(n,t){var i="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(i)return(i=i.call(n)).next.bind(i);if(Array.isArray(n)||(i=y(n))||t&&n&&"number"==typeof n.length){i&&(n=i);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}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 b,g=Object.prototype,w=g.hasOwnProperty;function _(n){var t=Object.create(null);return n&&Object.assign(t,n),t}function S(n){return n||{}}function x(n,t){return Object.keys(n).reduce((function(i,r){return t.includes(r)||(i[r]=n[r]),i}),{})}function j(n,t){if(null==n||null==t)return n===t;for(var i in n)if(n[i]!==t[i])return!1;for(var r in t)if(t[r]!==n[r])return!1;return!0}function O(n,t,i){var r=n[t];return void 0===r&&(r=i(n,t),n[t]=r),r}function k(n){return 1==(null==n?void 0:n.nodeType)}function M(n,t,i,r,u,e,o,l,f,a,c){return n}function A(n){return(n.ownerDocument||n).defaultView}function E(n){return void 0!==b?b:b=function(n){try{var t=n.ownerDocument,i=t.createElement("div"),r=t.createElement("div");return i.appendChild(r),i.querySelector(":scope div")===r}catch(n){return!1}}(n)}function P(n,t){return n.replace(/^|,/g,"$&".concat(t," "))}function z(n){M(/^[\w-]+$/.test(n))}function R(n,t){var i=n.classList,r="i-amphtml-scoped";i.add(r);var u=P(t,".".concat(r)),e=n.querySelectorAll(u);return i.remove(r),e}function T(n,t){if(E(n))return n.querySelector(P(t,":scope"));var i=R(n,t)[0];return void 0===i?null:i}function I(n,t){return z(t),T(n,"> [".concat(t,"]"))}function C(n){return function(n,t){for(var i=[],r=n.firstChild;r;r=r.nextSibling)e=void 0,o=void 0,"string"==typeof(e=u=r)?o=e:k(e)&&(o=e.tagName),!(o&&o.toLowerCase().startsWith("i-")||u.nodeType===Node.ELEMENT_NODE&&(u.hasAttribute("placeholder")||u.hasAttribute("fallback")||u.hasAttribute("overflow")))&&i.push(r);var u,e,o;return i}(n)}g.toString;var L,H={bubbles:!0,cancelable:!0};function N(n,t,i){return function(n,t){for(var i in t)n.setAttribute(i,t[i]);return n}(n.createElement(t),i)}function F(n,t,i,r){var u=i||{};M(n.ownerDocument);var e=n.ownerDocument.createEvent("Event");e.data=u;var o=r||H,l=o.bubbles,f=o.cancelable;e.initEvent(t,l,f),n.dispatchEvent(e)}function Y(){return L||(L=Promise.resolve(void 0))}var $,V,q,W,B,D,Z,U,X,G,J=function(){var n=this;this.promise=new Promise((function(t,i){n.resolve=t,n.reject=i}))},K={},Q=[],nn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function tn(n,t){for(var i in t)n[i]=t[i];return n}function rn(n){var t=n.parentNode;t&&t.removeChild(n)}function un(n,t,i){var r,u,e,o={};for(e in t)"key"==e?r=t[e]:"ref"==e?u=t[e]:o[e]=t[e];if(arguments.length>2&&(o.children=arguments.length>3?$.call(arguments,2):i),"function"==typeof n&&null!=n.defaultProps)for(e in n.defaultProps)void 0===o[e]&&(o[e]=n.defaultProps[e]);return en(n,o,r,u,null)}function en(n,t,i,r,u){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++q:u};return null==u&&null!=V.vnode&&V.vnode(e),e}function on(n){return n.children}function ln(n,t){this.props=n,this.context=t}function fn(n,t){if(null==t)return n.__?fn(n.__,n.__.__k.indexOf(n)+1):null;for(var i;t<n.__k.length;t++)if(null!=(i=n.__k[t])&&null!=i.__e)return i.__e;return"function"==typeof n.type?fn(n):null}function an(n){var t,i;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,t=0;t<n.__k.length;t++)if(null!=(i=n.__k[t])&&null!=i.__e){n.__e=n.__c.base=i.__e;break}return an(n)}}function cn(n){(!n.__d&&(n.__d=!0)&&W.push(n)&&!sn.__r++||D!==V.debounceRendering)&&((D=V.debounceRendering)||B)(sn)}function sn(){for(var n;sn.__r=W.length;)n=W.sort((function(n,t){return n.__v.__b-t.__v.__b})),W=[],n.some((function(n){var t,i,r,u,e,o;n.__d&&(e=(u=(t=n).__v).__e,(o=t.__P)&&(i=[],(r=tn({},u)).__v=u.__v+1,gn(o,u,r,t.__n,void 0!==o.ownerSVGElement,null!=u.__h?[e]:null,i,null==e?fn(u):e,u.__h),wn(i,u),u.__e!=e&&an(u)))}))}function vn(n,t,i,r,u,e,o,l,f,a){var c,s,v,h,d,p,y,m=r&&r.__k||Q,b=m.length;for(i.__k=[],c=0;c<t.length;c++)if(null!=(h=i.__k[c]=null==(h=t[c])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?en(null,h,null,null,h):Array.isArray(h)?en(on,{children:h},null,null,null):h.__b>0?en(h.type,h.props,h.key,null,h.__v):h)){if(h.__=i,h.__b=i.__b+1,null===(v=m[c])||v&&h.key==v.key&&h.type===v.type)m[c]=void 0;else for(s=0;s<b;s++){if((v=m[s])&&h.key==v.key&&h.type===v.type){m[s]=void 0;break}v=null}gn(n,h,v=v||K,u,e,o,l,f,a),d=h.__e,(s=h.ref)&&v.ref!=s&&(y||(y=[]),v.ref&&y.push(v.ref,null,h),y.push(s,h.__c||d,h)),null!=d?(null==p&&(p=d),"function"==typeof h.type&&h.__k===v.__k?h.__d=f=hn(h,f,n):f=dn(n,h,v,m,d,f),"function"==typeof i.type&&(i.__d=f)):f&&v.__e==f&&f.parentNode!=n&&(f=fn(v))}for(i.__e=p,c=b;c--;)null!=m[c]&&("function"==typeof i.type&&null!=m[c].__e&&m[c].__e==i.__d&&(i.__d=fn(r,c+1)),Sn(m[c],m[c]));if(y)for(c=0;c<y.length;c++)_n(y[c],y[++c],y[++c])}function hn(n,t,i){for(var r,u=n.__k,e=0;u&&e<u.length;e++)(r=u[e])&&(r.__=n,t="function"==typeof r.type?hn(r,t,i):dn(i,r,r,u,r.__e,t));return t}function dn(n,t,i,r,u,e){var o,l,f;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==i||u!=e||null==u.parentNode)n:if(null==e||e.parentNode!==n)n.appendChild(u),o=null;else{for(l=e,f=0;(l=l.nextSibling)&&f<r.length;f+=2)if(l==u)break n;n.insertBefore(u,e),o=e}return void 0!==o?o:u.nextSibling}function pn(n,t,i){"-"===t[0]?n.setProperty(t,i):n[t]=null==i?"":"number"!=typeof i||nn.test(t)?i:i+"px"}function yn(n,t,i,r,u){var e;n:if("style"===t)if("string"==typeof i)n.style.cssText=i;else{if("string"==typeof r&&(n.style.cssText=r=""),r)for(t in r)i&&t in i||pn(n.style,t,"");if(i)for(t in i)r&&i[t]===r[t]||pn(n.style,t,i[t])}else if("o"===t[0]&&"n"===t[1])e=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in n?t.toLowerCase().slice(2):t.slice(2),n.l||(n.l={}),n.l[t+e]=i,i?r||n.addEventListener(t,e?bn:mn,e):n.removeEventListener(t,e?bn:mn,e);else if("dangerouslySetInnerHTML"!==t){if(u)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in n)try{n[t]=null==i?"":i;break n}catch(n){}"function"==typeof i||(null!=i&&(!1!==i||"a"===t[0]&&"r"===t[1])?n.setAttribute(t,i):n.removeAttribute(t))}}function mn(n){this.l[n.type+!1](V.event?V.event(n):n)}function bn(n){this.l[n.type+!0](V.event?V.event(n):n)}function gn(n,t,i,r,u,e,o,l,f){var a,c,s,v,h,d,p,y,m,b,g,w=t.type;if(void 0!==t.constructor)return null;null!=i.__h&&(f=i.__h,l=t.__e=i.__e,t.__h=null,e=[l]),(a=V.__b)&&a(t);try{n:if("function"==typeof w){if(y=t.props,m=(a=w.contextType)&&r[a.__c],b=a?m?m.props.value:a.__:r,i.__c?p=(c=t.__c=i.__c).__=c.__E:("prototype"in w&&w.prototype.render?t.__c=c=new w(y,b):(t.__c=c=new ln(y,b),c.constructor=w,c.render=xn),m&&m.sub(c),c.props=y,c.state||(c.state={}),c.context=b,c.__n=r,s=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=w.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=tn({},c.__s)),tn(c.__s,w.getDerivedStateFromProps(y,c.__s))),v=c.props,h=c.state,s)null==w.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==w.getDerivedStateFromProps&&y!==v&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(y,b),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(y,c.__s,b)||t.__v===i.__v){c.props=y,c.state=c.__s,t.__v!==i.__v&&(c.__d=!1),c.__v=t,t.__e=i.__e,t.__k=i.__k,t.__k.forEach((function(n){n&&(n.__=t)})),c.__h.length&&o.push(c);break n}null!=c.componentWillUpdate&&c.componentWillUpdate(y,c.__s,b),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(v,h,d)}))}c.context=b,c.props=y,c.state=c.__s,(a=V.__r)&&a(t),c.__d=!1,c.__v=t,c.__P=n,a=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(r=tn(tn({},r),c.getChildContext())),s||null==c.getSnapshotBeforeUpdate||(d=c.getSnapshotBeforeUpdate(v,h)),g=null!=a&&a.type===on&&null==a.key?a.props.children:a,vn(n,Array.isArray(g)?g:[g],t,i,r,u,e,o,l,f),c.base=t.__e,t.__h=null,c.__h.length&&o.push(c),p&&(c.__E=c.__=null),c.__e=!1}else null==e&&t.__v===i.__v?(t.__k=i.__k,t.__e=i.__e):t.__e=function(n,t,i,r,u,e,o,l){var f,a,c,s=i.props,v=t.props,h=t.type,d=0;if("svg"===h&&(u=!0),null!=e)for(;d<e.length;d++)if((f=e[d])&&(f===n||(h?f.localName==h:3==f.nodeType))){n=f,e[d]=null;break}if(null==n){if(null===h)return document.createTextNode(v);n=u?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,v.is&&v),e=null,l=!1}if(null===h)s===v||l&&n.data===v||(n.data=v);else{if(e=e&&$.call(n.childNodes),a=(s=i.props||K).dangerouslySetInnerHTML,c=v.dangerouslySetInnerHTML,!l){if(null!=e)for(s={},d=0;d<n.attributes.length;d++)s[n.attributes[d].name]=n.attributes[d].value;(c||a)&&(c&&(a&&c.__html==a.__html||c.__html===n.innerHTML)||(n.innerHTML=c&&c.__html||""))}if(function(n,t,i,r,u){var e;for(e in i)"children"===e||"key"===e||e in t||yn(n,e,null,i[e],r);for(e in t)u&&"function"!=typeof t[e]||"children"===e||"key"===e||"value"===e||"checked"===e||i[e]===t[e]||yn(n,e,t[e],i[e],r)}(n,v,s,u,l),c)t.__k=[];else if(d=t.props.children,vn(n,Array.isArray(d)?d:[d],t,i,r,u&&"foreignObject"!==h,e,o,e?e[0]:i.__k&&fn(i,0),l),null!=e)for(d=e.length;d--;)null!=e[d]&&rn(e[d]);l||("value"in v&&void 0!==(d=v.value)&&(d!==n.value||"progress"===h&&!d)&&yn(n,"value",d,s.value,!1),"checked"in v&&void 0!==(d=v.checked)&&d!==n.checked&&yn(n,"checked",d,s.checked,!1))}return n}(i.__e,t,i,r,u,e,o,f);(a=V.diffed)&&a(t)}catch(n){t.__v=null,(f||null!=e)&&(t.__e=l,t.__h=!!f,e[e.indexOf(l)]=null),V.__e(n,t,i)}}function wn(n,t){V.__c&&V.__c(t,n),n.some((function(t){try{n=t.__h,t.__h=[],n.some((function(n){n.call(t)}))}catch(n){V.__e(n,t.__v)}}))}function _n(n,t,i){try{"function"==typeof n?n(t):n.current=t}catch(n){V.__e(n,i)}}function Sn(n,t,i){var r,u;if(V.unmount&&V.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||_n(r,null,t)),null!=(r=n.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){V.__e(n,t)}r.base=r.__P=null}if(r=n.__k)for(u=0;u<r.length;u++)r[u]&&Sn(r[u],t,"function"!=typeof n.type);i||null==n.__e||rn(n.__e),n.__e=n.__d=void 0}function xn(n,t,i){return this.constructor(n,i)}function jn(n,t,i){var r,u,e;V.__&&V.__(n,t),u=(r="function"==typeof i)?null:i&&i.__k||t.__k,e=[],gn(t,n=(!r&&i||t).__k=un(on,null,[n]),u||K,K,void 0!==t.ownerSVGElement,!r&&i?[i]:u?null:t.firstChild?$.call(t.childNodes):null,e,!r&&i?i:u?u.__e:t.firstChild,r),wn(e,n)}function On(n,t){jn(n,t,On)}function kn(n,t){var i={__c:t="__cC"+Z++,__:n,Consumer:function(n,t){return n.children(t)},Provider:function(n){var i,r;return this.getChildContext||(i=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&i.some(cn)},this.sub=function(n){i.push(n);var t=n.componentWillUnmount;n.componentWillUnmount=function(){i.splice(i.indexOf(n),1),t&&t.call(n)}}),n.children}};return i.Provider.__=i.Consumer.contextType=i}$=Q.slice,V={__e:function(n,t){for(var i,r,u;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),u=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n),u=i.__d),u)return i.__E=i}catch(t){n=t}throw n}},q=0,ln.prototype.setState=function(n,t){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=tn({},this.state),"function"==typeof n&&(n=n(tn({},i),this.props)),n&&tn(i,n),null!=n&&this.__v&&(t&&this.__h.push(t),cn(this))},ln.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),cn(this))},ln.prototype.render=on,W=[],B="function"==typeof Promise?Promise.prototype.then.bind(Y()):setTimeout,sn.__r=0,Z=0;var Mn=0,An=[],En=V.__b,Pn=V.__r,zn=V.diffed,Rn=V.__c,Tn=V.unmount;function In(n,t){V.__h&&V.__h(X,n,Mn||t),Mn=0;var i=X.__H||(X.__H={__:[],__h:[]});return n>=i.__.length&&i.__.push({}),i.__[n]}function Cn(n){return Mn=1,function(n,t,i){var r=In(U++,2);return r.t=n,r.__c||(r.__=[Un(void 0,t),function(n){var t=r.t(r.__[0],n);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=X),r.__}(Un,n)}function Ln(n,t){var i=In(U++,3);!V.__s&&Zn(i.__H,t)&&(i.__=n,i.__H=t,X.__H.__h.push(i))}function Hn(n,t){var i=In(U++,4);!V.__s&&Zn(i.__H,t)&&(i.__=n,i.__H=t,X.__h.push(i))}function Nn(n){return Mn=5,Yn((function(){return{current:n}}),[])}function Fn(n,t,i){Mn=6,Hn((function(){"function"==typeof n?n(t()):n&&(n.current=t())}),null==i?i:i.concat(n))}function Yn(n,t){var i=In(U++,7);return Zn(i.__H,t)&&(i.__=n(),i.__H=t,i.__h=n),i.__}function $n(n,t){return Mn=8,Yn((function(){return n}),t)}function Vn(n){var t=X.context[n.__c],i=In(U++,9);return i.c=n,t?(null==i.__&&(i.__=!0,t.sub(X)),t.props.value):n.__}function qn(){An.forEach((function(n){if(n.__P)try{n.__H.__h.forEach(Bn),n.__H.__h.forEach(Dn),n.__H.__h=[]}catch(t){n.__H.__h=[],V.__e(t,n.__v)}})),An=[]}V.__b=function(n){X=null,En&&En(n)},V.__r=function(n){Pn&&Pn(n),U=0;var t=(X=n.__c).__H;t&&(t.__h.forEach(Bn),t.__h.forEach(Dn),t.__h=[])},V.diffed=function(n){zn&&zn(n);var t=n.__c;t&&t.__H&&t.__H.__h.length&&(1!==An.push(t)&&G===V.requestAnimationFrame||((G=V.requestAnimationFrame)||function(n){var t,i=function(){clearTimeout(r),Wn&&cancelAnimationFrame(t),setTimeout(n)},r=setTimeout(i,100);Wn&&(t=requestAnimationFrame(i))})(qn)),X=null},V.__c=function(n,t){t.some((function(n){try{n.__h.forEach(Bn),n.__h=n.__h.filter((function(n){return!n.__||Dn(n)}))}catch(i){t.some((function(n){n.__h&&(n.__h=[])})),t=[],V.__e(i,n.__v)}})),Rn&&Rn(n,t)},V.unmount=function(n){Tn&&Tn(n);var t=n.__c;if(t&&t.__H)try{t.__H.__.forEach(Bn)}catch(n){V.__e(n,t.__v)}};var Wn="function"==typeof requestAnimationFrame;function Bn(n){var t=X;"function"==typeof n.__c&&n.__c(),X=t}function Dn(n){var t=X;n.__c=n.__(),X=t}function Zn(n,t){return!n||n.length!==t.length||t.some((function(t,i){return t!==n[i]}))}function Un(n,t){return"function"==typeof t?t(n):t}var Xn,Gn=["auto","lazy","eager","unload"],Jn=(t(Xn={},"auto",0),t(Xn,"lazy",1),t(Xn,"eager",2),t(Xn,"unload",3),Xn);function Kn(n,t){var i=Jn[n]||0,r=Jn[t]||0,u=Math.max(i,r);return Gn[u]}function Qn(n,t){var i=!1,r=function(){i=!1,n()};return function(n){i||(i=!0,(n||t)(r))}}function nt(n){var t=Object.getOwnPropertyDescriptor(n,"message");if(null!=t&&t.writable)return n;var i=n.message,r=n.stack,u=new Error(i);for(var e in n)u[e]=n[e];return u.stack=r,u}function tt(n){for(var t,i=null,r="",u=m(arguments,!0);!(t=u()).done;){var e=t.value;e instanceof Error&&!i?i=nt(e):(r&&(r+=" "),r+=e)}return i?r&&(i.message=r+": "+i.message):i=new Error(r),i}function it(n){var t,i;null===(t=(i=self).__AMP_REPORT_ERROR)||void 0===t||t.call(i,n)}function rt(n){var t=tt.apply(null,arguments);setTimeout((function(){throw it(t),t}))}function ut(n){try{for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return n.apply(null,i)}catch(n){rt(n)}}function et(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(u){var e=t(n,i,r);e&&et(n,t,i,e,!1)}else if(n.children)for(var o,l=m(n.children,!0);!(o=l()).done;){var f=o.value;et(f,t,i,r,!0)}}var ot=[],lt=function(){},ft=function(){function n(n){this.Nh=n,this.v=null,this.m=null,this.nl=Qn(this.nl.bind(this),setTimeout)}var t=n.prototype;return t.set=function(n,t,i){M(t),M(void 0!==i);var r=n.key,u=this.v||(this.v=new Map),e=u.get(r);e||(e={values:[],setters:[]},u.set(r,e));var o=e.setters.indexOf(t),l=-1==o||e.values[o]!==i;-1==o?(e.setters.push(t),e.values.push(i)):l&&(e.values[o]=i),l&&(this.ping(n,!1),vt(n)&&et(this.Nh,at,n,!0,!1))},t.remove=function(n,t){M(t);var i=n.key,r=this.v,u=null==r?void 0:r.get(i);if(u){M(r);var e=u.setters.indexOf(t);-1!=e&&(u.setters.splice(e,1),u.values.splice(e,1),0==u.setters.length&&r.delete(i),et(this.Nh,at,n))}},t.has=function(n){var t;return!(null===(t=this.v)||void 0===t||!t.has(n.key))},t.subscribe=function(n,t){var i=this.tl(n);if(h(i.subscribers,t)){var r=i.value;ht(r)&&this.Fi()&&t(r)}},t.unsubscribe=function(n,t){var i,r=null===(i=this.m)||void 0===i?void 0:i.get(n.key);r&&d(r.subscribers,t)&&this.il(r)},t.ping=function(n,t){var i,r;null===(i=this.m)||void 0===i||null===(r=i.get(n.key))||void 0===r||r.ping(t)},t.parentUpdated=function(){this.Fi()&&et(this.Nh,ct,void 0,ot)},t.rootUpdated=function(){var n=this,t=this.m;t&&(this.Fi()?t.forEach((function(t){var i=t.prop;n.ping(i,!0)})):t.forEach((function(t){vt(t.prop)&&n.rl(t,null)})))},t.scan=function(n){return this.ping(n,!0),!!vt(n)&&!this.has(n)},t.scanAll=function(n){var t=this,i=null,r=this.m;return r&&r.forEach((function(r){var u=r.prop,e=u.key;-1==(i||n).indexOf(e)&&(t.ping(u,!0),t.Nh.children&&t.has(u)&&(i||(i=n.slice(0)),i.push(e)))})),i||n},t.Fi=function(){return!!this.Nh.root},t.tl=function(n){var t=this,i=n.deps,r=n.key,u=this.m||(this.m=new Map),e=u.get(r);return e||(e={prop:n,subscribers:[],value:void 0,pending:0,counter:0,depValues:i.length>0?i.map(lt):ot,parentValue:void 0,parentContextNode:null,ping:function(n){if(t.Fi()){var i=n?2:1;e.pending=Math.max(e.pending,i),t.nl()}},pingDep:i.length>0?i.map((function(n,t){return function(n){e.depValues[t]=n,e.ping()}})):ot,pingParent:vt(n)?function(n){e.parentValue=n,e.ping()}:null},u.set(r,e),i.forEach((function(n,i){return t.subscribe(n,e.pingDep[i])})),e.ping(!1)),e},t.il=function(n){var t,i=this;if(!(n.subscribers.length>0)){var r=n.pingDep,u=n.prop,e=u.deps,o=u.key;null===(t=this.m)||void 0===t||t.delete(o),this.rl(n,null),e.length>0&&e.forEach((function(n,t){i.unsubscribe(n,r[t])}))}},t.nl=function(){var n=this;if(this.Fi()){var t=this.m;if(t){var i;t.forEach((function(n){n.counter=0}));do{i=0,t.forEach((function(t){if(0!=t.pending){var r=t.prop.key;if(t.counter++,t.counter>5)return rt("cyclical prop: ".concat(r)),void(t.pending=0);i++,n.ul(t)}}))}while(i>0)}}},t.ul=function(n){var t,i=2==n.pending;try{t=this.el(n,i)}catch(n){rt(n)}n.pending=0,this.ol(n,t)},t.ol=function(n,t){var i=n.prop,r=n.value,u=i.key,e=this.m;if(r!==t&&n===(null==e?void 0:e.get(u))&&this.Fi()){n.value=t;for(var o,l=m(n.subscribers,!0);!(o=l()).done;)(0,o.value)(t)}},t.el=function(n,t){var i,r;M(this.Fi());var u=n.depValues,e=n.prop,o=e.compute,l=e.defaultValue,f=e.key,a=null===(i=this.v)||void 0===i||null===(r=i.get(f))||void 0===r?void 0:r.values,c=function(n,t){var i=n.compute,r=n.recursive;return"function"==typeof r?!t||r(t):!(r&&t&&!i)&&r}(e,a);if(t||c!=Boolean(n.parentContextNode)){var s=c?function(n,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?n.parent:n;r;r=r.parent)if(t(r,i))return r;return null}(this.Nh,st,e,!1):null;this.rl(n,s)}var v=ht(n.parentValue)?n.parentValue:c&&!n.parentContextNode?l:void 0,h=void 0;if(u.every(ht)&&(!c||ht(v))){var d=this.Nh.node;a&&!o?h=a[0]:vt(e)?a||u.length>0?h=function(n,t,i,r,u){switch(u.length){case 0:return n(t,i,r);case 1:return n(t,i,r,u[0]);case 2:return n(t,i,r,u[0],u[1]);case 3:return n(t,i,r,u[0],u[1],u[2]);default:return n.apply(null,[t,i,r].concat(u))}}(o,d,a||ot,v,u):ht(v)&&(h=v):o&&(h=function(n,t,i,r){switch(r.length){case 0:return n(t,i);case 1:return n(t,i,r[0]);case 2:return n(t,i,r[0],r[1]);case 3:return n(t,i,r[0],r[1],r[2]);default:return n.apply(null,[t,i].concat(r))}}(o,d,a||ot,u))}return h},t.rl=function(n,t){var i=n.parentContextNode,r=n.pingParent,u=n.prop;t!=i&&(n.parentContextNode=t,n.parentValue=void 0,M(r),i&&i.values.unsubscribe(u,r),t&&(M(r),t.values.subscribe(u,r)))},n}();function at(n,t){return n.values.scan(t)}function ct(n,t,i){return n.values.scanAll(i)}function st(n,t){return n.values.has(t)}function vt(n){return!!n.recursive}function ht(n){return void 0!==n}var dt=function(){function n(t,i){this.node=t,this.name=i,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new ft(this),this.ll=null,this.fl=!1,this.al=Qn(this.cl.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(function(t){var i,r,u=t.target;u.assignedNodes().forEach(pt),null===(i=n.closest(u))||void 0===i||null===(r=i.children)||void 0===r||r.forEach(yt)})),this.discover()}n.get=function(t){var i=t.__AMP_NODE;return i||(i=new n(t,null),t.__AMP_NODE=i),i},n.closest=function(t){for(var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t;r;){if(r!=t||i){if(r.__AMP_NODE)return r.__AMP_NODE;var u=r,e=u.nodeType;if(9==e||11==e||k(r)&&r.tagName.startsWith("AMP-"))return n.get(r)}var o=r.__AMP_ASSIGNED_SLOT||r.assignedSlot;r=o||r.parentNode}return null},n.assignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT!=t&&(n.__AMP_ASSIGNED_SLOT=t,pt(n))},n.unassignSlot=function(n,t){n.__AMP_ASSIGNED_SLOT==t&&(n.__AMP_ASSIGNED_SLOT=void 0,pt(n))},n.rediscoverChildren=function(n){var t,i=n.__AMP_NODE;null==i||null===(t=i.children)||void 0===t||t.forEach(yt)};var t=n.prototype;return t.discover=function(){this.isDiscoverable()?this.al():this.name&&this.children&&this.children.forEach(yt)},t.isDiscoverable=function(){return!this.isRoot&&!this.fl},t.setParent=function(t){var i=null!=t&&t.nodeType?n.get(t):t;this.sl(i,null!=t)},t.setIsRoot=function(n){var t,i;this.isRoot=n;var r=n?this:null!==(t=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==t?t:null;this.updateRoot(r)},t.updateRoot=function(n){M(!n||n.isRoot);var t,i,r=this.root;n!=r&&(this.root=n,this.values.rootUpdated(),null===(t=this.ll)||void 0===t||t.forEach((function(n){return n.rootUpdated()})),null===(i=this.children)||void 0===i||i.forEach((function(t){return t.updateRoot(n)})))},t.addGroup=function(t,i,r){var u=this.groups||(this.groups=new Map),e=this.children,o=new n(this.node,t);return u.set(t,{cn:o,match:i,weight:r}),o.setParent(this),null==e||e.forEach(yt),o},t.group=function(n){var t,i;return(null===(t=this.groups)||void 0===t||null===(i=t.get(n))||void 0===i?void 0:i.cn)||null},t.findGroup=function(n){var t=this,i=this.groups;if(!i)return null;var r=null,u=Number.NEGATIVE_INFINITY;return i.forEach((function(i){var e=i.cn,o=i.match,l=i.weight;o(n,t.node)&&l>u&&(r=e,u=l)})),r},t.subscribe=function(n,t,i,r){var u=this.ll||(this.ll=new Map),e=u.get(n);e||(e=new t(this,i,r),u.set(n,e))},t.unsubscribe=function(n){var t=this.ll,i=null==t?void 0:t.get(n);i&&(i.dispose(),M(t),t.delete(n))},t.cl=function(){if(this.isDiscoverable()){var t=n.closest(this.node,!1),i=(null==t?void 0:t.findGroup(this.node))||t;this.sl(i,!1)}},t.sl=function(n,t){var i;this.fl=t;var r=this.parent;if(n!=r){if(this.parent=n,null!=r&&r.children&&(M(r.children),d(r.children,this)),n){var u=n.children||(n.children=[]);h(u,this);for(var e,o=m(u,!0);!(e=o()).done;){var l=e.value;l!=this&&l.isDiscoverable()&&l.discover()}}this.values.parentUpdated()}this.updateRoot(null!==(i=null==n?void 0:n.root)&&void 0!==i?i:null)},n}();function pt(n){!function(n,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=dt.closest(n,i);if(r)if(r.node==n)t(r);else if(r.children)for(var u,e=m(r.children,!0);!(u=e()).done;){var o=u.value;n.contains(o.node)&&t(o)}}(n,yt)}function yt(n){n.discover()}var mt=[];function bt(n,t){var i=r({key:n,deps:mt,recursive:!1},t);return M(0==i.deps.length||i.compute),i}var gt=[],wt=function(){};function _t(n,t,i){t=v(t);var r=i;dt.get(n).subscribe(r,St,i,t)}var St=function(){function n(n,t,i){var r=this;if(this.contextNode=n,this.vl=t,this.hl=i,this.dl=i.length>0?i.map(wt):gt,this.pl=i.length>0?i.map((function(n,t){return function(n){r.dl[t]=n,r.yl()}})):gt,this.Yn=!1,this.ml=null,this.yl=Qn(this.yl.bind(this),setTimeout),i.length>0){var u=this.contextNode.values;i.forEach((function(n,t){return u.subscribe(n,r.pl[t])}))}this.Fi()&&this.yl()}var t=n.prototype;return t.dispose=function(){var n=this;if(this.hl.length>0){var t=this.contextNode.values;this.hl.forEach((function(i,r){return t.unsubscribe(i,n.pl[r])}))}this.Se()},t.rootUpdated=function(){var n=this.Fi();this.Se(),n&&this.yl()},t.Fi=function(){return!!this.contextNode.root},t.yl=function(){this.Fi()&&(this.dl.every(xt)?(this.Yn=!0,this.bl()):this.Yn&&(this.Yn=!1,this.Se()))},t.bl=function(){this.Se();var n=this.vl;this.ml=function(n,t){switch(t.length){case 0:return n();case 1:return n(t[0]);case 2:return n(t[0],t[1]);case 3:return n(t[0],t[1],t[2]);default:return n.apply(null,t)}}(n,this.dl)},t.Se=function(){this.ml&&(ut(this.ml),this.ml=null)},n}();function xt(n){return void 0!==n}function jt(n){dt.get(n).discover()}function Ot(n,t,i,r){dt.get(n).values.set(t,i,r)}function kt(n,t,i){dt.get(n).values.remove(t,i)}var Mt,At=function(){function n(n,t){this.o=n,this.K=t,this.St={},this._t=null}var t=n.prototype;return t.start=function(){this._t=this.St,this.St={}},t.resolveMatchQuery=function(n){return"1"===this.kt(n,Et,"1")},t.resolveListQuery=function(n){return this.kt(n,Pt,"")},t.complete=function(){for(var n in this._t)n in this.St||zt(this._t[n],this.K,!1);this._t=null},t.dispose=function(){for(var n in this.St)zt(this.St[n],this.K,!1);this.St={}},t.kt=function(n,t,i){if(!n.trim())return i;var r=this.St[n];return r||(M(this._t),r=this._t[n]),r||zt(r=t(this.o,n),this.K,!0),this.St[n]=r,function(n){for(var t=0;t<n.length;t++){var i=n[t],r=i.query,u=i.value;if(!r||r.matches)return u}return""}(r)},n}();function Et(n,t){return[{query:n.matchMedia(t),value:"1"},{query:null,value:""}]}function Pt(n,t){return t.split(",").map((function(t){if(0!=(t=t.replace(/\s+/g," ").trim()).length){var i,r,u;if(")"==t.charAt(t.length-1)){var e=1;for(u=t.length-2;u>=0;u--){var o=t.charAt(u);if("("==o?e--:")"==o&&e++,0==e)break}var l=u-1;if(u>0)for(u--;u>=0;u--){var f=t.charAt(u);if(!("%"==f||"-"==f||"_"==f||f>="a"&&f<="z"||f>="A"&&f<="Z"||f>="0"&&f<="9"))break}if(u>=l)return null}else for(u=t.length-2;u>=0;u--){var a=t.charAt(u);if(!("%"==a||"."==a||a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"))break}return u>=0?(i=t.substring(0,u+1).trim(),r=t.substring(u+1).trim()):(r=t,i=void 0),r?{query:i?n.matchMedia(i):null,value:r}:null}})).filter(Boolean)}function zt(n,t,i){for(var r=0;r<n.length;r++){var u=n[r].query;u&&(void 0!==u.onchange?u.onchange=i?t:null:i?u.addListener(t):u.removeListener(t))}}var Rt=["Webkit","webkit","Moz","moz","ms","O","o"],Tt={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}};function It(n,t,i){if(Nt(t))return t;Mt||(Mt=_());var r=Mt[t];if(!r||i){if(r=t,void 0===n[t]){var u=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(t),e=function(n,t){for(var i=0;i<Rt.length;i++){var r=Rt[i]+t;if(void 0!==n[r])return r}return""}(n,u);void 0!==n[e]&&(r=e)}i||(Mt[t]=r)}return r}function Ct(n,t,i,r,u){var e=It(n.style,t,u);if(e){var o=r?i+r:i;Nt(e)?n.style.setProperty(e,o):n.style[e]=o}}function Lt(n,t,i){var r=It(n.style,t,i);if(r)return Nt(r)?n.style.getPropertyValue(r):n.style[r]}function Ht(n,t){for(var i in t)Ct(n,i,t[i])}function Nt(n){return n.startsWith("--")}var Ft=/vertical/,Yt=new WeakMap,$t=new WeakMap,Vt=new WeakMap;function qt(n){var t=Yt.get(n);return t||(t=new n.ResizeObserver(Wt),Yt.set(n,t)),t}function Wt(n){for(var t=new Set,i=n.length-1;i>=0;i--){var r=n[i],u=r.target;if(!t.has(u)){t.add(u);var e=$t.get(u);if(e){Vt.set(u,r);for(var o=0;o<e.length;o++){var l=e[o],f=l.callback;Bt(l.type,f,r)}}}}}function Bt(n,t,i){if(0==n){var r=i.contentRect,u=r.height;ut(t,{width:r.width,height:u})}else if(1==n){var e,o=i.borderBoxSize;if(o)e=o.length>0?o[0]:{inlineSize:0,blockSize:0};else{var l,f,a=i.target,c=A(a),s=Ft.test(function(n,t){return n.getComputedStyle(t)||Tt}(c,a).writingMode),v=a,h=v.offsetHeight,d=v.offsetWidth;s?(f=d,l=h):(l=d,f=h),e={inlineSize:l,blockSize:f}}ut(t,e)}}var Dt,Zt,Ut,Xt=function(){function n(n){this.gl=n,this.wl=!1,this._l=!1,this.Sl=this.Sl.bind(this)}var t=n.prototype;return t.updatePlaying=function(n){n!==this.wl&&(this.wl=n,n?(this._l=!1,function(n,t,i){var r=n.ownerDocument.defaultView;if(r){var u=$t.get(n);if(u||(u=[],$t.set(n,u),qt(r).observe(n)),!u.some((function(n){return n.callback===i&&1===n.type}))){u.push({type:1,callback:i});var e=Vt.get(n);e&&setTimeout((function(){return Bt(1,i,e)}))}}}(this.gl,0,this.Sl)):function(n,t){!function(n,t,i){var r=$t.get(n);if(r&&(function(n,t){for(var r=[],u=0,e=0;e<n.length;e++){var o=n[e];(l=o).callback===i&&1===l.type?r.push(o):(u<e&&(n[u]=o),u++)}var l;u<n.length&&(n.length=u)}(r),0==r.length)){$t.delete(n),Vt.delete(n);var u=n.ownerDocument.defaultView;u&&qt(u).unobserve(n)}}(n,0,t)}(this.gl,this.Sl))},t.Sl=function(n){var t=n.blockSize,i=n.inlineSize>0&&t>0;if(i!==this._l){this._l=i;var r=this.gl;i||r.pause()}},n}();function Gt(){return Ut||(Ut=kn({renderable:!0,playable:!0,loading:"auto"}))}function Jt(n){var t=n.children,i=n.loading,r=void 0===i?"auto":i,u=n.notify,e=n.playable,o=void 0===e||e,l=n.renderable,f=void 0===l||l,a=Kt(),c=f&&a.renderable,s=c&&o&&a.playable,v=Kn(c?"auto":"lazy",Kn(r,a.loading)),h=u||a.notify,d=Yn((function(){return{renderable:c,playable:s,loading:v,notify:h}}),[c,s,v,h]);return un(Gt().Provider,{children:t,value:d})}function Kt(){return Vn(Gt())}Dt="undefined"!=typeof AMP&&AMP.BaseElement?AMP.BaseElement:function(){function n(n){this.element=n,this.win=A(n)}n.CustomElement=function(n){return Zt||(Zt=function(n){if("object"!==("undefined"==typeof Reflect?"undefined":l(Reflect))||!Reflect.construct)return n;function t(){return Reflect.construct(n,arguments,this.constructor)}return t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,n)}(HTMLElement)),function(t){e(r,Zt);var i=c(r);function r(){var t;return(t=i.call(this)).implementation=new n(f(t)),t}var u=r.prototype;return u.connectedCallback=function(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()},u.disconnectedCallback=function(){this.implementation.unmountCallback()},u.getApi=function(){return this.implementation.getApi()},r}()};var t=n.prototype;return t.mutateElement=function(n){Y().then(n)},t.isLayoutSupported=function(){return!0},t.mountCallback=function(){},t.unmountCallback=function(){},t.buildCallback=function(){},n}();var Qt=bt("CanRender",{defaultValue:!0,recursive:function(n){return n.reduce(ii)},compute:function(n,t,i){return i&&t.reduce(ii,!0)||!1}}),ni=bt("CanPlay",{defaultValue:!0,recursive:function(n){return n.reduce(ii)},deps:[Qt],compute:function(n,t,i,r){return r&&i&&t.reduce(ii,!0)||!1}}),ti=bt("Loading",{defaultValue:"auto",recursive:!0,deps:[Qt],compute:function(n,t,i,r){return Kn(r?"auto":"lazy",Kn(i||"auto",t.reduce(Kn,"auto")))}}),ii=function(n,t){return n&&t};function ri(){var n=0;return function(){return String(++n)}}var ui=function(n){return n.ensureLoaded()},ei=function(n){return n.pause()},oi=function(n){return n.unmount()};function li(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];ci(n,t,!1,ui)}function fi(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];ci(n,t,!0,ei)}function ai(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];ci(n,t,!0,oi)}function ci(n,t,i,r){for(var u=v(n),e=0;e<u.length;e++)si(u[e],t,i,r)}function si(n,t,i,r){if(t&&n.classList.contains("i-amphtml-element")){var u=n;if(ut(r,u),!i){var e=u.getPlaceholder();return void(e&&si(e,!0,!1,r))}}for(var o=n.getElementsByClassName("i-amphtml-element"),l=null,f=0;f<o.length;f++){var a=o[f];if(i)ut(r,a);else{l=l||[];for(var c=!1,s=0;s<l.length;s++)if(l[s].contains(a)){c=!0;break}c||(l.push(a),ut(r,a))}}}var vi={},hi=new WeakMap;function di(n,t,i){var u=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n.setAttribute("slot",t),!u)return un(pi,r(r({},i||vi),{},{name:t}));var e=hi.get(n);if(e&&j(e.oldProps,i))return e.component;function o(n){return un(pi,r(r({},i||vi),{},{name:t},n))}return hi.set(n,{oldProps:i,component:o}),o}function pi(n){var t=Nn(null);return yi(t,n),Ln((function(){n.postRender&&n.postRender()})),un("slot",r(r({},n),{},{ref:t}))}function yi(n,t){var i=(t||vi).loading,r=Kt();Hn((function(){var t=n.current;return M(k(t)),Ot(t,Qt,pi,r.renderable),Ot(t,ni,pi,r.playable),Ot(t,ti,pi,r.loading),r.playable||mi(t,fi,!0),function(){var n;kt(t,Qt,pi),kt(t,ni,pi),kt(t,ti,pi),n=t,dt.rediscoverChildren(n)}}),[n,r]),Hn((function(){var t=n.current;return M(k(t)),"lazy"!=i&&mi(t,li,!0),function(){mi(t,ai,!1)}}),[n,i])}function mi(n,t,i){var r=n.assignedElements?n.assignedElements():n;if(!Array.isArray(r)||0!=r.length)if(i){var u=n.ownerDocument.defaultView;u&&(u.requestIdleCallback||u.setTimeout)((function(){return t(r)}))}else t(r)}var bi={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},gi=ri();function wi(n,t){return Object.values(n).some(t)}var _i=function(n){return"string"==typeof n||!!n.selector},Si=function(n){return 3===n.nodeType&&0===n.nodeValue.trim().length};function xi(n,t,i,u,e){var o=n.layoutSizeDefined,l=n.lightDomTag,f=n.props;e&&e.start();var a=r(r({},u),{},{ref:i});return l&&(a["i-amphtml-rendered"]=!0,a.__AMP_RENDERED=!0,a.as=l),o&&(n.usesShadowDom?a.style=bi:a.class="i-amphtml-fill-content"),ji(n,a,f,t,e),e&&e.complete(),a}function ji(n,t,i,r,u){if(wi(i,_i))for(var e=C(r),o=0;o<e.length;o++){var l=e[o],f=ki(l,i);if(f){var a=i[f],c=a.as,s=void 0!==c&&c,v=a.single,h=a.name,d=void 0===h?f:h,p=a.clone,y=a.props,m=void 0===y?{}:y;M(p||n.usesShadowDom);var b={};if(ji(n,b,m,l,u),v)t[d]=di(l,l.getAttribute("slot")||"i-amphtml-".concat(d),b,s);else{var g=t[d]||(t[d]=[]);M(!s),g.push(p?Oi(l):di(l,l.getAttribute("slot")||"i-amphtml-".concat(d,"-").concat(gi()),b))}}}for(var w in i){var _=i[w];M(!!_.attr+!!_.attrs+!!_.attrMatches+!!_.selector+!!_.passthrough+!!_.passthroughNonEmpty<=1);var S=void 0;if(_.passthrough?(M(n.usesShadowDom),S=[un(pi,{loading:"lazy"})]):_.passthroughNonEmpty?(M(n.usesShadowDom),S=C(r).every(Si)?null:[un(pi,{loading:"lazy"})]):_.attr?(S=r.getAttribute(_.attr),_.media&&null!=S&&(S=u.resolveListQuery(String(S)))):_.parseAttrs&&(M(_.attrs||_.attrMatches),S=_.parseAttrs(r)),null==S)null!=_.default&&(t[w]=_.default);else{var x="number"==_.type?parseFloat(S):"boolean"==_.type?null==(j=S)?void 0:"false"!==j:S;t[w]=x}}var j}function Oi(n){for(var t={"key":n},i=n.attributes,r=n.localName,u=i.length,e=0;e<u;e++){var o=i[e],l=o.name,f=o.value;t[l]=f}return un(r,t)}function ki(n,t){for(var i in t){var r=t[i];if(u=n,e="string"==typeof r?r:r.selector,o=void 0,(o=u.matches||u.webkitMatchesSelector||u.mozMatchesSelector||u.msMatchesSelector||u.oMatchesSelector)&&o.call(u,e))return i}var u,e,o;return null}var Mi=self.AMP_CONFIG||{},Ai=("string"==typeof Mi.thirdPartyFrameRegex?new RegExp(Mi.thirdPartyFrameRegex):Mi.thirdPartyFrameRegex,("string"==typeof Mi.cdnProxyRegex?new RegExp(Mi.cdnProxyRegex):Mi.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function Ei(n){if(!self.document||!self.document.head)return null;if(self.location&&Ai.test(self.location.origin))return null;var t=self.document.head.querySelector('meta[name="'.concat(n,'"]'));return t&&t.getAttribute("content")||null}Mi.thirdPartyUrl,Mi.thirdPartyFrameHost,Mi.cdnUrl||Ei("runtime-host"),Mi.errorReportingUrl,Mi.betaErrorReportingUrl,Mi.localDev,Mi.geoApiUrl||Ei("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var Pi=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";new RegExp("(-shadowcsshost"+Pi,"gim"),new RegExp("(-shadowcsscontext"+Pi,"gim"),new RegExp("-shadowcsshost","gim"),new RegExp("-shadowcsscontext","gim");var zi={childList:!0},Ri={childList:!0,characterData:!0},Ti={childList:!0},Ii=S({"style":"display: contents; background: inherit;","part":"c"}),Ci=S({"name":"i-amphtml-svc"}),Li=S({"i-amphtml-rendered":""}),Hi=function(){return!0},Ni=function(n){return!!n.media},Fi=function(n){return!(!n.passthrough&&!n.passthroughNonEmpty)},Yi=function(n){e(i,n);var t=c(i);function i(n){var i;return(i=t.call(this,n)).xl=S({"loading":"auto","onReadyState":function(n,t){i.jl(n,t)},"onPlayingState":function(n){i.Ol(n)},"onLoading":function(){i.handleOnLoading()},"onLoad":function(){i.handleOnLoad()},"onError":function(){i.handleOnError()}}),i.kl={renderable:!1,playable:!0,loading:"auto",notify:function(){return i.mutateElement((function(){}))}},i.Ml=!1,i.Al=null,i.El=null,i.Pl=function(n){null!==n&&(i.Al?i.zl(n):i.Rl(n)),i.El=n,i.Tl()},i.Il=null,i.Cl=null,i.Ll=null,i.Hl=!1,i.Nl=null,i.Fl=function(){i.Hl=!1,i.Yl()},i.$l=!1,i.Bi=!1,i.observer=null,i.Vl=new Xt(n),i.un=null,i}i.R1=function(){return!0},i.requiresShadowDom=function(){return this.usesShadowDom},i.usesLoading=function(){return this.loadable},i.prerenderAllowed=function(){return!this.usesLoading()};var u=i.prototype;return u.init=function(){},u.isLayoutSupported=function(t){return this.constructor.layoutSizeDefined?function(n){return"fixed"==n||"fixed-height"==n||"responsive"==n||"fill"==n||"flex-item"==n||"fluid"==n||"intrinsic"==n}(t)||"container"==t:n.prototype.isLayoutSupported.call(this,t)},u.buildCallback=function(){var n=this,t=this.constructor;this.observer=new MutationObserver((function(t){return n.ql(t)}));var i=t.props,u=wi(i,_i)?zi:null,e=wi(i,Fi)?Ri:null,o=t.usesTemplate?Ti:null;this.observer.observe(this.element,r(r(r({attributes:!0},u),e),o)),this.un=wi(i,Ni)?new At(this.win,(function(){return n.Wl()})):null;var l=t.staticProps,f=this.init();Object.assign(this.xl,l,f),this.checkPropsPostMutations(),_t(this.element,[],(function(){return function(){n.Bi=!1,n.Ll&&jn(null,n.Ll)}})),_t(this.element,[Qt,ni,ti],(function(t,i,r){n.kl.renderable=t,n.kl.playable=i,n.kl.loading=r,n.Bi=!0,n.Wl()}));var a,c=t.useContexts;return 0!=c.length&&_t(this.element,c,(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];n.Cl=i,n.Wl()})),this.Nl=new J,this.Wl(),t.loadable&&(null===(a=this.setReadyState)||void 0===a||a.call(this,"loading")),this.Tl(),this.Nl.promise},u.ensureLoaded=function(){this.constructor.loadable&&(this.mutateProps(S({"loading":"eager"})),this.Ml=!0)},u.mountCallback=function(){jt(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.Ml=!1)},u.unmountCallback=function(){var n;jt(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.Ol(!1),null===(n=this.un)||void 0===n||n.dispose()},u.mutatedAttributesCallback=function(){this.Ll&&this.Wl()},u.attemptChangeHeight=function(t){var i=this;return n.prototype.attemptChangeHeight.call(this,t).catch((function(n){throw i.getOverflowElement&&!i.getOverflowElement()&&console.warn("[overflow] element not found. Provide one to enable resizing to full contents.",i.element),n}))},u.mutateProps=function(n){Object.assign(this.xl,n),this.Wl()},u.api=function(){return M(this.El)},u.registerApiAction=function(n,t){var i,r=this,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;null===(i=this.registerAction)||void 0===i||i.call(this,n,(function(n){return t(r.api(),n)}),u)},u.mutationObserverCallback=function(n){},u.checkPropsPostMutations=function(){},u.updatePropsForRendering=function(n){},u.isReady=function(n){return!0},u.ql=function(n){var t=this.constructor;this.mutationObserverCallback(n);var i=n.some((function(n){return function(n,t){var i=t.type;if("attributes"==i){if(n.usesTemplate&&"template"==t.attributeName)return!0;var r=n.props;for(var u in r){var e,o=r[u];if(t.attributeName==o.attr||o.attrs&&o.attrs.includes(M(t.attributeName))||null!==(e=o.attrMatches)&&void 0!==e&&e.call(o,t.attributeName))return!0}return!1}return"childList"==i&&(Vi(t.addedNodes)||Vi(t.removedNodes))}(t,n)}));i&&(this.checkPropsPostMutations(),this.Wl())},u.Wl=function(){this.Hl||(this.Hl=!0,this.mutateElement(this.Fl))},u.Tl=function(){var n=this.El,t=null==n?void 0:n.readyState;t&&t!==this.element.readyState&&this.jl(t)},u.jl=function(n,t){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,n,t),this.constructor.unloadOnPause&&this.Ol("complete"==n),this.Ml&&(this.Ml=!1,this.mutateProps({"loading":"auto"}))},u.handleOnLoad=function(){var n,t,i;null===(n=this.toggleLoading)||void 0===n||n.call(this,!1),null===(t=this.toggleFallback)||void 0===t||t.call(this,!1),null===(i=this.togglePlaceholder)||void 0===i||i.call(this,!1)},u.handleOnLoading=function(){var n;null===(n=this.toggleLoading)||void 0===n||n.call(this,!0)},u.handleOnError=function(){var n,t,i,r,u;null===(n=this.toggleLoading)||void 0===n||n.call(this,!1),null!==(t=this.getFallback)&&void 0!==t&&t.call(this)?(null===(i=this.toggleFallback)||void 0===i||i.call(this,!0),null===(r=this.togglePlaceholder)||void 0===r||r.call(this,!1)):null===(u=this.togglePlaceholder)||void 0===u||u.call(this,!0)},u.Yl=function(){var n,t,i,u=this;if(this.Bi){var e,o=this.constructor,l=o.usesShadowDom,f=l?null:o.lightDomTag,a=o.detached;if(!this.Ll){var c=this.win.document;if(l){M(!a);var s=this.element.shadowRoot,v=s&&(e=s,z("c"),T(e,"> ".concat("c")));if(v)this.$l=!0;else{var h,d,p,y,m,b;s=this.element.attachShadow({mode:"open",delegatesFocus:o.delegatesFocus});var g=o.shadowCss;g&&function(n,t,i){var r=n.ownerDocument,u=r.defaultView;if(void 0!==n.adoptedStyleSheets&&void 0!==u.CSSStyleSheet.prototype.replaceSync){var e=u.__AMP_SHADOW_CSS||(u.__AMP_SHADOW_CSS={}),o=e[t];o||((o=new u.CSSStyleSheet).replaceSync(i),e[t]=o),n.adoptedStyleSheets=n.adoptedStyleSheets.concat(o)}else{var l=r.createElement("style");l.setAttribute("data-name",t),l.textContent=i,n.appendChild(l)}}(s,this.element.tagName,g),v=N(c,"c",Ii),s.appendChild(v);var w=N(c,"slot",Ci);s.appendChild(w),null===(h=this.getPlaceholder)||void 0===h||null===(d=h.call(this))||void 0===d||d.setAttribute("slot","i-amphtml-svc"),null===(p=this.getFallback)||void 0===p||null===(y=p.call(this))||void 0===y||y.setAttribute("slot","i-amphtml-svc"),null===(m=this.getOverflowElement)||void 0===m||null===(b=m.call(this))||void 0===b||b.setAttribute("slot","i-amphtml-svc")}this.Ll=v,function(n,t){dt.get(n).setParent(t)}(s,this.element),function(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;dt.get(n).addGroup(t,i,r)}(this.element,"unslotted",Hi,-1),n=this.element,t=Qt,this,null===(i=dt.get(n).group("unslotted"))||void 0===i||i.values.set(t,this,!1)}else if(f){this.Ll=this.element;var _=I(this.Ll,"i-amphtml-rendered")||N(c,f,Li);_.__AMP_RENDERED=!0,o.layoutSizeDefined&&_.classList.add("i-amphtml-fill-content"),this.Ll.appendChild(_)}else{var S=c.createElement("i-amphtml-c");this.Ll=S,S.classList.add("i-amphtml-fill-content"),a||this.element.appendChild(S)}}var x=o.useContexts,j=this.Cl;if(0==x.length||null!=j){var O=xi(o,this.element,this.Pl,this.xl,this.un);if(this.updatePropsForRendering(O),this.isReady(O)){for(var k=un(o.Component,O),A=0;A<x.length;A++){var E=x[A].type,P=j[A];P&&(k=un(E.Provider,{value:P},k))}var R=un(Jt,r({},this.kl),k);if(this.$l)this.$l=!1,On(R,this.Ll);else{var C=f?I(this.Ll,"i-amphtml-rendered"):null;C&&(C.__AMP_RENDERED=!0),jn(R,this.Ll,C)}l||a||this.mutateElement((function(){return F(u.element,"amp:dom-update",null)})),this.Nl&&(this.Nl.resolve(),this.Nl=null)}}}},u.getProp=function(n,t){return i=this.xl,r=n,w.call(i,r)?this.xl[n]:t;var i,r},u.getApi=function(){var n=this.Al;return n?Promise.resolve(n):(this.Il||(this.Il=new J),this.Il.promise)},u.Rl=function(n){for(var t=_(),i=Object.keys(n),r=0;r<i.length;r++)$i(this,t,i[r]);this.Al=t,this.Il&&(this.Il.resolve(t),this.Il=null)},u.zl=function(n){},u.triggerEvent=function(n,t,i){F(n,t,i)},u.pauseCallback=function(){if(this.constructor.unloadOnPause)this.mutateProps(S({"loading":"unload"})),this.Ml=!0;else{var n,t=this.El;null==t||null===(n=t.pause)||void 0===n||n.call(t)}},u.Ol=function(n){this.Vl.updatePlaying(n)},i}(Dt);function $i(n,t,i){Object.defineProperty(t,i,{configurable:!0,get:function(){return n.El[i]},set:function(t){n.El[i]=t}})}function Vi(n){for(var t=0;t<n.length;t++){var i=n[t];if(k(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 qi(n,t){if(null==n)return{};var i,r,u={},e=Object.keys(n);for(r=0;r<e.length;r++)i=e[r],t.indexOf(i)>=0||(u[i]=n[i]);return u}Yi.Component=function(){M(!1)},Yi.staticProps=void 0,Yi.useContexts=[],Yi.loadable=!1,Yi.unloadOnPause=!1,Yi.layoutSizeDefined=!1,Yi.lightDomTag="",Yi.usesTemplate=!1,Yi.shadowCss=null,Yi.usesShadowDom=!1,Yi.detached=!1,Yi.delegatesFocus=!1,Yi.props={};var Wi,Bi=["ref"],Di="undefined"!=typeof Symbol&&(null===(Wi=Symbol.for)||void 0===Wi?void 0:Wi.call(Symbol,"react.forward_ref"))||3911,Zi=V.__b;function Ui(n){function t(t){var i=t.ref,r=qi(t,Bi);return n(r,i)}return t.$$typeof=Di,t.render=t,t.prototype.isReactComponent=!0,t.Bl=!0,t}function Xi(n){var t=function(n,t){if("object"!==l(n)||null===n)return n;var i=n[Symbol.toPrimitive];if(void 0!==i){var r=i.call(n,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===l(t)?t:String(t)}V.__b=function(n){var t;null!==(t=n.type)&&void 0!==t&&t.Bl&&n.ref&&(n.props.ref=n.ref,n.ref=null),null==Zi||Zi(n)};var Gi=[null,"paint","layout","content","size","size paint","size layout","strict"],Ji={"position":"relative","width":"100%","height":"100%"};function Ki(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var i=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=i){var r,u,e=[],o=!0,l=!1;try{for(i=i.call(n);!(o=(r=i.next()).done)&&(e.push(r.value),!t||e.length!==t);o=!0);}catch(n){l=!0,u=n}finally{try{o||null==i.return||i.return()}finally{if(l)throw u}}return e}}(n,t)||y(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qi(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;n.classList.add("i-amphtml-animating");var r=t();return r.onfinish=r.oncancel=function(){r=null,i&&i(),n.classList.remove("i-amphtml-animating")},function(){r&&r.cancel()}}function nr(n){var t=window.innerHeight,i=Math.abs(n)/t*500;return Math.min(Math.max(i,200),500)}Ui((function(n,t){var i="class",u=n.as,e=void 0===u?"div":u,o=n.children,l=n.contentAs,f=void 0===l?"div":l,a=n.contentClassName,c=n.contentProps,s=n.contentRef,v=n.contentStyle,h=n.layout,d=void 0!==h&&h,p=n.paint,y=void 0!==p&&p,m=n.size,b=void 0!==m&&m,g=n.style,w=n.wrapperClassName,_=n.wrapperStyle,S=n[i],x=(b?4:0)+(d?2:0)+(y?1:0);return un(e,r(r({},qi(n,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",i].map(Xi))),{},{ref:t,class:"".concat(S||""," ").concat(w||"").trim()||null,style:r(r(r({},g),_),{},{contain:Gi[x]})}),un(f,r(r({},c),{},{ref:s,class:a,style:r(r({},b&&Ji),{},{"overflow":y?"hidden":"visible"},v)}),o))})),Ui((function(n,t){var i="class",u=n.as,e=void 0===u?"div":u,o=n.children,l=n.style,f=n.wrapperClassName,a=n.wrapperStyle,c=n[i];return un(e,r(r({},qi(n,["as","children","style","wrapperClassName","wrapperStyle",i].map(Xi))),{},{ref:t,class:"".concat(c||""," ").concat(f||"").trim()||null,style:r(r({},l),a)}),o)}));var tr=["animate","as","children","expandSingleSection","id"],ir=["animate","as","children","expanded","id","onExpandStateChange"],rr=kn({}),ur=kn({}),er={},or={},lr=ri(),fr=function(){return String(Math.floor(1e5*Math.random()))},ar=Ui((function(n,i){var u=n.animate,e=void 0!==u&&u,o=n.as,l=void 0===o?"section":o,f=n.children,a=n.expandSingleSection,c=void 0!==a&&a,s=n.id,v=qi(n,tr),h=Ki(Cn(er),2),d=h[0],p=h[1],y=Nn(or),m=Ki(Cn(fr),1)[0],b=s||"a".concat(m);Ln((function(){c&&p((function(n){var t={},i=0;for(var r in n)t[r]=n[r]&&0==i++;return t}))}),[c]);var g=$n((function(n,i,u){var e=u.current;return p((function(t){return cr(n,i,t,c)})),y.current=r(r({},y.current),{},t({},n,e)),function(){p((function(t){return x(t,n)})),y.current=x(y.current,n)}}),[c]),w=$n((function(n,t){p((function(i){var r=null!=t?t:!i[n],u=cr(n,r,i,c);return Y().then((function(){for(var n in i){var t=y.current[n];t&&i[n]!=u[n]&&t(u[n])}})),u}))}),[c]),_=$n((function(n,t){var i;return null!==(i=d[n])&&void 0!==i?i:t}),[d]),S=$n((function(n){if(n)n in d&&w(n);else if(!c)for(var t in d)w(t)}),[d,w,c]),j=$n((function(n){if(n)_(n,!0)||w(n);else if(!c)for(var t in d)_(t,!0)||w(t)}),[d,w,_,c]),O=$n((function(n){if(n)_(n,!1)&&w(n);else for(var t in d)_(t,!1)&&w(t)}),[d,w,_]);Fn(i,(function(){return{toggle:S,expand:j,collapse:O}}),[S,O,j]);var k=Yn((function(){return{registerSection:g,toggleExpanded:w,isExpanded:_,animate:e,prefix:b}}),[g,w,_,e,b]);return un(l,r({id:s},v),un(rr.Provider,{value:k},f))}));function cr(n,i,u,e){var o;if(e&&i)for(var l in o=t({},n,i),u)l!=n&&(o[l]=!1);else o=r(r({},u),{},t({},n,i));return o}function sr(n){var t=n.animate,i=void 0!==t&&t,u=n.as,e=void 0===u?"section":u,o=n.children,l=n.expanded,f=void 0!==l&&l,a=n.id,c=n.onExpandStateChange,s=qi(n,ir),v=Ki(Cn(lr),1)[0],h=a||v,d=Ki(Cn(fr),1)[0],p=Ki(Cn(f),2),y=p[0],m=p[1],b=Ki(Cn(null),2),g=b[0],w=b[1],_=Ki(Cn(null),2),S=_[0],x=_[1],j=Vn(rr),O=j.animate,k=j.isExpanded,M=j.prefix,A=j.registerSection,E=j.toggleExpanded,P=k?k(h,f):y,z=null!=O?O:i,R=g||"".concat(M||"a","-content-").concat(h,"-").concat(d),T=S||"".concat(M||"a","-header-").concat(h,"-").concat(d),I=Nn(null);I.current=c,Hn((function(){if(A)return A(h,f,I)}),[A,h,f]);var C=$n((function(n){E?E(h,n):m((function(t){var i=null!=n?n:!t;return Y().then((function(){var n=I.current;n&&n(i)})),i}))}),[h,E]),L=Yn((function(){return{animate:z,contentId:R,headerId:T,expanded:P,toggleHandler:C,setContentId:w,setHeaderId:x}}),[z,R,T,P,C]);return un(e,r({},s),un(ur.Provider,{value:L},o))}function vr(n){var t="class",i="tabIndex",u=n.as,e=void 0===u?"div":u,o=n.children,l=n.id,f=n.role,a=void 0===f?"button":f,c=n[t],s=void 0===c?"":c,v=n[i],h=void 0===v?0:v,d=qi(n,["as","children","id","role",t,i].map(Xi)),p=Vn(ur),y=p.contentId,m=p.expanded,b=p.headerId,g=p.setHeaderId,w=p.toggleHandler;return Hn((function(){g&&g(l)}),[g,l]),un(e,r(r({},d),{},{id:b,role:a,class:"".concat(s," ").concat("section-child-00fce3c"," ").concat("header-00fce3c"),tabIndex:h,"aria-controls":y,onClick:function(){return w()},"aria-expanded":String(m)}),o)}function hr(n){var t="class",i=n.as,u=void 0===i?"div":i,e=n.children,o=n.id,l=n.role,f=void 0===l?"region":l,a=n[t],c=void 0===a?"":a,s=qi(n,["as","children","id","role",t].map(Xi)),v=Nn(null),h=Nn(!1),d=Vn(ur),p=d.animate,y=d.contentId,m=d.expanded,b=d.headerId,g=d.setContentId;return Ln((function(){return h.current=!0,function(){return h.current=!1}}),[]),Hn((function(){g&&g(o)}),[g,o]),Hn((function(){var n=h.current,t=v.current;if(p&&n&&t&&t.animate)return m?function(n){return Qi(n,(function(){var t=Lt(n,"height"),i=Lt(n,"opacity"),r=Lt(n,"overflowY");Ht(n,{height:0,opacity:0,overflowY:"auto"});var u=n.scrollHeight;Ht(n,{height:t,opacity:i,overflowY:r});var e=nr(u);return n.animate([{height:0,opacity:0,overflowY:"hidden"},{height:u+"px",opacity:1,overflowY:"hidden"}],{easing:"cubic-bezier(0.47, 0, 0.745, 0.715)",duration:e})}))}(t):function(n){return Qi(n,(function(){var t=n.offsetHeight,i=nr(t);return n.animate([{height:t+"px",opacity:1,overflowY:"hidden"},{height:"0",opacity:0,overflowY:"hidden"}],{easing:"cubic-bezier(0.39, 0.575, 0.565, 1)",duration:i})}))}(t)}),[m,p]),un(Jt,{renderable:m},un(u,r(r({},s),{},{ref:v,class:c+" section-child-00fce3c"+(m?"":" content-hidden-00fce3c"),id:y,"aria-labelledby":b,role:f}),e))}ar.displayName="Accordion";var dr=function(n){e(i,Yi);var t=c(i);function i(){return t.apply(this,arguments)}return i.prototype.init=function(){var n=this,t=function(t){return function(i){var r;!function(n,t,i){var r=n.hasAttribute(t),u=void 0!==i?i:!r;u!==r&&(u?n.setAttribute(t,""):n.removeAttribute(t))}(t,"expanded",i),null===(r=t.__AMP_PR)||void 0===r||r.call(t),n.triggerEvent(t,i?"expand":"collapse")}},i=this.element,r=new MutationObserver((function(){n.mutateProps(pr(i,r,t))}));return r.observe(i,{attributeFilter:["expanded","id"],subtree:!0,childList:!0}),S({"children":pr(i,r,t).children})},i}();function pr(n,t,i){var u,e,o,l,f,a=(e=n,o="section",z(o),l=e,f="> ".concat(o),(u=E(l)?l.querySelectorAll(P(f,":scope")):R(l,f))?Array.prototype.slice.call(u):[]).map((function(n){n.__AMP_PR||(n.__AMP_PR=function(){return t.takeRecords()});var u=O(n,"__AMP_H_SHIM",mr),e=O(n,"__AMP_C_SHIM",gr),o=O(n,"__AMP_EXPAND_STATE_SHIM",i),l=S({"key":n,"expanded":n.hasAttribute("expanded"),"id":n.getAttribute("id"),"onExpandStateChange":o}),f=S({"as":u,"id":n.firstElementChild.getAttribute("id"),"role":n.firstElementChild.getAttribute("role")||void 0}),a=S({"as":e,"id":n.lastElementChild.getAttribute("id"),"role":n.lastElementChild.getAttribute("role")||void 0});return un(sr,r({},l),un(vr,r({},f)),un(hr,r({},a)))}));return S({"children":a})}function yr(n,t){var i=t["aria-controls"],r=t["aria-expanded"],u=t.id,e=t.onClick,o=t.role,l=n.firstElementChild;return Hn((function(){if(l&&e)return l.setAttribute("id",u),l.classList.add("i-amphtml-accordion-header"),l.addEventListener("click",e),l.hasAttribute("tabindex")||l.setAttribute("tabindex",0),l.setAttribute("aria-expanded",r),l.setAttribute("aria-controls",i),l.setAttribute("role",o),n.__AMP_PR&&n.__AMP_PR(),function(){l.removeEventListener("click",M(e))}}),[n,l,u,o,e,i,r]),un("header",null)}var mr=function(n){return yr.bind(null,n)};function br(n,t,i){var r=t["aria-labelledby"],u=t.id,e=t.role,o=n.lastElementChild,l=Nn();return l.current=o,yi(l),function(n,t){Fn(n,(function(){return t}),[t])}(i,o),Hn((function(){o&&(o.classList.add("i-amphtml-accordion-content"),o.setAttribute("id",u),o.setAttribute("role",e),o.setAttribute("aria-labelledby",r),n.__AMP_PR&&n.__AMP_PR())}),[n,o,u,e,r]),un("div",null)}var gr=function(n){return Ui(br.bind(null,n))};function wr(){customElements.define("bento-accordion",dr.CustomElement(dr))}
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -9,2 +9,2 @@ /**

* https://developers.google.com/open-source/licenses/bsd
*/br.Component=hr,br.detached=!0,br.props={"animate":{attr:"animate",type:"boolean",media:!0},"expandSingleSection":{attr:"expand-single-section",type:"boolean"}};
*/dr.Component=ar,dr.detached=!0,dr.props={"animate":{attr:"animate",type:"boolean",media:!0},"expandSingleSection":{attr:"expand-single-section",type:"boolean"}};

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

function t(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function n(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 i(i){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(n){t(i,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))}))}return i}var{isArray:e}=Array;function r(t){return e(t)?t:[t]}function o(t,n){return t.indexOf(n)<0&&(t.push(n),!0)}function s(t,n){const i=t.indexOf(n);return-1!=i&&(t.splice(i,1),!0)}function l(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 u(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 l(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)?l(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 h(t){const n=Object.create(null);return t&&Object.assign(n,t),n}function f(t){return t||{}}function d(t,n){return Object.keys(t).reduce(((i,e)=>(n.includes(e)||(i[e]=t[e]),i)),{})}function v(t,n,i){let e=t[n];return void 0===e&&(e=i(t,n),t[n]=e),e}function p(t){return 1==(null==t?void 0:t.nodeType)}function m(t,n,i,e,r,o,s,l,u,c,a){return t}function y(t){return(t.ownerDocument||t).defaultView}function b(t,n){return t.replace(/^|,/g,`$&${n} `)}function g(t){m(/^[\w-]+$/.test(t))}function _(t,n){return t.querySelector(b(n,":scope"))}function A(t,n){const i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!i&&i.call(t,n)}function w(t,n){return g(n),_(t,`> [${n}]`)}function P(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:p(t)&&(n=t.tagName),!!n&&n.toLowerCase().startsWith("i-")}(e=n)||e.nodeType===Node.ELEMENT_NODE&&(e.hasAttribute("placeholder")||e.hasAttribute("fallback")||e.hasAttribute("overflow")))&&i.push(n);var e;return i}(t)}var k,S={bubbles:!0,cancelable:!0};function M(t,n,i){return function(t,n){for(const i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}function x(t,n,i,e){const r=i||{};m(t.ownerDocument);const o=t.ownerDocument.createEvent("Event");o.data=r;const{bubbles:s,cancelable:l}=e||S;o.initEvent(n,s,l),t.dispatchEvent(o)}function E(){return k||(k=Promise.resolve(void 0))}var I,R,T,C,O,V,j,z,$,L,N=class{constructor(){this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n}))}},H={},U=[],W=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function q(t,n){for(var i in n)t[i]=n[i];return t}function D(t){var n=t.parentNode;n&&n.removeChild(t)}function F(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?I.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 Y(t,s,e,r,null)}function Y(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?++T:r};return null==r&&null!=R.vnode&&R.vnode(o),o}function B(t){return t.children}function Z(t,n){this.props=t,this.context=n}function G(t,n){if(null==n)return t.__?G(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?G(t):null}function Q(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 Q(t)}}function X(t){(!t.__d&&(t.__d=!0)&&C.push(t)&&!J.__r++||V!==R.debounceRendering)&&((V=R.debounceRendering)||O)(J)}function J(){for(var t;J.__r=C.length;)t=C.sort((function(t,n){return t.__v.__b-n.__v.__b})),C=[],t.some((function(t){var n,i,e,r,o,s;t.__d&&(o=(r=(n=t).__v).__e,(s=n.__P)&&(i=[],(e=q({},r)).__v=r.__v+1,st(s,r,e,n.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,i,null==o?G(r):o,r.__h),lt(i,r),r.__e!=o&&Q(r)))}))}function K(t,n,i,e,r,o,s,l,u,c){var a,h,f,d,v,p,m,y=e&&e.__k||U,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?Y(null,d,null,null,d):Array.isArray(d)?Y(B,{children:d},null,null,null):d.__b>0?Y(d.type,d.props,d.key,null,d.__v):d)){if(d.__=i,d.__b=i.__b+1,null===(f=y[a])||f&&d.key==f.key&&d.type===f.type)y[a]=void 0;else for(h=0;h<b;h++){if((f=y[h])&&d.key==f.key&&d.type===f.type){y[h]=void 0;break}f=null}st(t,d,f=f||H,r,o,s,l,u,c),v=d.__e,(h=d.ref)&&f.ref!=h&&(m||(m=[]),f.ref&&m.push(f.ref,null,d),m.push(h,d.__c||v,d)),null!=v?(null==p&&(p=v),"function"==typeof d.type&&d.__k===f.__k?d.__d=u=tt(d,u,t):u=nt(t,d,f,y,v,u),"function"==typeof i.type&&(i.__d=u)):u&&f.__e==u&&u.parentNode!=t&&(u=G(f))}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=G(e,a+1)),ct(y[a],y[a]));if(m)for(a=0;a<m.length;a++)ut(m[a],m[++a],m[++a])}function tt(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?tt(e,n,i):nt(i,e,e,r,e.__e,n));return n}function nt(t,n,i,e,r,o){var s,l,u;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(l=o,u=0;(l=l.nextSibling)&&u<e.length;u+=2)if(l==r)break t;t.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function it(t,n,i){"-"===n[0]?t.setProperty(n,i):t[n]=null==i?"":"number"!=typeof i||W.test(n)?i:i+"px"}function et(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||it(t.style,n,"");if(i)for(n in i)e&&i[n]===e[n]||it(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?ot:rt,o):t.removeEventListener(n,o?ot:rt,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 rt(t){this.l[t.type+!1](R.event?R.event(t):t)}function ot(t){this.l[t.type+!0](R.event?R.event(t):t)}function st(t,n,i,e,r,o,s,l,u){var c,a,h,f,d,v,p,m,y,b,g,_=n.type;if(void 0!==n.constructor)return null;null!=i.__h&&(u=i.__h,l=n.__e=i.__e,n.__h=null,o=[l]),(c=R.__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 Z(m,b),a.constructor=_,a.render=at),y&&y.sub(a),a.props=m,a.state||(a.state={}),a.context=b,a.__n=e,h=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=_.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=q({},a.__s)),q(a.__s,_.getDerivedStateFromProps(m,a.__s))),f=a.props,d=a.state,h)null==_.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==_.getDerivedStateFromProps&&m!==f&&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(f,d,v)}))}a.context=b,a.props=m,a.state=a.__s,(c=R.__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=q(q({},e),a.getChildContext())),h||null==a.getSnapshotBeforeUpdate||(v=a.getSnapshotBeforeUpdate(f,d)),g=null!=c&&c.type===B&&null==c.key?c.props.children:c,K(t,Array.isArray(g)?g:[g],n,i,e,r,o,s,l,u),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,l){var u,c,a,h=i.props,f=n.props,d=n.type,v=0;if("svg"===d&&(r=!0),null!=o)for(;v<o.length;v++)if((u=o[v])&&(u===t||(d?u.localName==d:3==u.nodeType))){t=u,o[v]=null;break}if(null==t){if(null===d)return document.createTextNode(f);t=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),o=null,l=!1}if(null===d)h===f||l&&t.data===f||(t.data=f);else{if(o=o&&I.call(t.childNodes),c=(h=i.props||H).dangerouslySetInnerHTML,a=f.dangerouslySetInnerHTML,!l){if(null!=o)for(h={},v=0;v<t.attributes.length;v++)h[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||et(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]||et(t,o,n[o],i[o],e)}(t,f,h,r,l),a)n.__k=[];else if(v=n.props.children,K(t,Array.isArray(v)?v:[v],n,i,e,r&&"foreignObject"!==d,o,s,o?o[0]:i.__k&&G(i,0),l),null!=o)for(v=o.length;v--;)null!=o[v]&&D(o[v]);l||("value"in f&&void 0!==(v=f.value)&&(v!==t.value||"progress"===d&&!v)&&et(t,"value",v,h.value,!1),"checked"in f&&void 0!==(v=f.checked)&&v!==t.checked&&et(t,"checked",v,h.checked,!1))}return t}(i.__e,n,i,e,r,o,s,u);(c=R.diffed)&&c(n)}catch(t){n.__v=null,(u||null!=o)&&(n.__e=l,n.__h=!!u,o[o.indexOf(l)]=null),R.__e(t,n,i)}}function lt(t,n){R.__c&&R.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){R.__e(t,n.__v)}}))}function ut(t,n,i){try{"function"==typeof t?t(n):t.current=n}catch(t){R.__e(t,i)}}function ct(t,n,i){var e,r;if(R.unmount&&R.unmount(t),(e=t.ref)&&(e.current&&e.current!==t.__e||ut(e,null,n)),null!=(e=t.__c)){if(e.componentWillUnmount)try{e.componentWillUnmount()}catch(t){R.__e(t,n)}e.base=e.__P=null}if(e=t.__k)for(r=0;r<e.length;r++)e[r]&&ct(e[r],n,"function"!=typeof t.type);i||null==t.__e||D(t.__e),t.__e=t.__d=void 0}function at(t,n,i){return this.constructor(t,i)}function ht(t,n,i){var e,r,o;R.__&&R.__(t,n),r=(e="function"==typeof i)?null:i&&i.__k||n.__k,o=[],st(n,t=(!e&&i||n).__k=F(B,null,[t]),r||H,H,void 0!==n.ownerSVGElement,!e&&i?[i]:r?null:n.firstChild?I.call(n.childNodes):null,o,!e&&i?i:r?r.__e:n.firstChild,e),lt(o,t)}function ft(t,n){ht(t,n,ft)}I=U.slice,R={__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}},T=0,Z.prototype.setState=function(t,n){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=q({},this.state),"function"==typeof t&&(t=t(q({},i),this.props)),t&&q(i,t),null!=t&&this.__v&&(n&&this.__h.push(n),X(this))},Z.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),X(this))},Z.prototype.render=B,C=[],O="function"==typeof Promise?Promise.prototype.then.bind(E()):setTimeout,J.__r=0,j=0;var dt=0,vt=[],pt=R.__b,mt=R.__r,yt=R.diffed,bt=R.__c,gt=R.unmount;function _t(t,n){R.__h&&R.__h($,t,dt||n),dt=0;var i=$.__H||($.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function At(t,n){var i=_t(z++,4);!R.__s&&xt(i.__H,n)&&(i.__=t,i.__H=n,$.__h.push(i))}function wt(t,n){var i=_t(z++,7);return xt(i.__H,n)&&(i.__=t(),i.__H=n,i.__h=t),i.__}function Pt(){vt.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(St),t.__H.__h.forEach(Mt),t.__H.__h=[]}catch(n){t.__H.__h=[],R.__e(n,t.__v)}})),vt=[]}R.__b=function(t){$=null,pt&&pt(t)},R.__r=function(t){mt&&mt(t),z=0;var n=($=t.__c).__H;n&&(n.__h.forEach(St),n.__h.forEach(Mt),n.__h=[])},R.diffed=function(t){yt&&yt(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==vt.push(n)&&L===R.requestAnimationFrame||((L=R.requestAnimationFrame)||function(t){var n,i=function(){clearTimeout(e),kt&&cancelAnimationFrame(n),setTimeout(t)},e=setTimeout(i,100);kt&&(n=requestAnimationFrame(i))})(Pt)),$=null},R.__c=function(t,n){n.some((function(t){try{t.__h.forEach(St),t.__h=t.__h.filter((function(t){return!t.__||Mt(t)}))}catch(i){n.some((function(t){t.__h&&(t.__h=[])})),n=[],R.__e(i,t.__v)}})),bt&&bt(t,n)},R.unmount=function(t){gt&&gt(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach(St)}catch(t){R.__e(t,n.__v)}};var kt="function"==typeof requestAnimationFrame;function St(t){var n=$;"function"==typeof t.__c&&t.__c(),$=n}function Mt(t){var n=$;t.__c=t.__(),$=n}function xt(t,n){return!t||t.length!==n.length||n.some((function(n,i){return n!==t[i]}))}function Et(t,n){return"function"==typeof n?n(t):n}function It(t,n,i){return F.apply(void 0,arguments)}function Rt(t,n,i){ht(t,n,i)}function Tt(t){return(i={__c:n="__cC"+j++,__:t,Consumer:function(t,n){return t.children(n)},Provider:function(t){var i,e;return this.getChildContext||(i=[],(e={})[n]=this,this.getChildContext=function(){return e},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&i.some(X)},this.sub=function(t){i.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){i.splice(i.indexOf(t),1),n&&n.call(t)}}),t.children}}).Provider.__=i.Consumer.contextType=i;var n,i}function Ct(t){return dt=1,n=Et,i=t,(e=_t(z++,2)).t=n,e.__c||(e.__=[Et(void 0,i),function(t){var n=e.t(e.__[0],t);e.__[0]!==n&&(e.__=[n,e.__[1]],e.__c.setState({}))}],e.__c=$),e.__;var n,i,e}function Ot(t){return n=t,dt=5,wt((function(){return{current:n}}),[]);var n}function Vt(t,n){var i,e,r;i=t,e=n,r=_t(z++,3),!R.__s&&xt(r.__H,e)&&(r.__=i,r.__H=e,$.__H.__h.push(r))}function jt(t,n){At(t,n)}function zt(t){return n=t,i=$.context[n.__c],(e=_t(z++,9)).c=n,i?(null==e.__&&(e.__=!0,i.sub($)),i.props.value):n.__;var n,i,e}function $t(t,n){return wt(t,n)}function Lt(t,n){return i=t,dt=8,wt((function(){return i}),n);var i}function Nt(t,n,i){return e=t,r=n,dt=6,void At((function(){"function"==typeof e?e(r()):e&&(e.current=r())}),null==(o=i)?o:o.concat(e));var e,r,o}var Ht=["auto","lazy","eager","unload"],Ut={auto:0,lazy:1,eager:2,unload:3};function Wt(t,n){const i=Ut[t]||0,e=Ut[n]||0,r=Math.max(i,e);return Ht[r]}function qt(t,n){let i=!1;const e=()=>{i=!1,t()};return t=>{i||(i=!0,(t||n)(e))}}function Dt(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 Ft(t){let n=null,i="";for(var e,r=u(arguments,!0);!(e=r()).done;){const t=e.value;t instanceof Error&&!n?n=Dt(t):(i&&(i+=" "),i+=t)}return n?i&&(n.message=i+": "+n.message):n=new Error(i),n}function Yt(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function Bt(t){const n=Ft.apply(null,arguments);setTimeout((()=>{throw Yt(n),n}))}function Zt(t,...n){try{return t.apply(null,n)}catch(t){Bt(t)}}function Gt(t,n,i,e=!0,r=!0){if(r){const r=n(t,i,e);r&&Gt(t,n,i,r,!1)}else if(t.children)for(var o,s=u(t.children,!0);!(o=s()).done;)Gt(o.value,n,i,e,!0)}var Qt=[],Xt=()=>{};function Jt(t,n){return t.values.scan(n)}function Kt(t,n,i){return t.values.scanAll(i)}function tn(t,n){return t.values.has(n)}function nn(t){return!!t.recursive}function en(t){return void 0!==t}var rn=class{static get(t){let n=t.__AMP_NODE;return n||(n=new rn(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||p(i)&&i.tagName.startsWith("AMP-"))return rn.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,on(t))}static unassignSlot(t,n){t.__AMP_ASSIGNED_SLOT==n&&(t.__AMP_ASSIGNED_SLOT=void 0,on(t))}static rediscoverChildren(t){var n;const i=t.__AMP_NODE;null==i||null===(n=i.children)||void 0===n||n.forEach(sn)}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.Ze=t,this.v=null,this.m=null,this.el=qt(this.el.bind(this),setTimeout)}set(t,n,i){m(n),m(void 0!==i);const{key:e}=t,r=this.v||(this.v=new Map);let o=r.get(e);o||(o={values:[],setters:[]},r.set(e,o));const s=o.setters.indexOf(n),l=-1==s||o.values[s]!==i;-1==s?(o.setters.push(n),o.values.push(i)):l&&(o.values[s]=i),l&&(this.ping(t,!1),nn(t)&&Gt(this.Ze,Jt,t,!0,!1))}remove(t,n){m(n);const{key:i}=t,e=this.v,r=null==e?void 0:e.get(i);if(r){m(e);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),Gt(this.Ze,Jt,t))}}has(t){var n;return!(null===(n=this.v)||void 0===n||!n.has(t.key))}subscribe(t,n){const i=this.ka(t);if(!o(i.subscribers,n))return;const e=i.value;en(e)&&this.hi()&&n(e)}unsubscribe(t,n){var i;const e=null===(i=this.m)||void 0===i?void 0:i.get(t.key);e&&s(e.subscribers,n)&&this.Sa(e)}ping(t,n){var i,e;null===(i=this.m)||void 0===i||null===(e=i.get(t.key))||void 0===e||e.ping(n)}parentUpdated(){this.hi()&&Gt(this.Ze,Kt,void 0,Qt)}rootUpdated(){const t=this.m;t&&(this.hi()?t.forEach((t=>{const{prop:n}=t;this.ping(n,!0)})):t.forEach((t=>{const{prop:n}=t;nn(n)&&this.Ia(t,null)})))}scan(t){return this.ping(t,!0),!!nn(t)&&!this.has(t)}scanAll(t){let n=null;const i=this.m;return i&&i.forEach((i=>{const{prop:e}=i,{key:r}=e;-1==(n||t).indexOf(r)&&(this.ping(e,!0),this.Ze.children&&this.has(e)&&(n||(n=t.slice(0)),n.push(r)))})),n||t}hi(){return!!this.Ze.root}ka(t){const{deps:n,key:i}=t,e=this.m||(this.m=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(Xt):Qt,parentValue:void 0,parentContextNode:null,ping:t=>{if(this.hi()){const n=t?2:1;r.pending=Math.max(r.pending,n),this.el()}},pingDep:n.length>0?n.map(((t,n)=>t=>{r.depValues[n]=t,r.ping()})):Qt,pingParent:nn(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}Sa(t){var n;if(t.subscribers.length>0)return;const{pingDep:i,prop:e}=t,{deps:r,key:o}=e;null===(n=this.m)||void 0===n||n.delete(o),this.Ia(t,null),r.length>0&&r.forEach(((t,n)=>{this.unsubscribe(t,i[n])}))}el(){if(!this.hi())return;const t=this.m;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 Bt(`cyclical prop: ${i}`),void(t.pending=0);n++,this.Ra(t)}}))}while(n>0)}Ra(t){const n=2==t.pending;let i;try{i=this.Ca(t,n)}catch(t){Bt(t)}t.pending=0,this.Oa(t,i)}Oa(t,n){const{prop:i,value:e}=t,{key:r}=i,o=this.m;if(e===n||t!==(null==o?void 0:o.get(r))||!this.hi())return;t.value=n;const{subscribers:s}=t;for(var l,c=u(s,!0);!(l=c()).done;)(0,l.value)(n)}Ca(t,n){var i,e;m(this.hi());const{depValues:r,prop:o}=t,{compute:s,defaultValue:l,key:u}=o,c=null===(i=this.v)||void 0===i||null===(e=i.get(u))||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.Ze,tn,o,!1):null;this.Ia(t,n)}const h=en(t.parentValue)?t.parentValue:a&&!t.parentContextNode?l:void 0;let f;if(r.every(en)&&(!a||en(h))){const{node:t}=this.Ze;c&&!s?f=c[0]:nn(o)?c||r.length>0?f=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||Qt,h,r):en(h)&&(f=h):s&&(f=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||Qt,r))}return f}Ia(t,n){const{parentContextNode:i,pingParent:e,prop:r}=t;n!=i&&(t.parentContextNode=n,t.parentValue=void 0,m(e),i&&i.values.unsubscribe(r,e),n&&(m(e),n.values.subscribe(r,e)))}}(this),this.Va=null,this.ja=!1,this.za=qt(this.$a.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(t=>{var n,i;const e=t.target;e.assignedNodes().forEach(on),null===(n=rn.closest(e))||void 0===n||null===(i=n.children)||void 0===i||i.forEach(sn)})),this.discover()}discover(){this.isDiscoverable()?this.za():this.name&&this.children&&this.children.forEach(sn)}isDiscoverable(){return!this.isRoot&&!this.ja}setParent(t){const n=null!=t&&t.nodeType?rn.get(t):t;this.La(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){m(!t||t.isRoot);const n=this.root;var i,e;t!=n&&(this.root=t,this.values.rootUpdated(),null===(i=this.Va)||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 rn(o,t);return e.set(t,{cn:s,match:n,weight:i}),s.setParent(this),null==r||r.forEach(sn),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.Va||(this.Va=new Map);let o=r.get(t);o||(o=new n(this,i,e),r.set(t,o))}unsubscribe(t){const n=this.Va,i=null==n?void 0:n.get(t);i&&(i.dispose(),m(n),n.delete(t))}$a(){if(!this.isDiscoverable())return;const t=rn.closest(this.node,!1),n=(null==t?void 0:t.findGroup(this.node))||t;this.La(n,!1)}La(t,n){var i;this.ja=n;const e=this.parent;if(t!=e){if(this.parent=t,null!=e&&e.children&&(m(e.children),s(e.children,this)),t){const n=t.children||(t.children=[]);o(n,this);for(var r,l=u(n,!0);!(r=l()).done;){const t=r.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 on(t){!function(t,n,i=!0){const e=rn.closest(t,i);if(e)if(e.node==t)n(e);else if(e.children)for(var r,o=u(e.children,!0);!(r=o()).done;){const i=r.value;t.contains(i.node)&&n(i)}}(t,sn)}function sn(t){t.discover()}var ln=[];function un(t,n){const e=i({key:t,deps:ln,recursive:!1},n);return m(0==e.deps.length||e.compute),e}var cn=[],an=()=>{};function hn(t,n,i){n=r(n);const e=i;rn.get(t).subscribe(e,dn,i,n)}var fn,dn=class{constructor(t,n,i){if(this.contextNode=t,this.Na=n,this.Ha=i,this.Ua=i.length>0?i.map(an):cn,this.Wa=i.length>0?i.map(((t,n)=>t=>{this.Ua[n]=t,this.qa()})):cn,this._s=!1,this.Da=null,this.qa=qt(this.qa.bind(this),setTimeout),i.length>0){const{values:t}=this.contextNode;i.forEach(((n,i)=>t.subscribe(n,this.Wa[i])))}this.hi()&&this.qa()}dispose(){if(this.Ha.length>0){const{values:t}=this.contextNode;this.Ha.forEach(((n,i)=>t.unsubscribe(n,this.Wa[i])))}this.de()}rootUpdated(){const t=this.hi();this.de(),t&&this.qa()}hi(){return!!this.contextNode.root}qa(){this.hi()&&(this.Ua.every(vn)?(this._s=!0,this.Fa()):this._s&&(this._s=!1,this.de()))}Fa(){this.de();const t=this.Na;this.Da=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.Ua)}de(){this.Da&&(Zt(this.Da),this.Da=null)}};function vn(t){return void 0!==t}function pn(t){rn.get(t).discover()}function mn(t,n,i,e){rn.get(t).values.set(n,i,e)}function yn(t,n,i){rn.get(t).values.remove(n,i)}function bn(t,n){return[{query:t.matchMedia(n),value:"1"},{query:null,value:""}]}function gn(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 _n(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 An=["Webkit","webkit","Moz","moz","ms","O","o"],wn={"getPropertyPriority":()=>"","getPropertyValue":()=>""};function Pn(t,n,i){if(xn(n))return n;fn||(fn=h());let e=fn[n];if(!e||i){if(e=n,void 0===t[n]){const i=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(n),r=function(t,n){for(let i=0;i<An.length;i++){const e=An[i]+n;if(void 0!==t[e])return e}return""}(t,i);void 0!==t[r]&&(e=r)}i||(fn[n]=e)}return e}function kn(t,n,i,e,r){const o=Pn(t.style,n,r);if(!o)return;const s=e?i+e:i;xn(o)?t.style.setProperty(o,s):t.style[o]=s}function Sn(t,n,i){const e=Pn(t.style,n,i);if(e)return xn(e)?t.style.getPropertyValue(e):t.style[e]}function Mn(t,n){for(const i in n)kn(t,i,n[i])}function xn(t){return t.startsWith("--")}var En,In,Rn=/vertical/,Tn=new WeakMap,Cn=new WeakMap,On=new WeakMap;function Vn(t){let n=Tn.get(t);return n||(n=new t.ResizeObserver(jn),Tn.set(t,n)),n}function jn(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=Cn.get(r);if(o){On.set(r,e);for(let t=0;t<o.length;t++){const{callback:n,type:i}=o[t];zn(i,n,e)}}}}function zn(t,n,i){if(0==t){const{contentRect:t}=i,{height:e,width:r}=t;Zt(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=y(t),r=Rn.test(function(t,n){return t.getComputedStyle(n)||wn}(n,t).writingMode),{offsetHeight:o,offsetWidth:s}=t;let l,u;r?(u=s,l=o):(l=s,u=o),e={inlineSize:l,blockSize:u}}Zt(n,e)}}if("undefined"!=typeof AMP&&AMP.BaseElement)En=AMP.BaseElement;else{let t;class n{constructor(t){this.element=t,this.win=y(t)}static"CustomElement"(n){return t||(t=HTMLElement),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){E().then(t)}isLayoutSupported(){return!0}mountCallback(){}unmountCallback(){}buildCallback(){}}En=n}function $n(){return In||(In=Tt({renderable:!0,playable:!0,loading:"auto"}))}function Ln({children:t,loading:n="auto",notify:i,playable:e=!0,renderable:r=!0}){const o=Nn(),s=r&&o.renderable,l=s&&e&&o.playable,u=Wt(s?"auto":"lazy",Wt(n,o.loading)),c=i||o.notify,a=$t((()=>({renderable:s,playable:l,loading:u,notify:c})),[s,l,u,c]);return It($n().Provider,{children:t,value:a})}function Nn(){return zt($n())}var Hn=un("CanRender",{defaultValue:!0,recursive:t=>t.reduce(qn),compute:(t,n,i)=>i&&n.reduce(qn,!0)||!1}),Un=un("CanPlay",{defaultValue:!0,recursive:t=>t.reduce(qn),deps:[Hn],compute:(t,n,i,e)=>e&&i&&n.reduce(qn,!0)||!1}),Wn=un("Loading",{defaultValue:"auto",recursive:!0,deps:[Hn],compute:(t,n,i,e)=>Wt(e?"auto":"lazy",Wt(i||"auto",n.reduce(Wt,"auto")))}),qn=(t,n)=>t&&n;function Dn(){let t=0;return()=>String(++t)}var Fn=t=>t.ensureLoaded(),Yn=t=>t.pause(),Bn=t=>t.unmount();function Zn(t,n=!0){Xn(t,n,!1,Fn)}function Gn(t,n=!0){Xn(t,n,!0,Yn)}function Qn(t,n=!0){Xn(t,n,!0,Bn)}function Xn(t,n,i,e){const o=r(t);for(let t=0;t<o.length;t++)Jn(o[t],n,i,e)}function Jn(t,n,i,e){if(n&&t.classList.contains("i-amphtml-element")){const n=t;if(Zt(e,n),!i){const t=n.getPlaceholder();return void(t&&Jn(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)Zt(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),Zt(e,n))}}}var Kn={},ti=new WeakMap;function ni(t,n,e,r=!1){if(t.setAttribute("slot",n),!r)return It(ii,i(i({},e||Kn),{},{name:n}));const o=ti.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,e))return o.component;function s(t){return It(ii,i(i({},e||Kn),{},{name:n},t))}return ti.set(t,{oldProps:e,component:s}),s}function ii(t){const n=Ot(null);return ei(n,t),Vt((()=>{t.postRender&&t.postRender()})),It("slot",i(i({},t),{},{ref:n}))}function ei(t,n){const{"loading":i}=n||Kn,e=Nn();jt((()=>{const n=t.current;return m(p(n)),mn(n,Hn,ii,e.renderable),mn(n,Un,ii,e.playable),mn(n,Wn,ii,e.loading),e.playable||ri(n,Gn,!0),()=>{var t;yn(n,Hn,ii),yn(n,Un,ii),yn(n,Wn,ii),t=n,rn.rediscoverChildren(t)}}),[t,e]),jt((()=>{const n=t.current;return m(p(n)),"lazy"!=i&&ri(n,Zn,!0),()=>{ri(n,Qn,!1)}}),[t,i])}function ri(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 oi={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},si=Dn();function li(t,n){return Object.values(t).some(n)}var ui=t=>"string"==typeof t||!!t.selector,ci=t=>3===t.nodeType&&0===t.nodeValue.trim().length;function ai(t,n,e,r,o){const{"layoutSizeDefined":s,"lightDomTag":l,"props":u}=t;o&&o.start();const c=i(i({},r),{},{ref:e});return l&&(c["i-amphtml-rendered"]=!0,c.__AMP_RENDERED=!0,c.as=l),s&&(t.usesShadowDom?c.style=oi:c.class="i-amphtml-fill-content"),hi(t,c,u,n,o),o&&o.complete(),c}function hi(t,n,i,e,r){if(li(i,ui)){const o=P(e);for(let e=0;e<o.length;e++){const s=o[e],l=di(s,i);if(!l)continue;const u=i[l],{as:c=!1,single:a,name:h=l,clone:f,props:d={}}=u;m(f||t.usesShadowDom);const v={};if(hi(t,v,d,s,r),a)n[h]=ni(s,s.getAttribute("slot")||`i-amphtml-${h}`,v,c);else{const t=n[h]||(n[h]=[]);m(!c),t.push(f?fi(s):ni(s,s.getAttribute("slot")||`i-amphtml-${h}-${si()}`,v))}}}for(const s in i){const l=i[s];let u;if(m(!!l.attr+!!l.attrs+!!l.attrMatches+!!l.selector+!!l.passthrough+!!l.passthroughNonEmpty<=1),l.passthrough?(m(t.usesShadowDom),u=[It(ii,{loading:"lazy"})]):l.passthroughNonEmpty?(m(t.usesShadowDom),u=P(e).every(ci)?null:[It(ii,{loading:"lazy"})]):l.attr?(u=e.getAttribute(l.attr),l.media&&null!=u&&(u=r.resolveListQuery(String(u)))):l.parseAttrs&&(m(l.attrs||l.attrMatches),u=l.parseAttrs(e)),null==u)null!=l.default&&(n[s]=l.default);else{const t="number"==l.type?parseFloat(u):"boolean"==l.type?null==(o=u)?void 0:"false"!==o:u;n[s]=t}}var o}function fi(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 It(e,n)}function di(t,n){for(const i in n){const e=n[i];if(A(t,"string"==typeof e?e:e.selector))return i}return null}var vi=self.AMP_CONFIG||{},pi=("string"==typeof vi.thirdPartyFrameRegex?new RegExp(vi.thirdPartyFrameRegex):vi.thirdPartyFrameRegex,("string"==typeof vi.cdnProxyRegex?new RegExp(vi.cdnProxyRegex):vi.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function mi(t){if(!self.document||!self.document.head)return null;if(self.location&&pi.test(self.location.origin))return null;const n=self.document.head.querySelector(`meta[name="${t}"]`);return n&&n.getAttribute("content")||null}vi.thirdPartyUrl,vi.thirdPartyFrameHost,vi.cdnUrl||mi("runtime-host"),vi.errorReportingUrl,vi.betaErrorReportingUrl,vi.localDev,vi.geoApiUrl||mi("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var yi=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";new RegExp("(-shadowcsshost"+yi,"gim"),new RegExp("(-shadowcsscontext"+yi,"gim"),new RegExp("-shadowcsshost","gim"),new RegExp("-shadowcsscontext","gim");var bi={childList:!0},gi={childList:!0,characterData:!0},_i={childList:!0},Ai=f({"style":"display: contents; background: inherit;","part":"c"}),wi=f({"name":"i-amphtml-svc"}),Pi=f({"i-amphtml-rendered":""}),ki=()=>!0,Si=t=>!!t.media,Mi=t=>!(!t.passthrough&&!t.passthroughNonEmpty),xi=class extends En{static R1(){return!0}static requiresShadowDom(){return this.usesShadowDom}static usesLoading(){return this.loadable}static prerenderAllowed(){return!this.usesLoading()}constructor(t){super(t),this.Ya=f({"loading":"auto","onReadyState":(t,n)=>{this.Ba(t,n)},"onPlayingState":t=>{this.Za(t)},"onLoading":()=>{this.handleOnLoading()},"onLoad":()=>{this.handleOnLoad()},"onError":()=>{this.handleOnError()}}),this.Ga={renderable:!1,playable:!0,loading:"auto",notify:()=>this.mutateElement((()=>{}))},this.Qa=!1,this.Xa=null,this.Ja=null,this.Ka=t=>{null!==t&&(this.Xa?this.tf(t):this.nf(t)),this.Ja=t,this.if()},this.ef=null,this.rf=null,this.sf=null,this.lf=!1,this.uf=null,this.cf=()=>{this.lf=!1,this.af()},this.hf=!1,this.ui=!1,this.observer=null,this.ff=new class{constructor(t){this.df=t,this.vf=!1,this.pf=!1,this.mf=this.mf.bind(this)}updatePlaying(t){t!==this.vf&&(this.vf=t,t?(this.pf=!1,function(t,n){!function(t,n,i){const e=t.ownerDocument.defaultView;if(!e)return;let r=Cn.get(t);if(r||(r=[],Cn.set(t,r),Vn(e).observe(t)),!r.some((t=>t.callback===i&&1===t.type))){r.push({type:1,callback:i});const n=On.get(t);n&&setTimeout((()=>zn(1,i,n)))}}(t,0,n)}(this.df,this.mf)):function(t,n){!function(t,n,i){const e=Cn.get(t);if(e&&(function(t,n){const e=[];let r=0;for(let n=0;n<t.length;n++){const s=t[n];(o=s).callback===i&&1===o.type?e.push(s):(r<n&&(t[r]=s),r++)}var o;r<t.length&&(t.length=r)}(e),0==e.length)){Cn.delete(t),On.delete(t);const n=t.ownerDocument.defaultView;n&&Vn(n).unobserve(t)}}(t,0,n)}(this.df,this.mf))}mf({blockSize:t,inlineSize:n}){const i=n>0&&t>0;if(i===this.pf)return;this.pf=i;const e=this.df;i||e.pause()}}(t),this.Ti=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.yf(t)));const n=t.props,e=li(n,ui)?bi:null,r=li(n,Mi)?gi:null,o=t.usesTemplate?_i:null;this.observer.observe(this.element,i(i(i({attributes:!0},e),r),o)),this.Ti=li(n,Si)?new class{constructor(t,n){this.Wt=t,this.o=n,this.Li={},this.Ui=null}start(){this.Ui=this.Li,this.Li={}}resolveMatchQuery(t){return"1"===this.$i(t,bn,"1")}resolveListQuery(t){return this.$i(t,gn,"")}complete(){for(const t in this.Ui)t in this.Li||_n(this.Ui[t],this.o,!1);this.Ui=null}dispose(){for(const t in this.Li)_n(this.Li[t],this.o,!1);this.Li={}}$i(t,n,i){if(!t.trim())return i;let e=this.Li[t];return e||(m(this.Ui),e=this.Ui[t]),e||(e=n(this.Wt,t),_n(e,this.o,!0)),this.Li[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.bf())):null;const s=t.staticProps,l=this.init();Object.assign(this.Ya,s,l),this.checkPropsPostMutations(),hn(this.element,[],(()=>()=>{this.ui=!1,this.sf&&Rt(null,this.sf)})),hn(this.element,[Hn,Un,Wn],((t,n,i)=>{this.Ga.renderable=t,this.Ga.playable=n,this.Ga.loading=i,this.ui=!0,this.bf()}));const u=t.useContexts;var c;return 0!=u.length&&hn(this.element,u,((...t)=>{this.rf=t,this.bf()})),this.uf=new N,this.bf(),t.loadable&&(null===(c=this.setReadyState)||void 0===c||c.call(this,"loading")),this.if(),this.uf.promise}ensureLoaded(){this.constructor.loadable&&(this.mutateProps(f({"loading":"eager"})),this.Qa=!0)}mountCallback(){pn(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.Qa=!1)}unmountCallback(){var t;pn(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.Za(!1),null===(t=this.Ti)||void 0===t||t.dispose()}mutatedAttributesCallback(){this.sf&&this.bf()}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.Ya,t),this.bf()}api(){return m(this.Ja)}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}yf(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){var e;const r=i[t];if(n.attributeName==r.attr||r.attrs&&r.attrs.includes(m(n.attributeName))||null!==(e=r.attrMatches)&&void 0!==e&&e.call(r,n.attributeName))return!0}return!1}return"childList"==i&&(Ii(n.addedNodes)||Ii(n.removedNodes))}(n,t)));i&&(this.checkPropsPostMutations(),this.bf())}bf(){this.lf||(this.lf=!0,this.mutateElement(this.cf))}if(){const{Ja:t}=this,n=null==t?void 0:t.readyState;n&&n!==this.element.readyState&&this.Ba(n)}Ba(t,n){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,t,n),this.constructor.unloadOnPause&&this.Za("complete"==t),this.Qa&&(this.Qa=!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)}af(){if(!this.ui)return;const t=this.constructor,n=t.usesShadowDom,e=n?null:t.lightDomTag,r=t.detached;if(!this.sf){const i=this.win.document;if(n){m(!r);let{shadowRoot:n}=this.element,e=n&&(v=n,g("c"),_(v,"> c"));if(e)this.hf=!0;else{var o,s,l,u,c,a;n=this.element.attachShadow({mode:"open",delegatesFocus:t.delegatesFocus});const r=t.shadowCss;r&&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,r),e=M(i,"c",Ai),n.appendChild(e);const h=M(i,"slot",wi);n.appendChild(h),null===(o=this.getPlaceholder)||void 0===o||null===(s=o.call(this))||void 0===s||s.setAttribute("slot","i-amphtml-svc"),null===(l=this.getFallback)||void 0===l||null===(u=l.call(this))||void 0===u||u.setAttribute("slot","i-amphtml-svc"),null===(c=this.getOverflowElement)||void 0===c||null===(a=c.call(this))||void 0===a||a.setAttribute("slot","i-amphtml-svc")}this.sf=e,function(t,n){rn.get(t).setParent(n)}(n,this.element),function(t,n,i,e=0){rn.get(t).addGroup(n,i,e)}(this.element,"unslotted",ki,-1),h=this.element,f=Hn,null===(d=rn.get(h).group("unslotted"))||void 0===d||d.values.set(f,this,!1)}else if(e){this.sf=this.element;const n=w(this.sf,"i-amphtml-rendered")||M(i,e,Pi);n.__AMP_RENDERED=!0,t.layoutSizeDefined&&n.classList.add("i-amphtml-fill-content"),this.sf.appendChild(n)}else{const t=i.createElement("i-amphtml-c");this.sf=t,t.classList.add("i-amphtml-fill-content"),r||this.element.appendChild(t)}}var h,f,d,v;const p=t.useContexts,y=this.rf;if(0!=p.length&&null==y)return;const b=ai(t,this.element,this.Ka,this.Ya,this.Ti);if(this.updatePropsForRendering(b),!this.isReady(b))return;let A=It(t.Component,b);for(let t=0;t<p.length;t++){const n=p[t].type,i=y[t];i&&(A=It(n.Provider,{value:i},A))}const P=It(Ln,i({},this.Ga),A);if(this.hf)this.hf=!1,ft(P,this.sf);else{const t=e?w(this.sf,"i-amphtml-rendered"):null;t&&(t.__AMP_RENDERED=!0),Rt(P,this.sf,t)}n||r||this.mutateElement((()=>x(this.element,"amp:dom-update",null))),this.uf&&(this.uf.resolve(),this.uf=null)}getProp(t,n){return i=this.Ya,e=t,c.call(i,e)?this.Ya[t]:n;var i,e}getApi(){const t=this.Xa;return t?Promise.resolve(t):(this.ef||(this.ef=new N),this.ef.promise)}nf(t){const n=h(),i=Object.keys(t);for(let t=0;t<i.length;t++)Ei(this,n,i[t]);this.Xa=n,this.ef&&(this.ef.resolve(n),this.ef=null)}tf(t){}triggerEvent(t,n,i){x(t,n,i)}pauseCallback(){if(this.constructor.unloadOnPause)this.mutateProps(f({"loading":"unload"})),this.Qa=!0;else{var t;const{Ja:n}=this;null==n||null===(t=n.pause)||void 0===t||t.call(n)}}Za(t){this.ff.updatePlaying(t)}};function Ei(t,n,i){Object.defineProperty(n,i,{configurable:!0,get:()=>t.Ja[i],set(n){t.Ja[i]=n}})}function Ii(t){for(let n=0;n<t.length;n++){const i=t[n];if(p(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}xi.Component=function(){m(!1)},xi.staticProps=void 0,xi.useContexts=[],xi.loadable=!1,xi.unloadOnPause=!1,xi.layoutSizeDefined=!1,xi.lightDomTag="",xi.usesTemplate=!1,xi.shadowCss=null,xi.usesShadowDom=!1,xi.detached=!1,xi.delegatesFocus=!1,xi.props={};var Ti,Ci=["ref"],Oi="undefined"!=typeof Symbol&&(null===(Ti=Symbol.for)||void 0===Ti?void 0:Ti.call(Symbol,"react.forward_ref"))||3911,Vi=R.__b;function ji(t){function n(n){const{ref:i}=n,e=Ri(n,Ci);return t(e,i)}return n.$$typeof=Oi,n.render=n,n.prototype.isReactComponent=!0,n.gf=!0,n}function zi(t){return(zi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $i(t){var n=function(t,n){if("object"!==zi(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var e=i.call(t,"string");if("object"!==zi(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===zi(n)?n:String(n)}R.__b=function(t){var n;null!==(n=t.type)&&void 0!==n&&n.gf&&t.ref&&(t.props.ref=t.ref,t.ref=null),null==Vi||Vi(t)};var Li=[null,"paint","layout","content","size","size paint","size layout","strict"],Ni={"position":"relative","width":"100%","height":"100%"};function Hi(t,n,i){t.classList.add("i-amphtml-animating");let e=n();return e.onfinish=e.oncancel=()=>{e=null,i&&i(),t.classList.remove("i-amphtml-animating")},()=>{e&&e.cancel()}}function Ui(t){const n=window.innerHeight,i=Math.abs(t)/n*500;return Math.min(Math.max(i,200),500)}ji((function(t,n){let e="class",{as:r="div",children:o,contentAs:s="div",contentClassName:l,contentProps:u,contentRef:c,contentStyle:a,layout:h=!1,paint:f=!1,size:d=!1,"style":v,wrapperClassName:p,wrapperStyle:m,[e]:y}=t;const b=(d?4:0)+(h?2:0)+(f?1:0);return It(r,i(i({},Ri(t,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",e].map($i))),{},{ref:n,class:`${y||""} ${p||""}`.trim()||null,style:i(i(i({},v),m),{},{contain:Li[b]})}),It(s,i(i({},u),{},{ref:c,class:l,style:i(i({},d&&Ni),{},{"overflow":f?"hidden":"visible"},a)}),o))})),ji((function(t,n){let e="class",{as:r="div",children:o,"style":s,wrapperClassName:l,wrapperStyle:u,[e]:c}=t;return It(r,i(i({},Ri(t,["as","children","style","wrapperClassName","wrapperStyle",e].map($i))),{},{ref:n,class:`${c||""} ${l||""}`.trim()||null,style:i(i({},s),u)}),o)}));var Wi=["animate","as","children","expandSingleSection","id"],qi=["animate","as","children","expanded","id","onExpandStateChange"],Di=Tt({}),Fi=Tt({}),Yi={},Bi={},Zi=Dn(),Gi=()=>String(Math.floor(1e5*Math.random())),Qi=ji((function(t,n){let{animate:e=!1,as:r="section",children:o,expandSingleSection:s=!1,id:l}=t,u=Ri(t,Wi);const[c,a]=Ct(Yi),h=Ot(Bi),[f]=Ct(Gi),v=l||`a${f}`;Vt((()=>{s&&a((t=>{const n={};let i=0;for(const e in t)n[e]=t[e]&&0==i++;return n}))}),[s]);const p=Lt(((t,n,{current:e})=>(a((i=>Xi(t,n,i,s))),h.current=i(i({},h.current),{},{[t]:e}),()=>{a((n=>d(n,t))),h.current=d(h.current,t)})),[s]),m=Lt(((t,n)=>{a((i=>{const e=null!=n?n:!i[t],r=Xi(t,e,i,s);return E().then((()=>{for(const t in i){const n=h.current[t];n&&i[t]!=r[t]&&n(r[t])}})),r}))}),[s]),y=Lt(((t,n)=>{var i;return null!==(i=c[t])&&void 0!==i?i:n}),[c]),b=Lt((t=>{if(t)t in c&&m(t);else if(!s)for(const t in c)m(t)}),[c,m,s]),g=Lt((t=>{if(t)y(t,!0)||m(t);else if(!s)for(const t in c)y(t,!0)||m(t)}),[c,m,y,s]),_=Lt((t=>{if(t)y(t,!1)&&m(t);else for(const t in c)y(t,!1)&&m(t)}),[c,m,y]);Nt(n,(()=>({toggle:b,expand:g,collapse:_})),[b,_,g]);const A=$t((()=>({registerSection:p,toggleExpanded:m,isExpanded:y,animate:e,prefix:v})),[p,m,y,e,v]);return It(r,i({id:l},u),It(Di.Provider,{value:A},o))}));function Xi(t,n,e,r){let o;if(r&&n){o={[t]:n};for(const n in e)n!=t&&(o[n]=!1)}else o=i(i({},e),{},{[t]:n});return o}function Ji(t){let{animate:n=!1,as:e="section",children:r,expanded:o=!1,id:s,onExpandStateChange:l}=t,u=Ri(t,qi);const[c]=Ct(Zi),a=s||c,[h]=Ct(Gi),[f,d]=Ct(o),[v,p]=Ct(null),[m,y]=Ct(null),{animate:b,isExpanded:g,prefix:_,registerSection:A,toggleExpanded:w}=zt(Di),P=g?g(a,o):f,k=null!=b?b:n,S=v||`${_||"a"}-content-${a}-${h}`,M=m||`${_||"a"}-header-${a}-${h}`,x=Ot(null);x.current=l,jt((()=>{if(A)return A(a,o,x)}),[A,a,o]);const I=Lt((t=>{w?w(a,t):d((n=>{const i=null!=t?t:!n;return E().then((()=>{const t=x.current;t&&t(i)})),i}))}),[a,w]),R=$t((()=>({animate:k,contentId:S,headerId:M,expanded:P,toggleHandler:I,setContentId:p,setHeaderId:y})),[k,S,M,P,I]);return It(e,i({},u),It(Fi.Provider,{value:R},r))}function Ki(t){let n="class",e="tabIndex",{as:r="div",children:o,id:s,role:l="button",[n]:u="",[e]:c=0}=t,a=Ri(t,["as","children","id","role",n,e].map($i));const{contentId:h,expanded:f,headerId:d,setHeaderId:v,toggleHandler:p}=zt(Fi);return jt((()=>{v&&v(s)}),[v,s]),It(r,i(i({},a),{},{id:d,role:l,class:`${u} section-child-00fce3c header-00fce3c`,tabIndex:c,"aria-controls":h,onClick:()=>p(),"aria-expanded":String(f)}),o)}function te(t){let n="class",{as:e="div",children:r,id:o,role:s="region",[n]:l=""}=t,u=Ri(t,["as","children","id","role",n].map($i));const c=Ot(null),a=Ot(!1),{animate:h,contentId:f,expanded:d,headerId:v,setContentId:p}=zt(Fi);return Vt((()=>(a.current=!0,()=>a.current=!1)),[]),jt((()=>{p&&p(o)}),[p,o]),jt((()=>{const t=a.current,n=c.current;if(h&&t&&n&&n.animate)return d?function(t){return Hi(t,(()=>{const n=Sn(t,"height"),i=Sn(t,"opacity"),e=Sn(t,"overflowY");Mn(t,{height:0,opacity:0,overflowY:"auto"});const r=t.scrollHeight;Mn(t,{height:n,opacity:i,overflowY:e});const o=Ui(r);return t.animate([{height:0,opacity:0,overflowY:"hidden"},{height:r+"px",opacity:1,overflowY:"hidden"}],{easing:"cubic-bezier(0.47, 0, 0.745, 0.715)",duration:o})}))}(n):function(t){return Hi(t,(()=>{const n=t.offsetHeight,i=Ui(n);return t.animate([{height:n+"px",opacity:1,overflowY:"hidden"},{height:"0",opacity:0,overflowY:"hidden"}],{easing:"cubic-bezier(0.39, 0.575, 0.565, 1)",duration:i})}))}(n)}),[d,h]),It(Ln,{renderable:d},It(e,i(i({},u),{},{ref:c,class:l+" section-child-00fce3c"+(d?"":" content-hidden-00fce3c"),id:f,"aria-labelledby":v,role:s}),r))}Qi.displayName="Accordion";var ne=class extends xi{init(){const t=t=>n=>{var i;!function(t,n,i){const e=t.hasAttribute(n),r=void 0!==i?i:!e;r!==e&&(r?t.setAttribute(n,""):t.removeAttribute(n))}(t,"expanded",n),null===(i=t.__AMP_PR)||void 0===i||i.call(t),this.triggerEvent(t,n?"expand":"collapse")},{element:n}=this,i=new MutationObserver((()=>{this.mutateProps(ie(n,i,t))}));i.observe(n,{attributeFilter:["expanded","id"],subtree:!0,childList:!0});const{"children":e}=ie(n,i,t);return f({"children":e})}};function ie(t,n,e){var r;const o=(s=t,l="section",g(l),"> section",(r=s.querySelectorAll(b("> section",":scope")))?Array.prototype.slice.call(r):[]).map((t=>{t.__AMP_PR||(t.__AMP_PR=()=>n.takeRecords());const r=v(t,"__AMP_H_SHIM",re),o=v(t,"__AMP_C_SHIM",se),s=v(t,"__AMP_EXPAND_STATE_SHIM",e),l=f({"key":t,"expanded":t.hasAttribute("expanded"),"id":t.getAttribute("id"),"onExpandStateChange":s}),u=f({"as":r,"id":t.firstElementChild.getAttribute("id"),"role":t.firstElementChild.getAttribute("role")||void 0}),c=f({"as":o,"id":t.lastElementChild.getAttribute("id"),"role":t.lastElementChild.getAttribute("role")||void 0});return It(Ji,i({},l),It(Ki,i({},u)),It(te,i({},c)))}));var s,l;return f({"children":o})}function ee(t,{"aria-controls":n,"aria-expanded":i,id:e,onClick:r,role:o}){const s=t.firstElementChild;return jt((()=>{if(s&&r)return s.setAttribute("id",e),s.classList.add("i-amphtml-accordion-header"),s.addEventListener("click",r),s.hasAttribute("tabindex")||s.setAttribute("tabindex",0),s.setAttribute("aria-expanded",i),s.setAttribute("aria-controls",n),s.setAttribute("role",o),t.__AMP_PR&&t.__AMP_PR(),()=>{s.removeEventListener("click",m(r))}}),[t,s,e,o,r,n,i]),It("header",null)}var re=t=>ee.bind(null,t);function oe(t,{"aria-labelledby":n,id:i,role:e},r){const o=t.lastElementChild,s=Ot();return s.current=o,ei(s),function(t,n){Nt(t,(()=>n),[n])}(r,o),jt((()=>{o&&(o.classList.add("i-amphtml-accordion-content"),o.setAttribute("id",i),o.setAttribute("role",e),o.setAttribute("aria-labelledby",n),t.__AMP_PR&&t.__AMP_PR())}),[t,o,i,e,n]),It("div",null)}var se=t=>ji(oe.bind(null,t));function le(){customElements.define("bento-accordion",ne.CustomElement(ne))}ne.Component=Qi,ne.detached=!0,ne.props={"animate":{attr:"animate",type:"boolean",media:!0},"expandSingleSection":{attr:"expand-single-section",type:"boolean"}};export{le as defineElement};
function t(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function n(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 i(i){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(n){t(i,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))}))}return i}var{isArray:e}=Array;function r(t){return e(t)?t:[t]}function o(t,n){return t.indexOf(n)<0&&(t.push(n),!0)}function s(t,n){const i=t.indexOf(n);return-1!=i&&(t.splice(i,1),!0)}function l(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 u(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 l(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)?l(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 h(t){const n=Object.create(null);return t&&Object.assign(n,t),n}function f(t){return t||{}}function d(t,n){return Object.keys(t).reduce(((i,e)=>(n.includes(e)||(i[e]=t[e]),i)),{})}function p(t,n,i){let e=t[n];return void 0===e&&(e=i(t,n),t[n]=e),e}function v(t){return 1==(null==t?void 0:t.nodeType)}function m(t,n,i,e,r,o,s,l,u,c,a){return t}function y(t){return(t.ownerDocument||t).defaultView}function b(t,n){return t.replace(/^|,/g,`$&${n} `)}function g(t){m(/^[\w-]+$/.test(t))}function _(t,n){return t.querySelector(b(n,":scope"))}function A(t,n){const i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!i&&i.call(t,n)}function w(t,n){return g(n),_(t,`> [${n}]`)}function P(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:v(t)&&(n=t.tagName),!!n&&n.toLowerCase().startsWith("i-")}(e=n)||e.nodeType===Node.ELEMENT_NODE&&(e.hasAttribute("placeholder")||e.hasAttribute("fallback")||e.hasAttribute("overflow")))&&i.push(n);var e;return i}(t)}var k,S={bubbles:!0,cancelable:!0};function M(t,n,i){return function(t,n){for(const i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}function x(t,n,i,e){const r=i||{};m(t.ownerDocument);const o=t.ownerDocument.createEvent("Event");o.data=r;const{bubbles:s,cancelable:l}=e||S;o.initEvent(n,s,l),t.dispatchEvent(o)}function E(){return k||(k=Promise.resolve(void 0))}var I,R,T,C,O,V,j,z,$,L,N=class{constructor(){this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n}))}},H={},U=[],W=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function q(t,n){for(var i in n)t[i]=n[i];return t}function D(t){var n=t.parentNode;n&&n.removeChild(t)}function F(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?I.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 Y(t,s,e,r,null)}function Y(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?++T:r};return null==r&&null!=R.vnode&&R.vnode(o),o}function B(t){return t.children}function Z(t,n){this.props=t,this.context=n}function G(t,n){if(null==n)return t.__?G(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?G(t):null}function Q(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 Q(t)}}function X(t){(!t.__d&&(t.__d=!0)&&C.push(t)&&!J.__r++||V!==R.debounceRendering)&&((V=R.debounceRendering)||O)(J)}function J(){for(var t;J.__r=C.length;)t=C.sort((function(t,n){return t.__v.__b-n.__v.__b})),C=[],t.some((function(t){var n,i,e,r,o,s;t.__d&&(o=(r=(n=t).__v).__e,(s=n.__P)&&(i=[],(e=q({},r)).__v=r.__v+1,st(s,r,e,n.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,i,null==o?G(r):o,r.__h),lt(i,r),r.__e!=o&&Q(r)))}))}function K(t,n,i,e,r,o,s,l,u,c){var a,h,f,d,p,v,m,y=e&&e.__k||U,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?Y(null,d,null,null,d):Array.isArray(d)?Y(B,{children:d},null,null,null):d.__b>0?Y(d.type,d.props,d.key,null,d.__v):d)){if(d.__=i,d.__b=i.__b+1,null===(f=y[a])||f&&d.key==f.key&&d.type===f.type)y[a]=void 0;else for(h=0;h<b;h++){if((f=y[h])&&d.key==f.key&&d.type===f.type){y[h]=void 0;break}f=null}st(t,d,f=f||H,r,o,s,l,u,c),p=d.__e,(h=d.ref)&&f.ref!=h&&(m||(m=[]),f.ref&&m.push(f.ref,null,d),m.push(h,d.__c||p,d)),null!=p?(null==v&&(v=p),"function"==typeof d.type&&d.__k===f.__k?d.__d=u=tt(d,u,t):u=nt(t,d,f,y,p,u),"function"==typeof i.type&&(i.__d=u)):u&&f.__e==u&&u.parentNode!=t&&(u=G(f))}for(i.__e=v,a=b;a--;)null!=y[a]&&("function"==typeof i.type&&null!=y[a].__e&&y[a].__e==i.__d&&(i.__d=G(e,a+1)),ct(y[a],y[a]));if(m)for(a=0;a<m.length;a++)ut(m[a],m[++a],m[++a])}function tt(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?tt(e,n,i):nt(i,e,e,r,e.__e,n));return n}function nt(t,n,i,e,r,o){var s,l,u;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(l=o,u=0;(l=l.nextSibling)&&u<e.length;u+=2)if(l==r)break t;t.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function it(t,n,i){"-"===n[0]?t.setProperty(n,i):t[n]=null==i?"":"number"!=typeof i||W.test(n)?i:i+"px"}function et(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||it(t.style,n,"");if(i)for(n in i)e&&i[n]===e[n]||it(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?ot:rt,o):t.removeEventListener(n,o?ot:rt,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 rt(t){this.l[t.type+!1](R.event?R.event(t):t)}function ot(t){this.l[t.type+!0](R.event?R.event(t):t)}function st(t,n,i,e,r,o,s,l,u){var c,a,h,f,d,p,v,m,y,b,g,_=n.type;if(void 0!==n.constructor)return null;null!=i.__h&&(u=i.__h,l=n.__e=i.__e,n.__h=null,o=[l]),(c=R.__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?v=(a=n.__c=i.__c).__=a.__E:("prototype"in _&&_.prototype.render?n.__c=a=new _(m,b):(n.__c=a=new Z(m,b),a.constructor=_,a.render=at),y&&y.sub(a),a.props=m,a.state||(a.state={}),a.context=b,a.__n=e,h=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=_.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=q({},a.__s)),q(a.__s,_.getDerivedStateFromProps(m,a.__s))),f=a.props,d=a.state,h)null==_.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==_.getDerivedStateFromProps&&m!==f&&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(f,d,p)}))}a.context=b,a.props=m,a.state=a.__s,(c=R.__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=q(q({},e),a.getChildContext())),h||null==a.getSnapshotBeforeUpdate||(p=a.getSnapshotBeforeUpdate(f,d)),g=null!=c&&c.type===B&&null==c.key?c.props.children:c,K(t,Array.isArray(g)?g:[g],n,i,e,r,o,s,l,u),a.base=n.__e,n.__h=null,a.__h.length&&s.push(a),v&&(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,l){var u,c,a,h=i.props,f=n.props,d=n.type,p=0;if("svg"===d&&(r=!0),null!=o)for(;p<o.length;p++)if((u=o[p])&&(u===t||(d?u.localName==d:3==u.nodeType))){t=u,o[p]=null;break}if(null==t){if(null===d)return document.createTextNode(f);t=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),o=null,l=!1}if(null===d)h===f||l&&t.data===f||(t.data=f);else{if(o=o&&I.call(t.childNodes),c=(h=i.props||H).dangerouslySetInnerHTML,a=f.dangerouslySetInnerHTML,!l){if(null!=o)for(h={},p=0;p<t.attributes.length;p++)h[t.attributes[p].name]=t.attributes[p].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||et(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]||et(t,o,n[o],i[o],e)}(t,f,h,r,l),a)n.__k=[];else if(p=n.props.children,K(t,Array.isArray(p)?p:[p],n,i,e,r&&"foreignObject"!==d,o,s,o?o[0]:i.__k&&G(i,0),l),null!=o)for(p=o.length;p--;)null!=o[p]&&D(o[p]);l||("value"in f&&void 0!==(p=f.value)&&(p!==t.value||"progress"===d&&!p)&&et(t,"value",p,h.value,!1),"checked"in f&&void 0!==(p=f.checked)&&p!==t.checked&&et(t,"checked",p,h.checked,!1))}return t}(i.__e,n,i,e,r,o,s,u);(c=R.diffed)&&c(n)}catch(t){n.__v=null,(u||null!=o)&&(n.__e=l,n.__h=!!u,o[o.indexOf(l)]=null),R.__e(t,n,i)}}function lt(t,n){R.__c&&R.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){R.__e(t,n.__v)}}))}function ut(t,n,i){try{"function"==typeof t?t(n):t.current=n}catch(t){R.__e(t,i)}}function ct(t,n,i){var e,r;if(R.unmount&&R.unmount(t),(e=t.ref)&&(e.current&&e.current!==t.__e||ut(e,null,n)),null!=(e=t.__c)){if(e.componentWillUnmount)try{e.componentWillUnmount()}catch(t){R.__e(t,n)}e.base=e.__P=null}if(e=t.__k)for(r=0;r<e.length;r++)e[r]&&ct(e[r],n,"function"!=typeof t.type);i||null==t.__e||D(t.__e),t.__e=t.__d=void 0}function at(t,n,i){return this.constructor(t,i)}function ht(t,n,i){var e,r,o;R.__&&R.__(t,n),r=(e="function"==typeof i)?null:i&&i.__k||n.__k,o=[],st(n,t=(!e&&i||n).__k=F(B,null,[t]),r||H,H,void 0!==n.ownerSVGElement,!e&&i?[i]:r?null:n.firstChild?I.call(n.childNodes):null,o,!e&&i?i:r?r.__e:n.firstChild,e),lt(o,t)}function ft(t,n){ht(t,n,ft)}function dt(t,n){var i={__c:n="__cC"+j++,__:t,Consumer:function(t,n){return t.children(n)},Provider:function(t){var i,e;return this.getChildContext||(i=[],(e={})[n]=this,this.getChildContext=function(){return e},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&i.some(X)},this.sub=function(t){i.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){i.splice(i.indexOf(t),1),n&&n.call(t)}}),t.children}};return i.Provider.__=i.Consumer.contextType=i}I=U.slice,R={__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}},T=0,Z.prototype.setState=function(t,n){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=q({},this.state),"function"==typeof t&&(t=t(q({},i),this.props)),t&&q(i,t),null!=t&&this.__v&&(n&&this.__h.push(n),X(this))},Z.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),X(this))},Z.prototype.render=B,C=[],O="function"==typeof Promise?Promise.prototype.then.bind(E()):setTimeout,J.__r=0,j=0;var pt=0,vt=[],mt=R.__b,yt=R.__r,bt=R.diffed,gt=R.__c,_t=R.unmount;function At(t,n){R.__h&&R.__h($,t,pt||n),pt=0;var i=$.__H||($.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function wt(t){return pt=1,function(t,n,i){var e=At(z++,2);return e.t=t,e.__c||(e.__=[jt(void 0,n),function(t){var n=e.t(e.__[0],t);e.__[0]!==n&&(e.__=[n,e.__[1]],e.__c.setState({}))}],e.__c=$),e.__}(jt,t)}function Pt(t,n){var i=At(z++,3);!R.__s&&Vt(i.__H,n)&&(i.__=t,i.__H=n,$.__H.__h.push(i))}function kt(t,n){var i=At(z++,4);!R.__s&&Vt(i.__H,n)&&(i.__=t,i.__H=n,$.__h.push(i))}function St(t){return pt=5,xt((function(){return{current:t}}),[])}function Mt(t,n,i){pt=6,kt((function(){"function"==typeof t?t(n()):t&&(t.current=n())}),null==i?i:i.concat(t))}function xt(t,n){var i=At(z++,7);return Vt(i.__H,n)&&(i.__=t(),i.__H=n,i.__h=t),i.__}function Et(t,n){return pt=8,xt((function(){return t}),n)}function It(t){var n=$.context[t.__c],i=At(z++,9);return i.c=t,n?(null==i.__&&(i.__=!0,n.sub($)),n.props.value):t.__}function Rt(){vt.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(Ct),t.__H.__h.forEach(Ot),t.__H.__h=[]}catch(n){t.__H.__h=[],R.__e(n,t.__v)}})),vt=[]}R.__b=function(t){$=null,mt&&mt(t)},R.__r=function(t){yt&&yt(t),z=0;var n=($=t.__c).__H;n&&(n.__h.forEach(Ct),n.__h.forEach(Ot),n.__h=[])},R.diffed=function(t){bt&&bt(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==vt.push(n)&&L===R.requestAnimationFrame||((L=R.requestAnimationFrame)||function(t){var n,i=function(){clearTimeout(e),Tt&&cancelAnimationFrame(n),setTimeout(t)},e=setTimeout(i,100);Tt&&(n=requestAnimationFrame(i))})(Rt)),$=null},R.__c=function(t,n){n.some((function(t){try{t.__h.forEach(Ct),t.__h=t.__h.filter((function(t){return!t.__||Ot(t)}))}catch(i){n.some((function(t){t.__h&&(t.__h=[])})),n=[],R.__e(i,t.__v)}})),gt&&gt(t,n)},R.unmount=function(t){_t&&_t(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach(Ct)}catch(t){R.__e(t,n.__v)}};var Tt="function"==typeof requestAnimationFrame;function Ct(t){var n=$;"function"==typeof t.__c&&t.__c(),$=n}function Ot(t){var n=$;t.__c=t.__(),$=n}function Vt(t,n){return!t||t.length!==n.length||n.some((function(n,i){return n!==t[i]}))}function jt(t,n){return"function"==typeof n?n(t):n}var zt=["auto","lazy","eager","unload"],$t={auto:0,lazy:1,eager:2,unload:3};function Lt(t,n){const i=$t[t]||0,e=$t[n]||0,r=Math.max(i,e);return zt[r]}function Nt(t,n){let i=!1;const e=()=>{i=!1,t()};return t=>{i||(i=!0,(t||n)(e))}}function Ht(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 Ut(t){let n=null,i="";for(var e,r=u(arguments,!0);!(e=r()).done;){const t=e.value;t instanceof Error&&!n?n=Ht(t):(i&&(i+=" "),i+=t)}return n?i&&(n.message=i+": "+n.message):n=new Error(i),n}function Wt(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function qt(t){const n=Ut.apply(null,arguments);setTimeout((()=>{throw Wt(n),n}))}function Dt(t,...n){try{return t.apply(null,n)}catch(t){qt(t)}}function Ft(t,n,i,e=!0,r=!0){if(r){const r=n(t,i,e);r&&Ft(t,n,i,r,!1)}else if(t.children)for(var o,s=u(t.children,!0);!(o=s()).done;)Ft(o.value,n,i,e,!0)}var Yt=[],Bt=()=>{};function Zt(t,n){return t.values.scan(n)}function Gt(t,n,i){return t.values.scanAll(i)}function Qt(t,n){return t.values.has(n)}function Xt(t){return!!t.recursive}function Jt(t){return void 0!==t}var Kt=class{static get(t){let n=t.__AMP_NODE;return n||(n=new Kt(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||v(i)&&i.tagName.startsWith("AMP-"))return Kt.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,tn(t))}static unassignSlot(t,n){t.__AMP_ASSIGNED_SLOT==n&&(t.__AMP_ASSIGNED_SLOT=void 0,tn(t))}static rediscoverChildren(t){var n;const i=t.__AMP_NODE;null==i||null===(n=i.children)||void 0===n||n.forEach(nn)}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.Ze=t,this.v=null,this.m=null,this.el=Nt(this.el.bind(this),setTimeout)}set(t,n,i){m(n),m(void 0!==i);const{key:e}=t,r=this.v||(this.v=new Map);let o=r.get(e);o||(o={values:[],setters:[]},r.set(e,o));const s=o.setters.indexOf(n),l=-1==s||o.values[s]!==i;-1==s?(o.setters.push(n),o.values.push(i)):l&&(o.values[s]=i),l&&(this.ping(t,!1),Xt(t)&&Ft(this.Ze,Zt,t,!0,!1))}remove(t,n){m(n);const{key:i}=t,e=this.v,r=null==e?void 0:e.get(i);if(r){m(e);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),Ft(this.Ze,Zt,t))}}has(t){var n;return!(null===(n=this.v)||void 0===n||!n.has(t.key))}subscribe(t,n){const i=this.ka(t);if(!o(i.subscribers,n))return;const e=i.value;Jt(e)&&this.hi()&&n(e)}unsubscribe(t,n){var i;const e=null===(i=this.m)||void 0===i?void 0:i.get(t.key);e&&s(e.subscribers,n)&&this.Sa(e)}ping(t,n){var i,e;null===(i=this.m)||void 0===i||null===(e=i.get(t.key))||void 0===e||e.ping(n)}parentUpdated(){this.hi()&&Ft(this.Ze,Gt,void 0,Yt)}rootUpdated(){const t=this.m;t&&(this.hi()?t.forEach((t=>{const{prop:n}=t;this.ping(n,!0)})):t.forEach((t=>{const{prop:n}=t;Xt(n)&&this.Ia(t,null)})))}scan(t){return this.ping(t,!0),!!Xt(t)&&!this.has(t)}scanAll(t){let n=null;const i=this.m;return i&&i.forEach((i=>{const{prop:e}=i,{key:r}=e;-1==(n||t).indexOf(r)&&(this.ping(e,!0),this.Ze.children&&this.has(e)&&(n||(n=t.slice(0)),n.push(r)))})),n||t}hi(){return!!this.Ze.root}ka(t){const{deps:n,key:i}=t,e=this.m||(this.m=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(Bt):Yt,parentValue:void 0,parentContextNode:null,ping:t=>{if(this.hi()){const n=t?2:1;r.pending=Math.max(r.pending,n),this.el()}},pingDep:n.length>0?n.map(((t,n)=>t=>{r.depValues[n]=t,r.ping()})):Yt,pingParent:Xt(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}Sa(t){var n;if(t.subscribers.length>0)return;const{pingDep:i,prop:e}=t,{deps:r,key:o}=e;null===(n=this.m)||void 0===n||n.delete(o),this.Ia(t,null),r.length>0&&r.forEach(((t,n)=>{this.unsubscribe(t,i[n])}))}el(){if(!this.hi())return;const t=this.m;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 qt(`cyclical prop: ${i}`),void(t.pending=0);n++,this.Ra(t)}}))}while(n>0)}Ra(t){const n=2==t.pending;let i;try{i=this.Ca(t,n)}catch(t){qt(t)}t.pending=0,this.Oa(t,i)}Oa(t,n){const{prop:i,value:e}=t,{key:r}=i,o=this.m;if(e===n||t!==(null==o?void 0:o.get(r))||!this.hi())return;t.value=n;const{subscribers:s}=t;for(var l,c=u(s,!0);!(l=c()).done;)(0,l.value)(n)}Ca(t,n){var i,e;m(this.hi());const{depValues:r,prop:o}=t,{compute:s,defaultValue:l,key:u}=o,c=null===(i=this.v)||void 0===i||null===(e=i.get(u))||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.Ze,Qt,o,!1):null;this.Ia(t,n)}const h=Jt(t.parentValue)?t.parentValue:a&&!t.parentContextNode?l:void 0;let f;if(r.every(Jt)&&(!a||Jt(h))){const{node:t}=this.Ze;c&&!s?f=c[0]:Xt(o)?c||r.length>0?f=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||Yt,h,r):Jt(h)&&(f=h):s&&(f=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||Yt,r))}return f}Ia(t,n){const{parentContextNode:i,pingParent:e,prop:r}=t;n!=i&&(t.parentContextNode=n,t.parentValue=void 0,m(e),i&&i.values.unsubscribe(r,e),n&&(m(e),n.values.subscribe(r,e)))}}(this),this.Va=null,this.ja=!1,this.za=Nt(this.$a.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(t=>{var n,i;const e=t.target;e.assignedNodes().forEach(tn),null===(n=Kt.closest(e))||void 0===n||null===(i=n.children)||void 0===i||i.forEach(nn)})),this.discover()}discover(){this.isDiscoverable()?this.za():this.name&&this.children&&this.children.forEach(nn)}isDiscoverable(){return!this.isRoot&&!this.ja}setParent(t){const n=null!=t&&t.nodeType?Kt.get(t):t;this.La(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){m(!t||t.isRoot);const n=this.root;var i,e;t!=n&&(this.root=t,this.values.rootUpdated(),null===(i=this.Va)||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 Kt(o,t);return e.set(t,{cn:s,match:n,weight:i}),s.setParent(this),null==r||r.forEach(nn),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.Va||(this.Va=new Map);let o=r.get(t);o||(o=new n(this,i,e),r.set(t,o))}unsubscribe(t){const n=this.Va,i=null==n?void 0:n.get(t);i&&(i.dispose(),m(n),n.delete(t))}$a(){if(!this.isDiscoverable())return;const t=Kt.closest(this.node,!1),n=(null==t?void 0:t.findGroup(this.node))||t;this.La(n,!1)}La(t,n){var i;this.ja=n;const e=this.parent;if(t!=e){if(this.parent=t,null!=e&&e.children&&(m(e.children),s(e.children,this)),t){const n=t.children||(t.children=[]);o(n,this);for(var r,l=u(n,!0);!(r=l()).done;){const t=r.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 tn(t){!function(t,n,i=!0){const e=Kt.closest(t,i);if(e)if(e.node==t)n(e);else if(e.children)for(var r,o=u(e.children,!0);!(r=o()).done;){const i=r.value;t.contains(i.node)&&n(i)}}(t,nn)}function nn(t){t.discover()}var en=[];function rn(t,n){const e=i({key:t,deps:en,recursive:!1},n);return m(0==e.deps.length||e.compute),e}var on=[],sn=()=>{};function ln(t,n,i){n=r(n);const e=i;Kt.get(t).subscribe(e,cn,i,n)}var un,cn=class{constructor(t,n,i){if(this.contextNode=t,this.Na=n,this.Ha=i,this.Ua=i.length>0?i.map(sn):on,this.Wa=i.length>0?i.map(((t,n)=>t=>{this.Ua[n]=t,this.qa()})):on,this._s=!1,this.Da=null,this.qa=Nt(this.qa.bind(this),setTimeout),i.length>0){const{values:t}=this.contextNode;i.forEach(((n,i)=>t.subscribe(n,this.Wa[i])))}this.hi()&&this.qa()}dispose(){if(this.Ha.length>0){const{values:t}=this.contextNode;this.Ha.forEach(((n,i)=>t.unsubscribe(n,this.Wa[i])))}this.de()}rootUpdated(){const t=this.hi();this.de(),t&&this.qa()}hi(){return!!this.contextNode.root}qa(){this.hi()&&(this.Ua.every(an)?(this._s=!0,this.Fa()):this._s&&(this._s=!1,this.de()))}Fa(){this.de();const t=this.Na;this.Da=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.Ua)}de(){this.Da&&(Dt(this.Da),this.Da=null)}};function an(t){return void 0!==t}function hn(t){Kt.get(t).discover()}function fn(t,n,i,e){Kt.get(t).values.set(n,i,e)}function dn(t,n,i){Kt.get(t).values.remove(n,i)}function pn(t,n){return[{query:t.matchMedia(n),value:"1"},{query:null,value:""}]}function vn(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 mn(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 yn=["Webkit","webkit","Moz","moz","ms","O","o"],bn={"getPropertyPriority":()=>"","getPropertyValue":()=>""};function gn(t,n,i){if(Pn(n))return n;un||(un=h());let e=un[n];if(!e||i){if(e=n,void 0===t[n]){const i=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(n),r=function(t,n){for(let i=0;i<yn.length;i++){const e=yn[i]+n;if(void 0!==t[e])return e}return""}(t,i);void 0!==t[r]&&(e=r)}i||(un[n]=e)}return e}function _n(t,n,i,e,r){const o=gn(t.style,n,r);if(!o)return;const s=e?i+e:i;Pn(o)?t.style.setProperty(o,s):t.style[o]=s}function An(t,n,i){const e=gn(t.style,n,i);if(e)return Pn(e)?t.style.getPropertyValue(e):t.style[e]}function wn(t,n){for(const i in n)_n(t,i,n[i])}function Pn(t){return t.startsWith("--")}var kn,Sn,Mn=/vertical/,xn=new WeakMap,En=new WeakMap,In=new WeakMap;function Rn(t){let n=xn.get(t);return n||(n=new t.ResizeObserver(Tn),xn.set(t,n)),n}function Tn(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=En.get(r);if(o){In.set(r,e);for(let t=0;t<o.length;t++){const{callback:n,type:i}=o[t];Cn(i,n,e)}}}}function Cn(t,n,i){if(0==t){const{contentRect:t}=i,{height:e,width:r}=t;Dt(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=y(t),r=Mn.test(function(t,n){return t.getComputedStyle(n)||bn}(n,t).writingMode),{offsetHeight:o,offsetWidth:s}=t;let l,u;r?(u=s,l=o):(l=s,u=o),e={inlineSize:l,blockSize:u}}Dt(n,e)}}if("undefined"!=typeof AMP&&AMP.BaseElement)kn=AMP.BaseElement;else{let t;class n{constructor(t){this.element=t,this.win=y(t)}static"CustomElement"(n){return t||(t=HTMLElement),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){E().then(t)}isLayoutSupported(){return!0}mountCallback(){}unmountCallback(){}buildCallback(){}}kn=n}function On(){return Sn||(Sn=dt({renderable:!0,playable:!0,loading:"auto"}))}function Vn({children:t,loading:n="auto",notify:i,playable:e=!0,renderable:r=!0}){const o=jn(),s=r&&o.renderable,l=s&&e&&o.playable,u=Lt(s?"auto":"lazy",Lt(n,o.loading)),c=i||o.notify,a=xt((()=>({renderable:s,playable:l,loading:u,notify:c})),[s,l,u,c]);return F(On().Provider,{children:t,value:a})}function jn(){return It(On())}var zn=rn("CanRender",{defaultValue:!0,recursive:t=>t.reduce(Nn),compute:(t,n,i)=>i&&n.reduce(Nn,!0)||!1}),$n=rn("CanPlay",{defaultValue:!0,recursive:t=>t.reduce(Nn),deps:[zn],compute:(t,n,i,e)=>e&&i&&n.reduce(Nn,!0)||!1}),Ln=rn("Loading",{defaultValue:"auto",recursive:!0,deps:[zn],compute:(t,n,i,e)=>Lt(e?"auto":"lazy",Lt(i||"auto",n.reduce(Lt,"auto")))}),Nn=(t,n)=>t&&n;function Hn(){let t=0;return()=>String(++t)}var Un=t=>t.ensureLoaded(),Wn=t=>t.pause(),qn=t=>t.unmount();function Dn(t,n=!0){Bn(t,n,!1,Un)}function Fn(t,n=!0){Bn(t,n,!0,Wn)}function Yn(t,n=!0){Bn(t,n,!0,qn)}function Bn(t,n,i,e){const o=r(t);for(let t=0;t<o.length;t++)Zn(o[t],n,i,e)}function Zn(t,n,i,e){if(n&&t.classList.contains("i-amphtml-element")){const n=t;if(Dt(e,n),!i){const t=n.getPlaceholder();return void(t&&Zn(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)Dt(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),Dt(e,n))}}}var Gn={},Qn=new WeakMap;function Xn(t,n,e,r=!1){if(t.setAttribute("slot",n),!r)return F(Jn,i(i({},e||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,e))return o.component;function s(t){return F(Jn,i(i({},e||Gn),{},{name:n},t))}return Qn.set(t,{oldProps:e,component:s}),s}function Jn(t){const n=St(null);return Kn(n,t),Pt((()=>{t.postRender&&t.postRender()})),F("slot",i(i({},t),{},{ref:n}))}function Kn(t,n){const{"loading":i}=n||Gn,e=jn();kt((()=>{const n=t.current;return m(v(n)),fn(n,zn,Jn,e.renderable),fn(n,$n,Jn,e.playable),fn(n,Ln,Jn,e.loading),e.playable||ti(n,Fn,!0),()=>{var t;dn(n,zn,Jn),dn(n,$n,Jn),dn(n,Ln,Jn),t=n,Kt.rediscoverChildren(t)}}),[t,e]),kt((()=>{const n=t.current;return m(v(n)),"lazy"!=i&&ti(n,Dn,!0),()=>{ti(n,Yn,!1)}}),[t,i])}function ti(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 ni={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},ii=Hn();function ei(t,n){return Object.values(t).some(n)}var ri=t=>"string"==typeof t||!!t.selector,oi=t=>3===t.nodeType&&0===t.nodeValue.trim().length;function si(t,n,e,r,o){const{"layoutSizeDefined":s,"lightDomTag":l,"props":u}=t;o&&o.start();const c=i(i({},r),{},{ref:e});return l&&(c["i-amphtml-rendered"]=!0,c.__AMP_RENDERED=!0,c.as=l),s&&(t.usesShadowDom?c.style=ni:c.class="i-amphtml-fill-content"),li(t,c,u,n,o),o&&o.complete(),c}function li(t,n,i,e,r){if(ei(i,ri)){const o=P(e);for(let e=0;e<o.length;e++){const s=o[e],l=ci(s,i);if(!l)continue;const u=i[l],{as:c=!1,single:a,name:h=l,clone:f,props:d={}}=u;m(f||t.usesShadowDom);const p={};if(li(t,p,d,s,r),a)n[h]=Xn(s,s.getAttribute("slot")||`i-amphtml-${h}`,p,c);else{const t=n[h]||(n[h]=[]);m(!c),t.push(f?ui(s):Xn(s,s.getAttribute("slot")||`i-amphtml-${h}-${ii()}`,p))}}}for(const s in i){const l=i[s];let u;if(m(!!l.attr+!!l.attrs+!!l.attrMatches+!!l.selector+!!l.passthrough+!!l.passthroughNonEmpty<=1),l.passthrough?(m(t.usesShadowDom),u=[F(Jn,{loading:"lazy"})]):l.passthroughNonEmpty?(m(t.usesShadowDom),u=P(e).every(oi)?null:[F(Jn,{loading:"lazy"})]):l.attr?(u=e.getAttribute(l.attr),l.media&&null!=u&&(u=r.resolveListQuery(String(u)))):l.parseAttrs&&(m(l.attrs||l.attrMatches),u=l.parseAttrs(e)),null==u)null!=l.default&&(n[s]=l.default);else{const t="number"==l.type?parseFloat(u):"boolean"==l.type?null==(o=u)?void 0:"false"!==o:u;n[s]=t}}var o}function ui(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 F(e,n)}function ci(t,n){for(const i in n){const e=n[i];if(A(t,"string"==typeof e?e:e.selector))return i}return null}var ai=self.AMP_CONFIG||{},hi=("string"==typeof ai.thirdPartyFrameRegex?new RegExp(ai.thirdPartyFrameRegex):ai.thirdPartyFrameRegex,("string"==typeof ai.cdnProxyRegex?new RegExp(ai.cdnProxyRegex):ai.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function fi(t){if(!self.document||!self.document.head)return null;if(self.location&&hi.test(self.location.origin))return null;const n=self.document.head.querySelector(`meta[name="${t}"]`);return n&&n.getAttribute("content")||null}ai.thirdPartyUrl,ai.thirdPartyFrameHost,ai.cdnUrl||fi("runtime-host"),ai.errorReportingUrl,ai.betaErrorReportingUrl,ai.localDev,ai.geoApiUrl||fi("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var di=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";new RegExp("(-shadowcsshost"+di,"gim"),new RegExp("(-shadowcsscontext"+di,"gim"),new RegExp("-shadowcsshost","gim"),new RegExp("-shadowcsscontext","gim");var pi={childList:!0},vi={childList:!0,characterData:!0},mi={childList:!0},yi=f({"style":"display: contents; background: inherit;","part":"c"}),bi=f({"name":"i-amphtml-svc"}),gi=f({"i-amphtml-rendered":""}),_i=()=>!0,Ai=t=>!!t.media,wi=t=>!(!t.passthrough&&!t.passthroughNonEmpty),Pi=class extends kn{static R1(){return!0}static requiresShadowDom(){return this.usesShadowDom}static usesLoading(){return this.loadable}static prerenderAllowed(){return!this.usesLoading()}constructor(t){super(t),this.Ya=f({"loading":"auto","onReadyState":(t,n)=>{this.Ba(t,n)},"onPlayingState":t=>{this.Za(t)},"onLoading":()=>{this.handleOnLoading()},"onLoad":()=>{this.handleOnLoad()},"onError":()=>{this.handleOnError()}}),this.Ga={renderable:!1,playable:!0,loading:"auto",notify:()=>this.mutateElement((()=>{}))},this.Qa=!1,this.Xa=null,this.Ja=null,this.Ka=t=>{null!==t&&(this.Xa?this.tf(t):this.nf(t)),this.Ja=t,this.if()},this.ef=null,this.rf=null,this.sf=null,this.lf=!1,this.uf=null,this.cf=()=>{this.lf=!1,this.af()},this.hf=!1,this.ui=!1,this.observer=null,this.ff=new class{constructor(t){this.df=t,this.pf=!1,this.vf=!1,this.mf=this.mf.bind(this)}updatePlaying(t){t!==this.pf&&(this.pf=t,t?(this.vf=!1,function(t,n){!function(t,n,i){const e=t.ownerDocument.defaultView;if(!e)return;let r=En.get(t);if(r||(r=[],En.set(t,r),Rn(e).observe(t)),!r.some((t=>t.callback===i&&1===t.type))){r.push({type:1,callback:i});const n=In.get(t);n&&setTimeout((()=>Cn(1,i,n)))}}(t,0,n)}(this.df,this.mf)):function(t,n){!function(t,n,i){const e=En.get(t);if(e&&(function(t,n){const e=[];let r=0;for(let n=0;n<t.length;n++){const s=t[n];(o=s).callback===i&&1===o.type?e.push(s):(r<n&&(t[r]=s),r++)}var o;r<t.length&&(t.length=r)}(e),0==e.length)){En.delete(t),In.delete(t);const n=t.ownerDocument.defaultView;n&&Rn(n).unobserve(t)}}(t,0,n)}(this.df,this.mf))}mf({blockSize:t,inlineSize:n}){const i=n>0&&t>0;if(i===this.vf)return;this.vf=i;const e=this.df;i||e.pause()}}(t),this.Ti=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.yf(t)));const n=t.props,e=ei(n,ri)?pi:null,r=ei(n,wi)?vi:null,o=t.usesTemplate?mi:null;this.observer.observe(this.element,i(i(i({attributes:!0},e),r),o)),this.Ti=ei(n,Ai)?new class{constructor(t,n){this.Wt=t,this.o=n,this.Li={},this.Ui=null}start(){this.Ui=this.Li,this.Li={}}resolveMatchQuery(t){return"1"===this.$i(t,pn,"1")}resolveListQuery(t){return this.$i(t,vn,"")}complete(){for(const t in this.Ui)t in this.Li||mn(this.Ui[t],this.o,!1);this.Ui=null}dispose(){for(const t in this.Li)mn(this.Li[t],this.o,!1);this.Li={}}$i(t,n,i){if(!t.trim())return i;let e=this.Li[t];return e||(m(this.Ui),e=this.Ui[t]),e||(e=n(this.Wt,t),mn(e,this.o,!0)),this.Li[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.bf())):null;const s=t.staticProps,l=this.init();Object.assign(this.Ya,s,l),this.checkPropsPostMutations(),ln(this.element,[],(()=>()=>{this.ui=!1,this.sf&&ht(null,this.sf)})),ln(this.element,[zn,$n,Ln],((t,n,i)=>{this.Ga.renderable=t,this.Ga.playable=n,this.Ga.loading=i,this.ui=!0,this.bf()}));const u=t.useContexts;var c;return 0!=u.length&&ln(this.element,u,((...t)=>{this.rf=t,this.bf()})),this.uf=new N,this.bf(),t.loadable&&(null===(c=this.setReadyState)||void 0===c||c.call(this,"loading")),this.if(),this.uf.promise}ensureLoaded(){this.constructor.loadable&&(this.mutateProps(f({"loading":"eager"})),this.Qa=!0)}mountCallback(){hn(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.Qa=!1)}unmountCallback(){var t;hn(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.Za(!1),null===(t=this.Ti)||void 0===t||t.dispose()}mutatedAttributesCallback(){this.sf&&this.bf()}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.Ya,t),this.bf()}api(){return m(this.Ja)}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}yf(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){var e;const r=i[t];if(n.attributeName==r.attr||r.attrs&&r.attrs.includes(m(n.attributeName))||null!==(e=r.attrMatches)&&void 0!==e&&e.call(r,n.attributeName))return!0}return!1}return"childList"==i&&(Si(n.addedNodes)||Si(n.removedNodes))}(n,t)));i&&(this.checkPropsPostMutations(),this.bf())}bf(){this.lf||(this.lf=!0,this.mutateElement(this.cf))}if(){const{Ja:t}=this,n=null==t?void 0:t.readyState;n&&n!==this.element.readyState&&this.Ba(n)}Ba(t,n){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,t,n),this.constructor.unloadOnPause&&this.Za("complete"==t),this.Qa&&(this.Qa=!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)}af(){if(!this.ui)return;const t=this.constructor,n=t.usesShadowDom,e=n?null:t.lightDomTag,r=t.detached;if(!this.sf){const i=this.win.document;if(n){m(!r);let{shadowRoot:n}=this.element,e=n&&(p=n,g("c"),_(p,"> c"));if(e)this.hf=!0;else{var o,s,l,u,c,a;n=this.element.attachShadow({mode:"open",delegatesFocus:t.delegatesFocus});const r=t.shadowCss;r&&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,r),e=M(i,"c",yi),n.appendChild(e);const h=M(i,"slot",bi);n.appendChild(h),null===(o=this.getPlaceholder)||void 0===o||null===(s=o.call(this))||void 0===s||s.setAttribute("slot","i-amphtml-svc"),null===(l=this.getFallback)||void 0===l||null===(u=l.call(this))||void 0===u||u.setAttribute("slot","i-amphtml-svc"),null===(c=this.getOverflowElement)||void 0===c||null===(a=c.call(this))||void 0===a||a.setAttribute("slot","i-amphtml-svc")}this.sf=e,function(t,n){Kt.get(t).setParent(n)}(n,this.element),function(t,n,i,e=0){Kt.get(t).addGroup(n,i,e)}(this.element,"unslotted",_i,-1),h=this.element,f=zn,null===(d=Kt.get(h).group("unslotted"))||void 0===d||d.values.set(f,this,!1)}else if(e){this.sf=this.element;const n=w(this.sf,"i-amphtml-rendered")||M(i,e,gi);n.__AMP_RENDERED=!0,t.layoutSizeDefined&&n.classList.add("i-amphtml-fill-content"),this.sf.appendChild(n)}else{const t=i.createElement("i-amphtml-c");this.sf=t,t.classList.add("i-amphtml-fill-content"),r||this.element.appendChild(t)}}var h,f,d,p;const v=t.useContexts,y=this.rf;if(0!=v.length&&null==y)return;const b=si(t,this.element,this.Ka,this.Ya,this.Ti);if(this.updatePropsForRendering(b),!this.isReady(b))return;let A=F(t.Component,b);for(let t=0;t<v.length;t++){const n=v[t].type,i=y[t];i&&(A=F(n.Provider,{value:i},A))}const P=F(Vn,i({},this.Ga),A);if(this.hf)this.hf=!1,ft(P,this.sf);else{const t=e?w(this.sf,"i-amphtml-rendered"):null;t&&(t.__AMP_RENDERED=!0),ht(P,this.sf,t)}n||r||this.mutateElement((()=>x(this.element,"amp:dom-update",null))),this.uf&&(this.uf.resolve(),this.uf=null)}getProp(t,n){return i=this.Ya,e=t,c.call(i,e)?this.Ya[t]:n;var i,e}getApi(){const t=this.Xa;return t?Promise.resolve(t):(this.ef||(this.ef=new N),this.ef.promise)}nf(t){const n=h(),i=Object.keys(t);for(let t=0;t<i.length;t++)ki(this,n,i[t]);this.Xa=n,this.ef&&(this.ef.resolve(n),this.ef=null)}tf(t){}triggerEvent(t,n,i){x(t,n,i)}pauseCallback(){if(this.constructor.unloadOnPause)this.mutateProps(f({"loading":"unload"})),this.Qa=!0;else{var t;const{Ja:n}=this;null==n||null===(t=n.pause)||void 0===t||t.call(n)}}Za(t){this.ff.updatePlaying(t)}};function ki(t,n,i){Object.defineProperty(n,i,{configurable:!0,get:()=>t.Ja[i],set(n){t.Ja[i]=n}})}function Si(t){for(let n=0;n<t.length;n++){const i=t[n];if(v(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 Mi(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}Pi.Component=function(){m(!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={};var xi,Ei=["ref"],Ii="undefined"!=typeof Symbol&&(null===(xi=Symbol.for)||void 0===xi?void 0:xi.call(Symbol,"react.forward_ref"))||3911,Ri=R.__b;function Ti(t){function n(n){const{ref:i}=n,e=Mi(n,Ei);return t(e,i)}return n.$$typeof=Ii,n.render=n,n.prototype.isReactComponent=!0,n.gf=!0,n}function Ci(t){return(Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Oi(t){var n=function(t,n){if("object"!==Ci(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var e=i.call(t,"string");if("object"!==Ci(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ci(n)?n:String(n)}R.__b=function(t){var n;null!==(n=t.type)&&void 0!==n&&n.gf&&t.ref&&(t.props.ref=t.ref,t.ref=null),null==Ri||Ri(t)};var Vi=[null,"paint","layout","content","size","size paint","size layout","strict"],ji={"position":"relative","width":"100%","height":"100%"};function zi(t,n,i){t.classList.add("i-amphtml-animating");let e=n();return e.onfinish=e.oncancel=()=>{e=null,i&&i(),t.classList.remove("i-amphtml-animating")},()=>{e&&e.cancel()}}function $i(t){const n=window.innerHeight,i=Math.abs(t)/n*500;return Math.min(Math.max(i,200),500)}Ti((function(t,n){let e="class",{as:r="div",children:o,contentAs:s="div",contentClassName:l,contentProps:u,contentRef:c,contentStyle:a,layout:h=!1,paint:f=!1,size:d=!1,"style":p,wrapperClassName:v,wrapperStyle:m,[e]:y}=t;const b=(d?4:0)+(h?2:0)+(f?1:0);return F(r,i(i({},Mi(t,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",e].map(Oi))),{},{ref:n,class:`${y||""} ${v||""}`.trim()||null,style:i(i(i({},p),m),{},{contain:Vi[b]})}),F(s,i(i({},u),{},{ref:c,class:l,style:i(i({},d&&ji),{},{"overflow":f?"hidden":"visible"},a)}),o))})),Ti((function(t,n){let e="class",{as:r="div",children:o,"style":s,wrapperClassName:l,wrapperStyle:u,[e]:c}=t;return F(r,i(i({},Mi(t,["as","children","style","wrapperClassName","wrapperStyle",e].map(Oi))),{},{ref:n,class:`${c||""} ${l||""}`.trim()||null,style:i(i({},s),u)}),o)}));var Li=["animate","as","children","expandSingleSection","id"],Ni=["animate","as","children","expanded","id","onExpandStateChange"],Hi=dt({}),Ui=dt({}),Wi={},qi={},Di=Hn(),Fi=()=>String(Math.floor(1e5*Math.random())),Yi=Ti((function(t,n){let{animate:e=!1,as:r="section",children:o,expandSingleSection:s=!1,id:l}=t,u=Mi(t,Li);const[c,a]=wt(Wi),h=St(qi),[f]=wt(Fi),p=l||`a${f}`;Pt((()=>{s&&a((t=>{const n={};let i=0;for(const e in t)n[e]=t[e]&&0==i++;return n}))}),[s]);const v=Et(((t,n,{current:e})=>(a((i=>Bi(t,n,i,s))),h.current=i(i({},h.current),{},{[t]:e}),()=>{a((n=>d(n,t))),h.current=d(h.current,t)})),[s]),m=Et(((t,n)=>{a((i=>{const e=null!=n?n:!i[t],r=Bi(t,e,i,s);return E().then((()=>{for(const t in i){const n=h.current[t];n&&i[t]!=r[t]&&n(r[t])}})),r}))}),[s]),y=Et(((t,n)=>{var i;return null!==(i=c[t])&&void 0!==i?i:n}),[c]),b=Et((t=>{if(t)t in c&&m(t);else if(!s)for(const t in c)m(t)}),[c,m,s]),g=Et((t=>{if(t)y(t,!0)||m(t);else if(!s)for(const t in c)y(t,!0)||m(t)}),[c,m,y,s]),_=Et((t=>{if(t)y(t,!1)&&m(t);else for(const t in c)y(t,!1)&&m(t)}),[c,m,y]);Mt(n,(()=>({toggle:b,expand:g,collapse:_})),[b,_,g]);const A=xt((()=>({registerSection:v,toggleExpanded:m,isExpanded:y,animate:e,prefix:p})),[v,m,y,e,p]);return F(r,i({id:l},u),F(Hi.Provider,{value:A},o))}));function Bi(t,n,e,r){let o;if(r&&n){o={[t]:n};for(const n in e)n!=t&&(o[n]=!1)}else o=i(i({},e),{},{[t]:n});return o}function Zi(t){let{animate:n=!1,as:e="section",children:r,expanded:o=!1,id:s,onExpandStateChange:l}=t,u=Mi(t,Ni);const[c]=wt(Di),a=s||c,[h]=wt(Fi),[f,d]=wt(o),[p,v]=wt(null),[m,y]=wt(null),{animate:b,isExpanded:g,prefix:_,registerSection:A,toggleExpanded:w}=It(Hi),P=g?g(a,o):f,k=null!=b?b:n,S=p||`${_||"a"}-content-${a}-${h}`,M=m||`${_||"a"}-header-${a}-${h}`,x=St(null);x.current=l,kt((()=>{if(A)return A(a,o,x)}),[A,a,o]);const I=Et((t=>{w?w(a,t):d((n=>{const i=null!=t?t:!n;return E().then((()=>{const t=x.current;t&&t(i)})),i}))}),[a,w]),R=xt((()=>({animate:k,contentId:S,headerId:M,expanded:P,toggleHandler:I,setContentId:v,setHeaderId:y})),[k,S,M,P,I]);return F(e,i({},u),F(Ui.Provider,{value:R},r))}function Gi(t){let n="class",e="tabIndex",{as:r="div",children:o,id:s,role:l="button",[n]:u="",[e]:c=0}=t,a=Mi(t,["as","children","id","role",n,e].map(Oi));const{contentId:h,expanded:f,headerId:d,setHeaderId:p,toggleHandler:v}=It(Ui);return kt((()=>{p&&p(s)}),[p,s]),F(r,i(i({},a),{},{id:d,role:l,class:`${u} section-child-00fce3c header-00fce3c`,tabIndex:c,"aria-controls":h,onClick:()=>v(),"aria-expanded":String(f)}),o)}function Qi(t){let n="class",{as:e="div",children:r,id:o,role:s="region",[n]:l=""}=t,u=Mi(t,["as","children","id","role",n].map(Oi));const c=St(null),a=St(!1),{animate:h,contentId:f,expanded:d,headerId:p,setContentId:v}=It(Ui);return Pt((()=>(a.current=!0,()=>a.current=!1)),[]),kt((()=>{v&&v(o)}),[v,o]),kt((()=>{const t=a.current,n=c.current;if(h&&t&&n&&n.animate)return d?function(t){return zi(t,(()=>{const n=An(t,"height"),i=An(t,"opacity"),e=An(t,"overflowY");wn(t,{height:0,opacity:0,overflowY:"auto"});const r=t.scrollHeight;wn(t,{height:n,opacity:i,overflowY:e});const o=$i(r);return t.animate([{height:0,opacity:0,overflowY:"hidden"},{height:r+"px",opacity:1,overflowY:"hidden"}],{easing:"cubic-bezier(0.47, 0, 0.745, 0.715)",duration:o})}))}(n):function(t){return zi(t,(()=>{const n=t.offsetHeight,i=$i(n);return t.animate([{height:n+"px",opacity:1,overflowY:"hidden"},{height:"0",opacity:0,overflowY:"hidden"}],{easing:"cubic-bezier(0.39, 0.575, 0.565, 1)",duration:i})}))}(n)}),[d,h]),F(Vn,{renderable:d},F(e,i(i({},u),{},{ref:c,class:l+" section-child-00fce3c"+(d?"":" content-hidden-00fce3c"),id:f,"aria-labelledby":p,role:s}),r))}Yi.displayName="Accordion";var Xi=class extends Pi{init(){const t=t=>n=>{var i;!function(t,n,i){const e=t.hasAttribute(n),r=void 0!==i?i:!e;r!==e&&(r?t.setAttribute(n,""):t.removeAttribute(n))}(t,"expanded",n),null===(i=t.__AMP_PR)||void 0===i||i.call(t),this.triggerEvent(t,n?"expand":"collapse")},{element:n}=this,i=new MutationObserver((()=>{this.mutateProps(Ji(n,i,t))}));i.observe(n,{attributeFilter:["expanded","id"],subtree:!0,childList:!0});const{"children":e}=Ji(n,i,t);return f({"children":e})}};function Ji(t,n,e){var r;const o=(s=t,l="section",g(l),"> section",(r=s.querySelectorAll(b("> section",":scope")))?Array.prototype.slice.call(r):[]).map((t=>{t.__AMP_PR||(t.__AMP_PR=()=>n.takeRecords());const r=p(t,"__AMP_H_SHIM",te),o=p(t,"__AMP_C_SHIM",ie),s=p(t,"__AMP_EXPAND_STATE_SHIM",e),l=f({"key":t,"expanded":t.hasAttribute("expanded"),"id":t.getAttribute("id"),"onExpandStateChange":s}),u=f({"as":r,"id":t.firstElementChild.getAttribute("id"),"role":t.firstElementChild.getAttribute("role")||void 0}),c=f({"as":o,"id":t.lastElementChild.getAttribute("id"),"role":t.lastElementChild.getAttribute("role")||void 0});return F(Zi,i({},l),F(Gi,i({},u)),F(Qi,i({},c)))}));var s,l;return f({"children":o})}function Ki(t,{"aria-controls":n,"aria-expanded":i,id:e,onClick:r,role:o}){const s=t.firstElementChild;return kt((()=>{if(s&&r)return s.setAttribute("id",e),s.classList.add("i-amphtml-accordion-header"),s.addEventListener("click",r),s.hasAttribute("tabindex")||s.setAttribute("tabindex",0),s.setAttribute("aria-expanded",i),s.setAttribute("aria-controls",n),s.setAttribute("role",o),t.__AMP_PR&&t.__AMP_PR(),()=>{s.removeEventListener("click",m(r))}}),[t,s,e,o,r,n,i]),F("header",null)}var te=t=>Ki.bind(null,t);function ne(t,{"aria-labelledby":n,id:i,role:e},r){const o=t.lastElementChild,s=St();return s.current=o,Kn(s),function(t,n){Mt(t,(()=>n),[n])}(r,o),kt((()=>{o&&(o.classList.add("i-amphtml-accordion-content"),o.setAttribute("id",i),o.setAttribute("role",e),o.setAttribute("aria-labelledby",n),t.__AMP_PR&&t.__AMP_PR())}),[t,o,i,e,n]),F("div",null)}var ie=t=>Ti(ne.bind(null,t));function ee(){customElements.define("bento-accordion",Xi.CustomElement(Xi))}Xi.Component=Yi,Xi.detached=!0,Xi.props={"animate":{attr:"animate",type:"boolean",media:!0},"expandSingleSection":{attr:"expand-single-section",type:"boolean"}};export{ee as defineElement};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

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

{
"name": "@bentoproject/accordion",
"version": "1.2112231523.0",
"version": "1.2112231523.1",
"description": "Displays content sections that can be collapsed and expanded.",

@@ -5,0 +5,0 @@ "author": "Bento Authors",

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 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