(()=>{var _n=Object.defineProperty;var ct=(e,t)=>{for(var o in t)_n(e,o,{get:t[o],enumerable:!0})};var xt={};ct(xt,{Component:()=>Ee,Fragment:()=>Te,cloneElement:()=>kn,createContext:()=>_t,createElement:()=>le,createRef:()=>bn,h:()=>le,hydrate:()=>mo,isValidElement:()=>Qt,options:()=>$,render:()=>Re,toChildArray:()=>lo});var Ae,$,Jt,Qt,ae,Zt,eo,mt,pt,dt,ut,to,$e={},oo=[],xn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ve=Array.isArray;function X(e,t){for(var o in t)e[o]=t[o];return e}function ro(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function le(e,t,o){var n,i,a,l={};for(a in t)a=="key"?n=t[a]:a=="ref"?i=t[a]:l[a]=t[a];if(arguments.length>2&&(l.children=arguments.length>3?Ae.call(arguments,2):o),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)l[a]===void 0&&(l[a]=e.defaultProps[a]);return Ie(e,l,n,i,null)}function Ie(e,t,o,n,i){var a={type:e,props:t,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++Jt,__i:-1,__u:0};return i==null&&$.vnode!=null&&$.vnode(a),a}function bn(){return{current:null}}function Te(e){return e.children}function Ee(e,t){this.props=e,this.context=t}function ge(e,t){if(t==null)return e.__?ge(e.__,e.__i+1):null;for(var o;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null)return o.__e;return typeof e.type=="function"?ge(e):null}function no(e){var t,o;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null){e.__e=e.__c.base=o.__e;break}return no(e)}}function ft(e){(!e.__d&&(e.__d=!0)&&ae.push(e)&&!Fe.__r++||Zt!==$.debounceRendering)&&((Zt=$.debounceRendering)||eo)(Fe)}function Fe(){var e,t,o,n,i,a,l,s;for(ae.sort(mt);e=ae.shift();)e.__d&&(t=ae.length,n=void 0,a=(i=(o=e).__v).__e,l=[],s=[],o.__P&&((n=X({},i)).__v=i.__v+1,$.vnode&&$.vnode(n),ht(o.__P,n,i,o.__n,o.__P.namespaceURI,32&i.__u?[a]:null,l,a??ge(i),!!(32&i.__u),s),n.__v=i.__v,n.__.__k[n.__i]=n,so(l,n,s),n.__e!=a&&no(n)),ae.length>t&&ae.sort(mt));Fe.__r=0}function io(e,t,o,n,i,a,l,s,d,m,f){var c,h,p,w,R,L=n&&n.__k||oo,k=t.length;for(o.__d=d,vn(o,t,L),d=o.__d,c=0;c<k;c++)(p=o.__k[c])!=null&&(h=p.__i===-1?$e:L[p.__i]||$e,p.__i=c,ht(e,p,h,i,a,l,s,d,m,f),w=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&gt(h.ref,null,p),f.push(p.ref,p.__c||w,p)),R==null&&w!=null&&(R=w),65536&p.__u||h.__k===p.__k?d=ao(p,d,e):typeof p.type=="function"&&p.__d!==void 0?d=p.__d:w&&(d=w.nextSibling),p.__d=void 0,p.__u&=-196609);o.__d=d,o.__e=R}function vn(e,t,o){var n,i,a,l,s,d=t.length,m=o.length,f=m,c=0;for(e.__k=[],n=0;n<d;n++)(i=t[n])!=null&&typeof i!="boolean"&&typeof i!="function"?(l=n+c,(i=e.__k[n]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Ie(null,i,null,null,null):Ve(i)?Ie(Te,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Ie(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,a=null,(s=i.__i=wn(i,o,l,f))!==-1&&(f--,(a=o[s])&&(a.__u|=131072)),a==null||a.__v===null?(s==-1&&c--,typeof i.type!="function"&&(i.__u|=65536)):s!==l&&(s==l-1?c--:s==l+1?c++:(s>l?c--:c++,i.__u|=65536))):i=e.__k[n]=null;if(f)for(n=0;n<m;n++)(a=o[n])!=null&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=ge(a)),co(a,a))}function ao(e,t,o){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=ao(n[i],t,o));return t}e.__e!=t&&(t&&e.type&&!o.contains(t)&&(t=ge(e)),o.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function lo(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ve(e)?e.some(function(o){lo(o,t)}):t.push(e)),t}function wn(e,t,o,n){var i=e.key,a=e.type,l=o-1,s=o+1,d=t[o];if(d===null||d&&i==d.key&&a===d.type&&!(131072&d.__u))return o;if(n>(d!=null&&!(131072&d.__u)?1:0))for(;l>=0||s<t.length;){if(l>=0){if((d=t[l])&&!(131072&d.__u)&&i==d.key&&a===d.type)return l;l--}if(s<t.length){if((d=t[s])&&!(131072&d.__u)&&i==d.key&&a===d.type)return s;s++}}return-1}function Yt(e,t,o){t[0]==="-"?e.setProperty(t,o??""):e[t]=o==null?"":typeof o!="number"||xn.test(t)?o:o+"px"}function Ge(e,t,o,n,i){var a;e:if(t==="style")if(typeof o=="string")e.style.cssText=o;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)o&&t in o||Yt(e.style,t,"");if(o)for(t in o)n&&o[t]===n[t]||Yt(e.style,t,o[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=o,o?n?o.u=n.u:(o.u=pt,e.addEventListener(t,a?ut:dt,a)):e.removeEventListener(t,a?ut:dt,a);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=o??"";break e}catch{}typeof o=="function"||(o==null||o===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&o==1?"":o))}}function Xt(e){return function(t){if(this.l){var o=this.l[t.type+e];if(t.t==null)t.t=pt++;else if(t.t<o.u)return;return o($.event?$.event(t):t)}}}function ht(e,t,o,n,i,a,l,s,d,m){var f,c,h,p,w,R,L,k,S,G,F,We,Se,Kt,Ue,st,q=t.type;if(t.constructor!==void 0)return null;128&o.__u&&(d=!!(32&o.__u),a=[s=t.__e=o.__e]),(f=$.__b)&&f(t);e:if(typeof q=="function")try{if(k=t.props,S="prototype"in q&&q.prototype.render,G=(f=q.contextType)&&n[f.__c],F=f?G?G.props.value:f.__:n,o.__c?L=(c=t.__c=o.__c).__=c.__E:(S?t.__c=c=new q(k,F):(t.__c=c=new Ee(k,F),c.constructor=q,c.render=Nn),G&&G.sub(c),c.props=k,c.state||(c.state={}),c.context=F,c.__n=n,h=c.__d=!0,c.__h=[],c._sb=[]),S&&c.__s==null&&(c.__s=c.state),S&&q.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=X({},c.__s)),X(c.__s,q.getDerivedStateFromProps(k,c.__s))),p=c.props,w=c.state,c.__v=t,h)S&&q.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),S&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(S&&q.getDerivedStateFromProps==null&&k!==p&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(k,F),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(k,c.__s,F)===!1||t.__v===o.__v)){for(t.__v!==o.__v&&(c.props=k,c.state=c.__s,c.__d=!1),t.__e=o.__e,t.__k=o.__k,t.__k.some(function(je){je&&(je.__=t)}),We=0;We<c._sb.length;We++)c.__h.push(c._sb[We]);c._sb=[],c.__h.length&&l.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(k,c.__s,F),S&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(p,w,R)})}if(c.context=F,c.props=k,c.__P=e,c.__e=!1,Se=$.__r,Kt=0,S){for(c.state=c.__s,c.__d=!1,Se&&Se(t),f=c.render(c.props,c.state,c.context),Ue=0;Ue<c._sb.length;Ue++)c.__h.push(c._sb[Ue]);c._sb=[]}else do c.__d=!1,Se&&Se(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++Kt<25);c.state=c.__s,c.getChildContext!=null&&(n=X(X({},n),c.getChildContext())),S&&!h&&c.getSnapshotBeforeUpdate!=null&&(R=c.getSnapshotBeforeUpdate(p,w)),io(e,Ve(st=f!=null&&f.type===Te&&f.key==null?f.props.children:f)?st:[st],t,o,n,i,a,l,s,d,m),c.base=t.__e,t.__u&=-161,c.__h.length&&l.push(c),L&&(c.__E=c.__=null)}catch(je){if(t.__v=null,d||a!=null){for(t.__u|=d?160:128;s&&s.nodeType===8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__e=s}else t.__e=o.__e,t.__k=o.__k;$.__e(je,t,o)}else a==null&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=yn(o.__e,t,o,n,i,a,l,d,m);(f=$.diffed)&&f(t)}function so(e,t,o){t.__d=void 0;for(var n=0;n<o.length;n++)gt(o[n],o[++n],o[++n]);$.__c&&$.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(a){a.call(i)})}catch(a){$.__e(a,i.__v)}})}function yn(e,t,o,n,i,a,l,s,d){var m,f,c,h,p,w,R,L=o.props,k=t.props,S=t.type;if(S==="svg"?i="http://www.w3.org/2000/svg":S==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),a!=null){for(m=0;m<a.length;m++)if((p=a[m])&&"setAttribute"in p==!!S&&(S?p.localName===S:p.nodeType===3)){e=p,a[m]=null;break}}if(e==null){if(S===null)return document.createTextNode(k);e=document.createElementNS(i,S,k.is&&k),s&&($.__m&&$.__m(t,a),s=!1),a=null}if(S===null)L===k||s&&e.data===k||(e.data=k);else{if(a=a&&Ae.call(e.childNodes),L=o.props||$e,!s&&a!=null)for(L={},m=0;m<e.attributes.length;m++)L[(p=e.attributes[m]).name]=p.value;for(m in L)if(p=L[m],m!="children"){if(m=="dangerouslySetInnerHTML")c=p;else if(!(m in k)){if(m=="value"&&"defaultValue"in k||m=="checked"&&"defaultChecked"in k)continue;Ge(e,m,null,p,i)}}for(m in k)p=k[m],m=="children"?h=p:m=="dangerouslySetInnerHTML"?f=p:m=="value"?w=p:m=="checked"?R=p:s&&typeof p!="function"||L[m]===p||Ge(e,m,p,L[m],i);if(f)s||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),io(e,Ve(h)?h:[h],t,o,n,S==="foreignObject"?"http://www.w3.org/1999/xhtml":i,a,l,a?a[0]:o.__k&&ge(o,0),s,d),a!=null)for(m=a.length;m--;)ro(a[m]);s||(m="value",S==="progress"&&w==null?e.removeAttribute("value"):w!==void 0&&(w!==e[m]||S==="progress"&&!w||S==="option"&&w!==L[m])&&Ge(e,m,w,L[m],i),m="checked",R!==void 0&&R!==e[m]&&Ge(e,m,R,L[m],i))}return e}function gt(e,t,o){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){$.__e(i,o)}}function co(e,t,o){var n,i;if($.unmount&&$.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||gt(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){$.__e(a,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&co(n[i],t,o||typeof e.type!="function");o||ro(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Nn(e,t,o){return this.constructor(e,o)}function Re(e,t,o){var n,i,a,l;$.__&&$.__(e,t),i=(n=typeof o=="function")?null:o&&o.__k||t.__k,a=[],l=[],ht(t,e=(!n&&o||t).__k=le(Te,null,[e]),i||$e,$e,t.namespaceURI,!n&&o?[o]:i?null:t.firstChild?Ae.call(t.childNodes):null,a,!n&&o?o:i?i.__e:t.firstChild,n,l),so(a,e,l)}function mo(e,t){Re(e,t,mo)}function kn(e,t,o){var n,i,a,l,s=X({},e.props);for(a in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)a=="key"?n=t[a]:a=="ref"?i=t[a]:s[a]=t[a]===void 0&&l!==void 0?l[a]:t[a];return arguments.length>2&&(s.children=arguments.length>3?Ae.call(arguments,2):o),Ie(e.type,s,n||e.key,i||e.ref,null)}function _t(e,t){var o={__c:t="__cC"+to++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,a;return this.getChildContext||(i=new Set,(a={})[t]=this,this.getChildContext=function(){return a},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&i.forEach(function(s){s.__e=!0,ft(s)})},this.sub=function(l){i.add(l);var s=l.componentWillUnmount;l.componentWillUnmount=function(){i&&i.delete(l),s&&s.call(l)}}),n.children}};return o.Provider.__=o.Consumer.contextType=o}Ae=oo.slice,$={__e:function(e,t,o,n){for(var i,a,l;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),l=i.__d),l)return i.__E=i}catch(s){e=s}throw e}},Jt=0,Qt=function(e){return e!=null&&e.constructor==null},Ee.prototype.setState=function(e,t){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=X({},this.state),typeof e=="function"&&(e=e(X({},o),this.props)),e&&X(o,e),e!=null&&this.__v&&(t&&this._sb.push(t),ft(this))},Ee.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ft(this))},Ee.prototype.render=Te,ae=[],eo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,mt=function(e,t){return e.__v.__b-t.__v.__b},Fe.__r=0,pt=0,dt=Xt(!1),ut=Xt(!0),to=0;var Nt={};ct(Nt,{useCallback:()=>Cn,useContext:()=>wt,useDebugValue:()=>Sn,useEffect:()=>T,useErrorBoundary:()=>In,useId:()=>En,useImperativeHandle:()=>Ln,useLayoutEffect:()=>K,useMemo:()=>D,useReducer:()=>wo,useRef:()=>I,useState:()=>_});var J,A,bt,uo,_e=0,vo=[],P=$,fo=P.__b,po=P.__r,ho=P.diffed,go=P.__c,_o=P.unmount,xo=P.__;function se(e,t){P.__h&&P.__h(A,e,_e||t),_e=0;var o=A.__H||(A.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({}),o.__[e]}function _(e){return _e=1,wo(yo,e)}function wo(e,t,o){var n=se(J++,2);if(n.t=e,!n.__c&&(n.__=[o?o(t):yo(void 0,t),function(s){var d=n.__N?n.__N[0]:n.__[0],m=n.t(d,s);d!==m&&(n.__N=[m,n.__[1]],n.__c.setState({}))}],n.__c=A,!A.u)){var i=function(s,d,m){if(!n.__c.__H)return!0;var f=n.__c.__H.__.filter(function(h){return!!h.__c});if(f.every(function(h){return!h.__N}))return!a||a.call(this,s,d,m);var c=!1;return f.forEach(function(h){if(h.__N){var p=h.__[0];h.__=h.__N,h.__N=void 0,p!==h.__[0]&&(c=!0)}}),!(!c&&n.__c.props===s)&&(!a||a.call(this,s,d,m))};A.u=!0;var a=A.shouldComponentUpdate,l=A.componentWillUpdate;A.componentWillUpdate=function(s,d,m){if(this.__e){var f=a;a=void 0,i(s,d,m),a=f}l&&l.call(this,s,d,m)},A.shouldComponentUpdate=i}return n.__N||n.__}function T(e,t){var o=se(J++,3);!P.__s&&yt(o.__H,t)&&(o.__=e,o.i=t,A.__H.__h.push(o))}function K(e,t){var o=se(J++,4);!P.__s&&yt(o.__H,t)&&(o.__=e,o.i=t,A.__h.push(o))}function I(e){return _e=5,D(function(){return{current:e}},[])}function Ln(e,t,o){_e=6,K(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},o==null?o:o.concat(e))}function D(e,t){var o=se(J++,7);return yt(o.__H,t)&&(o.__=e(),o.__H=t,o.__h=e),o.__}function Cn(e,t){return _e=8,D(function(){return e},t)}function wt(e){var t=A.context[e.__c],o=se(J++,9);return o.c=e,t?(o.__==null&&(o.__=!0,t.sub(A)),t.props.value):e.__}function Sn(e,t){P.useDebugValue&&P.useDebugValue(t?t(e):e)}function In(e){var t=se(J++,10),o=_();return t.__=e,A.componentDidCatch||(A.componentDidCatch=function(n,i){t.__&&t.__(n,i),o[1](n)}),[o[0],function(){o[1](void 0)}]}function En(){var e=se(J++,11);if(!e.__){for(var t=A.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var o=t.__m||(t.__m=[0,0]);e.__="P"+o[0]+"-"+o[1]++}return e.__}function $n(){for(var e;e=vo.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(qe),e.__H.__h.forEach(vt),e.__H.__h=[]}catch(t){e.__H.__h=[],P.__e(t,e.__v)}}P.__b=function(e){A=null,fo&&fo(e)},P.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),xo&&xo(e,t)},P.__r=function(e){po&&po(e),J=0;var t=(A=e.__c).__H;t&&(bt===A?(t.__h=[],A.__h=[],t.__.forEach(function(o){o.__N&&(o.__=o.__N),o.i=o.__N=void 0})):(t.__h.forEach(qe),t.__h.forEach(vt),t.__h=[],J=0)),bt=A},P.diffed=function(e){ho&&ho(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(vo.push(t)!==1&&uo===P.requestAnimationFrame||((uo=P.requestAnimationFrame)||An)($n)),t.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.i=void 0})),bt=A=null},P.__c=function(e,t){t.some(function(o){try{o.__h.forEach(qe),o.__h=o.__h.filter(function(n){return!n.__||vt(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],P.__e(n,o.__v)}}),go&&go(e,t)},P.unmount=function(e){_o&&_o(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{qe(n)}catch(i){t=i}}),o.__H=void 0,t&&P.__e(t,o.__v))};var bo=typeof requestAnimationFrame=="function";function An(e){var t,o=function(){clearTimeout(n),bo&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(o,100);bo&&(t=requestAnimationFrame(o))}function qe(e){var t=A,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),A=t}function vt(e){var t=A;e.__c=e.__(),A=t}function yt(e,t){return!e||e.length!==t.length||t.some(function(o,n){return o!==e[n]})}function yo(e,t){return typeof t=="function"?t(e):t}var Be={};ct(Be,{AccordionItem:()=>Zo,Asset:()=>v,AudioPlayer:()=>Yo,Author:()=>Xo,BackToTop:()=>Jo,Box:()=>g,Breadcrumb:()=>Qo,Button:()=>y,CallToAction:()=>er,Container:()=>nr,ContentOwner:()=>lr,DateEntry:()=>sr,ExternalSearch:()=>cr,FilteredItem:()=>mr,FooterItem:()=>dr,Form:()=>Qe,Glossary:()=>at,Heading:()=>N,Icon:()=>E,Image:()=>be,ImageGallery:()=>ur,Input:()=>Y,LegalFooter:()=>gr,Link:()=>b,Links:()=>U,ListItem:()=>_r,Logo:()=>tt,LowCarbonModeSwitch:()=>xr,Message:()=>ve,Metadata:()=>br,NavLink:()=>W,Navigation:()=>Nr,Notification:()=>kr,Page:()=>Sr,PageHeader:()=>Er,PageHeaderBanner:()=>$r,PageTags:()=>Ar,Popup:()=>te,PressRelease:()=>Tr,PromoBanner:()=>Rr,PromoBottom:()=>Mr,PromoButton:()=>Pr,PromoCard:()=>Or,PromoFull:()=>Br,PromoImage:()=>Hr,PromoLure:()=>zr,PromoSimple:()=>Dr,PromoText:()=>z,Quote:()=>Wr,RichText:()=>C,SVG:()=>ce,Scroller:()=>Ne,SearchForm:()=>Ur,SearchNav:()=>Fr,SearchResult:()=>jr,SectionHeader:()=>Vr,SkipToMain:()=>qr,Slider:()=>Kr,SocialShare:()=>Yr,StandaloneAsset:()=>Xr,Tabs:()=>tn,Tags:()=>ke,Textarea:()=>Fo,Time:()=>H,Topbar:()=>rn,Tree:()=>Le,Video:()=>rt,WebComponent:()=>nn});var Tn=0;function M(){return`_${Tn++}`}function No(e,t){if(!(!e&&!t))return e=e||"",t=t||"",`${e} ${t}`}function ko(...e){let[t,o]=e;(!o||typeof o!="object"||Object.hasOwn(o,"__k")||Array.isArray(o))&&(o={},e.splice(1,0,o));let n=o.props;if(n){delete o.props;let a=No(o.className,n.className);o={...n,...o,className:a}}let i;if(typeof t=="string"){Mn(o),i=Rn(o);for(let a in o)a.startsWith("_")&&delete o[a]}return e.splice(1,1,o),i?[i,le.apply(this,e)]:le.apply(this,e)}function Rn(e){return e._style?(e.id||=M(),ko("style",e._style(e.id))):null}function Mn(e){let{_color:t}=e;t&&(e.className=No(e.className,`pal-${t}`))}var r=ko;function g(e){return r("div",{props:e,className:"p-6 space-y-5 w-full"},e.children)}var Pn=["name","value","icon","type","src","alt","caption","autoplay"];function u(e,t){let o={...e?._model};return Object.keys(o).some(n=>Pn.includes(n))?{...o}:(o.image={...o.image},o.video={...o.video},o.links=o.links?o.links.map(n=>({...n})):[],o.tags=o.tags?o.tags.map(n=>({...n})):[],o.asset=o.video.src?o.video:o.image,t&&!t(o)?null:o)}var Ke={};function ce(e){let t=e._model.src||"",[o,n]=_(Ke[t]);return n(Ke[t]),T(()=>{o||async function(){let a=t.endsWith(".svg")||t.startsWith("data:")?await Bn(t):t;Ke[t]=On(a),n(Ke[t])}()},[t]),o?r("div",{props:e,className:"w-full h-full",dangerouslySetInnerHTML:{__html:o}}):null}function On(e){let t=new DOMParser().parseFromString(e,"image/svg+xml"),o=t.getElementsByTagName("parsererror")[0];if(o)return console.warn(`Invalid SVG: ${e}
${o.innerText}`),null;let n=t.documentElement;return n.setAttribute("class","block w-full h-full"),n.outerHTML}async function Bn(e){try{return(await fetch(e)).text()}catch(t){return console.warn("Unable to fetch SVG:",e),console.warn(t),null}}function E(e){let t={xs:"12",sm:"16"}[e._size]??24;return r("div",{props:e,"aria-hidden":!0,style:`width: calc(var(--font-scale) * ${t}px); height: calc(var(--font-scale) * ${t}px);`,children:r(ce,{_model:{src:e.children},_style:o=>`
        #${o} path, #${o} polygon { fill: currentColor; }
        ${e._rtlFlip?`[dir='rtl'] #${o} { transform: scaleX(-1); }`:""}
      `})})}function kt(e){if(typeof e!="string")throw new Error("Invalid type");let t=parseInt(e,10),o=Math.max(Math.floor(Math.log(t)/Math.log(1e3)),0);return`${Number((t/Math.pow(1e3,o)).toFixed(0))*1} ${["B","kB","MB","GB","TB"][o]}`}var Lo=`
<svg id="Shell_x5F_2012_x5F_PECTEN_x5F_RGB" version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
  <rect x="-12.1" y="-103.7" width="141.7" height="141.7" fill="none"/>
  <g transform="matrix(.22054 0 0 .22054 -.94555 -.53756)">
    <path d="m54.6 87.8h-18l-1.6-13.3-11-7.9c-0.5-2.3-0.7-4.7-0.7-7.1 0-19.6 15.9-35.4 35.4-35.4 19.6 0 35.4 15.9 35.4 35.4 0 2.4-0.2 4.8-0.7 7.1l-10.9 7.9-1.7 13.3h-18l-1 0.8c-0.9 0.7-2 1-3.1 1s-2.2-0.4-3.1-1z" fill="none" stroke="#fff" stroke-miterlimit="40" stroke-width="7"/>
    <path d="m54.6 87.8h-18l-1.6-13.3-11-7.9c-0.5-2.3-0.7-4.7-0.7-7.1 0-19.6 15.9-35.4 35.4-35.4 19.6 0 35.4 15.9 35.4 35.4 0 2.4-0.2 4.8-0.7 7.1l-10.9 7.9-1.7 13.3h-18l-1 0.8c-0.9 0.7-2 1-3.1 1s-2.2-0.4-3.1-1z" fill="#fbce07"/>
    <path d="m54.6 87.8h-18l-1.6-13.3-11-7.9c-0.5-2.3-0.7-4.7-0.7-7.1 0-19.6 15.9-35.4 35.4-35.4s35.4 15.9 35.4 35.4c0 2.4-0.2 4.8-0.7 7.1l-10.9 7.9-1.7 13.3h-18l-1 0.8c-0.9 0.7-2 1-3.1 1s-2.2-0.4-3.1-1zm0.6-6.2h-13.1l-1.3-10.6-10.8-7.8c-0.3-1.2-0.5-2.5-0.5-3.8 0-2.1 0.4-4.2 1.3-6.1l19.1 19.3-18.5-22.9c0.7-3 2.3-5.6 4.6-7.7l16.6 28.7-14.7-31.3c1.9-2.5 4.6-4.4 7.6-5.3l10.2 35.6-7.4-37.1c2.3-1.3 4.8-1.9 7.4-1.9 0.5 0 1.1 0 1.6 0.1l1.5 38.5 1.5-38.5c0.5-0.1 1.1-0.1 1.6-0.1 2.6 0 5.1 0.7 7.4 1.9l-7.4 37.1 10.2-35.7c3 0.9 5.7 2.8 7.6 5.3l-14.8 31.4 16.6-28.7c2.3 2 3.9 4.7 4.6 7.7l-18.5 22.9 19.1-19.3c0.9 1.9 1.3 4 1.3 6.1 0 1.3-0.2 2.5-0.5 3.8l-10.8 7.8-1.3 10.6h-13l-2 1.4c-0.5 0.4-1.1 0.5-1.7 0.5s-1.2-0.2-1.7-0.5z" fill="#dd1d21" fill-rule="evenodd"/>
  </g>
</svg>`,Co=`
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" style="width: 100%; height: 100%">
  <rect width="100%" height="100%" style="fill: #767676;" />
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" x="50%" y="50%" overflow="visible">
    <path
      transform="translate(-92.5 -92.5)"
      style="fill: #606060; stroke: #606060; stroke-miterlimit:10; stroke-width: 4px;"
      d="M94.22,2.5a91.72,91.72,0,1,0,91.71,91.72A91.82,91.82,0,0,0,94.22,2.5ZM92.79,183a27.68,27.68,0,1,1,2.85,0l-1.42,0C93.74,183,93.27,183,92.79,183Zm32-27.64a30.57,30.57,0,1,0-48.25,24.9,57.92,57.92,0,1,1,35.38,0A30.54,30.54,0,0,0,124.78,155.37Zm.21,22.17a60.82,60.82,0,1,0-61.55,0,88.83,88.83,0,1,1,61.55,0Z"></path>
  </svg>
</svg>`,Q='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon fill="#595959" points="15.543 4.294 7.699 12.922 15.51 20.743 14.095 22.156 4.937 12.987 14.063 2.949"/></svg>',Ze='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon fill="#595959" points="3.579 8.35 12.207 16.194 20.028 8.382 21.441 9.797 12.271 18.956 2.233 9.83"/></svg>',j='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon fill="#595959" points="7.374 4.324 15.219 12.952 7.407 20.773 8.822 22.187 17.981 13.017 8.854 2.979"/></svg>',So='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon fill="#595959" points="3.579 17.209 12.207 9.365 20.028 17.177 21.441 15.762 12.271 6.603 2.233 15.729"/></svg>',Io='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon fill="#595959" points="12 4.103 18.065 10.161 16.652 11.576 12.999 7.928 13 20.021 11 20.021 10.999 7.714 6.718 11.609 5.372 10.129"/></svg>',Ye='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon fill="#595959" points="13.858 5.372 19.884 12 13.826 18.065 12.411 16.652 16.057 12.999 4 13 4 11 16.271 10.999 12.378 6.718"/></svg>',Eo='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m2 2v11h4l2-3h3l2.5625-4 4.4375 7h4v-11zm3.9512 2c0.016275-1.987e-4 0.032553-1.987e-4 0.048828 0 1.1046 0 2 0.89543 2 2s-0.89543 2-2 2-2-0.89543-2-2c-3.236e-4 -1.0858 0.86572-1.9735 1.9512-2z"/><path d="m12 13v5.1719l-2.5352-2.5352-1.4141 1.4141s3.2995 3.2995 4.9492 4.9492l4.9492-4.9492-1.4141-1.4141-2.5352 2.5352v-5.1719z"/></svg>',Lt='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.5 5C6.22386 5 6 5.19588 6 5.4375V18.5625C6 18.8041 6.22386 19 6.5 19H10.5C10.7761 19 11 18.8041 11 18.5625V5.4375C11 5.19588 10.7761 5 10.5 5H6.5Z" fill="#292929"/><path d="M13.5 5C13.2239 5 13 5.19588 13 5.4375V18.5625C13 18.8041 13.2239 19 13.5 19H17.5C17.7761 19 18 18.8041 18 18.5625V5.4375C18 5.19588 17.7761 5 17.5 5H13.5Z" fill="#292929"/></svg>',$o='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 17.9999V5.99985C7 5.20116 7.89015 4.72476 8.5547 5.1678L17.5 11.1679C18.0937 11.5637 18.0937 12.4362 17.5 12.832L8.5547 18.8319C7.89015 19.275 7 18.7986 7 17.9999Z" fill="#292929"/></svg>',Ao='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#595959" d="M22,16 L22,18 L2,18 L2,16 L22,16 Z M22,7 L22,9 L2,9 L2,7 L22,7 Z"/></svg>',Z='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polygon fill="#595959" points="19.293 3.293 20.707 4.707 13.414 12 20.707 19.293 19.293 20.707 12 13.414 4.707 20.707 3.293 19.293 10.586 12 3.293 4.707 4.707 3.293 12 10.586"/></svg>',To='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#595959" d="M11.9101291,7.30977962 L12.0355339,7.42893219 L14.1862019,9.57960023 L12.7719884,10.9938138 L10.6213203,8.84314575 C10.238924,8.46074937 9.74884933,8.39294597 9.48557745,8.57491586 L9.4246781,8.62557443 L4.039788,14.0104645 C3.81663935,14.2336132 3.83786237,14.711438 4.16827673,15.109458 L4.25735931,15.2071068 L7.79289322,18.7426407 C8.1752896,19.1250371 8.66536423,19.1928405 8.92863612,19.0108706 L8.98953546,18.960212 L10.9808489,16.9688985 L12.3950625,18.3831121 L10.403749,20.3744256 C9.36229137,21.4158832 7.65397108,21.3138177 6.5040845,20.2760068 L6.37867966,20.1568542 L2.84314575,16.6213203 C1.73630542,15.51448 1.55751496,13.8038246 2.51455222,12.7146505 L2.62557443,12.596251 L8.01046454,7.21136087 C9.05192219,6.16990321 10.7602425,6.27196874 11.9101291,7.30977962 Z M17.2030223,3.0168864 L17.3284271,3.13603897 L20.863961,6.67157288 C21.9708014,7.77841321 22.1495918,9.48906859 21.1925546,10.5782427 L21.0815323,10.6966422 L15.6966422,16.0815323 C14.6551846,17.12299 12.9468643,17.0209245 11.7969777,15.9831136 L11.6715729,15.863961 L9.52090484,13.713293 L10.9351184,12.2990794 L13.0857864,14.4497475 C13.4681828,14.8321439 13.9582575,14.8999473 14.2215293,14.7179774 L14.2824287,14.6673188 L19.6673188,9.28242868 C19.8904674,9.05928004 19.8692444,8.58145524 19.5388301,8.18343527 L19.4497475,8.08578644 L15.9142136,4.55025253 C15.5318172,4.16785615 15.0417425,4.10005275 14.7784707,4.28202264 L14.7175713,4.33268121 L12.7262579,6.32399468 L11.3120443,4.90978112 L13.3033578,2.91846765 C14.3448154,1.87700999 16.0531357,1.97907552 17.2030223,3.0168864 Z"/></svg>';var Xe='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#595959" d="M10.5,2 C15.1944204,2 19,5.80557963 19,10.5 C19,12.4865245 18.3185332,14.3138839 17.1766205,15.7610573 L21.7071068,20.2928932 L20.2928932,21.7071068 L15.7610573,17.1766205 C14.3138839,18.3185332 12.4865245,19 10.5,19 C5.80557963,19 2,15.1944204 2,10.5 C2,5.80557963 5.80557963,2 10.5,2 Z M10.5,4 C6.91014913,4 4,6.91014913 4,10.5 C4,14.0898509 6.91014913,17 10.5,17 C14.0898509,17 17,14.0898509 17,10.5 C17,6.91014913 14.0898509,4 10.5,4 Z"/></svg>';var Ro='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#595959" d="M19,6 L19,21 L2,21 L2,6 L19,6 Z M17,8 L4,8 L4,19 L17,19 L17,8 Z M22,3 L22,19 L20,19 L20,4.999 L4,5 L4,3 L22,3 Z"/></svg>';function Ct(e,t,o){let[n,i]=_(t);return T(()=>{(async function(){i(await e())})()},o),n}function xe(e){return document.querySelector(`meta[name="${e}"]`)?.content}var zn=["q","tag","limit","offset","resource"];function ee(e=window.location){let t=new URL(e,window.location),o=[...new URLSearchParams(t.search)];for(let i=o.length-1;i>=0;--i)zn.includes(o[i][0])||o.splice(i,1);let n=new URLSearchParams(o).toString();return t.base=t.origin+t.pathname.replace(/\.html(\/.*)?$/,""),t.modelHref=n?`${t.base}.model.params.json?${n}`:`${t.base}.model.json`,t.i18nHref=`${t.base}.shelli18n.json`,t.suffix=t.pathname.split(".html")[1],t.pathnameWithoutSuffix=t.pathname.replace(t.suffix,""),t}var Dn=["zip","pdf","docx","xlsx","pptx","txt","csv","xps"],Hn=["facebook.com","instagram.com","linkedin.com","primeenergy.com.br","raizen.com","raizen.com.br","sonnen.de","twitter.com","ubitricity.com","vk.com","weibo.com","youku.com","youtube.com"];function St(e){return!!e.action}function Je(e){let t=e.substring(e.lastIndexOf(".")+1);return Dn.includes(t)}function Mo(e){return e.includes("shell")||e===location.hostname||Hn.some(t=>e.endsWith(t))}function Wn(e,t){return location.hostname===e&&(t==="/"||t.endsWith(".html"))}function Po(e,t){let o=St(e)?"onSubmit":"onClick",n=e[o];e[o]=i=>{n?.(i),!i.defaultPrevented&&!i.ctrlKey&&!i.altKey&&!i.metaKey&&t(i)}}function Un(e,t){e.rel="noopener",e.target="_blank",Je(e.href)||Po(e,o=>{let{currentTarget:n}=o;n.rel==="noopener"&&!confirm(t)&&o.preventDefault()})}function jn(e){Po(e,t=>{let{currentTarget:o}=t,n;if(St(e)){let i=new FormData(o);n=o.getAttribute("action")+new URLSearchParams(i).toString()}else n=o.getAttribute("href");history.pushState({},"",n),window.dispatchEvent(new Event("popstate")),t.preventDefault()})}function Gn(e,t,o){return!Mo(t)&&["http:","https:"].includes(o)?xe("external-disclaimer-text"):Mo(t)&&t!==self.location.hostname&&!Je(e)?xe("cross-domain-disclaimer-text"):null}function V(e){let t=St(e),o=t?"action":"href",n=e[o];if(!n||n.startsWith("#"))return e;let i=ee(n),{protocol:a,hostname:l,pathnameWithoutSuffix:s}=i;if(["javascript:","vbscript:","data:"].some(m=>n.startsWith(m)))return console.error(`Invalid URL: '${n}'`),e[o]=null,e;let d=!t&&Gn(e.href,l,a);return d?Un(e,d):Wn(l,s)&&!e.target&&jn(e),e}var Fn={simple:"hover:underline",underline:"underline",bold:"hover:underline font-bold",full:"font-bold underline",tag:"transition pl-2 pr-2 pt-1 pb-1 text-sm highlight-2 hover:text-bga hover:bg-txa rounded-md"};function b(e){let{_variant:t,_Guts:o}=e,{name:n,value:i,icon:a}=u(e),l=V({...e,href:i});l.props={className:`clickable ${Fn[t]??""}`},o?l.props.className+=" block":a&&(l.props.className+=" space-x-2 inline-flex items-center");let s=i?Ct(()=>Vn(i),"",[i]):"";if(l.target=s?"_blank":l.target,n){let c=`${n}${s}`;l.target==="_blank"?l.children=r("span",{className:"space-x-1"},r("span",c),r("span",{className:"inline-block align-top"},r(E,{_size:"sm"},Ro))):l.children=a?r("span",c):c}let d=()=>o?r(o,e,l.children):a?[r(E,{className:"shrink-0",_size:"sm"},a),l.children]:l.children,[m,f]=_(null);return K(()=>{f(d())},[s,e._model]),r("a",l,m)}async function Vn(e){if(!Je(e))return"";let t=e.substring(e.lastIndexOf(".")+1);try{let n=(await fetch(e,{headers:{Range:"bytes=0-0"}})).headers.get("content-range"),i=/bytes \d+-\d+\/(\d+)/.exec(n)?.[1],a=kt(i);return` (${t.toUpperCase()}, ${a})`}catch(o){return console.log(`Unable to resolve file size: ${e}`,o),` (${t.toUpperCase()})`}}function y(e){let{_variant:t,_size:o}=e,n=u(e),{selected:i,icon:a}=n,l=e._textless||!e._model?.name,s={lg:"16",md:"12",sm:"10",xs:"8"}[o??"md"],m=`clickable cursor-pointer border-solid transition inline-flex ${o==="xs"?"rounded-md":"rounded-lg"}`;return t==="plain"?(m+=" text-txa bg-bga hover:text-bga hover:bg-txa hover:bg-opacity-100",m+=i?" text-bga hover:bg-txa":""):m+=" bg-opacity-100 overflow-hidden border-1 bg-bgb text-txb border-bgb hover:bg-txb hover:text-bgb font-bold",l?r(Oo,{props:e,className:`${m} justify-center items-center w-${s} h-${s}`,_Guts:()=>r(E,a)}):r(Oo,{props:e,className:`${m} pl-3 pr-3 space-x-2 h-${s}`,_Guts:e._Guts||(f=>[a&&r("div",{className:`flex items-center justify-center h-full${e._hideIconOnMobile?" sm:none":""}`,children:r(E,a)}),r("div",{className:`grow flex items-center h-full ${a?"":"justify-center"}`,children:f.children})])})}function Oo(e){let t=u(e),{name:o,value:n}=t,i=e._textless?e._model?.name:void 0,{_Guts:a}=e;return n?r(b,{props:e,title:i,"aria-label":o,_variant:"plain"}):r("button",{props:e,title:i,"aria-label":o},r(a,e,o))}function Qe(e){return V(e),r("form",{props:e},e.children)}function me(e){let t=e?.toLowerCase?.();return t?t.replace(/\W/g,"-"):null}function N(e){let{_level:t}=e;return r(`h${t}`,{props:e,className:"text-txc",id:e.id||me(e.children)})}function oe(e){return{"1x1":"aspect-square","16x9":"aspect-video","4x1":"aspect-wide"}[e]??""}var qn=48,Kn=3840,Zn=100;function*Yn(e){for(let t=qn;t<=Kn;t*=e)yield Math.round(t)}var Xn=1.3,Bo=[...Yn(Xn)].sort((e,t)=>t-e),et;if(!et){let e=new Set;et=new window.IntersectionObserver(o=>{for(let n of o)n.isIntersecting?e.add(n.target)&&zo(n.target):e.delete(n.target)});let t=null;window.addEventListener("resize",()=>{clearTimeout(t),t=setTimeout(()=>{for(let o of e)zo(o)},Zn)})}function zo(e){let t=e.getAttribute("src"),[o,n]=t.split("?"),i=new self.URLSearchParams(n);i.set("imdensity",window.devicePixelRatio||1);let a=parseInt(i.get("imwidth")||"0",10),l=Bo.find(d=>d<=e.width)||Bo.slice(-1).pop();l>a&&i.set("imwidth",l);let s=e.dataset.ratio?`-${e.dataset.ratio}`:"";i.set("impolicy",`amidala-image${s}`),e.src=`${o}?${i.toString()}`,e.loading="eager"}function Jn(e){return e.toLowerCase().startsWith("data:")?e:V({href:`${e}?imwidth=48&impolicy=amidala-thumb`}).href}function Qn(e){let t=e?.getAttribute("src");!t||t.toLowerCase().startsWith("data:")||et.observe(e)}function ei(e){et.unobserve(e)}function be(e){let t=u(e);if(!t.src)return null;let{src:o,alt:n,caption:i,width:a,height:l}=t,{_fit:s,_ratio:d,_textless:m,role:f}=e,c=I(null),h=e?.children?.length||e?.children?.type,p=(h||i)&&!m,w=e.className?.split(" ")||[],R=w.filter(F=>!F.includes("rounded")).join(" "),L={...e,className:`${R} relative figure w-full overflow-hidden`},k={className:`grow ${e.className||""}`},G={className:`${w.filter(F=>F.includes("rounded")).join(" ")} cq-dd-image block w-full h-full ${oe(d)}`,src:Jn(o),loading:"lazy",alt:n??"","data-ratio":d,ref:c,role:f,width:a,height:l};return s==="contain"?(L.className+=" flex flex-col",k.className="grow relative",G.className+=" object-contain absolute left-0 right-0 top-0 bottom-0"):(L.className+=" block",G.className+=" object-cover"),K(()=>(Qn(c.current),()=>{ei(c.current)}),[o]),r("figure",L,r("picture",k,r("img",G)),p&&r("figcaption",{className:`shrink ${h?"":"pt-1"}`,children:h?e.children:i}))}function Y(e){if(e.className=e.className?`appearance-auto ${e.className}`:"appearance-auto",e.type==="checkbox"||e.type==="radio")return r("input",e);if(e.type==="file")return r("input",{props:e,type:"file",className:"block",_style:n=>`
        #${n}::file-selector-button {
          border-radius: 4px;
          padding: 4px 12px;
          border-width: 1px;
          border-style: solid;
          background-color: hsl(var(--color-bgb));
          border-color: hsl(var(--color-bgb));
          color: hsl(var(--color-txb));
          font-weight: bold;
          transition-property: background-color, border-color, color;
          transition-duration: var(--anim-time);
          height: 32px;
        }
        #${n}::file-selector-button:hover {
          background-color: hsl(var(--color-txb));
          color: hsl(var(--color-bgb));
        }
      `});let t="pal-brand1 rounded-lg text-txa border-txa w-full pl-4 pr-4 flex items-center space-x-4 border-solid border-1 border-opacity-20 h-12",o=e.disabled?`${t} bg-txa bg-opacity-10`:`${t} bg-bga`;return e.type==="select"?r("select",{props:e,className:o,type:void 0}):r("input",{props:e,className:o})}function tt(e){return r("div",{props:e,className:"bg-no-repeat bg-center bg-contain h-16",style:"background-image: var(--logo); width: calc(var(--logo-ratio) * 16 * var(--space))"})}function ve(e){return r("div",{props:e,className:"pl-6 pr-6 pt-4 pb-4 text-sm pal-system-solid text-txa bg-bga w-full"},e.children)}var ti={md:8,lg:12},oi={default:"p-2",right:"border-r-4 pl-2 pr-1 pt-1 pb-1",bottom:"border-b-4 pl-1 pr-1 pb-1 pt-2",top:"border-t-4 pl-1 pr-1 pb-2 pt-1"};function W(e){let t=u(e),{name:o,value:n,selected:i}=t,a=`transition border-solid border-bgb ${i?"border-opacity-100":"border-opacity-0"}`;return a+=` ${oi[e._selection??"default"]}`,r("div",{className:a},r(b,{props:e,title:e._textless?o:void 0,"aria-label":o,_model:{...t,value:n??"#"},_Guts:ri}))}function ri(e){let{_level:t,_expanded:o,_textless:n,_size:i}=e,{icon:a}=u(e),l=ti[i]??"auto",s=n?`h-${l} w-${l}`:`w-full h-${l}`,d=e._highlighted?"highlight-2":"";return r("div",{className:`transition hover:highlight-2 pl-2 pr-2 pt-1 pb-1 flex space-x-2 items-center justify-center rounded-md overflow-hidden ${s} ${d}`,children:[...[...Array(t??0).keys()].map(()=>r("div",{className:"shrink-0 w-2"})),a&&r("div",{className:"flex items-center text"},r(E,a)),n||r("div",{className:"grow"},e.children),o!==void 0&&r("div",{className:"flex items-center text"},r(E,{_size:"xs"},o?So:Ze))]})}function It(e,t,o){e.key==="Tab"&&(!e.shiftKey&&e.target===o?(t.focus(),e.preventDefault()):e.shiftKey&&e.target===t&&(o.focus(),e.preventDefault()))}var ni=["overflow-y: scroll","width: 100px","height: 100px","position: absolute","top: -9999"].join("; ");function ii(){let e=document.createElement("div");e.setAttribute("style",ni),document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function ot(e){if(e)document.body.classList.remove("overflow-hidden"),document.documentElement.style.paddingRight="",document.getElementById("overlay")?.remove();else{let t=ii();if(document.body.classList.add("overflow-hidden"),document.documentElement.style.paddingRight=`${t}px`,!document.getElementById("overlay")){let o=document.createElement("div");o.id="overlay",o.className="fixed top-0 bottom-0 left-0 right-0 pal-semitransparent bg-bga animate-fade",document.body.appendChild(o)}}}var Do=`
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
  all: unset;
  display: revert;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a,
button {
  cursor: revert;
}

ol,
ul,
menu {
  list-style: none;
}

img {
  max-width: 100%;
}

table {
  border-collapse: collapse;
}

input,
textarea {
  -webkit-user-select: auto;
}

textarea {
  white-space: revert;
}

meter {
  -webkit-appearance: revert;
  appearance: revert;
}

::placeholder {
  color: unset;
}

:where([hidden]) {
  display: none;
}


:where([contenteditable]:not([contenteditable='false'])) {
  -moz-user-modify: read-write;
  -webkit-user-modify: read-write;
  overflow-wrap: break-word;
  -webkit-line-break: after-white-space;
  -webkit-user-select: auto;
}

:where([draggable='true']) {
  -webkit-user-drag: element;
}
`;var Ho=`
  *,
  *::before,
  *::after {
    border-width: 0;
    padding: 0;
    margin: 0;
    font-size: calc(var(--font-size) * var(--font-scale));
  }

  *:focus {
    outline: 2px auto black;
  }

  .web-component:focus {
    outline: none;
  }

  body {
    overflow-y: scroll;
  }
`;var Wo=`
:root, :host {
  font-family: var(--font-default);
  line-height: 1.618;
  background-color: hsla(var(--color-back), var(--alpha-back));
  color: hsl(var(--color-text));
  border-color: hsla(var(--color-text), var(--alpha-text));
}

:root:lang(ar), :root:lang(ja), :root:lang(ko), :root:lang(th), :root:lang(zh) { --font-scale: 1.15 }
:root:lang(ja) { line-height: 1.75 }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headers);
  font-weight: 600;
  line-height: 1.25;
}

h1 { --font-size: 32px }
h2 { --font-size: 28px }
h3 { --font-size: 20px }
h4 { --font-size: 18px }
h5 { --font-size: 16px }
h6 { --font-size: 14px }

ol, ul {
  list-style: decimal;
  padding-inline-start: calc(6 * var(--space));
}
ul { list-style: disc }
ul ul, ul ol, ol ul {
  margin-top: 0;
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: separate;
  color: hsl(var(--color-txa));
  border: 1px solid hsla(var(--color-txa), 0.2);
  border-radius: 8px;
  border-right: 0;
  border-bottom: 0;
}
tr { width: 100% }
tr:hover { background-color: hsla(var(--color-txa), 0.05) }
td, th {
  text-align: left;
  padding: calc(2 * var(--space));
  border-right: 1px solid hsla(var(--color-txa), 0.2);
  border-bottom: 1px solid hsla(var(--color-txa), 0.2);
}
th > *, td > * {
  vertical-align: top;
}
th {
  font-weight: bold;
  background-color: hsla(var(--color-txa), 0.05);
}
tr:first-child *:first-child { border-top-left-radius: 8px }
tr:first-child *:last-child { border-top-right-radius: 8px }
tr:last-child *:first-child { border-bottom-left-radius: 8px }
tr:last-child *:last-child { border-bottom-right-radius: 8px }

strong, b { font-weight: bold }

pre {
  background-color: hsla(var(--color-txa), 0.05);
  border-radius: 8px;
  padding: 8px;
}
pre code { background: none }
code {
  background-color: hsla(var(--color-txa), 0.1);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: pre-wrap;
  font-size: 12px;
  font-family: monospace;
  display: inline-block;
  margin: 2px;
}

em, i { font-style: italic }

sup {
  vertical-align: super;
  --font-size: 12px;
}

sub {
  vertical-align: sub;
  --font-size: 12px;
}

hr {
  width: 24px;
  height: 4px;
  background: hsl(var(--color-bgb));
}
`;var Uo=`
@keyframes delay {
  0% { opacity: 0 }
  50% { opacity: 0 }
  100% { opacity: 1 }
}

@keyframes expand {
  from { opacity: 0; transform: translateY(-8px) }
  to { opacity: 1 }
}

@keyframes swipe {
  from { opacity: 0; left: -8px; position: relative; z-index: -1 }
  to { opacity: 1; z-index: -1 }
}

@keyframes toast {
  from { opacity: 0; transform: translateY(48px) }
  to { opacity: 1 }
}

@keyframes zoom {
  from { opacity: 0; transform: scale(0.9) }
  to { opacity: 1 }
}

@keyframes fade {
  0% { opacity: 0 }
  100% { opacity: 1 }
}
`;var $t=1300,we=960,de=600,At=4,ai=11,jo=10,li=96,si=[{limit:80,increment:16},{limit:64,increment:8},{limit:16,increment:4},{limit:0,increment:1}];var ci={"--font-type":'"shell-typeface"',"--font-default":"Arial, Roboto, Helvetica, sans-serif","--font-headers":"var(--font-type), var(--font-default)","--font-size":"14px","--font-scale":"1","--logo-ratio":"1","--logo":`url("data:image/svg+xml;utf-8,${encodeURIComponent(Lo)}")`,"--space":`${At}px`,"--radius-tl":"4px","--radius-tr":"4px","--radius-br":"4px","--radius-bl":"4px","--page-width":`${$t}px`,"--nav-width":"1400px","--anim-time":"0.25s","--bg-alpha":"100","--text-alpha":"100","--border-alpha":"100","--color-paper1":"0, 0%, 100%","--color-paper2":"0, 0%, 96%","--color-ink1":"0, 0%, 29%","--color-ink2":"var(--color-ink1)","--color-brand1-bg":"47, 100%, 50%","--color-brand1-text":"var(--color-ink1)","--color-brand2-bg":"359, 77%, 49%","--color-brand2-text":"var(--color-paper1)","--color-brand3-bg":"212, 49%, 39%","--color-brand3-text":"var(--color-paper1)","--color-brand4-bg":"159, 100%, 26%","--color-brand4-text":"var(--color-paper1)","--color-brand5-bg":"306, 61%, 33%","--color-brand5-text":"var(--color-paper1)","--color-system-bg":"210, 78%, 16%","--color-system-text":"0, 0%, 100%","--color-black-bg":"0, 0%, 0%","--color-black-text":"var(--color-paper1)","--color-bga":"var(--color-paper1)","--color-txa":"var(--color-ink1)","--color-bgb":"var(--color-brand1-bg)","--color-txb":"var(--color-brand1-text)","--color-txc":"var(--color-ink2)","--color-head":"var(--color-txc)","--color-text":"var(--color-txa)","--color-back":"var(--color-bga)","--color-accent-back":"var(--color-bgb)","--color-accent-text":"var(--color-txa)","--alpha-back":"1","--alpha-text":"1","--alpha-bord":"1","--gap":"calc(6 * var(--space))","--icon-size":"24px","--btn-size":"calc(var(--icon-size) + 4 * var(--space))","--btn-size-s":"calc(var(--icon-size) + 2 * var(--space))","--btn-pad":"calc(2 * var(--space))","--btn-height":"var(--btn-size)","--thick-border":"4px","--shadow-color":"0, 0%, 0%","--lang-scale":"1"},B=function(e,t,o=""){let n={};n[`${e}-full${o}`]=`${t}: 100%`,n[`${e}-half${o}`]=`${t}: 50%`,n[`${e}-auto${o}`]=`${t}: auto`,n[`${e}-screen${o}`]=`${t}: 100w`;let i=0;for(;i<=li;)n[`${e}-${i}${o}`]=`${t}: calc(${i} * var(--space))`,n[`-${e}-${i}${o}`]=`${t}: calc(-${i} * var(--space))`,i+=si.find(({limit:a})=>i>=a).increment;return n},Et=function(e){let t={};for(let o of Array.from(Array(ai).keys()))t[`${e}-opacity-${o*jo}`]=`--${e}-alpha: ${o/jo}`;return t},mi=function(){let e={};for(let[t,o]of Object.entries({1:"md",2:"lg",3:"xl",4:"2xl"}))e[`rounded-${o}`]=`border-radius: calc(var(--radius-tl) * ${t}) calc(var(--radius-tr) * ${t}) calc(var(--radius-br) * ${t}) calc(var(--radius-bl) * ${t})`,e[`rounded-tl-${o}`]=`border-start-start-radius: calc(var(--radius-tl) * ${t})`,e[`rounded-tr-${o}`]=`border-start-end-radius: calc(var(--radius-tr) * ${t})`,e[`rounded-br-${o}`]=`border-end-end-radius: calc(var(--radius-br) * ${t})`,e[`rounded-bl-${o}`]=`border-end-start-radius: calc(var(--radius-bl) * ${t})`;return e["rounded-full"]="border-radius: 50%",e["rounded-none"]="border-radius: 0",e},di=function(){let e={};for(let o of["bga","bgb","txa","txb","txc"])e[`bg-${o}`]=`background-color: hsla(var(--color-${o}), var(--bg-alpha))`,e[`text-${o}`]=`color: hsla(var(--color-${o}), var(--text-alpha))`,e[`border-${o}`]=`border-color: hsla(var(--color-${o}), var(--border-alpha))`;for(let o of["brand1","brand2","brand3","brand4","brand5","system"])e[`pal-${o}`]=["--color-bga: var(--color-paper1)","--color-txa: var(--color-ink1)",`--color-bgb: var(--color-${o}-bg)`,`--color-txb: var(--color-${o}-text)`,"--color-txc: var(--color-ink2)","--bg-alpha: 1"],e[`pal-${o}-subtle`]=["--color-bga: var(--color-paper2)","--color-txa: var(--color-ink1)",`--color-bgb: var(--color-${o}-bg)`,`--color-txb: var(--color-${o}-text)`,"--color-txc: var(--color-ink2)","--bg-alpha: 1"],e[`pal-${o}-solid`]=[`--color-bga: var(--color-${o}-bg)`,`--color-txa: var(--color-${o}-text)`,`--color-bgb: var(--color-${o}-text)`,`--color-txb: var(--color-${o}-bg)`,`--color-txc: var(--color-${o}-text)`,"--bg-alpha: 1"];let t=["--color-bga: var(--color-black-bg)","--color-txa: var(--color-black-text)","--color-bgb: var(--color-brand1-bg)","--color-txb: var(--color-brand1-text)","--color-txc: var(--color-black-text)"];return e["pal-transparent"]=[...t,"--bg-alpha: 0"],e["pal-semitransparent"]=[...t,"--bg-alpha: 0.5"],e},ui={Amidala:{"font-header":["font-family: var(--font-headers)","font-weight: 600","line-height: 1.25"],"highlight-1":"background-color: hsla(var(--color-txa), 0.05)","highlight-2":"background-color: hsla(var(--color-txa), 0.1)",raise:["transform: translateY(-8px)","box-shadow: 0 8px 8px hsla(var(--color-black-bg), 0.2)","-webkit-perspective: 1000","-webkit-backface-visibility: hidden"],"scrollbar-hide":["scrollbar-width: none","-ms-overflow-style: none"],"scrollbar-hide::-webkit-scrollbar":"display: none",transition:["transition-property: border-color background-color, color, transform, box-shadow, opacity, top","transition-duration: var(--anim-time)"],"animate-delay":"animation: delay calc(3 * var(--anim-time))","animate-expand":"animation: expand var(--anim-time)","animate-swipe":"animation: swipe var(--anim-time)","animate-toast":"animation: toast var(--anim-time)","animate-zoom":"animation: zoom var(--anim-time)","animate-fade":"animation: fade var(--anim-time)","aspect-wide":"aspect-ratio: 4 / 1","max-w-page":"max-width: var(--page-width)"},"Amidala Colours":{...di()},Layout:{"aspect-video":"aspect-ratio: 16 / 9","aspect-square":"aspect-ratio: 1 / 1","columns-1":"columns: 1","columns-2":"columns: 2","columns-3":"columns: 3","columns-4":"columns: 4",block:"display: block",inline:"display: inline","inline-block":"display: inline-block",flex:"display: flex","inline-flex":"display: inline-flex",grid:"display: grid","inline-grid":"display: inline-grid",contents:"display: contents",none:"display: none","object-contain":"object-fit: contain","object-cover":"object-fit: cover","overflow-auto":"overflow: auto","overflow-hidden":"overflow: hidden","overflow-visible":"overflow: visible","overflow-scroll":"overflow: scroll","overflow-x-auto":"overflow-x: auto","overflow-x-hidden":"overflow-x: hidden","overflow-x-visible":"overflow-x: visible","overflow-x-scroll":"overflow-x: scroll","overflow-y-auto":"overflow-y: auto","overflow-y-hidden":"overflow-y: hidden","overflow-y-visible":"overflow-y: visible","overflow-y-scroll":"overflow-y: scroll",static:"position: static",fixed:"position: fixed",absolute:"position: absolute",relative:"position: relative",sticky:"position: sticky",...B("top","top"),...B("right","inset-inline-end"),...B("bottom","bottom"),...B("left","inset-inline-start"),visible:"visibility: visible",invisible:"visibility: hidden","z-0":"z-index: 0","z-10":"z-index: 10","z-20":"z-index: 20","z-30":"z-index: 30"},"Flexbox & Grid":{"flex-row":"flex-direction: row","flex-row-reverse":"flex-direction: row-reverse","flex-col":"flex-direction: column","flex-col-reverse":"flex-direction: column-reverse","flex-wrap":"flex-wrap: wrap","flex-nowrap":"flex-wrap: nowrap","flex-1":"flex: 1 1 0%","flex-auto":"flex: 1 1 auto","flex-initial":"flex: 0 1 auto","flex-none":"flex: none",grow:"flex-grow: 1","grow-0":"flex-grow: 0",shrink:"flex-shrink: 1","shrink-0":"flex-shrink: 0","order-1":"order: 1","order-2":"order: 2","justify-center":"justify-content: center","justify-start":"justify-content: flex-start","justify-end":"justify-content: flex-end","justify-between":"justify-content: space-between","align-center":"align-content: center","align-start":"align-content: flex-start","align-end":"align-content: flex-end","items-center":"align-items: center","items-start":"align-items: flex-tart","items-end":"align-items: flex-end","grid-cols-1":"grid-template-columns: repeat(1, minmax(0, 1fr))","grid-cols-2":"grid-template-columns: repeat(2, minmax(0, 1fr))","grid-cols-3":"grid-template-columns: repeat(3, minmax(0, 1fr))","grid-cols-4":"grid-template-columns: repeat(4, minmax(0, 1fr))","grid-cols-5":"grid-template-columns: repeat(5, minmax(0, 1fr))","grid-cols-6":"grid-template-columns: repeat(6, minmax(0, 1fr))","grid-cols-7":"grid-template-columns: repeat(7, minmax(0, 1fr))","grid-cols-8":"grid-template-columns: repeat(8, minmax(0, 1fr))","grid-cols-9":"grid-template-columns: repeat(9, minmax(0, 1fr))","grid-cols-10":"grid-template-columns: repeat(10, minmax(0, 1fr))","grid-cols-11":"grid-template-columns: repeat(11, minmax(0, 1fr))","grid-cols-12":"grid-template-columns: repeat(12, minmax(0, 1fr))","col-span-1":"grid-column: span 1 / span 1","col-span-2":"grid-column: span 2 / span 2","col-span-3":"grid-column: span 3 / span 3","col-span-4":"grid-column: span 4 / span 4","col-span-5":"grid-column: span 5 / span 5","col-span-6":"grid-column: span 6 / span 6","col-span-7":"grid-column: span 7 / span 7","col-span-8":"grid-column: span 8 / span 8","col-span-9":"grid-column: span 9 / span 9","col-span-10":"grid-column: span 10 / span 10","col-span-11":"grid-column: span 11 / span 11","col-span-12":"grid-column: span 12 / span 12","col-start-1":"grid-column-start: 1","col-start-2":"grid-column-start: 2","col-start-3":"grid-column-start: 3","col-start-4":"grid-column-start: 4","col-start-5":"grid-column-start: 5","col-start-6":"grid-column-start: 6","col-start-7":"grid-column-start: 7","col-start-8":"grid-column-start: 8","col-start-9":"grid-column-start: 9","col-start-10":"grid-column-start: 10","col-start-11":"grid-column-start: 11","col-start-12":"grid-column-start: 12","grid-rows-2":"grid-template-rows: repeat(2, auto)","row-span-1":"grid-row: span 1 / span 1","row-span-2":"grid-row: span 2 / span 2","row-start-1":"grid-row-start: 1","row-start-2":"grid-row-start: 2","grid-flow-row":"grid-auto-flow: row","grid-flow-col":"grid-auto-flow: column",gap:"grid-gap: calc(5 * var(--space))","gap-x":"column-gap: calc(5 * var(--space))"},Spacing:{...B("p","padding"),...B("pt","padding-top"),...B("pr","padding-inline-end"),...B("pb","padding-bottom"),...B("pl","padding-inline-start"),...B("m","margin"),...B("mt","margin-top"),...B("mr","margin-inline-end"),...B("mb","margin-bottom"),...B("ml","margin-inline-start"),...B("space-x","margin-inline-end"," > *:not(:last-child)"),...B("space-y","margin-bottom"," > *:not(:last-child)")},Sizing:{...B("w","width"),...B("min-w","min-width"),...B("max-w","max-width"),"max-w-screen":"max-width: 100vw",...B("h","height"),...B("min-h","min-height"),...B("max-h","max-height"),"max-h-screen":"max-height: 100vh"},Typography:{"text-sm":"--font-size: 12px","text-base":"--font-size: 14px","text-lg":"--font-size: 16px","text-xl":"--font-size: 20px","text-2xl":"--font-size: 24px","text-3xl":"--font-size: 28px","text-4xl":"--font-size: 32px","text-5xl":"--font-size: 36px","text-6xl":"--font-size: 40px","text-7xl":"--font-size: 44px","text-8xl":"--font-size: 52px","text-9xl":"--font-size: 60px","text-10xl":"--font-size: 68px","tracking-tight":"letter-spacing: -0.025em","font-bold":"font-weight: 700","list-none":"list-style-type: none","text-center":"text-align: center","text-right":"text-align: right",underline:"text-decoration: underline",uppercase:"text-transform: uppercase","align-baseline":"vertical-align: baseline","align-top":"vertical-align: top","align-middle":"vertical-align: middle","align-bottom":"vertical-align: bottom","align-sub":"vertical-align: sub","align-super":"vertical-align: super","whitespace-normal":"white-space: normal","whitespace-nowrap":"white-space: nowrap","whitespace-pre-wrap":"white-space: pre-wrap","break-words":"word-break: break-words","break-all":"word-break: break-all",...Et("text")},Backgrounds:{...Et("bg"),"bg-bottom":"background-position: bottom","bg-center":"background-position: center","bg-left":"background-position: left","bg-left-bottom":"background-position: left bottom","bg-left-top":"background-position: left top","bg-right":"background-position: right","bg-right-bottom":"background-position: right bottom","bg-right-top":"background-position: right top","bg-top":"background-position: top","bg-repeat":"background-repeat: repeat","bg-no-repeat":"background-repeat: no-repeat","bg-repeat-x":"background-repeat: repeat-x","bg-repeat-y":"background-repeat: repeat-y","bg-repeat-round":"background-repeat: round","bg-repeat-space":"background-repeat: space","bg-auto":"background-size: auto","bg-cover":"background-size: cover","bg-contain":"background-size: contain"},Borders:{...mi(),"border-1":"border-width: 1px","border-4":"border-width: 4px","border-t-1":"border-top-width: 1px","border-t-4":"border-top-width: 4px","border-l-1":"border-inline-start-width: 1px","border-l-4":"border-inline-start-width: 4px","border-b-1":"border-bottom-width: 1px","border-b-4":"border-bottom-width: 4px","border-r-1":"border-inline-end-width: 1px","border-r-4":"border-inline-end-width: 4px","border-dashed":"border-style: dashed","border-solid":"border-style: solid","border-none":"border-style: none","outline-none":"outline: 2px solid transparent",...Et("border")},Effects:{shadow:"box-shadow: 0 2px 8px 0 hsla(var(--color-black-bg), 0.2)","opacity-0":"opacity: 0","opacity-10":"opacity: 0.1","opacity-20":"opacity: 0.2","opacity-30":"opacity: 0.3","opacity-40":"opacity: 0.4","opacity-50":"opacity: 0.5","opacity-60":"opacity: 0.6","opacity-70":"opacity: 0.7","opacity-80":"opacity: 0.8","opacity-90":"opacity: 0.9","opacity-100":"opacity: 1"},Transforms:{"scale-75":"transform: scale(0.75)","scale-102":"transform: scale(1.02)","rotate-180":"transform: rotate(180deg)"},Interactivity:{"appearance-auto":"appearance: auto","appearance-none":"appearance: none","cursor-pointer":"cursor: pointer","snap-mandatory":"scroll-snap-type: x mandatory","snap-start":"scroll-snap-align: start"},Accessibility:{"sr-only":["position: absolute;","width: 1px;","height: 1px;","padding: 0;","margin: -1px;","overflow: hidden;","clip: rect(0, 0, 0, 0);","border: 0;"]}},re=function(e,t){for(let o of Object.values(ui))for(let[n,i]of Object.entries(o)){let a=Array.isArray(i)?i.join(";"):i,l=t(n);e.push(`${l} {${a}}`)}},fi=function(){let e=[];e.push(":root, :host {");for(let[t,o]of Object.entries(ci))e.push(`${t}:${o};`);return e.push("}"),e.join(`
`)},pi=function(){let e=[];return re(e,t=>`.${t}`),re(e,t=>`.hover\\:${t.replace(/( |$)/,":hover$1")}`),re(e,t=>`.focus\\:${t.replace(/( |$)/,":focus$1")}`),e.push(`@media screen and (max-width: ${de-1}px) {`),re(e,t=>`.sm\\:${t}`),e.push("}"),e.push(`@media screen and (min-width: ${de}px) and (max-width: ${we-1}px) {`),re(e,t=>`.md\\:${t}`),e.push("}"),e.push(`@media screen and (min-width: ${we}px) {`),re(e,t=>`.lg\\:${t}`),e.push("}"),e.push("@media screen and (hover: none) {"),re(e,t=>`.to\\:${t}`),e.push("}"),e.push("@media screen and (hover: hover) {"),re(e,t=>`.ho\\:${t}`),e.push("}"),e.join(`
`)},hi=function(){return[fi(),Do,Ho,Wo,Uo,pi()].join(`
`)};function Me(e,t){let o=document.createElement("style");o.textContent=hi(),t?e.insertBefore(o,t):e.append(o)}var gi=':is(a, button, [role="button"], input, [tabindex]):not([tabindex="-1"])',_i={toastNonModal:{outer:"bg-bga text-txa bottom-0 left-0 right-0 animate-toast overflow-y-auto",inner:"m-auto max-w-page h-full",style:"max-height: 80%"},toast:{outer:"bg-bga text-txa bottom-0 left-0 right-0 animate-toast overflow-y-scroll",inner:"m-auto max-w-page h-full",style:"max-height: 80%"},full:{outer:"bg-bga text-txa bottom-0 left-0 right-0 top-0 h-full animate-toast overflow-y-scroll",inner:"m-auto h-full"},center:{outer:"lg:flex lg:items-center justify-center left-0 right-0 lg:top-0 bottom-0 lg:animate-fade md:animate-toast sm:animate-toast",inner:"overflow-y-auto max-h-screen bg-bga text-txa lg:rounded-xl lg:shadow relative md:overflow-y-scroll sm:overflow-y-scroll",_style:e=>`
      @media screen and (min-width: ${we}px) {
        #${e} > div { width: 500px }
      }
    `}},ye=0;function te(e){let t=I(null),{_show:o,children:n,_layout:i}=e,a=i!=="toastNonModal",l=i!=="full";if(T(()=>{a&&(l&&t?.current?.focus?.(),o?(ye+=1,ye===1&&ot(!1)):(ye-=1,ye=Math.max(ye,0),ye===0&&ot(!0)))},[o]),!o)return null;let s=_i[i??"toast"];return o&&r("div",{props:e,className:`fixed z-30 ${s.outer}`,role:"dialog",tabindex:a?0:null,ref:t,style:`box-shadow: 0 0 10px hsla(var(--color-black-bg), 0.2);${s.style||""}`,_style:s._style,onKeyDown(d){e?.onKeyDown?.(d);let m=t?.current?.querySelectorAll(gi);m&&a&&It(d,m[0],m[m.length-1])},children:r("div",{className:s.inner},n)})}var xi="Amidala: ",ne={};function x(e,...t){let n=ne[xi+e]||e;for(let i=0;i<t.length;++i)n=n.replace(new RegExp(`\\{${i}\\}`,"g"),t[i]);return n}var bi=2,vi=[3.25,2.25,1.25];function Ne(e){let t=I(null),o=e._count??vi,[n,i,a]=o,l=!o.every(Number.isInteger);return r("div",{props:{className:e.className},className:"flex flex-col w-full",style:"direction: ltr",children:[r("div",{className:"relative grow"},l&&r("div",{className:"none absolute left-0 top-0 bottom-0 w-6 bg-bga rounded-tr-lg rounded-br-lg animate-fade",style:"background: linear-gradient(90deg, hsl(var(--color-bga)), transparent); pointer-events: none"}),r("div",{ref:t,className:"w-full h-full overflow-x-scroll snap-mandatory overflow-y-hidden grid grid-flow-col gap",role:"list",onScroll(s){if(!l)return;let d=s.target;d.scrollLeft===0?d.parentElement.firstChild.classList.add("none"):d.scrollLeft>d.scrollWidth-d.offsetWidth-bi?d.parentElement.lastChild.classList.add("none"):(d.parentElement.firstChild.classList.remove("none"),d.parentElement.lastChild.classList.remove("none"))},_style:s=>`
            /* Firefox scrollbar cannot be styled, so hide it. */
            @-moz-document url-prefix() #${s} {
              scrollbar-width: none;
            }

            #${s} {
              background: linear-gradient(90deg, transparent, hsl(var(--color-bga)));
              grid-auto-columns: ${Tt(n)};
            }

            @media screen and (min-width: ${de}px) and (max-width: ${we-1}px) {
              #${s} { grid-auto-columns: ${Tt(i)}; }
            }

            @media screen and (max-width: ${de-1}px) {
              #${s} { grid-auto-columns: ${Tt(a)}; }
            }

            #${s}::-webkit-scrollbar {
              height: 24px;
              background: transparent;
            }

            #${s}::-webkit-scrollbar-track {
              background: transparent;
              border-bottom: solid 4px hsla(var(--color-txa), 0.1);
            }

            #${s}::-webkit-scrollbar-thumb {
              background: transparent;
              border-bottom: solid 4px hsl(var(--color-bgb));
            }

            #${s} > div > * { height: 100%; }

            /* Restore the RTL direction for slide content. */
            [dir="rtl"] #${s} > div { direction: rtl; }
          `,children:(e.children??[]).map((s,d)=>r("div",{id:`#slide-${d}`,role:"listitem",tabindex:0,className:"snap-start h-full",children:s}))}),l&&r("div",{className:"absolute right-0 top-0 bottom-0 w-6 bg-bga rounded-tl-lg rounded-bl-lg animate-fade",style:"background: linear-gradient(90deg, transparent, hsl(var(--color-bga))); pointer-events: none"})),r("div",{className:"gap flex justify-end mt-5"},r(y,{_model:{name:x("Previous slide"),icon:Q},_textless:!0,tabindex:-1,"aria-hidden":!0,onClick:()=>Go(t,-1)}),r(y,{_model:{name:x("Next slide"),icon:j},_textless:!0,tabindex:-1,"aria-hidden":!0,onClick:()=>Go(t)}))]})}function Tt(e){return`calc((100% - ${Math.ceil(e)-1} * 20px) / ${e})`}function Go(e,t=1){let o=e?.current,n=o?.firstChild?.offsetWidth??0,i=o?.scrollLeft??0;o?.scroll({left:i+t*n,behavior:"smooth"})}function Fo(e){return r("textarea",{props:e,style:"resize: vertical",className:"pal-brand1 block rounded-lg bg-bga text-txa border-txa w-full p-4 border-solid border-1 border-opacity-20 h-36"})}function H(e){let t=new Date(e._time||Date.now()),o=document.documentElement.lang||navigator.language,n={year:"numeric",month:"short",day:"numeric"};return r("time",{props:e,className:"block text-txa text-opacity-80",datetime:t.toISOString(),children:t.toLocaleDateString(o,n)})}function rt(e){let{src:t}=u(e);return t?r("div",{props:e,className:"w-full radius-lg overflow-hidden",children:r(self.origin===new URL(t,self.origin).origin?yi:wi,e)}):null}function wi(e){let{src:t,caption:o,autoplay:n}=u(e),i=new URL(t),a=t.replace(/https:\/\/(?:www\.)?(?:youtube\.com|youtube-nocookie\.com)\/embed\/([a-z0-9-_]{11})/i,"$1");return i.searchParams.set("enablejsapi",1),a&&n&&(i.searchParams.set("autoplay",1),i.searchParams.set("playsinline",1),i.searchParams.set("loop",1),i.searchParams.set("mute",1),i.searchParams.set("controls",0),i.searchParams.set("playlist",a)),r("iframe",{id:M(),className:`block w-full h-full ${oe(e._ratio||"16x9")}`,loading:"lazy",src:i.href,title:o,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}function yi(e){let{src:t,caption:o,autoplay:n}=u(e),{href:i}=V({href:t}),a=x("Pause playback"),l=x("Resume playback"),[s,d]=_({id:M(),icon:Lt,text:a}),m=I(null);return r("div",{className:"relative w-full h-full"},r("video",{id:s.id,ref:m,autoplay:n,className:`block h-full w-full object-cover ${oe(e._ratio)}`,controls:!n,title:o,loop:n,muted:n,playsinline:n,children:r("source",{src:i})}),n&&r(y,{_variant:"plain",_textless:!0,_size:"sm",_color:"transparent",_model:{name:s.text,icon:s.icon},onClick:()=>{m.current.paused?(m.current.play(),d({...s,icon:Lt,text:a})):(m.current.pause(),d({...s,icon:$o,text:l}))},className:"absolute top-4 right-4 z-10 cursor-pointer"}))}var Vo=_t(null);function Pe(e=!1){let t=wt(Vo),[o,n]=_({});return[e||!t?{getSetting:a=>o[a],setSetting:(a,l)=>n({...o,[a]:l})}:t,Vo]}var Rt="amidala.settings",qo=!0,nt=[];function it(){let e={};try{e=JSON.parse(localStorage.getItem(Rt)||"{}")}catch{}return e}function Oe(e){localStorage.setItem(Rt,JSON.stringify(e));for(let t of nt)t(e)}var Ni=e=>()=>{window.localStorage.getItem(Rt)!==JSON.stringify(e.current)&&Oe(it())};function ue(){let e=I(),[t,o]=_(it),n=I(t),i=a=>{n.current=a,o(a)};return T(()=>{e.current=qo,qo=!1,i(t),nt.push(i);let a=Ni(n);return e.current&&window.addEventListener("storage",a),()=>{e.current||nt.splice(nt.indexOf(i),1)}},[]),[t,Oe]}var ki=1280,Li=720;function v(e){let{image:t,video:o}=u(e),n={};return e._decorative&&(n.role="presentation",n._textless=!0,t.alt="",o.alt=""),t.src?.endsWith?.("svg")?r(ce,{props:e,...n,_model:t}):r(Ci,e,o.src?r(rt,{props:e,...n,_model:o}):r(be,{props:e,...n,_model:t}))}function Ci(e){let[t]=Pe(),[o]=ue();if(!(o.lowCarbonMode&&!t.getSetting("isLowCarbonModeAssetRevealed")))return e.children;let i=u(e),a=Co.replace(/width="[^"]+" height="[^"]+"/,`width="${i.image.width||ki}" height="${i.image.height||Li}"`);return r("div",{props:e,className:`relative w-full ${oe(e._ratio)}`},r(ce,{_model:{src:a}}),r(y,{_variant:"plain",_textless:!0,_size:"sm",_color:"transparent",_model:{icon:Eo},onClick:l=>{l.stopPropagation(),t.setSetting("isLowCarbonModeAssetRevealed",!0)},onKeydown:l=>l.code==="Enter"&&l.target.click(),className:"absolute top-4 right-4 z-10 cursor-pointer"}))}function C(e){let{text:t}=u(e);if(t){let n=new DOMParser().parseFromString(t,"text/html");return r("div",{...e,_style:i=>`
        #${i} :is(h1, h2, h3, h4, h5, h6):not(:first-child) {
          margin-top: calc(6 * var(--space));
        }

        #${i} :is(h1, h2, h3, h4, h5, h6, p, ol, ul, dd, table, pre, time, hr, div):not(:last-child) {
          margin-bottom: calc(2 * var(--space));
        }
      `,children:[...n.body.childNodes].map(i=>Ko(i))})}return null}function Ko(e){if(e.nodeType===Node.ELEMENT_NODE){let t=[...e.childNodes].map(i=>Ko(i)),o=e.tagName.toLowerCase(),n=e.getAttributeNames().reduce((i,a)=>(["style","class"].includes(a)||(i[a]=e.getAttribute(a)),i),{id:e.id||void 0});if(o==="a"){let i={value:e.getAttribute("href")};return t.length===1&&typeof t[0]=="string"&&(i.name=e.text),r(b,{...n,name:e.name||void 0,target:e.target||void 0,children:t,_model:i,_variant:"underline"})}return o==="table"?r("div",{className:"overflow-x-auto"},r(o,n,t)):r(o,n,t)}return e.data}function at(e){let t=u(e),{title:o,text:n,tags:i,links:a,asset:l}=t,s=[];if(o&&s.push({name:"title",value:o}),n&&s.push({name:"text",value:r(C,{_model:t})}),i.length>0&&s.push({name:"tags",value:i.map(m=>m.name).join(", ")}),s.push(...a.map((m,f)=>({name:`link\xA0${f+1}`,value:r(b,{_model:{...m,name:`${m.name} (${m.value})`}})}))),s.length<1)return r(g,{props:e,className:"text-sm bg-bga text-txa"},"No data");let d=l?.src;return r("div",{props:e,className:"grid gap grid-cols-12 pl-6 pr-6 pt-4 pb-4 text-sm bg-bga text-txa w-full"},r("div",{className:d?"col-span-10":"col-span-12"},r("table",s.map(m=>r("tr",[r("th",{className:"pt-1 pb-1"},m.name),r("td",{className:"pt-1 pb-1",children:m.value})])))),d&&r("div",{className:"col-span-2"},r(v,{_model:t,className:"rounded-lg"})))}function U(e){let{links:t}=u(e),{_variant:o}=e;return t.length===0?null:t.length===1&&!o?r(y,{_model:t[0]}):r("div",{role:"list",className:"space-y-2"},t.map(n=>r("div",{role:"listitem"},r(b,{_model:n,_variant:o??"full"}))))}function ke(e){let{tags:t}=u(e);return t.length===0?null:r("div",{role:"list",className:"flex flex-wrap",style:"gap: 8px"},t.map(o=>r("div",{className:"flex items-center",role:"listitem"},r(b,{_variant:"tag",_model:o}))))}function z(e){let t=u(e),{title:o,text:n,date:i,links:a}=t,l=a.length>0;return(n||o||l)&&r(g,{props:e},o&&r(N,{_level:"3"},o),i&&r(H,{_time:i}),r(C,{_model:{text:n}}),r(U,e),r(ke,{_model:t}))}function Le(e){let{links:t}=u(e);e._level=e._level||0;let o="w-full";return e._level===0&&(o+=" pt-1 pb-1"),r("div",{props:e,role:"list",className:o},t.map((n,i)=>r("div",{role:"listitem"},r(Si,{props:e,className:i===0?"font-bold":void 0,_model:n}))))}function Si(e){let t=u(e),{children:o,name:n,value:i}=t,{_level:a}=e,[l,s]=_({ownerId:M(),ownedId:M(),isVisible:!1}),d={id:l.ownedId,role:"tabpanel","aria-labelledby":l.ownerId,className:"animate-expand"},m={...e,_selection:"right",id:l.ownerId},f={};if(o){let c=o.slice();c.unshift({name:x("Go to: {0}",n),value:i}),f._model={links:c},f._level=a+1,m.role="tab",m.href="#",m._expanded=l.isVisible,m["aria-expanded"]=l.isVisible.toString(),m["aria-controls"]=l.ownedId,m.onClick=h=>s({...l,isVisible:!l.isVisible})||h.preventDefault()}return[r(W,m),o&&l.isVisible&&r("div",d,[r(Le,f)])]}function Zo(e){let t=u(e,f=>f.title);if(!t)return null;let o={},n=e._variant==="faq";n&&(o.question={itemscope:"",itemtype:"https://schema.org/Question"},o.name={itemprop:"name"},o.answer={itemscope:"",itemtype:"https://schema.org/Answer",itemprop:"acceptedAnswer"},o.text={itemprop:"text"});let{title:i,links:a}=t,l=a?.[0]?.icon,s=D(()=>({title:e.id??me(i),owner:M(),owned:M()}),[]),[d,m]=_(()=>window.location.hash?.substring?.(1)===s.title);return r("div",{props:e,className:"bg-bga text-txa w-full rounded-2xl relative border-txa border-solid border-1 border-opacity-20",...o.question,children:[r("div",{className:"flex"},r("button",{className:"clickable w-full flex items-center space-x-2 pl-6 pr-6 pt-3 pb-3 cursor-pointer rounded-2xl relative z-10",id:s.owner,onClick:()=>m(!d),"aria-controls":s.owned,"aria-expanded":d,children:[l&&r("div",r("div",{className:"bg-bgb text-txb w-10 h-10 flex items-center justify-center rounded-full"},r(E,l))),r(N,{...o.name,_level:"3",id:s.title,className:"grow text-txc text-xl font-header",children:i}),r("div",{className:"shrink"},r(E,{_size:"sm",className:d?"rotate-180":""},Ze))]})),d||n?r("div",{className:`animate-expand space-y-5 rounded-bl-2xl rounded-br-2xl overflow-hidden ${d?"":"none"}`,id:s.owned,"aria-labelledby":s.owner,...o.answer,children:r("div",{...o.text},r(Ii,e))}):r("div",{id:s.owned,className:"none","aria-labelledby":s.owner})]})}function Ii(e){let{text:t,links:o,image:n,video:i}=u(e);return t||n.src||i.src||o.length>0?r(g,r(v,{className:"rounded-lg",_decorative:!0,_model:{image:n,video:i}}),r(C,{_model:{text:t}}),o&&r(U,{_variant:"full",_model:{links:o.filter(l=>l.name).map(l=>({...l,icon:null}))}})):e.children}function Yo(e){let t=u(e),{src:o,caption:n}=t.video;return r(g,{props:e,className:"bg-bga text-txa border-txa w-full rounded-2xl flex"},r("figure",{className:"w-full space-y-2"},n&&r(N,{_level:4},n),r("audio",{controls:!0,src:o,className:"w-full block"})))}function Xo(e){let t=u(e,i=>i.links.length>0);if(!t)return null;let{image:o,links:n}=t;return r(g,{props:e,className:"bg-bga text-txa border-txa rounded-2xl overflow-hidden"},r("div",{className:"flex flex-row space-x-3"},o.src&&r("div",{className:"shrink-0 w-12 h-12 rounded-full overflow-hidden"},r(be,{className:"h-full",_model:o,_textless:!0})),r("div",{className:"grow space-y-2"},r("div",{className:"font-header text-lg"},...n.flatMap(i=>[i.value?r(b,{_model:i}):i.name,", "]).slice(0,-1)),r(C,{_model:t}))))}var Ei=200,$i=100;function Jo(e){let o={name:x("Back to top"),icon:Io},n=()=>window.scrollY>=Ei,[i,a]=_(n());return T(()=>{let l;window.addEventListener("scroll",()=>{l!==null&&clearTimeout(l),l=setTimeout(()=>{n()?i||a(!0):i&&a(!1)},$i)})}),r("div",{props:e},i&&r(y,{_textless:!0,_variant:"plain",_model:o,className:"fixed right-6 bottom-6 border-1 border-solid bg-bga border-txa border-opacity-20 animate-expand",onClick(){window.scrollTo(0,0),location.hash="#"}}))}function Ai(e){let{links:t}=u(e),o=[];for(let n=0;n<t.length;++n){let{[n]:i}=t,a=n===t.length-1,l=n===t.length-2,s={className:l?void 0:"sm:none md:none",itemscope:"",itemtype:"http://schema.org/ListItem",itemprop:"itemListElement"},d={"aria-current":a?"page":null,itemprop:"name",_variant:"simple",_model:i};l&&o.push(r("li",{className:"lg:none","aria-hidden":!0},r(E,{_size:"xs",_rtlFlip:!0},Q))),o.push(r("li",s,r("span",{itemprop:"item"},r(b,d)),r("meta",{itemprop:"position",content:n+1}))),a||o.push(r("li",{className:"sm:none md:none","aria-hidden":!0},r(E,{_size:"xs",_rtlFlip:!0},j)))}return r("nav",e,r("ol",{className:"flex items-center p-0 list-none space-x-2",itemscope:"",itemtype:"http://schema.org/BreadcrumbList",children:o}))}function Qo(e){let t=u(e);return r("div",{props:e,className:"text-sm w-full pl-6 pr-6 pt-2 pb-2 min-h-9 m-auto max-w-page",children:t.links.length>1&&r(Ai,{_model:t})})}var Ti=3,Ri=6,Mi=2;function er(e){let t=u(e,s=>s.links.length>0);if(!t)return null;let{_variant:o}=e,n=t.links.slice(0,Ti),i=o==="stacked",a=i?null:Ri+1-Mi*n.length,l=`sm:space-y-5 md:space-y-5 ${i?"space-y-5":"lg:grid grid-cols-12 gap-x"}`;return r(g,{...e,className:"bg-bga text-txa rounded-2xl overflow-hidden"},r("div",{className:l},n.map((s,d)=>r("div",{className:`w-full col-span-4 col-start-${d===0?a:"0"}`},r(y,{_model:s,className:"w-full"})))))}var Pi=864e7,tr=12,Mt=12;function or(e){return e<10?1:2}function fe(e){let t=e._parentColspan??Mt,o=e._wrap||[],n=e.children.map((i,a)=>{let l=o[a],s=Math.min(t,l?.colspan??Mt),d=Math.min(t,l?.colstart??0),m=d?`lg:col-start-${d}`:"";return d===1&&(m+=" md:col-start-1"),r("div",{...e._childAttrs,className:`lg:col-span-${s??Mt} md:col-span-${or(s)} sm:col-span-1 ${m}`,children:i})});return r(e._tag||"div",{props:e,children:n,className:`grid lg:grid-cols-${t} md:grid-cols-${or(t)} sm:grid-cols-1`})}function Oi(e){return r("div",{props:e,className:"text-txa bg-bga",children:r(fe,{...e,_tag:"header"})})}function Bi(e){return r("div",{props:e,className:"text-txa bg-bga border-txa border-solid border-opacity-20 border-t-1 pt-12 pb-12",children:r(fe,{...e,_tag:"footer",className:"max-w-page m-auto pl-3 pr-3"})})}function zi(e){return r(fe,{...e,_tag:"main",id:"main"})}function rr(e){let{_model:t}=e;return r("div",{props:e,className:"text-txa bg-bga grid grid-cols-1",_style:o=>`
      :first-child > #${o} > div {
        padding-top: 0;
      }
    `,children:[t?.image?.src&&r(v,{_model:t,_decorative:!0,className:"row-start-1 col-start-1 col-span-12"}),r("div",{className:"relative max-w-page m-auto w-full row-start-1 col-start-1 pl-3 pr-3 pt-12 pb-12"},(t.title||t.text)&&r(g,{className:"mb-5"},t.title&&r(N,{_level:2,className:"text-center"},t.title),t.text&&r(C,{_model:t})),r(fe,{...e,_tag:"section",className:"gap"}))]})}function Di(e){return r(fe,{...e,className:"gap",_color:void 0})}function Hi(e){return r(fe,{...e,_color:void 0})}function Wi(e){return r(fe,{...e,_color:void 0,role:"list",className:"gap",_childAttrs:{role:"listitem"}})}function Ui(e){let t=u(e,s=>s.title);if(!t)return null;let{title:o}=t,[n,i]=ue();n.experiments||={};for(let s in n.experiments)new Date(n.experiments[s].date).getTime()+Pi<Date.now()&&delete n.experiments[s];n.experiments[o]||(n.experiments[o]={index:Math.floor(Math.random()*(e?.children?.length??0)),date:new Date().toISOString()},i(n));let a=n.experiments[o].index,l=e?.children?.[a];return r("div",{"data-experiment":`${o} | ${a+1}`,className:"h-full",children:l})}function ji(e,t,o){let n=[],i=[];if(Object.keys(o).length===0)n.push(...e),i.push(...t);else for(let a=0;a<e.length;++a){let l=e[a],s=l?.props?._model?.tags??[];Object.entries(o).every(([m,f])=>s.some(c=>c.name===m&&c.value.toString()===f))&&(i.push(t[a]),n.push(l))}return[n,i]}function Gi({name:e,selectedValue:t,values:o}){return r("label",{className:"block grow"},r("span",{className:"font-bold"},e),r(Y,{type:"select",onChange:n=>{let i=new URLSearchParams(location.hash.substring(1));i.set(e,n.target.value),location.hash=i.toString()},children:[r("option"),o.map(n=>r("option",{value:n,selected:n.toString()===t},n))]}))}function Fi({labels:e}){let t=new URLSearchParams(location.hash.substring(1));return Object.keys(e).forEach(o=>t.set(o,"")),r(b,{_variant:"underline",_model:{name:x("Reset filters"),value:`#${t.toString()}`}})}function Vi(e){let t=u(e),o=e.children??[],n=e._wrap??[],i=D(()=>{let c={};return o.forEach(h=>{h?.props?._model?.tags?.forEach?.(p=>{c[p.name]||=new Set,c[p.name].add(p.value)})}),c}),a=D(()=>t?.tags?.filter?.(c=>i[c.name])?.map?.(c=>c.name)),[l,s]=_({wrap:n,children:o,selected:{},limit:tr}),d=()=>{let c=new URLSearchParams(location.hash.substring(1)),h={};for(let[R,L]of c)i[R]&&L&&(h[R]=L);let[p,w]=ji(o,n,h);s({wrap:w,children:p,selected:h,limit:l.limit})};K(()=>{d(),window.addEventListener("hashchange",d)},[]);let m=l.wrap.slice(0,l.limit),f=l.children.slice(0,l.limit);return f.length===0&&(m.push({colspan:12}),f.push(r("p",x("No results found.")))),a.length>0&&(m.unshift({colspan:12}),f.unshift(r("div",{className:"space-y-5"},r("div",{className:"flex gap sm:flex-col"},a.map(c=>r(Gi,{name:c,selectedValue:l.selected[c],values:[...i[c]].sort((h,p)=>h.localeCompare(p))}))),r(Fi,{labels:i})))),l.children.length>l.limit&&(f.push(r("div",{className:"flex justify-center"},r(y,{className:"w-auto",onClick:()=>{s({...l,limit:l.limit+tr})},_model:{name:x("Load more")}}))),m.push({colspan:12})),r(rr,{...e,_wrap:m,children:f})}function nr(e){return r({header:Oi,footer:Bi,main:zi,section:rr,filtered:Vi,raw:Hi,list:Wi,abtest:Ui}[e._variant]||Di,e)}var ir=document.documentElement.getAttribute("data-mode"),ie=ir==="publish",ar=ir==="edit";function lr(e){let{title:t}=u(e);return ie?null:r("div",{props:e,className:"pal-system-solid bg-bga text-txa pl-6 pr-6 pt-4 pb-4 text-sm"},r("span",{className:"font-bold"},"Owner: "),t)}function sr(e){let t=u(e,i=>i.date&&i.title);if(!t)return null;let{date:o}=t,{_variant:n}=e;return r("div",{props:e,className:"bg-bga text-txa border-txa flex border-solid border-opacity-20 rounded-2xl"},r(g,{className:"relative grow-0 shrink-0 w-36",children:r(H,{_time:o}),_style:i=>{let a=[];return a.push(`
          #${i}::before {
            content: '';
            box-sizing: border-box;
            position: absolute;
            width: 1px;
            height: calc(100% + 20px); /* Extend by the gap size. */
            border-right: 1px dashed hsl(var(--color-txa));
            top: 0px;
            right: 0px;
            z-index; 10;
        }`),n==="timeline"&&a.push(`
          #${i}::after {
            content: '';
            box-sizing: border-box;
            position: absolute;
            width: 17px;
            height: 17px;
            border: 3px solid hsl(var(--color-bga));
            background-color: hsl(var(--color-txa));
            box-shadow: 0 0 0 1px hsl(var(--color-txa));
            border-radius: 100%;
            top: 27px;
            z-index: 10;
            right: -9px;
          }`),a.join("")}}),r("div",{className:"grow",children:r(z,{_model:{...t,date:null}})}))}function cr(e){let t=u(e,h=>h.text&&h.title&&h.links.length>0);if(!t)return null;let{image:o,links:n,title:i}=t,[a,l]=_(""),s=n[0],d=o.src,m={type:"search",placeholder:s.name,title:x("Enter your search term"),onInput:h=>l(h.target.value),value:a},f={_textless:!0,_model:{name:x("Submit"),icon:Xe},type:"submit",onClick:h=>{h.preventDefault();let p=s.value+encodeURIComponent(a);window.location.href=p}},c=r("form",{action:s.value},r(g,{className:"lg:rounded-xl bg-bga text-txa"},r(N,{_level:3},i),r(C,{_model:t}),r("div",{className:"flex space-x-5"},r("div",{className:"grow"},r(Y,m)),r("div",{className:"shrink"},r(y,f)))));return d?r("div",{props:e,className:"relative overflow-hidden rounded-2xl"},r(v,{_model:t,_decorative:!0}),r("div",{className:"lg:absolute lg:top-6 lg:left-0 lg:right-0 lg:grid lg:grid-cols-12 lg:gap"},r("div",{className:"lg:col-start-2 lg:col-span-10 lg:bg-opacity-90"},c))):r("div",{props:e,className:"rounded-2xl overflow-hidden w-full"},c)}function Pt(e){let{_model:t}=e,{tags:o}=t;if(!o)return null;let n={};for(let a of o)n[a.name]||=[],n[a.name].push(a.value);let i=Object.entries(n);return[r("hr",{className:"mb-2"}),i.map(([a,l])=>r("dl",{className:"col-span-1 text-sm flex space-y-19"},r("dt",{className:"font-bold min-w-24"},`${a}`),r("dd",l.join(", "))))]}function qi(e){let t=u(e),{asset:o}=t,n={...t,tags:void 0};return r("div",{props:e,className:"bg-bga text-txa h-full rounded-2xl overflow-hidden flex flex-col"},o?.src&&r("div",r(v,{_decorative:!0,_model:t})),r(z,{_model:n,_color:e._color,className:"grow"}),r("div",{className:"pl-6 pr-6 pb-6"},r(Pt,e)))}function mr(e){if(e._variant!=="popup")return r(qi,e);let t=u(e,l=>l.title);if(!t)return null;let[o,n]=_(!1),{asset:i,date:a}=t;return r("div",{props:e,className:"h-full"},r(b,{className:"block bg-bga text-txa rounded-2xl overflow-hidden h-full transition cursor-pointer hover:raise transition animate-fade",tabindex:0,onClick:l=>{l.preventDefault(),n(!0)},children:r("div",{className:"bg-bga text-txa h-full rounded-2xl overflow-hidden flex flex-col"},i?.src&&r("div",r(v,{_decorative:!0,_model:t})),r("div",{className:"p-6 grow space-y-2"},r(N,{_level:3},t.title),a&&r(H,{_time:a})),r("div",{className:"pl-6 pr-6 pb-6"},r(Pt,e)))}),r(te,{_color:e._color,_layout:"toast",_show:o},r("div",{className:"pt-2 pb-2 pl-6 pr-6 flex justify-end"},r(y,{_variant:"plain",_textless:!0,_size:"xs",_model:{value:"#",icon:Z,name:x("Close")},className:"cursor-pointer shrink-0 order-1",onClick:l=>{l.preventDefault(),n(!1)}})),r("div",{className:"pl-6 pr-6 pb-6 grid gap grid-cols-2 sm:grid-cols-1"},i?.src&&r("div",r(v,{_decorative:!0,_model:t,className:"rounded-xl overflow-hidden"})),r("div",{className:"space-y-5"},r(N,{_level:3},t.title),a&&r(H,{_time:a}),r(C,{_model:t}),r(U,{_model:t})),r("div",r(Pt,e)))))}function dr(e){let t=u(e,n=>n.title&&n.links.length>0);if(!t)return null;let{title:o}=t;return r(g,{props:e,className:"text-sm h-full"},r(N,{_level:2,className:"text-xl"},o),r(U,{_model:t,_variant:"simple"}))}function ur(e){let[t,o]=_({index:null,layout:"overview",title:e._model?.title,color:e._color});return r("div",{props:e},r(Yi,{state:t,setState:o},e.children),r(Ji,{state:t,setState:o},e.children),r(Zi,{state:t,setState:o},e.children))}function fr(e,t){e.key==="Escape"&&t({layout:"overview",index:null})}function pr(e){let t={className:"clickable relative transition hover:scale-102 focus:scale-102 outline-none rounded-2xl overflow-hidden",role:"button",tabindex:0,ref:e.ref,onClick:e.onClick,onKeyDown:o=>o.key==="Enter"&&o.currentTarget.click()};return r("div",t,r(v,{...e.assetProps,_textless:!0,className:"h-full"}),e.text&&r("div",{className:"absolute top-0 left-0 right-0 bottom-0 flex items-center justify-center pal-transparent bg-opacity-0 text-txa",children:r("div",{className:"font-header text-3xl"},e.text)}))}function Ki(e){let{index:t,total:o}=e,{image:n}=u(e),i={...e,_fit:"contain",id:`slide-${t+1}`};return r(v,i,r("div",{className:"bg-bga flex"},r(g,{className:"grow space-x-5"},r("span",{className:"font-bold"},`${t+1} / ${o}`),r("span",n?.caption))))}function hr(e){return r("div",{className:"fixed top-0 p-3 z-20 bg-bga rounded-bl-2xl animate-delay",style:"inset-inline-end: var(--scrollbar-width, 0)",children:r(y,{ref:e.forwardRef,onClick:e.onClick,_textless:!0,_model:{name:x("Close"),icon:Z}})})}function Zi(e){let{state:t,setState:o}=e,n=5,i=n-1,a={sm:1,md:2,lg:4},l=e?.children?.filter(s=>s?.props?._model?.image?.src);return l.length>0&&r("div",{role:"list",className:"grid gap grid-cols-4 grid-rows-2"},...l.slice(0,n).map((s,d)=>{let m=d===i&&l.length>n,f=d===0?a.md:a.sm,c=d===0?a.lg:a.sm,h=m?()=>o({...t,layout:"list",index:null}):()=>o({...t,index:d});return r("div",{role:"listitem",className:`lg:row-span-${f} lg:col-span-${f} md:row-span-${f} md:col-span-${f} sm:col-span-${c} cursor-pointer`,children:r(pr,{assetProps:{...s.props,_ratio:"1x1"},onClick:h,text:m?`+${l.length-n}`:void 0})})}))}function Yi(e){let{state:t,setState:o}=e,n=I(null),i=I(null),a=t.layout==="list";return T(()=>{a&&t.index===null&&n?.current?.base?.focus?.()},[a,t.index===null]),r(te,{_layout:"full","aria-label":t.title,_show:a,className:"overflox-y-scroll",onKeyDown:l=>fr(l,o),children:[r(hr,{forwardRef:n,onClick:()=>o({layout:"overview",index:null})}),r("div",{className:"max-w-page m-auto lg:columns-4 md:columns-3 sm:columns-2 gap-x space-y-5 p-3",role:"list",children:[e.children.map((l,s)=>r("div",{role:"listitem"},r(pr,{assetProps:l.props,ref:s===e.children.length-1&&i,onClick:()=>o({...t,index:s})}))),r("div",{className:"none"})]})]})}function Xi(e){window.location.hash=`slide-${e+1}`}function Ji(e){let{state:t,setState:o}=e,n=I(null),i=I(null),a=t.index!==null;return T(()=>{a&&n?.current?.base?.focus?.()},[a]),K(()=>{a&&Xi(t.index)},[a]),r(te,{"aria-label":t.title,_color:t.color,_layout:"full",_show:a,onKeyDown:l=>fr(l,o),className:"overflow-y-scroll p-3",children:[r(hr,{forwardRef:n,onClick:()=>o({...t,index:null})}),r(Ne,{className:"h-full",_count:[1,1,1],children:e.children.map((l,s)=>r(Ki,{...l.props,total:e.children.length,index:s,ref:s===e.children.length-1&&i}))})]})}function gr(e){let t=u(e,n=>n.links.length>0);if(!t)return null;let{links:o}=t;return r(g,{props:e},r("div",{className:"flex flex-wrap gap",role:"list"},o.map(n=>r("div",{role:"listitem"},r(b,{_variant:"simple",_model:n,className:"text-sm"})))))}function _r(e){let t=u(e,o=>o.title&&(o.asset.src||o.links[0]?.icon));return t?r("div",{props:e,className:"bg-bga text-txa border-txa border-solid border-opacity-20 h-full w-full rounded-2xl overflow-hidden",children:r("div",{className:"flex"},r(Qi,{_model:t}),r("div",r(z,{className:"pl-5",_model:{...t,links:t.links.filter(o=>o.name).map(o=>({...o,icon:null}))},_variant:"full"})))}):null}function Qi({_model:e}){let{links:t,asset:o}=e,n=o.src,i=t[0]?.icon;return n?r("div",{style:"width: 35%",className:"shrink-0 pl-6 pt-6 pb-6",children:r(v,{_model:e,_decorative:!0,className:"rounded-lg overflow-hidden"})}):r("div",{className:"shrink-0 pl-6 pt-6 pb-6"},r("div",{className:"bg-bgb text-txb w-16 h-16 flex items-center justify-center rounded-full"},r(E,i)))}function xr(e){let t=u(e,l=>l.title);if(!t)return null;let{title:o}=t,[n,i]=ue(),a=()=>i({...n,lowCarbonMode:!n.lowCarbonMode});return r(g,{props:e,className:"bg-bga text-txa rounded-2xl"},r("label",{className:"space-x-2 inline-flex items-center cursor-pointer"},r(Y,{type:"checkbox",checked:n.lowCarbonMode,onClick:a}),r("span",o)))}function br(e){return ie?null:r(at,{...e,_color:"system-solid"})}function Ce(e,t=!0){let o=null;for(let n of e){n.selected=!1;let a=new URL(n.value,self.origin).href,l=a.replace(/\.html$/,"/"),s=`${location.origin+location.pathname}`===a;!location.href.startsWith(l)&&!s||(t&&(o&&(o.selected=!1),o=n),n.selected=!0,Ce(n.children||[],!1))}}var ea="highlight-2",Ot=3;function vr({id:e,link:t,onFlyoutClose:o}){return r("div",{id:e,className:"bg-opacity-100 absolute bg-bga border-txa border-solid border-b-1 border-t-1 border-opacity-20 left-0 top-full z-20 w-full overflow-y-scroll text-sm",style:"height: min(526px, calc(100vh - 200px))"},r("div",{className:"max-w-page m-auto h-full"},r(ra,{link:t,onClick:o}),r("div",{className:"relative min-h-full"},r("div",{className:"grid grid-cols-12 grid-rows-2 grid-flow-col",children:r(wr,{level:0,link:t})}))))}function wr({id:e,level:t,link:o,setNavContentIds:n}){let[i,a]=_(null),[l,s]=_(),d=I(),m=I();n&&!d.current&&!m.current&&(d.current=M(),m.current=M(),n(`${d.current} ${m.current}`));let f=t*Ot+1,c=t!==0?"animate-swipe":"";return r("div",{id:e,className:"contents"},[r("div",{className:`row-start-1 col-start-${f} col-span-3 ${c}`,id:d.current},r("div",{className:"border-l-4 border-solid border-bgb border-opacity-0 pt-6 pb-6 pl-4 pr-4 space-y-2"},r(N,{_level:Ot},o.name),r(b,{_variant:"bold",_model:{...o,name:x("Go to: {0}",o.name)}}))),r("div",{className:"sr-only",role:"list","aria-owns":l,id:m.current}),r(ta,{link:o,level:t,expandedIndex:i,setExpandedIndex:a,setNavLinkWrapperIds:s,colstart:f,animate:c})])}function ta({link:e,level:t,expandedIndex:o,setExpandedIndex:n,setNavLinkWrapperIds:i,colstart:a,animate:l}){let[s,d]=_([]),[m,f]=Bt(),c=e?.children??[];return T(()=>{let h=[];for(let p=0;p<c.length;++p){let w=m(p);h.push(r(oa,{children:c,index:p,level:t,expandedIndex:o,setExpandedIndex:n,id:w,colstart:a,animate:l}))}d(h),i(f.join(" "))},[c.length,o,f.length]),r("div",{className:"contents",role:"list"},s)}function oa({children:e,index:t,level:o,expandedIndex:n,setExpandedIndex:i,id:a,colstart:l,animate:s}){let[d,m]=_(""),[f]=Bt(),[c]=Bt(),h=e[t],p=o<Ot&&t===e.length-1&&"border-r-1 border-solid border-txa border-opacity-20",w=n===t,R=!!h.children,L=R&&c()||void 0,k={className:`h-full ${w?ea:""}`,...R?{_model:{...h,icon:j},role:"button","aria-expanded":w,"aria-controls":L,onClick:G=>{G.preventDefault(),w?i(null):(i(t),G.target.closest(".overflow-y-scroll").scrollTop=0)}}:{_model:{...h},...na(h)}},S=`col-start-${l} col-span-3 ${s}`;return r("div",{className:"contents",role:"listitem"},r("div",{id:a,className:`${t===0?"row-start-2":""} ${S}`,role:"listitem","aria-owns":`${f()} ${d}`},r(ia,{...k,id:f()})),R&&w&&r(wr,{level:o+1,link:h,id:L,setNavContentIds:m}),p&&r("div",{className:`${S} flex justify-end`},r("div",{className:`absolute top-0 bottom-0 ${p}`})))}function ra({link:e,onClick:t}){return r(y,{_variant:"plain",_textless:!0,_size:"sm",_model:{name:x("Close menu: {0}",e.name),icon:Z},className:"absolute top-4 right-4 p-2 z-20 cursor-pointer",onClick:t})}function Bt(){let e=I([]);return[(o=0)=>(e.current[o]||(e.current[o]=M()),e.current[o]),e.current]}function na(e){return e.selected&&window.location.href.includes(e.value)?{"aria-current":"page"}:{}}function ia(e){let{selected:t}=u(e);return r(b,{props:e,className:`transition hover:highlight-2 border-solid border-bgb border-l-4 ${t?"border-opacity-100":"border-opacity-0"}`,_Guts:aa})}function aa(e){let{_level:t}=e,{icon:o}=u(e);return r("div",{className:"transition flex pl-4 pr-4 pb-2 pt-2 space-x-2 h-full items-center"},...[...Array(t??0).keys()].map(()=>r("div",{className:"shrink-0 w-1"})),r("div",{className:"grow"},e.children),o&&r("div",{className:"flex items-center"},r(E,{_size:"sm",_rtlFlip:!0},o)))}function Nr(e){let t=u(e),[o,n,i]=D(()=>pa(t),[t]),a=e._variant!=="menu";return Ce(n),r("div",{props:e,className:"w-full relative border-txa border-solid border-b-1 text-txa bg-bga border-opacity-20",children:r(la,{title:t.title,homeLink:o,mainLinks:n,toolLinks:i,isFlyout:a})})}function la({title:e,homeLink:t,mainLinks:o,toolLinks:n,isFlyout:i}){let[a,l]=_(),[s]=sa(),{isBurgerEmpty:d,...m}=ma(o),f={className:"flex",role:"list",onKeyUp:c=>c.key==="Escape"&&l(null)};return r("nav",{className:"max-w-page m-auto border-opacity-100"},r("div",{className:"flex"},r(b,{"aria-label":t.name,_model:{value:t.value},_Guts:()=>r("div",{className:"h-16 border-txa border-solid flex"},r(tt,{className:"flex shrink-0 grow-0 border-txa border-solid"}),e&&r("div",{className:"grow flex items-center tracking-tight font-bold max-w-52 pr-9 "},e))}),o.length>0&&r("div",f,o.map((c,h)=>{let p=a===h,w=!!c.children,R=w&&s(h)||void 0,L=i?"font-bold":void 0,k;return p?k=i?r(vr,{link:c,id:R,onFlyoutClose:()=>l(null)}):r(ca,{link:c,id:R}):k=r("div",{id:R,className:"none"}),r("div",{className:`shrink sm:none md:none tracking-tight ${i?"":"relative"}`,role:"listitem"},w?[r(W,{_selection:"bottom",_size:"lg",_highlighted:p,_expanded:!1,_model:{...c},role:"button",className:L,"aria-expanded":p,"aria-controls":R,...yr(c),onClick:S=>{S.preventDefault(),l(a===h?null:h)}}),k]:r(W,{_selection:"bottom",_size:"lg",_model:c,className:L,...yr(c)}))})),r("div",{className:"grow"}),n.length>0&&r("div",{role:"list",className:"flex shrink"},n.map(c=>r("div",{role:"listitem"},r(W,{_size:"lg",_textless:!0,_model:c})))),!d&&r("div",{className:"lg:none"},r(da,m))),r(ua,m))}function yr(e){return e.selected&&window.location.href.includes(e.value)?{"aria-current":"page"}:{}}function sa(){let e=I([]);return[(o=0)=>(e.current[o]||(e.current[o]=M()),e.current[o]),e.current]}function ca({link:e,id:t}){let o=[{name:x("Go to: {0}",e.name),value:e.value},...e.children??[]];return r("div",{id:t,className:"absolute w-72 bg-bga text-txa border-txa border-opacity-10 border-solid z-20 overflow-x-hidden overflow-y-auto shadow animate-expand rounded-lg border-1",style:"top: calc(100% + 10px); left: -5px",children:r(Le,{_model:{links:o}})})}function ma(e){let[t,o]=_(!1),n=I({ownerId:M(),ownedId:M()}),i=D(()=>e.length===0,[e]);return{mainLinks:e,isExpanded:t,setIsExpanded:o,ids:n,isBurgerEmpty:i,escapeHandler:l=>{l.key.startsWith("Esc")&&(o(!1),document.getElementById(n.current.ownerId).focus())}}}function da({isExpanded:e,setIsExpanded:t,ids:o,escapeHandler:n}){return r(W,{onClick:i=>{t(!e),i.preventDefault()},onKeyUp:n,id:o.current.ownerId,"aria-controls":o.current.ownedId,"aria-expanded":e.toString(),"aria-haspopup":!0,_highlighted:e,_model:{name:"Menu",icon:e?Z:Ao},_textless:!0,_size:"lg"})}function ua({mainLinks:e,isExpanded:t,ids:o,escapeHandler:n}){let i={className:"animate-expand bg-bga bg-opacity-100 lg:none border-txa border-solid border-opacity-20 border-t-1",id:o.current.ownedId,"aria-labelledby":o.current.ownerId,onKeyUp:n};return t&&r("div",i,r(Le,{_model:{links:e}}))}function fa(e){let t={link:null,level:-1};for(let o of e)if(o.selected){delete o.selected;let n=o.value.replace(/\/$/,"").split("/").length;n>=t.level&&(t.link=o,t.level=n)}t.link&&(t.link.selected=!0)}function pa(e){let{links:t}=e,o=t.reduce((s,d)=>(d&&(d.name||d.value)?s[s.length-1].push(d):s.push([]),s),[[]]);for(;o.length<4;)o.push([]);let[n,i,a]=o,l=n.pop()||{};return fa(i),[l,i,a]}var ha=864e7;function kr(e){let t=u(e,a=>a.title&&a.text);if(!t)return null;let[o,n]=_(null),i=e._variant==="center"?"center":"toastNonModal";return T(()=>{(async function(){let a=await ga(t.text);_a(a)||n({text:t.text,hash:a})})()},[]),r("div",{...e},r(te,{_show:!!o,_layout:i,"aria-label":t.title},r(y,{_variant:"plain",_textless:!0,_size:"xs",_model:{name:x("Dismiss"),value:"#",icon:Z},className:"absolute top-6 right-6 cursor-pointer","data-hash":o?.hash,onClick:a=>{a.preventDefault(),xa(a.currentTarget.dataset.hash),n(null)}}),r(g,{props:e},r(N,{_level:"3"},t.title),i==="center"&&r(v,{_model:t,className:"rounded-lg overflow-hidden"}),r(C,{_model:t}),r(U,{_model:{links:t.links}}))))}async function ga(e){let t=await crypto?.subtle?.digest?.("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(t)).map(n=>n.toString(16).padStart(2,"0")).join("")}function Lr(){let e=it();e.supressedNotifications=e.supressedNotifications||{};let t=Object.keys(e.supressedNotifications);for(let o=t.length;o>=0;--o){let n=t[o];Date.parse(e.supressedNotifications[n])+ha<Date.now()&&delete e.supressedNotifications[n]}return Oe(e),e}function _a(e){return!!Lr().supressedNotifications[e]}function xa(e){let t=Lr();t.supressedNotifications[e]=new Date().toISOString(),Oe(t)}function Sr(e){let t=I(null),o=u(e);Ir(o);function n(i){return o.links.find(a=>a.name===i)?.value??void 0}return r("div",{props:e,ref:t,style:n("themeMode")==="bw"?"filter: grayscale(100%)":null})}function pe(e){return e?V({href:e}).href:null}function ba(e,t){let o=Object.entries(t).map(([i,a])=>`[${i}="${a}"]`).join(""),n=`${e}${o}`;return document.querySelector(n)}function Cr(e,t){for(let[o,n]of Object.entries(t))e.getAttribute(o)!==n&&e.setAttribute(o,n)}function O(e,t,o){let n=Object.values(o).every(a=>a==null),i=ba(e,t);if(n){i?.remove();return}i||(i=document.createElement(e),Cr(i,t),document.head.appendChild(i)),Cr(i,o)}var zt={alternate({children:e}){document.querySelectorAll('link[rel="alternate"]').forEach(t=>t.remove());for(let{name:t,value:o}of e||[])O("link",{rel:"alternate",hreflang:t},{href:pe(o),hreflang:t})},canonical({value:e}){O("link",{rel:"canonical"},{href:pe(e)}),O("meta",{property:"og:url"},{content:pe(e)})},externalDisclaimerText({value:e}){O("meta",{name:"external-disclaimer-text"},{content:e})},crossDomainDisclaimerText({value:e}){O("meta",{name:"cross-domain-disclaimer-text"},{content:e})},errorUrl({value:e}){O("meta",{name:"error-url"},{content:pe(e)})},homeTitle({value:e}){O("meta",{name:"application-name"},{content:e}),O("meta",{name:"apple-mobile-web-app-title"},{content:e})},homeUrl({value:e}){O("meta",{name:"home-url"},{content:pe(e)})},locale({value:e}){O("meta",{property:"og:locale"},{content:e}),document.documentElement.lang=e.replace("_","-")},textDirection({value:e}){document.documentElement.dir=e},title({value:e}){document.title=e},themeCss({value:e}){O("link",{rel:"stylesheet","data-id":"theme"},{href:e})},themePath({value:e}){if(e){let t=`${pe(e)}/resources/favicon/`;O("link",{rel:"icon"},{href:`${t}favicon.ico`}),O("link",{rel:"icon"},{href:`${t}favicon.svg`}),O("link",{rel:"apple-touch-icon"},{href:`${t}apple-touch-icon.png`}),O("link",{rel:"manifest"},{href:`${t}manifest.json`})}}};function Ir(e){e.title&&zt.title(e.title);for(let t of e.links)zt[t.name]&&zt[t.name](t);O("meta",{property:"og:title"},{content:document.title}),O("meta",{itemprop:"name"},{content:document.title}),O("meta",{name:"description"},{content:e.text}),O("meta",{property:"og:description"},{content:e.text}),O("meta",{itemprop:"description"},{content:e.text}),O("meta",{property:"og:image"},{content:pe(e.image.src)}),O("meta",{property:"og:image:alt"},{content:e.image.alt}),O("meta",{name:"twitter:image:alt"},{content:e.image.alt})}function Er(e){let t=u(e,l=>l.title);if(!t)return null;let{asset:o,title:n,date:i}=t,a=o.src;return r("div",{props:e,className:"relative lg:grid lg:grid-cols-12 lg:gap-x w-full md:rounded-2xl sm:rounded-2xl overflow-hidden"},a&&r("div",{className:"lg:col-span-12 overflow-hidden lg:rounded-2xl"},r(v,{_model:{...t,image:{...t.image,caption:null}},_decorative:!t.image.alt,_ratio:"4x1"})),r(g,{className:`bg-bga text-txa z-0 lg:rounded-tr-2xl lg:rounded-bl-2xl lg:rounded-br-2xl lg:col-start-1 lg:col-span-8 ${a?"lg:-mt-16":"lg:rounded-tl-2xl"}`},r(N,{_level:1},n),i&&e._variant==="date"&&r(H,{_time:i}),r(C,{_model:t,className:"text-xl"})))}function he(e,t=["md","sm"]){return e==="transparent"||e==="semitransparent"?t.map(o=>`${o}:pal-brand1 ${o}:bg-opacity-100`).join(" "):""}function $r(e){let t=u(e,i=>i.title&&i.asset.src);if(!t)return null;let{title:o,links:n}=t;return r("div",{props:e,className:`relative h-full overflow-hidden lg:grid lg:grid-cols-12 bg-bga text-txa gap-x rounded-2xl ${he(e._color)}`},r(v,{_model:{...t,image:{...t.image,caption:null}},_decorative:!t.image.alt,className:"row-start-1 col-start-1 col-span-12 lg:h-full"}),r("div",{className:"row-start-1 col-start-2 col-span-5 flex items-center"},r(g,{className:"bg-bga text-txa lg:rounded-xl lg:overflow-hidden relative"},r("div",{className:"space-y-2"},r(N,{_level:1},o),r(C,{_model:t})),n.length===1?r(y,{_model:n[0]}):r(U,{_model:{links:n}}))))}function Ar(e){return u(e,o=>o.tags.length>0)?r(g,{props:e,className:"rounded-2xl bg-bga text-txa"},r(ke,e)):null}function Tr(e){let t=u(e,l=>l.title&&l.links.length>0);if(!t)return null;let{links:o,date:n,title:i}=t,a=o[0];return r(g,{props:e,className:"bg-bga text-txa rounded-2xl overflow-hidden h-full"},r(N,{_level:3},r(b,{_model:{value:a.value,name:i,icon:null},_variant:"full"})),n&&r(H,{_time:n}),e._variant!=="short"&&r(C,{_model:t}))}var va=8,wa=2;function Rr(e){let t=u(e,n=>n.text&&n.title&&n.asset.src);if(!t)return null;let o=e._variant==="right";return r("div",{props:e,className:`relative h-full rounded-2xl overflow-hidden lg:grid lg:gap-x lg:grid-cols-12 bg-bga text-txa ${he(e._color)}`},r(v,{_model:t,_decorative:!0,className:"row-start-1 col-start-1 col-span-12 lg:h-full"}),r("div",{className:`row-start-1 col-start-${o?va:wa} col-span-4 flex items-center`},r("div",{className:"lg:rounded-xl lg:overflow-hidden w-full relative bg-bga text-txa"},r(z,{_model:t}))))}function Mr(e){let t=u(e,o=>o.text&&o.title&&o.asset.src);return t?r("div",{props:e,className:`relative h-full rounded-2xl overflow-hidden lg:grid lg:grid-cols-2 bg-bga text-txa ${he(e._color)}`},r(v,{_model:t,_decorative:!0,className:"row-start-1 col-start-1 col-span-2 lg:h-full"}),r("div",{className:"row-start-1 col-start-1 col-span-1 lg:p-6 flex items-end"},r("div",{className:"lg:rounded-xl lg:overflow-hidden w-full relative bg-bga text-txa"},r(z,{_model:t})))):null}function Pr(e){return r("div",{props:e,className:"bg-bga text-txa rounded-2xl overflow-hidden"},r(z,{_model:e._model}))}function Or(e){let t=u(e,d=>d.title&&d.links.length>0);if(!t)return null;let{asset:o,title:n,links:i,text:a,date:l}=t,s=!!o.src;return r(b,{props:e,className:"bg-bga text-txa rounded-2xl overflow-hidden h-full transition cursor-pointer hover:raise",_model:{name:n,value:i[0].value},_Guts:d=>r("div",s&&r("div",{className:"sm:col-span-1 sm:row-start-1"},r(v,{_decorative:!0,_model:t})),r("div",{className:s?"sm:col-span-1":"sm:col-span-2"},r(g,r(N,{_level:3},d.children),l&&r(H,{_time:l}),a&&r(C,{_model:t}))))})}function Br(e){let t=u(e,n=>n.text&&n.title&&n.asset.src);if(!t)return null;let{_variant:o}=e;return r("div",{props:e,className:"bg-bga text-txa rounded-2xl overflow-hidden lg:grid lg:grid-cols-12"},r("div",{className:`col-span-6 row-start-1 ${o==="right"?"":"col-start-7"}`},r(v,{className:"h-full",_decorative:!0,_model:t})),r("div",{className:"col-span-6 row-start-1 flex items-center"},r(z,{_model:t})))}function zr(e){let t=u(e,n=>n.text&&n.title&&n.asset.src);if(!t)return null;let{_variant:o}=e;return r("div",{props:e,className:"bg-bga text-txa rounded-2xl overflow-hidden lg:grid lg:grid-cols-12 lg:col-gap"},r("div",{className:`col-span-8 row-start-1 ${o==="right"?"":"col-start-5"}`},r(v,{className:"h-full",_decorative:!0,_model:t})),r("div",{className:"col-span-4 row-start-1"},r(z,{_model:t})))}function Dr(e){let t=u(e,n=>n.title||n.text||n.links.length>0);if(!t)return null;let{asset:o}=t;return r("div",{props:e,className:"bg-bga text-txa h-full rounded-2xl overflow-hidden"},o.src&&r("div",r(v,{_decorative:!0,_model:t})),r(z,{_model:t,_color:e._color}))}function Hr(e){let t=u(e,n=>n.title&&n.asset.src);if(!t)return null;let o="bg-bga text-txa z-0 w-full";return e._color?o+=` pal-${e._color}`:o+=" pal",r("div",{props:e,className:"relative h-full rounded-2xl overflow-hidden grid"},r("div",{className:"row-start-1 col-start-1 h-full"},r(v,{_model:t,_decorative:!0,className:"h-full"})),r("div",{className:"row-start-1 col-start-1 h-full flex items-end"},r(z,{_model:t,className:o})))}function Wr(e){let t=u(e,a=>a.text&&a.title);if(!t)return null;let{title:o}=t,n={small:3,medium:7,large:9},i=n[e._variant]||n.medium;return r(g,{props:e,className:"bg-bga text-txa rounded-2xl overflow-hidden h-full"},r("blockquote",{className:"space-y-5"},r("div",{className:`font-header text-${i}xl`},r(C,{_model:t})),r("cite",o)))}function Ur(e){let t=u(e),{links:o}=t,i=(o?.[1]||{name:"",value:null}).value;return r(g,{props:e,className:"bg-bga text-txa rounded-2xl"},r(Qe,{action:"?"},r("div",{className:"flex space-x-5"},r("div",{className:"grow"},r(Y,{type:"search",name:"q",value:new URLSearchParams(window.location.search)?.get?.("q"),placeholder:o?.[0]?.name,title:x("Enter your search term")})),r("div",{className:"grow-0"},r(y,{_textless:!0,_model:{name:x("Submit"),icon:Xe},role:"button"})))),i&&r("p",x("{0} results found",i)))}function ya(e){let{links:t}=u(e),o=[];for(let n=0;n<t.length;++n){let{[n]:i}=t,a=n===t.length-1;o.push(r("li",r("span",r(b,{_variant:"simple",_model:i})))),a||o.push(r("li",{"aria-hidden":!0},r(E,{_size:"xs",_rtlFlip:!0},j)))}return r("div",e,r("ol",{className:"flex sm:flex-wrap md:flex-wrap items-center p-0 list-none space-x-2",children:o}))}function jr(e){let t=u(e),{links:o}=t,n=o?.[o.length-1];return r(g,{props:e,className:"bg-bga text-txa rounded-2xl"},r(N,{_level:3,id:me(n.name)},r(b,{_model:{...n,icon:null},_variant:"full"})),r(ya,{_model:{links:t.links.slice(0,-1)}}),r(C,{_model:t}))}var Gr=4;function Fr(e){let t=u(e),{links:o}=t,n=o.findIndex(m=>m.selected)||0,i=n-Gr,a=n+Gr+1;a-=Math.min(0,i),i+=Math.min(0,o.length-a),i=Math.max(i,0),a=Math.min(a,o.length);let l=o.slice(i,a).map(m=>r("li",r(b,{_model:m,_variant:m.selected?"bold":"simple",_Guts:()=>r("div",{className:"w-6 text-center"},m.name)}))),s=o[n-1];l.unshift(r("li",r(b,{"aria-label":x("Previous"),className:s?null:"opacity-50",_variant:s?"simple":null,_model:{value:s?.value,icon:Q},_Guts:()=>r("div",{className:"flex items-center justify-center min-w-6"},r(E,{_size:"sm"},Q),r("div",{className:"sm:none md:none ml-1 mr-3"},x("Previous")))})));let d=o[n+1];return l.push(r("li",r(b,{"aria-label":x("Next"),className:d?null:"opacity-50",_variant:d?"simple":null,_model:{value:d?.value,icon:j},_Guts:()=>r("div",{className:"flex items-center justify-center min-w-6"},r("div",{className:"sm:none md:none ml-3 mr-1"},x("Next")),r(E,{_size:"sm"},j))}))),r("ol",{props:e,className:"list-none w-full p-8 flex flex-wrap justify-center items-center bg-bga text-txa rounded-2xl",children:l})}function Vr(e){let t=u(e,n=>n.title);if(!t)return null;let{title:o}=t;return r(g,{props:e,className:"bg-bga text-txa text-center rounded-2xl overflow-hidden"},r(N,{_level:2},o))}function qr(e){return r(b,{props:e,_model:{value:"#main",name:x("Skip to main content")},_variant:"bold",className:"p-4 transition rounded-lg fixed left-6 bg-bgb text-txb animate-drop opacity-0 -top-10 focus:top-6 focus:opacity-100 z-10"})}var Na={xl:[1.25,1.25,1.25]};function Kr(e){return r("div",{...e,className:"w-full",children:r(Ne,{_count:Na[e._variant]},e.children)})}var ka=$t+At*14*2+20;function Yr(e){let t=u(e,a=>a.links.length>0);if(!t)return null;let{links:o}=t,{_variant:n}=e,i=o.map(a=>r(Zr,{_model:{...a,value:a.value+encodeURIComponent(window.location.href)}}));return i.push(r(Zr,{_model:{icon:To,name:x("Copy link to the clipboard")},onClick:a=>{navigator.clipboard.writeText(window.location.href),a.preventDefault()}})),r("div",{props:e,role:"list",style:"gap: var(--space)",_style:ie&&n==="floating"&&(a=>`
      #${a} {
        @media screen and (min-width: ${ka}px) {
          position: fixed;
          z-index: 10;
          display: flex;
          flex-direction: column;
          left: 0;
          bottom: 50%;
          padding: var(--space);
          background: transparent;
        }
      }
    `),className:"rounded-2xl overflow-hidden flex flex-wrap p-6 bg-bga text-txa",children:i})}function Zr(e){return r("div",{role:"listitem"},r(y,{props:e,className:"border-1 border-solid bg-bga border-txa border-opacity-20",_variant:"plain",_textless:!0}))}function Xr(e){let t=u(e,n=>n.asset.src);if(!t)return null;let{title:o}=t;return r("div",{props:e,_color:null},[o&&r(N,{_level:3,className:"pb-2"},o),r(v,{_model:t,className:"rounded-2xl overflow-hidden"})])}var Jr=2,Qr="overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap";function La(e){return e?.trim().toLowerCase().replace(/\s+/g,"-")}function Ca({links:e,hasPanels:t,tabIds:o,tabPanelIds:n,selectedIndex:i}){let a=I(null),[l,s]=_({left:!1,right:!1}),d=m=>{s({left:m.scrollWidth>m.clientWidth&&Math.abs(m.scrollLeft)>Jr,right:m.scrollWidth>m.clientWidth&&Math.abs(m.scrollLeft)<m.scrollWidth-m.clientWidth-Jr})};return T(()=>{let m=a?.current;if(!m)return;let f=on(m);m.style.setProperty("--actual-bg-color",f);let c=m.querySelector('[role="tablist"]');new ResizeObserver(()=>d(c)).observe(c)},[]),r("div",{className:`relative border-txa border-solid border-b-1 border-opacity-20 ${t?"mb-5":""}`,ref:a,style:"--actual-bg-color: transparent",children:[r(en,{right:!1,visible:l.left}),r("div",{_style:m=>`
          .mobile #${m} { ${Qr} }
          @media screen and (max-width: ${de}px) and (hover: none) {
            #${m} { ${Qr} }
          }
        `,onScroll:m=>d(m.target),className:"w-full flex flex-wrap scrollbar-hide pl-6 pr-6 border-opacity-100",role:"tablist",children:e.map((m,f)=>{let c=f===i;return r("div",{className:"shrink-0"},r(W,{id:o?.[f],className:"cursor-pointer",role:"tab","aria-controls":n?.[f],"aria-selected":c,_selection:"bottom",_size:"lg",_model:{value:m.value,name:m.name==="All"?x("All"):m.name,selected:c}}))})}),r(en,{right:!0,visible:l.right})]})}function en({right:e,visible:t}){let o={false:Q,true:j}[e],n={false:"left: 0; justify-content: left; background: linear-gradient(90deg, var(--actual-bg-color) 33%, transparent)",true:"right: 0; justify-content: right; background: linear-gradient(-90deg, var(--actual-bg-color) 33%, transparent)"}[document.dir==="rtl"?!e:e];return r("div",{className:`absolute top-0 bottom-0 w-12 z-10 bg-bga flex items-center animate-fade ${t?"":"none"}`,style:n,children:r(E,{_size:"xs",_rtlFlip:!0},o)})}function Sa({panels:e,selectedIndex:t,tabPanelIds:o}){return e?.map?.((n,i)=>{let a=i===t;return r("div",{className:`${a?"animate-fade":"none"}`,role:"tabpanel",id:o?.[i]},a?n:void 0)})}function Ia({rawLinks:e,tabPanelHashes:t}){let o=e.findIndex(s=>s.selected===!0)||0,n=I(o),[i,a]=_(l);function l(s=!1){let d=window.decodeURIComponent(window.location.hash.substring(1)),m=t?.findIndex?.(f=>f===d);return m>=0?m:!s||!d?Math.max(o,0):null}return T(()=>{let s=()=>{let d=l(!0);d!==null&&a(d)};return window.addEventListener("hashchange",s),()=>{window.removeEventListener("hashchange",s)}},[]),T(()=>{o!==n.current&&o>=0&&(a(o),n.current=o)},[o!==n.current]),[i,a]}function tn(e){let{_color:t,...o}=e,n=u(o,p=>p.links.length>0),i=n?.links||[],a=o?.children,l=!!a?.length,s=D(()=>l&&i.map(M),[]),d=D(()=>l&&i.map(M),[]),m=D(()=>l&&i.map(p=>p.name?`tab-${La(p.name)}`:M()),[]),f=D(()=>l?i.map((p,w)=>({...p,value:`#${m[w]}`})):i),[c,h]=Ia({rawLinks:i,tabPanelHashes:m});return n?r("div",{props:o,className:"w-full overflow-hidden relative",style:"--actual-bg-color: transparent"},r(Ca,{links:f,hasPanels:l,tabIds:s,tabPanelIds:d,selectedIndex:c,setSelectedIndex:h}),l&&r(Sa,{panels:a,selectedIndex:c,tabPanelIds:d})):null}function on(e){let t="rgba(0, 0, 0, 0)";if(e){let o=getComputedStyle(e).backgroundColor;return o!==t?o:on(e?.parentElement??e?.parentNode?.host)}return t}var Ea=2;function rn(e){let t=u(e,a=>a.links.length>0);if(!t)return null;let{_variant:o}=e,[n,i]=D(()=>{if(o!=="left")return[];let{links:a}=t,l=a.reduce((s,d)=>(d&&(d.name||d.value)?s[s.length-1].push(d):s.push([]),s),[[]]);for(;l.length<Ea;)l.push([]);return l});if(Ce(t.links),o==="left"){let[a]=i;return r("div",{props:e,className:"w-full bg-bga text-txa",children:r("div",{className:"m-auto max-w-page flex justify-between items-center h-full"},r("div",{className:"shrink flex",role:"list"},n.map(l=>r("div",{className:"shrink",role:"listitem"},r(W,{_model:l,_selection:"top",_size:"md",className:"text-sm"})))),a&&r("div",{className:"shrink"},r("div",{className:"shrink pr-1 pb-2 pt-2"},r(y,{_model:a,_size:"xs",_hideIconOnMobile:!0,className:"whitespace-nowrap align-bottom"}))))})}return r("div",{props:e,className:"w-full bg-bga text-txa",children:r("div",{className:"m-auto max-w-page flex",role:"list"},r("div",{className:"grow"}),t.links.map(a=>r("div",{className:"shrink",role:"listitem"},r(W,{_model:a,_selection:"top"}))))})}function nn(e){let t=u(e,l=>{let s=l?.links?.[0]?.value;return s&&window.origin===new URL(s,window.origin).origin});if(!t)return r(ve,e,"Invalid script source.");let{links:o}=t,n=o[0].value,i=n.replace(/\?.*/,"").split("/").pop().split(".").shift().replace(/[^a-zA-Z-]/g,""),a=o.slice(1).reduce((l,s)=>({...l,[s.name]:s.value}),{});return r("div",{props:e,className:"w-full h-full"},r("script",{src:n,type:"module",crossorigin:"anonymous",async:!0,defer:!0}),r(i,{...a,className:"w-full h-full",_color:e._color}))}function an(e){return r("div",{...e})}var $a=`<svg xmlns='http://www.w3.org/2000/svg' width='1280' height='720'>
