"use strict";var smsflag=!1,smsshowfun=null,hasscroll=!1,isweixin=function(){return"micromessenger"==navigator.useragent.tolowercase().match(/micromessenger/i)};function getmeta(e){for(var t,n=document.getelementsbytagname("meta"),a=0;t=n[a++];)if(t.getattribute("name")&&t.getattribute("name").tolowercase()===e)return encodeuricomponent(t.content)}function gray(){$require(["cmsajax"],function(e){var t=window.location.origin+"/ndesigner/api/gray";e.cmsajax.postjson(t).then(function(e){200==e.code&&($("html")[0].style="filter:progid:dximagetransform.microsoft.basiclmage(grayscale=1);-webkit-filter:grayscale(100%);")})})}function festival(){isfrontenv()&&$require(["cmsajax"],function(e){e.cmsajax.get("/fwebapi/cms/lowcode/festivalpendant/getsettings").then(function(e){var t;e.data&&200==e.data.code&&e.data.settings&&(1==(t=e.data.settings).location&&window.pageobj&&1!=window.pageobj.ishomepage||(e=t.showtime&&2==t.showtime.length&&t.nowtime>=t.showtime[0]&&t.nowtime<=t.showtime[1]||!t.showtime||0==t.showtime.length,t.isopen&&e&&$require(["/npublic/commonjs/restival.js"],function(e){e.init(t)})))})})}function smartserviceinit(){isfrontenv()&&$(window).on("mousemove scroll touchmove tap click keydown",function(){var a;hasscroll||(hasscroll=!0,a=function(i){$require(["css!/npublic/commonjs/smartservice/t.css","/npublic/commonjs/smartservice.js"],function(e,t){var n={};try{n=json.parse(i.setting.colorlayout)}catch(e){}1==n.entrancelocation&&(a='\n \n '),$("body").append(a),$(".smarticon").hover(function(){$(this).css({"background-color":n.windowcolor,color:"#fff"})},function(){$(this).css({"background-color":"#fff",color:n.windowcolor})})),$(document).on("click","[smartservice]",o);var a=sessionstorage.getitem("smartserviceclose");function o(){if(smsshowfun)return 0<$(".smartservice.show").length?void smsshowfun.closedialog():void(smsflag?smsshowfun.showfun():smsshowfun());var e;smsflag=!0,smsshowfun=new t(i),window.zqsensorsobj&&(e={tenantid:tenant.tenantid,ibusinesscode:"01",ibusinessname:"智慧客服业务线",ibusinesscustid:localstorage.getitem("account_".concat(tenant.tenantid))},zqsensorsobj.track("smartservicewakeup",e))}1==n.showflag&&i&&"true"!=a&&o()})},$require(["cmsajax"],function(e){var t=__ce.smartserviceurl||"https://web-visitor.yun300.cn",n="".concat(t,"/visitormanager/intelligent/front/checkandregister?tenantid=").concat(tenant.tenantid,"&instance=").concat(tenant.bossproductinstance),t={account:localstorage.getitem("account_".concat(tenant.tenantid))};e.cmsajax.postjson(n,t).then(function(e){200==e.status&&e.data&&(localstorage.setitem("account_".concat(tenant.tenantid),e.data.account),a(e.data))})}))})}function preventfish(){var e=location.hostname,t=getcookie("realhost")||"";t&&t!=e&&(t="/repository/cheat?req="+e+"&rel="+t,$.ajax({url:t}))}function wxshare(){$require(["cmsajax","/npublic/commonjs/jweixin/jweixin.js","pl_util"],function(e){var t={pageurl:location.href,appcode:pageobj.appid,tid:pageobj.contenttype,pagetype:pageobj.pagetype,ishomepage:pageobj.ishomepage,pageid:pageobj.pageid,contentid:pageobj._detailid,pagename:pageobj.name};e.cmsajax.postjson("/fwebapi/cms/api/tdk/getwxshareinfo",t).then(function(e){var t,n,a,o=e.data;o.data&&(o=o.data),o.wxjsconfig&&(t=o.wxjsconfig,a=o.wxsharecontent,n={title:a.title,desc:a.desc,link:location.href,imgurl:(e=$.handledataimg(a.imgurl),o=104,a=-1