@defra/forms-engine-plugin 5.0.0-alpha.10 → 5.0.0-alpha.11
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/.public/javascripts/application.min.js +1 -1
- package/.public/javascripts/application.min.js.LICENSE.txt +7 -0
- package/.public/javascripts/application.min.js.map +1 -1
- package/.public/javascripts/shared.min.js +1 -1
- package/.public/javascripts/shared.min.js.LICENSE.txt +7 -0
- package/.public/javascripts/shared.min.js.map +1 -1
- package/.server/client/javascripts/file-upload.js +1 -0
- package/.server/client/javascripts/file-upload.js.map +1 -1
- package/.server/client/javascripts/geospatial-map.js +2 -28
- package/.server/client/javascripts/geospatial-map.js.map +1 -1
- package/.server/client/javascripts/govuk.js +2 -1
- package/.server/client/javascripts/govuk.js.map +1 -1
- package/.server/client/javascripts/location-map.js +3 -2
- package/.server/client/javascripts/location-map.js.map +1 -1
- package/.server/client/javascripts/map.d.ts +6 -0
- package/.server/client/javascripts/map.js +37 -0
- package/.server/client/javascripts/map.js.map +1 -1
- package/.server/server/plugins/engine/components/EastingNorthingField.d.ts +3 -0
- package/.server/server/plugins/engine/components/EastingNorthingField.js +17 -0
- package/.server/server/plugins/engine/components/EastingNorthingField.js.map +1 -1
- package/.server/server/plugins/engine/components/FileUploadField.js +3 -1
- package/.server/server/plugins/engine/components/FileUploadField.js.map +1 -1
- package/.server/server/plugins/engine/components/LatLongField.d.ts +2 -0
- package/.server/server/plugins/engine/components/LocationFieldHelpers.d.ts +3 -1
- package/.server/server/plugins/engine/components/LocationFieldHelpers.js +3 -1
- package/.server/server/plugins/engine/components/LocationFieldHelpers.js.map +1 -1
- package/.server/server/plugins/engine/components/helpers/geospatial.d.ts +3 -1
- package/.server/server/plugins/engine/components/helpers/geospatial.js +32 -0
- package/.server/server/plugins/engine/components/helpers/geospatial.js.map +1 -1
- package/.server/server/plugins/engine/i18n/translations/cy.json +13 -3
- package/.server/server/plugins/engine/i18n/translations/en-GB.json +13 -3
- package/.server/server/plugins/engine/pageControllers/FileUploadPageController.d.ts +6 -0
- package/.server/server/plugins/engine/pageControllers/FileUploadPageController.js +34 -1
- package/.server/server/plugins/engine/pageControllers/FileUploadPageController.js.map +1 -1
- package/.server/server/plugins/engine/types.d.ts +4 -0
- package/.server/server/plugins/engine/types.js.map +1 -1
- package/.server/server/plugins/engine/views/components/_location-field-base.html +2 -1
- package/.server/server/plugins/engine/views/file-upload.html +1 -1
- package/.server/server/utils/utils.d.ts +6 -0
- package/.server/server/utils/utils.js +18 -1
- package/.server/server/utils/utils.js.map +1 -1
- package/.server/server/utils/utils.test.js +21 -1
- package/.server/server/utils/utils.test.js.map +1 -1
- package/package.json +2 -1
- package/src/client/javascripts/file-upload.js +1 -0
- package/src/client/javascripts/geospatial-map.js +2 -31
- package/src/client/javascripts/govuk.js +2 -0
- package/src/client/javascripts/location-map.js +3 -1
- package/src/client/javascripts/map.js +42 -0
- package/src/server/plugins/engine/components/EastingNorthingField.ts +31 -0
- package/src/server/plugins/engine/components/FileUploadField.ts +3 -1
- package/src/server/plugins/engine/components/LocationFieldHelpers.ts +6 -2
- package/src/server/plugins/engine/components/helpers/geospatial.ts +53 -0
- package/src/server/plugins/engine/i18n/translations/cy.json +13 -3
- package/src/server/plugins/engine/i18n/translations/en-GB.json +13 -3
- package/src/server/plugins/engine/pageControllers/FileUploadPageController.ts +42 -1
- package/src/server/plugins/engine/types.ts +4 -0
- package/src/server/plugins/engine/views/components/_location-field-base.html +2 -1
- package/src/server/plugins/engine/views/file-upload.html +1 -1
- package/src/server/utils/utils.js +19 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see application.min.js.LICENSE.txt */
|
|
2
|
-
var e,t,n,o={831:(e,t,n)=>{function o(e){const t=e.currentTarget;if("true"===t.dataset.debouncing)return e.preventDefault(),void e.stopImmediatePropagation();t.dataset.debouncing="true",setTimeout(()=>{delete t.dataset.debouncing},1e4)}function r(e){o(e)}function i(e){"Enter"!==e.key&&" "!==e.key||o(e)}n.d(t,{Yi:()=>U});const s="aria-describedby",a="error-summary-title";function l(e,t,n){var o;const r=document.getElementById("uploadedFilesContainer"),i=r?r.closest("form"):null;if(!(i&&i instanceof HTMLFormElement))return;const a=i.querySelector("p.govuk-body");if(!a)return;const l=function(e,t){let n=null==e?void 0:e.querySelector("#statusInformation");if(!n){n=document.createElement("div"),n.id="statusInformation",n.className="govuk-visually-hidden",n.setAttribute("aria-live","polite");try{!function(e,t,n){var o;null!=t&&t.nextSibling&&t.parentNode===e?e.insertBefore(n,t.nextSibling):(null!=(o=null==t?void 0:t.parentNode)?o:e).appendChild(n)}(e,t,n)}catch(o){try{null==e||e.appendChild(n)}catch(r){document.body.appendChild(n)}}}return n}(i,a),u=n.querySelector('input[type="file"]');u&&u.setAttribute(s,"statusInformation");const c=function(e,t){let n=e.querySelector("dl.govuk-summary-list");if(!n){n=document.createElement("dl"),n.className="govuk-summary-list govuk-summary-list--long-key";const o=e.querySelector(".govuk-button-group");o?e.insertBefore(n,o):e.insertBefore(n,t.nextSibling)}return n}(i,a),d=document.querySelector(`[data-filename="${null==e?void 0:e.name}"]`);d&&d.remove();const h=function(e,t){var n,o;const r=document.createElement("div");return r.className="govuk-summary-list__row",r.setAttribute("data-filename",null!=(n=null==e?void 0:e.name)?n:""),r.innerHTML=`\n <dt class="govuk-summary-list__key">\n ${null!=(o=null==e?void 0:e.name)?o:""}\n </dt>\n <dd class="govuk-summary-list__value">\n <strong class="govuk-tag govuk-tag--yellow">${t}</strong>\n </dd>\n <dd class="govuk-summary-list__actions">\n </dd>\n `,r}(e,t);c.insertBefore(h,c.firstChild),l.textContent=`${null!=(o=null==e?void 0:e.name)?o:""} ${t}`}function u(e,t,n){if(document.querySelector(".govuk-error-summary"))return void(document.getElementById(a)?n.setAttribute(s,a):n.removeAttribute(s));t&&(t.innerHTML=`\n <div class="govuk-error-summary" data-module="govuk-error-summary">\n <div role="alert">\n <h2 class="govuk-error-summary__title" id="${a}">\n There is a problem\n </h2>\n <div class="govuk-error-summary__body">\n <ul class="govuk-list govuk-error-summary__list">\n <li>\n <a href="#file-upload">${e}</a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n `,n.setAttribute(s,a));const o=n.closest(".govuk-form-group");if(o){o.classList.add("govuk-form-group--error"),n.classList.add("govuk-file-upload--error");const t=n.id;let r=document.getElementById(`${t}-error`);r||(r=document.createElement("p"),r.id=`${t}-error`,r.className="govuk-error-message",r.innerHTML=`<span class="govuk-visually-hidden">Error:</span> ${e}`,o.insertBefore(r,n)),n.setAttribute(s,`error-summary-title ${t}-error`)}}function c(){window.history.replaceState(null,"",window.location.href),window.location.href=window.location.pathname}function d(){var e,t,n;const o=document.querySelector('form:has(input[type="file"])'),r=o?o.querySelector('input[type="file"]'):null,i=o?o.querySelector(".upload-file-button"):null,s=null!=(e=Array.from(document.querySelectorAll("button.govuk-button")).find(e=>"Continue"===e.textContent.trim()))?e:null,a=document.querySelector(".govuk-error-summary-container");if(!o||!r||!i)return;const d=null!=(t=null==(n=document.getElementById("uploadedFilesContainer"))?void 0:n.dataset.uploadinglabel)?t:"Uploading…",h=o;let m=[],p=!1;const f=h.dataset.uploadId;r.addEventListener("change",()=>{a&&(a.innerHTML=""),r.files&&r.files.length>0&&(m=Array.from(r.files))}),i.addEventListener("click",e=>{if(0===m.length)return e.preventDefault(),void u("Select a file",a,r);p?e.preventDefault():(p=!0,function(e,t,n,o,r,i){for(let s=r.length-1;s>=0;s--)l(r[s],i,e);t.focus(),setTimeout(()=>{t.disabled=!0,n.disabled=!0,o.disabled=!0},100)}(h,r,i,s,m,d),function(e,t,n,o,r,i){var s;if(!t.action||!i)return!1;e.preventDefault();const a=new FormData(t),l=!!t.dataset.proxyUrl,d=null!=(s=t.dataset.proxyUrl)?s:t.action,h={method:"POST",body:a,redirect:l?"follow":"manual"};l&&(h.mode="no-cors"),fetch(d,h).then(()=>{!function(e){let t=0;const n=setInterval(()=>{if(t++,t>=300)return clearInterval(n),void c();const o=function(e,t){const n=e.replace(/\/preview\/(draft|live)/g,"").replace(/\/{2,}/g,"/").replace(/\/$/,"").split("/").filter(Boolean);return`${n.length>2?`/${n.slice(0,n.length-2).join("/")}`:""}/upload-status/${t}`}(window.location.pathname,e);fetch(o,{headers:{Accept:"application/json"}}).then(e=>{if(!e.ok)throw new Error("Network response was not ok");return e.json()}).then(e=>{"ready"===e.uploadStatus&&(clearInterval(n),c())}).catch(()=>{clearInterval(n),c()})},1e3)}(i)}).catch(()=>(n.disabled=!1,o.disabled=!1,u("There was a problem uploading the file",r,n),null))}(e,h,r,i,a,f))})}function h(e,t={}){var n;const o=e.getAttribute("tabindex");function r(){var n;null==(n=t.onBlur)||n.call(e),o||e.removeAttribute("tabindex")}o||e.setAttribute("tabindex","-1"),e.addEventListener("focus",function(){e.addEventListener("blur",r,{once:!0})},{once:!0}),null==(n=t.onBeforeFocus)||n.call(e),e.focus()}function m(e=document.body){return!!e&&e.classList.contains("govuk-frontend-supported")}function p(e){return!!e&&"object"==typeof e&&!function(e){return Array.isArray(e)}(e)}function f(e){return!!e&&(e instanceof Element||e instanceof Document)}function g(e,t){return`${e.moduleName}: ${t}`}class v extends Error{constructor(...e){super(...e),this.name="GOVUKFrontendError"}}class b extends v{constructor(e=document.body){const t="noModule"in HTMLScriptElement.prototype?'GOV.UK Frontend initialised without `<body class="govuk-frontend-supported">` from template `<script>` snippet':"GOV.UK Frontend is not supported in this browser";super(e?t:'GOV.UK Frontend initialised without `<script type="module">`'),this.name="SupportError"}}class y extends v{constructor(...e){super(...e),this.name="ConfigError"}}class k extends v{constructor(e){let t="string"==typeof e?e:"";if(p(e)){const{component:n,identifier:o,element:r,expectedType:i}=e;t=o,t+=r?` is not of type ${null!=i?i:"HTMLElement"}`:" not found",n&&(t=g(n,t))}super(t),this.name="ElementError"}}class w extends v{constructor(e){super("string"==typeof e?e:g(e,"Root element (`$root`) already initialised")),this.name="InitError"}}class ${get $root(){return this._$root}constructor(e){this._$root=void 0;const t=this.constructor;if("string"!=typeof t.moduleName)throw new w("`moduleName` not defined in component");if(!(e instanceof t.elementType))throw new k({element:e,component:t,identifier:"Root element (`$root`)",expectedType:t.elementType.name});this._$root=e,t.checkSupport(),this.checkInitialised();const n=t.moduleName;this.$root.setAttribute(`data-${n}-init`,"")}checkInitialised(){const e=this.constructor,t=e.moduleName;if(t&&function(e,t){return e instanceof HTMLElement&&e.hasAttribute(`data-${t}-init`)}(this.$root,t))throw new w(e)}static checkSupport(){if(!m())throw new b}}$.elementType=HTMLElement;const E=Symbol.for("configOverride");class x extends ${[E](e){return{}}get config(){return this._config}constructor(e,t){super(e),this._config=void 0;const n=this.constructor;if(!p(n.defaults))throw new y(g(n,"Config passed as parameter into constructor but no defaults defined"));const o=function(e,t){if(!p(e.schema))throw new y(g(e,"Config passed as parameter into constructor but no schema defined"));const n={},o=Object.entries(e.schema.properties);for(const r of o){const[o,i]=r,s=o.toString();s in t&&(n[s]=C(t[s],i)),"object"===(null==i?void 0:i.type)&&(n[s]=L(e.schema,t,o))}return n}(n,this._$root.dataset);this._config=A(n.defaults,null!=t?t:{},this[E](o),o)}}function C(e,t){const n=e?e.trim():"";let o,r=null==t?void 0:t.type;switch(r||(["true","false"].includes(n)&&(r="boolean"),n.length>0&&isFinite(Number(n))&&(r="number")),r){case"boolean":o="true"===n;break;case"number":o=Number(n);break;default:o=e}return o}function A(...e){const t={};for(const n of e)for(const e of Object.keys(n)){const o=t[e],r=n[e];p(o)&&p(r)?t[e]=A(o,r):t[e]=r}return t}function L(e,t,n){const o=e.properties[n];if("object"!==(null==o?void 0:o.type))return;const r={[n]:{}};for(const[i,s]of Object.entries(t)){let e=r;const t=i.split(".");for(const[o,r]of t.entries())p(e)&&(o<t.length-1?(p(e[r])||(e[r]={}),e=e[r]):i!==n&&(e[r]=C(s)))}return r[n]}function S(e,t,n){let o;const r=function(e){let t,n=document;if(p(e)){const o=e;(f(o.scope)||null===o.scope)&&(n=o.scope),"function"==typeof o.onError&&(t=o.onError)}return f(e)?n=e:null===e?n=null:"function"==typeof e&&(t=e),{scope:n,onError:t}}(n);try{var i;if(!m())throw new b;if(null===r.scope)throw new k({element:r.scope,component:e,identifier:"Scope element (`$scope`)"});o=null==(i=r.scope)?void 0:i.querySelectorAll(`[data-module="${e.moduleName}"]`)}catch(s){return r.onError?r.onError(s,{component:e,config:t}):console.log(s),[]}return Array.from(null!=o?o:[]).map(n=>{try{return void 0!==t?new e(n,t):new e(n)}catch(s){return r.onError?r.onError(s,{element:n,component:e,config:t}):console.log(s),null}}).filter(Boolean)}class I extends x{constructor(e,t={}){super(e,t),this.debounceFormSubmitTimer=null,this.$root.addEventListener("keydown",e=>this.handleKeyDown(e)),this.$root.addEventListener("click",e=>this.debounce(e))}handleKeyDown(e){const t=e.target;" "===e.key&&t instanceof HTMLElement&&"button"===t.getAttribute("role")&&(e.preventDefault(),t.click())}debounce(e){if(this.config.preventDoubleClick)return this.debounceFormSubmitTimer?(e.preventDefault(),!1):void(this.debounceFormSubmitTimer=window.setTimeout(()=>{this.debounceFormSubmitTimer=null},1e3))}}function M(e,t){const n=e.closest(`[${t}]`);return n?n.getAttribute(t):null}I.moduleName="govuk-button",I.defaults=Object.freeze({preventDoubleClick:!1}),I.schema=Object.freeze({properties:{preventDoubleClick:{type:"boolean"}}});class T{constructor(e={},t={}){var n;this.translations=void 0,this.locale=void 0,this.translations=e,this.locale=null!=(n=t.locale)?n:document.documentElement.lang||"en"}t(e,t){if(!e)throw new Error("i18n: lookup key missing");let n=this.translations[e];if("number"==typeof(null==t?void 0:t.count)&&p(n)){const o=n[this.getPluralSuffix(e,t.count)];o&&(n=o)}if("string"==typeof n){if(n.match(/%{(.\S+)}/)){if(!t)throw new Error("i18n: cannot replace placeholders in string if no option data provided");return this.replacePlaceholders(n,t)}return n}return e}replacePlaceholders(e,t){const n=Intl.NumberFormat.supportedLocalesOf(this.locale).length?new Intl.NumberFormat(this.locale):void 0;return e.replace(/%{(.\S+)}/g,function(e,o){if(Object.prototype.hasOwnProperty.call(t,o)){const e=t[o];return!1===e||"number"!=typeof e&&"string"!=typeof e?"":"number"==typeof e?n?n.format(e):`${e}`:e}throw new Error(`i18n: no data found to replace ${e} placeholder in string`)})}hasIntlPluralRulesSupport(){return Boolean("PluralRules"in window.Intl&&Intl.PluralRules.supportedLocalesOf(this.locale).length)}getPluralSuffix(e,t){if(t=Number(t),!isFinite(t))return"other";const n=this.translations[e],o=this.hasIntlPluralRulesSupport()?new Intl.PluralRules(this.locale).select(t):"other";if(p(n)){if(o in n)return o;if("other"in n)return console.warn(`i18n: Missing plural form ".${o}" for "${this.locale}" locale. Falling back to ".other".`),"other"}throw new Error(`i18n: Plural form ".other" is required for "${this.locale}" locale`)}}class O extends x{[E](e){let t={};return("maxwords"in e||"maxlength"in e)&&(t={maxlength:void 0,maxwords:void 0}),t}constructor(e,t={}){var n,o;super(e,t),this.$textarea=void 0,this.$visibleCountMessage=void 0,this.$screenReaderCountMessage=void 0,this.lastInputTimestamp=null,this.lastInputValue="",this.valueChecker=null,this.i18n=void 0,this.maxLength=void 0;const r=this.$root.querySelector(".govuk-js-character-count");if(!(r instanceof HTMLTextAreaElement||r instanceof HTMLInputElement))throw new k({component:O,element:r,expectedType:"HTMLTextareaElement or HTMLInputElement",identifier:"Form field (`.govuk-js-character-count`)"});const i=function(e,t){const n=[];for(const[o,r]of Object.entries(e)){const e=[];if(Array.isArray(r)){for(const{required:n,errorMessage:o}of r)n.every(e=>!!t[e])||e.push(o);"anyOf"!==o||r.length-e.length>=1||n.push(...e)}}return n}(O.schema,this.config);if(i[0])throw new y(g(O,i[0]));this.i18n=new T(this.config.i18n,{locale:M(this.$root,"lang")}),this.maxLength=null!=(n=null!=(o=this.config.maxwords)?o:this.config.maxlength)?n:1/0,this.$textarea=r;const s=`${this.$textarea.id}-info`,a=document.getElementById(s);if(!a)throw new k({component:O,element:a,identifier:`Count message (\`id="${s}"\`)`});this.$errorMessage=this.$root.querySelector(".govuk-error-message"),a.textContent.match(/^\s*$/)&&(a.textContent=this.i18n.t("textareaDescription",{count:this.maxLength})),this.$textarea.insertAdjacentElement("afterend",a);const l=document.createElement("div");l.className="govuk-character-count__sr-status govuk-visually-hidden",l.setAttribute("aria-live","polite"),this.$screenReaderCountMessage=l,a.insertAdjacentElement("afterend",l);const u=document.createElement("div");u.className=a.className,u.classList.add("govuk-character-count__status"),u.setAttribute("aria-hidden","true"),this.$visibleCountMessage=u,a.insertAdjacentElement("afterend",u),a.classList.add("govuk-visually-hidden"),this.$textarea.removeAttribute("maxlength"),this.bindChangeEvents(),window.addEventListener("pageshow",()=>this.updateCountMessage()),this.updateCountMessage()}bindChangeEvents(){this.$textarea.addEventListener("keyup",()=>this.handleKeyUp()),this.$textarea.addEventListener("focus",()=>this.handleFocus()),this.$textarea.addEventListener("blur",()=>this.handleBlur())}handleKeyUp(){this.updateVisibleCountMessage(),this.lastInputTimestamp=Date.now()}handleFocus(){this.valueChecker=window.setInterval(()=>{(!this.lastInputTimestamp||Date.now()-500>=this.lastInputTimestamp)&&this.updateIfValueChanged()},1e3)}handleBlur(){this.valueChecker&&window.clearInterval(this.valueChecker)}updateIfValueChanged(){this.$textarea.value!==this.lastInputValue&&(this.lastInputValue=this.$textarea.value,this.updateCountMessage())}updateCountMessage(){this.updateVisibleCountMessage(),this.updateScreenReaderCountMessage()}updateVisibleCountMessage(){const e=this.maxLength-this.count(this.$textarea.value)<0;this.$visibleCountMessage.classList.toggle("govuk-character-count__message--disabled",!this.isOverThreshold()),this.$errorMessage||this.$textarea.classList.toggle("govuk-textarea--error",e),this.$visibleCountMessage.classList.toggle("govuk-error-message",e),this.$visibleCountMessage.classList.toggle("govuk-hint",!e),this.$visibleCountMessage.textContent=this.getCountMessage()}updateScreenReaderCountMessage(){this.isOverThreshold()?this.$screenReaderCountMessage.removeAttribute("aria-hidden"):this.$screenReaderCountMessage.setAttribute("aria-hidden","true"),this.$screenReaderCountMessage.textContent=this.getCountMessage()}count(e){var t;return this.config.maxwords?(null!=(t=e.match(/\S+/g))?t:[]).length:e.length}getCountMessage(){const e=this.maxLength-this.count(this.$textarea.value),t=this.config.maxwords?"words":"characters";return this.formatCountMessage(e,t)}formatCountMessage(e,t){if(0===e)return this.i18n.t(`${t}AtLimit`);const n=e<0?"OverLimit":"UnderLimit";return this.i18n.t(`${t}${n}`,{count:Math.abs(e)})}isOverThreshold(){if(!this.config.threshold)return!0;const e=this.count(this.$textarea.value);return this.maxLength*this.config.threshold/100<=e}}O.moduleName="govuk-character-count",O.defaults=Object.freeze({threshold:0,i18n:{charactersUnderLimit:{one:"You have %{count} character remaining",other:"You have %{count} characters remaining"},charactersAtLimit:"You have 0 characters remaining",charactersOverLimit:{one:"You have %{count} character too many",other:"You have %{count} characters too many"},wordsUnderLimit:{one:"You have %{count} word remaining",other:"You have %{count} words remaining"},wordsAtLimit:"You have 0 words remaining",wordsOverLimit:{one:"You have %{count} word too many",other:"You have %{count} words too many"},textareaDescription:{other:""}}}),O.schema=Object.freeze({properties:{i18n:{type:"object"},maxwords:{type:"number"},maxlength:{type:"number"},threshold:{type:"number"}},anyOf:[{required:["maxwords"],errorMessage:'Either "maxlength" or "maxwords" must be provided'},{required:["maxlength"],errorMessage:'Either "maxlength" or "maxwords" must be provided'}]});class j extends ${constructor(e){super(e),this.$inputs=void 0;const t=this.$root.querySelectorAll('input[type="checkbox"]');if(!t.length)throw new k({component:j,identifier:'Form inputs (`<input type="checkbox">`)'});this.$inputs=t,this.$inputs.forEach(e=>{const t=e.getAttribute("data-aria-controls");if(t){if(!document.getElementById(t))throw new k({component:j,identifier:`Conditional reveal (\`id="${t}"\`)`});e.setAttribute("aria-controls",t),e.removeAttribute("data-aria-controls")}}),window.addEventListener("pageshow",()=>this.syncAllConditionalReveals()),this.syncAllConditionalReveals(),this.$root.addEventListener("click",e=>this.handleClick(e))}syncAllConditionalReveals(){this.$inputs.forEach(e=>this.syncConditionalRevealWithInputState(e))}syncConditionalRevealWithInputState(e){const t=e.getAttribute("aria-controls");if(!t)return;const n=document.getElementById(t);if(null!=n&&n.classList.contains("govuk-checkboxes__conditional")){const t=e.checked;e.setAttribute("aria-expanded",t.toString()),n.classList.toggle("govuk-checkboxes__conditional--hidden",!t)}}unCheckAllInputsExcept(e){document.querySelectorAll(`input[type="checkbox"][name="${e.name}"]`).forEach(t=>{e.form===t.form&&t!==e&&(t.checked=!1,this.syncConditionalRevealWithInputState(t))})}unCheckExclusiveInputs(e){document.querySelectorAll(`input[data-behaviour="exclusive"][type="checkbox"][name="${e.name}"]`).forEach(t=>{e.form===t.form&&(t.checked=!1,this.syncConditionalRevealWithInputState(t))})}handleClick(e){const t=e.target;t instanceof HTMLInputElement&&"checkbox"===t.type&&(t.getAttribute("aria-controls")&&this.syncConditionalRevealWithInputState(t),t.checked&&("exclusive"===t.getAttribute("data-behaviour")?this.unCheckAllInputsExcept(t):this.unCheckExclusiveInputs(t)))}}j.moduleName="govuk-checkboxes";class _ extends x{constructor(e,t={}){super(e,t),this.config.disableAutoFocus||h(this.$root),this.$root.addEventListener("click",e=>this.handleClick(e))}handleClick(e){const t=e.target;t&&this.focusTarget(t)&&e.preventDefault()}focusTarget(e){if(!(e instanceof HTMLAnchorElement))return!1;const t=e.hash.replace("#","");if(!t)return!1;const n=document.getElementById(t);if(!n)return!1;const o=this.getAssociatedLegendOrLabel(n);return!!o&&(o.scrollIntoView(),n.focus({preventScroll:!0}),!0)}getAssociatedLegendOrLabel(e){var t;const n=e.closest("fieldset");if(n){const t=n.getElementsByTagName("legend");if(t.length){const n=t[0];if(e instanceof HTMLInputElement&&("checkbox"===e.type||"radio"===e.type))return n;const o=n.getBoundingClientRect().top,r=e.getBoundingClientRect();if(r.height&&window.innerHeight&&r.top+r.height-o<window.innerHeight/2)return n}}return null!=(t=document.querySelector(`label[for='${e.getAttribute("id")}']`))?t:e.closest("label")}}_.moduleName="govuk-error-summary",_.defaults=Object.freeze({disableAutoFocus:!1}),_.schema=Object.freeze({properties:{disableAutoFocus:{type:"boolean"}}});class q extends ${constructor(e){super(e),this.$menuButton=void 0,this.$menu=void 0,this.menuIsOpen=!1,this.mql=null;const t=this.$root.querySelector(".govuk-js-header-toggle");if(!t)return this;this.$root.classList.add("govuk-header--with-js-navigation");const n=t.getAttribute("aria-controls");if(!n)throw new k({component:q,identifier:'Navigation button (`<button class="govuk-js-header-toggle">`) attribute (`aria-controls`)'});const o=document.getElementById(n);if(!o)throw new k({component:q,element:o,identifier:`Navigation (\`<ul id="${n}">\`)`});this.$menu=o,this.$menuButton=t,this.setupResponsiveChecks(),this.$menuButton.addEventListener("click",()=>this.handleMenuButtonClick())}setupResponsiveChecks(){const e=function(){const e="--govuk-breakpoint-desktop";return{property:e,value:window.getComputedStyle(document.documentElement).getPropertyValue(e)||void 0}}();if(!e.value)throw new k({component:q,identifier:`CSS custom property (\`${e.property}\`) on pseudo-class \`:root\``});this.mql=window.matchMedia(`(min-width: ${e.value})`),"addEventListener"in this.mql?this.mql.addEventListener("change",()=>this.checkMode()):this.mql.addListener(()=>this.checkMode()),this.checkMode()}checkMode(){this.mql&&this.$menu&&this.$menuButton&&(this.mql.matches?(this.$menu.removeAttribute("hidden"),this.$menuButton.setAttribute("hidden","")):(this.$menuButton.removeAttribute("hidden"),this.$menuButton.setAttribute("aria-expanded",this.menuIsOpen.toString()),this.menuIsOpen?this.$menu.removeAttribute("hidden"):this.$menu.setAttribute("hidden","")))}handleMenuButtonClick(){this.menuIsOpen=!this.menuIsOpen,this.checkMode()}}q.moduleName="govuk-header";class B extends x{constructor(e,t={}){super(e,t),"alert"!==this.$root.getAttribute("role")||this.config.disableAutoFocus||h(this.$root)}}B.moduleName="govuk-notification-banner",B.defaults=Object.freeze({disableAutoFocus:!1}),B.schema=Object.freeze({properties:{disableAutoFocus:{type:"boolean"}}});class N extends ${constructor(e){super(e),this.$inputs=void 0;const t=this.$root.querySelectorAll('input[type="radio"]');if(!t.length)throw new k({component:N,identifier:'Form inputs (`<input type="radio">`)'});this.$inputs=t,this.$inputs.forEach(e=>{const t=e.getAttribute("data-aria-controls");if(t){if(!document.getElementById(t))throw new k({component:N,identifier:`Conditional reveal (\`id="${t}"\`)`});e.setAttribute("aria-controls",t),e.removeAttribute("data-aria-controls")}}),window.addEventListener("pageshow",()=>this.syncAllConditionalReveals()),this.syncAllConditionalReveals(),this.$root.addEventListener("click",e=>this.handleClick(e))}syncAllConditionalReveals(){this.$inputs.forEach(e=>this.syncConditionalRevealWithInputState(e))}syncConditionalRevealWithInputState(e){const t=e.getAttribute("aria-controls");if(!t)return;const n=document.getElementById(t);if(null!=n&&n.classList.contains("govuk-radios__conditional")){const t=e.checked;e.setAttribute("aria-expanded",t.toString()),n.classList.toggle("govuk-radios__conditional--hidden",!t)}}handleClick(e){const t=e.target;if(!(t instanceof HTMLInputElement)||"radio"!==t.type)return;const n=document.querySelectorAll('input[type="radio"][aria-controls]'),o=t.form,r=t.name;n.forEach(e=>{const t=e.form===o;e.name===r&&t&&this.syncConditionalRevealWithInputState(e)})}}N.moduleName="govuk-radios";class R extends ${constructor(e){var t;super(e);const n=this.$root.hash,o=null!=(t=this.$root.getAttribute("href"))?t:"";if(this.$root.origin!==window.location.origin||this.$root.pathname!==window.location.pathname)return;const r=n.replace("#","");if(!r)throw new k(`Skip link: Target link (\`href="${o}"\`) has no hash fragment`);const i=document.getElementById(r);if(!i)throw new k({component:R,element:i,identifier:`Target content (\`id="${r}"\`)`});this.$root.addEventListener("click",()=>h(i,{onBeforeFocus(){i.classList.add("govuk-skip-link-focused-element")},onBlur(){i.classList.remove("govuk-skip-link-focused-element")}}))}}R.elementType=HTMLAnchorElement,R.moduleName="govuk-skip-link";const F=function(){S(I),S(O),S(j),S(_),S(q),S(B),S(N),S(R)},P=function(){const e=document.querySelectorAll('[data-module="govuk-accessible-autocomplete"]');e.length&&n.e(7).then(n.t.bind(n,60,19)).then(t=>{const{default:n}=t;e.forEach(e=>function(e,t){if(!e)return;const n={id:e.id,selectElement:e};t(n);const o=document.querySelector(`#${n.id}`),r=[...e.options].map(e=>e.text);null==o||o.addEventListener("blur",()=>{o.value&&r.includes(o.value)||(e.value="")})}(e.querySelector("select"),n.enhanceSelectElement))}).catch(console.error)},H=function(){const e=document.querySelectorAll(".prevent-multiple-clicks");for(const t of e)t.addEventListener("click",r),t.addEventListener("keydown",i)},D=function(){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d()},V=function(){if(window.opener){const e=document.querySelector(".js-preview-banner-close");null==e||e.removeAttribute("hidden"),null==e||e.addEventListener("click",e=>{e.preventDefault(),window.close()})}};function U(){F(),P(),H(),D(),V()}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.m=o,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var r=Object.create(null);i.r(r);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&o&&n;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>n[e]);return s.default=()=>n,i.d(r,s),r},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce((t,n)=>(i.f[n](e,t),t),[])),i.u=e=>"javascripts/vendor/accessible-autocomplete.min.js",i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},i.l=(e,t,o,r)=>{if(n[e])n[e].push(t);else{var s,a;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var c=l[u];if(c.getAttribute("src")==e){s=c;break}}s||(a=!0,(s=document.createElement("script")).type="module",s.charset="utf-8",i.nc&&s.setAttribute("nonce",i.nc),s.src=e),n[e]=[t];var d=(t,o)=>{s.onerror=s.onload=null,clearTimeout(h);var r=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach(e=>e(o)),t)return t(o)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),a&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;if("string"==typeof import.meta.url&&(e=import.meta.url),!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e+"../"})(),(()=>{var e={543:0};i.f.j=(t,n)=>{var o=i.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var r=new Promise((n,r)=>o=e[t]=[n,r]);n.push(o[2]=r);var s=i.p+i.u(t),a=new Error;i.l(s,n=>{if(i.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var r=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+s+")",a.name="ChunkLoadError",a.type=r,a.request=s,o[1](a)}},"chunk-"+t,t)}};var t=(t,n)=>{var o,r,s=n[0],a=n[1],l=n[2],u=0;if(s.some(t=>0!==e[t])){for(o in a)i.o(a,o)&&(i.m[o]=a[o]);l&&l(i)}for(t&&t(n);u<s.length;u++)r=s[u],i.o(e,r)&&e[r]&&e[r][0](),e[r]=0},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(0,i(831).Yi)();
|
|
2
|
+
var e,t,n,o={565:(e,t,n)=>{function o(e){const t=e.currentTarget;if("true"===t.dataset.debouncing)return e.preventDefault(),void e.stopImmediatePropagation();t.dataset.debouncing="true",setTimeout(()=>{delete t.dataset.debouncing},1e4)}function i(e){o(e)}function r(e){"Enter"!==e.key&&" "!==e.key||o(e)}n.d(t,{Yi:()=>U});const s="aria-describedby",a="error-summary-title";function l(e,t,n){var o;const i=document.getElementById("uploadedFilesContainer"),r=i?i.closest("form"):null;if(!(r&&r instanceof HTMLFormElement))return;const a=r.querySelector("p.govuk-body");if(!a)return;const l=function(e,t){let n=null==e?void 0:e.querySelector("#statusInformation");if(!n){n=document.createElement("div"),n.id="statusInformation",n.className="govuk-visually-hidden",n.setAttribute("aria-live","polite");try{!function(e,t,n){var o;null!=t&&t.nextSibling&&t.parentNode===e?e.insertBefore(n,t.nextSibling):(null!=(o=null==t?void 0:t.parentNode)?o:e).appendChild(n)}(e,t,n)}catch(o){try{null==e||e.appendChild(n)}catch(i){document.body.appendChild(n)}}}return n}(r,a),u=n.querySelector('input[type="file"]');u&&u.setAttribute(s,"statusInformation");const c=function(e,t){let n=e.querySelector("dl.govuk-summary-list");if(!n){n=document.createElement("dl"),n.className="govuk-summary-list govuk-summary-list--long-key";const o=e.querySelector(".govuk-button-group");o?e.insertBefore(n,o):e.insertBefore(n,t.nextSibling)}return n}(r,a),d=document.querySelector(`[data-filename="${null==e?void 0:e.name}"]`);d&&d.remove();const h=function(e,t){var n,o;const i=document.createElement("div");return i.className="govuk-summary-list__row",i.setAttribute("data-filename",null!=(n=null==e?void 0:e.name)?n:""),i.innerHTML=`\n <dt class="govuk-summary-list__key">\n ${null!=(o=null==e?void 0:e.name)?o:""}\n </dt>\n <dd class="govuk-summary-list__value">\n <strong class="govuk-tag govuk-tag--yellow">${t}</strong>\n </dd>\n <dd class="govuk-summary-list__actions">\n </dd>\n `,i}(e,t);c.insertBefore(h,c.firstChild),l.textContent=`${null!=(o=null==e?void 0:e.name)?o:""} ${t}`}function u(e,t,n){if(document.querySelector(".govuk-error-summary"))return void(document.getElementById(a)?n.setAttribute(s,a):n.removeAttribute(s));t&&(t.innerHTML=`\n <div class="govuk-error-summary" data-module="govuk-error-summary">\n <div role="alert">\n <h2 class="govuk-error-summary__title" id="${a}">\n There is a problem\n </h2>\n <div class="govuk-error-summary__body">\n <ul class="govuk-list govuk-error-summary__list">\n <li>\n <a href="#file-upload">${e}</a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n `,n.setAttribute(s,a));const o=n.closest(".govuk-form-group");if(o){o.classList.add("govuk-form-group--error"),n.classList.add("govuk-file-upload--error");const t=n.id;let i=document.getElementById(`${t}-error`);i||(i=document.createElement("p"),i.id=`${t}-error`,i.className="govuk-error-message",i.innerHTML=`<span class="govuk-visually-hidden">Error:</span> ${e}`,o.insertBefore(i,n)),n.setAttribute(s,`error-summary-title ${t}-error`)}}function c(){window.history.replaceState(null,"",window.location.href),window.location.href=window.location.pathname}function d(){var e,t,n;const o=document.querySelector('form:has(input[type="file"])'),i=o?o.querySelector('input[type="file"]'):null,r=o?o.querySelector(".upload-file-button"):null,s=null!=(e=Array.from(document.querySelectorAll("button.govuk-button")).find(e=>"Continue"===e.textContent.trim()))?e:null,a=document.querySelector(".govuk-error-summary-container");if(!o||!i||!r)return;const d=null!=(t=null==(n=document.getElementById("uploadedFilesContainer"))?void 0:n.dataset.uploadinglabel)?t:"Uploading…",h=o;let m=[],p=!1;const f=h.dataset.uploadId;i.addEventListener("change",()=>{a&&(a.innerHTML=""),i.files&&i.files.length>0&&(m=Array.from(i.files),r.click())}),r.addEventListener("click",e=>{if(0===m.length)return e.preventDefault(),void u("Select a file",a,i);p?e.preventDefault():(p=!0,function(e,t,n,o,i,r){for(let s=i.length-1;s>=0;s--)l(i[s],r,e);t.focus(),setTimeout(()=>{t.disabled=!0,n.disabled=!0,o.disabled=!0},100)}(h,i,r,s,m,d),function(e,t,n,o,i,r){var s;if(!t.action||!r)return!1;e.preventDefault();const a=new FormData(t),l=!!t.dataset.proxyUrl,d=null!=(s=t.dataset.proxyUrl)?s:t.action,h={method:"POST",body:a,redirect:l?"follow":"manual"};l&&(h.mode="no-cors"),fetch(d,h).then(()=>{!function(e){let t=0;const n=setInterval(()=>{if(t++,t>=300)return clearInterval(n),void c();const o=function(e,t){const n=e.replace(/\/preview\/(draft|live)/g,"").replace(/\/{2,}/g,"/").replace(/\/$/,"").split("/").filter(Boolean);return`${n.length>2?`/${n.slice(0,n.length-2).join("/")}`:""}/upload-status/${t}`}(window.location.pathname,e);fetch(o,{headers:{Accept:"application/json"}}).then(e=>{if(!e.ok)throw new Error("Network response was not ok");return e.json()}).then(e=>{"ready"===e.uploadStatus&&(clearInterval(n),c())}).catch(()=>{clearInterval(n),c()})},1e3)}(r)}).catch(()=>(n.disabled=!1,o.disabled=!1,u("There was a problem uploading the file",i,n),null))}(e,h,i,r,a,f))})}function h(e,t={}){var n;const o=e.getAttribute("tabindex");function i(){var n;null==(n=t.onBlur)||n.call(e),o||e.removeAttribute("tabindex")}o||e.setAttribute("tabindex","-1"),e.addEventListener("focus",function(){e.addEventListener("blur",i,{once:!0})},{once:!0}),null==(n=t.onBeforeFocus)||n.call(e),e.focus()}function m(e=document.body){return!!e&&e.classList.contains("govuk-frontend-supported")}function p(e){return!!e&&"object"==typeof e&&!function(e){return Array.isArray(e)}(e)}function f(e){return!!e&&(e instanceof Element||e instanceof Document)}function g(e,t){return`${e.moduleName}: ${t}`}class v extends Error{constructor(...e){super(...e),this.name="GOVUKFrontendError"}}class b extends v{constructor(e=document.body){const t="noModule"in HTMLScriptElement.prototype?'GOV.UK Frontend initialised without `<body class="govuk-frontend-supported">` from template `<script>` snippet':"GOV.UK Frontend is not supported in this browser";super(e?t:'GOV.UK Frontend initialised without `<script type="module">`'),this.name="SupportError"}}class y extends v{constructor(...e){super(...e),this.name="ConfigError"}}class $ extends v{constructor(e){let t="string"==typeof e?e:"";if(p(e)){const{component:n,identifier:o,element:i,expectedType:r}=e;t=o,t+=i?` is not of type ${null!=r?r:"HTMLElement"}`:" not found",n&&(t=g(n,t))}super(t),this.name="ElementError"}}class k extends v{constructor(e){super("string"==typeof e?e:g(e,"Root element (`$root`) already initialised")),this.name="InitError"}}class w{get $root(){return this._$root}constructor(e){this._$root=void 0;const t=this.constructor;if("string"!=typeof t.moduleName)throw new k("`moduleName` not defined in component");if(!(e instanceof t.elementType))throw new $({element:e,component:t,identifier:"Root element (`$root`)",expectedType:t.elementType.name});this._$root=e,t.checkSupport(),this.checkInitialised();const n=t.moduleName;this.$root.setAttribute(`data-${n}-init`,"")}checkInitialised(){const e=this.constructor,t=e.moduleName;if(t&&function(e,t){return e instanceof HTMLElement&&e.hasAttribute(`data-${t}-init`)}(this.$root,t))throw new k(e)}static checkSupport(){if(!m())throw new b}}w.elementType=HTMLElement;const E=Symbol.for("configOverride");class C extends w{[E](e){return{}}get config(){return this._config}constructor(e,t){super(e),this._config=void 0;const n=this.constructor;if(!p(n.defaults))throw new y(g(n,"Config passed as parameter into constructor but no defaults defined"));const o=function(e,t){if(!p(e.schema))throw new y(g(e,"Config passed as parameter into constructor but no schema defined"));const n={},o=Object.entries(e.schema.properties);for(const i of o){const[o,r]=i,s=o.toString();s in t&&(n[s]=x(t[s],r)),"object"===(null==r?void 0:r.type)&&(n[s]=A(e.schema,t,o))}return n}(n,this._$root.dataset);this._config=L(n.defaults,null!=t?t:{},this[E](o),o)}}function x(e,t){const n=e?e.trim():"";let o,i=null==t?void 0:t.type;switch(i||(["true","false"].includes(n)&&(i="boolean"),n.length>0&&isFinite(Number(n))&&(i="number")),i){case"boolean":o="true"===n;break;case"number":o=Number(n);break;default:o=e}return o}function L(...e){const t={};for(const n of e)for(const e of Object.keys(n)){const o=t[e],i=n[e];p(o)&&p(i)?t[e]=L(o,i):t[e]=i}return t}function A(e,t,n){const o=e.properties[n];if("object"!==(null==o?void 0:o.type))return;const i={[n]:{}};for(const[r,s]of Object.entries(t)){let e=i;const t=r.split(".");for(const[o,i]of t.entries())p(e)&&(o<t.length-1?(p(e[i])||(e[i]={}),e=e[i]):r!==n&&(e[i]=x(s)))}return i[n]}function S(e,t,n){let o;const i=function(e){let t,n=document;if(p(e)){const o=e;(f(o.scope)||null===o.scope)&&(n=o.scope),"function"==typeof o.onError&&(t=o.onError)}return f(e)?n=e:null===e?n=null:"function"==typeof e&&(t=e),{scope:n,onError:t}}(n);try{var r;if(!m())throw new b;if(null===i.scope)throw new $({element:i.scope,component:e,identifier:"Scope element (`$scope`)"});o=null==(r=i.scope)?void 0:r.querySelectorAll(`[data-module="${e.moduleName}"]`)}catch(s){return i.onError?i.onError(s,{component:e,config:t}):console.log(s),[]}return Array.from(null!=o?o:[]).map(n=>{try{return void 0!==t?new e(n,t):new e(n)}catch(s){return i.onError?i.onError(s,{element:n,component:e,config:t}):console.log(s),null}}).filter(Boolean)}class I extends C{constructor(e,t={}){super(e,t),this.debounceFormSubmitTimer=null,this.$root.addEventListener("keydown",e=>this.handleKeyDown(e)),this.$root.addEventListener("click",e=>this.debounce(e))}handleKeyDown(e){const t=e.target;" "===e.key&&t instanceof HTMLElement&&"button"===t.getAttribute("role")&&(e.preventDefault(),t.click())}debounce(e){if(this.config.preventDoubleClick)return this.debounceFormSubmitTimer?(e.preventDefault(),!1):void(this.debounceFormSubmitTimer=window.setTimeout(()=>{this.debounceFormSubmitTimer=null},1e3))}}function T(e,t){const n=e.closest(`[${t}]`);return n?n.getAttribute(t):null}I.moduleName="govuk-button",I.defaults=Object.freeze({preventDoubleClick:!1}),I.schema=Object.freeze({properties:{preventDoubleClick:{type:"boolean"}}});class M{constructor(e={},t={}){var n;this.translations=void 0,this.locale=void 0,this.translations=e,this.locale=null!=(n=t.locale)?n:document.documentElement.lang||"en"}t(e,t){if(!e)throw new Error("i18n: lookup key missing");let n=this.translations[e];if("number"==typeof(null==t?void 0:t.count)&&p(n)){const o=n[this.getPluralSuffix(e,t.count)];o&&(n=o)}if("string"==typeof n){if(n.match(/%{(.\S+)}/)){if(!t)throw new Error("i18n: cannot replace placeholders in string if no option data provided");return this.replacePlaceholders(n,t)}return n}return e}replacePlaceholders(e,t){const n=Intl.NumberFormat.supportedLocalesOf(this.locale).length?new Intl.NumberFormat(this.locale):void 0;return e.replace(/%{(.\S+)}/g,function(e,o){if(Object.prototype.hasOwnProperty.call(t,o)){const e=t[o];return!1===e||"number"!=typeof e&&"string"!=typeof e?"":"number"==typeof e?n?n.format(e):`${e}`:e}throw new Error(`i18n: no data found to replace ${e} placeholder in string`)})}hasIntlPluralRulesSupport(){return Boolean("PluralRules"in window.Intl&&Intl.PluralRules.supportedLocalesOf(this.locale).length)}getPluralSuffix(e,t){if(t=Number(t),!isFinite(t))return"other";const n=this.translations[e],o=this.hasIntlPluralRulesSupport()?new Intl.PluralRules(this.locale).select(t):"other";if(p(n)){if(o in n)return o;if("other"in n)return console.warn(`i18n: Missing plural form ".${o}" for "${this.locale}" locale. Falling back to ".other".`),"other"}throw new Error(`i18n: Plural form ".other" is required for "${this.locale}" locale`)}}class O extends C{[E](e){let t={};return("maxwords"in e||"maxlength"in e)&&(t={maxlength:void 0,maxwords:void 0}),t}constructor(e,t={}){var n,o;super(e,t),this.$textarea=void 0,this.$visibleCountMessage=void 0,this.$screenReaderCountMessage=void 0,this.lastInputTimestamp=null,this.lastInputValue="",this.valueChecker=null,this.i18n=void 0,this.maxLength=void 0;const i=this.$root.querySelector(".govuk-js-character-count");if(!(i instanceof HTMLTextAreaElement||i instanceof HTMLInputElement))throw new $({component:O,element:i,expectedType:"HTMLTextareaElement or HTMLInputElement",identifier:"Form field (`.govuk-js-character-count`)"});const r=function(e,t){const n=[];for(const[o,i]of Object.entries(e)){const e=[];if(Array.isArray(i)){for(const{required:n,errorMessage:o}of i)n.every(e=>!!t[e])||e.push(o);"anyOf"!==o||i.length-e.length>=1||n.push(...e)}}return n}(O.schema,this.config);if(r[0])throw new y(g(O,r[0]));this.i18n=new M(this.config.i18n,{locale:T(this.$root,"lang")}),this.maxLength=null!=(n=null!=(o=this.config.maxwords)?o:this.config.maxlength)?n:1/0,this.$textarea=i;const s=`${this.$textarea.id}-info`,a=document.getElementById(s);if(!a)throw new $({component:O,element:a,identifier:`Count message (\`id="${s}"\`)`});this.$errorMessage=this.$root.querySelector(".govuk-error-message"),a.textContent.match(/^\s*$/)&&(a.textContent=this.i18n.t("textareaDescription",{count:this.maxLength})),this.$textarea.insertAdjacentElement("afterend",a);const l=document.createElement("div");l.className="govuk-character-count__sr-status govuk-visually-hidden",l.setAttribute("aria-live","polite"),this.$screenReaderCountMessage=l,a.insertAdjacentElement("afterend",l);const u=document.createElement("div");u.className=a.className,u.classList.add("govuk-character-count__status"),u.setAttribute("aria-hidden","true"),this.$visibleCountMessage=u,a.insertAdjacentElement("afterend",u),a.classList.add("govuk-visually-hidden"),this.$textarea.removeAttribute("maxlength"),this.bindChangeEvents(),window.addEventListener("pageshow",()=>this.updateCountMessage()),this.updateCountMessage()}bindChangeEvents(){this.$textarea.addEventListener("keyup",()=>this.handleKeyUp()),this.$textarea.addEventListener("focus",()=>this.handleFocus()),this.$textarea.addEventListener("blur",()=>this.handleBlur())}handleKeyUp(){this.updateVisibleCountMessage(),this.lastInputTimestamp=Date.now()}handleFocus(){this.valueChecker=window.setInterval(()=>{(!this.lastInputTimestamp||Date.now()-500>=this.lastInputTimestamp)&&this.updateIfValueChanged()},1e3)}handleBlur(){this.valueChecker&&window.clearInterval(this.valueChecker)}updateIfValueChanged(){this.$textarea.value!==this.lastInputValue&&(this.lastInputValue=this.$textarea.value,this.updateCountMessage())}updateCountMessage(){this.updateVisibleCountMessage(),this.updateScreenReaderCountMessage()}updateVisibleCountMessage(){const e=this.maxLength-this.count(this.$textarea.value)<0;this.$visibleCountMessage.classList.toggle("govuk-character-count__message--disabled",!this.isOverThreshold()),this.$errorMessage||this.$textarea.classList.toggle("govuk-textarea--error",e),this.$visibleCountMessage.classList.toggle("govuk-error-message",e),this.$visibleCountMessage.classList.toggle("govuk-hint",!e),this.$visibleCountMessage.textContent=this.getCountMessage()}updateScreenReaderCountMessage(){this.isOverThreshold()?this.$screenReaderCountMessage.removeAttribute("aria-hidden"):this.$screenReaderCountMessage.setAttribute("aria-hidden","true"),this.$screenReaderCountMessage.textContent=this.getCountMessage()}count(e){var t;return this.config.maxwords?(null!=(t=e.match(/\S+/g))?t:[]).length:e.length}getCountMessage(){const e=this.maxLength-this.count(this.$textarea.value),t=this.config.maxwords?"words":"characters";return this.formatCountMessage(e,t)}formatCountMessage(e,t){if(0===e)return this.i18n.t(`${t}AtLimit`);const n=e<0?"OverLimit":"UnderLimit";return this.i18n.t(`${t}${n}`,{count:Math.abs(e)})}isOverThreshold(){if(!this.config.threshold)return!0;const e=this.count(this.$textarea.value);return this.maxLength*this.config.threshold/100<=e}}O.moduleName="govuk-character-count",O.defaults=Object.freeze({threshold:0,i18n:{charactersUnderLimit:{one:"You have %{count} character remaining",other:"You have %{count} characters remaining"},charactersAtLimit:"You have 0 characters remaining",charactersOverLimit:{one:"You have %{count} character too many",other:"You have %{count} characters too many"},wordsUnderLimit:{one:"You have %{count} word remaining",other:"You have %{count} words remaining"},wordsAtLimit:"You have 0 words remaining",wordsOverLimit:{one:"You have %{count} word too many",other:"You have %{count} words too many"},textareaDescription:{other:""}}}),O.schema=Object.freeze({properties:{i18n:{type:"object"},maxwords:{type:"number"},maxlength:{type:"number"},threshold:{type:"number"}},anyOf:[{required:["maxwords"],errorMessage:'Either "maxlength" or "maxwords" must be provided'},{required:["maxlength"],errorMessage:'Either "maxlength" or "maxwords" must be provided'}]});class _ extends w{constructor(e){super(e),this.$inputs=void 0;const t=this.$root.querySelectorAll('input[type="checkbox"]');if(!t.length)throw new $({component:_,identifier:'Form inputs (`<input type="checkbox">`)'});this.$inputs=t,this.$inputs.forEach(e=>{const t=e.getAttribute("data-aria-controls");if(t){if(!document.getElementById(t))throw new $({component:_,identifier:`Conditional reveal (\`id="${t}"\`)`});e.setAttribute("aria-controls",t),e.removeAttribute("data-aria-controls")}}),window.addEventListener("pageshow",()=>this.syncAllConditionalReveals()),this.syncAllConditionalReveals(),this.$root.addEventListener("click",e=>this.handleClick(e))}syncAllConditionalReveals(){this.$inputs.forEach(e=>this.syncConditionalRevealWithInputState(e))}syncConditionalRevealWithInputState(e){const t=e.getAttribute("aria-controls");if(!t)return;const n=document.getElementById(t);if(null!=n&&n.classList.contains("govuk-checkboxes__conditional")){const t=e.checked;e.setAttribute("aria-expanded",t.toString()),n.classList.toggle("govuk-checkboxes__conditional--hidden",!t)}}unCheckAllInputsExcept(e){document.querySelectorAll(`input[type="checkbox"][name="${e.name}"]`).forEach(t=>{e.form===t.form&&t!==e&&(t.checked=!1,this.syncConditionalRevealWithInputState(t))})}unCheckExclusiveInputs(e){document.querySelectorAll(`input[data-behaviour="exclusive"][type="checkbox"][name="${e.name}"]`).forEach(t=>{e.form===t.form&&(t.checked=!1,this.syncConditionalRevealWithInputState(t))})}handleClick(e){const t=e.target;t instanceof HTMLInputElement&&"checkbox"===t.type&&(t.getAttribute("aria-controls")&&this.syncConditionalRevealWithInputState(t),t.checked&&("exclusive"===t.getAttribute("data-behaviour")?this.unCheckAllInputsExcept(t):this.unCheckExclusiveInputs(t)))}}_.moduleName="govuk-checkboxes";class j extends C{constructor(e,t={}){super(e,t),this.config.disableAutoFocus||h(this.$root),this.$root.addEventListener("click",e=>this.handleClick(e))}handleClick(e){const t=e.target;t&&this.focusTarget(t)&&e.preventDefault()}focusTarget(e){if(!(e instanceof HTMLAnchorElement))return!1;const t=e.hash.replace("#","");if(!t)return!1;const n=document.getElementById(t);if(!n)return!1;const o=this.getAssociatedLegendOrLabel(n);return!!o&&(o.scrollIntoView(),n.focus({preventScroll:!0}),!0)}getAssociatedLegendOrLabel(e){var t;const n=e.closest("fieldset");if(n){const t=n.getElementsByTagName("legend");if(t.length){const n=t[0];if(e instanceof HTMLInputElement&&("checkbox"===e.type||"radio"===e.type))return n;const o=n.getBoundingClientRect().top,i=e.getBoundingClientRect();if(i.height&&window.innerHeight&&i.top+i.height-o<window.innerHeight/2)return n}}return null!=(t=document.querySelector(`label[for='${e.getAttribute("id")}']`))?t:e.closest("label")}}j.moduleName="govuk-error-summary",j.defaults=Object.freeze({disableAutoFocus:!1}),j.schema=Object.freeze({properties:{disableAutoFocus:{type:"boolean"}}});class N extends w{constructor(e){super(e),this.$menuButton=void 0,this.$menu=void 0,this.menuIsOpen=!1,this.mql=null;const t=this.$root.querySelector(".govuk-js-header-toggle");if(!t)return this;this.$root.classList.add("govuk-header--with-js-navigation");const n=t.getAttribute("aria-controls");if(!n)throw new $({component:N,identifier:'Navigation button (`<button class="govuk-js-header-toggle">`) attribute (`aria-controls`)'});const o=document.getElementById(n);if(!o)throw new $({component:N,element:o,identifier:`Navigation (\`<ul id="${n}">\`)`});this.$menu=o,this.$menuButton=t,this.setupResponsiveChecks(),this.$menuButton.addEventListener("click",()=>this.handleMenuButtonClick())}setupResponsiveChecks(){const e=function(){const e="--govuk-breakpoint-desktop";return{property:e,value:window.getComputedStyle(document.documentElement).getPropertyValue(e)||void 0}}();if(!e.value)throw new $({component:N,identifier:`CSS custom property (\`${e.property}\`) on pseudo-class \`:root\``});this.mql=window.matchMedia(`(min-width: ${e.value})`),"addEventListener"in this.mql?this.mql.addEventListener("change",()=>this.checkMode()):this.mql.addListener(()=>this.checkMode()),this.checkMode()}checkMode(){this.mql&&this.$menu&&this.$menuButton&&(this.mql.matches?(this.$menu.removeAttribute("hidden"),this.$menuButton.setAttribute("hidden","")):(this.$menuButton.removeAttribute("hidden"),this.$menuButton.setAttribute("aria-expanded",this.menuIsOpen.toString()),this.menuIsOpen?this.$menu.removeAttribute("hidden"):this.$menu.setAttribute("hidden","")))}handleMenuButtonClick(){this.menuIsOpen=!this.menuIsOpen,this.checkMode()}}N.moduleName="govuk-header";class D extends C{constructor(e,t={}){super(e,t),this.$input=void 0,this.$button=void 0,this.$status=void 0,this.i18n=void 0,this.id=void 0,this.$announcements=void 0,this.enteredAnotherElement=void 0;const n=this.$root.querySelector("input");if(null===n)throw new $({component:D,identifier:'File inputs (`<input type="file">`)'});if("file"!==n.type)throw new $(g(D,'File input (`<input type="file">`) attribute (`type`) is not `file`'));if(this.$input=n,!this.$input.id)throw new $({component:D,identifier:'File input (`<input type="file">`) attribute (`id`)'});this.id=this.$input.id,this.i18n=new M(this.config.i18n,{locale:T(this.$root,"lang")});const o=this.findLabel();o.id||(o.id=`${this.id}-label`),this.$input.id=`${this.id}-input`,this.$input.setAttribute("hidden","true");const i=document.createElement("button");i.classList.add("govuk-file-upload-button"),i.type="button",i.id=this.id,i.classList.add("govuk-file-upload-button--empty");const r=this.$input.getAttribute("aria-describedby");r&&i.setAttribute("aria-describedby",r);const s=document.createElement("span");s.className="govuk-body govuk-file-upload-button__status",s.setAttribute("aria-live","polite"),s.innerText=this.i18n.t("noFileChosen"),i.appendChild(s);const a=document.createElement("span");a.className="govuk-visually-hidden",a.innerText=", ",a.id=`${this.id}-comma`,i.appendChild(a);const l=document.createElement("span");l.className="govuk-file-upload-button__pseudo-button-container";const u=document.createElement("span");u.className="govuk-button govuk-button--secondary govuk-file-upload-button__pseudo-button",u.innerText=this.i18n.t("chooseFilesButton"),l.appendChild(u),l.insertAdjacentText("beforeend"," ");const c=document.createElement("span");c.className="govuk-body govuk-file-upload-button__instruction",c.innerText=this.i18n.t("dropInstruction"),l.appendChild(c),i.appendChild(l),i.setAttribute("aria-labelledby",`${o.id} ${a.id} ${i.id}`),i.addEventListener("click",this.onClick.bind(this)),i.addEventListener("dragover",e=>{e.preventDefault()}),this.$root.insertAdjacentElement("afterbegin",i),this.$input.setAttribute("tabindex","-1"),this.$input.setAttribute("aria-hidden","true"),this.$button=i,this.$status=s,this.$input.addEventListener("change",this.onChange.bind(this)),this.updateDisabledState(),this.observeDisabledState(),this.$announcements=document.createElement("span"),this.$announcements.classList.add("govuk-file-upload-announcements"),this.$announcements.classList.add("govuk-visually-hidden"),this.$announcements.setAttribute("aria-live","assertive"),this.$root.insertAdjacentElement("afterend",this.$announcements),this.$button.addEventListener("drop",this.onDrop.bind(this)),document.addEventListener("dragenter",this.updateDropzoneVisibility.bind(this)),document.addEventListener("dragenter",()=>{this.enteredAnotherElement=!0}),document.addEventListener("dragleave",()=>{this.enteredAnotherElement||this.$button.disabled||(this.hideDraggingState(),this.$announcements.innerText=this.i18n.t("leftDropZone")),this.enteredAnotherElement=!1})}updateDropzoneVisibility(e){this.$button.disabled||e.target instanceof Node&&(this.$root.contains(e.target)?e.dataTransfer&&this.canDrop(e.dataTransfer)&&(this.$button.classList.contains("govuk-file-upload-button--dragging")||(this.showDraggingState(),this.$announcements.innerText=this.i18n.t("enteredDropZone"))):this.$button.classList.contains("govuk-file-upload-button--dragging")&&(this.hideDraggingState(),this.$announcements.innerText=this.i18n.t("leftDropZone")))}showDraggingState(){this.$button.classList.add("govuk-file-upload-button--dragging")}hideDraggingState(){this.$button.classList.remove("govuk-file-upload-button--dragging")}onDrop(e){e.preventDefault(),e.dataTransfer&&this.canFillInput(e.dataTransfer)&&(this.$input.files=e.dataTransfer.files,this.$input.dispatchEvent(new CustomEvent("change")),this.hideDraggingState())}canFillInput(e){return this.matchesInputCapacity(e.files.length)}canDrop(e){return e.items.length?this.matchesInputCapacity(function(e){let t=0;for(let n=0;n<e.length;n++)"file"===e[n].kind&&t++;return t}(e.items)):!e.types.length||e.types.includes("Files")}matchesInputCapacity(e){return this.$input.multiple?e>0:1===e}onChange(){const e=this.$input.files.length;0===e?(this.$status.innerText=this.i18n.t("noFileChosen"),this.$button.classList.add("govuk-file-upload-button--empty")):(this.$status.innerText=1===e?this.$input.files[0].name:this.i18n.t("multipleFilesChosen",{count:e}),this.$button.classList.remove("govuk-file-upload-button--empty"))}findLabel(){const e=document.querySelector(`label[for="${this.$input.id}"]`);if(!e)throw new $({component:D,identifier:`Field label (\`<label for=${this.$input.id}>\`)`});return e}onClick(){this.$input.click()}observeDisabledState(){new MutationObserver(e=>{for(const t of e)"attributes"===t.type&&"disabled"===t.attributeName&&this.updateDisabledState()}).observe(this.$input,{attributes:!0})}updateDisabledState(){this.$button.disabled=this.$input.disabled,this.$root.classList.toggle("govuk-drop-zone--disabled",this.$button.disabled)}}D.moduleName="govuk-file-upload",D.defaults=Object.freeze({i18n:{chooseFilesButton:"Choose file",dropInstruction:"or drop file",noFileChosen:"No file chosen",multipleFilesChosen:{one:"%{count} file chosen",other:"%{count} files chosen"},enteredDropZone:"Entered drop zone",leftDropZone:"Left drop zone"}}),D.schema=Object.freeze({properties:{i18n:{type:"object"}}});class F extends C{constructor(e,t={}){super(e,t),"alert"!==this.$root.getAttribute("role")||this.config.disableAutoFocus||h(this.$root)}}F.moduleName="govuk-notification-banner",F.defaults=Object.freeze({disableAutoFocus:!1}),F.schema=Object.freeze({properties:{disableAutoFocus:{type:"boolean"}}});class q extends w{constructor(e){super(e),this.$inputs=void 0;const t=this.$root.querySelectorAll('input[type="radio"]');if(!t.length)throw new $({component:q,identifier:'Form inputs (`<input type="radio">`)'});this.$inputs=t,this.$inputs.forEach(e=>{const t=e.getAttribute("data-aria-controls");if(t){if(!document.getElementById(t))throw new $({component:q,identifier:`Conditional reveal (\`id="${t}"\`)`});e.setAttribute("aria-controls",t),e.removeAttribute("data-aria-controls")}}),window.addEventListener("pageshow",()=>this.syncAllConditionalReveals()),this.syncAllConditionalReveals(),this.$root.addEventListener("click",e=>this.handleClick(e))}syncAllConditionalReveals(){this.$inputs.forEach(e=>this.syncConditionalRevealWithInputState(e))}syncConditionalRevealWithInputState(e){const t=e.getAttribute("aria-controls");if(!t)return;const n=document.getElementById(t);if(null!=n&&n.classList.contains("govuk-radios__conditional")){const t=e.checked;e.setAttribute("aria-expanded",t.toString()),n.classList.toggle("govuk-radios__conditional--hidden",!t)}}handleClick(e){const t=e.target;if(!(t instanceof HTMLInputElement)||"radio"!==t.type)return;const n=document.querySelectorAll('input[type="radio"][aria-controls]'),o=t.form,i=t.name;n.forEach(e=>{const t=e.form===o;e.name===i&&t&&this.syncConditionalRevealWithInputState(e)})}}q.moduleName="govuk-radios";class B extends w{constructor(e){var t;super(e);const n=this.$root.hash,o=null!=(t=this.$root.getAttribute("href"))?t:"";if(this.$root.origin!==window.location.origin||this.$root.pathname!==window.location.pathname)return;const i=n.replace("#","");if(!i)throw new $(`Skip link: Target link (\`href="${o}"\`) has no hash fragment`);const r=document.getElementById(i);if(!r)throw new $({component:B,element:r,identifier:`Target content (\`id="${i}"\`)`});this.$root.addEventListener("click",()=>h(r,{onBeforeFocus(){r.classList.add("govuk-skip-link-focused-element")},onBlur(){r.classList.remove("govuk-skip-link-focused-element")}}))}}B.elementType=HTMLAnchorElement,B.moduleName="govuk-skip-link";const R=function(){S(I),S(O),S(_),S(j),S(N),S(D),S(F),S(q),S(B)},P=function(){const e=document.querySelectorAll('[data-module="govuk-accessible-autocomplete"]');e.length&&n.e(7).then(n.t.bind(n,60,19)).then(t=>{const{default:n}=t;e.forEach(e=>function(e,t){if(!e)return;const n={id:e.id,selectElement:e};t(n);const o=document.querySelector(`#${n.id}`),i=[...e.options].map(e=>e.text);null==o||o.addEventListener("blur",()=>{o.value&&i.includes(o.value)||(e.value="")})}(e.querySelector("select"),n.enhanceSelectElement))}).catch(console.error)},H=function(){const e=document.querySelectorAll(".prevent-multiple-clicks");for(const t of e)t.addEventListener("click",i),t.addEventListener("keydown",r)},V=function(){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d()},z=function(){if(window.opener){const e=document.querySelector(".js-preview-banner-close");null==e||e.removeAttribute("hidden"),null==e||e.addEventListener("click",e=>{e.preventDefault(),window.close()})}};function U(){R(),P(),H(),V(),z()}}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e](n,n.exports,r),n.exports}r.m=o,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&o&&n;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>n[e]);return s.default=()=>n,r.d(i,s),i},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"javascripts/vendor/accessible-autocomplete.min.js",r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,a;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var c=l[u];if(c.getAttribute("src")==e){s=c;break}}s||(a=!0,(s=document.createElement("script")).type="module",s.charset="utf-8",r.nc&&s.setAttribute("nonce",r.nc),s.src=e),n[e]=[t];var d=(t,o)=>{s.onerror=s.onload=null,clearTimeout(h);var i=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach(e=>e(o)),t)return t(o)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),a&&document.head.appendChild(s)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;if("string"==typeof import.meta.url&&(e=import.meta.url),!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e+"../"})(),(()=>{var e={543:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var i=new Promise((n,i)=>o=e[t]=[n,i]);n.push(o[2]=i);var s=r.p+r.u(t),a=new Error;r.l(s,n=>{if(r.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,o[1](a)}},"chunk-"+t,t)}};var t=(t,n)=>{var o,i,s=n[0],a=n[1],l=n[2],u=0;if(s.some(t=>0!==e[t])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);l&&l(r)}for(t&&t(n);u<s.length;u++)i=s[u],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(0,r(565).Yi)();
|
|
3
3
|
//# sourceMappingURL=application.min.js.map
|