!function(e,i){"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){void 0===n&&(n=!1);var l=(o=null===(o=void 0===o?null:o)?i:o).querySelectorAll('script[src="'+e+'"]');if(0<l.length){if(!n)return void("function"==typeof t&&t());l.forEach(function(e){e.remove()})}(l=i.createElement("script")).src=e,o.head.appendChild(l),"function"==typeof t&&(l.onload=function(){t()})},loadStyleSheet:function(e,t,n){0<(n=null===(n=void 0===n?null:n)?i:n).querySelectorAll('link[href="'+e+'"]').length?"function"==typeof t&&t():((t=i.createElement("link")).href=e,t.type="text/css",t.rel="stylesheet",n.getElementsByTagName("head")[0].prepend(t))}};e.NRHelper=t}(window,document);

