lbh-frontend 3.7.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -77
- package/README.md +4 -3
- package/package.json +6 -18
- package/dist/assets/images/back-to-top/arrow-up.svg +0 -9
- package/dist/assets/images/contact/address.svg +0 -6
- package/dist/assets/images/contact/email.svg +0 -7
- package/dist/assets/images/contact/map-marker.svg +0 -5
- package/dist/assets/images/contact/notes.svg +0 -11
- package/dist/assets/images/contact/opening-times.svg +0 -7
- package/dist/assets/images/contact/telephone.svg +0 -6
- package/dist/assets/images/favicon.ico +0 -0
- package/dist/assets/images/lbh-logo.png +0 -0
- package/dist/assets/images/lbh-logo.svg +0 -13
- package/dist/assets/images/social/facebook.svg +0 -7
- package/dist/assets/images/social/instagram.svg +0 -7
- package/dist/assets/images/social/twitter.svg +0 -7
- package/dist/assets/images/social/youtube.svg +0 -6
- package/dist/lbh-frontend-3.7.0.min.css +0 -9499
- package/dist/lbh-frontend-3.7.0.min.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var LBHFrontend=(()=>{var it=Object.create;var Y=Object.defineProperty;var at=Object.getOwnPropertyDescriptor;var st=Object.getOwnPropertyNames;var lt=Object.getPrototypeOf,ct=Object.prototype.hasOwnProperty;var G=(S,m)=>()=>(m||S((m={exports:{}}).exports,m),m.exports),ut=(S,m)=>{for(var d in m)Y(S,d,{get:m[d],enumerable:!0})},Ee=(S,m,d,c)=>{if(m&&typeof m=="object"||typeof m=="function")for(let a of st(m))!ct.call(S,a)&&a!==d&&Y(S,a,{get:()=>m[a],enumerable:!(c=at(m,a))||c.enumerable});return S};var W=(S,m,d)=>(d=S!=null?it(lt(S)):{},Ee(m||!S||!S.__esModule?Y(d,"default",{value:S,enumerable:!0}):d,S)),ft=S=>Ee(Y({},"__esModule",{value:!0}),S);var _e=G((X,Le)=>{(function(S,m){typeof X=="object"&&typeof Le<"u"?m(X):typeof define=="function"&&define.amd?define("GOVUKFrontend",["exports"],m):m(S.GOVUKFrontend={})})(X,(function(S){"use strict";function m(o,i){if(window.NodeList.prototype.forEach)return o.forEach(i);for(var s=0;s<o.length;s++)i.call(window,o[s],s,o)}function d(){var o=new Date().getTime();return typeof window.performance<"u"&&typeof window.performance.now=="function"&&(o+=window.performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(i){var s=(o+Math.random()*16)%16|0;return o=Math.floor(o/16),(i==="x"?s:s&3|8).toString(16)})}(function(o){var i="defineProperty"in Object&&(function(){try{var s={};return Object.defineProperty(s,"test",{value:42}),!0}catch(v){return!1}})();i||(function(s){var v=Object.prototype.hasOwnProperty("__defineGetter__"),_="Getters & setters cannot be defined on this javascript engine",j="A property cannot both have accessors and be writable or have a value";Object.defineProperty=function(T,x,A){if(s&&(T===window||T===document||T===Element.prototype||T instanceof Element))return s(T,x,A);if(T===null||!(T instanceof Object||typeof T=="object"))throw new TypeError("Object.defineProperty called on non-object");if(!(A instanceof Object))throw new TypeError("Property description must be an object");var O=String(x),P="value"in A||"writable"in A,k="get"in A&&typeof A.get,M="set"in A&&typeof A.set;if(k){if(k!=="function")throw new TypeError("Getter must be a function");if(!v)throw new TypeError(_);if(P)throw new TypeError(j);Object.__defineGetter__.call(T,O,A.get)}else T[O]=A.value;if(M){if(M!=="function")throw new TypeError("Setter must be a function");if(!v)throw new TypeError(_);if(P)throw new TypeError(j);Object.__defineSetter__.call(T,O,A.set)}return"value"in A&&(T[O]=A.value),T}})(Object.defineProperty)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(o){var i="bind"in Function.prototype;i||Object.defineProperty(Function.prototype,"bind",{value:function(v){var _=Array,j=Object,C=j.prototype,T=_.prototype,x=function(){},A=C.toString,O=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",P,k=Function.prototype.toString,M=function(I){try{return k.call(I),!0}catch(Q){return!1}},F="[object Function]",R="[object GeneratorFunction]";P=function(I){if(typeof I!="function")return!1;if(O)return M(I);var Q=A.call(I);return Q===F||Q===R};var D=T.slice,N=T.concat,$=T.push,H=Math.max,B=this;if(!P(B))throw new TypeError("Function.prototype.bind called on incompatible "+B);for(var Z=D.call(arguments,1),K,ot=function(){if(this instanceof K){var V=B.apply(this,N.call(Z,D.call(arguments)));return j(V)===V?V:this}else return B.apply(v,N.call(Z,D.call(arguments)))},rt=H(0,B.length-Z.length),we=[],z=0;z<rt;z++)$.call(we,"$"+z);return K=Function("binder","return function ("+we.join(",")+"){ return binder.apply(this, arguments); }")(ot),B.prototype&&(x.prototype=B.prototype,K.prototype=new x,x.prototype=null),K}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(o){var i="DOMTokenList"in this&&(function(s){return"classList"in s?!s.classList.toggle("x",!1)&&!s.className:!0})(document.createElement("x"));i||(function(s){var v="DOMTokenList"in s&&s.DOMTokenList;(!v||document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg")&&!(document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList))&&(s.DOMTokenList=(function(){var _=!0,j=function(T,x,A,O){Object.defineProperty?Object.defineProperty(T,x,{configurable:_===!1?!0:!!O,get:A}):T.__defineGetter__(x,A)};try{j({},"support")}catch(T){_=!1}var C=function(T,x){var A=this,O=[],P={},k=0,M=0,F=function(N){j(A,N,function(){return D(),O[N]},!1)},R=function(){if(k>=M)for(;M<k;++M)F(M)},D=function(){var N,$,H=arguments,B=/\s+/;if(H.length){for($=0;$<H.length;++$)if(B.test(H[$]))throw N=new SyntaxError('String "'+H[$]+'" contains an invalid character'),N.code=5,N.name="InvalidCharacterError",N}for(typeof T[x]=="object"?O=(""+T[x].baseVal).replace(/^\s+|\s+$/g,"").split(B):O=(""+T[x]).replace(/^\s+|\s+$/g,"").split(B),O[0]===""&&(O=[]),P={},$=0;$<O.length;++$)P[O[$]]=!0;k=O.length,R()};return D(),j(A,"length",function(){return D(),k}),A.toLocaleString=A.toString=function(){return D(),O.join(" ")},A.item=function(N){return D(),O[N]},A.contains=function(N){return D(),!!P[N]},A.add=function(){D.apply(A,N=arguments);for(var N,$,H=0,B=N.length;H<B;++H)$=N[H],P[$]||(O.push($),P[$]=!0);k!==O.length&&(k=O.length>>>0,typeof T[x]=="object"?T[x].baseVal=O.join(" "):T[x]=O.join(" "),R())},A.remove=function(){D.apply(A,N=arguments);for(var N,$={},H=0,B=[];H<N.length;++H)$[N[H]]=!0,delete P[N[H]];for(H=0;H<O.length;++H)$[O[H]]||B.push(O[H]);O=B,k=B.length>>>0,typeof T[x]=="object"?T[x].baseVal=O.join(" "):T[x]=O.join(" "),R()},A.toggle=function(N,$){return D.apply(A,[N]),o!==$?$?(A.add(N),!0):(A.remove(N),!1):P[N]?(A.remove(N),!1):(A.add(N),!0)},A};return C})()),(function(){var _=document.createElement("span");"classList"in _&&(_.classList.toggle("x",!1),_.classList.contains("x")&&(_.classList.constructor.prototype.toggle=function(C){var T=arguments[1];if(T===o){var x=!this.contains(C);return this[x?"add":"remove"](C),x}return T=!!T,this[T?"add":"remove"](C),T}))})(),(function(){var _=document.createElement("span");if("classList"in _&&(_.classList.add("a","b"),!_.classList.contains("b"))){var j=_.classList.constructor.prototype.add;_.classList.constructor.prototype.add=function(){for(var C=arguments,T=arguments.length,x=0;x<T;x++)j.call(this,C[x])}}})(),(function(){var _=document.createElement("span");if("classList"in _&&(_.classList.add("a"),_.classList.add("b"),_.classList.remove("a","b"),!!_.classList.contains("b"))){var j=_.classList.constructor.prototype.remove;_.classList.constructor.prototype.remove=function(){for(var C=arguments,T=arguments.length,x=0;x<T;x++)j.call(this,C[x])}}})()})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(o){var i="Document"in this;i||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(this.HTMLDocument?this.Document=this.HTMLDocument:(this.Document=this.HTMLDocument=document.constructor=new Function("return function Document() {}")(),this.Document.prototype=document))}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(o){var i="Element"in this&&"HTMLElement"in this;i||(function(){if(window.Element&&!window.HTMLElement){window.HTMLElement=window.Element;return}window.Element=window.HTMLElement=new Function("return function Element() {}")();var s=document.appendChild(document.createElement("body")),v=s.appendChild(document.createElement("iframe")),_=v.contentWindow.document,j=Element.prototype=_.appendChild(_.createElement("*")),C={},T=function(M,F){var R=M.childNodes||[],D=-1,N,$,H;if(M.nodeType===1&&M.constructor!==Element){M.constructor=Element;for(N in C)$=C[N],M[N]=$}for(;H=F&&R[++D];)T(H,F);return M},x=document.getElementsByTagName("*"),A=document.createElement,O,P=100;j.attachEvent("onpropertychange",function(M){for(var F=M.propertyName,R=!C.hasOwnProperty(F),D=j[F],N=C[F],$=-1,H;H=x[++$];)H.nodeType===1&&(R||H[F]===N)&&(H[F]=D);C[F]=D}),j.constructor=Element,j.hasAttribute||(j.hasAttribute=function(F){return this.getAttribute(F)!==null});function k(){return P--||clearTimeout(O),document.body&&!document.body.prototype&&/(complete|interactive)/.test(document.readyState)?(T(document,!0),O&&document.body.prototype&&clearTimeout(O),!!document.body.prototype):!1}k()||(document.onreadystatechange=k,O=setInterval(k,25)),document.createElement=function(F){var R=A(String(F).toLowerCase());return T(R)},document.removeChild(s)})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(o){var i="document"in this&&"classList"in document.documentElement&&"Element"in this&&"classList"in Element.prototype&&(function(){var s=document.createElement("span");return s.classList.add("a","b"),s.classList.contains("b")})();i||(function(s){var v=!0,_=function(C,T,x,A){Object.defineProperty?Object.defineProperty(C,T,{configurable:v===!1?!0:!!A,get:x}):C.__defineGetter__(T,x)};try{_({},"support")}catch(C){v=!1}var j=function(C,T,x){_(C.prototype,T,function(){var A,O=this,P="__defineGetter__DEFINE_PROPERTY"+T;if(O[P])return A;if(O[P]=!0,v===!1){for(var k,M=j.mirror||document.createElement("div"),F=M.childNodes,R=F.length,D=0;D<R;++D)if(F[D]._R===O){k=F[D];break}k||(k=M.appendChild(document.createElement("div"))),A=DOMTokenList.call(k,O,x)}else A=new DOMTokenList(O,x);return _(O,T,function(){return A}),delete O[P],A},!0)};j(s.Element,"classList","className"),j(s.HTMLElement,"classList","className"),j(s.HTMLLinkElement,"relList","rel"),j(s.HTMLAnchorElement,"relList","rel"),j(s.HTMLAreaElement,"relList","rel")})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});function c(o){this.$module=o,this.moduleId=o.getAttribute("id"),this.$sections=o.querySelectorAll(".govuk-accordion__section"),this.$openAllButton="",this.browserSupportsSessionStorage=a.checkForSessionStorage(),this.controlsClass="govuk-accordion__controls",this.openAllClass="govuk-accordion__open-all",this.iconClass="govuk-accordion__icon",this.sectionHeaderClass="govuk-accordion__section-header",this.sectionHeaderFocusedClass="govuk-accordion__section-header--focused",this.sectionHeadingClass="govuk-accordion__section-heading",this.sectionSummaryClass="govuk-accordion__section-summary",this.sectionButtonClass="govuk-accordion__section-button",this.sectionExpandedClass="govuk-accordion__section--expanded"}c.prototype.init=function(){if(this.$module){this.initControls(),this.initSectionHeaders();var o=this.checkIfAllSectionsOpen();this.updateOpenAllButton(o)}},c.prototype.initControls=function(){this.$openAllButton=document.createElement("button"),this.$openAllButton.setAttribute("type","button"),this.$openAllButton.innerHTML='Open all <span class="govuk-visually-hidden">sections</span>',this.$openAllButton.setAttribute("class",this.openAllClass),this.$openAllButton.setAttribute("aria-expanded","false"),this.$openAllButton.setAttribute("type","button");var o=document.createElement("div");o.setAttribute("class",this.controlsClass),o.appendChild(this.$openAllButton),this.$module.insertBefore(o,this.$module.firstChild),this.$openAllButton.addEventListener("click",this.onOpenOrCloseAllToggle.bind(this))},c.prototype.initSectionHeaders=function(){m(this.$sections,(function(o,i){var s=o.querySelector("."+this.sectionHeaderClass);this.initHeaderAttributes(s,i),this.setExpanded(this.isExpanded(o),o),s.addEventListener("click",this.onSectionToggle.bind(this,o)),this.setInitialState(o)}).bind(this))},c.prototype.initHeaderAttributes=function(o,i){var s=this,v=o.querySelector("."+this.sectionButtonClass),_=o.querySelector("."+this.sectionHeadingClass),j=o.querySelector("."+this.sectionSummaryClass),C=document.createElement("button");C.setAttribute("type","button"),C.setAttribute("id",this.moduleId+"-heading-"+(i+1)),C.setAttribute("aria-controls",this.moduleId+"-content-"+(i+1));for(var T=0;T<v.attributes.length;T++){var x=v.attributes.item(T);C.setAttribute(x.nodeName,x.nodeValue)}C.addEventListener("focusin",function(O){o.classList.contains(s.sectionHeaderFocusedClass)||(o.className+=" "+s.sectionHeaderFocusedClass)}),C.addEventListener("blur",function(O){o.classList.remove(s.sectionHeaderFocusedClass)}),typeof j<"u"&&j!==null&&C.setAttribute("aria-describedby",this.moduleId+"-summary-"+(i+1)),C.innerHTML=v.innerHTML,_.removeChild(v),_.appendChild(C);var A=document.createElement("span");A.className=this.iconClass,A.setAttribute("aria-hidden","true"),C.appendChild(A)},c.prototype.onSectionToggle=function(o){var i=this.isExpanded(o);this.setExpanded(!i,o),this.storeState(o)},c.prototype.onOpenOrCloseAllToggle=function(){var o=this,i=this.$sections,s=!this.checkIfAllSectionsOpen();m(i,function(v){o.setExpanded(s,v),o.storeState(v)}),o.updateOpenAllButton(s)},c.prototype.setExpanded=function(o,i){var s=i.querySelector("."+this.sectionButtonClass);s.setAttribute("aria-expanded",o),o?i.classList.add(this.sectionExpandedClass):i.classList.remove(this.sectionExpandedClass);var v=this.checkIfAllSectionsOpen();this.updateOpenAllButton(v)},c.prototype.isExpanded=function(o){return o.classList.contains(this.sectionExpandedClass)},c.prototype.checkIfAllSectionsOpen=function(){var o=this.$sections.length,i=this.$module.querySelectorAll("."+this.sectionExpandedClass).length,s=o===i;return s},c.prototype.updateOpenAllButton=function(o){var i=o?"Close all":"Open all";i+='<span class="govuk-visually-hidden"> sections</span>',this.$openAllButton.setAttribute("aria-expanded",o),this.$openAllButton.innerHTML=i};var a={checkForSessionStorage:function(){var o="this is the test string",i;try{return window.sessionStorage.setItem(o,o),i=window.sessionStorage.getItem(o)===o.toString(),window.sessionStorage.removeItem(o),i}catch(s){(typeof console>"u"||typeof console.log>"u")&&console.log("Notice: sessionStorage not available.")}}};c.prototype.storeState=function(o){if(this.browserSupportsSessionStorage){var i=o.querySelector("."+this.sectionButtonClass);if(i){var s=i.getAttribute("aria-controls"),v=i.getAttribute("aria-expanded");typeof s>"u"&&(typeof console>"u"||typeof console.log>"u")&&console.error(new Error("No aria controls present in accordion section heading.")),typeof v>"u"&&(typeof console>"u"||typeof console.log>"u")&&console.error(new Error("No aria expanded present in accordion section heading.")),s&&v&&window.sessionStorage.setItem(s,v)}}},c.prototype.setInitialState=function(o){if(this.browserSupportsSessionStorage){var i=o.querySelector("."+this.sectionButtonClass);if(i){var s=i.getAttribute("aria-controls"),v=s?window.sessionStorage.getItem(s):null;v!==null&&this.setExpanded(v==="true",o)}}},(function(o){var i="Window"in this;i||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(function(s){s.constructor?s.Window=s.constructor:(s.Window=s.constructor=new Function("return function Window() {}")()).prototype=this})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(o){var i=(function(s){if(!("Event"in s))return!1;if(typeof s.Event=="function")return!0;try{return new Event("click"),!0}catch(v){return!1}})(this);i||(function(){var s={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if(typeof document>"u"||typeof window>"u")return;function v(j,C){for(var T=-1,x=j.length;++T<x;)if(T in j&&j[T]===C)return T;return-1}var _=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(C,T){if(!C)throw new Error("Not enough arguments");var x;if("createEvent"in document){x=document.createEvent("Event");var A=T&&T.bubbles!==o?T.bubbles:!1,O=T&&T.cancelable!==o?T.cancelable:!1;return x.initEvent(C,A,O),x}return x=document.createEventObject(),x.type=C,x.bubbles=T&&T.bubbles!==o?T.bubbles:!1,x.cancelable=T&&T.cancelable!==o?T.cancelable:!1,x},_&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:_}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var C=this,T=arguments[0],x=arguments[1];if(C===window&&T in s)throw new Error("In IE8 the event: "+T+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");C._events||(C._events={}),C._events[T]||(C._events[T]=function(A){var O=C._events[A.type].list,P=O.slice(),k=-1,M=P.length,F;for(A.preventDefault=function(){A.cancelable!==!1&&(A.returnValue=!1)},A.stopPropagation=function(){A.cancelBubble=!0},A.stopImmediatePropagation=function(){A.cancelBubble=!0,A.cancelImmediate=!0},A.currentTarget=C,A.relatedTarget=A.fromElement||null,A.target=A.target||A.srcElement||C,A.timeStamp=new Date().getTime(),A.clientX&&(A.pageX=A.clientX+document.documentElement.scrollLeft,A.pageY=A.clientY+document.documentElement.scrollTop);++k<M&&!A.cancelImmediate;)k in P&&(F=P[k],v(O,F)!==-1&&typeof F=="function"&&F.call(C,A))},C._events[T].list=[],C.attachEvent&&C.attachEvent("on"+T,C._events[T])),C._events[T].list.push(x)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var C=this,T=arguments[0],x=arguments[1],A;C._events&&C._events[T]&&C._events[T].list&&(A=v(C._events[T].list,x),A!==-1&&(C._events[T].list.splice(A,1),C._events[T].list.length||(C.detachEvent&&C.detachEvent("on"+T,C._events[T]),delete C._events[T])))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(C){if(!arguments.length)throw new Error("Not enough arguments");if(!C||typeof C.type!="string")throw new Error("DOM Events Exception 0");var T=this,x=C.type;try{if(!C.bubbles){C.cancelBubble=!0;var A=function(O){O.cancelBubble=!0,(T||window).detachEvent("on"+x,A)};this.attachEvent("on"+x,A)}this.fireEvent("on"+x,C)}catch(O){C.target=T;do C.currentTarget=T,"_events"in T&&typeof T._events[x]=="function"&&T._events[x].call(T,C),typeof T["on"+x]=="function"&&T["on"+x].call(T,C),T=T.nodeType===9?T.parentWindow:T.parentNode;while(T&&!C.cancelBubble)}return!0},document.attachEvent("onreadystatechange",function(){document.readyState==="complete"&&document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0}))}))})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});var p=32,f=1;function u(o){this.$module=o,this.debounceFormSubmitTimer=null}u.prototype.handleKeyDown=function(o){var i=o.target;i.getAttribute("role")==="button"&&o.keyCode===p&&(o.preventDefault(),i.click())},u.prototype.debounce=function(o){var i=o.target;if(i.getAttribute("data-prevent-double-click")==="true"){if(this.debounceFormSubmitTimer)return o.preventDefault(),!1;this.debounceFormSubmitTimer=setTimeout((function(){this.debounceFormSubmitTimer=null}).bind(this),f*1e3)}},u.prototype.init=function(){this.$module.addEventListener("keydown",this.handleKeyDown),this.$module.addEventListener("click",this.debounce)};var r=13,e=32;function t(o){this.$module=o}t.prototype.init=function(){if(this.$module){var o=typeof this.$module.open=="boolean";o||this.polyfillDetails()}},t.prototype.polyfillDetails=function(){var o=this.$module,i=this.$summary=o.getElementsByTagName("summary").item(0),s=this.$content=o.getElementsByTagName("div").item(0);if(!(!i||!s)){s.id||(s.id="details-content-"+d()),o.setAttribute("role","group"),i.setAttribute("role","button"),i.setAttribute("aria-controls",s.id),i.tabIndex=0;var v=o.getAttribute("open")!==null;v===!0?(i.setAttribute("aria-expanded","true"),s.setAttribute("aria-hidden","false")):(i.setAttribute("aria-expanded","false"),s.setAttribute("aria-hidden","true"),s.style.display="none"),this.polyfillHandleInputs(i,this.polyfillSetAttributes.bind(this))}},t.prototype.polyfillSetAttributes=function(){var o=this.$module,i=this.$summary,s=this.$content,v=i.getAttribute("aria-expanded")==="true",_=s.getAttribute("aria-hidden")==="true";i.setAttribute("aria-expanded",v?"false":"true"),s.setAttribute("aria-hidden",_?"false":"true"),s.style.display=v?"none":"";var j=o.getAttribute("open")!==null;return j?o.removeAttribute("open"):o.setAttribute("open","open"),!0},t.prototype.polyfillHandleInputs=function(o,i){o.addEventListener("keypress",function(s){var v=s.target;(s.keyCode===r||s.keyCode===e)&&v.nodeName.toLowerCase()==="summary"&&(s.preventDefault(),v.click?v.click():i(s))}),o.addEventListener("keyup",function(s){var v=s.target;s.keyCode===e&&v.nodeName.toLowerCase()==="summary"&&s.preventDefault()}),o.addEventListener("click",i)};function n(o){this.$module=o,this.$textarea=o.querySelector(".govuk-js-character-count"),this.$textarea&&(this.$countMessage=o.querySelector('[id="'+this.$textarea.id+'-info"]'))}n.prototype.defaults={characterCountAttribute:"data-maxlength",wordCountAttribute:"data-maxwords"},n.prototype.init=function(){var o=this.$module,i=this.$textarea,s=this.$countMessage;if(!(!i||!s)){i.insertAdjacentElement("afterend",s),this.options=this.getDataset(o);var v=this.defaults.characterCountAttribute;this.options.maxwords&&(v=this.defaults.wordCountAttribute),this.maxLength=o.getAttribute(v),this.maxLength&&(o.removeAttribute("maxlength"),"onpageshow"in window?window.addEventListener("pageshow",this.sync.bind(this)):window.addEventListener("DOMContentLoaded",this.sync.bind(this)),this.sync())}},n.prototype.sync=function(){this.bindChangeEvents(),this.updateCountMessage()},n.prototype.getDataset=function(o){var i={},s=o.attributes;if(s)for(var v=0;v<s.length;v++){var _=s[v],j=_.name.match(/^data-(.+)/);j&&(i[j[1]]=_.value)}return i},n.prototype.count=function(o){var i;if(this.options.maxwords){var s=o.match(/\S+/g)||[];i=s.length}else i=o.length;return i},n.prototype.bindChangeEvents=function(){var o=this.$textarea;o.addEventListener("keyup",this.checkIfValueChanged.bind(this)),o.addEventListener("focus",this.handleFocus.bind(this)),o.addEventListener("blur",this.handleBlur.bind(this))},n.prototype.checkIfValueChanged=function(){this.$textarea.oldValue||(this.$textarea.oldValue=""),this.$textarea.value!==this.$textarea.oldValue&&(this.$textarea.oldValue=this.$textarea.value,this.updateCountMessage())},n.prototype.updateCountMessage=function(){var o=this.$textarea,i=this.options,s=this.$countMessage,v=this.count(o.value),_=this.maxLength,j=_-v,C=i.threshold?i.threshold:0,T=_*C/100;T>v?(s.classList.add("govuk-character-count__message--disabled"),s.setAttribute("aria-hidden",!0)):(s.classList.remove("govuk-character-count__message--disabled"),s.removeAttribute("aria-hidden")),j<0?(o.classList.add("govuk-textarea--error"),s.classList.remove("govuk-hint"),s.classList.add("govuk-error-message")):(o.classList.remove("govuk-textarea--error"),s.classList.remove("govuk-error-message"),s.classList.add("govuk-hint"));var x="remaining",A="character",O=j;i.maxwords&&(A="word"),A=A+(j===-1||j===1?"":"s"),x=j<0?"too many":"remaining",O=Math.abs(j),s.innerHTML="You have "+O+" "+A+" "+x},n.prototype.handleFocus=function(){this.valueChecker=setInterval(this.checkIfValueChanged.bind(this),1e3)},n.prototype.handleBlur=function(){clearInterval(this.valueChecker)};function l(o){this.$module=o,this.$inputs=o.querySelectorAll('input[type="checkbox"]')}l.prototype.init=function(){var o=this.$module,i=this.$inputs;m(i,function(s){var v=s.getAttribute("data-aria-controls");!v||!o.querySelector("#"+v)||(s.setAttribute("aria-controls",v),s.removeAttribute("data-aria-controls"))}),"onpageshow"in window?window.addEventListener("pageshow",this.syncAllConditionalReveals.bind(this)):window.addEventListener("DOMContentLoaded",this.syncAllConditionalReveals.bind(this)),this.syncAllConditionalReveals(),o.addEventListener("click",this.handleClick.bind(this))},l.prototype.syncAllConditionalReveals=function(){m(this.$inputs,this.syncConditionalRevealWithInputState.bind(this))},l.prototype.syncConditionalRevealWithInputState=function(o){var i=this.$module.querySelector("#"+o.getAttribute("aria-controls"));if(i&&i.classList.contains("govuk-checkboxes__conditional")){var s=o.checked;o.setAttribute("aria-expanded",s),i.classList.toggle("govuk-checkboxes__conditional--hidden",!s)}},l.prototype.unCheckAllInputsExcept=function(o){var i=document.querySelectorAll('input[type="checkbox"][name="'+o.name+'"]');m(i,function(s){var v=o.form===s.form;v&&s!==o&&(s.checked=!1)}),this.syncAllConditionalReveals()},l.prototype.unCheckExclusiveInputs=function(o){var i=document.querySelectorAll('input[data-behaviour="exclusive"][type="checkbox"][name="'+o.name+'"]');m(i,function(s){var v=o.form===s.form;v&&(s.checked=!1)}),this.syncAllConditionalReveals()},l.prototype.handleClick=function(o){var i=o.target;if(i.type==="checkbox"){var s=i.getAttribute("aria-controls");if(s&&this.syncConditionalRevealWithInputState(i),!!i.checked){var v=i.getAttribute("data-behaviour")==="exclusive";v?this.unCheckAllInputsExcept(i):this.unCheckExclusiveInputs(i)}}},(function(o){var i="document"in this&&"matches"in document.documentElement;i||(Element.prototype.matches=Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||function(v){for(var _=this,j=(_.document||_.ownerDocument).querySelectorAll(v),C=0;j[C]&&j[C]!==_;)++C;return!!j[C]})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(o){var i="document"in this&&"closest"in document.documentElement;i||(Element.prototype.closest=function(v){for(var _=this;_;){if(_.matches(v))return _;_="SVGElement"in window&&_ instanceof SVGElement?_.parentNode:_.parentElement}return null})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});function h(o){this.$module=o}h.prototype.init=function(){var o=this.$module;o&&(o.focus(),o.addEventListener("click",this.handleClick.bind(this)))},h.prototype.handleClick=function(o){var i=o.target;this.focusTarget(i)&&o.preventDefault()},h.prototype.focusTarget=function(o){if(o.tagName!=="A"||o.href===!1)return!1;var i=this.getFragmentFromUrl(o.href),s=document.getElementById(i);if(!s)return!1;var v=this.getAssociatedLegendOrLabel(s);return v?(v.scrollIntoView(),s.focus({preventScroll:!0}),!0):!1},h.prototype.getFragmentFromUrl=function(o){return o.indexOf("#")===-1?!1:o.split("#").pop()},h.prototype.getAssociatedLegendOrLabel=function(o){var i=o.closest("fieldset");if(i){var s=i.getElementsByTagName("legend");if(s.length){var v=s[0];if(o.type==="checkbox"||o.type==="radio")return v;var _=v.getBoundingClientRect().top,j=o.getBoundingClientRect();if(j.height&&window.innerHeight){var C=j.top+j.height;if(C-_<window.innerHeight/2)return v}}}return document.querySelector("label[for='"+o.getAttribute("id")+"']")||o.closest("label")};function b(o){this.$module=o}b.prototype.init=function(){var o=this.$module;o&&this.setFocus()},b.prototype.setFocus=function(){var o=this.$module;o.getAttribute("data-disable-auto-focus")!=="true"&&o.getAttribute("role")==="alert"&&(o.getAttribute("tabindex")||(o.setAttribute("tabindex","-1"),o.addEventListener("blur",function(){o.removeAttribute("tabindex")})),o.focus())};function y(o){this.$module=o,this.$menuButton=o&&o.querySelector(".govuk-js-header-toggle"),this.$menu=this.$menuButton&&o.querySelector("#"+this.$menuButton.getAttribute("aria-controls"))}y.prototype.init=function(){!this.$module||!this.$menuButton||!this.$menu||(this.syncState(this.$menu.classList.contains("govuk-header__navigation--open")),this.$menuButton.addEventListener("click",this.handleMenuButtonClick.bind(this)))},y.prototype.syncState=function(o){this.$menuButton.classList.toggle("govuk-header__menu-button--open",o),this.$menuButton.setAttribute("aria-expanded",o)},y.prototype.handleMenuButtonClick=function(){var o=this.$menu.classList.toggle("govuk-header__navigation--open");this.syncState(o)};function g(o){this.$module=o,this.$inputs=o.querySelectorAll('input[type="radio"]')}g.prototype.init=function(){var o=this.$module,i=this.$inputs;m(i,function(s){var v=s.getAttribute("data-aria-controls");!v||!o.querySelector("#"+v)||(s.setAttribute("aria-controls",v),s.removeAttribute("data-aria-controls"))}),"onpageshow"in window?window.addEventListener("pageshow",this.syncAllConditionalReveals.bind(this)):window.addEventListener("DOMContentLoaded",this.syncAllConditionalReveals.bind(this)),this.syncAllConditionalReveals(),o.addEventListener("click",this.handleClick.bind(this))},g.prototype.syncAllConditionalReveals=function(){m(this.$inputs,this.syncConditionalRevealWithInputState.bind(this))},g.prototype.syncConditionalRevealWithInputState=function(o){var i=document.querySelector("#"+o.getAttribute("aria-controls"));if(i&&i.classList.contains("govuk-radios__conditional")){var s=o.checked;o.setAttribute("aria-expanded",s),i.classList.toggle("govuk-radios__conditional--hidden",!s)}},g.prototype.handleClick=function(o){var i=o.target;if(i.type==="radio"){var s=document.querySelectorAll('input[type="radio"][aria-controls]');m(s,(function(v){var _=v.form===i.form,j=v.name===i.name;j&&_&&this.syncConditionalRevealWithInputState(v)}).bind(this))}},(function(o){var i="document"in this&&"nextElementSibling"in document.documentElement;i||Object.defineProperty(Element.prototype,"nextElementSibling",{get:function(){for(var s=this.nextSibling;s&&s.nodeType!==1;)s=s.nextSibling;return s}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(o){var i="document"in this&&"previousElementSibling"in document.documentElement;i||Object.defineProperty(Element.prototype,"previousElementSibling",{get:function(){for(var s=this.previousSibling;s&&s.nodeType!==1;)s=s.previousSibling;return s}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});function w(o){this.$module=o,this.$tabs=o.querySelectorAll(".govuk-tabs__tab"),this.keys={left:37,right:39,up:38,down:40},this.jsHiddenClass="govuk-tabs__panel--hidden"}w.prototype.init=function(){typeof window.matchMedia=="function"?this.setupResponsiveChecks():this.setup()},w.prototype.setupResponsiveChecks=function(){this.mql=window.matchMedia("(min-width: 40.0625em)"),this.mql.addListener(this.checkMode.bind(this)),this.checkMode()},w.prototype.checkMode=function(){this.mql.matches?this.setup():this.teardown()},w.prototype.setup=function(){var o=this.$module,i=this.$tabs,s=o.querySelector(".govuk-tabs__list"),v=o.querySelectorAll(".govuk-tabs__list-item");if(!(!i||!s||!v)){s.setAttribute("role","tablist"),m(v,function(j){j.setAttribute("role","presentation")}),m(i,(function(j){this.setAttributes(j),j.boundTabClick=this.onTabClick.bind(this),j.boundTabKeydown=this.onTabKeydown.bind(this),j.addEventListener("click",j.boundTabClick,!0),j.addEventListener("keydown",j.boundTabKeydown,!0),this.hideTab(j)}).bind(this));var _=this.getTab(window.location.hash)||this.$tabs[0];this.showTab(_),o.boundOnHashChange=this.onHashChange.bind(this),window.addEventListener("hashchange",o.boundOnHashChange,!0)}},w.prototype.teardown=function(){var o=this.$module,i=this.$tabs,s=o.querySelector(".govuk-tabs__list"),v=o.querySelectorAll(".govuk-tabs__list-item");!i||!s||!v||(s.removeAttribute("role"),m(v,function(_){_.removeAttribute("role","presentation")}),m(i,(function(_){_.removeEventListener("click",_.boundTabClick,!0),_.removeEventListener("keydown",_.boundTabKeydown,!0),this.unsetAttributes(_)}).bind(this)),window.removeEventListener("hashchange",o.boundOnHashChange,!0))},w.prototype.onHashChange=function(o){var i=window.location.hash,s=this.getTab(i);if(s){if(this.changingHash){this.changingHash=!1;return}var v=this.getCurrentTab();this.hideTab(v),this.showTab(s),s.focus()}},w.prototype.hideTab=function(o){this.unhighlightTab(o),this.hidePanel(o)},w.prototype.showTab=function(o){this.highlightTab(o),this.showPanel(o)},w.prototype.getTab=function(o){return this.$module.querySelector('.govuk-tabs__tab[href="'+o+'"]')},w.prototype.setAttributes=function(o){var i=this.getHref(o).slice(1);o.setAttribute("id","tab_"+i),o.setAttribute("role","tab"),o.setAttribute("aria-controls",i),o.setAttribute("aria-selected","false"),o.setAttribute("tabindex","-1");var s=this.getPanel(o);s.setAttribute("role","tabpanel"),s.setAttribute("aria-labelledby",o.id),s.classList.add(this.jsHiddenClass)},w.prototype.unsetAttributes=function(o){o.removeAttribute("id"),o.removeAttribute("role"),o.removeAttribute("aria-controls"),o.removeAttribute("aria-selected"),o.removeAttribute("tabindex");var i=this.getPanel(o);i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.classList.remove(this.jsHiddenClass)},w.prototype.onTabClick=function(o){if(!o.target.classList.contains("govuk-tabs__tab"))return!1;o.preventDefault();var i=o.target,s=this.getCurrentTab();this.hideTab(s),this.showTab(i),this.createHistoryEntry(i)},w.prototype.createHistoryEntry=function(o){var i=this.getPanel(o),s=i.id;i.id="",this.changingHash=!0,window.location.hash=this.getHref(o).slice(1),i.id=s},w.prototype.onTabKeydown=function(o){switch(o.keyCode){case this.keys.left:case this.keys.up:this.activatePreviousTab(),o.preventDefault();break;case this.keys.right:case this.keys.down:this.activateNextTab(),o.preventDefault();break}},w.prototype.activateNextTab=function(){var o=this.getCurrentTab(),i=o.parentNode.nextElementSibling;if(i)var s=i.querySelector(".govuk-tabs__tab");s&&(this.hideTab(o),this.showTab(s),s.focus(),this.createHistoryEntry(s))},w.prototype.activatePreviousTab=function(){var o=this.getCurrentTab(),i=o.parentNode.previousElementSibling;if(i)var s=i.querySelector(".govuk-tabs__tab");s&&(this.hideTab(o),this.showTab(s),s.focus(),this.createHistoryEntry(s))},w.prototype.getPanel=function(o){var i=this.$module.querySelector(this.getHref(o));return i},w.prototype.showPanel=function(o){var i=this.getPanel(o);i.classList.remove(this.jsHiddenClass)},w.prototype.hidePanel=function(o){var i=this.getPanel(o);i.classList.add(this.jsHiddenClass)},w.prototype.unhighlightTab=function(o){o.setAttribute("aria-selected","false"),o.parentNode.classList.remove("govuk-tabs__list-item--selected"),o.setAttribute("tabindex","-1")},w.prototype.highlightTab=function(o){o.setAttribute("aria-selected","true"),o.parentNode.classList.add("govuk-tabs__list-item--selected"),o.setAttribute("tabindex","0")},w.prototype.getCurrentTab=function(){return this.$module.querySelector(".govuk-tabs__list-item--selected .govuk-tabs__tab")},w.prototype.getHref=function(o){var i=o.getAttribute("href"),s=i.slice(i.indexOf("#"),i.length);return s};function E(o){o=typeof o<"u"?o:{};var i=typeof o.scope<"u"?o.scope:document,s=i.querySelectorAll('[data-module="govuk-button"]');m(s,function(k){new u(k).init()});var v=i.querySelectorAll('[data-module="govuk-accordion"]');m(v,function(k){new c(k).init()});var _=i.querySelectorAll('[data-module="govuk-details"]');m(_,function(k){new t(k).init()});var j=i.querySelectorAll('[data-module="govuk-character-count"]');m(j,function(k){new n(k).init()});var C=i.querySelectorAll('[data-module="govuk-checkboxes"]');m(C,function(k){new l(k).init()});var T=i.querySelector('[data-module="govuk-error-summary"]');new h(T).init();var x=i.querySelector('[data-module="govuk-header"]');new y(x).init();var A=i.querySelectorAll('[data-module="govuk-notification-banner"]');m(A,function(k){new b(k).init()});var O=i.querySelectorAll('[data-module="govuk-radios"]');m(O,function(k){new g(k).init()});var P=i.querySelectorAll('[data-module="govuk-tabs"]');m(P,function(k){new w(k).init()})}S.initAll=E,S.Accordion=c,S.Button=u,S.Details=t,S.CharacterCount=n,S.Checkboxes=l,S.ErrorSummary=h,S.Header=y,S.Radios=g,S.Tabs=w}))});var Te=G((J,ee)=>{(function(S,m){typeof J=="object"&&typeof ee<"u"?ee.exports=m():typeof define=="function"&&define.amd?define("GOVUKFrontend",m):S.GOVUKFrontend=m()})(J,(function(){"use strict";function S(c,a){if(window.NodeList.prototype.forEach)return c.forEach(a);for(var p=0;p<c.length;p++)a.call(window,c[p],p,c)}(function(c){var a="defineProperty"in Object&&(function(){try{var p={};return Object.defineProperty(p,"test",{value:42}),!0}catch(f){return!1}})();a||(function(p){var f=Object.prototype.hasOwnProperty("__defineGetter__"),u="Getters & setters cannot be defined on this javascript engine",r="A property cannot both have accessors and be writable or have a value";Object.defineProperty=function(t,n,l){if(p&&(t===window||t===document||t===Element.prototype||t instanceof Element))return p(t,n,l);if(t===null||!(t instanceof Object||typeof t=="object"))throw new TypeError("Object.defineProperty called on non-object");if(!(l instanceof Object))throw new TypeError("Property description must be an object");var h=String(n),b="value"in l||"writable"in l,y="get"in l&&typeof l.get,g="set"in l&&typeof l.set;if(y){if(y!=="function")throw new TypeError("Getter must be a function");if(!f)throw new TypeError(u);if(b)throw new TypeError(r);Object.__defineGetter__.call(t,h,l.get)}else t[h]=l.value;if(g){if(g!=="function")throw new TypeError("Setter must be a function");if(!f)throw new TypeError(u);if(b)throw new TypeError(r);Object.__defineSetter__.call(t,h,l.set)}return"value"in l&&(t[h]=l.value),t}})(Object.defineProperty)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(c){var a="bind"in Function.prototype;a||Object.defineProperty(Function.prototype,"bind",{value:function(f){var u=Array,r=Object,e=r.prototype,t=u.prototype,n=function(){},l=e.toString,h=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",b,y=Function.prototype.toString,g=function(k){try{return y.call(k),!0}catch(M){return!1}},w="[object Function]",E="[object GeneratorFunction]";b=function(k){if(typeof k!="function")return!1;if(h)return g(k);var M=l.call(k);return M===w||M===E};var o=t.slice,i=t.concat,s=t.push,v=Math.max,_=this;if(!b(_))throw new TypeError("Function.prototype.bind called on incompatible "+_);for(var j=o.call(arguments,1),C,T=function(){if(this instanceof C){var P=_.apply(this,i.call(j,o.call(arguments)));return r(P)===P?P:this}else return _.apply(f,i.call(j,o.call(arguments)))},x=v(0,_.length-j.length),A=[],O=0;O<x;O++)s.call(A,"$"+O);return C=Function("binder","return function ("+A.join(",")+"){ return binder.apply(this, arguments); }")(T),_.prototype&&(n.prototype=_.prototype,C.prototype=new n,n.prototype=null),C}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(c){var a="DOMTokenList"in this&&(function(p){return"classList"in p?!p.classList.toggle("x",!1)&&!p.className:!0})(document.createElement("x"));a||(function(p){var f="DOMTokenList"in p&&p.DOMTokenList;(!f||document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg")&&!(document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList))&&(p.DOMTokenList=(function(){var u=!0,r=function(t,n,l,h){Object.defineProperty?Object.defineProperty(t,n,{configurable:u===!1?!0:!!h,get:l}):t.__defineGetter__(n,l)};try{r({},"support")}catch(t){u=!1}var e=function(t,n){var l=this,h=[],b={},y=0,g=0,w=function(i){r(l,i,function(){return o(),h[i]},!1)},E=function(){if(y>=g)for(;g<y;++g)w(g)},o=function(){var i,s,v=arguments,_=/\s+/;if(v.length){for(s=0;s<v.length;++s)if(_.test(v[s]))throw i=new SyntaxError('String "'+v[s]+'" contains an invalid character'),i.code=5,i.name="InvalidCharacterError",i}for(typeof t[n]=="object"?h=(""+t[n].baseVal).replace(/^\s+|\s+$/g,"").split(_):h=(""+t[n]).replace(/^\s+|\s+$/g,"").split(_),h[0]===""&&(h=[]),b={},s=0;s<h.length;++s)b[h[s]]=!0;y=h.length,E()};return o(),r(l,"length",function(){return o(),y}),l.toLocaleString=l.toString=function(){return o(),h.join(" ")},l.item=function(i){return o(),h[i]},l.contains=function(i){return o(),!!b[i]},l.add=function(){o.apply(l,i=arguments);for(var i,s,v=0,_=i.length;v<_;++v)s=i[v],b[s]||(h.push(s),b[s]=!0);y!==h.length&&(y=h.length>>>0,typeof t[n]=="object"?t[n].baseVal=h.join(" "):t[n]=h.join(" "),E())},l.remove=function(){o.apply(l,i=arguments);for(var i,s={},v=0,_=[];v<i.length;++v)s[i[v]]=!0,delete b[i[v]];for(v=0;v<h.length;++v)s[h[v]]||_.push(h[v]);h=_,y=_.length>>>0,typeof t[n]=="object"?t[n].baseVal=h.join(" "):t[n]=h.join(" "),E()},l.toggle=function(i,s){return o.apply(l,[i]),c!==s?s?(l.add(i),!0):(l.remove(i),!1):b[i]?(l.remove(i),!1):(l.add(i),!0)},l};return e})()),(function(){var u=document.createElement("span");"classList"in u&&(u.classList.toggle("x",!1),u.classList.contains("x")&&(u.classList.constructor.prototype.toggle=function(e){var t=arguments[1];if(t===c){var n=!this.contains(e);return this[n?"add":"remove"](e),n}return t=!!t,this[t?"add":"remove"](e),t}))})(),(function(){var u=document.createElement("span");if("classList"in u&&(u.classList.add("a","b"),!u.classList.contains("b"))){var r=u.classList.constructor.prototype.add;u.classList.constructor.prototype.add=function(){for(var e=arguments,t=arguments.length,n=0;n<t;n++)r.call(this,e[n])}}})(),(function(){var u=document.createElement("span");if("classList"in u&&(u.classList.add("a"),u.classList.add("b"),u.classList.remove("a","b"),!!u.classList.contains("b"))){var r=u.classList.constructor.prototype.remove;u.classList.constructor.prototype.remove=function(){for(var e=arguments,t=arguments.length,n=0;n<t;n++)r.call(this,e[n])}}})()})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(c){var a="Document"in this;a||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(this.HTMLDocument?this.Document=this.HTMLDocument:(this.Document=this.HTMLDocument=document.constructor=new Function("return function Document() {}")(),this.Document.prototype=document))}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(c){var a="Element"in this&&"HTMLElement"in this;a||(function(){if(window.Element&&!window.HTMLElement){window.HTMLElement=window.Element;return}window.Element=window.HTMLElement=new Function("return function Element() {}")();var p=document.appendChild(document.createElement("body")),f=p.appendChild(document.createElement("iframe")),u=f.contentWindow.document,r=Element.prototype=u.appendChild(u.createElement("*")),e={},t=function(g,w){var E=g.childNodes||[],o=-1,i,s,v;if(g.nodeType===1&&g.constructor!==Element){g.constructor=Element;for(i in e)s=e[i],g[i]=s}for(;v=w&&E[++o];)t(v,w);return g},n=document.getElementsByTagName("*"),l=document.createElement,h,b=100;r.attachEvent("onpropertychange",function(g){for(var w=g.propertyName,E=!e.hasOwnProperty(w),o=r[w],i=e[w],s=-1,v;v=n[++s];)v.nodeType===1&&(E||v[w]===i)&&(v[w]=o);e[w]=o}),r.constructor=Element,r.hasAttribute||(r.hasAttribute=function(w){return this.getAttribute(w)!==null});function y(){return b--||clearTimeout(h),document.body&&!document.body.prototype&&/(complete|interactive)/.test(document.readyState)?(t(document,!0),h&&document.body.prototype&&clearTimeout(h),!!document.body.prototype):!1}y()||(document.onreadystatechange=y,h=setInterval(y,25)),document.createElement=function(w){var E=l(String(w).toLowerCase());return t(E)},document.removeChild(p)})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(c){var a="document"in this&&"classList"in document.documentElement&&"Element"in this&&"classList"in Element.prototype&&(function(){var p=document.createElement("span");return p.classList.add("a","b"),p.classList.contains("b")})();a||(function(p){var f=!0,u=function(e,t,n,l){Object.defineProperty?Object.defineProperty(e,t,{configurable:f===!1?!0:!!l,get:n}):e.__defineGetter__(t,n)};try{u({},"support")}catch(e){f=!1}var r=function(e,t,n){u(e.prototype,t,function(){var l,h=this,b="__defineGetter__DEFINE_PROPERTY"+t;if(h[b])return l;if(h[b]=!0,f===!1){for(var y,g=r.mirror||document.createElement("div"),w=g.childNodes,E=w.length,o=0;o<E;++o)if(w[o]._R===h){y=w[o];break}y||(y=g.appendChild(document.createElement("div"))),l=DOMTokenList.call(y,h,n)}else l=new DOMTokenList(h,n);return u(h,t,function(){return l}),delete h[b],l},!0)};r(p.Element,"classList","className"),r(p.HTMLElement,"classList","className"),r(p.HTMLLinkElement,"relList","rel"),r(p.HTMLAnchorElement,"relList","rel"),r(p.HTMLAreaElement,"relList","rel")})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});function m(c){this.$module=c,this.moduleId=c.getAttribute("id"),this.$sections=c.querySelectorAll(".govuk-accordion__section"),this.$openAllButton="",this.browserSupportsSessionStorage=d.checkForSessionStorage(),this.controlsClass="govuk-accordion__controls",this.openAllClass="govuk-accordion__open-all",this.iconClass="govuk-accordion__icon",this.sectionHeaderClass="govuk-accordion__section-header",this.sectionHeaderFocusedClass="govuk-accordion__section-header--focused",this.sectionHeadingClass="govuk-accordion__section-heading",this.sectionSummaryClass="govuk-accordion__section-summary",this.sectionButtonClass="govuk-accordion__section-button",this.sectionExpandedClass="govuk-accordion__section--expanded"}m.prototype.init=function(){if(this.$module){this.initControls(),this.initSectionHeaders();var c=this.checkIfAllSectionsOpen();this.updateOpenAllButton(c)}},m.prototype.initControls=function(){this.$openAllButton=document.createElement("button"),this.$openAllButton.setAttribute("type","button"),this.$openAllButton.innerHTML='Open all <span class="govuk-visually-hidden">sections</span>',this.$openAllButton.setAttribute("class",this.openAllClass),this.$openAllButton.setAttribute("aria-expanded","false"),this.$openAllButton.setAttribute("type","button");var c=document.createElement("div");c.setAttribute("class",this.controlsClass),c.appendChild(this.$openAllButton),this.$module.insertBefore(c,this.$module.firstChild),this.$openAllButton.addEventListener("click",this.onOpenOrCloseAllToggle.bind(this))},m.prototype.initSectionHeaders=function(){S(this.$sections,(function(c,a){var p=c.querySelector("."+this.sectionHeaderClass);this.initHeaderAttributes(p,a),this.setExpanded(this.isExpanded(c),c),p.addEventListener("click",this.onSectionToggle.bind(this,c)),this.setInitialState(c)}).bind(this))},m.prototype.initHeaderAttributes=function(c,a){var p=this,f=c.querySelector("."+this.sectionButtonClass),u=c.querySelector("."+this.sectionHeadingClass),r=c.querySelector("."+this.sectionSummaryClass),e=document.createElement("button");e.setAttribute("type","button"),e.setAttribute("id",this.moduleId+"-heading-"+(a+1)),e.setAttribute("aria-controls",this.moduleId+"-content-"+(a+1));for(var t=0;t<f.attributes.length;t++){var n=f.attributes.item(t);e.setAttribute(n.nodeName,n.nodeValue)}e.addEventListener("focusin",function(h){c.classList.contains(p.sectionHeaderFocusedClass)||(c.className+=" "+p.sectionHeaderFocusedClass)}),e.addEventListener("blur",function(h){c.classList.remove(p.sectionHeaderFocusedClass)}),typeof r<"u"&&r!==null&&e.setAttribute("aria-describedby",this.moduleId+"-summary-"+(a+1)),e.innerHTML=f.innerHTML,u.removeChild(f),u.appendChild(e);var l=document.createElement("span");l.className=this.iconClass,l.setAttribute("aria-hidden","true"),e.appendChild(l)},m.prototype.onSectionToggle=function(c){var a=this.isExpanded(c);this.setExpanded(!a,c),this.storeState(c)},m.prototype.onOpenOrCloseAllToggle=function(){var c=this,a=this.$sections,p=!this.checkIfAllSectionsOpen();S(a,function(f){c.setExpanded(p,f),c.storeState(f)}),c.updateOpenAllButton(p)},m.prototype.setExpanded=function(c,a){var p=a.querySelector("."+this.sectionButtonClass);p.setAttribute("aria-expanded",c),c?a.classList.add(this.sectionExpandedClass):a.classList.remove(this.sectionExpandedClass);var f=this.checkIfAllSectionsOpen();this.updateOpenAllButton(f)},m.prototype.isExpanded=function(c){return c.classList.contains(this.sectionExpandedClass)},m.prototype.checkIfAllSectionsOpen=function(){var c=this.$sections.length,a=this.$module.querySelectorAll("."+this.sectionExpandedClass).length,p=c===a;return p},m.prototype.updateOpenAllButton=function(c){var a=c?"Close all":"Open all";a+='<span class="govuk-visually-hidden"> sections</span>',this.$openAllButton.setAttribute("aria-expanded",c),this.$openAllButton.innerHTML=a};var d={checkForSessionStorage:function(){var c="this is the test string",a;try{return window.sessionStorage.setItem(c,c),a=window.sessionStorage.getItem(c)===c.toString(),window.sessionStorage.removeItem(c),a}catch(p){(typeof console>"u"||typeof console.log>"u")&&console.log("Notice: sessionStorage not available.")}}};return m.prototype.storeState=function(c){if(this.browserSupportsSessionStorage){var a=c.querySelector("."+this.sectionButtonClass);if(a){var p=a.getAttribute("aria-controls"),f=a.getAttribute("aria-expanded");typeof p>"u"&&(typeof console>"u"||typeof console.log>"u")&&console.error(new Error("No aria controls present in accordion section heading.")),typeof f>"u"&&(typeof console>"u"||typeof console.log>"u")&&console.error(new Error("No aria expanded present in accordion section heading.")),p&&f&&window.sessionStorage.setItem(p,f)}}},m.prototype.setInitialState=function(c){if(this.browserSupportsSessionStorage){var a=c.querySelector("."+this.sectionButtonClass);if(a){var p=a.getAttribute("aria-controls"),f=p?window.sessionStorage.getItem(p):null;f!==null&&this.setExpanded(f==="true",c)}}},m}))});var Ce=G((oe,re)=>{(function(S,m){typeof oe=="object"&&typeof re<"u"?re.exports=m():typeof define=="function"&&define.amd?define("GOVUKFrontend",m):S.GOVUKFrontend=m()})(oe,(function(){"use strict";(function(c){var a="Window"in this;a||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(function(p){p.constructor?p.Window=p.constructor:(p.Window=p.constructor=new Function("return function Window() {}")()).prototype=this})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(c){var a="Document"in this;a||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(this.HTMLDocument?this.Document=this.HTMLDocument:(this.Document=this.HTMLDocument=document.constructor=new Function("return function Document() {}")(),this.Document.prototype=document))}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(c){var a="Element"in this&&"HTMLElement"in this;a||(function(){if(window.Element&&!window.HTMLElement){window.HTMLElement=window.Element;return}window.Element=window.HTMLElement=new Function("return function Element() {}")();var p=document.appendChild(document.createElement("body")),f=p.appendChild(document.createElement("iframe")),u=f.contentWindow.document,r=Element.prototype=u.appendChild(u.createElement("*")),e={},t=function(g,w){var E=g.childNodes||[],o=-1,i,s,v;if(g.nodeType===1&&g.constructor!==Element){g.constructor=Element;for(i in e)s=e[i],g[i]=s}for(;v=w&&E[++o];)t(v,w);return g},n=document.getElementsByTagName("*"),l=document.createElement,h,b=100;r.attachEvent("onpropertychange",function(g){for(var w=g.propertyName,E=!e.hasOwnProperty(w),o=r[w],i=e[w],s=-1,v;v=n[++s];)v.nodeType===1&&(E||v[w]===i)&&(v[w]=o);e[w]=o}),r.constructor=Element,r.hasAttribute||(r.hasAttribute=function(w){return this.getAttribute(w)!==null});function y(){return b--||clearTimeout(h),document.body&&!document.body.prototype&&/(complete|interactive)/.test(document.readyState)?(t(document,!0),h&&document.body.prototype&&clearTimeout(h),!!document.body.prototype):!1}y()||(document.onreadystatechange=y,h=setInterval(y,25)),document.createElement=function(w){var E=l(String(w).toLowerCase());return t(E)},document.removeChild(p)})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(c){var a="defineProperty"in Object&&(function(){try{var p={};return Object.defineProperty(p,"test",{value:42}),!0}catch(f){return!1}})();a||(function(p){var f=Object.prototype.hasOwnProperty("__defineGetter__"),u="Getters & setters cannot be defined on this javascript engine",r="A property cannot both have accessors and be writable or have a value";Object.defineProperty=function(t,n,l){if(p&&(t===window||t===document||t===Element.prototype||t instanceof Element))return p(t,n,l);if(t===null||!(t instanceof Object||typeof t=="object"))throw new TypeError("Object.defineProperty called on non-object");if(!(l instanceof Object))throw new TypeError("Property description must be an object");var h=String(n),b="value"in l||"writable"in l,y="get"in l&&typeof l.get,g="set"in l&&typeof l.set;if(y){if(y!=="function")throw new TypeError("Getter must be a function");if(!f)throw new TypeError(u);if(b)throw new TypeError(r);Object.__defineGetter__.call(t,h,l.get)}else t[h]=l.value;if(g){if(g!=="function")throw new TypeError("Setter must be a function");if(!f)throw new TypeError(u);if(b)throw new TypeError(r);Object.__defineSetter__.call(t,h,l.set)}return"value"in l&&(t[h]=l.value),t}})(Object.defineProperty)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(c){var a=(function(p){if(!("Event"in p))return!1;if(typeof p.Event=="function")return!0;try{return new Event("click"),!0}catch(f){return!1}})(this);a||(function(){var p={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if(typeof document>"u"||typeof window>"u")return;function f(r,e){for(var t=-1,n=r.length;++t<n;)if(t in r&&r[t]===e)return t;return-1}var u=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(e,t){if(!e)throw new Error("Not enough arguments");var n;if("createEvent"in document){n=document.createEvent("Event");var l=t&&t.bubbles!==c?t.bubbles:!1,h=t&&t.cancelable!==c?t.cancelable:!1;return n.initEvent(e,l,h),n}return n=document.createEventObject(),n.type=e,n.bubbles=t&&t.bubbles!==c?t.bubbles:!1,n.cancelable=t&&t.cancelable!==c?t.cancelable:!1,n},u&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:u}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var e=this,t=arguments[0],n=arguments[1];if(e===window&&t in p)throw new Error("In IE8 the event: "+t+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");e._events||(e._events={}),e._events[t]||(e._events[t]=function(l){var h=e._events[l.type].list,b=h.slice(),y=-1,g=b.length,w;for(l.preventDefault=function(){l.cancelable!==!1&&(l.returnValue=!1)},l.stopPropagation=function(){l.cancelBubble=!0},l.stopImmediatePropagation=function(){l.cancelBubble=!0,l.cancelImmediate=!0},l.currentTarget=e,l.relatedTarget=l.fromElement||null,l.target=l.target||l.srcElement||e,l.timeStamp=new Date().getTime(),l.clientX&&(l.pageX=l.clientX+document.documentElement.scrollLeft,l.pageY=l.clientY+document.documentElement.scrollTop);++y<g&&!l.cancelImmediate;)y in b&&(w=b[y],f(h,w)!==-1&&typeof w=="function"&&w.call(e,l))},e._events[t].list=[],e.attachEvent&&e.attachEvent("on"+t,e._events[t])),e._events[t].list.push(n)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var e=this,t=arguments[0],n=arguments[1],l;e._events&&e._events[t]&&e._events[t].list&&(l=f(e._events[t].list,n),l!==-1&&(e._events[t].list.splice(l,1),e._events[t].list.length||(e.detachEvent&&e.detachEvent("on"+t,e._events[t]),delete e._events[t])))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(e){if(!arguments.length)throw new Error("Not enough arguments");if(!e||typeof e.type!="string")throw new Error("DOM Events Exception 0");var t=this,n=e.type;try{if(!e.bubbles){e.cancelBubble=!0;var l=function(h){h.cancelBubble=!0,(t||window).detachEvent("on"+n,l)};this.attachEvent("on"+n,l)}this.fireEvent("on"+n,e)}catch(h){e.target=t;do e.currentTarget=t,"_events"in t&&typeof t._events[n]=="function"&&t._events[n].call(t,e),typeof t["on"+n]=="function"&&t["on"+n].call(t,e),t=t.nodeType===9?t.parentWindow:t.parentNode;while(t&&!e.cancelBubble)}return!0},document.attachEvent("onreadystatechange",function(){document.readyState==="complete"&&document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0}))}))})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(c){var a="bind"in Function.prototype;a||Object.defineProperty(Function.prototype,"bind",{value:function(f){var u=Array,r=Object,e=r.prototype,t=u.prototype,n=function(){},l=e.toString,h=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",b,y=Function.prototype.toString,g=function(k){try{return y.call(k),!0}catch(M){return!1}},w="[object Function]",E="[object GeneratorFunction]";b=function(k){if(typeof k!="function")return!1;if(h)return g(k);var M=l.call(k);return M===w||M===E};var o=t.slice,i=t.concat,s=t.push,v=Math.max,_=this;if(!b(_))throw new TypeError("Function.prototype.bind called on incompatible "+_);for(var j=o.call(arguments,1),C,T=function(){if(this instanceof C){var P=_.apply(this,i.call(j,o.call(arguments)));return r(P)===P?P:this}else return _.apply(f,i.call(j,o.call(arguments)))},x=v(0,_.length-j.length),A=[],O=0;O<x;O++)s.call(A,"$"+O);return C=Function("binder","return function ("+A.join(",")+"){ return binder.apply(this, arguments); }")(T),_.prototype&&(n.prototype=_.prototype,C.prototype=new n,n.prototype=null),C}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});var S=32,m=1;function d(c){this.$module=c,this.debounceFormSubmitTimer=null}return d.prototype.handleKeyDown=function(c){var a=c.target;a.getAttribute("role")==="button"&&c.keyCode===S&&(c.preventDefault(),a.click())},d.prototype.debounce=function(c){var a=c.target;if(a.getAttribute("data-prevent-double-click")==="true"){if(this.debounceFormSubmitTimer)return c.preventDefault(),!1;this.debounceFormSubmitTimer=setTimeout((function(){this.debounceFormSubmitTimer=null}).bind(this),m*1e3)}},d.prototype.init=function(){this.$module.addEventListener("keydown",this.handleKeyDown),this.$module.addEventListener("click",this.debounce)},d}))});var xe=G((ie,ae)=>{(function(S,m){typeof ie=="object"&&typeof ae<"u"?ae.exports=m():typeof define=="function"&&define.amd?define("GOVUKFrontend",m):S.GOVUKFrontend=m()})(ie,(function(){"use strict";(function(m){var d="defineProperty"in Object&&(function(){try{var c={};return Object.defineProperty(c,"test",{value:42}),!0}catch(a){return!1}})();d||(function(c){var a=Object.prototype.hasOwnProperty("__defineGetter__"),p="Getters & setters cannot be defined on this javascript engine",f="A property cannot both have accessors and be writable or have a value";Object.defineProperty=function(r,e,t){if(c&&(r===window||r===document||r===Element.prototype||r instanceof Element))return c(r,e,t);if(r===null||!(r instanceof Object||typeof r=="object"))throw new TypeError("Object.defineProperty called on non-object");if(!(t instanceof Object))throw new TypeError("Property description must be an object");var n=String(e),l="value"in t||"writable"in t,h="get"in t&&typeof t.get,b="set"in t&&typeof t.set;if(h){if(h!=="function")throw new TypeError("Getter must be a function");if(!a)throw new TypeError(p);if(l)throw new TypeError(f);Object.__defineGetter__.call(r,n,t.get)}else r[n]=t.value;if(b){if(b!=="function")throw new TypeError("Setter must be a function");if(!a)throw new TypeError(p);if(l)throw new TypeError(f);Object.__defineSetter__.call(r,n,t.set)}return"value"in t&&(r[n]=t.value),r}})(Object.defineProperty)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(m){var d="bind"in Function.prototype;d||Object.defineProperty(Function.prototype,"bind",{value:function(a){var p=Array,f=Object,u=f.prototype,r=p.prototype,e=function(){},t=u.toString,n=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",l,h=Function.prototype.toString,b=function(O){try{return h.call(O),!0}catch(P){return!1}},y="[object Function]",g="[object GeneratorFunction]";l=function(O){if(typeof O!="function")return!1;if(n)return b(O);var P=t.call(O);return P===y||P===g};var w=r.slice,E=r.concat,o=r.push,i=Math.max,s=this;if(!l(s))throw new TypeError("Function.prototype.bind called on incompatible "+s);for(var v=w.call(arguments,1),_,j=function(){if(this instanceof _){var A=s.apply(this,E.call(v,w.call(arguments)));return f(A)===A?A:this}else return s.apply(a,E.call(v,w.call(arguments)))},C=i(0,s.length-v.length),T=[],x=0;x<C;x++)o.call(T,"$"+x);return _=Function("binder","return function ("+T.join(",")+"){ return binder.apply(this, arguments); }")(j),s.prototype&&(e.prototype=s.prototype,_.prototype=new e,e.prototype=null),_}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(m){var d="Window"in this;d||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(function(c){c.constructor?c.Window=c.constructor:(c.Window=c.constructor=new Function("return function Window() {}")()).prototype=this})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(m){var d="Document"in this;d||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(this.HTMLDocument?this.Document=this.HTMLDocument:(this.Document=this.HTMLDocument=document.constructor=new Function("return function Document() {}")(),this.Document.prototype=document))}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(m){var d="Element"in this&&"HTMLElement"in this;d||(function(){if(window.Element&&!window.HTMLElement){window.HTMLElement=window.Element;return}window.Element=window.HTMLElement=new Function("return function Element() {}")();var c=document.appendChild(document.createElement("body")),a=c.appendChild(document.createElement("iframe")),p=a.contentWindow.document,f=Element.prototype=p.appendChild(p.createElement("*")),u={},r=function(b,y){var g=b.childNodes||[],w=-1,E,o,i;if(b.nodeType===1&&b.constructor!==Element){b.constructor=Element;for(E in u)o=u[E],b[E]=o}for(;i=y&&g[++w];)r(i,y);return b},e=document.getElementsByTagName("*"),t=document.createElement,n,l=100;f.attachEvent("onpropertychange",function(b){for(var y=b.propertyName,g=!u.hasOwnProperty(y),w=f[y],E=u[y],o=-1,i;i=e[++o];)i.nodeType===1&&(g||i[y]===E)&&(i[y]=w);u[y]=w}),f.constructor=Element,f.hasAttribute||(f.hasAttribute=function(y){return this.getAttribute(y)!==null});function h(){return l--||clearTimeout(n),document.body&&!document.body.prototype&&/(complete|interactive)/.test(document.readyState)?(r(document,!0),n&&document.body.prototype&&clearTimeout(n),!!document.body.prototype):!1}h()||(document.onreadystatechange=h,n=setInterval(h,25)),document.createElement=function(y){var g=t(String(y).toLowerCase());return r(g)},document.removeChild(c)})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(m){var d=(function(c){if(!("Event"in c))return!1;if(typeof c.Event=="function")return!0;try{return new Event("click"),!0}catch(a){return!1}})(this);d||(function(){var c={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if(typeof document>"u"||typeof window>"u")return;function a(f,u){for(var r=-1,e=f.length;++r<e;)if(r in f&&f[r]===u)return r;return-1}var p=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(u,r){if(!u)throw new Error("Not enough arguments");var e;if("createEvent"in document){e=document.createEvent("Event");var t=r&&r.bubbles!==m?r.bubbles:!1,n=r&&r.cancelable!==m?r.cancelable:!1;return e.initEvent(u,t,n),e}return e=document.createEventObject(),e.type=u,e.bubbles=r&&r.bubbles!==m?r.bubbles:!1,e.cancelable=r&&r.cancelable!==m?r.cancelable:!1,e},p&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:p}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var u=this,r=arguments[0],e=arguments[1];if(u===window&&r in c)throw new Error("In IE8 the event: "+r+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");u._events||(u._events={}),u._events[r]||(u._events[r]=function(t){var n=u._events[t.type].list,l=n.slice(),h=-1,b=l.length,y;for(t.preventDefault=function(){t.cancelable!==!1&&(t.returnValue=!1)},t.stopPropagation=function(){t.cancelBubble=!0},t.stopImmediatePropagation=function(){t.cancelBubble=!0,t.cancelImmediate=!0},t.currentTarget=u,t.relatedTarget=t.fromElement||null,t.target=t.target||t.srcElement||u,t.timeStamp=new Date().getTime(),t.clientX&&(t.pageX=t.clientX+document.documentElement.scrollLeft,t.pageY=t.clientY+document.documentElement.scrollTop);++h<b&&!t.cancelImmediate;)h in l&&(y=l[h],a(n,y)!==-1&&typeof y=="function"&&y.call(u,t))},u._events[r].list=[],u.attachEvent&&u.attachEvent("on"+r,u._events[r])),u._events[r].list.push(e)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var u=this,r=arguments[0],e=arguments[1],t;u._events&&u._events[r]&&u._events[r].list&&(t=a(u._events[r].list,e),t!==-1&&(u._events[r].list.splice(t,1),u._events[r].list.length||(u.detachEvent&&u.detachEvent("on"+r,u._events[r]),delete u._events[r])))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(u){if(!arguments.length)throw new Error("Not enough arguments");if(!u||typeof u.type!="string")throw new Error("DOM Events Exception 0");var r=this,e=u.type;try{if(!u.bubbles){u.cancelBubble=!0;var t=function(n){n.cancelBubble=!0,(r||window).detachEvent("on"+e,t)};this.attachEvent("on"+e,t)}this.fireEvent("on"+e,u)}catch(n){u.target=r;do u.currentTarget=r,"_events"in r&&typeof r._events[e]=="function"&&r._events[e].call(r,u),typeof r["on"+e]=="function"&&r["on"+e].call(r,u),r=r.nodeType===9?r.parentWindow:r.parentNode;while(r&&!u.cancelBubble)}return!0},document.attachEvent("onreadystatechange",function(){document.readyState==="complete"&&document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0}))}))})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(m){var d="DOMTokenList"in this&&(function(c){return"classList"in c?!c.classList.toggle("x",!1)&&!c.className:!0})(document.createElement("x"));d||(function(c){var a="DOMTokenList"in c&&c.DOMTokenList;(!a||document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg")&&!(document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList))&&(c.DOMTokenList=(function(){var p=!0,f=function(r,e,t,n){Object.defineProperty?Object.defineProperty(r,e,{configurable:p===!1?!0:!!n,get:t}):r.__defineGetter__(e,t)};try{f({},"support")}catch(r){p=!1}var u=function(r,e){var t=this,n=[],l={},h=0,b=0,y=function(E){f(t,E,function(){return w(),n[E]},!1)},g=function(){if(h>=b)for(;b<h;++b)y(b)},w=function(){var E,o,i=arguments,s=/\s+/;if(i.length){for(o=0;o<i.length;++o)if(s.test(i[o]))throw E=new SyntaxError('String "'+i[o]+'" contains an invalid character'),E.code=5,E.name="InvalidCharacterError",E}for(typeof r[e]=="object"?n=(""+r[e].baseVal).replace(/^\s+|\s+$/g,"").split(s):n=(""+r[e]).replace(/^\s+|\s+$/g,"").split(s),n[0]===""&&(n=[]),l={},o=0;o<n.length;++o)l[n[o]]=!0;h=n.length,g()};return w(),f(t,"length",function(){return w(),h}),t.toLocaleString=t.toString=function(){return w(),n.join(" ")},t.item=function(E){return w(),n[E]},t.contains=function(E){return w(),!!l[E]},t.add=function(){w.apply(t,E=arguments);for(var E,o,i=0,s=E.length;i<s;++i)o=E[i],l[o]||(n.push(o),l[o]=!0);h!==n.length&&(h=n.length>>>0,typeof r[e]=="object"?r[e].baseVal=n.join(" "):r[e]=n.join(" "),g())},t.remove=function(){w.apply(t,E=arguments);for(var E,o={},i=0,s=[];i<E.length;++i)o[E[i]]=!0,delete l[E[i]];for(i=0;i<n.length;++i)o[n[i]]||s.push(n[i]);n=s,h=s.length>>>0,typeof r[e]=="object"?r[e].baseVal=n.join(" "):r[e]=n.join(" "),g()},t.toggle=function(E,o){return w.apply(t,[E]),m!==o?o?(t.add(E),!0):(t.remove(E),!1):l[E]?(t.remove(E),!1):(t.add(E),!0)},t};return u})()),(function(){var p=document.createElement("span");"classList"in p&&(p.classList.toggle("x",!1),p.classList.contains("x")&&(p.classList.constructor.prototype.toggle=function(u){var r=arguments[1];if(r===m){var e=!this.contains(u);return this[e?"add":"remove"](u),e}return r=!!r,this[r?"add":"remove"](u),r}))})(),(function(){var p=document.createElement("span");if("classList"in p&&(p.classList.add("a","b"),!p.classList.contains("b"))){var f=p.classList.constructor.prototype.add;p.classList.constructor.prototype.add=function(){for(var u=arguments,r=arguments.length,e=0;e<r;e++)f.call(this,u[e])}}})(),(function(){var p=document.createElement("span");if("classList"in p&&(p.classList.add("a"),p.classList.add("b"),p.classList.remove("a","b"),!!p.classList.contains("b"))){var f=p.classList.constructor.prototype.remove;p.classList.constructor.prototype.remove=function(){for(var u=arguments,r=arguments.length,e=0;e<r;e++)f.call(this,u[e])}}})()})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(m){var d="document"in this&&"classList"in document.documentElement&&"Element"in this&&"classList"in Element.prototype&&(function(){var c=document.createElement("span");return c.classList.add("a","b"),c.classList.contains("b")})();d||(function(c){var a=!0,p=function(u,r,e,t){Object.defineProperty?Object.defineProperty(u,r,{configurable:a===!1?!0:!!t,get:e}):u.__defineGetter__(r,e)};try{p({},"support")}catch(u){a=!1}var f=function(u,r,e){p(u.prototype,r,function(){var t,n=this,l="__defineGetter__DEFINE_PROPERTY"+r;if(n[l])return t;if(n[l]=!0,a===!1){for(var h,b=f.mirror||document.createElement("div"),y=b.childNodes,g=y.length,w=0;w<g;++w)if(y[w]._R===n){h=y[w];break}h||(h=b.appendChild(document.createElement("div"))),t=DOMTokenList.call(h,n,e)}else t=new DOMTokenList(n,e);return p(n,r,function(){return t}),delete n[l],t},!0)};f(c.Element,"classList","className"),f(c.HTMLElement,"classList","className"),f(c.HTMLLinkElement,"relList","rel"),f(c.HTMLAnchorElement,"relList","rel"),f(c.HTMLAreaElement,"relList","rel")})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});function S(m){this.$module=m,this.$textarea=m.querySelector(".govuk-js-character-count"),this.$textarea&&(this.$countMessage=m.querySelector('[id="'+this.$textarea.id+'-info"]'))}return S.prototype.defaults={characterCountAttribute:"data-maxlength",wordCountAttribute:"data-maxwords"},S.prototype.init=function(){var m=this.$module,d=this.$textarea,c=this.$countMessage;if(!(!d||!c)){d.insertAdjacentElement("afterend",c),this.options=this.getDataset(m);var a=this.defaults.characterCountAttribute;this.options.maxwords&&(a=this.defaults.wordCountAttribute),this.maxLength=m.getAttribute(a),this.maxLength&&(m.removeAttribute("maxlength"),"onpageshow"in window?window.addEventListener("pageshow",this.sync.bind(this)):window.addEventListener("DOMContentLoaded",this.sync.bind(this)),this.sync())}},S.prototype.sync=function(){this.bindChangeEvents(),this.updateCountMessage()},S.prototype.getDataset=function(m){var d={},c=m.attributes;if(c)for(var a=0;a<c.length;a++){var p=c[a],f=p.name.match(/^data-(.+)/);f&&(d[f[1]]=p.value)}return d},S.prototype.count=function(m){var d;if(this.options.maxwords){var c=m.match(/\S+/g)||[];d=c.length}else d=m.length;return d},S.prototype.bindChangeEvents=function(){var m=this.$textarea;m.addEventListener("keyup",this.checkIfValueChanged.bind(this)),m.addEventListener("focus",this.handleFocus.bind(this)),m.addEventListener("blur",this.handleBlur.bind(this))},S.prototype.checkIfValueChanged=function(){this.$textarea.oldValue||(this.$textarea.oldValue=""),this.$textarea.value!==this.$textarea.oldValue&&(this.$textarea.oldValue=this.$textarea.value,this.updateCountMessage())},S.prototype.updateCountMessage=function(){var m=this.$textarea,d=this.options,c=this.$countMessage,a=this.count(m.value),p=this.maxLength,f=p-a,u=d.threshold?d.threshold:0,r=p*u/100;r>a?(c.classList.add("govuk-character-count__message--disabled"),c.setAttribute("aria-hidden",!0)):(c.classList.remove("govuk-character-count__message--disabled"),c.removeAttribute("aria-hidden")),f<0?(m.classList.add("govuk-textarea--error"),c.classList.remove("govuk-hint"),c.classList.add("govuk-error-message")):(m.classList.remove("govuk-textarea--error"),c.classList.remove("govuk-error-message"),c.classList.add("govuk-hint"));var e="remaining",t="character",n=f;d.maxwords&&(t="word"),t=t+(f===-1||f===1?"":"s"),e=f<0?"too many":"remaining",n=Math.abs(f),c.innerHTML="You have "+n+" "+t+" "+e},S.prototype.handleFocus=function(){this.valueChecker=setInterval(this.checkIfValueChanged.bind(this),1e3)},S.prototype.handleBlur=function(){clearInterval(this.valueChecker)},S}))});var Me=G((se,le)=>{(function(S,m){typeof se=="object"&&typeof le<"u"?le.exports=m():typeof define=="function"&&define.amd?define("GOVUKFrontend",m):S.GOVUKFrontend=m()})(se,(function(){"use strict";(function(d){var c="defineProperty"in Object&&(function(){try{var a={};return Object.defineProperty(a,"test",{value:42}),!0}catch(p){return!1}})();c||(function(a){var p=Object.prototype.hasOwnProperty("__defineGetter__"),f="Getters & setters cannot be defined on this javascript engine",u="A property cannot both have accessors and be writable or have a value";Object.defineProperty=function(e,t,n){if(a&&(e===window||e===document||e===Element.prototype||e instanceof Element))return a(e,t,n);if(e===null||!(e instanceof Object||typeof e=="object"))throw new TypeError("Object.defineProperty called on non-object");if(!(n instanceof Object))throw new TypeError("Property description must be an object");var l=String(t),h="value"in n||"writable"in n,b="get"in n&&typeof n.get,y="set"in n&&typeof n.set;if(b){if(b!=="function")throw new TypeError("Getter must be a function");if(!p)throw new TypeError(f);if(h)throw new TypeError(u);Object.__defineGetter__.call(e,l,n.get)}else e[l]=n.value;if(y){if(y!=="function")throw new TypeError("Setter must be a function");if(!p)throw new TypeError(f);if(h)throw new TypeError(u);Object.__defineSetter__.call(e,l,n.set)}return"value"in n&&(e[l]=n.value),e}})(Object.defineProperty)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="bind"in Function.prototype;c||Object.defineProperty(Function.prototype,"bind",{value:function(p){var f=Array,u=Object,r=u.prototype,e=f.prototype,t=function(){},n=r.toString,l=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",h,b=Function.prototype.toString,y=function(P){try{return b.call(P),!0}catch(k){return!1}},g="[object Function]",w="[object GeneratorFunction]";h=function(P){if(typeof P!="function")return!1;if(l)return y(P);var k=n.call(P);return k===g||k===w};var E=e.slice,o=e.concat,i=e.push,s=Math.max,v=this;if(!h(v))throw new TypeError("Function.prototype.bind called on incompatible "+v);for(var _=E.call(arguments,1),j,C=function(){if(this instanceof j){var O=v.apply(this,o.call(_,E.call(arguments)));return u(O)===O?O:this}else return v.apply(p,o.call(_,E.call(arguments)))},T=s(0,v.length-_.length),x=[],A=0;A<T;A++)i.call(x,"$"+A);return j=Function("binder","return function ("+x.join(",")+"){ return binder.apply(this, arguments); }")(C),v.prototype&&(t.prototype=v.prototype,j.prototype=new t,t.prototype=null),j}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="Window"in this;c||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(function(a){a.constructor?a.Window=a.constructor:(a.Window=a.constructor=new Function("return function Window() {}")()).prototype=this})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="Document"in this;c||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(this.HTMLDocument?this.Document=this.HTMLDocument:(this.Document=this.HTMLDocument=document.constructor=new Function("return function Document() {}")(),this.Document.prototype=document))}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="Element"in this&&"HTMLElement"in this;c||(function(){if(window.Element&&!window.HTMLElement){window.HTMLElement=window.Element;return}window.Element=window.HTMLElement=new Function("return function Element() {}")();var a=document.appendChild(document.createElement("body")),p=a.appendChild(document.createElement("iframe")),f=p.contentWindow.document,u=Element.prototype=f.appendChild(f.createElement("*")),r={},e=function(y,g){var w=y.childNodes||[],E=-1,o,i,s;if(y.nodeType===1&&y.constructor!==Element){y.constructor=Element;for(o in r)i=r[o],y[o]=i}for(;s=g&&w[++E];)e(s,g);return y},t=document.getElementsByTagName("*"),n=document.createElement,l,h=100;u.attachEvent("onpropertychange",function(y){for(var g=y.propertyName,w=!r.hasOwnProperty(g),E=u[g],o=r[g],i=-1,s;s=t[++i];)s.nodeType===1&&(w||s[g]===o)&&(s[g]=E);r[g]=E}),u.constructor=Element,u.hasAttribute||(u.hasAttribute=function(g){return this.getAttribute(g)!==null});function b(){return h--||clearTimeout(l),document.body&&!document.body.prototype&&/(complete|interactive)/.test(document.readyState)?(e(document,!0),l&&document.body.prototype&&clearTimeout(l),!!document.body.prototype):!1}b()||(document.onreadystatechange=b,l=setInterval(b,25)),document.createElement=function(g){var w=n(String(g).toLowerCase());return e(w)},document.removeChild(a)})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c=(function(a){if(!("Event"in a))return!1;if(typeof a.Event=="function")return!0;try{return new Event("click"),!0}catch(p){return!1}})(this);c||(function(){var a={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if(typeof document>"u"||typeof window>"u")return;function p(u,r){for(var e=-1,t=u.length;++e<t;)if(e in u&&u[e]===r)return e;return-1}var f=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(r,e){if(!r)throw new Error("Not enough arguments");var t;if("createEvent"in document){t=document.createEvent("Event");var n=e&&e.bubbles!==d?e.bubbles:!1,l=e&&e.cancelable!==d?e.cancelable:!1;return t.initEvent(r,n,l),t}return t=document.createEventObject(),t.type=r,t.bubbles=e&&e.bubbles!==d?e.bubbles:!1,t.cancelable=e&&e.cancelable!==d?e.cancelable:!1,t},f&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:f}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var r=this,e=arguments[0],t=arguments[1];if(r===window&&e in a)throw new Error("In IE8 the event: "+e+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");r._events||(r._events={}),r._events[e]||(r._events[e]=function(n){var l=r._events[n.type].list,h=l.slice(),b=-1,y=h.length,g;for(n.preventDefault=function(){n.cancelable!==!1&&(n.returnValue=!1)},n.stopPropagation=function(){n.cancelBubble=!0},n.stopImmediatePropagation=function(){n.cancelBubble=!0,n.cancelImmediate=!0},n.currentTarget=r,n.relatedTarget=n.fromElement||null,n.target=n.target||n.srcElement||r,n.timeStamp=new Date().getTime(),n.clientX&&(n.pageX=n.clientX+document.documentElement.scrollLeft,n.pageY=n.clientY+document.documentElement.scrollTop);++b<y&&!n.cancelImmediate;)b in h&&(g=h[b],p(l,g)!==-1&&typeof g=="function"&&g.call(r,n))},r._events[e].list=[],r.attachEvent&&r.attachEvent("on"+e,r._events[e])),r._events[e].list.push(t)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var r=this,e=arguments[0],t=arguments[1],n;r._events&&r._events[e]&&r._events[e].list&&(n=p(r._events[e].list,t),n!==-1&&(r._events[e].list.splice(n,1),r._events[e].list.length||(r.detachEvent&&r.detachEvent("on"+e,r._events[e]),delete r._events[e])))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(r){if(!arguments.length)throw new Error("Not enough arguments");if(!r||typeof r.type!="string")throw new Error("DOM Events Exception 0");var e=this,t=r.type;try{if(!r.bubbles){r.cancelBubble=!0;var n=function(l){l.cancelBubble=!0,(e||window).detachEvent("on"+t,n)};this.attachEvent("on"+t,n)}this.fireEvent("on"+t,r)}catch(l){r.target=e;do r.currentTarget=e,"_events"in e&&typeof e._events[t]=="function"&&e._events[t].call(e,r),typeof e["on"+t]=="function"&&e["on"+t].call(e,r),e=e.nodeType===9?e.parentWindow:e.parentNode;while(e&&!r.cancelBubble)}return!0},document.attachEvent("onreadystatechange",function(){document.readyState==="complete"&&document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0}))}))})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="DOMTokenList"in this&&(function(a){return"classList"in a?!a.classList.toggle("x",!1)&&!a.className:!0})(document.createElement("x"));c||(function(a){var p="DOMTokenList"in a&&a.DOMTokenList;(!p||document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg")&&!(document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList))&&(a.DOMTokenList=(function(){var f=!0,u=function(e,t,n,l){Object.defineProperty?Object.defineProperty(e,t,{configurable:f===!1?!0:!!l,get:n}):e.__defineGetter__(t,n)};try{u({},"support")}catch(e){f=!1}var r=function(e,t){var n=this,l=[],h={},b=0,y=0,g=function(o){u(n,o,function(){return E(),l[o]},!1)},w=function(){if(b>=y)for(;y<b;++y)g(y)},E=function(){var o,i,s=arguments,v=/\s+/;if(s.length){for(i=0;i<s.length;++i)if(v.test(s[i]))throw o=new SyntaxError('String "'+s[i]+'" contains an invalid character'),o.code=5,o.name="InvalidCharacterError",o}for(typeof e[t]=="object"?l=(""+e[t].baseVal).replace(/^\s+|\s+$/g,"").split(v):l=(""+e[t]).replace(/^\s+|\s+$/g,"").split(v),l[0]===""&&(l=[]),h={},i=0;i<l.length;++i)h[l[i]]=!0;b=l.length,w()};return E(),u(n,"length",function(){return E(),b}),n.toLocaleString=n.toString=function(){return E(),l.join(" ")},n.item=function(o){return E(),l[o]},n.contains=function(o){return E(),!!h[o]},n.add=function(){E.apply(n,o=arguments);for(var o,i,s=0,v=o.length;s<v;++s)i=o[s],h[i]||(l.push(i),h[i]=!0);b!==l.length&&(b=l.length>>>0,typeof e[t]=="object"?e[t].baseVal=l.join(" "):e[t]=l.join(" "),w())},n.remove=function(){E.apply(n,o=arguments);for(var o,i={},s=0,v=[];s<o.length;++s)i[o[s]]=!0,delete h[o[s]];for(s=0;s<l.length;++s)i[l[s]]||v.push(l[s]);l=v,b=v.length>>>0,typeof e[t]=="object"?e[t].baseVal=l.join(" "):e[t]=l.join(" "),w()},n.toggle=function(o,i){return E.apply(n,[o]),d!==i?i?(n.add(o),!0):(n.remove(o),!1):h[o]?(n.remove(o),!1):(n.add(o),!0)},n};return r})()),(function(){var f=document.createElement("span");"classList"in f&&(f.classList.toggle("x",!1),f.classList.contains("x")&&(f.classList.constructor.prototype.toggle=function(r){var e=arguments[1];if(e===d){var t=!this.contains(r);return this[t?"add":"remove"](r),t}return e=!!e,this[e?"add":"remove"](r),e}))})(),(function(){var f=document.createElement("span");if("classList"in f&&(f.classList.add("a","b"),!f.classList.contains("b"))){var u=f.classList.constructor.prototype.add;f.classList.constructor.prototype.add=function(){for(var r=arguments,e=arguments.length,t=0;t<e;t++)u.call(this,r[t])}}})(),(function(){var f=document.createElement("span");if("classList"in f&&(f.classList.add("a"),f.classList.add("b"),f.classList.remove("a","b"),!!f.classList.contains("b"))){var u=f.classList.constructor.prototype.remove;f.classList.constructor.prototype.remove=function(){for(var r=arguments,e=arguments.length,t=0;t<e;t++)u.call(this,r[t])}}})()})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="document"in this&&"classList"in document.documentElement&&"Element"in this&&"classList"in Element.prototype&&(function(){var a=document.createElement("span");return a.classList.add("a","b"),a.classList.contains("b")})();c||(function(a){var p=!0,f=function(r,e,t,n){Object.defineProperty?Object.defineProperty(r,e,{configurable:p===!1?!0:!!n,get:t}):r.__defineGetter__(e,t)};try{f({},"support")}catch(r){p=!1}var u=function(r,e,t){f(r.prototype,e,function(){var n,l=this,h="__defineGetter__DEFINE_PROPERTY"+e;if(l[h])return n;if(l[h]=!0,p===!1){for(var b,y=u.mirror||document.createElement("div"),g=y.childNodes,w=g.length,E=0;E<w;++E)if(g[E]._R===l){b=g[E];break}b||(b=y.appendChild(document.createElement("div"))),n=DOMTokenList.call(b,l,t)}else n=new DOMTokenList(l,t);return f(l,e,function(){return n}),delete l[h],n},!0)};u(a.Element,"classList","className"),u(a.HTMLElement,"classList","className"),u(a.HTMLLinkElement,"relList","rel"),u(a.HTMLAnchorElement,"relList","rel"),u(a.HTMLAreaElement,"relList","rel")})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});function S(d,c){if(window.NodeList.prototype.forEach)return d.forEach(c);for(var a=0;a<d.length;a++)c.call(window,d[a],a,d)}function m(d){this.$module=d,this.$inputs=d.querySelectorAll('input[type="checkbox"]')}return m.prototype.init=function(){var d=this.$module,c=this.$inputs;S(c,function(a){var p=a.getAttribute("data-aria-controls");!p||!d.querySelector("#"+p)||(a.setAttribute("aria-controls",p),a.removeAttribute("data-aria-controls"))}),"onpageshow"in window?window.addEventListener("pageshow",this.syncAllConditionalReveals.bind(this)):window.addEventListener("DOMContentLoaded",this.syncAllConditionalReveals.bind(this)),this.syncAllConditionalReveals(),d.addEventListener("click",this.handleClick.bind(this))},m.prototype.syncAllConditionalReveals=function(){S(this.$inputs,this.syncConditionalRevealWithInputState.bind(this))},m.prototype.syncConditionalRevealWithInputState=function(d){var c=this.$module.querySelector("#"+d.getAttribute("aria-controls"));if(c&&c.classList.contains("govuk-checkboxes__conditional")){var a=d.checked;d.setAttribute("aria-expanded",a),c.classList.toggle("govuk-checkboxes__conditional--hidden",!a)}},m.prototype.unCheckAllInputsExcept=function(d){var c=document.querySelectorAll('input[type="checkbox"][name="'+d.name+'"]');S(c,function(a){var p=d.form===a.form;p&&a!==d&&(a.checked=!1)}),this.syncAllConditionalReveals()},m.prototype.unCheckExclusiveInputs=function(d){var c=document.querySelectorAll('input[data-behaviour="exclusive"][type="checkbox"][name="'+d.name+'"]');S(c,function(a){var p=d.form===a.form;p&&(a.checked=!1)}),this.syncAllConditionalReveals()},m.prototype.handleClick=function(d){var c=d.target;if(c.type==="checkbox"){var a=c.getAttribute("aria-controls");if(a&&this.syncConditionalRevealWithInputState(c),!!c.checked){var p=c.getAttribute("data-behaviour")==="exclusive";p?this.unCheckAllInputsExcept(c):this.unCheckExclusiveInputs(c)}}},m}))});var $e=G((ue,fe)=>{(function(S,m){typeof ue=="object"&&typeof fe<"u"?fe.exports=m():typeof define=="function"&&define.amd?define("GOVUKFrontend",m):S.GOVUKFrontend=m()})(ue,(function(){"use strict";(function(a){var p="defineProperty"in Object&&(function(){try{var f={};return Object.defineProperty(f,"test",{value:42}),!0}catch(u){return!1}})();p||(function(f){var u=Object.prototype.hasOwnProperty("__defineGetter__"),r="Getters & setters cannot be defined on this javascript engine",e="A property cannot both have accessors and be writable or have a value";Object.defineProperty=function(n,l,h){if(f&&(n===window||n===document||n===Element.prototype||n instanceof Element))return f(n,l,h);if(n===null||!(n instanceof Object||typeof n=="object"))throw new TypeError("Object.defineProperty called on non-object");if(!(h instanceof Object))throw new TypeError("Property description must be an object");var b=String(l),y="value"in h||"writable"in h,g="get"in h&&typeof h.get,w="set"in h&&typeof h.set;if(g){if(g!=="function")throw new TypeError("Getter must be a function");if(!u)throw new TypeError(r);if(y)throw new TypeError(e);Object.__defineGetter__.call(n,b,h.get)}else n[b]=h.value;if(w){if(w!=="function")throw new TypeError("Setter must be a function");if(!u)throw new TypeError(r);if(y)throw new TypeError(e);Object.__defineSetter__.call(n,b,h.set)}return"value"in h&&(n[b]=h.value),n}})(Object.defineProperty)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(a){var p="bind"in Function.prototype;p||Object.defineProperty(Function.prototype,"bind",{value:function(u){var r=Array,e=Object,t=e.prototype,n=r.prototype,l=function(){},h=t.toString,b=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",y,g=Function.prototype.toString,w=function(M){try{return g.call(M),!0}catch(F){return!1}},E="[object Function]",o="[object GeneratorFunction]";y=function(M){if(typeof M!="function")return!1;if(b)return w(M);var F=h.call(M);return F===E||F===o};var i=n.slice,s=n.concat,v=n.push,_=Math.max,j=this;if(!y(j))throw new TypeError("Function.prototype.bind called on incompatible "+j);for(var C=i.call(arguments,1),T,x=function(){if(this instanceof T){var k=j.apply(this,s.call(C,i.call(arguments)));return e(k)===k?k:this}else return j.apply(u,s.call(C,i.call(arguments)))},A=_(0,j.length-C.length),O=[],P=0;P<A;P++)v.call(O,"$"+P);return T=Function("binder","return function ("+O.join(",")+"){ return binder.apply(this, arguments); }")(x),j.prototype&&(l.prototype=j.prototype,T.prototype=new l,l.prototype=null),T}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(a){var p="Window"in this;p||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(function(f){f.constructor?f.Window=f.constructor:(f.Window=f.constructor=new Function("return function Window() {}")()).prototype=this})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(a){var p="Document"in this;p||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(this.HTMLDocument?this.Document=this.HTMLDocument:(this.Document=this.HTMLDocument=document.constructor=new Function("return function Document() {}")(),this.Document.prototype=document))}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(a){var p="Element"in this&&"HTMLElement"in this;p||(function(){if(window.Element&&!window.HTMLElement){window.HTMLElement=window.Element;return}window.Element=window.HTMLElement=new Function("return function Element() {}")();var f=document.appendChild(document.createElement("body")),u=f.appendChild(document.createElement("iframe")),r=u.contentWindow.document,e=Element.prototype=r.appendChild(r.createElement("*")),t={},n=function(w,E){var o=w.childNodes||[],i=-1,s,v,_;if(w.nodeType===1&&w.constructor!==Element){w.constructor=Element;for(s in t)v=t[s],w[s]=v}for(;_=E&&o[++i];)n(_,E);return w},l=document.getElementsByTagName("*"),h=document.createElement,b,y=100;e.attachEvent("onpropertychange",function(w){for(var E=w.propertyName,o=!t.hasOwnProperty(E),i=e[E],s=t[E],v=-1,_;_=l[++v];)_.nodeType===1&&(o||_[E]===s)&&(_[E]=i);t[E]=i}),e.constructor=Element,e.hasAttribute||(e.hasAttribute=function(E){return this.getAttribute(E)!==null});function g(){return y--||clearTimeout(b),document.body&&!document.body.prototype&&/(complete|interactive)/.test(document.readyState)?(n(document,!0),b&&document.body.prototype&&clearTimeout(b),!!document.body.prototype):!1}g()||(document.onreadystatechange=g,b=setInterval(g,25)),document.createElement=function(E){var o=h(String(E).toLowerCase());return n(o)},document.removeChild(f)})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(a){var p=(function(f){if(!("Event"in f))return!1;if(typeof f.Event=="function")return!0;try{return new Event("click"),!0}catch(u){return!1}})(this);p||(function(){var f={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if(typeof document>"u"||typeof window>"u")return;function u(e,t){for(var n=-1,l=e.length;++n<l;)if(n in e&&e[n]===t)return n;return-1}var r=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(t,n){if(!t)throw new Error("Not enough arguments");var l;if("createEvent"in document){l=document.createEvent("Event");var h=n&&n.bubbles!==a?n.bubbles:!1,b=n&&n.cancelable!==a?n.cancelable:!1;return l.initEvent(t,h,b),l}return l=document.createEventObject(),l.type=t,l.bubbles=n&&n.bubbles!==a?n.bubbles:!1,l.cancelable=n&&n.cancelable!==a?n.cancelable:!1,l},r&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:r}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var t=this,n=arguments[0],l=arguments[1];if(t===window&&n in f)throw new Error("In IE8 the event: "+n+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");t._events||(t._events={}),t._events[n]||(t._events[n]=function(h){var b=t._events[h.type].list,y=b.slice(),g=-1,w=y.length,E;for(h.preventDefault=function(){h.cancelable!==!1&&(h.returnValue=!1)},h.stopPropagation=function(){h.cancelBubble=!0},h.stopImmediatePropagation=function(){h.cancelBubble=!0,h.cancelImmediate=!0},h.currentTarget=t,h.relatedTarget=h.fromElement||null,h.target=h.target||h.srcElement||t,h.timeStamp=new Date().getTime(),h.clientX&&(h.pageX=h.clientX+document.documentElement.scrollLeft,h.pageY=h.clientY+document.documentElement.scrollTop);++g<w&&!h.cancelImmediate;)g in y&&(E=y[g],u(b,E)!==-1&&typeof E=="function"&&E.call(t,h))},t._events[n].list=[],t.attachEvent&&t.attachEvent("on"+n,t._events[n])),t._events[n].list.push(l)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var t=this,n=arguments[0],l=arguments[1],h;t._events&&t._events[n]&&t._events[n].list&&(h=u(t._events[n].list,l),h!==-1&&(t._events[n].list.splice(h,1),t._events[n].list.length||(t.detachEvent&&t.detachEvent("on"+n,t._events[n]),delete t._events[n])))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(t){if(!arguments.length)throw new Error("Not enough arguments");if(!t||typeof t.type!="string")throw new Error("DOM Events Exception 0");var n=this,l=t.type;try{if(!t.bubbles){t.cancelBubble=!0;var h=function(b){b.cancelBubble=!0,(n||window).detachEvent("on"+l,h)};this.attachEvent("on"+l,h)}this.fireEvent("on"+l,t)}catch(b){t.target=n;do t.currentTarget=n,"_events"in n&&typeof n._events[l]=="function"&&n._events[l].call(n,t),typeof n["on"+l]=="function"&&n["on"+l].call(n,t),n=n.nodeType===9?n.parentWindow:n.parentNode;while(n&&!t.cancelBubble)}return!0},document.attachEvent("onreadystatechange",function(){document.readyState==="complete"&&document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0}))}))})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});function S(){var a=new Date().getTime();return typeof window.performance<"u"&&typeof window.performance.now=="function"&&(a+=window.performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(p){var f=(a+Math.random()*16)%16|0;return a=Math.floor(a/16),(p==="x"?f:f&3|8).toString(16)})}var m=13,d=32;function c(a){this.$module=a}return c.prototype.init=function(){if(this.$module){var a=typeof this.$module.open=="boolean";a||this.polyfillDetails()}},c.prototype.polyfillDetails=function(){var a=this.$module,p=this.$summary=a.getElementsByTagName("summary").item(0),f=this.$content=a.getElementsByTagName("div").item(0);if(!(!p||!f)){f.id||(f.id="details-content-"+S()),a.setAttribute("role","group"),p.setAttribute("role","button"),p.setAttribute("aria-controls",f.id),p.tabIndex=0;var u=a.getAttribute("open")!==null;u===!0?(p.setAttribute("aria-expanded","true"),f.setAttribute("aria-hidden","false")):(p.setAttribute("aria-expanded","false"),f.setAttribute("aria-hidden","true"),f.style.display="none"),this.polyfillHandleInputs(p,this.polyfillSetAttributes.bind(this))}},c.prototype.polyfillSetAttributes=function(){var a=this.$module,p=this.$summary,f=this.$content,u=p.getAttribute("aria-expanded")==="true",r=f.getAttribute("aria-hidden")==="true";p.setAttribute("aria-expanded",u?"false":"true"),f.setAttribute("aria-hidden",r?"false":"true"),f.style.display=u?"none":"";var e=a.getAttribute("open")!==null;return e?a.removeAttribute("open"):a.setAttribute("open","open"),!0},c.prototype.polyfillHandleInputs=function(a,p){a.addEventListener("keypress",function(f){var u=f.target;(f.keyCode===m||f.keyCode===d)&&u.nodeName.toLowerCase()==="summary"&&(f.preventDefault(),u.click?u.click():p(f))}),a.addEventListener("keyup",function(f){var u=f.target;f.keyCode===d&&u.nodeName.toLowerCase()==="summary"&&f.preventDefault()}),a.addEventListener("click",p)},c}))});var Re=G((de,pe)=>{(function(S,m){typeof de=="object"&&typeof pe<"u"?pe.exports=m():typeof define=="function"&&define.amd?define("GOVUKFrontend",m):S.GOVUKFrontend=m()})(de,(function(){"use strict";(function(m){var d="defineProperty"in Object&&(function(){try{var c={};return Object.defineProperty(c,"test",{value:42}),!0}catch(a){return!1}})();d||(function(c){var a=Object.prototype.hasOwnProperty("__defineGetter__"),p="Getters & setters cannot be defined on this javascript engine",f="A property cannot both have accessors and be writable or have a value";Object.defineProperty=function(r,e,t){if(c&&(r===window||r===document||r===Element.prototype||r instanceof Element))return c(r,e,t);if(r===null||!(r instanceof Object||typeof r=="object"))throw new TypeError("Object.defineProperty called on non-object");if(!(t instanceof Object))throw new TypeError("Property description must be an object");var n=String(e),l="value"in t||"writable"in t,h="get"in t&&typeof t.get,b="set"in t&&typeof t.set;if(h){if(h!=="function")throw new TypeError("Getter must be a function");if(!a)throw new TypeError(p);if(l)throw new TypeError(f);Object.__defineGetter__.call(r,n,t.get)}else r[n]=t.value;if(b){if(b!=="function")throw new TypeError("Setter must be a function");if(!a)throw new TypeError(p);if(l)throw new TypeError(f);Object.__defineSetter__.call(r,n,t.set)}return"value"in t&&(r[n]=t.value),r}})(Object.defineProperty)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(m){var d="bind"in Function.prototype;d||Object.defineProperty(Function.prototype,"bind",{value:function(a){var p=Array,f=Object,u=f.prototype,r=p.prototype,e=function(){},t=u.toString,n=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",l,h=Function.prototype.toString,b=function(O){try{return h.call(O),!0}catch(P){return!1}},y="[object Function]",g="[object GeneratorFunction]";l=function(O){if(typeof O!="function")return!1;if(n)return b(O);var P=t.call(O);return P===y||P===g};var w=r.slice,E=r.concat,o=r.push,i=Math.max,s=this;if(!l(s))throw new TypeError("Function.prototype.bind called on incompatible "+s);for(var v=w.call(arguments,1),_,j=function(){if(this instanceof _){var A=s.apply(this,E.call(v,w.call(arguments)));return f(A)===A?A:this}else return s.apply(a,E.call(v,w.call(arguments)))},C=i(0,s.length-v.length),T=[],x=0;x<C;x++)o.call(T,"$"+x);return _=Function("binder","return function ("+T.join(",")+"){ return binder.apply(this, arguments); }")(j),s.prototype&&(e.prototype=s.prototype,_.prototype=new e,e.prototype=null),_}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(m){var d="Window"in this;d||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(function(c){c.constructor?c.Window=c.constructor:(c.Window=c.constructor=new Function("return function Window() {}")()).prototype=this})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(m){var d="Document"in this;d||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(this.HTMLDocument?this.Document=this.HTMLDocument:(this.Document=this.HTMLDocument=document.constructor=new Function("return function Document() {}")(),this.Document.prototype=document))}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(m){var d="Element"in this&&"HTMLElement"in this;d||(function(){if(window.Element&&!window.HTMLElement){window.HTMLElement=window.Element;return}window.Element=window.HTMLElement=new Function("return function Element() {}")();var c=document.appendChild(document.createElement("body")),a=c.appendChild(document.createElement("iframe")),p=a.contentWindow.document,f=Element.prototype=p.appendChild(p.createElement("*")),u={},r=function(b,y){var g=b.childNodes||[],w=-1,E,o,i;if(b.nodeType===1&&b.constructor!==Element){b.constructor=Element;for(E in u)o=u[E],b[E]=o}for(;i=y&&g[++w];)r(i,y);return b},e=document.getElementsByTagName("*"),t=document.createElement,n,l=100;f.attachEvent("onpropertychange",function(b){for(var y=b.propertyName,g=!u.hasOwnProperty(y),w=f[y],E=u[y],o=-1,i;i=e[++o];)i.nodeType===1&&(g||i[y]===E)&&(i[y]=w);u[y]=w}),f.constructor=Element,f.hasAttribute||(f.hasAttribute=function(y){return this.getAttribute(y)!==null});function h(){return l--||clearTimeout(n),document.body&&!document.body.prototype&&/(complete|interactive)/.test(document.readyState)?(r(document,!0),n&&document.body.prototype&&clearTimeout(n),!!document.body.prototype):!1}h()||(document.onreadystatechange=h,n=setInterval(h,25)),document.createElement=function(y){var g=t(String(y).toLowerCase());return r(g)},document.removeChild(c)})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(m){var d=(function(c){if(!("Event"in c))return!1;if(typeof c.Event=="function")return!0;try{return new Event("click"),!0}catch(a){return!1}})(this);d||(function(){var c={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if(typeof document>"u"||typeof window>"u")return;function a(f,u){for(var r=-1,e=f.length;++r<e;)if(r in f&&f[r]===u)return r;return-1}var p=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(u,r){if(!u)throw new Error("Not enough arguments");var e;if("createEvent"in document){e=document.createEvent("Event");var t=r&&r.bubbles!==m?r.bubbles:!1,n=r&&r.cancelable!==m?r.cancelable:!1;return e.initEvent(u,t,n),e}return e=document.createEventObject(),e.type=u,e.bubbles=r&&r.bubbles!==m?r.bubbles:!1,e.cancelable=r&&r.cancelable!==m?r.cancelable:!1,e},p&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:p}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var u=this,r=arguments[0],e=arguments[1];if(u===window&&r in c)throw new Error("In IE8 the event: "+r+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");u._events||(u._events={}),u._events[r]||(u._events[r]=function(t){var n=u._events[t.type].list,l=n.slice(),h=-1,b=l.length,y;for(t.preventDefault=function(){t.cancelable!==!1&&(t.returnValue=!1)},t.stopPropagation=function(){t.cancelBubble=!0},t.stopImmediatePropagation=function(){t.cancelBubble=!0,t.cancelImmediate=!0},t.currentTarget=u,t.relatedTarget=t.fromElement||null,t.target=t.target||t.srcElement||u,t.timeStamp=new Date().getTime(),t.clientX&&(t.pageX=t.clientX+document.documentElement.scrollLeft,t.pageY=t.clientY+document.documentElement.scrollTop);++h<b&&!t.cancelImmediate;)h in l&&(y=l[h],a(n,y)!==-1&&typeof y=="function"&&y.call(u,t))},u._events[r].list=[],u.attachEvent&&u.attachEvent("on"+r,u._events[r])),u._events[r].list.push(e)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var u=this,r=arguments[0],e=arguments[1],t;u._events&&u._events[r]&&u._events[r].list&&(t=a(u._events[r].list,e),t!==-1&&(u._events[r].list.splice(t,1),u._events[r].list.length||(u.detachEvent&&u.detachEvent("on"+r,u._events[r]),delete u._events[r])))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(u){if(!arguments.length)throw new Error("Not enough arguments");if(!u||typeof u.type!="string")throw new Error("DOM Events Exception 0");var r=this,e=u.type;try{if(!u.bubbles){u.cancelBubble=!0;var t=function(n){n.cancelBubble=!0,(r||window).detachEvent("on"+e,t)};this.attachEvent("on"+e,t)}this.fireEvent("on"+e,u)}catch(n){u.target=r;do u.currentTarget=r,"_events"in r&&typeof r._events[e]=="function"&&r._events[e].call(r,u),typeof r["on"+e]=="function"&&r["on"+e].call(r,u),r=r.nodeType===9?r.parentWindow:r.parentNode;while(r&&!u.cancelBubble)}return!0},document.attachEvent("onreadystatechange",function(){document.readyState==="complete"&&document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0}))}))})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(m){var d="document"in this&&"matches"in document.documentElement;d||(Element.prototype.matches=Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||function(a){for(var p=this,f=(p.document||p.ownerDocument).querySelectorAll(a),u=0;f[u]&&f[u]!==p;)++u;return!!f[u]})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(m){var d="document"in this&&"closest"in document.documentElement;d||(Element.prototype.closest=function(a){for(var p=this;p;){if(p.matches(a))return p;p="SVGElement"in window&&p instanceof SVGElement?p.parentNode:p.parentElement}return null})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});function S(m){this.$module=m}return S.prototype.init=function(){var m=this.$module;m&&(m.focus(),m.addEventListener("click",this.handleClick.bind(this)))},S.prototype.handleClick=function(m){var d=m.target;this.focusTarget(d)&&m.preventDefault()},S.prototype.focusTarget=function(m){if(m.tagName!=="A"||m.href===!1)return!1;var d=this.getFragmentFromUrl(m.href),c=document.getElementById(d);if(!c)return!1;var a=this.getAssociatedLegendOrLabel(c);return a?(a.scrollIntoView(),c.focus({preventScroll:!0}),!0):!1},S.prototype.getFragmentFromUrl=function(m){return m.indexOf("#")===-1?!1:m.split("#").pop()},S.prototype.getAssociatedLegendOrLabel=function(m){var d=m.closest("fieldset");if(d){var c=d.getElementsByTagName("legend");if(c.length){var a=c[0];if(m.type==="checkbox"||m.type==="radio")return a;var p=a.getBoundingClientRect().top,f=m.getBoundingClientRect();if(f.height&&window.innerHeight){var u=f.top+f.height;if(u-p<window.innerHeight/2)return a}}}return document.querySelector("label[for='"+m.getAttribute("id")+"']")||m.closest("label")},S}))});var Ye=G((me,ve)=>{(function(S,m){typeof me=="object"&&typeof ve<"u"?ve.exports=m():typeof define=="function"&&define.amd?define("GOVUKFrontend",m):S.GOVUKFrontend=m()})(me,(function(){"use strict";(function(d){var c="defineProperty"in Object&&(function(){try{var a={};return Object.defineProperty(a,"test",{value:42}),!0}catch(p){return!1}})();c||(function(a){var p=Object.prototype.hasOwnProperty("__defineGetter__"),f="Getters & setters cannot be defined on this javascript engine",u="A property cannot both have accessors and be writable or have a value";Object.defineProperty=function(e,t,n){if(a&&(e===window||e===document||e===Element.prototype||e instanceof Element))return a(e,t,n);if(e===null||!(e instanceof Object||typeof e=="object"))throw new TypeError("Object.defineProperty called on non-object");if(!(n instanceof Object))throw new TypeError("Property description must be an object");var l=String(t),h="value"in n||"writable"in n,b="get"in n&&typeof n.get,y="set"in n&&typeof n.set;if(b){if(b!=="function")throw new TypeError("Getter must be a function");if(!p)throw new TypeError(f);if(h)throw new TypeError(u);Object.__defineGetter__.call(e,l,n.get)}else e[l]=n.value;if(y){if(y!=="function")throw new TypeError("Setter must be a function");if(!p)throw new TypeError(f);if(h)throw new TypeError(u);Object.__defineSetter__.call(e,l,n.set)}return"value"in n&&(e[l]=n.value),e}})(Object.defineProperty)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="bind"in Function.prototype;c||Object.defineProperty(Function.prototype,"bind",{value:function(p){var f=Array,u=Object,r=u.prototype,e=f.prototype,t=function(){},n=r.toString,l=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",h,b=Function.prototype.toString,y=function(P){try{return b.call(P),!0}catch(k){return!1}},g="[object Function]",w="[object GeneratorFunction]";h=function(P){if(typeof P!="function")return!1;if(l)return y(P);var k=n.call(P);return k===g||k===w};var E=e.slice,o=e.concat,i=e.push,s=Math.max,v=this;if(!h(v))throw new TypeError("Function.prototype.bind called on incompatible "+v);for(var _=E.call(arguments,1),j,C=function(){if(this instanceof j){var O=v.apply(this,o.call(_,E.call(arguments)));return u(O)===O?O:this}else return v.apply(p,o.call(_,E.call(arguments)))},T=s(0,v.length-_.length),x=[],A=0;A<T;A++)i.call(x,"$"+A);return j=Function("binder","return function ("+x.join(",")+"){ return binder.apply(this, arguments); }")(C),v.prototype&&(t.prototype=v.prototype,j.prototype=new t,t.prototype=null),j}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="Window"in this;c||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(function(a){a.constructor?a.Window=a.constructor:(a.Window=a.constructor=new Function("return function Window() {}")()).prototype=this})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="Document"in this;c||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(this.HTMLDocument?this.Document=this.HTMLDocument:(this.Document=this.HTMLDocument=document.constructor=new Function("return function Document() {}")(),this.Document.prototype=document))}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="Element"in this&&"HTMLElement"in this;c||(function(){if(window.Element&&!window.HTMLElement){window.HTMLElement=window.Element;return}window.Element=window.HTMLElement=new Function("return function Element() {}")();var a=document.appendChild(document.createElement("body")),p=a.appendChild(document.createElement("iframe")),f=p.contentWindow.document,u=Element.prototype=f.appendChild(f.createElement("*")),r={},e=function(y,g){var w=y.childNodes||[],E=-1,o,i,s;if(y.nodeType===1&&y.constructor!==Element){y.constructor=Element;for(o in r)i=r[o],y[o]=i}for(;s=g&&w[++E];)e(s,g);return y},t=document.getElementsByTagName("*"),n=document.createElement,l,h=100;u.attachEvent("onpropertychange",function(y){for(var g=y.propertyName,w=!r.hasOwnProperty(g),E=u[g],o=r[g],i=-1,s;s=t[++i];)s.nodeType===1&&(w||s[g]===o)&&(s[g]=E);r[g]=E}),u.constructor=Element,u.hasAttribute||(u.hasAttribute=function(g){return this.getAttribute(g)!==null});function b(){return h--||clearTimeout(l),document.body&&!document.body.prototype&&/(complete|interactive)/.test(document.readyState)?(e(document,!0),l&&document.body.prototype&&clearTimeout(l),!!document.body.prototype):!1}b()||(document.onreadystatechange=b,l=setInterval(b,25)),document.createElement=function(g){var w=n(String(g).toLowerCase());return e(w)},document.removeChild(a)})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c=(function(a){if(!("Event"in a))return!1;if(typeof a.Event=="function")return!0;try{return new Event("click"),!0}catch(p){return!1}})(this);c||(function(){var a={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if(typeof document>"u"||typeof window>"u")return;function p(u,r){for(var e=-1,t=u.length;++e<t;)if(e in u&&u[e]===r)return e;return-1}var f=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(r,e){if(!r)throw new Error("Not enough arguments");var t;if("createEvent"in document){t=document.createEvent("Event");var n=e&&e.bubbles!==d?e.bubbles:!1,l=e&&e.cancelable!==d?e.cancelable:!1;return t.initEvent(r,n,l),t}return t=document.createEventObject(),t.type=r,t.bubbles=e&&e.bubbles!==d?e.bubbles:!1,t.cancelable=e&&e.cancelable!==d?e.cancelable:!1,t},f&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:f}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var r=this,e=arguments[0],t=arguments[1];if(r===window&&e in a)throw new Error("In IE8 the event: "+e+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");r._events||(r._events={}),r._events[e]||(r._events[e]=function(n){var l=r._events[n.type].list,h=l.slice(),b=-1,y=h.length,g;for(n.preventDefault=function(){n.cancelable!==!1&&(n.returnValue=!1)},n.stopPropagation=function(){n.cancelBubble=!0},n.stopImmediatePropagation=function(){n.cancelBubble=!0,n.cancelImmediate=!0},n.currentTarget=r,n.relatedTarget=n.fromElement||null,n.target=n.target||n.srcElement||r,n.timeStamp=new Date().getTime(),n.clientX&&(n.pageX=n.clientX+document.documentElement.scrollLeft,n.pageY=n.clientY+document.documentElement.scrollTop);++b<y&&!n.cancelImmediate;)b in h&&(g=h[b],p(l,g)!==-1&&typeof g=="function"&&g.call(r,n))},r._events[e].list=[],r.attachEvent&&r.attachEvent("on"+e,r._events[e])),r._events[e].list.push(t)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var r=this,e=arguments[0],t=arguments[1],n;r._events&&r._events[e]&&r._events[e].list&&(n=p(r._events[e].list,t),n!==-1&&(r._events[e].list.splice(n,1),r._events[e].list.length||(r.detachEvent&&r.detachEvent("on"+e,r._events[e]),delete r._events[e])))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(r){if(!arguments.length)throw new Error("Not enough arguments");if(!r||typeof r.type!="string")throw new Error("DOM Events Exception 0");var e=this,t=r.type;try{if(!r.bubbles){r.cancelBubble=!0;var n=function(l){l.cancelBubble=!0,(e||window).detachEvent("on"+t,n)};this.attachEvent("on"+t,n)}this.fireEvent("on"+t,r)}catch(l){r.target=e;do r.currentTarget=e,"_events"in e&&typeof e._events[t]=="function"&&e._events[t].call(e,r),typeof e["on"+t]=="function"&&e["on"+t].call(e,r),e=e.nodeType===9?e.parentWindow:e.parentNode;while(e&&!r.cancelBubble)}return!0},document.attachEvent("onreadystatechange",function(){document.readyState==="complete"&&document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0}))}))})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="DOMTokenList"in this&&(function(a){return"classList"in a?!a.classList.toggle("x",!1)&&!a.className:!0})(document.createElement("x"));c||(function(a){var p="DOMTokenList"in a&&a.DOMTokenList;(!p||document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg")&&!(document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList))&&(a.DOMTokenList=(function(){var f=!0,u=function(e,t,n,l){Object.defineProperty?Object.defineProperty(e,t,{configurable:f===!1?!0:!!l,get:n}):e.__defineGetter__(t,n)};try{u({},"support")}catch(e){f=!1}var r=function(e,t){var n=this,l=[],h={},b=0,y=0,g=function(o){u(n,o,function(){return E(),l[o]},!1)},w=function(){if(b>=y)for(;y<b;++y)g(y)},E=function(){var o,i,s=arguments,v=/\s+/;if(s.length){for(i=0;i<s.length;++i)if(v.test(s[i]))throw o=new SyntaxError('String "'+s[i]+'" contains an invalid character'),o.code=5,o.name="InvalidCharacterError",o}for(typeof e[t]=="object"?l=(""+e[t].baseVal).replace(/^\s+|\s+$/g,"").split(v):l=(""+e[t]).replace(/^\s+|\s+$/g,"").split(v),l[0]===""&&(l=[]),h={},i=0;i<l.length;++i)h[l[i]]=!0;b=l.length,w()};return E(),u(n,"length",function(){return E(),b}),n.toLocaleString=n.toString=function(){return E(),l.join(" ")},n.item=function(o){return E(),l[o]},n.contains=function(o){return E(),!!h[o]},n.add=function(){E.apply(n,o=arguments);for(var o,i,s=0,v=o.length;s<v;++s)i=o[s],h[i]||(l.push(i),h[i]=!0);b!==l.length&&(b=l.length>>>0,typeof e[t]=="object"?e[t].baseVal=l.join(" "):e[t]=l.join(" "),w())},n.remove=function(){E.apply(n,o=arguments);for(var o,i={},s=0,v=[];s<o.length;++s)i[o[s]]=!0,delete h[o[s]];for(s=0;s<l.length;++s)i[l[s]]||v.push(l[s]);l=v,b=v.length>>>0,typeof e[t]=="object"?e[t].baseVal=l.join(" "):e[t]=l.join(" "),w()},n.toggle=function(o,i){return E.apply(n,[o]),d!==i?i?(n.add(o),!0):(n.remove(o),!1):h[o]?(n.remove(o),!1):(n.add(o),!0)},n};return r})()),(function(){var f=document.createElement("span");"classList"in f&&(f.classList.toggle("x",!1),f.classList.contains("x")&&(f.classList.constructor.prototype.toggle=function(r){var e=arguments[1];if(e===d){var t=!this.contains(r);return this[t?"add":"remove"](r),t}return e=!!e,this[e?"add":"remove"](r),e}))})(),(function(){var f=document.createElement("span");if("classList"in f&&(f.classList.add("a","b"),!f.classList.contains("b"))){var u=f.classList.constructor.prototype.add;f.classList.constructor.prototype.add=function(){for(var r=arguments,e=arguments.length,t=0;t<e;t++)u.call(this,r[t])}}})(),(function(){var f=document.createElement("span");if("classList"in f&&(f.classList.add("a"),f.classList.add("b"),f.classList.remove("a","b"),!!f.classList.contains("b"))){var u=f.classList.constructor.prototype.remove;f.classList.constructor.prototype.remove=function(){for(var r=arguments,e=arguments.length,t=0;t<e;t++)u.call(this,r[t])}}})()})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="document"in this&&"classList"in document.documentElement&&"Element"in this&&"classList"in Element.prototype&&(function(){var a=document.createElement("span");return a.classList.add("a","b"),a.classList.contains("b")})();c||(function(a){var p=!0,f=function(r,e,t,n){Object.defineProperty?Object.defineProperty(r,e,{configurable:p===!1?!0:!!n,get:t}):r.__defineGetter__(e,t)};try{f({},"support")}catch(r){p=!1}var u=function(r,e,t){f(r.prototype,e,function(){var n,l=this,h="__defineGetter__DEFINE_PROPERTY"+e;if(l[h])return n;if(l[h]=!0,p===!1){for(var b,y=u.mirror||document.createElement("div"),g=y.childNodes,w=g.length,E=0;E<w;++E)if(g[E]._R===l){b=g[E];break}b||(b=y.appendChild(document.createElement("div"))),n=DOMTokenList.call(b,l,t)}else n=new DOMTokenList(l,t);return f(l,e,function(){return n}),delete l[h],n},!0)};u(a.Element,"classList","className"),u(a.HTMLElement,"classList","className"),u(a.HTMLLinkElement,"relList","rel"),u(a.HTMLAnchorElement,"relList","rel"),u(a.HTMLAreaElement,"relList","rel")})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});function S(d,c){if(window.NodeList.prototype.forEach)return d.forEach(c);for(var a=0;a<d.length;a++)c.call(window,d[a],a,d)}function m(d){this.$module=d,this.$inputs=d.querySelectorAll('input[type="radio"]')}return m.prototype.init=function(){var d=this.$module,c=this.$inputs;S(c,function(a){var p=a.getAttribute("data-aria-controls");!p||!d.querySelector("#"+p)||(a.setAttribute("aria-controls",p),a.removeAttribute("data-aria-controls"))}),"onpageshow"in window?window.addEventListener("pageshow",this.syncAllConditionalReveals.bind(this)):window.addEventListener("DOMContentLoaded",this.syncAllConditionalReveals.bind(this)),this.syncAllConditionalReveals(),d.addEventListener("click",this.handleClick.bind(this))},m.prototype.syncAllConditionalReveals=function(){S(this.$inputs,this.syncConditionalRevealWithInputState.bind(this))},m.prototype.syncConditionalRevealWithInputState=function(d){var c=document.querySelector("#"+d.getAttribute("aria-controls"));if(c&&c.classList.contains("govuk-radios__conditional")){var a=d.checked;d.setAttribute("aria-expanded",a),c.classList.toggle("govuk-radios__conditional--hidden",!a)}},m.prototype.handleClick=function(d){var c=d.target;if(c.type==="radio"){var a=document.querySelectorAll('input[type="radio"][aria-controls]');S(a,(function(p){var f=p.form===c.form,u=p.name===c.name;u&&f&&this.syncConditionalRevealWithInputState(p)}).bind(this))}},m}))});var ze=G((ye,be)=>{(function(S,m){typeof ye=="object"&&typeof be<"u"?be.exports=m():typeof define=="function"&&define.amd?define("GOVUKFrontend",m):S.GOVUKFrontend=m()})(ye,(function(){"use strict";(function(d){var c="defineProperty"in Object&&(function(){try{var a={};return Object.defineProperty(a,"test",{value:42}),!0}catch(p){return!1}})();c||(function(a){var p=Object.prototype.hasOwnProperty("__defineGetter__"),f="Getters & setters cannot be defined on this javascript engine",u="A property cannot both have accessors and be writable or have a value";Object.defineProperty=function(e,t,n){if(a&&(e===window||e===document||e===Element.prototype||e instanceof Element))return a(e,t,n);if(e===null||!(e instanceof Object||typeof e=="object"))throw new TypeError("Object.defineProperty called on non-object");if(!(n instanceof Object))throw new TypeError("Property description must be an object");var l=String(t),h="value"in n||"writable"in n,b="get"in n&&typeof n.get,y="set"in n&&typeof n.set;if(b){if(b!=="function")throw new TypeError("Getter must be a function");if(!p)throw new TypeError(f);if(h)throw new TypeError(u);Object.__defineGetter__.call(e,l,n.get)}else e[l]=n.value;if(y){if(y!=="function")throw new TypeError("Setter must be a function");if(!p)throw new TypeError(f);if(h)throw new TypeError(u);Object.__defineSetter__.call(e,l,n.set)}return"value"in n&&(e[l]=n.value),e}})(Object.defineProperty)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="bind"in Function.prototype;c||Object.defineProperty(Function.prototype,"bind",{value:function(p){var f=Array,u=Object,r=u.prototype,e=f.prototype,t=function(){},n=r.toString,l=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",h,b=Function.prototype.toString,y=function(P){try{return b.call(P),!0}catch(k){return!1}},g="[object Function]",w="[object GeneratorFunction]";h=function(P){if(typeof P!="function")return!1;if(l)return y(P);var k=n.call(P);return k===g||k===w};var E=e.slice,o=e.concat,i=e.push,s=Math.max,v=this;if(!h(v))throw new TypeError("Function.prototype.bind called on incompatible "+v);for(var _=E.call(arguments,1),j,C=function(){if(this instanceof j){var O=v.apply(this,o.call(_,E.call(arguments)));return u(O)===O?O:this}else return v.apply(p,o.call(_,E.call(arguments)))},T=s(0,v.length-_.length),x=[],A=0;A<T;A++)i.call(x,"$"+A);return j=Function("binder","return function ("+x.join(",")+"){ return binder.apply(this, arguments); }")(C),v.prototype&&(t.prototype=v.prototype,j.prototype=new t,t.prototype=null),j}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="DOMTokenList"in this&&(function(a){return"classList"in a?!a.classList.toggle("x",!1)&&!a.className:!0})(document.createElement("x"));c||(function(a){var p="DOMTokenList"in a&&a.DOMTokenList;(!p||document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg")&&!(document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList))&&(a.DOMTokenList=(function(){var f=!0,u=function(e,t,n,l){Object.defineProperty?Object.defineProperty(e,t,{configurable:f===!1?!0:!!l,get:n}):e.__defineGetter__(t,n)};try{u({},"support")}catch(e){f=!1}var r=function(e,t){var n=this,l=[],h={},b=0,y=0,g=function(o){u(n,o,function(){return E(),l[o]},!1)},w=function(){if(b>=y)for(;y<b;++y)g(y)},E=function(){var o,i,s=arguments,v=/\s+/;if(s.length){for(i=0;i<s.length;++i)if(v.test(s[i]))throw o=new SyntaxError('String "'+s[i]+'" contains an invalid character'),o.code=5,o.name="InvalidCharacterError",o}for(typeof e[t]=="object"?l=(""+e[t].baseVal).replace(/^\s+|\s+$/g,"").split(v):l=(""+e[t]).replace(/^\s+|\s+$/g,"").split(v),l[0]===""&&(l=[]),h={},i=0;i<l.length;++i)h[l[i]]=!0;b=l.length,w()};return E(),u(n,"length",function(){return E(),b}),n.toLocaleString=n.toString=function(){return E(),l.join(" ")},n.item=function(o){return E(),l[o]},n.contains=function(o){return E(),!!h[o]},n.add=function(){E.apply(n,o=arguments);for(var o,i,s=0,v=o.length;s<v;++s)i=o[s],h[i]||(l.push(i),h[i]=!0);b!==l.length&&(b=l.length>>>0,typeof e[t]=="object"?e[t].baseVal=l.join(" "):e[t]=l.join(" "),w())},n.remove=function(){E.apply(n,o=arguments);for(var o,i={},s=0,v=[];s<o.length;++s)i[o[s]]=!0,delete h[o[s]];for(s=0;s<l.length;++s)i[l[s]]||v.push(l[s]);l=v,b=v.length>>>0,typeof e[t]=="object"?e[t].baseVal=l.join(" "):e[t]=l.join(" "),w()},n.toggle=function(o,i){return E.apply(n,[o]),d!==i?i?(n.add(o),!0):(n.remove(o),!1):h[o]?(n.remove(o),!1):(n.add(o),!0)},n};return r})()),(function(){var f=document.createElement("span");"classList"in f&&(f.classList.toggle("x",!1),f.classList.contains("x")&&(f.classList.constructor.prototype.toggle=function(r){var e=arguments[1];if(e===d){var t=!this.contains(r);return this[t?"add":"remove"](r),t}return e=!!e,this[e?"add":"remove"](r),e}))})(),(function(){var f=document.createElement("span");if("classList"in f&&(f.classList.add("a","b"),!f.classList.contains("b"))){var u=f.classList.constructor.prototype.add;f.classList.constructor.prototype.add=function(){for(var r=arguments,e=arguments.length,t=0;t<e;t++)u.call(this,r[t])}}})(),(function(){var f=document.createElement("span");if("classList"in f&&(f.classList.add("a"),f.classList.add("b"),f.classList.remove("a","b"),!!f.classList.contains("b"))){var u=f.classList.constructor.prototype.remove;f.classList.constructor.prototype.remove=function(){for(var r=arguments,e=arguments.length,t=0;t<e;t++)u.call(this,r[t])}}})()})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="Document"in this;c||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(this.HTMLDocument?this.Document=this.HTMLDocument:(this.Document=this.HTMLDocument=document.constructor=new Function("return function Document() {}")(),this.Document.prototype=document))}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="Element"in this&&"HTMLElement"in this;c||(function(){if(window.Element&&!window.HTMLElement){window.HTMLElement=window.Element;return}window.Element=window.HTMLElement=new Function("return function Element() {}")();var a=document.appendChild(document.createElement("body")),p=a.appendChild(document.createElement("iframe")),f=p.contentWindow.document,u=Element.prototype=f.appendChild(f.createElement("*")),r={},e=function(y,g){var w=y.childNodes||[],E=-1,o,i,s;if(y.nodeType===1&&y.constructor!==Element){y.constructor=Element;for(o in r)i=r[o],y[o]=i}for(;s=g&&w[++E];)e(s,g);return y},t=document.getElementsByTagName("*"),n=document.createElement,l,h=100;u.attachEvent("onpropertychange",function(y){for(var g=y.propertyName,w=!r.hasOwnProperty(g),E=u[g],o=r[g],i=-1,s;s=t[++i];)s.nodeType===1&&(w||s[g]===o)&&(s[g]=E);r[g]=E}),u.constructor=Element,u.hasAttribute||(u.hasAttribute=function(g){return this.getAttribute(g)!==null});function b(){return h--||clearTimeout(l),document.body&&!document.body.prototype&&/(complete|interactive)/.test(document.readyState)?(e(document,!0),l&&document.body.prototype&&clearTimeout(l),!!document.body.prototype):!1}b()||(document.onreadystatechange=b,l=setInterval(b,25)),document.createElement=function(g){var w=n(String(g).toLowerCase());return e(w)},document.removeChild(a)})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="document"in this&&"classList"in document.documentElement&&"Element"in this&&"classList"in Element.prototype&&(function(){var a=document.createElement("span");return a.classList.add("a","b"),a.classList.contains("b")})();c||(function(a){var p=!0,f=function(r,e,t,n){Object.defineProperty?Object.defineProperty(r,e,{configurable:p===!1?!0:!!n,get:t}):r.__defineGetter__(e,t)};try{f({},"support")}catch(r){p=!1}var u=function(r,e,t){f(r.prototype,e,function(){var n,l=this,h="__defineGetter__DEFINE_PROPERTY"+e;if(l[h])return n;if(l[h]=!0,p===!1){for(var b,y=u.mirror||document.createElement("div"),g=y.childNodes,w=g.length,E=0;E<w;++E)if(g[E]._R===l){b=g[E];break}b||(b=y.appendChild(document.createElement("div"))),n=DOMTokenList.call(b,l,t)}else n=new DOMTokenList(l,t);return f(l,e,function(){return n}),delete l[h],n},!0)};u(a.Element,"classList","className"),u(a.HTMLElement,"classList","className"),u(a.HTMLLinkElement,"relList","rel"),u(a.HTMLAnchorElement,"relList","rel"),u(a.HTMLAreaElement,"relList","rel")})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="document"in this&&"nextElementSibling"in document.documentElement;c||Object.defineProperty(Element.prototype,"nextElementSibling",{get:function(){for(var a=this.nextSibling;a&&a.nodeType!==1;)a=a.nextSibling;return a}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="document"in this&&"previousElementSibling"in document.documentElement;c||Object.defineProperty(Element.prototype,"previousElementSibling",{get:function(){for(var a=this.previousSibling;a&&a.nodeType!==1;)a=a.previousSibling;return a}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c="Window"in this;c||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(function(a){a.constructor?a.Window=a.constructor:(a.Window=a.constructor=new Function("return function Window() {}")()).prototype=this})(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{}),(function(d){var c=(function(a){if(!("Event"in a))return!1;if(typeof a.Event=="function")return!0;try{return new Event("click"),!0}catch(p){return!1}})(this);c||(function(){var a={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if(typeof document>"u"||typeof window>"u")return;function p(u,r){for(var e=-1,t=u.length;++e<t;)if(e in u&&u[e]===r)return e;return-1}var f=window.Event&&window.Event.prototype||null;window.Event=Window.prototype.Event=function(r,e){if(!r)throw new Error("Not enough arguments");var t;if("createEvent"in document){t=document.createEvent("Event");var n=e&&e.bubbles!==d?e.bubbles:!1,l=e&&e.cancelable!==d?e.cancelable:!1;return t.initEvent(r,n,l),t}return t=document.createEventObject(),t.type=r,t.bubbles=e&&e.bubbles!==d?e.bubbles:!1,t.cancelable=e&&e.cancelable!==d?e.cancelable:!1,t},f&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:f}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var r=this,e=arguments[0],t=arguments[1];if(r===window&&e in a)throw new Error("In IE8 the event: "+e+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");r._events||(r._events={}),r._events[e]||(r._events[e]=function(n){var l=r._events[n.type].list,h=l.slice(),b=-1,y=h.length,g;for(n.preventDefault=function(){n.cancelable!==!1&&(n.returnValue=!1)},n.stopPropagation=function(){n.cancelBubble=!0},n.stopImmediatePropagation=function(){n.cancelBubble=!0,n.cancelImmediate=!0},n.currentTarget=r,n.relatedTarget=n.fromElement||null,n.target=n.target||n.srcElement||r,n.timeStamp=new Date().getTime(),n.clientX&&(n.pageX=n.clientX+document.documentElement.scrollLeft,n.pageY=n.clientY+document.documentElement.scrollTop);++b<y&&!n.cancelImmediate;)b in h&&(g=h[b],p(l,g)!==-1&&typeof g=="function"&&g.call(r,n))},r._events[e].list=[],r.attachEvent&&r.attachEvent("on"+e,r._events[e])),r._events[e].list.push(t)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var r=this,e=arguments[0],t=arguments[1],n;r._events&&r._events[e]&&r._events[e].list&&(n=p(r._events[e].list,t),n!==-1&&(r._events[e].list.splice(n,1),r._events[e].list.length||(r.detachEvent&&r.detachEvent("on"+e,r._events[e]),delete r._events[e])))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(r){if(!arguments.length)throw new Error("Not enough arguments");if(!r||typeof r.type!="string")throw new Error("DOM Events Exception 0");var e=this,t=r.type;try{if(!r.bubbles){r.cancelBubble=!0;var n=function(l){l.cancelBubble=!0,(e||window).detachEvent("on"+t,n)};this.attachEvent("on"+t,n)}this.fireEvent("on"+t,r)}catch(l){r.target=e;do r.currentTarget=e,"_events"in e&&typeof e._events[t]=="function"&&e._events[t].call(e,r),typeof e["on"+t]=="function"&&e["on"+t].call(e,r),e=e.nodeType===9?e.parentWindow:e.parentNode;while(e&&!r.cancelBubble)}return!0},document.attachEvent("onreadystatechange",function(){document.readyState==="complete"&&document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0}))}))})()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});function S(d,c){if(window.NodeList.prototype.forEach)return d.forEach(c);for(var a=0;a<d.length;a++)c.call(window,d[a],a,d)}function m(d){this.$module=d,this.$tabs=d.querySelectorAll(".govuk-tabs__tab"),this.keys={left:37,right:39,up:38,down:40},this.jsHiddenClass="govuk-tabs__panel--hidden"}return m.prototype.init=function(){typeof window.matchMedia=="function"?this.setupResponsiveChecks():this.setup()},m.prototype.setupResponsiveChecks=function(){this.mql=window.matchMedia("(min-width: 40.0625em)"),this.mql.addListener(this.checkMode.bind(this)),this.checkMode()},m.prototype.checkMode=function(){this.mql.matches?this.setup():this.teardown()},m.prototype.setup=function(){var d=this.$module,c=this.$tabs,a=d.querySelector(".govuk-tabs__list"),p=d.querySelectorAll(".govuk-tabs__list-item");if(!(!c||!a||!p)){a.setAttribute("role","tablist"),S(p,function(u){u.setAttribute("role","presentation")}),S(c,(function(u){this.setAttributes(u),u.boundTabClick=this.onTabClick.bind(this),u.boundTabKeydown=this.onTabKeydown.bind(this),u.addEventListener("click",u.boundTabClick,!0),u.addEventListener("keydown",u.boundTabKeydown,!0),this.hideTab(u)}).bind(this));var f=this.getTab(window.location.hash)||this.$tabs[0];this.showTab(f),d.boundOnHashChange=this.onHashChange.bind(this),window.addEventListener("hashchange",d.boundOnHashChange,!0)}},m.prototype.teardown=function(){var d=this.$module,c=this.$tabs,a=d.querySelector(".govuk-tabs__list"),p=d.querySelectorAll(".govuk-tabs__list-item");!c||!a||!p||(a.removeAttribute("role"),S(p,function(f){f.removeAttribute("role","presentation")}),S(c,(function(f){f.removeEventListener("click",f.boundTabClick,!0),f.removeEventListener("keydown",f.boundTabKeydown,!0),this.unsetAttributes(f)}).bind(this)),window.removeEventListener("hashchange",d.boundOnHashChange,!0))},m.prototype.onHashChange=function(d){var c=window.location.hash,a=this.getTab(c);if(a){if(this.changingHash){this.changingHash=!1;return}var p=this.getCurrentTab();this.hideTab(p),this.showTab(a),a.focus()}},m.prototype.hideTab=function(d){this.unhighlightTab(d),this.hidePanel(d)},m.prototype.showTab=function(d){this.highlightTab(d),this.showPanel(d)},m.prototype.getTab=function(d){return this.$module.querySelector('.govuk-tabs__tab[href="'+d+'"]')},m.prototype.setAttributes=function(d){var c=this.getHref(d).slice(1);d.setAttribute("id","tab_"+c),d.setAttribute("role","tab"),d.setAttribute("aria-controls",c),d.setAttribute("aria-selected","false"),d.setAttribute("tabindex","-1");var a=this.getPanel(d);a.setAttribute("role","tabpanel"),a.setAttribute("aria-labelledby",d.id),a.classList.add(this.jsHiddenClass)},m.prototype.unsetAttributes=function(d){d.removeAttribute("id"),d.removeAttribute("role"),d.removeAttribute("aria-controls"),d.removeAttribute("aria-selected"),d.removeAttribute("tabindex");var c=this.getPanel(d);c.removeAttribute("role"),c.removeAttribute("aria-labelledby"),c.classList.remove(this.jsHiddenClass)},m.prototype.onTabClick=function(d){if(!d.target.classList.contains("govuk-tabs__tab"))return!1;d.preventDefault();var c=d.target,a=this.getCurrentTab();this.hideTab(a),this.showTab(c),this.createHistoryEntry(c)},m.prototype.createHistoryEntry=function(d){var c=this.getPanel(d),a=c.id;c.id="",this.changingHash=!0,window.location.hash=this.getHref(d).slice(1),c.id=a},m.prototype.onTabKeydown=function(d){switch(d.keyCode){case this.keys.left:case this.keys.up:this.activatePreviousTab(),d.preventDefault();break;case this.keys.right:case this.keys.down:this.activateNextTab(),d.preventDefault();break}},m.prototype.activateNextTab=function(){var d=this.getCurrentTab(),c=d.parentNode.nextElementSibling;if(c)var a=c.querySelector(".govuk-tabs__tab");a&&(this.hideTab(d),this.showTab(a),a.focus(),this.createHistoryEntry(a))},m.prototype.activatePreviousTab=function(){var d=this.getCurrentTab(),c=d.parentNode.previousElementSibling;if(c)var a=c.querySelector(".govuk-tabs__tab");a&&(this.hideTab(d),this.showTab(a),a.focus(),this.createHistoryEntry(a))},m.prototype.getPanel=function(d){var c=this.$module.querySelector(this.getHref(d));return c},m.prototype.showPanel=function(d){var c=this.getPanel(d);c.classList.remove(this.jsHiddenClass)},m.prototype.hidePanel=function(d){var c=this.getPanel(d);c.classList.add(this.jsHiddenClass)},m.prototype.unhighlightTab=function(d){d.setAttribute("aria-selected","false"),d.parentNode.classList.remove("govuk-tabs__list-item--selected"),d.setAttribute("tabindex","-1")},m.prototype.highlightTab=function(d){d.setAttribute("aria-selected","true"),d.parentNode.classList.add("govuk-tabs__list-item--selected"),d.setAttribute("tabindex","0")},m.prototype.getCurrentTab=function(){return this.$module.querySelector(".govuk-tabs__list-item--selected .govuk-tabs__tab")},m.prototype.getHref=function(d){var c=d.getAttribute("href"),a=c.slice(c.indexOf("#"),c.length);return a},m}))});var vt={};ut(vt,{Accordion:()=>Ae,BackToTop:()=>ne,Button:()=>Oe,CharacterCount:()=>Pe,Checkboxes:()=>Fe,Collapsible:()=>ge,CookieBanner:()=>ce,Details:()=>Be,ErrorSummary:()=>We,Map:()=>he,Radios:()=>Ze,Tabs:()=>Je,initAll:()=>mt});var nt=W(_e());var Se=W(Te()),Ae=Se.default;function dt(S,m){var d;return function(){var c=this,a=arguments;d||(d=setTimeout(function(){d=null,S.apply(c,a)},m))}}function te(S){this.$module=S}te.prototype.checkScrollPosition=function(S){var m=window.innerHeight,d=m>480?480:m,c=window.scrollY;c>d?S.classList.add("lbh-back-to-top--visible"):S.classList.remove("lbh-back-to-top--visible")};te.prototype.init=function(){if(this.$module){var S=dt(this.checkScrollPosition,200),m=this.$module;window.addEventListener("scroll",function(){S(m)})}};var ne=te;var je=W(Ce()),Oe=je.default;var ke=W(xe()),Pe=ke.default;var Ne=W(Me()),Fe=Ne.default;var He="seen_cookie_message",pt=window.dropCookie===void 0?!0:window.dropCookie;function U(S){this.$module=S,this.$button=this.$module.querySelector('[data-behavior="lbh-cookie-close"]')}U.prototype.checkCookies=function(){for(var S=He+"=",m=document.cookie.split(";"),d=0;d<m.length;d++){for(var c=m[d];c.charAt(0)===" ";)c=c.substring(1,c.length);if(c.indexOf(S)===0)return c.substring(S.length,c.length)}return null};U.prototype.showCookieBanner=function(){this.$module.style.display="block",this.bindAcceptButton()};U.prototype.bindAcceptButton=function(){var S=this.$module;this.$button.addEventListener("click",function(){var m=new Date;m.setTime(m.getTime()+365*24*60*60*1e3);var d="; expires="+m.toGMTString();pt&&(document.cookie=He+"=true"+d+"; path=/"),S.style.display="none"})};U.prototype.init=function(){if(!this.$module)return!1;var S=this.checkCookies();if(S==="true")return!1;this.showCookieBanner()};var ce=U;var De=W($e()),Be=De.default;var Ge=W(Re()),We=Ge.default;window.L=window.L||{};typeof L.map=="function"&&(Ve=L.map,qe=L.control,Ie=L.tileLayer,Ue=L.icon,Ke=L.marker);var Ve,qe,Ie,Ue,Ke;function q(S){this.$module=S,this.moduleId=this.$module.getAttribute("id"),this.accessToken=this.$module.getAttribute("data-access-token"),this.map=null,this.markerLat=this.$module.getAttribute("data-marker-lat")||null,this.markerLng=this.$module.getAttribute("data-marker-lng")||null,this.centreLat=this.$module.getAttribute("data-centre-lat")||this.markerLat||51.549,this.centreLng=this.$module.getAttribute("data-centre-lng")||this.markerLng||-.077928,this.maxZoom=this.$module.getAttribute("data-max-zoom")||19,this.minZoom=this.$module.getAttribute("data-min-zoom")||12,this.initialZoom=this.$module.getAttribute("data-initial-zoom")||15,this.showZoomControl=this.$module.getAttribute("data-show-zoom-control")||!0,this.minLat=this.$module.getAttribute("data-min-lat")||51.491112,this.minLng=this.$module.getAttribute("data-min-lng")||-.275464,this.maxLat=this.$module.getAttribute("data-max-lat")||51.607351,this.maxLng=this.$module.getAttribute("data-max-lng")||.096129}q.prototype.initLeaflet=function(){this.map=Ve(this.moduleId,{zoomControl:!1,maxZoom:this.maxZoom,minZoom:this.minZoom,center:[this.centreLat,this.centreLng],zoom:this.initialZoom}),this.showZoomControl&&qe.zoom({position:"topright"}).addTo(this.map)};q.prototype.setBounds=function(){this.map.setMaxBounds([[this.minLat,this.minLng],[this.maxLat,this.maxLng]])};q.prototype.initMapboxTiles=function(){var S=Ie("https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}",{fadeAnimation:!1,opacity:1,attribution:'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery \xA9 <a href="https://mapbox.com">Mapbox</a>',maxZoom:this.maxZoom,id:"mapbox.streets",accessToken:this.accessToken});this.map.addLayer(S)};q.prototype.addMarker=function(){if(this.markerLat!==null&&this.markerLng!==null){var S=Ue({iconUrl:"../../../assets/images/contact/map-marker.svg",iconSize:[48,48],iconAnchor:[24,48]});Ke([this.markerLat,this.markerLng],{icon:S}).addTo(this.map)}};q.prototype.init=function(){!this.$module||L=={}||(this.initLeaflet(),this.setBounds(),this.initMapboxTiles(),this.addMarker())};var he=q;var Xe=W(Ye()),Ze=Xe.default;var Qe=W(ze()),Je=Qe.default;function et(S){this.$module=S}var ht=(S,m)=>{m.hasAttribute("hidden")?(m.removeAttribute("hidden"),S.setAttribute("aria-expanded",!0)):(m.setAttribute("hidden",""),S.setAttribute("aria-expanded",!1))};et.prototype.init=function(){let S=this.$module.querySelector('[data-behavior="lbh-collapsible-toggle"]'),m=this.$module.querySelector('[data-behavior="lbh-collapsible-content"]');S.addEventListener("click",()=>ht(S,m))};var ge=et;function tt(S,m){if(window.NodeList.prototype.forEach)return S.forEach(m);for(var d=0;d<S.length;d++)m.call(window,S[d],d,S)}function mt(S){S=typeof S<"u"?S:{},nt.default.initAll();var m=typeof S.scope<"u"?S.scope:document,d=m.querySelector('[data-module="lbh-cookie-banner"]');d&&new ce(d).init();var c=m.querySelectorAll('[data-module="lbh-map"]');tt(c,function(f){new he(f).init()});var a=m.querySelector('[data-module="lbh-back-to-top"]');a&&new ne(a).init();let p=m.querySelectorAll('[data-module="lbh-collapsible"]');tt(p,function(f){new ge(f).init()})}return ft(vt);})();
|