Current File : /pages/54/47/d0016649/home/htdocs/ipc1/wp-content/updraft/themes-old/lhst/cloudfw/js/pack.min.js |
/*!
* Envision
*
* @version 3.2.0
*
* @author Wptation
* @link http://envision.wptation.com/
* @license ThemeForest Split Licence
* @copyright 2019
*/
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(f){var n=/\+/g;function p(t){return v.raw?t:encodeURIComponent(t)}function m(t,e){var i=v.raw?t:function(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t=decodeURIComponent(t.replace(n," ")),v.json?JSON.parse(t):t}catch(t){}}(t);return f.isFunction(e)?e(i):i}var v=f.cookie=function(t,e,i){if(void 0!==e&&!f.isFunction(e)){if("number"==typeof(i=f.extend({},v.defaults,i)).expires){var n=i.expires,o=i.expires=new Date;o.setDate(o.getDate()+n)}return document.cookie=[p(t),"=",function(t){return p(v.json?JSON.stringify(t):String(t))}(e),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var r,a=t?void 0:{},s=document.cookie?document.cookie.split("; "):[],c=0,l=s.length;c<l;c++){var u=s[c].split("="),d=(r=u.shift(),v.raw?r:decodeURIComponent(r)),h=u.join("=");if(t&&t===d){a=m(h,e);break}t||void 0===(h=m(h))||(a[d]=h)}return a};v.defaults={},f.removeCookie=function(t,e){return void 0!==f.cookie(t)&&(f.cookie(t,"",f.extend({},e,{expires:-1})),!f.cookie(t))}}),jQuery.isFunction(jQuery.fn.ScrollTo)||function(s){var v=s.scrollTo=function(t,e,i){s(window).scrollTo(t,e,i)};function t(t){return"object"==typeof t?t:{top:t,left:t}}v.defaults={axis:"xy",duration:1.3<=parseFloat(s.fn.jquery)?0:1,limit:!0},v.window=function(t){return s(window)._scrollable()},s.fn._scrollable=function(){return this.map(function(){var t=this;if(!(!t.nodeName||-1!=s.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])))return t;var e=(t.contentWindow||t).document||t.ownerDocument||t;return/webkit/i.test(navigator.userAgent)||"BackCompat"==e.compatMode?e.body:e.documentElement})},s.fn.scrollTo=function(e,i,m){return"object"==typeof i&&(m=i,i=0),"function"==typeof m&&(m={onAfter:m}),"max"==e&&(e=9e9),m=s.extend({},v.defaults,m),i=i||m.duration,m.queue=m.queue&&1<m.axis.length,m.queue&&(i/=2),m.offset=t(m.offset),m.over=t(m.over),this._scrollable().each(function(){if(null!=e){var c,l=this,u=s(l),d=e,h={},f=u.is("html,body");switch(typeof d){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(d)){d=t(d);break}if(!(d=s(d,this)).length)return;case"object":(d.is||d.style)&&(c=(d=s(d)).offset())}s.each(m.axis.split(""),function(t,e){var i="x"==e?"Left":"Top",n=i.toLowerCase(),o="scroll"+i,r=l[o],a=v.max(l,e);if(c)h[o]=c[n]+(f?0:r-u.offset()[n]),m.margin&&(h[o]-=parseInt(d.css("margin"+i))||0,h[o]-=parseInt(d.css("border"+i+"Width"))||0),h[o]+=m.offset[n]||0,m.over[n]&&(h[o]+=d["x"==e?"width":"height"]()*m.over[n]);else{var s=d[n];h[o]=s.slice&&"%"==s.slice(-1)?parseFloat(s)/100*a:s}m.limit&&/^\d+$/.test(h[o])&&(h[o]=h[o]<=0?0:Math.min(h[o],a)),!t&&m.queue&&(r!=h[o]&&p(m.onAfterFirst),delete h[o])}),p(m.onAfter)}function p(t){u.animate(h,i,m.easing,t&&function(){t.call(this,e,m)})}}).end()},v.max=function(t,e){var i="x"==e?"Width":"Height",n="scroll"+i;if(!s(t).is("html,body"))return t[n]-s(t)[i.toLowerCase()]();var o="client"+i,r=t.ownerDocument.documentElement,a=t.ownerDocument.body;return Math.max(r[n],a[n])-Math.min(r[o],a[o])}}(jQuery),function(t,u){var n,e=t.jQuery||t.Cowboy||(t.Cowboy={});e.throttle=n=function(o,r,a,s){var c,l=0;function t(){var t=this,e=+new Date-l,i=arguments;function n(){l=+new Date,a.apply(t,i)}s&&!c&&n(),c&&clearTimeout(c),s===u&&o<e?n():!0!==r&&(c=setTimeout(s?function(){c=u}:n,s===u?o-e:o))}return"boolean"!=typeof r&&(s=a,a=r,r=u),e.guid&&(t.guid=a.guid=a.guid||e.guid++),t},e.debounce=function(t,e,i){return i===u?n(t,e,!1):n(t,i,!1!==e)}}(this),function(c){function s(t,e){return"function"==typeof t?t.call(e):t}function l(t,e){this.$element=c(t),this.options=e,this.enabled=!0,this.fixTitle()}l.prototype={show:function(){var t=this.getTitle();if(t&&this.enabled){var e=this.tip();e.find(".tipsy-inner")[this.options.html?"html":"text"](t),e[0].className="tipsy",e.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var i,n=c.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),o=e[0].offsetWidth,r=e[0].offsetHeight,a=s(this.options.gravity,this.$element[0]);switch(a.charAt(0)){case"n":i={top:n.top+n.height+this.options.offset,left:n.left+n.width/2-o/2};break;case"s":i={top:n.top-r-this.options.offset,left:n.left+n.width/2-o/2};break;case"e":i={top:n.top+n.height/2-r/2,left:n.left-o-this.options.offset};break;case"w":i={top:n.top+n.height/2-r/2,left:n.left+n.width+this.options.offset}}2==a.length&&("w"==a.charAt(1)?i.left=n.left+n.width/2-15:i.left=n.left+n.width/2-o+15),e.css(i).addClass("tipsy-"+a),e.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+a.charAt(0),this.options.className&&e.addClass(s(this.options.className,this.$element[0])),this.options.fade?e.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):e.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){c(this).remove()}):this.tip().remove()},fixTitle:function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("original-title")||t.attr("original-title",t.attr("title")||"").removeAttr("title")},getTitle:function(){var t,e=this.$element,i=this.options;return this.fixTitle(),"string"==typeof(i=this.options).title?t=e.attr("title"==i.title?"original-title":i.title):"function"==typeof i.title&&(t=i.title.call(e[0])),(t=(""+t).replace(/(^\s*|\s*$)/,""))||i.fallback},tip:function(){return this.$tip||(this.$tip=c('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),this.$tip.data("tipsy-pointee",this.$element[0])),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},c.fn.tipsy=function(i){if(!0===i)return this.data("tipsy");if("string"==typeof i){var t=this.data("tipsy");return t&&t[i](),this}function e(t){var e=c.data(t,"tipsy");return e||(e=new l(t,c.fn.tipsy.elementOptions(t,i)),c.data(t,"tipsy",e)),e}function n(){var t=e(this);t.hoverState="in",0==i.delayIn?t.show():(t.fixTitle(),setTimeout(function(){"in"==t.hoverState&&t.show()},i.delayIn))}function o(){var t=e(this);t.hoverState="out",0==i.delayOut?t.hide():setTimeout(function(){"out"==t.hoverState&&t.hide()},i.delayOut)}if((i=c.extend({},c.fn.tipsy.defaults,i)).live||this.each(function(){e(this)}),"manual"!=i.trigger){var r="hover"==i.trigger?"mouseenter mouseover":"focus",a="hover"==i.trigger?"mouseleave mouseout":"blur";if(i.live&&!0!==i.live){var s=c(this).selector;c(document).delegate(s,r,n),c(document).delegate(s,a,o)}else this.bind(r,n).bind(a,o)}return this},c.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},c.fn.tipsy.revalidate=function(){c(".tipsy").each(function(){var t=c.data(this,"tipsy-pointee");t&&function(t){for(;t=t.parentNode;)if(t==document)return!0;return!1}(t)||c(this).remove()})},c.fn.tipsy.elementOptions=function(t,e){return c.metadata?c.extend({},e,c(t).metadata()):e},c.fn.tipsy.autoNS=function(){return c(this).offset().top>c(document).scrollTop()+c(window).height()/2?"s":"n"},c.fn.tipsy.autoWE=function(){return c(this).offset().left>c(document).scrollLeft()+c(window).width()/2?"e":"w"},c.fn.tipsy.autoBounds=function(o,r){return function(){var t={ns:r[0],ew:1<r.length&&r[1]},e=c(document).scrollTop()+o,i=c(document).scrollLeft()+o,n=c(this);return n.offset().top<e&&(t.ns="n"),n.offset().left<i&&(t.ew="w"),c(window).width()+c(document).scrollLeft()-n.offset().left<o&&(t.ew="e"),c(window).height()+c(document).scrollTop()-n.offset().top<o&&(t.ns="s"),t.ns+(t.ew?t.ew:"")}}}(jQuery);var shortcut={all_shortcuts:{},add:function(l,u,d){var t={type:"keydown",propagate:!1,disable_in_input:!1,target:document,keycode:!1};if(d)for(var e in t)void 0===d[e]&&(d[e]=t[e]);else d=t;var i=d.target;"string"==typeof d.target&&(i=document.getElementById(d.target));l=l.toLowerCase();function n(t){var e;if(t=t||window.event,!d.disable_in_input||(t.target?e=t.target:t.srcElement&&(e=t.srcElement),3==e.nodeType&&(e=e.parentNode),"INPUT"!=e.tagName&&"TEXTAREA"!=e.tagName&&"SELECT"!=e.tagName)){t.keyCode?code=t.keyCode:t.which&&(code=t.which);var i=String.fromCharCode(code).toLowerCase();188==code&&(i=","),190==code&&(i=".");var n=l.split("+"),o=0,r={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},a={esc:27,escape:27,tab:9,space:32,return:13,enter:13,backspace:8,scrolllock:145,scroll_lock:145,scroll:145,capslock:20,caps_lock:20,caps:20,numlock:144,num_lock:144,num:144,pause:19,break:19,insert:45,home:36,delete:46,end:35,pageup:33,page_up:33,pu:33,pagedown:34,page_down:34,pd:34,left:37,up:38,right:39,down:40,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},s={shift:{wanted:!1,pressed:!1},ctrl:{wanted:!1,pressed:!1},alt:{wanted:!1,pressed:!1},meta:{wanted:!1,pressed:!1}};t.ctrlKey&&(s.ctrl.pressed=!0),t.shiftKey&&(s.shift.pressed=!0),t.altKey&&(s.alt.pressed=!0),t.metaKey&&(s.meta.pressed=!0);for(var c=0;k=n[c],c<n.length;c++)"ctrl"==k||"control"==k?(o++,s.ctrl.wanted=!0):"shift"==k?(o++,s.shift.wanted=!0):"alt"==k?(o++,s.alt.wanted=!0):"meta"==k?(o++,s.meta.wanted=!0):1<k.length?a[k]==code&&o++:d.keycode?d.keycode==code&&o++:i==k?o++:r[i]&&t.shiftKey&&(i=r[i])==k&&o++;return o!=n.length||s.ctrl.pressed!=s.ctrl.wanted||s.shift.pressed!=s.shift.wanted||s.alt.pressed!=s.alt.wanted||s.meta.pressed!=s.meta.wanted||(u(t),d.propagate)?void 0:(t.cancelBubble=!0,t.returnValue=!1,t.stopPropagation&&(t.stopPropagation(),t.preventDefault()),!1)}}this.all_shortcuts[l]={callback:n,target:i,event:d.type},i.addEventListener?i.addEventListener(d.type,n,!1):i.attachEvent?i.attachEvent("on"+d.type,n):i["on"+d.type]=n},remove:function(t){t=t.toLowerCase();var e=this.all_shortcuts[t];if(delete this.all_shortcuts[t],e){var i=e.event,n=e.target,o=e.callback;n.detachEvent?n.detachEvent("on"+i,o):n.removeEventListener?n.removeEventListener(i,o,!1):n["on"+i]=!1}}};jQuery.base64=function(){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function a(t,e){var i=r.indexOf(t.charAt(e));if(-1===i)throw"Cannot decode base64";return i}function s(t,e){var i=t.charCodeAt(e);if(255<i)throw"INVALID_CHARACTER_ERR: DOM Exception 5";return i}return{decode:function(t){var e,i,n=0,o=t.length,r=[];if(t=String(t),0===o)return t;if(o%4!=0)throw"Cannot decode base64";for("="===t.charAt(o-1)&&(n=1,"="===t.charAt(o-2)&&(n=2),o-=4),e=0;e<o;e+=4)i=a(t,e)<<18|a(t,e+1)<<12|a(t,e+2)<<6|a(t,e+3),r.push(String.fromCharCode(i>>16,i>>8&255,255&i));switch(n){case 1:i=a(t,e)<<18|a(t,e+1)<<12|a(t,e+2)<<6,r.push(String.fromCharCode(i>>16,i>>8&255));break;case 2:i=a(t,e)<<18|a(t,e+1)<<12,r.push(String.fromCharCode(i>>16))}return r.join("")},encode:function(t){if(1!==arguments.length)throw"SyntaxError: exactly one argument required";var e,i,n=[],o=(t=String(t)).length-t.length%3;if(0===t.length)return t;for(e=0;e<o;e+=3)i=s(t,e)<<16|s(t,e+1)<<8|s(t,e+2),n.push(r.charAt(i>>18)),n.push(r.charAt(i>>12&63)),n.push(r.charAt(i>>6&63)),n.push(r.charAt(63&i));switch(t.length-o){case 1:i=s(t,e)<<16,n.push(r.charAt(i>>18)+r.charAt(i>>12&63)+"==");break;case 2:i=s(t,e)<<16|s(t,e+1)<<8,n.push(r.charAt(i>>18)+r.charAt(i>>12&63)+r.charAt(i>>6&63)+"=")}return n.join("")},VERSION:"1.0"}}(jQuery),function(a){a(window).scroll(function(){var o=function(){var t=window.innerHeight,e=document.compatMode;return!e&&a.support.boxModel||(t="CSS1Compat"==e?document.documentElement.clientHeight:document.body.clientHeight),t}(),r=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop,t=[];a.each(a.cache,function(){this.events&&this.events.inview&&t.push(this.handle.elem)}),t.length&&a(t).each(function(){var t=a(this),e=t.offset().top,i=t.height(),n=t.data("inview")||!1;inviewed=t.data("inviewed")||!1,e+i<r||r+o<e?!n&&inviewed||(t.data("inview",!1),t.trigger("inview",[!1])):r<e+i&&(n&&inviewed||(t.data("inview",!0),t.trigger("inview",[!0]))),t.data("inviewed",!0)})}),a(function(){a(window).scroll()})}(jQuery),function(a,e){var i,n=a([]),o=a.resize=a.extend(a.resize,{}),s="setTimeout",r="resize-custom",c=r+"-special-event-custom",l="delay",u="throttleWindow";o[l]=250,o[u]=!0,a.event.special[r]={setup:function(){if(!o[u]&&this[s])return!1;var t=a(this);n=n.add(t),a.data(this,c,{w:t.width(),h:t.height()}),1===n.length&&function t(){i=e[s](function(){n.each(function(){var t=a(this),e=t.width(),i=t.height(),n=a.data(this,c);e===n.w&&i===n.h||t.trigger(r,[n.w=e,n.h=i])}),t()},o[l])}()},teardown:function(){if(!o[u]&&this[s])return!1;var t=a(this);n=n.not(t),t.removeData(c),n.length||clearTimeout(i)},add:function(t){if(!o[u]&&this[s])return!1;var r;function e(t,e,i){var n=a(this),o=a.data(this,c);o.w=void 0!==e?e:n.width(),o.h=void 0!==i?i:n.height(),r.apply(this,arguments)}if(a.isFunction(t))return r=t,e;r=t.handler,t.handler=e}}}(jQuery,this),function(e){var f={delay:100,batch:1,queue:[]};e.jqmq=function(t){var r,a,i,s,n,c={},l=e.extend(!0,{},f,t),u=l.queue,o=l.paused,d=[];function h(){r&&clearTimeout(r),r=void 0}return c.add=function(t,e){return i([t],e)},c.addEach=i=function(t,e){return t&&(a=!1,u=e?t.concat(u):u.concat(t),o||n()),s()},c.start=n=function(){o=!1,!s()||r||d.length||function t(){var e=l.delay,i=l.batch,n=l.complete,o=l.callback;if(h(),!s())return a=!0,void(n&&n.call(c));d=u.splice(0,i),o&&!0===o.call(c,1===i?d[0]:d)&&(u=d.concat(u),d=[]),"number"==typeof e&&0<=e&&(d=[],r=setTimeout(t,e))}()},c.next=function(t){var e=l.complete;t&&(u=d.concat(u)),d=[],s()?o||n():a||(a=!0,e&&e.call(c))},c.clear=function(){var t=u;return h(),u=[],a=!0,d=[],t},c.pause=function(){h(),o=!0},c.update=function(t){e.extend(l,t)},c.size=s=function(){return u.length},c.indexOf=function(t){return e.inArray(t,u)},o||n(),c},e.fn.jqmqAdd=function(t,e){return t.add(this.get(),e),this},e.fn.jqmqAddEach=function(t,e){return t.addEach(this.get(),e),this}}(jQuery),function(h){h.deparam=jq_deparam=function(t,l){var u={},d={true:!0,false:!1,null:null};return h.each(t.replace(/\+/g," ").split("&"),function(t,e){var i,n=e.split("="),o=decodeURIComponent(n[0]),r=u,a=0,s=o.split("]["),c=s.length-1;if(c=/\[/.test(s[0])&&/\]$/.test(s[c])?(s[c]=s[c].replace(/\]$/,""),(s=s.shift().split("[").concat(s)).length-1):0,2===n.length)if(i=decodeURIComponent(n[1]),l&&(i=i&&!isNaN(i)?+i:"undefined"===i?void 0:void 0!==d[i]?d[i]:i),c)for(;a<=c;a++)r=r[o=""===s[a]?r.length:s[a]]=a<c?r[o]||(s[a+1]&&isNaN(s[a+1])?{}:[]):i;else h.isArray(u[o])?u[o].push(i):void 0!==u[o]?u[o]=[u[o],i]:u[o]=i;else o&&(u[o]=l?void 0:"")}),u}}(jQuery),jQuery.fn.autoGrow=function(){return this.each(function(){function t(t){i.innerHTML=String(t.value).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\n/g,"<br />")+".<br/>.",jQuery(t).height()!=jQuery(i).height()&&jQuery(t).height(jQuery(i).height())}var e,i=(e=this,jQuery(e).after('<div class="autogrow-textarea-mirror"></div>'),jQuery(e).next(".autogrow-textarea-mirror")[0]);i.style.display="none",i.style.wordWrap="break-word",i.style.padding=jQuery(this).css("padding"),i.style.width=jQuery(this).css("width"),i.style.fontFamily=jQuery(this).css("font-family"),i.style.fontSize=jQuery(this).css("font-size"),i.style.lineHeight=jQuery(this).css("line-height"),this.style.overflow="hidden",this.style.minHeight=this.rows+"em",this.onkeyup=function(){t(this)},t(this)})};