function isFormControlElement(e){return"INPUT"===e.nodeName||"SELECT"===e.nodeName||"TEXTAREA"===e.nodeName}function createNewEvent(e){var t;return"function"==typeof Event?t=new Event(e,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(e,!0,!1),t}function observeValueOfHTMLElement(e,t){var n=Object.getOwnPropertyDescriptor(e.prototype,"value"),o=n.set;n.set=function set(){o.apply(this,arguments),t({target:this})},Object.defineProperty(e.prototype,"value",n)}function cssBlankPseudoInit(e){var t={force:!1,replaceWith:"[blank]"};void 0!==e&&"force"in e&&(t.force=e.force),void 0!==e&&"replaceWith"in e&&(t.replaceWith=e.replaceWith);try{if(document.querySelector(":blank"),!t.force)return}catch(v){}var n,o,r,a,d,s,l,c=("."===(n=t.replaceWith)[0]?(o=n.slice(1),r=function remove(e){e.classList.remove(o)},a=function add(e){e.classList.add(o)}):(o=n.slice(1,-1),r=function remove(e){e.removeAttribute(o,"")},a=function add(e){e.setAttribute(o,"")}),function handleInputOrChangeEvent(e){var t=e.target;isFormControlElement(t)&&(("SELECT"===t.nodeName?t.options[t.selectedIndex]&&t.options[t.selectedIndex].value:t.value)?r(t):a(t))}),i=function bindEvents(){document.body&&(document.body.addEventListener("change",c),document.body.addEventListener("input",c))},u=function updateAllCandidates(){for(var e=document.querySelectorAll("input, select, textarea"),t=0;t