"use strict";function _defineProperty(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function scrollact(t,e,i){i=i||function(){},0<$(t).size()&&(e||0==e||(e=5),e=$(window).height()*e*.1,$(window).scrollTop()+e+0>=$(t).offset().top&&($(t).hasClass("showd")||($(t).addClass("showd"),i())))}function tabdiv(i,o,n,s,a,r){n=n||"click",s=s||1,a=a||300,r=r||function(){},"object"!=_typeof(i)&&(i=$(i)),"object"!=_typeof(o)&&(o=$(o)),o.each(function(t,e){$(this).attr("idx",t)}),i.each(function(t,e){$(this).bind(n,function(){i.removeClass("now"),$(this).addClass("now"),1==s&&o.filter("[idx!='"+t+"']").stop(!0,!0).hide(),2==s&&o.filter("[idx!='"+t+"']").stop(!0,!0).fadeOut(a),3==s&&(o.filter("[idx!='"+t+"']").removeClass("act"),o.filter("[idx='"+t+"']").addClass("act")),3!=s&&(o.filter("[idx='"+t+"']").stop(!0,!0).fadeIn(a,function(){}),r($(this)))})}),(0==i.parent().find(".now").size()?i.eq(0):i.eq(i.parent().find(".now").index())).trigger(n)}gsap.registerPlugin(InertiaPlugin,CSSRulePlugin,Draggable,ScrollToPlugin,ScrollTrigger,SplitText),$.utils={temp:{},ua:$.ua,is_phone:"mobile"==$.ua.device.type,is_tablet:"tablet"==$.ua.device.type,is_mobile:void 0!==$.ua.device.type,is_ios:"iOS"==$.ua.os.name,is_android:"Android"==$.ua.os.name,is_wechat:"WeChat"==$.ua.browser.name,is_cochat:"wxwork"==$.ua.ua.match(/WxWork/i),is_null:function(t){return null===t},is_undefined:function(t){return void 0===t},is_none:function(t){return this.is_null(t)||this.is_undefined(t)||""===t||"undefined"===t},is_true:function(t){return!0===t||"true"===t},is_false:function(t){return!1===t||"false"===t},is_array:function(t){return t instanceof Array},is_number:function(t){return(t instanceof Number||"number"==typeof t)&&!isNaN(t)},is_percentage:function(t){return this.is_string(t)&&"%"==t.slice(-1)},is_string:function(t){return(t instanceof String||"string"==typeof t)&&!this.is_none(t)&&!this.is_true(t)&&!this.is_false(t)},is_function:function(t){return t instanceof Function||"function"==typeof t},is_boolean:function(t){return t instanceof Boolean||"boolean"==typeof t||this.is_true(t)||this.is_false(t)},is_jquery:function(t){return t instanceof jQuery},is_object:function(t){return(t instanceof Object||"object"==_typeof(t))&&!this.is_null(t)&&!this.is_jquery(t)&&!this.is_array(t)&&!this.is_function(t)},is_dom:function(t){return this.is_object(t)&&t instanceof HTMLElement},fireCallbacks:function(t,e,i){if(e.length)for(var o=0;o');var e=$(window),i=$("body"),o=$(".scrollbar-rails-x"),n=$(".scrollbar-thumb-x"),s=$(".scrollbar-rails-y"),a=$(".scrollbar-thumb-y"),r=t(),l=!1;function t(){var t={contWidth:e.width(),contHeight:e.height(),scrollWidth:i.outerWidth(!0),scrollHeight:i.outerHeight(!0),trackWidth:o.width(),trackHeight:s.height(),barWidth:0,barHeight:0,maxX:0,maxY:0,curX:i.scrollLeft(),curY:i.scrollTop()};return t.scrollWidth>t.contWidth?(t.barWidth=Math.round(t.contWidth/t.scrollWidth*t.trackWidth),t.maxX=t.scrollWidth-t.contWidth):(t.barWidth=t.trackWidth,t.maxX=0),t.scrollHeight>t.contHeight?(t.barHeight=Math.round(t.contHeight/t.scrollHeight*t.trackHeight),t.maxY=t.scrollHeight-t.contHeight):(t.barHeight=t.trackHeight,t.maxY=0),n.width(t.barWidth),a.height(t.barHeight),t.rateX=Math.min($.utils.is_number(t.curX/t.maxX)?t.curX/t.maxX:0,1),t.rateY=Math.min($.utils.is_number(t.curY/t.maxY)?t.curY/t.maxY:0,1),0$(window).height()+o?$(window).scrollTop()>o?$(e).hasClass(i)||$(e).addClass(i):$(e).hasClass(i)&&$(e).removeClass(i):n&&$(e).addClass(i),0s-$(window).height()?gsap.to(e,{duration:.2,y:s-$(window).height()-$(window).scrollTop()}):gsap.to(e,{duration:.2,y:0}))))}l.is_object(r)&&(r=[r]),l.is_array(r)&&(t(),$(window).on("load resize scroll",t))},backTop:function(t){$(t).on("click",function(){gsap.to(window,{scrollTo:0})})},htmlSize:function(e,i){function t(){var t=$(window).width()$(window).height()?$("body").removeClass("full-screen"):$("body").addClass("full-screen")}$("body").addClass("init-screen"),t(),$(window).on("load resize scroll",t)},unWinScroll:function(){$("body").addClass("lock-screen")},enWinScroll:function(){$("body").removeClass("lock-screen")},unSelect:function(t){$(t).attr("unselectable","on").css((_defineProperty(t={"-moz-user-select":"-moz-none"},"-moz-user-select","none"),_defineProperty(t,"-o-user-select","none"),_defineProperty(t,"-khtml-user-select","none"),_defineProperty(t,"-webkit-user-select","none"),_defineProperty(t,"-ms-user-select","none"),_defineProperty(t,"user-select","none"),t)).on("selectstart",function(){return!1})},enSelect:function(t){$(t).attr("unselectable","off").css((_defineProperty(t={"-moz-user-select":"text"},"-moz-user-select","text"),_defineProperty(t,"-o-user-select","text"),_defineProperty(t,"-khtml-user-select","text"),_defineProperty(t,"-webkit-user-select","text"),_defineProperty(t,"-ms-user-select","text"),_defineProperty(t,"user-select","text"),t)).off("selectstart")},init:function(t){var e=this;$(function(){e.placeholder(),e.objectFitPolyfill(),(e.is_true(t.htmlSize)||e.is_number(t.htmlSize))&&e.htmlSize(e.is_true(t.htmlSize)?750:t.htmlSize,320),e.contHeight(),e.horizontalNav(),e.getFullScreen(),e.backTop(t.backTop),e.scrollFade(t.scrollFade)})}},$.fn.xVideo=function(){var t=this,e=t.find(".video-js");if(0==t.length||0==e.length)return t;if(1'),t.control.play&&0==n.find(".audio-play").length&&(i+=''),t.control.next&&0==n.find(".audio-next").length&&(i+=''),$.utils.is_none(i)||0!=n.find(".audio-control").length||(e+=''+i+"
");var o="";t.progress&&0==n.find(".audio-progress").length&&(o+=''),i="",t.time.current&&0==n.find(".audio-current").length&&(i+=''),t.time.duration&&0==n.find(".audio-duration").length&&(i+=''),t.time.surplus&&0==n.find(".audio-surplus").length&&(i+=''),$.utils.is_none(i)||0!=n.find(".audio-time").length||(o+=''+i+"
"),$.utils.is_none(o)||(e+=''+o+"
"),t.volume&&0==n.find(".audio-volume").length&&(e+=''),$.utils.is_none(e)||n.addClass("ui").append(e)}(i.ui),$.utils.is_none(i.src)&&(i.src=[""],n.data("load",!0)),1==i.src.length&&n.find(".audio-next").addClass("disable"),n.find(".audio-prev").addClass("disable"),n.find(".audio-play").addClass("icon-media-buffer"),n.find(".audio-duration").text(c(0)),n.find(".audio-current").text(c(0)),n.find(".audio-surplus").text(c(0));var a=new Audio;a.autoplay=!$.utils.is_android,a.preload=i.preload,a.volume=0,a.loop=i.loop,a.src=i.src[0];var e=null;function r(){var t=a.currentTime||0;n.find(".audio-current").text(c(t)),n.find(".audio-surplus").text("-"+c(a.duration-t)),n.find(".audio-progress-bar").css("width",(t/a.duration*100||0)+"%")}function l(t){var e=[];if($.utils.is_object(t)){if($.utils.is_string(t.src))if(0==t.src.indexOf(".")){s=n.find(t.src);for(var i=0;i<$(t.src).length;i++)e.push(s.eq(i).data("src"));t.src=e}else t.src=[t.src];$.utils.is_object(t.ui)?($.utils.is_boolean(t.ui.control)&&(t.ui.control={play:t.ui.control,prev:t.ui.control,next:t.ui.control}),$.utils.is_boolean(t.ui.time)&&(t.ui.time={current:t.ui.time,duration:t.ui.time,surplus:t.ui.time})):$.utils.is_boolean(t.ui)&&(t.ui={control:{play:t.ui,prev:t.ui,next:t.ui},volume:t.ui,progress:t.ui,time:{current:t.ui,duration:t.ui,surplus:t.ui},error:t.ui})}else if($.utils.is_string(t))if(0==t.indexOf(".")){s=n.find(t);for(var o=0;o<$(t).length;o++)e.push(s.eq(o).data("src"));t={src:e}}else t={src:[t]};else $.utils.is_array(t)&&(t={src:t});return t}function c(t){var e=Math.floor(Math.round(t)/60)||0,t=Math.round(t)-60*e||0;return e+":"+(t<10?"0":"")+t}0'),$(o.appendTrack).append('');var n=e.children(".scroll-cont"),s=$(o.appendTrack).children(".scroll-track-x"),a=s.children(".scroll-bar-x"),r=$(o.appendTrack).children(".scroll-track-y"),l=r.children(".scroll-bar-y"),c=0==a.width(),u=0==l.height(),d=null,f=!1;g();var p=m();n.on("mousewheel",function(t){o.preventDefault&&(0t.contWidth?(t.barWidth=Math.round(t.contWidth/t.scrollWidth*t.trackWidth),t.maxX=t.scrollWidth-t.contWidth):(t.barWidth=t.trackWidth,t.maxX=0),t.scrollHeight>t.contHeight?(t.barHeight=Math.round(t.contHeight/t.scrollHeight*t.trackHeight),t.maxY=t.scrollHeight-t.contHeight):(t.barHeight=t.trackHeight,t.maxY=0),c&&a.width(t.barWidth),u&&l.height(t.barHeight),t.rateX=Math.min($.utils.is_number(t.curX/t.maxX)?t.curX/t.maxX:0,1),t.rateY=Math.min($.utils.is_number(t.curY/t.maxY)?t.curY/t.maxY:0,1),0<\/script>'),"box"==n.info.type&&0==$("#mapboxapi").length&&$("body").append('