!function(t){t.fn.checkbox=function(){t(this).each((function(){var e=t(this),a=e.attr("type");e.hide(),e.next("."+a+"-sign").remove();var n=t('<span class="'+a+'-sign" />').insertAfter(e);n.click((function(){n.closest("label").length||("radio"==e.attr("type")?e.prop("checked",!0).trigger("change").trigger("click"):e.prop("checked",!e.is(":checked")).trigger("change"))})),e.change((function(){t('input[name="'+e.attr("name")+'"]').each((function(){t(this).is(":checked")?t(this).next("."+t(this).attr("type")+"-sign").addClass("checked"):t(this).next("."+t(this).attr("type")+"-sign").removeClass("checked")}))})),e.is(":checked")?n.addClass("checked"):n.removeClass("checked")}))},t.fn.combobox=function(){t(this).each((function(){var e=t(this);e.insertBefore(e.parent(".combobox-wrapper")),e.next(".combobox-wrapper").remove(),e.css({opacity:0,position:"absolute",left:0,right:0,top:0,bottom:0});var a=t('<span class="combobox-wrapper" />').insertAfter(e),n=t('<span class="combobox-text" />').appendTo(a);t('<span class="combobox-button" />').appendTo(a);e.appendTo(a),e.change((function(){n.text(t("option:selected",e).text())})),n.text(t("option:selected",e).text()),e.comboWrap=a}))},t(":input").each((function(){const e=t(this);if(!e.attr("aria-label")){var a=e.attr("name");e.is("button")&&""===t.trim(e.text())&&!a&&(a=e.attr("type"),e.attr("aria-label",a)),a&&(e.closest("label").length&&""===t.trim(e.closest("label").text())&&!e.closest("label").attr("aria-label")?(e.closest("label").attr("aria-label",a),e.attr("aria-label",a)):e.attr("aria-label",a))}})),t("label").each((function(){const e=t(this);if(""===t.trim(e.text())){if(e.attr("aria-label"))return;let a=null;const n=e.attr("for");if(a=n?t("#"+n):e.find(":input").first(),a&&a.length>0){const t=a.attr("name");t&&e.attr("aria-label",t)}}}))}(jQuery);