(function () { function loadES5(src) { var el = document.createElement("script"); el.src = src; document.body.appendChild(el); } if (<%= modernRegex %>.test(navigator.userAgent)) { try { <% for (const entry of latestEntryJS) { %> new Function("import('<%= entry %>')")(); <% } %> } catch (err) { <% for (const entry of es5EntryJS) { %> loadES5("<%= entry %>"); <% } %> } } else { <% for (const entry of es5EntryJS) { %> loadES5("<%= entry %>"); <% } %> } })();