!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define("__JZ_UMD__",[],o):"object"==typeof exports?exports.__JZ_UMD__=o():(e.__JZ_UMD__=e.__JZ_UMD__||{},e.__JZ_UMD__["libs/comMethods"]=o())}(this,(function(){return window.Site||(window.Site={}),Site.addRequestPrefix=function(e){var o=e.newPath,t=e.oldPath,i=e.useNewPrefix,n=void 0===i||i,d=e.useNew,a=void 0!==d&&d,p="undefined"!=typeof Fai&&"undefined"!=typeof Fai.top&&"undefined"!=typeof Fai.top._curLanCode,_=p&&-1!==window.location.pathname.indexOf("/"+Fai.top._curLanCode+"/");return a||p&&n?_?"/"+Fai.top._curLanCode+"/"+o.replace(/^\/+/,""):"/"+o.replace(/^\/+/,""):t},Site.preprocessUrl=function(e){var o=e.path,t=e.oldPath,i=e.isUsePath,n=void 0===i||i,d=e.useNew,a=void 0!==d&&d,p="undefined"!=typeof Fai&&"undefined"!=typeof Fai.top&&"undefined"!=typeof Fai.top._curLanCode,_=p&&-1!==window.location.pathname.indexOf("/"+Fai.top._curLanCode+"/");return a||n&&p?_?"/"+Fai.top._curLanCode+"/"+o.replace(/^\/+/,""):"/"+o.replace(/^\/+/,""):t},{}}));