var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
/*! For license information please see consent-main.js.LICENSE.txt */
(()=>{var e={319:(e,t,n)=>{"use strict";var r=n(2282);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(3841)),i=r(n(6295)),a=r(n(4205)),s=r(n(4033)),u=r(n(890)),c=r(n(601)),l=r(n(3701)),d=r(n(8877));const f=["active","as","className","children","design","download","external","hidden","href","icon","size","text","type"],p="ux-button",_=["critical","inline","primary","secondary","control","stateless"];const m=a.default.forwardRef((function(e,t){const n=e||{},{active:r,as:s,className:m,children:v,design:h,download:y,external:g,hidden:b,href:w,icon:O,size:x,text:E,type:k="button"}=n,C=(0,i.default)(n,f);delete C.style,function(e){const{children:t,icon:n,text:r}=e}(e);const N=w?"a":"button",S=v&&!E?v:E,P=function(e,t){const n={className:`${p}-accessory`,role:"presentation"},r={};switch(e){case"cta":r.icon=a.default.createElement(l.default,n);break;case"external":r.icon=a.default.createElement(d.default,n)}if(t)return r;switch(e){case"select":r.icon=a.default.createElement(c.default,n),r.ariaActiveAttr="aria-expanded";break;case"toggle":r.ariaActiveAttr="aria-checked",r.role="switch";break;default:r.ariaActiveAttr="aria-selected"}return r}(s,w);let j;if(O){var M;const e=(0,u.default)(`${p}-icon`,null==O||null===(M=O.props)||void 0===M?void 0:M.className);j=a.default.cloneElement(O,{className:e,role:"presentation"})}return a.default.createElement(N,(0,o.default)({},"boolean"==typeof r&&{[P.ariaActiveAttr]:r},{className:(0,u.default)(p,m,{[`${p}-${h}`]:_.includes(h),[`${p}-small`]:"small"===x,[`${p}-square`]:!S}),download:w&&y,"aria-hidden":b,href:w,role:P.role,target:w&&g?"_blank":null,type:w?null:k,ref:t},C),j,S&&a.default.createElement("span",{className:`${p}-text`},S),P.icon)}));m.designs=_,m.propTypes={children:s.default.node,active:s.default.bool,as:s.default.oneOf(["cta","select","toggle","external"]),className:s.default.string,design:s.default.oneOf(m.designs),download:s.default.oneOfType([s.default.bool,s.default.string]),external:s.default.bool,hidden:s.default.bool,href:s.default.string,icon:function(e,t,n){return n.endsWith("Icon")},size:s.default.oneOf(["small"]),text:s.default.oneOfType([s.default.string,s.default.number]),type:s.default.oneOf(["button","reset","submit"])};var v=m;t.default=v},5062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n.filter(Boolean).reduce(((t,n)=>("string"==typeof n&&~n.indexOf(" ")&&(n=n.split(" ")),Array.isArray(n)?Array.prototype.push.apply(t,e(...n).split(" ")):"object"==typeof n?Object.keys(n).forEach((function(e){n[e]?t.push(e):~t.indexOf(e)&&t.splice(t.indexOf(e),1)})):t.push(n),t)),[]).filter((function(e,t,n){return Boolean(e)&&n.indexOf(e)===t})).join(" ");return o||void 0}},9414:(e,t,n)=>{"use strict";var r=n(2282);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===t&&(t=e,e=void 0);const n=t.props,r=(0,o.default)(t).toLowerCase();let i=(n.id||n[e]||r).toString().trim();i=i.replace(/[^\x00-\x7F]/g,(e=>encodeURIComponent(e).replace("%",":"))),/^[A-Za-z]/.test(i)||(i="id-"+i);return i.replace(/[^A-Za-z\:\;\-\_0-9\.]+/g,"-")};var o=r(n(1046))},6062:(e,t,n)=>{"use strict";var r=n(2282);Object.defineProperty(t,"__esModule",{value:!0}),t.ACCESSORIES=void 0;var o=r(n(3767)),i=r(n(9579)),a=r(n(790)),s=r(n(9706)),u=r(n(6082)),c=r(n(6647));const l={critical:s.default,warning:s.default,highlight:c.default,success:o.default,info:i.default,neutral:u.default,internal:a.default};t.ACCESSORIES=l},265:(e,t,n)=>{"use strict";var r=n(2282);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(3841)),i=r(n(6295)),a=r(n(4205)),s=r(n(4033)),u=r(n(890)),c=r(n(2291)),l=r(n(319)),d=r(n(6304)),f=r(n(8175)),p=n(6062);const _=["actions","ariaLabels","children","contrast","className","emphasis","icon","id","onClose","stretch","title"],m="ux-dialog";function v(e){const{emphasis:t,icon:n}=e||{},r=`${m}-icon`;return t?a.default.createElement("div",{className:r},function(e){if(e&&p.ACCESSORIES[e]){const t=p.ACCESSORIES[e];return a.default.createElement(t,{className:`${m}-accessory--${e}`,role:"presentation"})}return null}(t)):n?a.default.createElement("div",{className:r},a.default.cloneElement(n,{role:"presentation"})):null}function h(e){const{actions:t,ariaLabels:n,children:r,contrast:s,className:p,emphasis:h,icon:y,id:g,onClose:b,stretch:w,title:O}=e,x=(0,i.default)(e,_);return delete x.style,a.default.createElement("div",(0,o.default)({className:(0,u.default)(`${m}-shell`,p,(0,c.default)(),{[`${m}--contrast`]:s,[`${m}--stretch`]:w}),"aria-labelledby":g},x),a.default.createElement(v,{emphasis:h,icon:y}),a.default.createElement("div",{className:`${m}-details`},function(e){let{ariaLabels:t,onClose:n}=e;return"function"!=typeof n?null:a.default.createElement("span",{className:`${m}-float`},a.default.createElement(l.default,{"aria-label":t&&t.close||"Close",icon:a.default.createElement(f.default,null),className:`${m}-close`,design:"stateless",onClick:n}))}({onClose:b,ariaLabels:n}),O&&a.default.createElement("div",{id:g,className:`${m}-title`},O),a.default.createElement("div",{className:`${m}-content`},r),t&&a.default.createElement(d.default,{gap:"md",orientation:"horizontal",className:`${m}-actions`},t)))}h.ACCESSORIES=p.ACCESSORIES,h.propTypes={actions:s.default.node,ariaLabels:s.default.shape({close:s.default.string}),contrast:s.default.bool,className:s.default.string,children:s.default.node,emphasis:s.default.oneOf(Object.keys(p.ACCESSORIES)),icon:function(e,t,n){return n.endsWith("Icon")},id:s.default.string,onClose:s.default.func,stretch:s.default.bool,title:s.default.node};var y=h;t.default=y},5515:(e,t,n)=>{"use strict";var r=n(2282);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(4205)),i=r(n(4205)),a=r(n(4033)),s=r(n(5399));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}const c="ux-disrupt",l={autoFocus:!0,disabled:!1,returnFocus:!0};function d(e,t){const n=2*Number(t)-1,r=Number(e.getAttribute("data-inert"))+n;r?e.setAttribute("data-inert",r):e.removeAttribute("data-inert")}function f(e){const{children:t,focusLock:n=!1,onClose:r,onEventBehind:a,portalElem:u,strategy:f,stretch:p}=e,_={position:f||"absolute"},m=(0,o.useRef)(null);let v={disabled:!0};n&&(v="boolean"==typeof n?l:n),(0,o.useLayoutEffect)((function(){var e;const t=u||m.current.parentElement;if(!(null!==(e=window)&&void 0!==e&&e.ShadowRoot&&t instanceof window.ShadowRoot))return d(t,!0),"function"==typeof a&&t.addEventListener("click",n),"function"==typeof a&&t.addEventListener("focusin",n),function(){var e;null!==(e=window)&&void 0!==e&&e.ShadowRoot&&t instanceof window.ShadowRoot||(d(t,!1),t.removeEventListener("click",n),t.removeEventListener("focusin",n))};function n(e){const n=t.contains(e.target),r=m.current.contains(e.target);n&&!r&&a(e)}}),[u,a,r]);const h=[`${c}-content`];p&&h.push(`${c}--stretch`);const y=(0,o.useCallback)((function(e){const t="function"==typeof window.getSelection&&window.getSelection().toString();e.target!==e.currentTarget||e.target!==m.current||t||"function"==typeof r&&r(e)}),[r]),g=(0,o.useCallback)((function(e){"Escape"===e.key&&(e.stopPropagation(),"function"==typeof r&&r(e))}),[r]),b=o.default.createElement("div",{className:`${c}-backdrop`,ref:m,onClickCapture:y,onKeyDown:g,style:_},o.default.createElement("div",{className:h.join(" ")},o.default.createElement(s.default,v,o.default.createElement("div",{tabIndex:-1},t))));return u?i.default.createPortal(b,u):b}f.propTypes={children:a.default.node,focusLock:a.default.oneOfType([a.default.bool,a.default.object]),onClose:a.default.func,onEventBehind:a.default.func,portalElem:a.default.object,strategy:a.default.oneOf(["absolute","fixed"]),stretch:a.default.bool};var p=f;t.default=p},9706:(e,t,n)=>{"use strict";const r=n(7170);e.exports=r("alert","false")},7170:(e,t,n)=>{"use strict";var r,o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(4205)),i=n(7629),a=(r=n(4033))&&r.__esModule?r:{default:r};const s=["width","height","placeholder","className","title","desc","role"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}"undefined"==typeof process||!process.versions||process.versions.node;e.exports=function(e,t){const n=o.default.forwardRef((function(t,n){let{width:r="1.5em",height:a="1.5em",placeholder:u,className:c,title:d,desc:p,role:_="presentation"}=t,m=f(t,s);const v=i.svgosm.get(e,(function(){const t=i.svgosm.extract(`uxp-icon-${e}`);if(t)return Object.assign(t,{title:d,desc:p})})),[h]=(0,o.useState)(v||u),y={},g={className:["uxicon-svg-container",c].join(" ").trim(),height:a||h.height,width:r||h.width,role:_,ref:n};if(Object.keys(m).forEach((function(e){e.startsWith("aria-")||e.startsWith("data-")?g[e]=m[e]:y[e]=m[e]})),!h)return o.default.createElement("svg",g);if(!g["aria-labelledby"]&&(d||p)){const e=h.link.slice(1),t=[];d&&t.push(`${e}-title`),p&&t.push(`${e}-desc`),g["aria-labelledby"]=t.join(" ")}return o.default.createElement("svg",g,o.default.createElement("use",l(l({fill:"currentColor"},y),{},{xlinkHref:h.link})))}));return n.displayName=e+"Icon",n.propTypes={width:a.default.oneOfType([a.default.number,a.default.string]),height:a.default.oneOfType([a.default.number,a.default.string]),placeholder:a.default.shape({link:a.default.string}),className:a.default.string,desc:a.default.string,title:a.default.string,role:a.default.string},n}},3767:(e,t,n)=>{"use strict";const r=n(7170);e.exports=r("checkmark","false")},601:(e,t,n)=>{"use strict";const r=n(7170);e.exports=r("chevron-down","false")},790:(e,t,n)=>{"use strict";const r=n(7170);e.exports=r("comment","false")},6082:(e,t,n)=>{"use strict";const r=n(7170);e.exports=r("help","false")},9579:(e,t,n)=>{"use strict";const r=n(7170);e.exports=r("information","false")},3701:(e,t,n)=>{"use strict";const r=n(7170);e.exports=r("link-arrow","false")},6647:(e,t,n)=>{"use strict";const r=n(7170);e.exports=r("star","false")},7629:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.svgosm=t.default=t.SVGOSM=void 0;const n=["viewBox","title","desc","shapes"];function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const s="undefined"!=typeof document?document.body||document.documentElement:null;class u{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;this.id=e,this.tracker={},this.mounted=[],this.root=t}mount(e){if(!e)return;const t=document.createElement("div");t.style="display:none",t.id=this.id;const n=document.createElementNS(u.xmlns,"svg");t.appendChild(n),e.appendChild(t),this.mounted.push({svg:n,root:e,container:t}),Object.keys(this.tracker).forEach((e=>{n.innerHTML+=this.tracker[e].sym}))}extract(e){if(!e)return;let t;return this.root&&(this.mount(this.root),this.root=null),this.mounted.some((function(n){let{container:r}=n;if(!window)return!!t;const o=window.getComputedStyle(r,":before"),i=e.startsWith("--")?e:`--${e}`,a=o.getPropertyValue(i);let s=o.getPropertyValue("content");if(3===s.length&&(s=s.charAt(1)),s)if(s.includes("svg"))t=s;else if(1===s.length&&!/[a-z\d]/i.test(s))return!!t;return a&&a.includes("svg")&&(t=a),!!t})),t?this.parse(t):void 0}parse(e){if(!~e.indexOf("svg"))return{};const t=(e=decodeURI(e).replace(/%23/g,"#").replace(/\\"/g,'"')).indexOf(">"),n=e.indexOf("</svg>"),r=/viewBox=.*?([\d\s.]+)/.exec(e.substr(0,t));return r?{shapes:e.slice(t+1,n),viewBox:r[1]}:{}}get(e,t){const n=this.tracker[e];return n||!t?n:(this.set(e,t(e)),this.tracker[e])}sym(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{viewBox:r,title:i,desc:s,shapes:u}=t,c=a(t,n);if(!u)return!1;const l=`${this.id}-${e}`,d=`<symbol id="${l}" viewBox="${r}">${i?`<title id="${l}-title">${i}</title>`:""}${s?`<desc id="${l}-desc">${s}</desc>`:""}${u}</symbol>`;return this.tracker[e]=o(o({},c),{},{link:`#${this.id}-${e}`,viewBox:r,sym:d}),d}set(e,t){const n=this.sym(e,t);return!!n&&(this.root&&(this.mount(this.root),this.root=null),this.mounted.forEach((e=>{let{svg:t}=e;t.innerHTML+=n})),!0)}}t.SVGOSM=t.default=u,u.xmlns="http://www.w3.org/2000/svg";const c=new u("svg-container");t.svgosm=c},8877:(e,t,n)=>{"use strict";const r=n(7170);e.exports=r("window-new","false")},8175:(e,t,n)=>{"use strict";const r=n(7170);e.exports=r("x","false")},1209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={CRITICAL:"Critical",SUCCESS:"Success",WARNING:"Warning",INFO:"Info",HIGHLIGHT:"Highlight",NEUTRAL:"Neutral",INTERNAL:"Internal",PASSIVE:"Passive",PREMIUM:"Premium"}},8821:(e,t,n)=>{"use strict";var r=n(2282);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.ensureLabelComponent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?"object"==typeof e&&e.type===l?e:o.default.createElement(l,t,e):null};var o=r(n(4205)),i=r(n(4033)),a=r(n(890)),s=r(n(2989)),u=r(n(2291));const c="ux-label",l=o.default.forwardRef((function(e,t){const{children:n,className:r,float:i,htmlFor:l,id:d,internal:f,required:p}=e;return o.default.createElement("label",{className:(0,a.default)(c,r,{[(0,u.default)({as:"label"})]:!f,[`${c}--internal`]:f,[`${c}--floating`]:i&&f}),htmlFor:l,id:d,ref:t},n,p&&o.default.createElement(s.default.span,{"aria-hidden":!0,className:`${c}-required`,emphasis:"object"==typeof p&&p.emphasis||"critical",text:"object"==typeof p&&p.text||"*"}))}));l.propTypes={children:i.default.node.isRequired,className:i.default.string,float:i.default.bool,htmlFor:i.default.string.isRequired,id:i.default.string,internal:i.default.bool,required:i.default.oneOfType([i.default.bool,i.default.shape({emphasis:i.default.string,text:i.default.node})])},l.displayName="Label";var d=l;t.default=d},6357:(e,t,n)=>{"use strict";var r=n(2282);t.Z=void 0;var o=r(n(2121)),i=r(n(3841)),a=r(n(6295)),s=r(n(4205)),u=r(n(890)),c=r(n(5515)),l=r(n(265)),d=n(4734);const f=["children","className","focusLock","onClose","onEventBehind","portalElem","stretch","strategy","show"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e){const{children:t,className:n,focusLock:r=!0,onClose:o,onEventBehind:p,portalElem:_,stretch:m,strategy:v,show:h}=e,y=(0,a.default)(e,f);return(void 0===h||h)&&(_||"undefined"!=typeof document&&document.body)?s.default.createElement(c.default,{portalElem:_||document.body,strategy:v||"fixed",onClose:o,focusLock:r,onEventBehind:p,stretch:m},s.default.createElement(l.default,(0,i.default)({"aria-modal":!0,role:"dialog",className:(0,u.default)("ux-modal",n),onClose:o},(0,d.transform)(y)),t)):null}m.propTypes=_(_({},c.default.propTypes),l.default.propTypes);var v=m;t.Z=v},4734:(e,t,n)=>{"use strict";var r=n(2282);Object.defineProperty(t,"__esModule",{value:!0}),t.transform=function(e){const{title:t,footer:n,actions:r}=e,d=(0,i.default)(e,u);return function(e){const{footer:t}=e;if(t){const e="Prop `footer` for <Modal/> will be removed in v2201, please replace with `actions`";!l.has(e)&&l.add(e)&&console.warn(e)}}(e),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({title:"string"==typeof t?a.default.createElement(s.default.h1,{text:t,as:"title"}):t,actions:n||r},d)};var o=r(n(2121)),i=r(n(6295)),a=r(n(4205)),s=r(n(2989));const u=["title","footer","actions"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const l=new Set},6304:(e,t,n)=>{"use strict";var r=n(2282);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(3841)),i=r(n(6295)),a=r(n(4205)),s=r(n(4033)),u=r(n(890)),c=r(n(8821)),l=r(n(2989)),d=r(n(2291));const f=["children","className","divider","gap","id","invalid","label","helpMessage","errorMessage","required","orientation","stretch","wrap"],p="ux-sibling-set",_=a.default.forwardRef((function(e,t){const n=e||{},{children:r,className:s,divider:_,gap:m,id:v,invalid:h,label:y,helpMessage:g,errorMessage:b,required:w,orientation:O="horizontal",stretch:x,wrap:E}=n,k=(0,i.default)(n,f);if(delete k.style,!r)return null;const C=y&&v&&`${v}-label`,N=g&&v&&`${v}-help`,S=b&&v&&`${v}-error`;return a.default.createElement("div",{className:(0,u.default)(p,s,`${p}-${O}`,{[`${p}-gap-${m}`]:m,[`${p}--stretch`]:x,[`${p}--wrap`]:E}),role:"group","aria-labelledby":C,"aria-describedby":[N,S].filter(Boolean).join(" ")},C&&a.default.createElement(c.default,{className:`${p}-label`,id:C,htmlFor:v,required:w},y),_&&a.default.createElement("hr",null),a.default.createElement("div",(0,o.default)({id:v,ref:t,"aria-invalid":h,className:(0,d.default)({className:`${p}-children`,emphasis:h?"critical":null}),style:{"--ux-siblingset-amount":r.length}},k),r),g&&a.default.createElement(l.default.p,{text:g,as:"caption",id:N,emphasis:"passive"}),b&&a.default.createElement(l.default.p,{text:b,as:"caption",id:S,emphasis:"critical",role:"alert"}))}));function m(e,t,n){const r=e.label&&!e.id,o=e.helpMessage&&!e.id,i=e.errorMessage&&!e.id;return r||o||i?new Error("When using a label, helpMessage or errorMessage, the 'id' prop is required"):s.default.checkPropTypes({[t]:s.default.node},e,t,n)}_.propTypes={children:s.default.node,className:s.default.string,divider:s.default.bool,gap:s.default.oneOf(["sm","md","lg"]),id:m,invalid:s.default.oneOfType([s.default.bool,s.default.oneOf(["grammar","spelling"])]),label:m,helpMessage:m,errorMessage:m,orientation:s.default.oneOf(["horizontal","vertical"]),required:c.default.propTypes.required,stretch:s.default.bool,wrap:s.default.bool},_.displayName="SiblingSet";var v=_;t.default=v},2291:(e,t,n)=>{"use strict";var r=n(2282);Object.defineProperty(t,"__esModule",{value:!0}),t.asOptions=void 0,t.default=function(e){const{as:t,className:n,emphasis:r,size:i}=e||{};return(0,o.default)(u,n,{[`${u}-size${i}`]:"number"==typeof i&&i>=-2&&i<6,[`${u}-${t}`]:t&&a.includes(t),[`${u}-feedback-${r}`]:r&&s.includes(r)})},t.emphasisOptions=void 0;var o=r(n(890)),i=r(n(1209));const a=["title","heading","paragraph","action","input","label","caption"];t.asOptions=a;const s=Object.values(i.default).map((e=>e.toLowerCase()));t.emphasisOptions=s;const u="ux-text"},2989:(e,t,n)=>{"use strict";var r=n(2282);Object.defineProperty(t,"__esModule",{value:!0}),t.text=t.default=void 0;var o=r(n(3841)),i=r(n(6295)),a=r(n(4205)),s=r(n(4033)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(2291));const c=["as","className","children","emphasis","size","text"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}const d=new Proxy((function(){}),{get:function(e,t){return String(t).startsWith("_")||void 0!==e[t]||(e[t]=function(e){function t(t){const n=t||{},{as:r,className:s,children:l,emphasis:d,size:f,text:p}=n,_=(0,i.default)(n,c);return a.default.createElement(e,(0,o.default)({className:(0,u.default)({as:r,className:s,emphasis:d,size:f})},_),p||l)}return t.propTypes={as:s.default.oneOf(u.asOptions),children:s.default.node,className:s.default.string,emphasis:s.default.oneOf(u.emphasisOptions),size:s.default.number,text:s.default.string},t}(t)),Reflect.get(...arguments)}});t.text=d;var f=d;t.default=f},2958:(e,t,n)=>{"use strict";var r=n(2282);t.ZP=void 0;var o=r(n(3841)),i=r(n(6295)),a=r(n(439)),s=r(n(4205)),u=r(n(4033)),c=r(n(8634)),l=r(n(9414)),d=r(n(5062));const f=["label","hideLabel"],p=["type","onChange","onKeyDown"];class _ extends a.default{render(){const e=this.props,{label:t,hideLabel:n}=e,r=(0,i.default)(e,f);let{type:u,onChange:_,onKeyDown:m}=r,v=(0,i.default)(r,p);const h=!!("checked"in v?v.checked:this.state.checked),y=(0,l.default)("label",{props:this.props});_=_||this.onChange,m=m||this.onKeyDown,u=a.default.allowedTypes.includes(u)?u:a.default.allowedTypes[0];const g=(0,d.default)((0,d.default)("ux-toggle",{disabled:v.disabled,"ux-toggle-small":v.small}));return v=(0,c.default)(v,"small"),s.default.createElement("label",{htmlFor:y,className:g},s.default.createElement("input",(0,o.default)({},r,{type:u,checked:h,className:"ux-toggle-checkbox",onChange:_,onKeyDown:m,id:y})),s.default.createElement("span",{className:"ux-toggle-container"},s.default.createElement("span",{className:"ux-toggle-bg"}),s.default.createElement("span",{className:"ux-toggle-handle"})),!n&&t&&s.default.createElement("span",{className:"ux-toggle-message"},t))}}_.propTypes={type:u.default.oneOf(a.default.allowedTypes),htmlFor:u.default.string,label:a.default.validatePropTypeLabel,small:u.default.bool,disabled:u.default.bool,checked:u.default.bool,hideLabel:u.default.bool,onChange:u.default.func,onKeyDown:u.default.func,id:u.default.string,tabIndex:u.default.oneOf([-1,0])};var m=_;t.ZP=m},439:(e,t,n)=>{"use strict";var r=n(2282);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(4205),i=r(n(4033));class a extends o.Component{constructor(e){super(...arguments),"checked"in e||(this.state={checked:!1}),this.onChange=this.onChange.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}onChange(){const e=this.props;"onChange"in e&&e.onChange(...arguments),"checked"in e||this.setState({checked:!this.state.checked})}onKeyDown(e){const t=e.key,n=this.props;e.preventDefault(),[" ","Enter"].includes(t)&&(e.stopPropagation(),"onChange"in n&&n.onChange(e),"checked"in n||this.setState({checked:!this.state.checked}))}render(){return super.render()}}t.default=a,a.defaultProps={type:"checkbox",disabled:!1,tabIndex:0},a.validatePropTypeLabel=function(e,t,n){if("string"!=typeof e[t]&&!e.id)return new Error(`Invalid prop "${t}" supplied to "${n}". Prop "${t}" must be a string, otherwise prop "id" must be provided. Validation failed`)},a.allowedTypes=["checkbox","radio"],a.propTypes={type:i.default.oneOf(a.allowedTypes),htmlFor:i.default.string,label:a.validatePropTypeLabel,small:i.default.bool,disabled:i.default.bool,checked:i.default.bool,hideLabel:i.default.bool,onChange:i.default.func,onKeyDown:i.default.func,id:i.default.string,tabIndex:i.default.oneOf([-1,0])}},890:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},1046:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){if("string"==typeof e.displayName&&e.constructor.name)return e.displayName;if("string"==typeof e.name&&e.name)return e.name;if("object"==typeof e&&e.constructor&&"string"==typeof e.constructor.name)return e.constructor.name;var n=e.toString(),r=t.call(e).slice(8,-1);return(n="Function"===r?n.substring(n.indexOf("(")+1,n.indexOf(")")):r)||"anonymous"}},7434:e=>{"use strict";e.exports=function(e,t){var n="string",r=decodeURIComponent,o=encodeURIComponent;e||(e="undefined"!=typeof document&&n===typeof document.cookie?document:{}),t||(t={}),typeof e===n?e={cookie:e}:typeof e.cookie!==n&&(e.cookie="");var i=/;\s*/,a=new Date(0).toUTCString();function s(){return t.read?t.read():e.cookie.split(i)}function u(r,i,s){if(typeof r!==n||typeof i!==n)return!1;s||(s={}),i=o(i);var u=(r=o(r))+"="+i;return"expires"in s&&(u+="; expires="+s.expires),"path"in s&&(u+="; path="+s.path),"domain"in s&&(u+="; domain="+s.domain),s.secure&&(u+="; secure"),function(n,r){return t.write?t.write(n,r):e.cookie=n}(u,{remove:s.expires===a,value:i,opts:s,key:r})}function c(e,t){return t||(t={}),t.expires=a,u(e,"",t)}return{removeItem:c,getItem:function(e){for(var t=s(),n=0;n<t.length;n++){var o=t[n],i=o.indexOf("=");if(r(o.slice(0,i))===e)return r(o.slice(i+1))}},setItem:u,clear:function(){for(var e=s(),t=0;t<e.length;t++)c(r(e[t].split("=")[0]))}}}},4205:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>Te,Component:()=>w,Fragment:()=>b,PureComponent:()=>Ce,StrictMode:()=>ht,Suspense:()=>Re,SuspenseList:()=>Ue,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>ut,cloneElement:()=>ft,createContext:()=>V,createElement:()=>h,createFactory:()=>lt,createPortal:()=>Ve,createRef:()=>g,default:()=>xt,findDOMNode:()=>_t,flushSync:()=>vt,forwardRef:()=>je,hydrate:()=>Qe,isValidElement:()=>dt,lazy:()=>$e,memo:()=>Ne,render:()=>Ye,startTransition:()=>yt,unmountComponentAtNode:()=>pt,unstable_batchedUpdates:()=>mt,useCallback:()=>de,useContext:()=>fe,useDebugValue:()=>pe,useDeferredValue:()=>gt,useEffect:()=>ae,useErrorBoundary:()=>_e,useId:()=>me,useImperativeHandle:()=>ce,useInsertionEffect:()=>wt,useLayoutEffect:()=>se,useMemo:()=>le,useReducer:()=>ie,useRef:()=>ue,useState:()=>oe,useSyncExternalStore:()=>Ot,useTransition:()=>bt,version:()=>ct});var r,o,i,a,s,u,c,l,d={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var o,i,a,s={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return y(e,s,o,i,null)}function y(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(s),s}function g(){return{current:null}}function b(e){return e.children}function w(e,t){this.props=e,this.context=t}function O(e,t){if(null==t)return e.__?O(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?O(e):null}function x(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return x(e)}}function E(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!k.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||u)(k)}function k(){var e,t,n,r,o,i,s,u;for(a.sort(c);e=a.shift();)e.__d&&(t=a.length,r=void 0,o=void 0,s=(i=(n=e).__v).__e,(u=n.__P)&&(r=[],(o=m({},i)).__v=i.__v+1,A(u,i,o,n.__n,void 0!==u.ownerSVGElement,null!=i.__h?[s]:null,r,null==s?O(i):s,i.__h),L(r,i),i.__e!=s&&x(i)),a.length>t&&a.sort(c));k.__r=0}function C(e,t,n,r,o,i,a,s,u,c){var l,p,m,v,h,g,w,x=r&&r.__k||f,E=x.length;for(n.__k=[],l=0;l<t.length;l++)if(null!=(v=n.__k[l]=null==(v=t[l])||"boolean"==typeof v||"function"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?y(null,v,null,null,v):_(v)?y(b,{children:v},null,null,null):v.__b>0?y(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(m=x[l])||m&&v.key==m.key&&v.type===m.type)x[l]=void 0;else for(p=0;p<E;p++){if((m=x[p])&&v.key==m.key&&v.type===m.type){x[p]=void 0;break}m=null}A(e,v,m=m||d,o,i,a,s,u,c),h=v.__e,(p=v.ref)&&m.ref!=p&&(w||(w=[]),m.ref&&w.push(m.ref,null,v),w.push(p,v.__c||h,v)),null!=h?(null==g&&(g=h),"function"==typeof v.type&&v.__k===m.__k?v.__d=u=N(v,u,e):u=P(e,v,m,x,h,u),"function"==typeof n.type&&(n.__d=u)):u&&m.__e==u&&u.parentNode!=e&&(u=O(m))}for(n.__e=g,l=E;l--;)null!=x[l]&&("function"==typeof n.type&&null!=x[l].__e&&x[l].__e==n.__d&&(n.__d=j(r).nextSibling),$(x[l],x[l]));if(w)for(l=0;l<w.length;l++)F(w[l],w[++l],w[++l])}function N(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?N(r,t,n):P(n,r,r,o,r.__e,t));return t}function S(e,t){return t=t||[],null==e||"boolean"==typeof e||(_(e)?e.some((function(e){S(e,t)})):t.push(e)),t}function P(e,t,n,r,o,i){var a,s,u;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,u=0;(s=s.nextSibling)&&u<r.length;u+=1)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function j(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=j(n)))return r;return null}function M(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function T(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||M(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||M(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?D:I,i):e.removeEventListener(t,i?D:I,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function I(e){return this.l[e.type+!1](o.event?o.event(e):e)}function D(e){return this.l[e.type+!0](o.event?o.event(e):e)}function A(e,t,n,r,i,a,s,u,c){var l,d,f,p,v,h,y,g,O,x,E,k,N,S,P,j=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,u=t.__e=n.__e,t.__h=null,a=[u]),(l=o.__b)&&l(t);try{e:if("function"==typeof j){if(g=t.props,O=(l=j.contextType)&&r[l.__c],x=l?O?O.props.value:l.__:r,n.__c?y=(d=t.__c=n.__c).__=d.__E:("prototype"in j&&j.prototype.render?t.__c=d=new j(g,x):(t.__c=d=new w(g,x),d.constructor=j,d.render=U),O&&O.sub(d),d.props=g,d.state||(d.state={}),d.context=x,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=j.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=m({},d.__s)),m(d.__s,j.getDerivedStateFromProps(g,d.__s))),p=d.props,v=d.state,d.__v=t,f)null==j.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==j.getDerivedStateFromProps&&g!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,x),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,x)||t.__v===n.__v){for(t.__v!==n.__v&&(d.props=g,d.state=d.__s,d.__d=!1),d.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,x),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,v,h)}))}if(d.context=x,d.props=g,d.__P=e,k=o.__r,N=0,"prototype"in j&&j.prototype.render){for(d.state=d.__s,d.__d=!1,k&&k(t),l=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do{d.__d=!1,k&&k(t),l=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++N<25);d.state=d.__s,null!=d.getChildContext&&(r=m(m({},r),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(h=d.getSnapshotBeforeUpdate(p,v)),C(e,_(P=null!=l&&l.type===b&&null==l.key?l.props.children:l)?P:[P],t,n,r,i,a,s,u,c),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),y&&(d.__E=d.__=null),d.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=R(n.__e,t,n,r,i,a,s,c);(l=o.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=a)&&(t.__e=u,t.__h=!!c,a[a.indexOf(u)]=null),o.__e(e,t,n)}}function L(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function R(e,t,n,o,i,a,s,u){var c,l,f,p=n.props,m=t.props,h=t.type,y=0;if("svg"===h&&(i=!0),null!=a)for(;y<a.length;y++)if((c=a[y])&&"setAttribute"in c==!!h&&(h?c.localName===h:3===c.nodeType)){e=c,a[y]=null;break}if(null==e){if(null===h)return document.createTextNode(m);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,m.is&&m),a=null,u=!1}if(null===h)p===m||u&&e.data===m||(e.data=m);else{if(a=a&&r.call(e.childNodes),l=(p=n.props||d).dangerouslySetInnerHTML,f=m.dangerouslySetInnerHTML,!u){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(f||l)&&(f&&(l&&f.__html==l.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||T(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||T(e,i,t[i],n[i],r)}(e,m,p,i,u),f)t.__k=[];else if(C(e,_(y=t.props.children)?y:[y],t,n,o,i&&"foreignObject"!==h,a,s,a?a[0]:n.__k&&O(n,0),u),null!=a)for(y=a.length;y--;)null!=a[y]&&v(a[y]);u||("value"in m&&void 0!==(y=m.value)&&(y!==e.value||"progress"===h&&!y||"option"===h&&y!==p.value)&&T(e,"value",y,p.value,!1),"checked"in m&&void 0!==(y=m.checked)&&y!==e.checked&&T(e,"checked",y,p.checked,!1))}return e}function F(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function $(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||F(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&$(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||v(e.__e),e.__=e.__e=e.__d=void 0}function U(e,t,n){return this.constructor(e,n)}function W(e,t,n){var i,a,s;o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],A(t,e=(!i&&n||t).__k=h(b,null,[e]),a||d,d,void 0!==t.ownerSVGElement,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,s,!i&&n?n:a?a.__e:t.firstChild,i),L(s,e)}function B(e,t){W(e,t,B)}function H(e,t,n){var o,i,a,s,u=m({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=void 0===t[a]&&void 0!==s?s[a]:t[a];return arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),y(e.type,u,o||e.key,i||e.ref,null)}function V(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,E(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),E(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},w.prototype.render=b,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},k.__r=0,l=0;var q,z,G,K,Z=0,J=[],Y=[],Q=o.__b,X=o.__r,ee=o.diffed,te=o.__c,ne=o.unmount;function re(e,t){o.__h&&o.__h(z,e,Z||t),Z=0;var n=z.__H||(z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Y}),n.__[e]}function oe(e){return Z=1,ie(Oe,e)}function ie(e,t,n){var r=re(q++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Oe(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=z,!z.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var a=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};z.u=!0;var i=z.shouldComponentUpdate,a=z.componentWillUpdate;z.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}a&&a.call(this,e,t,n)},z.shouldComponentUpdate=o}return r.__N||r.__}function ae(e,t){var n=re(q++,3);!o.__s&&we(n.__H,t)&&(n.__=e,n.i=t,z.__H.__h.push(n))}function se(e,t){var n=re(q++,4);!o.__s&&we(n.__H,t)&&(n.__=e,n.i=t,z.__h.push(n))}function ue(e){return Z=5,le((function(){return{current:e}}),[])}function ce(e,t,n){Z=6,se((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function le(e,t){var n=re(q++,7);return we(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function de(e,t){return Z=8,le((function(){return e}),t)}function fe(e){var t=z.context[e.__c],n=re(q++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(z)),t.props.value):e.__}function pe(e,t){o.useDebugValue&&o.useDebugValue(t?t(e):e)}function _e(e){var t=re(q++,10),n=oe();return t.__=e,z.componentDidCatch||(z.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function me(){var e=re(q++,11);if(!e.__){for(var t=z.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ve(){for(var e;e=J.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ge),e.__H.__h.forEach(be),e.__H.__h=[]}catch(t){e.__H.__h=[],o.__e(t,e.__v)}}o.__b=function(e){z=null,Q&&Q(e)},o.__r=function(e){X&&X(e),q=0;var t=(z=e.__c).__H;t&&(G===z?(t.__h=[],z.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Y,e.__N=e.i=void 0}))):(t.__h.forEach(ge),t.__h.forEach(be),t.__h=[],q=0)),G=z},o.diffed=function(e){ee&&ee(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==J.push(t)&&K===o.requestAnimationFrame||((K=o.requestAnimationFrame)||ye)(ve)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Y&&(e.__=e.__V),e.i=void 0,e.__V=Y}))),G=z=null},o.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ge),e.__h=e.__h.filter((function(e){return!e.__||be(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],o.__e(n,e.__v)}})),te&&te(e,t)},o.unmount=function(e){ne&&ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ge(e)}catch(e){t=e}})),n.__H=void 0,t&&o.__e(t,n.__v))};var he="function"==typeof requestAnimationFrame;function ye(e){var t,n=function(){clearTimeout(r),he&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);he&&(t=requestAnimationFrame(n))}function ge(e){var t=z,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),z=t}function be(e){var t=z;e.__c=e.__(),z=t}function we(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Oe(e,t){return"function"==typeof t?t(e):t}function xe(e,t){for(var n in t)e[n]=t[n];return e}function Ee(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function ke(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function Ce(e){this.props=e}function Ne(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Ee(this.props,e)}function r(t){return this.shouldComponentUpdate=n,h(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ce.prototype=new w).isPureReactComponent=!0,Ce.prototype.shouldComponentUpdate=function(e,t){return Ee(this.props,e)||Ee(this.state,t)};var Se=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Se&&Se(e)};var Pe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function je(e){function t(t){var n=xe({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Pe,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Me=function(e,t){return null==e?null:S(S(e).map(t))},Te={map:Me,forEach:Me,count:function(e){return e?S(e).length:0},only:function(e){var t=S(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:S},Ie=o.__e;o.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Ie(e,t,n,r)};var De=o.unmount;function Ae(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=xe({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ae(e,t,n)}))),e}function Le(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Le(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Re(){this.__u=0,this.t=null,this.__b=null}function Fe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function $e(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return h(n,o)}return o.displayName="Lazy",o.__f=!0,o}function Ue(){this.u=null,this.o=null}o.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),De&&De(e)},(Re.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Fe(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Le(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Re.prototype.componentWillUnmount=function(){this.t=[]},Re.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ae(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&h(b,null,e.fallback);return o&&(o.__h=null),[h(b,null,t.__a?null:e.children),o]};var We=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Be(e){return this.getChildContext=function(){return e.context},e.children}function He(e){var t=this,n=e.i;t.componentWillUnmount=function(){W(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),W(h(Be,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Ve(e,t){var n=h(He,{__v:e,i:t});return n.containerInfo=t,n}(Ue.prototype=new w).__a=function(e){var t=this,n=Fe(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),We(t,e,r)):o()};n?n(i):i()}},Ue.prototype.render=function(e){this.u=null,this.o=new Map;var t=S(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ue.prototype.componentDidUpdate=Ue.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){We(e,n,t)}))};var qe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ze=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ge=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ke=/[A-Z0-9]/g,Ze="undefined"!=typeof document,Je=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Ye(e,t,n){return null==t.__k&&(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null}function Qe(e,t,n){return B(e,t),"function"==typeof n&&n(),e?e.__c:null}w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Xe=o.event;function et(){}function tt(){return this.cancelBubble}function nt(){return this.defaultPrevented}o.event=function(e){return Xe&&(e=Xe(e)),e.persist=et,e.isPropagationStopped=tt,e.isDefaultPrevented=nt,e.nativeEvent=e};var rt,ot={enumerable:!1,configurable:!0,get:function(){return this.class}},it=o.vnode;o.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||Ze&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Je(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":Ge.test(o)?o=a:-1===n.indexOf("-")&&ze.test(o)?o=o.replace(Ke,"-$&").toLowerCase():null===i&&(i=void 0):a=o="oninput","oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=S(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=S(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",ot)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=qe,it&&it(e)};var at=o.__r;o.__r=function(e){at&&at(e),rt=e.__c};var st=o.diffed;o.diffed=function(e){st&&st(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),rt=null};var ut={ReactCurrentDispatcher:{current:{readContext:function(e){return rt.__n[e.__c].props.value}}}},ct="17.0.2";function lt(e){return h.bind(null,e)}function dt(e){return!!e&&e.$$typeof===qe}function ft(e){return dt(e)?H.apply(null,arguments):e}function pt(e){return!!e.__k&&(W(null,e),!0)}function _t(e){return e&&(e.base||1===e.nodeType&&e)||null}var mt=function(e,t){return e(t)},vt=function(e,t){return e(t)},ht=b;function yt(e){e()}function gt(e){return e}function bt(){return[!1,yt]}var wt=se;function Ot(e,t){var n=t(),r=oe({h:{__:n,v:t}}),o=r[0].h,i=r[1];return se((function(){o.__=n,o.v=t,ke(o.__,t())||i({h:o})}),[e,n,t]),ae((function(){return ke(o.__,o.v())||i({h:o}),e((function(){ke(o.__,o.v())||i({h:o})}))}),[e]),n}var xt={useState:oe,useId:me,useReducer:ie,useEffect:ae,useLayoutEffect:se,useInsertionEffect:se,useTransition:bt,useDeferredValue:gt,useSyncExternalStore:Ot,startTransition:yt,useRef:ue,useImperativeHandle:ce,useMemo:le,useCallback:de,useContext:fe,useDebugValue:pe,version:"17.0.2",Children:Te,render:Ye,hydrate:Qe,unmountComponentAtNode:pt,createPortal:Ve,createElement:h,createContext:V,createFactory:lt,cloneElement:ft,createRef:g,Fragment:b,isValidElement:dt,findDOMNode:_t,Component:w,PureComponent:Ce,memo:Ne,forwardRef:je,flushSync:vt,unstable_batchedUpdates:mt,StrictMode:b,Suspense:Re,SuspenseList:Ue,lazy:$e,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ut}},6813:(e,t,n)=>{"use strict";var r=n(7790);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},4033:(e,t,n)=>{e.exports=n(6813)()},7790:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5399:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.r(t),n.d(t,{AutoFocusInside:()=>Fe,FocusLockUI:()=>x,FreeFocusInside:()=>He,InFocusGuard:()=>f,MoveFocusInside:()=>We,default:()=>Ve,useFocusInside:()=>$e});var o=n(4205),i="data-focus-lock",a="data-focus-lock-disabled",s="data-no-focus-lock",u="data-autofocus-inside";function c(e,t){return n=t||null,r=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(i=(0,o.useState)((function(){return{value:n,callback:r,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=r,i.facade;var n,r,i}var l={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},d=function(e){var t=e.children;return o.createElement(o.Fragment,null,o.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:l}),t,t&&o.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:l}))};d.defaultProps={children:null};const f=d;var p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function _(e){return e}function m(e,t){void 0===t&&(t=_);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function v(e,t){return void 0===t&&(t=_),m(e,t)}var h=v({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),y=v(),g=v(),b=function(e){void 0===e&&(e={});var t=m(null);return t.options=p({async:!0,ssr:!1},e),t}({async:!0}),w=[],O=o.forwardRef((function(e,t){var n,s=o.useState(),u=s[0],d=s[1],f=o.useRef(),p=o.useRef(!1),_=o.useRef(null),m=e.children,v=e.disabled,g=e.noFocusGuards,O=e.persistentFocus,x=e.crossFrame,E=e.autoFocus,k=(e.allowTextSelection,e.group),C=e.className,N=e.whiteList,S=e.hasPositiveIndices,P=e.shards,j=void 0===P?w:P,M=e.as,T=void 0===M?"div":M,I=e.lockProps,D=void 0===I?{}:I,A=e.sideCar,L=e.returnFocus,R=e.focusOptions,F=e.onActivation,$=e.onDeactivation,U=o.useState({})[0],W=o.useCallback((function(){_.current=_.current||document&&document.activeElement,f.current&&F&&F(f.current),p.current=!0}),[F]),B=o.useCallback((function(){p.current=!1,$&&$(f.current)}),[$]);(0,o.useEffect)((function(){v||(_.current=null)}),[]);var H=o.useCallback((function(e){var t=_.current;if(t&&t.focus){var n="function"==typeof L?L(t):L;if(n){var r="object"==typeof n?n:void 0;_.current=null,e?Promise.resolve().then((function(){return t.focus(r)})):t.focus(r)}}}),[L]),V=o.useCallback((function(e){p.current&&h.useMedium(e)}),[]),q=y.useMedium,z=o.useCallback((function(e){f.current!==e&&(f.current=e,d(e))}),[]);var G=r(((n={})[a]=v&&"disabled",n[i]=k,n),D),K=!0!==g,Z=K&&"tail"!==g,J=c([t,z]);return o.createElement(o.Fragment,null,K&&[o.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:v?-1:0,style:l}),S?o.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:v?-1:1,style:l}):null],!v&&o.createElement(A,{id:U,sideCar:b,observed:u,disabled:v,persistentFocus:O,crossFrame:x,autoFocus:E,whiteList:N,shards:j,onActivation:W,onDeactivation:B,returnFocus:H,focusOptions:R}),o.createElement(T,r({ref:J},G,{className:C,onBlur:q,onFocus:V}),m),Z&&o.createElement("div",{"data-focus-guard":!0,tabIndex:v?-1:0,style:l}))}));O.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const x=O;function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function C(e){var t=function(e,t){if("object"!==k(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===k(t)?t:String(t)}const N=function(e,t){return function(n){var r,i=[];function a(){r=e(i.map((function(e){return e.props}))),t(r)}var s,u,c,l=function(e){var t,s;function u(){return e.apply(this,arguments)||this}s=e,(t=u).prototype=Object.create(s.prototype),t.prototype.constructor=t,E(t,s),u.peek=function(){return r};var c=u.prototype;return c.componentDidMount=function(){i.push(this),a()},c.componentDidUpdate=function(){a()},c.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),a()},c.render=function(){return o.default.createElement(n,this.props)},u}(o.PureComponent);return s=l,u="displayName",c="SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")",(u=C(u))in s?Object.defineProperty(s,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[u]=c,l}};var S=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},P=function(e){return Array.isArray(e)?e:[e]},j=function(e){return Array.isArray(e)?e[0]:e},M=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},T=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},I=function(e,t){return!e||T(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&t(M(e))},D=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=I(t,D.bind(void 0,e));return e.set(t,r),r},A=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!(e&&!T(e))||!!$(e)&&t(M(e))}(t,A.bind(void 0,e));return e.set(t,r),r},L=function(e){return e.dataset},R=function(e){return"INPUT"===e.tagName},F=function(e){return R(e)&&"radio"===e.type},$=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},U=function(e){var t;return Boolean(e&&(null===(t=L(e))||void 0===t?void 0:t.focusGuard))},W=function(e){return!U(e)},B=function(e){return Boolean(e)},H=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},V=function(e,t,n){return S(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(H)},q=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),z="".concat(q,", [data-focus-guard]"),G=function(e,t){return S((e.shadowRoot||e).children).reduce((function(e,n){return e.concat(n.matches(t?z:q)?[n]:[],G(n))}),[])},K=function(e,t){return e.reduce((function(e,n){var r,o=G(n,t),i=(r=[]).concat.apply(r,o.map((function(e){return function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?K([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(i,n.parentNode?S(n.parentNode.querySelectorAll(q)).filter((function(e){return e===n})):[])}),[])},Z=function(e,t){return S(e).filter((function(e){return D(t,e)})).filter((function(e){return function(e){return!((R(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},J=function(e,t){return void 0===t&&(t=new Map),S(e).filter((function(e){return A(t,e)}))},Y=function(e,t,n){return V(Z(K(e,n),t),!0,n)},Q=function(e,t){return V(Z(K(e),t),!1)},X=function(e,t){return Z((n=e.querySelectorAll("[".concat(u,"]")),S(n).map((function(e){return K([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n},ee=function(e,t){return e.shadowRoot?ee(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||S(e.children).some((function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&ee(r,t)}return ee(e,t)}))},te=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?te(t.shadowRoot):t instanceof HTMLIFrameElement&&function(e){try{return e()}catch(e){return}}((function(){return t.contentWindow.document}))?te(t.contentWindow.document):t}},ne=function(e){return e.parentNode?ne(e.parentNode):e},re=function(e){return P(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(i);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(S(ne(t).querySelectorAll("[".concat(i,'="').concat(n,'"]:not([').concat(a,'="disabled"])')))):[t]),e}),[])},oe=function(e,t){return void 0===t&&(t=te(j(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&re(e).some((function(e){return ee(e,t)||function(e,t){return Boolean(S(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},ie=function(e,t){return F(e)&&e.name?function(e,t){return t.filter(F).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},ae=function(e){return e[0]&&e.length>1?ie(e[0],e):e[0]},se=function(e,t){return e.length>1?e.indexOf(ie(e[t],e)):t},ue="NEW_FOCUS",ce=function(e,t,n,r){var o=e.length,i=e[0],a=e[o-1],s=U(n);if(!(n&&e.indexOf(n)>=0)){var u,c,l=void 0!==n?t.indexOf(n):-1,d=r?t.indexOf(r):l,f=r?e.indexOf(r):-1,p=l-d,_=t.indexOf(i),m=t.indexOf(a),v=(u=t,c=new Set,u.forEach((function(e){return c.add(ie(e,u))})),u.filter((function(e){return c.has(e)}))),h=(void 0!==n?v.indexOf(n):-1)-(r?v.indexOf(r):l),y=se(e,0),g=se(e,o-1);return-1===l||-1===f?ue:!p&&f>=0?f:l<=_&&s&&Math.abs(p)>1?g:l>=m&&s&&Math.abs(p)>1?y:p&&Math.abs(h)>1?f:l<=_?g:l>m?y:p?Math.abs(p)>1?f:(o+f+p)%o:void 0}},le=function(e,t,n){var r,o=e.map((function(e){return e.node})),i=J(o.filter((r=n,function(e){var t,n=null===(t=L(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return i&&i.length?ae(i):ae(J(t))},de=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&de(e.parentNode.host||e.parentNode,t),t},fe=function(e,t){for(var n=de(e),r=de(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},pe=function(e,t,n){var r=P(e),o=P(t),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=fe(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=fe(i,e);t&&(a=!a||ee(t,a)?t:fe(t,a))}))})),a},_e=function(e,t){var n=te(P(e).length>0?document:j(e).ownerDocument),r=re(e).filter(W),o=pe(n||e,e,r),i=new Map,a=Q(r,i),s=Y(r,i).filter((function(e){var t=e.node;return W(t)}));if(s[0]||(s=a)[0]){var u,c,l,d=Q([o],i).map((function(e){return e.node})),f=(u=d,c=s,l=new Map,c.forEach((function(e){return l.set(e.node,e)})),u.map((function(e){return l.get(e)})).filter(B)),p=f.map((function(e){return e.node})),_=ce(p,d,n,t);if(_===ue){var m=le(a,p,function(e,t){return e.reduce((function(e,n){return e.concat(X(n,t))}),[])}(r,i));return m?{node:m}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===_?_:f[_]}},me=0,ve=!1;const he=function(e,t,n){void 0===n&&(n={});var r,o,i=_e(e,t);if(!ve&&i){if(me>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ve=!0,void setTimeout((function(){ve=!1}),1);me++,r=i.node,o=n.focusOptions,"focus"in r&&r.focus(o),"contentWindow"in r&&r.contentWindow&&r.contentWindow.focus(),me--}};var ye=function(e){var t=re(e).filter(W),n=pe(e,e,t),r=new Map,o=Y([n],r,!0),i=Y(t,r).filter((function(e){var t=e.node;return W(t)})).map((function(e){return e.node}));return o.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:i.indexOf(t)>=0,guard:U(t)}}))};function ge(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}var be=function(e,t){var n={};return n[e]=t,n},we=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=te(e);return!!t&&S(e.querySelectorAll("[".concat(s,"]"))).some((function(e){return ee(e,t)}))}()},Oe=null,xe=null,Ee=null,ke=!1,Ce=function(){return!0};function Ne(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var Se=function(e){return e&&"current"in e?e.current:e},Pe=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},je=function(){var e,t=!1;if(Oe){var n=Oe,r=n.observed,o=n.persistentFocus,i=n.autoFocus,a=n.shards,s=n.crossFrame,u=n.focusOptions,c=r||Ee&&Ee.portaledElement,l=document&&document.activeElement;if(c){var d=[c].concat(a.map(Se).filter(Boolean));if(l&&!function(e){return(Oe.whiteList||Ce)(e)}(l)||(o||(s?Boolean(ke):"meanwhile"===ke)||!we()||!xe&&i)&&(c&&!(oe(d)||l&&function(e,t){return t.some((function(t){return Pe(e,t,t)}))}(l,d)||(e=l,Ee&&Ee.portaledElement===e))&&(document&&!xe&&l&&!i?(l.blur&&l.blur(),document.body.focus()):(t=he(d,xe,{focusOptions:u}),Ee={})),ke=!1,xe=document&&document.activeElement),document){var f=document&&document.activeElement,p=ye(d),_=p.map((function(e){return e.node})).indexOf(f);_>-1&&(p.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Ne(_,p.length,1,p),Ne(_,-1,-1,p))}}}return t},Me=function(e){je()&&e&&(e.stopPropagation(),e.preventDefault())},Te=function(){return ge(je)},Ie=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(Ee={observerNode:n,portaledElement:t})},De=function(){ke="just",setTimeout((function(){ke="meanwhile"}),0)};h.assignSyncMedium(Ie),y.assignMedium(Te),g.assignMedium((function(e){return e({moveFocusInside:he,focusInside:oe})}));const Ae=N((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!Oe&&(document.addEventListener("focusin",Me),document.addEventListener("focusout",Te),window.addEventListener("blur",De));var n=Oe,r=n&&t&&t.id===n.id;Oe=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(xe=null,r&&n.observed===t.observed||t.onActivation(),je(),ge(je)):(document.removeEventListener("focusin",Me),document.removeEventListener("focusout",Te),window.removeEventListener("blur",De),xe=null)}))((function(){return null}));var Le=o.forwardRef((function(e,t){return o.createElement(x,r({sideCar:Ae,ref:t},e))}));(x.propTypes||{}).sideCar;const Re=Le;const Fe=function(e){var t=e.disabled,n=void 0!==t&&t,i=e.children,a=e.className,s=void 0===a?void 0:a;return o.createElement("div",r({},be(u,!n),{className:s}),i)};var $e=function(e){o.useEffect((function(){var t=!0;return g.useMedium((function(n){var r=e&&e.current;t&&r&&(n.focusInside(r)||n.moveFocusInside(r,null))})),function(){t=!1}}),[e])};function Ue(e){var t=e.disabled,n=e.className,i=e.children,a=o.useRef(null);return $e(t?void 0:a),o.createElement("div",r({},be(u,!t),{ref:a,className:n}),i)}Ue.defaultProps={disabled:!1,className:void 0};const We=Ue;var Be=function(e){var t=e.children,n=e.className;return o.createElement("div",r({},be(s,!0),{className:n}),t)};Be.defaultProps={className:void 0};const He=Be,Ve=Re},8634:e=>{"use strict";e.exports=function(e){var t=Array.prototype.slice.call(arguments,1),n={};for(var r in e)~t.indexOf(r)||(n[r]=e[r]);return n}},7164:e=>{e.exports={privacyManager:{impression:"gtp.privacy_manager.modal.default.impression",save:"gtp.privacy_manager.save.button.click",dismiss:"gtp.privacy_manager.dismiss.button.click",analytics:"gtp.privacy_manager.categories.analytics.toggle.click",support:"gtp.privacy_manager.categories.support.toggle.click",advertising:"gtp.privacy_manager.categories.advertising.toggle.click"},explicitBanner:{impression:"gtp.consent_banners.express.impression",accept:"gtp.consent_banners.express.accept.button.click",dismiss:"gtp.consent_banners.express.dismiss.button.click",moreInfo:"gtp.consent_banners.express.more_information.button.click",manageSettings:"gtp.consent_banners.express.manage_settings.button.click",decline:"gtp.consent_banners.express.decline.button.click"},implicitNoticeBanner:{impression:"gtp.consent_banners.implicit_notice.default.impression",dismiss:"gtp.consent_banners.implicit_notice.dismiss.button.click",moreInfo:"gtp.consent_banners.implicit_notice.more_information.button.click",manageSettings:"gtp.consent_banners.implicit_notice.manage_settings.button.click"},implicitBanner:{impression:"gtp.consent_banners.implicit.default.impression",close:"gtp.consent_banners.implicit.close.button.click",moreInfo:"gtp.consent_banners.implicit.more_information.button.click"}}},2121:(e,t,n)=>{var r=n(3171);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},3841:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2282:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6295:(e,t,n)=>{var r=n(6581);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},6581:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},3872:(e,t,n)=>{var r=n(2572).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},3171:(e,t,n)=>{var r=n(2572).default,o=n(3872);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},2572:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3017:e=>{"use strict";e.exports=JSON.parse('{"banners.accept":"Accept","banners.implicit_notice.description":"We use cookies and similar technologies to offer a customized browsing experience, measure and improve performance of our website, provide customer support, and deliver personalized advertising. To manage your cookie and privacy preferences, please click \\"Manage\\". For more information about our use of cookies and similar technology, please see our","banners.explicit.description":"We use tools, such as cookies, to enable essential services and functionality on our site and to collect data on how visitors interact with our site, products and services. By clicking Accept, you agree to our use of these tools for advertising, analytics and support. ","banners.continue":"Continue","banners.decline":"Decline","banners.dismiss":"Dismiss","banners.learnMore":"Learn More","banners.privacyPolicy":"Privacy Policy","banners.manageSettings":"Manage","banners.title":"We serve cookies.","privacyManager.advertising":"Advertising","privacyManager.advertisingText":"Allow us to serve advertising relevant to you on our platform and other 3rd party platforms.","privacyManager.analytics":"Performance","privacyManager.analyticsText":"Collects anonymous data about how visitors use our site and how it performs. We use this to improve our products, services and user experience.","privacyManager.category":"Category","privacyManager.description":"Our sites use tools, such as cookies, to understand how you use our services and to improve both your experience and our advertising relevance. Here, you can opt-out of such tracking.","privacyManager.essential":"Essential","privacyManager.essentialText":"Enables essential services and functionality, including identity verification, service continuity and site security. Opt-Out is not available.","privacyManager.off":"Off","privacyManager.on":"On","privacyManager.save":"Save","privacyManager.cancel":"Cancel","privacyManager.support":"Support","privacyManager.supportText":"Powers interactive services such as chat support and customer feedback tools.","privacyManager.title":"Your Privacy Options"}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(4205),t=n(319),r=n(2958),o=n(6357),i=n(6304),a=n(7164);function s(n){let{visitor:s,i18n:u,open:c,setOpen:l}=n;s.tcc.addImpression(a.privacyManager.impression);const{consentType:d,optOutCats:f}=s,p=(0,e.useCallback)((()=>(s.reloadOptOut(),Object.keys(f).reduce(((e,t)=>{const n=s.getConsentForCat(t);return e[t]=void 0!==n?!n:"explicit"!==d,e}),{}))),[f,d]),_=(0,e.useMemo)(p,[]),[m,v]=(0,e.useState)(_),h=(0,e.useCallback)((e=>{e.preventDefault(),s.recordInteraction({eid:a.privacyManager.save,utag:!0,consents:Object.keys(m).reduce(((e,t)=>{const n=Boolean(m[t]);return e[t]=n?0:1,e}),{})}),l(!1)}),[m]),y=()=>{s.recordInteraction({eid:a.privacyManager.dismiss}),l(!1)};return e.default.createElement(o.Z,{open:c,id:"privacy_manager_modal",portalElem:document.getElementById("gtm_privacy")?.shadowRoot,title:u["privacyManager.title"],onClose:y},e.default.createElement("form",{onSubmit:e=>h(e,m)},e.default.createElement("div",{id:"privacy_view"},e.default.createElement("p",{className:"pm_description"},u["privacyManager.description"]),e.default.createElement("h4",{className:"headline-primary"}," ",u["privacyManager.category"]," "),Object.keys(f).map((t=>e.default.createElement("div",{className:"pm_option",key:t},e.default.createElement("div",{className:"pm_option-title"},e.default.createElement("strong",null," ",u["privacyManager."+t]," ")),e.default.createElement("div",{className:"pm_option-desc",key:`${t}Desc`},e.default.createElement("p",null," ",u["privacyManager."+t+"Text"]," ")),e.default.createElement("div",{className:"pm_toggle"},e.default.createElement(r.ZP,{id:t,key:`${t}Toggle`,checked:m[t],onChange:()=>((e,t)=>{v({...m,[e]:t})})(t,!m[t])}))))),e.default.createElement("div",{className:"pm_option"},e.default.createElement("div",{className:"pm_option-title"},e.default.createElement("strong",null," ",u["privacyManager.essential"]," ")),e.default.createElement("div",{className:"pm_option-desc"},e.default.createElement("p",null," ",u["privacyManager.essentialText"]," ")),e.default.createElement("div",{className:"pm_toggle"},e.default.createElement(r.ZP,{key:"privacy_view_essential",checked:!0,label:u["privacyManager.on"],disabled:!0})))),e.default.createElement(i.default,{gap:"md"},e.default.createElement(t.default,{id:"privacy_view_confirm",className:"ux-btn-set-item",design:"primary",type:"submit",text:u["privacyManager.save"]}),e.default.createElement(t.default,{id:"privacy_view_cancel",className:"ux-btn",design:"secondary",type:"button",onClick:y,text:u["banners.dismiss"]}))))}function u(t){let{visitor:n,banner:r,i18n:o,privacyPolicyUrl:i,showBanner:a,showManager:u}=t;const[c,l]=(0,e.useState)(u),d={visitor:n,i18n:o,open:c,setOpen:l},f=r?.Component,p={visitor:n,eids:r?.eids,i18n:o,privacyPolicyUrl:i,onClose:function(){let{action:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"manage"===e&&l(!0)}};return(0,e.useEffect)((()=>{window.ux=window.ux||{},window.ux.privacy=window.ux.privacy||{},window.ux.privacy.showManager=function(){l(!0)}}),[c]),e.default.createElement(e.default.Fragment,null,c&&e.default.createElement(s,d),a&&r&&e.default.createElement(f,p))}function c(t){let{notice:n,renderChoices:r,renderCrossIcon:o,renderLearnMore:a,title:s,visible:u}=t;return u?e.default.createElement("div",{id:"privacy_widget"},e.default.createElement("div",{className:"alert alert-dismissable",role:"alert","aria-label":"privacyAlert"},e.default.createElement("div",{className:"pw_cancel"},o&&o()),e.default.createElement("div",{id:"pw_banner"},e.default.createElement("span",{className:"font-primary-bold"},s," "),n,a&&a()),e.default.createElement("div",{className:"pw_buttons"},e.default.createElement(i.default,{split:!0,className:"text-center",gap:"sm"},r())))):null}function l(n){let{visitor:r,eids:o,i18n:i,onClose:a,privacyPolicyUrl:s}=n;const[u,l]=(0,e.useState)(!0),d=()=>{r.recordInteraction({eid:o.dismiss,utag:!0,consents:"enable"}),l(!1),a({action:"accept"})},f=()=>{r.recordInteraction({eid:o.manageSettings}),l(!1),a({action:"manage"})};return e.default.createElement(c,{title:i["banners.title"],notice:i["banners.implicit_notice.description"],visible:u,renderChoices:()=>e.default.createElement(e.default.Fragment,null,e.default.createElement(t.default,{id:"pw_manage",onClick:f,className:"btn-link ux-btn-set-item",design:"link",type:"button",text:i["banners.manageSettings"]})),renderCrossIcon:()=>e.default.createElement(t.default,{onClick:d,"aria-label":"Close modal",className:"modal-close",text:"x"}),renderLearnMore:()=>e.default.createElement(e.default.Fragment,null," ",e.default.createElement(t.default,{id:"pw_info",href:s,external:!0,design:"inline",size:"small",text:i["banners.privacyPolicy"],"data-eid":o.moreInfo}))})}function d(n){let{visitor:r,eids:o,i18n:i,onClose:a,privacyPolicyUrl:s}=n;const[u,l]=(0,e.useState)(!0),d=()=>{r.recordInteraction({eid:o.accept,utag:!0,consents:"enable"}),l(!1),a({action:"accept"})},f=()=>{r.recordInteraction({eid:o.decline,utag:!0,consents:"disable"}),l(!1),a({action:"decline"})},p=()=>{r.recordInteraction({eid:o.manageSettings}),l(!1),a({action:"manage"})};return e.default.createElement(c,{title:i["banners.title"],notice:i["banners.explicit.description"],visible:u,renderChoices:()=>e.default.createElement(e.default.Fragment,null,e.default.createElement(t.default,{id:"pw_manage",onClick:p,className:"btn-link ux-btn-set-item",design:"link",type:"button",text:i["banners.manageSettings"]}),e.default.createElement(t.default,{id:"pw_decline",onClick:f,className:"btn-link ux-btn-set-item",design:"link",type:"button",text:i["banners.decline"]}),e.default.createElement(t.default,{id:"pw_accept",onClick:d,className:"btn-filled ux-btn-set-item",design:"primary",text:i["banners.accept"]})),renderCrossIcon:()=>e.default.createElement(t.default,{onClick:f,"aria-label":"Close modal",className:"modal-close",text:"x"}),renderLearnMore:()=>e.default.createElement(e.default.Fragment,null," ",e.default.createElement(t.default,{id:"pw_info",href:s,external:!0,design:"inline",size:"small",text:i["banners.privacyPolicy"],"data-eid":o.moreInfo}))})}let f,p,_;f="https://tags.tiqcdn.com/utag/godaddy/godaddy/prod/utag.js",p="https://img6.wsimg.com/utag/utag.min.js",_="https://tags.tiqcdn.com/utag/gpl/main/prod/utag.js";const m=["ar"],v={advertising:2,analytics:9,support:11},h="https://www.godaddy.com/legal/agreements/cookie-policy",y="https://www.secureserver.net/legal-agreement",g={dev:"https://tags.tiqcdn.com/utag/gpl/main/dev/utag.js",test:"https://tags.tiqcdn.com/utag/gpl/main/qa/utag.js",prod:"https://tags.tiqcdn.com/utag/gpl/main/prod/utag.js"};function b(){const e=Boolean(window.ux?.privacy?.emulateUtag);return 1!==(Number(window.ux?.data?.privateLabelId)||1)?function(){switch(window.ux?.data?.env){case"production":case"prod":return g.prod;case"test":return g.test;case"development":case"dev":return g.dev;default:return _||g.prod}}():e?p:f}async function w(e){try{await function(e){return window.utag?Promise.resolve():new Promise(((t,n)=>{const r=window.ux?.privacy?.scripts||{0:[b()]};for(const[o,i]of Object.entries(r))if(1!==e[o])for(const e of i)try{const n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=e,n.onload=t,document.head.appendChild(n)}catch(e){console.error(e),n(e)}}))}(e),window.utag.view(window.utag.data)}catch(e){console.error(e)}}class O{constructor(e){let{apiHost:t,visitor:n}=e;this.apiHost=t,this.visitor=n,this.endpoint=this.endpointFor(n)}async get(){const{endpoint:e}=this;if(!this.endpoint)return;const t=await fetch(e,{credentials:"include"}),n=await t.json();return{ok:t.ok,etag:t.headers.get("etag"),result:n}}async put(e){const{result:t,etag:n,ok:r}=await this.get()||{};if(!r)return;const o=this.mergeConsents(t,e);return fetch(this.endpoint,{method:"PUT",headers:{"Content-Type":"application/json","If-Match":n},credentials:"include",mode:"cors",body:o})}mergeConsents(e,t){if(!e||!t)return;const n=Object.keys(t).reduce(((e,n)=>(e[n]=0===t[n]?"TRUE":"FALSE",e)),{});function r(t,r){r||(r=t);const o=n[t]||e[r];return!0===o||"TRUE"===o?"TRUE":"FALSE"}const o={marketingAndAdvertising:r("advertising","marketingAndAdvertising"),analytics:r("analytics"),support:r("support")};return JSON.stringify({...e,...o})}endpointFor(e){const{info_cid:t}=e.infoIdp.readJson();if(!t)return"";let n=this.apiHost;if(!n){const{hostname:t}=e.url,[r=""]=t.match(/(dev-|test-|sgt-)/)||[],[,,o]=t.match(/(dev-|test-|sgt-)?(godaddy.com)/)||[];n=o?`${r}${o}`:`${r}secureserver.net`}return`https://api.${n}/v1/customers/${t}/consent`}}class x{constructor(){let{context:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.context=e}_log(e){const{context:t}=this;t._expDataLayer||(t._expDataLayer=[]),t._expDataLayer.push(e)}addEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"consent",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"v1";this._log({data:{eid:e,type:t},schema:"add_event",version:n})}addImpression(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"v1";this._log({data:{eid:e},schema:"add_impression",version:t})}}var E=n(7434);const k=n.n(E)()();class C{constructor(e){let{name:t,value:n,domain:r,path:o="/",minutes:i=525600}=e;this.name=t,this.minutes=i,this.path=o,void 0!==r&&(this.domain=r),void 0!==n&&(this.value=n)}read(){return this.value=k.getItem(this.name),this.value}readJson(){const e=this.read();try{return JSON.parse(e)}catch(e){return{}}}write(){let{value:e,minutes:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e&&(this.value=e),void 0!==t&&(this.minutes=t),k.setItem(this.name,this.value,this.attributes)}remove(){k.removeItem(this.name,this.attributes)}get attributes(){const{path:e,domain:t}=this,n={expires:this.getCookieExpiry(this.minutes),path:e};return t&&(n.domain=t),n}getCookieExpiry(e){const t=new Date;return t.setTime(t.getTime()+60*e*1e3),t.toGMTString()}}C.rootDomainFor=function(e){const{hostname:t}=e,n=t.endsWith(".co.uk")?-3:-2;return t.split(".").slice(n).join(".")};const N=/(^0:)|(^[Cc][0-9]{1,3})/;class S extends C{constructor(e){let{optOutCats:t,domain:n,context:r}=e;super({name:"OPTOUTMULTI",domain:n}),this.context=r,this.optOutCats=t,this.consents=Object.keys(t).reduce(((e,t)=>(e[t]=1,e)),{})}read(){const e=super.read();return this.setFromStringValue(e),e}write(e){let{value:t}=e;this.value=t;let n=`${encodeURI(this.name)}=${encodeURI(t)}`;const r=this.attributes;"expires"in r&&(n+="; expires="+r.expires),"path"in r&&(n+="; path="+r.path),"domain"in r&&(n+="; domain="+r.domain);(this.context.document||{}).cookie=n}repair(){this.value||super.read();if(!!!this.value)return!1;const e=this.value.split("|").filter((e=>N.test(e)));return this.remove("OPTOUTMULTI"),this.write({value:e.join("|")}),this.setFromStringValue(this.value),!0}setFromStringValue(e){if(!e)return;const t=e.split("|").filter((e=>N.test(e)&&"0:0"!==e)).map((e=>{const[t,n]=e.split(":");return{[t.toLowerCase().slice(1)]:Number(n)}})).reduce(((e,t)=>({...e,...t})),{}),n=Object.keys(this.optOutCats).reduce(((e,n)=>(e[n]=t[this.optOutCats[n]],e)),{});this.consents={...this.consents,...n}}toStringValue(){const{optOutCats:e,consents:t}=this;return Object.keys(t).reduce(((n,r)=>`${n}|c${e[r]}:${t[r]}`),"0:0")}setOptOutAction(e){this.setConsents(e),this.write({value:this.toStringValue()})}setConsents(e){"string"==typeof e?Object.keys(this.consents).forEach((t=>{this.consents[t]="enable"===e?0:1})):"object"==typeof e&&(this.consents={...this.consents,...e})}}class P extends C{constructor(){let{domain:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({name:"pwinteraction",domain:e})}record(){this.write({value:this.getCookieExpiry(0)})}isRecent(e){const t=this.read();if(!t||"yes"===t||"string"!=typeof t)return!1;const n=Date.parse(decodeURI(t));return!Number.isNaN(n)&&("en-GB"===e||"en-IE"===e?n>=16212888e5:n>=15270984e5)}}const j=["/legal","/agreements","/privacy","/terms","/cookie"];class M{constructor(e){let{url:t,optOutCats:n,context:r}=e;this.url=t,this.optOutCats=n,this.context=r;const o=C.rootDomainFor(t);this.pwinteraction=new P({domain:o}),this.infoIdp=new C({name:"info_idp",domain:o}),this.market=new C({name:"market",domain:o}),this.optoutmulti=new S({context:r,domain:o,optOutCats:n}),this.tcc=new x({context:r})}reloadOptOut(){this.optoutmulti.read()}startVisit(){return this.getConsentType(),this.prepareOptOutMulti(),this.getConsentBanner()}getConsentType(){if(!this.consentType){const e=new C({name:"_policy"});try{const{tracking_market:t}=e.readJson();this.consentType=t||"explicit"}catch(e){this.consentType="explicit"}}return this.consentType}getConsentForCat(e){const t=this.optoutmulti.consents||{};if(Object.hasOwnProperty.call(t,e))return t[e]}prepareOptOutMulti(){this.optoutmulti.repair();const e="none"===this.consentType||"implicit"===this.consentType||"implicit_notice"===this.consentType?"enable":"disable";this.optoutmulti.value||this.optoutmulti.setOptOutAction(e),"explicit"!==this.consentType&&w(this.optoutmulti.consents)}getConsentBanner(){const e=(t=this.url.pathname,j.includes(t.toLowerCase()));var t;if(this.pwinteraction.isRecent(this.market.read()))w(this.optoutmulti.consents);else{let t,n;if("explicit"===this.consentType?(t=a.explicitBanner,n=d,this.tcc.addImpression(t.impression)):"implicit_notice"===this.consentType&&(t=a.implicitNoticeBanner,n=l,this.tcc.addImpression(t.impression)),n&&!1===e)return{Component:n,eids:t}}return null}async recordInteraction(e){let{eid:t,utag:n=!1,consents:r}=e;if(this.pwinteraction.record(),r){this.optoutmulti.setConsents(r);const e=this.createConsentClient();try{await e.put(this.optoutmulti.consents)}catch(e){}const t=this.optoutmulti.toStringValue();this.optoutmulti.write({value:t});const{context:n}=this;(n.utag_data||(n.utag_data={}))["cp.OPTOUTMULTI"]=t}n&&w(this.optoutmulti.consents),t&&this.tcc.addEvent(t)}createConsentClient(){return this.consentApi||(this.consentApi=new O({visitor:this})),this.consentApi}getLanguage(){const e=this.market.read();return("string"==typeof e?e.split("-")[0]:"en").toLowerCase()}}var T=n(3017);async function I(e,t){const n=e.getLanguage(),r=m.includes(n)?"rtl":"ltr",o=t.document;let i;try{i=o.getElementById("gtm_privacy");const e=!i;e&&(i=o.createElement("div"),i.setAttribute("id","gtm_privacy")),i.setAttribute("dir",r),i.attachShadow({mode:"open"}),e&&o.body.appendChild(i)}catch(e){console.error(e)}return await function(e,t){const n=t.document;return new Promise(((r,o)=>{try{const i=t.ux?.privacy?.css;if(i){const t=n.createElement("link");t.href=i,t.rel="stylesheet",t.onload=()=>r(),t.onerror=e=>o(e),e.shadowRoot.appendChild(t)}else r()}catch(e){o(e)}}))}(i,t),i}!async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n;(n=window).ux=n.ux||{},n.ux.privacy=n.ux.privacy||{},t.visitor||(t.visitor=new M({url:new URL(window.location.href),optOutCats:v,context:window})),function(t,n){const{visitor:r,i18n:o=T,showBanner:i=!window.ux?.privacy?.invokePrivacyManagerFlag,showManager:a=!i}=t,s=window?.ux?.data?.privateLabelId||window.ux?.eldorado?.data?.privateLabelId||1;let c=1!==s?y+`?id=privacy&plid=${s}`:h;window?.ux?.privacy?.privacyPolicyUrl?c=window?.ux?.privacy?.privacyPolicyUrl:window?.ux?.eldorado?.data?.urls?.privacy?.href&&(c=window?.ux?.eldorado?.data?.urls?.privacy?.href);const l=r.startVisit();e.default.render(e.default.createPortal(e.default.createElement(u,{visitor:r,i18n:o,privacyPolicyUrl:c,showBanner:i,showManager:a,banner:l}),n.shadowRoot),n)}(t,await I(t.visitor,window))}()})()})();
//# sourceMappingURL=consent-main.js.map
}