!function(e,r){"use strict";var t={serializeform:function(e){var t,n=[];if("object"==typeof e&&"FORM"==e.nodeName)for(var o=e.elements.length,l=0;l<o;l++)if((t=e.elements[l]).name&&!t.disabled&&"button"!=t.type&&"file"!=t.type&&"hidden"!=t.type&&"reset"!=t.type&&"submit"!=t.type)if("select-multiple"==t.type)for(var i=e.elements[l].options.length,r=0;r<i;r++)t.options[r].selected&&(n[n.length]=encodeURIComponent(t.name)+"="+encodeURIComponent(t.options[r].value));else("checkbox"!=t.type&&"radio"!=t.type||t.checked)&&(n[n.length]=encodeURIComponent(t.name)+"="+encodeURIComponent(t.value));return n.join("&").replace(/%20/g,"+")},capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},loadScript:function(e,t,n,o,l){void 0===n&&(n=!1),void 0===l&&(l="");var i=(o=null===(o=void 0===o?null:o)?r:o).querySelectorAll('script[src="'+e+'"]');if(0<i.length){if(!n)return void("function"==typeof t&&t());i.forEach(function(e){e.remove()})}(i=r.createElement("script")).src=e,l&&(i.type=l),o.head.appendChild(i),"function"==typeof t&&(i.onload=function(){t()})},loadStyleSheet:function(e,t,n){0<(n=null===(n=void 0===n?null:n)?r:n).querySelectorAll('link[href="'+e+'"]').length?"function"==typeof t&&t():((t=r.createElement("link")).href=e,t.type="text/css",t.rel="stylesheet",n.getElementsByTagName("head")[0].prepend(t))}};e.NRHelper=t}(window,document);

