const selectableLocales=[{code:"en-US",label:"English"},{code:"fr",label:"Fran\xE7ais"},{code:"zh",label:"\u4E2D\u6587"},{code:"ru",label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},{code:"de",label:"Deutsch"},{code:"ja",label:"\u65E5\u672C\u8A9E"},{code:"es",label:"Espa\xF1ol"},{code:"ar",label:"\u0639\u0631\u0628\u064A"},{code:"da",label:"Dansk"},{code:"el",label:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC"},{code:"it",label:"Italiano"},{code:"pt",label:"Portugu\xEAs"},{code:"sv",label:"Svenska"},{code:"tr",label:"T\xFCrk\xE7e"},{code:"az",label:"Azeri"},{code:"bg",label:"Bulgarian"},{code:"bn",label:"Bengali"},{code:"fa",label:"Persian"},{code:"cs",label:"Czech"},{code:"fi",label:"Finnish"},{code:"ga",label:"Gaeilge"},{code:"he",label:"Hebrew"},{code:"hi",label:"Hindi"},{code:"hu",label:"Hungarian"},{code:"id",label:"Indonesia"},{code:"lv",label:"Latvian"},{code:"ms",label:"Malay"},{code:"nl",label:"Nederlands"},{code:"no",label:"Norsk"},{code:"pl",label:"Polskie"},{code:"ro",label:"Romanian"},{code:"th",label:"Thai"},{code:"uk",label:"Ukrainian"},{code:"vi",label:"Vietnamese"},{code:"lt",label:"Lithuanian"},{code:"ko",label:"Korean"}];function getSelectedLocaleIndex(){const a=window.location.pathname.split("/")[1],e=selectableLocales.findIndex(t=>t.code.localeCompare(a)==0);return e===-1?0:e}function addClass(a){a.preventDefault();var e=document.querySelector(".lanpopup");e.classList.toggle("show")}function removeClass(a){a.preventDefault();var e=document.querySelector(".lanpopup");e.classList.remove("show")}function loadContinerizeMenu(a){var e="(function(i, s, o, g, r, a, m) {i['ContainerizeMenuObject'] = r; i[r] = i[r] || function() {(i[r].q = i[r].q || []).push(arguments)}, i[r].l = 1 * new Date(); a = s.createElement(o),m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.append(a)})(window, document, 'script', 'https://menucdn.containerize.com/core/engine.min.js?v=1.0.1', '<0>-en');",t=window.location.hostname,o=document.createElement("script");o.setAttribute("language","javascript"),o.setAttribute("type","text/javascript"),t.match(/aspose.cloud$/i)?e=e.replace(/<0>/,"asposecloud"):t.match(/groupdocs.cloud$/i)?e=e.replace(/<0>/,"groupdocscloud"):t.match(/aspose.app$/i)?e=e.replace(/<0>/,"asposeapp"):t.match(/groupdocs.app$/i)?e=e.replace(/<0>/,"groupdocsapp"):t.match(/fileformat.ai$/i)?e=e.replace(/<0>/,"fileformat.ai"):t.match(/sheetize.cloud$/i)&&(e=e.replace(/<0>/,"sheetizecloud")),o.innerHTML=e.replace(/<1>/,a==="en-US"?"en":a),document?.head&&document.head.appendChild(o)}function initializeMenu(){const a=selectableLocales.splice(getSelectedLocaleIndex(),1)[0];loadContinerizeMenu(a.code),window.location.hostname.includes("fileformat.ai")&&document.body.classList.add("has-fixed-menu");const e=document.createElement("div");e.setAttribute("class","rowbox"),selectableLocales.forEach(s=>{const c=document.createElement("a");s.code==="en-US"?c.setAttribute("href",window.location.origin):c.setAttribute("href",window.location.origin+"/"+s.code),c.setAttribute("data-title",s.code),c.setAttribute("class","langmenu"),c.innerText=s.label;const i=document.createElement("div");i.setAttribute("class","col langbox"),i.appendChild(c),e.appendChild(i)});const t=document.createElement("div");t.setAttribute("class","modal-body"),t.appendChild(e);const o=document.createElement("a");o.setAttribute("class","lang-close"),o.setAttribute("id","lang-close");const d=document.createElement("div");d.setAttribute("class","modal-content"),d.setAttribute("style","background-color: #343a40"),d.appendChild(o),d.appendChild(t);const r=document.createElement("div");r.setAttribute("class","modal-dialog modal-dialog-centered modal-lg"),r.appendChild(d);const l=document.createElement("div");l.setAttribute("class","localemodal modal fade lanpopup"),l.setAttribute("id","langModal"),l.setAttribute("tabindex","-1"),l.setAttribute("aria-labelledby","langModalLabel"),l.setAttribute("data-nosnippet",""),l.setAttribute("aria-modal","true"),l.setAttribute("role","dialog"),l.setAttribute("style","display: none"),l.appendChild(r),document.body.prepend(l);const b=document.createElement("em");b.setAttribute("class","flag-us flag-24");const u=document.createElement("a");u.appendChild(b),u.innerHTML+=" "+a.label;var n=document.createElement("div");n.setAttribute("class","lang-selector"),n.setAttribute("id","locale"),n.setAttribute("style","display: none !important"),n.appendChild(u),n.addEventListener("click",addClass,!1),o.addEventListener("click",removeClass,!1),new MutationObserver((s,c)=>{const i=document.getElementById("DynabicMenuUserControls");if(i){i.prepend(n),n.setAttribute("id","localswitch"),n.setAttribute("style","visibility:visible"),c.disconnect();return}}).observe(document,{childList:!0,subtree:!0})}