1!function(){"use strict";function e(e){e.classList.toggle("is-first-option-selected",0===e.selectedIndex)}const t=new Date,n=t.getFullYear(),a=t.getMonth()+1,l=t.getDate();function o(e,t){const n=document.createElement("option");n.value="",n.textContent=t,n.selected=!0,e.appendChild(n)}function u(e){return $("#form-registration").length&&e===n?a:12}function r(e,t){const o=new Date(e,t,0).getDate();return $("#form-registration").length&&e===n&&t===a?l:o}function c(e){e.innerHTML="",o(e);for(let t=$("#form-registration").length?n:n+10;t>=1900;t--){const n=document.createElement("option");n.value=t,n.textContent=t,e.appendChild(n)}}function i(e,t){const n=e.getAttribute("data-months-name").split(","),a=t?u(t):12;e.innerHTML="",o(e);for(let t=1;t<=a;t++){const a=document.createElement("option");a.value=t,a.textContent=n[t-1],e.appendChild(a)}}function s(e,t,n){if(e.innerHTML="",o(e),!t||!n){for(let t=1;t<=31;t++){const n=document.createElement("option");n.value=t,n.textContent=t,e.appendChild(n)}return}const a=r(t,n);for(let t=1;t<=a;t++){const n=document.createElement("option");n.value=t,n.textContent=t,e.appendChild(n)}}function d(e,t,n,a){if(!n.value||!t.value||!e.value)return void(a.value="");const l=(o=e.value,u=t.value,r=n.value,`${String(o).padStart(2,"0")}-${String(u).padStart(2,"0")}-${r}`);var o,u,r;a.value=l.split("-").reverse().join("-")}$(()=>{const{daySelect:t,monthSelect:n,yearSelect:a,dateInput:l}={daySelect:document.getElementById("day"),monthSelect:document.getElementById("month"),yearSelect:document.getElementById("year"),dateInput:document.querySelector("[data-js='custom-date-input']")};function o(){e(t),e(n),e(a),d(t,n,a,l)}t&&n&&a&&l&&(c(a),i(n,null),s(t,null,null),a.addEventListener("change",()=>{const e=parseInt(n.value,10)||null,l=parseInt(t.value,10)||null;i(n,parseInt(a.value,10)),s(t,parseInt(a.value,10),e),e&&e<=u(parseInt(a.value,10))?n.value=e:n.value="",l&&e&&l<=r(parseInt(a.value,10),e)?t.value=l:t.value="",o()}),n.addEventListener("change",()=>{const e=parseInt(t.value,10)||null,l=parseInt(a.value,10)||null,u=parseInt(n.value,10)||null;if(s(t,l,u),e){let n;l?n=r(l,u):u&&(n=new Date(2024,u,0).getDate()),t.value=e<=n?e:""}o()}),t.addEventListener("change",o),o())})}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.