<rect width='100%' height='100%' fill='#222222'/>
<line x1='0' x2='1280' y1='0' y2='720' stroke='#dcdcdc'/>
<line x1='1280' x2='0' y1='0' y2='720' stroke='#dcdcdc'/>
</svg>
`,Dt="about:blank",Aa={title:"Lorem ipsum dolor sit",date:"2000-01-01T00:00:00.000Z",text:"Nunc lobortis mattis aliquam faucibus purus in massa tempor nec. Morbi enim nunc faucibus a. Nascetur ridiculus mus mauris vitae ultricies leo. Aliquam ultrices sagittis orci a scelerisque purus semper. Urna condimentum mattis pellentesque id nibh tortor id aliquet lectus.",image:{src:`data:image/svg+xml;utf-8,${encodeURIComponent($a)}`},links:[{name:"Nunc lobortis",value:Dt,icon:Ye},{name:"Volutpat ",value:Dt,icon:Ye},{name:"Purus in massa",value:Dt,icon:Ye}],tags:[{name:"Fermentum",value:"#"},{name:"Turpis egestas",value:"#"},{name:"Dignissim cras tincidunt ",value:"#"}]};function Ht(e){let{Organism:t,text:o,replaceModel:n}=e._placeholder;return delete e._placeholder,n&&(e._model=Aa),r("div",{className:"relative h-full"},o&&r("div",{className:"absolute left-0 top-0 bg-txa text-bga text-sm uppercase",style:"letter-spacing: 1px; z-index: 1; font-size: 10px; padding: 2px 4px",children:o}),r("div",{className:n?"h-full opacity-50":"h-full"},r(t,e)))}var ln={BackToTop:"Back to top",SkipToMain:"Skip to main content",Notification:"Notification"};function Ta(e,t){if(t?.colspan){e.colspan||(e.colspan=t.colspan),e.colstart&&e.colstart>t.colspan&&(e.colstart=1);let o=e.colstart||1;e.colspan+o+1>t.colspan&&(e.colspan=t.colspan-o+1)}}function Ra(e){let t=[],o;for(let n of e?.children??[]){Ta(n,e);let i={colstart:n.colstart,colspan:n.colspan};o=o||[],o.push(i),t.push(r(ze,{_componentModel:n,_model:n.model,_parentColspan:i.colspan}))}return{children:t,_wrap:o}}function Ma(e){let[t,o]=(e?.organism??"").split(".");o=o?.toLowerCase();let n=Be[t];return n||(n=an,t="Empty",console.log(`Unable to resolve organism: ${e.id}`)),{Organism:n,organismName:t,variantName:o}}function ze(e){let[t,o]=_(!0),{_componentModel:n}=e,{Organism:i,organismName:a,variantName:l}=Ma(n),{children:s,_wrap:d}=Ra(n),m={key:n.id,_color:n.color,_model:n.model,_variant:l,_parentColspan:e._parentColspan,"data-name":a};if(a==="Container")return r(i,{...m,_wrap:d},s);if(!ie){if(!t)return r(Ht,{...m,_placeholder:{Organism:i,text:"Placeholder",replaceModel:!0}});if(a==="WebComponent"){let p=e?._model?.links?.[0]?.value?.replace?.(/\?.*/,"")?.split?.("/")?.pop?.()?.split?.(".")?.shift?.()?.replace?.(/[^a-zA-Z-]/g,"")??"";return r(Ht,{...m,_placeholder:{Organism:i,text:p}})}if(Object.keys(ln).includes(a))return r(ve,ln[a])}let[f,c]=Pe(!0),h=r(c.Provider,{value:f},r(i,m,s));return T(()=>{h.__e?h.__e.componentModel=n:o(!1)},[n]),h}var Pa=400,De={};async function lt(e,t=!1){if(De[e])return De[e];let o;try{o=await fetch(e)}catch(n){return console.error(`Error when fetching: ${e}`),console.error(n),window.location.reload(),{}}try{if(o?.ok&&o.status<Pa){if(t&&o.redirected&&o.headers.get("content-type")?.toLowerCase?.()?.startsWith?.("text/html"))return window.location.reload(),{};{let n=await o.json();return De[e]=n,n}}else return null}catch{return null}}async function Oa(){let e=await lt(ee().modelHref,!0);return e||(e=await lt(ee(xe("error-url")).modelHref)),e}function Ba(e){return((e??{})?.model?.links||[]).find?.(o=>o?.name==="locale")?.value}async function za(e){let t=Ba(e),o=e?.model?.links?.find?.(n=>n?.name==="homeUrl")?.value;if(t&&(Object.keys(ne).length===0||ne.locale!==t)){let n=await lt(ee(o).i18nHref);n&&(Object.assign(ne,n),ne.locale=t)}}async function Da(e){let t=[e??{}];for(let o of t){if(o.ref){let n=await lt(o.ref);n&&(Object.assign(o,n),delete o.ref)}t.push(...o?.children??[])}}async function sn(){let e=await Oa();return await Da(e),await za(e),e}var Wt=ee();function cn(){let[e,t]=_(null);return T(()=>{async function o(){let n=ee(location);if(["pathnameWithoutSuffix","search"].every(a=>n[a]===Wt[a]))return;let i=await sn();i&&t(i),n.pathname!==Wt.pathname&&(document.activeElement.blur(),window.scrollTo(0,0)),Wt=n}(async()=>{let n=await sn();n&&t(n),window.addEventListener("popstate",()=>{o()})})()},[]),T(()=>{window.dispatchEvent(new CustomEvent("route"))}),e&&le(ze,{_componentModel:e,_model:e.model})}function Ut(e,t){class o extends HTMLElement{connectedCallback(){this.classList.add("web-component");let i=this.attachShadow({mode:"open"}),a=document.createElement("span");a.setAttribute("dir",document.documentElement.dir),i.appendChild(a),Me(i);let l=Object.assign({},...Array.from(this.attributes,({name:s,value:d})=>({[s]:d})));t(l,a,i)}}customElements.get(e)||customElements.define(e,o)}var He=class{constructor(t){this.observer=new MutationObserver(o=>{for(let n of o)for(let i of n.addedNodes)t(i),this._addShadowRoots(i)}),this.observer.observe(document.body,{childList:!0,subtree:!0}),this._addShadowRoots(document.body)}_addShadowRoots(t){t.querySelectorAll?.('[data-name="WebComponent"] :last-child')?.forEach?.(async o=>{await customElements.whenDefined(o.tagName.toLowerCase()),this.observer.observe(o.shadowRoot,{childList:!0,subtree:!0})})}};var Ha=100,Wa=2e3,Ua,mn;function dn(){if(ar){console.log("Skipping page rendering in edit mode.");return}let e=document.body.children[0]??document.body;e.innerHTML="";let t=Date.now();Ua||=new He(()=>{Date.now()-t<=Wa&&(clearTimeout(mn),mn=setTimeout(ja,Ha))}),Re(r(cn),e)}function ja(){if(location.hash){let e=[document.body];for(let t of e){t.querySelectorAll('[data-name="WebComponent"] :last-child').forEach(o=>e.push(o.shadowRoot));try{document.getElementById(location.hash.slice(1))?.scrollIntoView()}catch{}}}}function un(e){let t=document.getElementById(e.id).parentElement;Re(r(ze,{_componentModel:e,_model:e.model}),t),console.log(`Rendered ${e.id}: ${e.organism}`)}var Ga=["overflow-y: scroll","width: 100px","height: 100px","position: absolute","top: -9999"].join("; "),Fa=500;function fn(){let e=document.createElement("div");e.setAttribute("style",Ga),document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;document.body.removeChild(e),document.documentElement.style.setProperty("--scrollbar-width",`${t}px`)}function jt(){fn();let e=null;window.addEventListener("resize",()=>{clearTimeout(e),e=setTimeout(()=>{fn()},Fa)})}async function Gt(){return new Promise(e=>{window.addEventListener("DOMContentLoaded",e),document.readyState!=="loading"&&e()})}var hn="_evidon_proxy";function Ft(e={}){let t={date:new Date().toISOString(),functional:!0,statistics:!1,preferences:!1,marketing:!1,...e};localStorage.setItem(hn,JSON.stringify(t)),window.dispatchEvent(new CustomEvent("consent",{detail:t}))}function Vt(){let e=JSON.parse(localStorage.getItem(hn));if(!e)return{};let t=new Date,o=new Date(t.getFullYear()-1,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds());return new Date(e.date)<o?(Ft(),{}):e}async function gn(e){return new Promise(t=>{if(pn(e)){t(!0);return}window.addEventListener("consent",()=>{pn(e)&&t(!0)})})}function pn(e){let t=Vt();return Object.keys(e).every(o=>t[o]===e[o])}function qt(e){window.ami={matter:Be,dataset:De,customElement:Ut,renderAemComponent:un,version:e,h:r,i18n:ne,getConsent:Vt,setConsent:Ft,waitForConsent:gn,preact:{...xt,hooks:Nt},async _init(){window.ami._ready||(window.ami._ready=!0,Me(document.head,document.currentScript),await Gt(),jt(),dn())}},window.ami._init()}qt("2.0.118");})();
