diff --git a/Dockerfile b/Dockerfile index 3f8b92cff..0a4b22ab5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:8.9 +FROM node:12.16.3 # Create app directory WORKDIR /usr/app diff --git a/README.md b/README.md index 8e73b09f8..eead08e38 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Password: dvsa 2. Install dependencies using NPM ```javascript -npm install +docker-compose run app npm install ``` ### Development @@ -32,7 +32,7 @@ npm install To run development mode run the following command inside the directory. ```javascript -npm run start-dev +docker-compose up ``` You can access the local server with the following url @@ -55,7 +55,7 @@ Build production command will generate production ready assets and node js serve The productions assets are located in the **dist/assets** folder and the server code is located in the **dist/server** folder. ```javascript -npm run build-production +docker-compose run app npm run build-production ``` **Run this command and commit changes before pushing to heroku.** diff --git a/composer.json b/composer.json index 98f8ca935..c4638d9b4 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "dvsa/front-end", "description": "DVSA front-end assets used within all applications", - "version": "1.3.28", + "version": "1.3.29", "homepage": "https://github.com/dvsa/front-end", "license": "MIT", "authors": [ diff --git a/dist/assets/images/icons-plus-minus.svg b/dist/assets/images/icons-plus-minus.svg index 25a5b25f0..33abd262a 100644 --- a/dist/assets/images/icons-plus-minus.svg +++ b/dist/assets/images/icons-plus-minus.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/assets/images/loading-spinner.gif b/dist/assets/images/loading-spinner.gif index 156191258..77ec2db42 100644 Binary files a/dist/assets/images/loading-spinner.gif and b/dist/assets/images/loading-spinner.gif differ diff --git a/dist/assets/images/logo_mot.gif b/dist/assets/images/logo_mot.gif index ec7f15537..532709b36 100644 Binary files a/dist/assets/images/logo_mot.gif and b/dist/assets/images/logo_mot.gif differ diff --git a/dist/assets/javascripts/development.bundle.js b/dist/assets/javascripts/development.bundle.js index 4723829b5..89d85464b 100644 --- a/dist/assets/javascripts/development.bundle.js +++ b/dist/assets/javascripts/development.bundle.js @@ -1,10 +1,10 @@ /*! * * Name: dvsa-front-end/development - * Version: 1.3.28 + * Version: 1.3.29 * Contributors: Martin D Marriott , James Nelson , Tameem Safi - * Timestamp: March 2nd 2020, 10:25:35 am + * Timestamp: May 26th 2020, 10:47:12 am * Source: https://github.com/dvsa/front-end * */ -webpackJsonp([1],{215:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.TEXT_TO_SPEECH_CONFIG={classes:{wrapper:"text-to-speech__wrapper",readerItem:"text-to-speech__item",readerItemHighlight:"text-to-speech__item--highlight",audioBtn:"text-to-speech__button",audioBtnPlaying:"text-to-speech__button--playing"},audioBtnText:"Play audio",dataAttributes:{readerID:"data-item-id"},DOMTargets:["p","ul"],buttonInnerHtml:"Play Audio\n "}},341:function(e,t,n){"use strict";n(342),n(343),n(344),n(345);var r=n(15),o=n(346);n(366),(0,r.domReady)(function(){(0,o.initModules)()})},342:function(e,t,n){(function(t){var n="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},r=function(){var e=/\blang(?:uage)?-([\w-]+)\b/i,t=0,r=n.Prism={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof o?new o(e.type,r.util.encode(e.content),e.alias):"Array"===r.util.type(e)?e.map(r.util.encode):e.replace(/&/g,"&").replace(/e.length)return;if(!(w instanceof l)){if(m&&_!=t.length-1){p.lastIndex=b;var E=p.exec(e);if(!E)break;for(var C=E.index+(h?E[1].length:0),T=E.index+E[0].length,O=_,P=b,S=t.length;O=P&&(++_,b=P);if(t[_]instanceof l)continue;x=O-_,w=e.slice(b,P),E.index-=b}else{p.lastIndex=0;var E=p.exec(w),x=1}if(E){h&&(g=E[1]?E[1].length:0);var C=E.index+g,E=E[0].slice(g),T=C+E.length,N=w.slice(0,C),k=w.slice(T),F=[_,x];N&&(++_,b+=N.length,F.push(N));var I=new l(u,f?r.tokenize(E,f):E,v,E,m);if(F.push(I),k&&F.push(k),Array.prototype.splice.apply(t,F),1!=x&&r.matchGrammar(e,t,n,_,b,!0,u),a)break}else if(a)break}}}}},tokenize:function(e,t,n){var o=[e],i=t.rest;if(i){for(var a in i)t[a]=i[a];delete t.rest}return r.matchGrammar(e,o,t,0,0,!1),o},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}}},o=r.Token=function(e,t,n,r,o){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!o};if(o.stringify=function(e,t,n){if("string"==typeof e)return e;if("Array"===r.util.type(e))return e.map(function(n){return o.stringify(n,t,e)}).join("");var i={type:e.type,content:o.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n};if(e.alias){var a="Array"===r.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(i.classes,a)}r.hooks.run("wrap",i);var s=Object.keys(i.attributes).map(function(e){return e+'="'+(i.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+(s?" "+s:"")+">"+i.content+""},!n.document)return n.addEventListener?(r.disableWorkerMessageHandler||n.addEventListener("message",function(e){var t=JSON.parse(e.data),o=t.language,i=t.code,a=t.immediateClose;n.postMessage(r.highlight(i,r.languages[o],o)),a&&n.close()},!1),n.Prism):n.Prism;var i=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return i&&(r.filename=i.src,r.manual||i.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(r.highlightAll):window.setTimeout(r.highlightAll,16):document.addEventListener("DOMContentLoaded",r.highlightAll))),n.Prism}();void 0!==e&&e.exports&&(e.exports=r),void 0!==t&&(t.Prism=r),r.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype://i,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),r.languages.xml=r.languages.markup,r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^{}\s][^{};]*?(?=\s*\{)/,string:{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/\B!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},r.languages.css.atrule.inside.rest=r.languages.css,r.languages.markup&&(r.languages.insertBefore("markup","tag",{style:{pattern:/()[\s\S]*?(?=<\/style>)/i,lookbehind:!0,inside:r.languages.css,alias:"language-css",greedy:!0}}),r.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:r.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:r.languages.css}},alias:"language-css"}},r.languages.markup.tag)),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/[a-z0-9_]+(?=\()/i,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{keyword:/\b(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|NaN|Infinity)\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/,function:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),r.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[[^\]\r\n]+]|\\.|[^\/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:"function"},constant:/\b[A-Z][A-Z\d_]*\b/}),r.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${[^}]+}|[^\\`])*`/,greedy:!0,inside:{interpolation:{pattern:/\${[^}]+}/,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}}}),r.languages.javascript["template-string"].inside.interpolation.inside.rest=r.languages.javascript,r.languages.markup&&r.languages.insertBefore("markup","tag",{script:{pattern:/()[\s\S]*?(?=<\/script>)/i,lookbehind:!0,inside:r.languages.javascript,alias:"language-javascript",greedy:!0}}),r.languages.js=r.languages.javascript,function(){"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(t){for(var n,o=t.getAttribute("data-src"),i=t,a=/\blang(?:uage)?-([\w-]+)\b/i;i&&!a.test(i.className);)i=i.parentNode;if(i&&(n=(t.className.match(a)||[,""])[1]),!n){var s=(o.match(/\.(\w+)$/)||[,""])[1];n=e[s]||s}var l=document.createElement("code");l.className="language-"+n,t.textContent="",l.textContent="Loading…",t.appendChild(l);var u=new XMLHttpRequest;u.open("GET",o,!0),u.onreadystatechange=function(){4==u.readyState&&(u.status<400&&u.responseText?(l.textContent=u.responseText,r.highlightElement(l)):u.status>=400?l.textContent="✖ Error "+u.status+" while fetching file: "+u.statusText:l.textContent="✖ Error: File does not exist or is empty")},u.send(null)}),r.plugins.toolbar&&r.plugins.toolbar.registerButton("download-file",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-src")&&t.hasAttribute("data-download-link")){var n=t.getAttribute("data-src"),r=document.createElement("a");return r.textContent=t.getAttribute("data-download-link-label")||"Download",r.setAttribute("download",""),r.href=n,r}})},document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight))}()}).call(t,n(152))},343:function(e,t){!function(){if("undefined"!=typeof self&&self.Prism&&self.document){var e=[],t={},n=function(){};Prism.plugins.toolbar={};var r=Prism.plugins.toolbar.registerButton=function(n,r){var o;o="function"==typeof r?r:function(e){var t;return"function"==typeof r.onClick?(t=document.createElement("button"),t.type="button",t.addEventListener("click",function(){r.onClick.call(this,e)})):"string"==typeof r.url?(t=document.createElement("a"),t.href=r.url):t=document.createElement("span"),t.textContent=r.text,t},e.push(t[n]=o)},o=Prism.plugins.toolbar.hook=function(r){var o=r.element.parentNode;if(o&&/pre/i.test(o.nodeName)&&!o.parentNode.classList.contains("code-toolbar")){var i=document.createElement("div");i.classList.add("code-toolbar"),o.parentNode.insertBefore(i,o),i.appendChild(o);var a=document.createElement("div");a.classList.add("toolbar"),document.body.hasAttribute("data-toolbar-order")&&(e=document.body.getAttribute("data-toolbar-order").split(",").map(function(e){return t[e]||n})),e.forEach(function(e){var t=e(r);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),a.appendChild(n)}}),i.appendChild(a)}};r("label",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,r,o=t.getAttribute("data-label");try{r=document.querySelector("template#"+o)}catch(e){}return r?n=r.content:(t.hasAttribute("data-url")?(n=document.createElement("a"),n.href=t.getAttribute("data-url")):n=document.createElement("span"),n.textContent=o),n}}),Prism.hooks.add("complete",o)}}()},344:function(e,t){!function(){function t(e){this.defaults=o({},e)}function n(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function r(e){for(var t=0,n=0;nt&&(i[s]="\n"+i[s],a=l)}n[o]=i.join("")}return n.join("\n")}},void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof Prism&&(Prism.plugins.NormalizeWhitespace=new t({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Prism.hooks.add("before-sanity-check",function(e){var t=Prism.plugins.NormalizeWhitespace;if(!e.settings||!1!==e.settings["whitespace-normalization"]){if((!e.element||!e.element.parentNode)&&e.code)return void(e.code=t.normalize(e.code,e.settings));var n=e.element.parentNode,r=/\bno-whitespace-normalization\b/;if(e.code&&n&&"pre"===n.nodeName.toLowerCase()&&!r.test(n.className)&&!r.test(e.element.className)){for(var o=n.childNodes,i="",a="",s=!1,l=0;l"),i=document.createElement("span"),i.setAttribute("aria-hidden","true"),i.className="line-numbers-rows",i.innerHTML=l,r.hasAttribute("data-start")&&(r.style.counterReset="linenumber "+(parseInt(r.getAttribute("data-start"),10)-1)),n.element.appendChild(i),t(r),Prism.hooks.run("line-numbers",n)}}}),Prism.hooks.add("line-numbers",function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}),Prism.plugins.lineNumbers={getLine:function(e,t){if("PRE"===e.tagName&&e.classList.contains("line-numbers")){var n=e.querySelector(".line-numbers-rows"),r=parseInt(e.getAttribute("data-start"),10)||1,o=r+(n.children.length-1);to&&(t=o);var i=t-r;return n.children[i]}}}}}()},346:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initModules=void 0;var r=n(347),o=(n(349),n(352)),i=n(355),a=n(358),s=n(361),l=n(363);t.initModules=function(){(0,o.initTextToSpeechToggle)(),(0,i.initFontSizeToggle)(),(0,a.initSpeechToText)(),(0,s.initThemeToggle)(),(0,r.initLibraryNavigation)(),(0,l.initAutoComplete)()}},347:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initLibraryNavigation=void 0;var r=n(348);t.initLibraryNavigation=function(){new r.LibraryPageNavigation}},348:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.LibraryPageNavigation=void 0;var o=n(4);t.LibraryPageNavigation=function e(){var t=this;if(r(this,e),this.mobileNavigationClickHandler=function(){(0,o.toggleClass)(t.navigationInner,t.navigationInnerOpenClassName)},this.sidebar=!1,this.maxWidth=800,this.navigationId="styleguide-navigation",this.navigationInnerClassName="styleguide-navigation__inner",this.navigationInnerOpenClassName="styleguide-navigation__inner--open",this.contentId="styleguide-content",this.mobileNavigationClassName="styleguide-navigation__mobile-nav",this.mobileNavigationContainerClassName="styleguide-navigation",this.libraryContainerId="library-container",this.libraryContainerElement=document.getElementById(this.libraryContainerId),this.navigation=document.getElementById(this.navigationId),this.navigation&&this.libraryContainerElement)return this.mobileNavigationContainer=document.querySelector("."+this.mobileNavigationClassName),this.navigationInner=this.navigation.querySelector("."+this.navigationInnerClassName),this.content=document.getElementById(this.contentId),this.mobileNavigationContainer?this.navigationInner?this.content?void(0,o.addEventListenerToEl)(this.mobileNavigationContainer,"click",this.mobileNavigationClickHandler):console.warn("Library content not found"):console.warn("Navigation inner not found"):console.warn("Mobile navigation container not found")}},349:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initDevPreview=void 0;var r=n(350),o=n(351);t.initDevPreview=function(){new r.DevPreview,new o.DevPreviewFullscreen}},350:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.DevPreview=void 0;var o=n(46),i=(function(e){e&&e.__esModule}(o),n(4));t.DevPreview=function e(){var t=this;r(this,e),this.init=function(){t.addBodyPaddingToAccountForFloatingButton(),t.movePreviewElementToChildOfBody(),t.addEvents()},this.addBodyPaddingToAccountForFloatingButton=function(){if(t.elements.devPreviewFloatingButton&&t.elements.footer){var e=t.elements.devPreviewFloatingButton.offsetHeight,n=window.getComputedStyle(t.elements.footer,null).getPropertyValue("padding-bottom")||0;n=n.replace("px",""),n+=e,t.elements.footer.style.paddingBottom=n+"px"}},this.movePreviewElementToChildOfBody=function(){t.elements.body.appendChild(t.elements.devPreviewFullPage),t.elements.devPreviewFloatingButton&&t.elements.body.appendChild(t.elements.devPreviewFloatingButton)},this.addEvents=function(){t.elements.devPreviewFloatingButton.addEventListener("click",t.toggleFullPagePreview),(0,i.delegateEvent)(document,"click",t.selectors.devPreviewCloseButton,t.toggleFullPagePreview)},this.toggleFullPagePreview=function(){t.state.fullPagePreviewHidden=!t.state.fullPagePreviewHidden,(0,i.toggleClass)(t.elements.devPreviewFullPage,t.classnames.devPreviewHidden,t.state.fullPagePreviewHidden),(0,i.toggleClass)(t.elements.devPreviewFloatingButton,t.classnames.devPreviewHidden,!t.state.fullPagePreviewHidden),(0,i.toggleClass)(t.elements.body,t.classnames.devPreviewBodyOverflowHidden,!t.state.fullPagePreviewHidden)},this.classnames={devPreviewHidden:"dev-preview--hidden",devPreviewBodyOverflowHidden:"dev-preview__body-overflow-hidden"},this.selectors={devPreviewFullPage:".dev-preview--full-page",devPreviewFloatingButton:".dev-preview__floating-button",devPreviewCloseButton:".dev-preview__close-button",content:"#content",body:"body",footer:"#footer"},this.elements={body:document.querySelector(this.selectors.body),devPreviewFullPage:document.querySelector(this.selectors.devPreviewFullPage),devPreviewFloatingButton:document.querySelector(this.selectors.devPreviewFloatingButton),content:document.querySelector(this.selectors.content),footer:document.querySelector(this.selectors.footer)},this.state={fullPagePreviewHidden:!0},this.elements.body&&this.elements.devPreviewFullPage&&this.elements.content&&this.init()}},351:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.DevPreviewFullscreen=void 0;var o=n(46),i=(function(e){e&&e.__esModule}(o),n(4));t.DevPreviewFullscreen=function e(){var t=this;r(this,e),this.init=function(){t.setupState(),(0,i.delegateEvent)(document,"click",t.selectors.devPreviewFullscreenButton,t.onFullscreenPreviewClick)},this.setupState=function(){t.elements.previewElements.forEach(function(e){var n=e.querySelector(t.selectors.devPreviewFullscreenButton),r=e.querySelector(t.selectors.devPreviewExample),o=e.querySelector(t.selectors.devPreviewPismCode);t.state.previewElements.push({devPreviewElement:e,fullscreenButton:n,devPreviewExample:r,devPreviewPismCode:o,isFullscreen:!1});var i=t.state.previewElements.length-1;e&&e.setAttribute(t.attributes.stateItemId,i),n&&n.setAttribute(t.attributes.stateItemId,i)})},this.onFullscreenPreviewClick=function(e){if(e&&e.target){var n=e.target.getAttribute(t.attributes.stateItemId),r=t.state.previewElements[n];r&&(r.isFullscreen?(r.devPreviewElement.insertBefore(r.devPreviewExample,r.devPreviewPismCode),(0,i.toggleClass)(r.devPreviewExample,t.classnames.devPreviewExample.fullscreen,!1),(0,i.toggleClass)(t.elements.body,t.classnames.devPreview.overflowBodyHidden,!1),window.scrollTo(0,t.state.previousYOffset),t.state.previousYOffset=0):(t.state.previousYOffset=window.pageYOffset,t.elements.body.appendChild(r.devPreviewExample),(0,i.toggleClass)(r.devPreviewExample,t.classnames.devPreviewExample.fullscreen,!0),(0,i.toggleClass)(t.elements.body,t.classnames.devPreview.overflowBodyHidden,!0),console.log(t.state.previousYOffset)),r.isFullscreen=!r.isFullscreen,r.fullscreenButton.innerText=r.isFullscreen?t.i18n.hideFullscreenPreview:t.i18n.fullScreenPreview)}},this.classnames={devPreview:{overflowBodyHidden:"dev-preview__body-overflow-hidden"},devPreviewExample:{fullscreen:"dev-preview__example--fullscreen"}},this.selectors={devPreview:".dev-preview",devPreviewExample:".dev-preview__example",devPreviewFullscreenButton:".dev-preview__fullscreen-button",devPreviewPismCode:".dev-preview__prism-code",body:"body"},this.attributes={exampleId:"data-example-id",stateItemId:"data-state-item-id"},this.i18n={fullScreenPreview:"Fullscreen preview",hideFullscreenPreview:"Hide fullscreen"},this.elements={body:document.querySelector(this.selectors.body),previewElements:Array.from(document.querySelectorAll(this.selectors.devPreview))},this.state={previousYOffset:0,previewElements:[]},this.elements.previewElements&&Array.isArray(this.elements.previewElements)&&this.init()}},352:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initTextToSpeechToggle=void 0;var r=n(353);t.initTextToSpeechToggle=function(){var e=document.querySelector(".text-to-speech-toggle");e&&new r.TextToSpeechToggle(e)}},353:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.TextToSpeechToggle=void 0;var o=n(15),i=n(354),a=n(215);t.TextToSpeechToggle=function e(t){var n=this;r(this,e),this.setup=function(){return(0,o.addEventListenerToEl)(n.state.form,"change",n.formChangeHandler)},this.formChangeHandler=function(e){var t=e.target.value.toLowerCase();return t?"on"==t?n.enableReader():void n.disableReader():console.warn("Failed to read radio value")},this.enableReader=function(){return n.state.readerReference=new i.TextToSpeech},this.disableReader=function(){n.state.readerReference&&(delete n.state.readerReference,n.cleanReaderElements())},this.cleanReaderElements=function(){var e=document.querySelectorAll("."+a.TEXT_TO_SPEECH_CONFIG.classes.readerItem);e=Array.from(e),e.forEach(function(e){e.classList.remove(""+a.TEXT_TO_SPEECH_CONFIG.classes.readerItem),e.removeAttribute(""+a.TEXT_TO_SPEECH_CONFIG.dataAttributes.id),e.querySelector("."+a.TEXT_TO_SPEECH_CONFIG.classes.audioBtn).remove()})},t||console.warn("Failed to initialise text to speech toggle");var s=t.querySelector(".text-to-speech-toggle__form");s||console.warn("Text to speech toggle form not found"),this.state={form:s,readerReference:"",readerConfig:{}},this.setup()}},354:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.TextToSpeech=void 0;var o=n(15),i=n(215);t.TextToSpeech=function e(){var t=this;r(this,e),this.setup=function(){var e=document.querySelector("."+i.TEXT_TO_SPEECH_CONFIG.classes.wrapper);if(e){var n=Array.from(e.querySelectorAll(t.state.targets));n&&n.forEach(function(e,n){var r=void 0,o=void 0,a=void 0;r=e.innerText,o=t.createUtterance(r,n),a=t.createButton(),r&&o&&a&&(e.classList.add(""+i.TEXT_TO_SPEECH_CONFIG.classes.readerItem),e.setAttribute(i.TEXT_TO_SPEECH_CONFIG.dataAttributes.readerID,n),e.appendChild(t.createButton()),t.state.elements.push({id:n,element:e,isPlaying:!1,isHighlighted:!1,utterance:o}))})}},this.playAudioClickHandler=function(e){e.preventDefault(),t.state.synth.cancel();var n=(0,o.closestParentOfEl)(e.target,".text-to-speech__item").getAttribute(""+i.TEXT_TO_SPEECH_CONFIG.dataAttributes.readerID);if(!n)return console.warn("Failed to retrieve data content id attribute");t.state.currentlyPlayed=n,t.state.synth.speak(t.state.elements[n].utterance)},this.createButton=function(){var e=document.createElement("button");return e.classList.add(""+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtn),e.innerHTML=i.TEXT_TO_SPEECH_CONFIG.buttonInnerHtml,(0,o.addEventListenerToEl)(e,"click",t.playAudioClickHandler),e},this.createUtterance=function(e,n){var r=new SpeechSynthesisUtterance;return r.lang="en-uk",r.text=e,r.id=n,r.onstart=function(){t.state.current=t.state.elements[r.id],t.resetAll(),t.state.current.isPlaying=!0,t.state.current.isHighlighted=!0,t.state.current.element.classList.add(""+i.TEXT_TO_SPEECH_CONFIG.classes.readerItemHighlight),t.state.current.element.querySelector("."+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtn).classList.add(""+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtnPlaying)},r.onend=function(){t.resetAll(),t.state.current={}},r.onerror=function(){r.onend(),t.state.current=t.state.elements[t.state.currentlyPlayed],t.state.current.utterance.onstart()},r},this.resetAll=function(){t.state.elements.map(function(e){e.isPlaying=!1,e.isHighlighted=!1,e.element.classList.remove(""+i.TEXT_TO_SPEECH_CONFIG.classes.readerItemHighlight),e.element.querySelector("."+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtn).classList.remove(""+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtnPlaying)})},this.state={synth:window.speechSynthesis,elements:[],current:{},targets:i.TEXT_TO_SPEECH_CONFIG.DOMTargets,currentlyPlayed:{}},this.setup()}},355:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initFontSizeToggle=void 0;var r=n(356);t.initFontSizeToggle=function(){var e=document.querySelector(".font-size-toggle");e&&new r.FontSizeToggle(e)}},356:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.FontSizeToggle=void 0;var o=n(15),i=n(357);t.FontSizeToggle=function e(t){var n=this;if(r(this,e),this.setup=function(){n.state.pageElements=n.getTargetDOMElements(),n.state.pageElements&&((0,o.addEventListenerToEl)(n.state.buttons.increaseButton,"click",n.increaseClickHandler),(0,o.addEventListenerToEl)(n.state.buttons.decreaseButton,"click",n.decreaseClickHandler),(0,o.addEventListenerToEl)(n.state.buttons.resetButton,"click",n.resetButtonClickHandler))},this.increaseClickHandler=function(e){e.preventDefault(),n.testRanges(n.state.currentSize+1)&&(n.state.currentSize+=1,n.updateDOMElements())},this.decreaseClickHandler=function(e){e.preventDefault(),n.testRanges(n.state.currentSize-1)&&(n.state.currentSize-=1,n.updateDOMElements(!1))},this.resetButtonClickHandler=function(e){e.preventDefault(),n.resetState(),n.convertToArray(n.state.pageElements).forEach(function(e){return n.removeAttribute(e,"style")})},this.testRanges=function(e){var t=!0;return e>n.state.maxSize?(n.disableButton(n.state.buttons.increaseButton),n.enableButton(n.state.buttons.decreaseButton),t=!1):e0&&void 0!==arguments[0])||arguments[0];n.convertToArray(n.state.pageElements).forEach(function(t){var r={fontSize:parseInt(n.getComputedProperty(t,"font-size"),10),lineHeight:parseInt(n.getComputedProperty(t,"line-height"))};t.style.fontSize=e?r.fontSize+1+"px":r.fontSize-1+"px"})},this.removeAttribute=function(e,t){return e.removeAttribute(t)},this.getComputedProperty=function(e,t){return window.getComputedStyle(e).getPropertyValue(t)},this.getTargetDOMElements=function(){return document.body.querySelectorAll(n.state.targets)},this.convertToArray=function(e){return Array.from(e)},t){var a=void 0,s=void 0,l=void 0;a=t.querySelector("."+i.FONT_SIZE_TOGGLE_CONFIG.classes.increaseBtn),s=t.querySelector("."+i.FONT_SIZE_TOGGLE_CONFIG.classes.decreaseBtn),l=t.querySelector("."+i.FONT_SIZE_TOGGLE_CONFIG.classes.resetBtn),this.state={currentSize:0,maxSize:i.FONT_SIZE_TOGGLE_CONFIG.maxSize,minSize:i.FONT_SIZE_TOGGLE_CONFIG.minSize,buttons:{increaseButton:a,decreaseButton:s,resetButton:l},pageElements:"",targets:i.FONT_SIZE_TOGGLE_CONFIG.DOMTargets},this.state.buttons.increaseButton&&this.state.buttons.decreaseButton&&this.state.buttons.resetButton&&this.setup()}}},357:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FONT_SIZE_TOGGLE_CONFIG={classes:{increaseBtn:"font-size-toggle__button--increase",decreaseBtn:"font-size-toggle__button--decrease",resetBtn:"font-size-toggle__button--reset",hidden:"font-size-toggle__button--hidden"},maxSize:5,minSize:-2,dataAttributes:{type:"data-toggle-type"},DOMTargets:["h1","h2","h3","h4","p","li","td","th","thead","caption","legend","button","dd"]}},358:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initSpeechToText=void 0;var r=n(359);t.initSpeechToText=function(){if(window.webkitSpeechRecognition){var e=document.querySelectorAll(".search-bar__search-voice");e=Array.from(e),e&&e.length&&e.forEach(function(e){e.classList.add("search-bar__search-voice--is-supported"),new r.SpeechToText(e)})}}},359:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.SpeechToText=void 0;var o=n(15),i=n(360);t.SpeechToText=function e(t){var n=this;if(r(this,e),this.setup=function(){(0,o.addEventListenerToEl)(n.elements.recordButton,"click",n.listenBtnClickHandler),n.state.speechRecognition.onstart=n.isRecording,n.state.speechRecognition.onend=n.isStoppedRecording,n.state.speechRecognition.onresult=n.handleOnSpeechResult},this.listenBtnClickHandler=function(e){if(e.preventDefault(),n.state.isRecording)return n.state.speechRecognition.abort(),void n.isStoppedRecording();n.state.speechRecognition.start()},this.handleOnSpeechResult=function(e){var t=e.results[0][0].transcript;""!=n.elements.input.value.trim()&&(t=n.elements.input.value+" "+t),n.elements.input.value=t},this.isRecording=function(){n.state.isRecording=!0,n.elements.submitBtn.disabled=!0,n.elements.input.disabled=!0,n.elements.recordButton.innerHTML=i.SPEECH_TO_TEXT_CONFIG.content.recording},this.isStoppedRecording=function(){n.state.isRecording=!1,n.elements.submitBtn.disabled=!1,n.elements.input.disabled=!1,n.elements.recordButton.innerHTML=i.SPEECH_TO_TEXT_CONFIG.content.init},t){var a=(0,o.closestParentOfEl)(t,"."+i.SPEECH_TO_TEXT_CONFIG.classes.wrapper);this.elements={recordButton:t,wrapper:a,input:a.querySelector("."+i.SPEECH_TO_TEXT_CONFIG.classes.input),submitBtn:a.querySelector("."+i.SPEECH_TO_TEXT_CONFIG.classes.submitBtn)},this.state={speechRecognition:new webkitSpeechRecognition,isRecording:!1},this.elements.wrapper&&this.elements.input&&this.elements.submitBtn&&this.setup()}}},360:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SPEECH_TO_TEXT_CONFIG={classes:{wrapper:"search-bar__control-group",input:"search-bar__search-input",submitBtn:"search-bar__search-submit"},content:{init:"Start voice search",recording:"Cancel recording"}}},361:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initThemeToggle=void 0;var r=n(362);t.initThemeToggle=function(){var e=document.querySelector(".theme-toggle");e&&new r.ThemeToggle(e)}},362:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeToggle=void 0;var o=n(15);t.ThemeToggle=function e(t){var n=this;r(this,e),this.setup=function(){(0,o.addEventListenerToEl)(n.state.elements.form,"change",n.formChangeHandler)},this.formChangeHandler=function(e){e.preventDefault();var t=void 0,r=void 0;t=e.target.value,t=t.toLowerCase().split(" ").join("-"),t||console.warn("Failed to retreive radio value"),r=n.state.themes.get(t),r||console.warn("Failed to retrive new theme class"),r!=n.state.currentTheme&&n.setNewTheme(r)},this.setNewTheme=function(e){n.state.currentTheme&&document.body.classList.remove(n.state.currentTheme),n.state.currentTheme=e,document.body.classList.add(e)},t||console.warn("theme toggle wrapper failed to initialize.");var i=t.querySelector(".theme-toggle__form");if(i){var a=new Map;a.set("default",""),a.set("high-contrast-yellow","theme__high-contrast-yellow"),a.set("low-contrast-grey","theme__low-contrast-grey"),a.set("sepia","theme__sepia"),a.set("medium-contrast-yellow","theme__medium-contrast-yellow"),this.state={currentTheme:"",themes:a,elements:{form:i}},this.setup()}}},363:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initAutoComplete=void 0;var r=n(364);t.initAutoComplete=function(){var e=document.querySelectorAll(".select-autocomplete");e&&(e=Array.from(e),e.forEach(function(e){new r.AutoComplete(e)}))}},364:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.AutoComplete=void 0;var o=n(365),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.AutoComplete=function e(t){var n=this;r(this,e),this.setup=function(){i.default.enhanceSelectElement({autoselect:!0,defaultValue:n.state.elm.options[n.state.elm.options.selectedIndex].innerHTML,minLength:2,selectElement:n.state.elm})},this.state={elm:t},this.setup()}},365:function(e,t,n){!function(t,n){e.exports=n()}(0,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=1)}([function(e,t,n){!function(){"use strict";function t(){}function n(e,n){var r,o,i,a,s=A;for(a=arguments.length;a-- >2;)I.push(arguments[a]);for(n&&null!=n.children&&(I.length||I.push(n.children),delete n.children);I.length;)if((o=I.pop())&&void 0!==o.pop)for(a=o.length;a--;)I.push(o[a]);else!0!==o&&!1!==o||(o=null),(i="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(i=!1)),i&&r?s[s.length-1]+=o:s===A?s=[o]:s.push(o),r=i;var l=new t;return l.nodeName=e,l.children=s,l.attributes=null==n?void 0:n,l.key=null==n?void 0:n.key,void 0!==F.vnode&&F.vnode(l),l}function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t){return n(e.nodeName,r(r({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function i(e){!e.__d&&(e.__d=!0)&&1==L.push(e)&&(F.debounceRendering||setTimeout)(a)}function a(){var e,t=L;for(L=[];e=t.pop();)e.__d&&P(e)}function s(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&l(e,t.nodeName):n||e._componentConstructor===t.nodeName}function l(e,t){return e.__n===t||e.nodeName.toLowerCase()===t.toLowerCase()}function u(e){var t=r({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var o in n)void 0===t[o]&&(t[o]=n[o]);return t}function c(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.__n=e,n}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),r&&r(e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===B.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,h,a):e.removeEventListener(t,h,a),(e.__l||(e.__l={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e)f(e,t,null==r?"":r),null!=r&&!1!==r||e.removeAttribute(t);else{var s=o&&t!==(t=t.replace(/^xlink\:?/,""));null==r||!1===r?s?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(s?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function f(e,t,n){try{e[t]=n}catch(e){}}function h(e){return this.__l[e.type](F.event&&F.event(e)||e)}function m(){for(var e;e=M.pop();)F.afterMount&&F.afterMount(e),e.componentDidMount&&e.componentDidMount()}function g(e,t,n,r,o,i){H++||(j=null!=o&&void 0!==o.ownerSVGElement,D=null!=e&&!("__preactattr_"in e));var a=v(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--H||(D=!1,i||m()),a}function v(e,t,n,r,o){var i=e,a=j;if(null==t&&(t=""),"string"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),_(e,!0))),i.__preactattr_=!0,i;if("function"==typeof t.nodeName)return S(e,t,n,r);if(j="svg"===t.nodeName||"foreignObject"!==t.nodeName&&j,(!e||!l(e,String(t.nodeName)))&&(i=c(String(t.nodeName),j),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),_(e,!0)}var s=i.firstChild,u=i.__preactattr_||(i.__preactattr_={}),d=t.children;return!D&&d&&1===d.length&&"string"==typeof d[0]&&null!=s&&void 0!==s.splitText&&null==s.nextSibling?s.nodeValue!=d[0]&&(s.nodeValue=d[0]):(d&&d.length||null!=s)&&y(i,d,n,r,D||null!=u.dangerouslySetInnerHTML),w(i,t.attributes,u),j=a,i}function y(e,t,n,r,o){var i,a,l,u,c=e.childNodes,p=[],f={},h=0,m=0,g=c.length,y=0,b=t?t.length:0;if(0!==g)for(var w=0;w=g?e.appendChild(u):u!==c[w]&&(u===c[w+1]?d(c[w]):e.insertBefore(u,c[w]||null)))}if(h)for(var w in f)void 0!==f[w]&&_(f[w],!1);for(;m<=y;)void 0!==(u=p[y--])&&_(u,!1)}function _(e,t){var n=e._component;n?x(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||d(e),b(e))}function b(e){for(e=e.lastChild;e;){var t=e.previousSibling;_(e,!0),e=t}}function w(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||p(e,r,n[r],n[r]=void 0,j);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||p(e,r,n[r],n[r]=t[r],j)}function E(e){var t=e.constructor.name;(q[t]||(q[t]=[])).push(e)}function C(e,t,n){var r,o=q[e.name];if(e.prototype&&e.prototype.render?(r=new e(t,n),N.call(r,t,n)):(r=new N(t,n),r.constructor=e,r.render=T),o)for(var i=o.length;i--;)if(o[i].constructor===e){r.__b=o[i].__b,o.splice(i,1);break}return r}function T(e,t,n){return this.constructor(e,n)}function O(e,t,n,r,o){e.__x||(e.__x=!0,(e.__r=t.ref)&&delete t.ref,(e.__k=t.key)&&delete t.key,!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r),r&&r!==e.context&&(e.__c||(e.__c=e.context),e.context=r),e.__p||(e.__p=e.props),e.props=t,e.__x=!1,0!==n&&(1!==n&&!1===F.syncComponentUpdates&&e.base?i(e):P(e,1,o)),e.__r&&e.__r(e))}function P(e,t,n,o){if(!e.__x){var i,a,s,l=e.props,c=e.state,d=e.context,p=e.__p||l,f=e.__s||c,h=e.__c||d,v=e.base,y=e.__b,b=v||y,w=e._component,E=!1;if(v&&(e.props=p,e.state=f,e.context=h,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,c,d)?E=!0:e.componentWillUpdate&&e.componentWillUpdate(l,c,d),e.props=l,e.state=c,e.context=d),e.__p=e.__s=e.__c=e.__b=null,e.__d=!1,!E){i=e.render(l,c,d),e.getChildContext&&(d=r(r({},d),e.getChildContext()));var T,S,N=i&&i.nodeName;if("function"==typeof N){var k=u(i);a=w,a&&a.constructor===N&&k.key==a.__k?O(a,k,1,d,!1):(T=a,e._component=a=C(N,k,d),a.__b=a.__b||y,a.__u=e,O(a,k,0,d,!1),P(a,1,n,!0)),S=a.base}else s=b,T=w,T&&(s=e._component=null),(b||1===t)&&(s&&(s._component=null),S=g(s,i,d,n||!v,b&&b.parentNode,!0));if(b&&S!==b&&a!==w){var I=b.parentNode;I&&S!==I&&(I.replaceChild(S,b),T||(b._component=null,_(b,!1)))}if(T&&x(T),e.base=S,S&&!o){for(var A=e,B=e;B=B.__u;)(A=B).base=S;S._component=A,S._componentConstructor=A.constructor}}if(!v||n?M.unshift(e):E||(m(),e.componentDidUpdate&&e.componentDidUpdate(p,f,h),F.afterUpdate&&F.afterUpdate(e)),null!=e.__h)for(;e.__h.length;)e.__h.pop().call(e);H||o||m()}}function S(e,t,n,r){for(var o=e&&e._component,i=o,a=e,s=o&&e._componentConstructor===t.nodeName,l=s,c=u(t);o&&!l&&(o=o.__u);)l=o.constructor===t.nodeName;return o&&l&&(!r||o._component)?(O(o,c,3,n,r),e=o.base):(i&&!s&&(x(i),e=a=null),o=C(t.nodeName,c,n),e&&!o.__b&&(o.__b=e,a=null),O(o,c,1,n,r),e=o.base,a&&e!==a&&(a._component=null,_(a,!1))),e}function x(e){F.beforeUnmount&&F.beforeUnmount(e);var t=e.base;e.__x=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?x(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.__b=t,d(t),E(e),b(t)),e.__r&&e.__r(null)}function N(e,t){this.__d=!0,this.context=t,this.props=e,this.state=this.state||{}}function k(e,t,n){return g(n,e,{},!1,t,!1)}var F={},I=[],A=[],B=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,L=[],M=[],H=0,j=!1,D=!1,q={};r(N.prototype,{setState:function(e,t){var n=this.state;this.__s||(this.__s=r({},n)),r(n,"function"==typeof e?e(n,this.props):e),t&&(this.__h=this.__h||[]).push(t),i(this)},forceUpdate:function(e){e&&(this.__h=this.__h||[]).push(e),P(this,2)},render:function(){}});var R={h:n,createElement:n,cloneElement:o,Component:N,render:k,rerender:a,options:F};e.exports=R}()},function(e,t,n){e.exports=n(2)},function(e,t,n){"use strict";function r(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=l(e.source)),(0,i.render)((0,i.createElement)(s.default,e),e.element)}var o=Object.assign||function(e){for(var t=1;t47&&e<58||32===e||8===e||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223}function u(e){return y?{onInput:e}:_?{onChange:e}:void 0}t.__esModule=!0,t.default=void 0;var c,d,p=Object.assign||function(e){for(var t=1;t=r;this.setState({query:s}),i||!l&&u&&c?o(s,function(e){var n=e.length>0;t.setState({menuOpen:n,options:e,selected:a&&n?0:-1})}):!l&&c||this.setState({menuOpen:!1,options:[]})},t.prototype.handleInputClick=function(e){this.handleInputChange(e)},t.prototype.handleInputFocus=function(e){this.setState({focused:-1})},t.prototype.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.prototype.handleOptionMouseEnter=function(e,t){this.setState({hovered:t})},t.prototype.handleOptionMouseOut=function(e,t){this.setState({hovered:null})},t.prototype.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);this.props.onConfirm(n),this.setState({focused:-1,menuOpen:!1,query:r,selected:-1}),this.forceUpdate()},t.prototype.handleOptionMouseDown=function(e){e.preventDefault()},t.prototype.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.prototype.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected,a=i!==o.length-1,s=a&&r;s&&this.handleOptionFocus(i+1)}},t.prototype.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.prototype.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),this.state.selected>=0&&this.handleOptionClick(e,this.state.selected))},t.prototype.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.prototype.handleKeyDown=function(e){switch(b[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:l(e.keyCode)&&this.handlePrintableKey(e)}},t.prototype.render=function(){var e=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,o=t.id,i=t.minLength,a=t.name,s=t.placeholder,l=t.required,c=t.showAllValues,d=t.tNoResults,h=t.tStatusQueryTooShort,g=t.tStatusNoResults,v=t.tStatusSelectedOption,y=t.tStatusResults,_=t.dropdownArrow,b=this.state,E=b.focused,C=b.hovered,T=b.menuOpen,O=b.options,P=b.query,S=b.selected,x=this.hasAutoselect(),N=-1===E,k=0===O.length,F=0!==P.length,I=P.length>=i,A=this.props.showNoOptionsFound&&N&&k&&F&&I,B=n+"__wrapper",L=n+"__input",M=null!==E,H=M?" "+L+"--focused":"",j=this.props.showAllValues?" "+L+"--show-all-values":" "+L+"--default",D=n+"__dropdown-arrow-down",q=-1!==E&&null!==E,R=n+"__menu",z=R+"--"+r,G=T||A,V=R+"--"+(G?"visible":"hidden"),U=n+"__option",X=n+"__hint",$=this.templateInputValue(O[S]),W=$&&0===$.toLowerCase().indexOf(P.toLowerCase()),K=W&&x?P+$.substr(P.length):"",Z=w&&K,Y=void 0;return c&&"string"==typeof(Y=_({className:D}))&&(Y=(0,f.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:Y}})),(0,f.createElement)("div",{className:B,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":T?"true":"false"},(0,f.createElement)(m.default,{length:O.length,queryLength:P.length,minQueryLength:i,selectedOption:this.templateInputValue(O[S]),tQueryTooShort:h,tNoResults:g,tSelectedOption:v,tResults:y}),Z&&(0,f.createElement)("span",null,(0,f.createElement)("input",{className:X,readonly:!0,tabIndex:"-1",value:K})),(0,f.createElement)("input",p({"aria-activedescendant":!!q&&o+"__option--"+E,"aria-owns":o+"__listbox",autoComplete:"off",className:""+L+H+j,id:o,onClick:function(t){return e.handleInputClick(t)},onBlur:this.handleInputBlur},u(this.handleInputChange),{onFocus:this.handleInputFocus,name:a,placeholder:s,ref:function(t){e.elementReferences[-1]=t},type:"text",role:"textbox",required:l,value:P})),Y,(0,f.createElement)("ul",{className:R+" "+z+" "+V,id:o+"__listbox",role:"listbox"},O.map(function(t,n){var r=-1===E?S===n:E===n,i=r&&null===C?" "+U+"--focused":"",a=n%2?" "+U+"--odd":"";return(0,f.createElement)("li",{"aria-selected":E===n,className:""+U+i+a,dangerouslySetInnerHTML:{__html:e.templateSuggestion(t)},id:o+"__option--"+n,key:n,onFocusOut:function(t){return e.handleOptionBlur(t,n)},onClick:function(t){return e.handleOptionClick(t,n)},onMouseDown:e.handleOptionMouseDown,onMouseEnter:function(t){return e.handleOptionMouseEnter(t,n)},onMouseOut:function(t){return e.handleOptionMouseOut(t,n)},ref:function(t){e.elementReferences[n]=t},role:"option",tabIndex:"-1"})}),A&&(0,f.createElement)("li",{className:U+" "+U+"--no-results"},d())))},t}(f.Component),c.defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:v.default},d);t.default=E},function(e,t,n){"use strict";function r(e,t){}function o(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){"function"!=typeof t&&null!==t||(e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t))}t.__esModule=!0,t.default=void 0;var a,s,l=n(0),u=(s=a=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,l=Array(s),u=0;uPlay Audio\n "}},347:function(e,t,n){"use strict";n(348),n(349),n(350),n(351);var r=n(16),o=n(352);n(372),(0,r.domReady)(function(){(0,o.initModules)()})},348:function(e,t,n){(function(t){var n="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},r=function(e){function t(e,t,n,r,o){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!o}function n(e,r,a,s,l,u,d){for(var p in a)if(a.hasOwnProperty(p)&&a[p]){var f=a[p];f=Array.isArray(f)?f:[f];for(var h=0;he.length)return;if(!(C instanceof t)){var S=1;if(y&&E!=r.tail.prev){v.lastIndex=x;var T=v.exec(e);if(!T)break;var P=T.index+(g&&T[1]?T[1].length:0),O=T.index+T[0].length,F=x;for(F+=E.value.length;P>=F;)E=E.next,F+=E.value.length;if(F-=E.value.length,x=F,E.value instanceof t)continue;for(var k=E;k!==r.tail&&(F1&&n(e,r,a,E.prev,x,!0,p+","+h),u)break}else if(u)break}}}}}function r(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function o(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function i(e,t,n){for(var r=t.next,o=0;o"+o.content+""},!e.document)return e.addEventListener?(c.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,i=n.immediateClose;e.postMessage(c.highlight(o,c.languages[r],r)),i&&e.close()},!1),c):c;var d=c.util.currentScript();if(d&&(c.filename=d.src,d.hasAttribute("data-manual")&&(c.manual=!0)),!c.manual){var p=document.readyState;"loading"===p||"interactive"===p&&d&&d.defer?document.addEventListener("DOMContentLoaded",s):window.requestAnimationFrame?window.requestAnimationFrame(s):window.setTimeout(s,16)}return c}(n);void 0!==e&&e.exports&&(e.exports=r),void 0!==t&&(t.Prism=r),r.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:(?!)*\]\s*)?>/i,greedy:!0},cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:n}};o["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[\s\S]*?>)(?:\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},r.languages.insertBefore("markup","cdata",i)}}),r.languages.xml=r.languages.extend("markup",{}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\((?!\s*\))\s*)(?:[^()]|\((?:[^()]|\([^()]*\))*\))+?(?=\s*\))/,lookbehind:!0,alias:"selector"}}},url:{pattern:RegExp("url\\((?:"+t.source+"|[^\n\r()]*)\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+t.source+")*?(?=\\s*\\{)"),string:{pattern:t,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),e.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:n.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:e.languages.css}},alias:"language-css"}},n.tag))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&|\|\||[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?[.?]?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*[\s\S]*?\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}}}),r.languages.markup&&r.languages.markup.tag.addInlined("script","javascript"),r.languages.js=r.languages.javascript,function(){"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(e){e=e||document;var t={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(e.querySelectorAll("pre[data-src]")).forEach(function(e){if(!e.hasAttribute("data-src-loaded")){for(var n,o=e.getAttribute("data-src"),i=e,a=/\blang(?:uage)?-([\w-]+)\b/i;i&&!a.test(i.className);)i=i.parentNode;if(i&&(n=(e.className.match(a)||[,""])[1]),!n){var s=(o.match(/\.(\w+)$/)||[,""])[1];n=t[s]||s}var l=document.createElement("code");l.className="language-"+n,e.textContent="",l.textContent="Loading…",e.appendChild(l);var u=new XMLHttpRequest;u.open("GET",o,!0),u.onreadystatechange=function(){4==u.readyState&&(u.status<400&&u.responseText?(l.textContent=u.responseText,r.highlightElement(l),e.setAttribute("data-src-loaded","")):u.status>=400?l.textContent="✖ Error "+u.status+" while fetching file: "+u.statusText:l.textContent="✖ Error: File does not exist or is empty")},u.send(null)}})},document.addEventListener("DOMContentLoaded",function(){self.Prism.fileHighlight()}))}()}).call(t,n(156))},349:function(e,t){!function(){function e(e){for(;e;){var t=e.getAttribute("data-toolbar-order");if(null!=t)return t=t.trim(),t.length?t.split(/\s*,\s*/g):[];e=e.parentElement}}if("undefined"!=typeof self&&self.Prism&&self.document){var t=[],n={},r=function(){};Prism.plugins.toolbar={};var o=Prism.plugins.toolbar.registerButton=function(e,r){var o;if(o="function"==typeof r?r:function(e){var t;return"function"==typeof r.onClick?(t=document.createElement("button"),t.type="button",t.addEventListener("click",function(){r.onClick.call(this,e)})):"string"==typeof r.url?(t=document.createElement("a"),t.href=r.url):t=document.createElement("span"),r.className&&t.classList.add(r.className),t.textContent=r.text,t},e in n)return void console.warn('There is a button with the key "'+e+'" registered already.');t.push(n[e]=o)},i=Prism.plugins.toolbar.hook=function(o){var i=o.element.parentNode;if(i&&/pre/i.test(i.nodeName)&&!i.parentNode.classList.contains("code-toolbar")){var a=document.createElement("div");a.classList.add("code-toolbar"),i.parentNode.insertBefore(a,i),a.appendChild(i);var s=document.createElement("div");s.classList.add("toolbar");var l=t,u=e(o.element);u&&(l=u.map(function(e){return n[e]||r})),l.forEach(function(e){var t=e(o);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),s.appendChild(n)}}),a.appendChild(s)}};o("label",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,r,o=t.getAttribute("data-label");try{r=document.querySelector("template#"+o)}catch(e){}return r?n=r.content:(t.hasAttribute("data-url")?(n=document.createElement("a"),n.href=t.getAttribute("data-url")):n=document.createElement("span"),n.textContent=o),n}}),Prism.hooks.add("complete",i)}}()},350:function(e,t){!function(){function t(e){this.defaults=o({},e)}function n(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function r(e){for(var t=0,n=0;nt&&(i[s]="\n"+i[s],a=l)}n[o]=i.join("")}return n.join("\n")}},void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof Prism&&(Prism.plugins.NormalizeWhitespace=new t({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Prism.hooks.add("before-sanity-check",function(e){var t=Prism.plugins.NormalizeWhitespace;if(!e.settings||!1!==e.settings["whitespace-normalization"]){if((!e.element||!e.element.parentNode)&&e.code)return void(e.code=t.normalize(e.code,e.settings));var n=e.element.parentNode,r=/(?:^|\s)no-whitespace-normalization(?:\s|$)/;if(e.code&&n&&"pre"===n.nodeName.toLowerCase()&&!r.test(n.className)&&!r.test(e.element.className)){for(var o=n.childNodes,i="",a="",s=!1,l=0;l");l=document.createElement("span"),l.setAttribute("aria-hidden","true"),l.className="line-numbers-rows",l.innerHTML=d,o.hasAttribute("data-start")&&(o.style.counterReset="linenumber "+(parseInt(o.getAttribute("data-start"),10)-1)),n.element.appendChild(l),t(o),Prism.hooks.run("line-numbers",n)}}}}),Prism.hooks.add("line-numbers",function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}),Prism.plugins.lineNumbers={getLine:function(e,t){if("PRE"===e.tagName&&e.classList.contains("line-numbers")){var n=e.querySelector(".line-numbers-rows"),r=parseInt(e.getAttribute("data-start"),10)||1,o=r+(n.children.length-1);to&&(t=o);var i=t-r;return n.children[i]}}}}}()},352:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initModules=void 0;var r=n(353),o=(n(355),n(358)),i=n(361),a=n(364),s=n(367),l=n(369);t.initModules=function(){(0,o.initTextToSpeechToggle)(),(0,i.initFontSizeToggle)(),(0,a.initSpeechToText)(),(0,s.initThemeToggle)(),(0,r.initLibraryNavigation)(),(0,l.initAutoComplete)()}},353:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initLibraryNavigation=void 0;var r=n(354);t.initLibraryNavigation=function(){new r.LibraryPageNavigation}},354:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.LibraryPageNavigation=void 0;var o=n(4);t.LibraryPageNavigation=function e(){var t=this;if(r(this,e),this.mobileNavigationClickHandler=function(){(0,o.toggleClass)(t.navigationInner,t.navigationInnerOpenClassName)},this.sidebar=!1,this.maxWidth=800,this.navigationId="styleguide-navigation",this.navigationInnerClassName="styleguide-navigation__inner",this.navigationInnerOpenClassName="styleguide-navigation__inner--open",this.contentId="styleguide-content",this.mobileNavigationClassName="styleguide-navigation__mobile-nav",this.mobileNavigationContainerClassName="styleguide-navigation",this.libraryContainerId="library-container",this.libraryContainerElement=document.getElementById(this.libraryContainerId),this.navigation=document.getElementById(this.navigationId),this.navigation&&this.libraryContainerElement)return this.mobileNavigationContainer=document.querySelector("."+this.mobileNavigationClassName),this.navigationInner=this.navigation.querySelector("."+this.navigationInnerClassName),this.content=document.getElementById(this.contentId),this.mobileNavigationContainer?this.navigationInner?this.content?void(0,o.addEventListenerToEl)(this.mobileNavigationContainer,"click",this.mobileNavigationClickHandler):console.warn("Library content not found"):console.warn("Navigation inner not found"):console.warn("Mobile navigation container not found")}},355:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initDevPreview=void 0;var r=n(356),o=n(357);t.initDevPreview=function(){new r.DevPreview,new o.DevPreviewFullscreen}},356:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.DevPreview=void 0;var o=n(46),i=(function(e){e&&e.__esModule}(o),n(4));t.DevPreview=function e(){var t=this;r(this,e),this.init=function(){t.addBodyPaddingToAccountForFloatingButton(),t.movePreviewElementToChildOfBody(),t.addEvents()},this.addBodyPaddingToAccountForFloatingButton=function(){if(t.elements.devPreviewFloatingButton&&t.elements.footer){var e=t.elements.devPreviewFloatingButton.offsetHeight,n=window.getComputedStyle(t.elements.footer,null).getPropertyValue("padding-bottom")||0;n=n.replace("px",""),n+=e,t.elements.footer.style.paddingBottom=n+"px"}},this.movePreviewElementToChildOfBody=function(){t.elements.body.appendChild(t.elements.devPreviewFullPage),t.elements.devPreviewFloatingButton&&t.elements.body.appendChild(t.elements.devPreviewFloatingButton)},this.addEvents=function(){t.elements.devPreviewFloatingButton.addEventListener("click",t.toggleFullPagePreview),(0,i.delegateEvent)(document,"click",t.selectors.devPreviewCloseButton,t.toggleFullPagePreview)},this.toggleFullPagePreview=function(){t.state.fullPagePreviewHidden=!t.state.fullPagePreviewHidden,(0,i.toggleClass)(t.elements.devPreviewFullPage,t.classnames.devPreviewHidden,t.state.fullPagePreviewHidden),(0,i.toggleClass)(t.elements.devPreviewFloatingButton,t.classnames.devPreviewHidden,!t.state.fullPagePreviewHidden),(0,i.toggleClass)(t.elements.body,t.classnames.devPreviewBodyOverflowHidden,!t.state.fullPagePreviewHidden)},this.classnames={devPreviewHidden:"dev-preview--hidden",devPreviewBodyOverflowHidden:"dev-preview__body-overflow-hidden"},this.selectors={devPreviewFullPage:".dev-preview--full-page",devPreviewFloatingButton:".dev-preview__floating-button",devPreviewCloseButton:".dev-preview__close-button",content:"#content",body:"body",footer:"#footer"},this.elements={body:document.querySelector(this.selectors.body),devPreviewFullPage:document.querySelector(this.selectors.devPreviewFullPage),devPreviewFloatingButton:document.querySelector(this.selectors.devPreviewFloatingButton),content:document.querySelector(this.selectors.content),footer:document.querySelector(this.selectors.footer)},this.state={fullPagePreviewHidden:!0},this.elements.body&&this.elements.devPreviewFullPage&&this.elements.content&&this.init()}},357:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.DevPreviewFullscreen=void 0;var o=n(46),i=(function(e){e&&e.__esModule}(o),n(4));t.DevPreviewFullscreen=function e(){var t=this;r(this,e),this.init=function(){t.setupState(),(0,i.delegateEvent)(document,"click",t.selectors.devPreviewFullscreenButton,t.onFullscreenPreviewClick)},this.setupState=function(){t.elements.previewElements.forEach(function(e){var n=e.querySelector(t.selectors.devPreviewFullscreenButton),r=e.querySelector(t.selectors.devPreviewExample),o=e.querySelector(t.selectors.devPreviewPismCode);t.state.previewElements.push({devPreviewElement:e,fullscreenButton:n,devPreviewExample:r,devPreviewPismCode:o,isFullscreen:!1});var i=t.state.previewElements.length-1;e&&e.setAttribute(t.attributes.stateItemId,i),n&&n.setAttribute(t.attributes.stateItemId,i)})},this.onFullscreenPreviewClick=function(e){if(e&&e.target){var n=e.target.getAttribute(t.attributes.stateItemId),r=t.state.previewElements[n];r&&(r.isFullscreen?(r.devPreviewElement.insertBefore(r.devPreviewExample,r.devPreviewPismCode),(0,i.toggleClass)(r.devPreviewExample,t.classnames.devPreviewExample.fullscreen,!1),(0,i.toggleClass)(t.elements.body,t.classnames.devPreview.overflowBodyHidden,!1),window.scrollTo(0,t.state.previousYOffset),t.state.previousYOffset=0):(t.state.previousYOffset=window.pageYOffset,t.elements.body.appendChild(r.devPreviewExample),(0,i.toggleClass)(r.devPreviewExample,t.classnames.devPreviewExample.fullscreen,!0),(0,i.toggleClass)(t.elements.body,t.classnames.devPreview.overflowBodyHidden,!0),console.log(t.state.previousYOffset)),r.isFullscreen=!r.isFullscreen,r.fullscreenButton.innerText=r.isFullscreen?t.i18n.hideFullscreenPreview:t.i18n.fullScreenPreview)}},this.classnames={devPreview:{overflowBodyHidden:"dev-preview__body-overflow-hidden"},devPreviewExample:{fullscreen:"dev-preview__example--fullscreen"}},this.selectors={devPreview:".dev-preview",devPreviewExample:".dev-preview__example",devPreviewFullscreenButton:".dev-preview__fullscreen-button",devPreviewPismCode:".dev-preview__prism-code",body:"body"},this.attributes={exampleId:"data-example-id",stateItemId:"data-state-item-id"},this.i18n={fullScreenPreview:"Fullscreen preview",hideFullscreenPreview:"Hide fullscreen"},this.elements={body:document.querySelector(this.selectors.body),previewElements:Array.from(document.querySelectorAll(this.selectors.devPreview))},this.state={previousYOffset:0,previewElements:[]},this.elements.previewElements&&Array.isArray(this.elements.previewElements)&&this.init()}},358:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initTextToSpeechToggle=void 0;var r=n(359);t.initTextToSpeechToggle=function(){var e=document.querySelector(".text-to-speech-toggle");e&&new r.TextToSpeechToggle(e)}},359:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.TextToSpeechToggle=void 0;var o=n(16),i=n(360),a=n(222);t.TextToSpeechToggle=function e(t){var n=this;r(this,e),this.setup=function(){return(0,o.addEventListenerToEl)(n.state.form,"change",n.formChangeHandler)},this.formChangeHandler=function(e){var t=e.target.value.toLowerCase();return t?"on"==t?n.enableReader():void n.disableReader():console.warn("Failed to read radio value")},this.enableReader=function(){return n.state.readerReference=new i.TextToSpeech},this.disableReader=function(){n.state.readerReference&&(delete n.state.readerReference,n.cleanReaderElements())},this.cleanReaderElements=function(){var e=document.querySelectorAll("."+a.TEXT_TO_SPEECH_CONFIG.classes.readerItem);e=Array.from(e),e.forEach(function(e){e.classList.remove(""+a.TEXT_TO_SPEECH_CONFIG.classes.readerItem),e.removeAttribute(""+a.TEXT_TO_SPEECH_CONFIG.dataAttributes.id),e.querySelector("."+a.TEXT_TO_SPEECH_CONFIG.classes.audioBtn).remove()})},t||console.warn("Failed to initialise text to speech toggle");var s=t.querySelector(".text-to-speech-toggle__form");s||console.warn("Text to speech toggle form not found"),this.state={form:s,readerReference:"",readerConfig:{}},this.setup()}},360:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.TextToSpeech=void 0;var o=n(16),i=n(222);t.TextToSpeech=function e(){var t=this;r(this,e),this.setup=function(){var e=document.querySelector("."+i.TEXT_TO_SPEECH_CONFIG.classes.wrapper);if(e){var n=Array.from(e.querySelectorAll(t.state.targets));n&&n.forEach(function(e,n){var r=void 0,o=void 0,a=void 0;r=e.innerText,o=t.createUtterance(r,n),a=t.createButton(),r&&o&&a&&(e.classList.add(""+i.TEXT_TO_SPEECH_CONFIG.classes.readerItem),e.setAttribute(i.TEXT_TO_SPEECH_CONFIG.dataAttributes.readerID,n),e.appendChild(t.createButton()),t.state.elements.push({id:n,element:e,isPlaying:!1,isHighlighted:!1,utterance:o}))})}},this.playAudioClickHandler=function(e){e.preventDefault(),t.state.synth.cancel();var n=(0,o.closestParentOfEl)(e.target,".text-to-speech__item").getAttribute(""+i.TEXT_TO_SPEECH_CONFIG.dataAttributes.readerID);if(!n)return console.warn("Failed to retrieve data content id attribute");t.state.currentlyPlayed=n,t.state.synth.speak(t.state.elements[n].utterance)},this.createButton=function(){var e=document.createElement("button");return e.classList.add(""+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtn),e.innerHTML=i.TEXT_TO_SPEECH_CONFIG.buttonInnerHtml,(0,o.addEventListenerToEl)(e,"click",t.playAudioClickHandler),e},this.createUtterance=function(e,n){var r=new SpeechSynthesisUtterance;return r.lang="en-uk",r.text=e,r.id=n,r.onstart=function(){t.state.current=t.state.elements[r.id],t.resetAll(),t.state.current.isPlaying=!0,t.state.current.isHighlighted=!0,t.state.current.element.classList.add(""+i.TEXT_TO_SPEECH_CONFIG.classes.readerItemHighlight),t.state.current.element.querySelector("."+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtn).classList.add(""+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtnPlaying)},r.onend=function(){t.resetAll(),t.state.current={}},r.onerror=function(){r.onend(),t.state.current=t.state.elements[t.state.currentlyPlayed],t.state.current.utterance.onstart()},r},this.resetAll=function(){t.state.elements.map(function(e){e.isPlaying=!1,e.isHighlighted=!1,e.element.classList.remove(""+i.TEXT_TO_SPEECH_CONFIG.classes.readerItemHighlight),e.element.querySelector("."+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtn).classList.remove(""+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtnPlaying)})},this.state={synth:window.speechSynthesis,elements:[],current:{},targets:i.TEXT_TO_SPEECH_CONFIG.DOMTargets,currentlyPlayed:{}},this.setup()}},361:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initFontSizeToggle=void 0;var r=n(362);t.initFontSizeToggle=function(){var e=document.querySelector(".font-size-toggle");e&&new r.FontSizeToggle(e)}},362:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.FontSizeToggle=void 0;var o=n(16),i=n(363);t.FontSizeToggle=function e(t){var n=this;if(r(this,e),this.setup=function(){n.state.pageElements=n.getTargetDOMElements(),n.state.pageElements&&((0,o.addEventListenerToEl)(n.state.buttons.increaseButton,"click",n.increaseClickHandler),(0,o.addEventListenerToEl)(n.state.buttons.decreaseButton,"click",n.decreaseClickHandler),(0,o.addEventListenerToEl)(n.state.buttons.resetButton,"click",n.resetButtonClickHandler))},this.increaseClickHandler=function(e){e.preventDefault(),n.testRanges(n.state.currentSize+1)&&(n.state.currentSize+=1,n.updateDOMElements())},this.decreaseClickHandler=function(e){e.preventDefault(),n.testRanges(n.state.currentSize-1)&&(n.state.currentSize-=1,n.updateDOMElements(!1))},this.resetButtonClickHandler=function(e){e.preventDefault(),n.resetState(),n.convertToArray(n.state.pageElements).forEach(function(e){return n.removeAttribute(e,"style")})},this.testRanges=function(e){var t=!0;return e>n.state.maxSize?(n.disableButton(n.state.buttons.increaseButton),n.enableButton(n.state.buttons.decreaseButton),t=!1):e0&&void 0!==arguments[0])||arguments[0];n.convertToArray(n.state.pageElements).forEach(function(t){var r={fontSize:parseInt(n.getComputedProperty(t,"font-size"),10),lineHeight:parseInt(n.getComputedProperty(t,"line-height"))};t.style.fontSize=e?r.fontSize+1+"px":r.fontSize-1+"px"})},this.removeAttribute=function(e,t){return e.removeAttribute(t)},this.getComputedProperty=function(e,t){return window.getComputedStyle(e).getPropertyValue(t)},this.getTargetDOMElements=function(){return document.body.querySelectorAll(n.state.targets)},this.convertToArray=function(e){return Array.from(e)},t){var a=void 0,s=void 0,l=void 0;a=t.querySelector("."+i.FONT_SIZE_TOGGLE_CONFIG.classes.increaseBtn),s=t.querySelector("."+i.FONT_SIZE_TOGGLE_CONFIG.classes.decreaseBtn),l=t.querySelector("."+i.FONT_SIZE_TOGGLE_CONFIG.classes.resetBtn),this.state={currentSize:0,maxSize:i.FONT_SIZE_TOGGLE_CONFIG.maxSize,minSize:i.FONT_SIZE_TOGGLE_CONFIG.minSize,buttons:{increaseButton:a,decreaseButton:s,resetButton:l},pageElements:"",targets:i.FONT_SIZE_TOGGLE_CONFIG.DOMTargets},this.state.buttons.increaseButton&&this.state.buttons.decreaseButton&&this.state.buttons.resetButton&&this.setup()}}},363:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FONT_SIZE_TOGGLE_CONFIG={classes:{increaseBtn:"font-size-toggle__button--increase",decreaseBtn:"font-size-toggle__button--decrease",resetBtn:"font-size-toggle__button--reset",hidden:"font-size-toggle__button--hidden"},maxSize:5,minSize:-2,dataAttributes:{type:"data-toggle-type"},DOMTargets:["h1","h2","h3","h4","p","li","td","th","thead","caption","legend","button","dd"]}},364:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initSpeechToText=void 0;var r=n(365);t.initSpeechToText=function(){if(window.webkitSpeechRecognition){var e=document.querySelectorAll(".search-bar__search-voice");e=Array.from(e),e&&e.length&&e.forEach(function(e){e.classList.add("search-bar__search-voice--is-supported"),new r.SpeechToText(e)})}}},365:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.SpeechToText=void 0;var o=n(16),i=n(366);t.SpeechToText=function e(t){var n=this;if(r(this,e),this.setup=function(){(0,o.addEventListenerToEl)(n.elements.recordButton,"click",n.listenBtnClickHandler),n.state.speechRecognition.onstart=n.isRecording,n.state.speechRecognition.onend=n.isStoppedRecording,n.state.speechRecognition.onresult=n.handleOnSpeechResult},this.listenBtnClickHandler=function(e){if(e.preventDefault(),n.state.isRecording)return n.state.speechRecognition.abort(),void n.isStoppedRecording();n.state.speechRecognition.start()},this.handleOnSpeechResult=function(e){var t=e.results[0][0].transcript;""!=n.elements.input.value.trim()&&(t=n.elements.input.value+" "+t),n.elements.input.value=t},this.isRecording=function(){n.state.isRecording=!0,n.elements.submitBtn.disabled=!0,n.elements.input.disabled=!0,n.elements.recordButton.innerHTML=i.SPEECH_TO_TEXT_CONFIG.content.recording},this.isStoppedRecording=function(){n.state.isRecording=!1,n.elements.submitBtn.disabled=!1,n.elements.input.disabled=!1,n.elements.recordButton.innerHTML=i.SPEECH_TO_TEXT_CONFIG.content.init},t){var a=(0,o.closestParentOfEl)(t,"."+i.SPEECH_TO_TEXT_CONFIG.classes.wrapper);this.elements={recordButton:t,wrapper:a,input:a.querySelector("."+i.SPEECH_TO_TEXT_CONFIG.classes.input),submitBtn:a.querySelector("."+i.SPEECH_TO_TEXT_CONFIG.classes.submitBtn)},this.state={speechRecognition:new webkitSpeechRecognition,isRecording:!1},this.elements.wrapper&&this.elements.input&&this.elements.submitBtn&&this.setup()}}},366:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SPEECH_TO_TEXT_CONFIG={classes:{wrapper:"search-bar__control-group",input:"search-bar__search-input",submitBtn:"search-bar__search-submit"},content:{init:"Start voice search",recording:"Cancel recording"}}},367:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initThemeToggle=void 0;var r=n(368);t.initThemeToggle=function(){var e=document.querySelector(".theme-toggle");e&&new r.ThemeToggle(e)}},368:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeToggle=void 0;var o=n(16);t.ThemeToggle=function e(t){var n=this;r(this,e),this.setup=function(){(0,o.addEventListenerToEl)(n.state.elements.form,"change",n.formChangeHandler)},this.formChangeHandler=function(e){e.preventDefault();var t=void 0,r=void 0;t=e.target.value,t=t.toLowerCase().split(" ").join("-"),t||console.warn("Failed to retreive radio value"),r=n.state.themes.get(t),r||console.warn("Failed to retrive new theme class"),r!=n.state.currentTheme&&n.setNewTheme(r)},this.setNewTheme=function(e){n.state.currentTheme&&document.body.classList.remove(n.state.currentTheme),n.state.currentTheme=e,document.body.classList.add(e)},t||console.warn("theme toggle wrapper failed to initialize.");var i=t.querySelector(".theme-toggle__form");if(i){var a=new Map;a.set("default",""),a.set("high-contrast-yellow","theme__high-contrast-yellow"),a.set("low-contrast-grey","theme__low-contrast-grey"),a.set("sepia","theme__sepia"),a.set("medium-contrast-yellow","theme__medium-contrast-yellow"),this.state={currentTheme:"",themes:a,elements:{form:i}},this.setup()}}},369:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initAutoComplete=void 0;var r=n(370);t.initAutoComplete=function(){var e=document.querySelectorAll(".select-autocomplete");e&&(e=Array.from(e),e.forEach(function(e){new r.AutoComplete(e)}))}},370:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.AutoComplete=void 0;var o=n(371),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.AutoComplete=function e(t){var n=this;r(this,e),this.setup=function(){i.default.enhanceSelectElement({autoselect:!0,defaultValue:n.state.elm.options[n.state.elm.options.selectedIndex].innerHTML,minLength:2,selectElement:n.state.elm})},this.state={elm:t},this.setup()}},371:function(e,t,n){!function(t,n){e.exports=n()}(window,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=37)}([function(e,t,n){var r=n(1),o=n(6),i=n(7),a=n(16),s=n(18),l="prototype",u=function(e,t,n){var c,d,p,f,h=e&u.F,v=e&u.G,m=e&u.S,g=e&u.P,y=e&u.B,b=v?r:m?r[t]||(r[t]={}):(r[t]||{})[l],_=v?o:o[t]||(o[t]={}),w=_[l]||(_[l]={});for(c in v&&(n=t),n)p=((d=!h&&b&&void 0!==b[c])?b:n)[c],f=y&&d?s(p,r):g&&"function"==typeof p?s(Function.call,p):p,b&&a(b,c,p,e&u.U),_[c]!=p&&i(_,c,f),g&&w[c]!=p&&(w[c]=p)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";function r(e,t){var n,r,o,i,a=O;for(i=arguments.length;2l;)r(s,n=t[l++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var r=n(25),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(33),i=n(34)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(0),o=n(32)(2);r(r.P+r.F*!n(13)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(33)})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){return(o=Object.assign||function(e){for(var t=1;t=r;this.setState({query:s}),i||!l&&u&&c?o(s,function(e){var n=0=s,I=this.props.showNoOptionsFound&&F&&k&&N&&A,B=r+"__wrapper",L=r+"__input",M=null!==E?" "+L+"--focused":"",j=this.props.showAllValues?" "+L+"--show-all-values":" "+L+"--default",H=r+"__dropdown-arrow-down",R=-1!==E&&null!==E,q=r+"__menu",D=q+"--"+i,z=q+"--"+(C||I?"visible":"hidden"),G=r+"__option",$=r+"__hint",U=this.templateInputValue(S[P]),V=U&&0===U.toLowerCase().indexOf(T.toLowerCase())&&O?T+U.substr(T.length):"",X=p&&V;return h&&"string"==typeof(e=_({className:H}))&&(e=(0,l.createElement)("div",{className:r+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,l.createElement)("div",{className:B,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":C?"true":"false"},(0,l.createElement)(u.default,{length:S.length,queryLength:T.length,minQueryLength:s,selectedOption:this.templateInputValue(S[P]),selectedOptionIndex:P,tQueryTooShort:m,tNoResults:g,tSelectedOption:y,tResults:b}),X&&(0,l.createElement)("span",null,(0,l.createElement)("input",{className:$,readonly:!0,tabIndex:"-1",value:V})),(0,l.createElement)("input",o({"aria-activedescendant":!!R&&a+"__option--"+E,"aria-owns":a+"__listbox",autoComplete:"off",className:""+L+M+j,id:a,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:c,placeholder:d,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"textbox",required:f,value:T})),e,(0,l.createElement)("ul",{className:q+" "+D+" "+z,onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:a+"__listbox",role:"listbox"},S.map(function(e,n){var r=(-1===E?P===n:E===n)&&null===x?" "+G+"--focused":"",o=n%2?" "+G+"--odd":"";return(0,l.createElement)("li",{"aria-selected":E===n,className:""+G+r+o,dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)},id:a+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1"})}),I&&(0,l.createElement)("li",{className:G+" "+G+"--no-results"},v())))},t}(l.Component);(t.default=f).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:c.default}},function(e,t,n){var r=n(9),o=n(53),i=n(28),a=n(26)("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n(15)("iframe"),r=i.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("