1(()=>{var e,t,n,r,o={333:(e,t,n)=>{var r,o,i; 2/*! 3 * https://github.com/PrestaShop/jquery.live-polyfill 4 * 5 * Released under the MIT license 6 */o=[n(204)],void 0===(i="function"==typeof(r=function(e){var t=e.fn.init;e.fn.init=function(e){var n=Array.prototype.slice.call(arguments);"string"==typeof e&&"#"===e&&(console.warn("jQuery('#') is not a valid selector"),n[0]=[]);var r=t.apply(this,arguments);return r.selector="string"==typeof e?e:"",r},e.fn.init.prototype=e.fn,void 0!==e.fn.live&&e.isFunction(e.fn.live)||e.fn.extend({live:function(t,n,r){return this.selector&&e(document).on(t,this.selector,n,r),console.warn("jQuery.live() has been removed since jquery v1.9, please use jQuery.on() instead."),this}})})?r.apply(t,o):r)||(e.exports=i)},290:(e,t,n)=>{var r,o; 7/*! 8 * jQuery Migrate - v3.1.0 - 2019-06-08 9 * Copyright OpenJS Foundation and other contributors 10 */r=[n(204)],void 0===(o=function(e){return function(e,t){"use strict";function n(e,t){for(var n=/^(\d+)\.(\d+)\.(\d+)/,r=n.exec(e)||[],o=n.exec(t)||[],i=1;i<=3;i++){if(+r[i]>+o[i])return 1;if(+r[i]<+o[i])return-1}return 0}function r(t){return n(e.fn.jquery,t)>=0}e.migrateVersion="3.1.0",t.console&&t.console.log&&(e&&r("3.0.0")||t.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),e.migrateWarnings&&t.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),t.console.log("JQMIGRATE: Migrate is installed"+(e.migrateMute?"":" with logging active")+", version "+e.migrateVersion));var o={};function i(n){var r=t.console;o[n]||(o[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(e,t,n,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return i(r),n},set:function(e){i(r),n=e}})}function s(e,t,n,r){e[t]=function(){return i(r),n.apply(this,arguments)}}e.migrateWarnings=[],void 0===e.migrateTrace&&(e.migrateTrace=!0),e.migrateReset=function(){o={},e.migrateWarnings.length=0},"BackCompat"===t.document.compatMode&&i("jQuery is not compatible with Quirks Mode");var c,u=e.fn.init,l=e.isNumeric,d=e.find,p=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,f=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;for(c in e.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(i("jQuery( '#' ) is not a valid selector"),t[0]=[]),u.apply(this,t)},e.fn.init.prototype=e.fn,e.find=function(e){var n=Array.prototype.slice.call(arguments);if("string"==typeof e&&p.test(e))try{t.document.querySelector(e)}catch(r){e=e.replace(f,(function(e,t,n,r){return"["+t+n+'"'+r+'"]'}));try{t.document.querySelector(e),i("Attribute selector with '#' must be quoted: "+n[0]),n[0]=e}catch(e){i("Attribute selector with '#' was not fixed: "+n[0])}}return d.apply(this,n)},d)Object.prototype.hasOwnProperty.call(d,c)&&(e.find[c]=d[c]);e.fn.size=function(){return i("jQuery.fn.size() is deprecated and removed; use the .length property"),this.length},e.parseJSON=function(){return i("jQuery.parseJSON is deprecated; use JSON.parse"),JSON.parse.apply(null,arguments)},e.isNumeric=function(t){function n(t){var n=t&&t.toString();return!e.isArray(t)&&n-parseFloat(n)+1>=0}var r=l(t),o=n(t);return r!==o&&i("jQuery.isNumeric() should not be called on constructed objects"),o},r("3.3.0")&&s(e,"isWindow",(function(e){return null!=e&&e===e.window}),"jQuery.isWindow() is deprecated"),s(e,"holdReady",e.holdReady,"jQuery.holdReady is deprecated"),s(e,"unique",e.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),a(e.expr,"filters",e.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),a(e.expr,":",e.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),r("3.2.0")&&s(e,"nodeName",e.nodeName,"jQuery.nodeName is deprecated");var h=e.ajax;e.ajax=function(){var e=h.apply(this,arguments);return e.promise&&(s(e,"success",e.done,"jQXHR.success is deprecated and removed"),s(e,"error",e.fail,"jQXHR.error is deprecated and removed"),s(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e};var m=e.fn.removeAttr,v=e.fn.toggleClass,g=/\S+/g;e.fn.removeAttr=function(t){var n=this;return e.each(t.match(g),(function(t,r){e.expr.match.bool.test(r)&&(i("jQuery.fn.removeAttr no longer sets boolean properties: "+r),n.prop(r,!1))})),m.apply(this,arguments)},e.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?v.apply(this,arguments):(i("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each((function(){var n=this.getAttribute&&this.getAttribute("class")||"";n&&e.data(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":e.data(this,"__className__")||"")})))};var y=!1;e.swap&&e.each(["height","width","reliableMarginRight"],(function(t,n){var r=e.cssHooks[n]&&e.cssHooks[n].get;r&&(e.cssHooks[n].get=function(){var e;return y=!0,e=r.apply(this,arguments),y=!1,e})})),e.swap=function(e,t,n,r){var o,a,s={};for(a in y||i("jQuery.swap() is undocumented and deprecated"),t)s[a]=e.style[a],e.style[a]=t[a];for(a in o=n.apply(e,r||[]),t)e.style[a]=s[a];return o};var b=e.data;e.data=function(t,n,r){var o;if(n&&"object"==typeof n&&2===arguments.length){o=e.hasData(t)&&b.call(this,t);var a={};for(var s in n)s!==e.camelCase(s)?(i("jQuery.data() always sets/gets camelCased names: "+s),o[s]=n[s]):a[s]=n[s];return b.call(this,t,a),n}return n&&"string"==typeof n&&n!==e.camelCase(n)&&(o=e.hasData(t)&&b.call(this,t))&&n in o?(i("jQuery.data() always sets/gets camelCased names: "+n),arguments.length>2&&(o[n]=r),o[n]):b.apply(this,arguments)};var x=e.Tween.prototype.run,w=function(e){return e};e.Tween.prototype.run=function(){e.easing[this.easing].length>1&&(i("'jQuery.easing."+this.easing.toString()+"' should use only one argument"),e.easing[this.easing]=w),x.apply(this,arguments)};var k=e.fx.interval||13,C="jQuery.fx.interval is deprecated";t.requestAnimationFrame&&Object.defineProperty(e.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return t.document.hidden||i(C),k},set:function(e){i(C),k=e}});var j=e.fn.load,T=e.event.add,S=e.event.fix;e.event.props=[],e.event.fixHooks={},a(e.event.props,"concat",e.event.props.concat,"jQuery.event.props.concat() is deprecated and removed"),e.event.fix=function(t){var n,r=t.type,o=this.fixHooks[r],a=e.event.props;if(a.length)for(i("jQuery.event.props are deprecated and removed: "+a.join());a.length;)e.event.addProp(a.pop());if(o&&!o._migrated_&&(o._migrated_=!0,i("jQuery.event.fixHooks are deprecated and removed: "+r),(a=o.props)&&a.length))for(;a.length;)e.event.addProp(a.pop());return n=S.call(this,t),o&&o.filter?o.filter(n,t):n},e.event.add=function(e,n){return e===t&&"load"===n&&"complete"===t.document.readyState&&i("jQuery(window).on('load'...) called after load event occurred"),T.apply(this,arguments)},e.each(["load","unload","error"],(function(t,n){e.fn[n]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===n&&"string"==typeof e[0]?j.apply(this,e):(i("jQuery.fn."+n+"() is deprecated"),e.splice(0,0,n),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))}})),e.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,n){e.fn[n]=function(e,t){return i("jQuery.fn."+n+"() event shorthand is deprecated"),arguments.length>0?this.on(n,null,e,t):this.trigger(n)}})),e((function(){e(t.document).triggerHandler("ready")})),e.event.special.ready={setup:function(){this===t.document&&i("'ready' event is deprecated")}},e.fn.extend({bind:function(e,t,n){return i("jQuery.fn.bind() is deprecated"),this.on(e,null,t,n)},unbind:function(e,t){return i("jQuery.fn.unbind() is deprecated"),this.off(e,null,t)},delegate:function(e,t,n,r){return i("jQuery.fn.delegate() is deprecated"),this.on(t,e,n,r)},undelegate:function(e,t,n){return i("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return i("jQuery.fn.hover() is deprecated"),this.on("mouseenter",e).on("mouseleave",t||e)}});var A=e.fn.offset;e.fn.offset=function(){var n,r=this[0],o={top:0,left:0};return r&&r.nodeType?(n=(r.ownerDocument||t.document).documentElement,e.contains(n,r)?A.apply(this,arguments):(i("jQuery.fn.offset() requires an element connected to a document"),o)):(i("jQuery.fn.offset() requires a valid DOM element"),o)};var E=e.param;e.param=function(t,n){var r=e.ajaxSettings&&e.ajaxSettings.traditional;return void 0===n&&r&&(i("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),n=r),E.call(this,t,n)};var N=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return i("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),N.apply(this,arguments)};var q=e.Deferred,D=[["resolve","done",e.Callbacks("once memory"),e.Callbacks("once memory"),"resolved"],["reject","fail",e.Callbacks("once memory"),e.Callbacks("once memory"),"rejected"],["notify","progress",e.Callbacks("memory"),e.Callbacks("memory")]];return e.Deferred=function(t){var n=q(),r=n.promise();return n.pipe=r.pipe=function(){var t=arguments;return i("deferred.pipe() is deprecated"),e.Deferred((function(o){e.each(D,(function(i,a){var s=e.isFunction(t[i])&&t[i];n[a[1]]((function(){var t=s&&s.apply(this,arguments);t&&e.isFunction(t.promise)?t.promise().done(o.resolve).fail(o.reject).progress(o.notify):o[a[0]+"With"](this===r?o.promise():this,s?[t]:arguments)}))})),t=null})).promise()},t&&t.call(n,n),n},e.Deferred.exceptionHook=q.exceptionHook,e}(e,window)}.apply(t,r))||(e.exports=o)},768:(e,t,n)=>{var r,o; 11/*! 12 * jQuery Browser Plugin 0.1.0 13 * https://github.com/gabceb/jquery-browser-plugin 14 * 15 * Original jquery-browser code Copyright 2005, 2015 jQuery Foundation, Inc. and other contributors 16 * http://jquery.org/license 17 * 18 * Modifications Copyright 2015 Gabriel Cebrian 19 * https://github.com/gabceb 20 * 21 * Released under the MIT license 22 * 23 * Date: 05-07-2015 24 */r=[n(204)],void 0===(o=function(e){return function(e){"use strict";function t(e){void 0===e&&(e=window.navigator.userAgent),e=e.toLowerCase();var t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],n=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[],r={},o={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",versionNumber:t[4]||t[2]||"0",platform:n[0]||""};if(o.browser&&(r[o.browser]=!0,r.version=o.version,r.versionNumber=parseInt(o.versionNumber,10)),o.platform&&(r[o.platform]=!0),(r.android||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"])&&(r.mobile=!0),(r.cros||r.mac||r.linux||r.win)&&(r.desktop=!0),(r.chrome||r.opr||r.safari)&&(r.webkit=!0),r.rv||r.iemobile){var i="msie";o.browser=i,r[i]=!0}if(r.edge){delete r.edge;var a="msedge";o.browser=a,r[a]=!0}if(r.safari&&r.blackberry){var s="blackberry";o.browser=s,r[s]=!0}if(r.safari&&r.playbook){var c="playbook";o.browser=c,r[c]=!0}if(r.bb){var u="blackberry";o.browser=u,r[u]=!0}if(r.opr){var l="opera";o.browser=l,r[l]=!0}if(r.safari&&r.android){var d="android";o.browser=d,r[d]=!0}if(r.safari&&r.kindle){var p="kindle";o.browser=p,r[p]=!0}if(r.safari&&r.silk){var f="silk";o.browser=f,r[f]=!0}return r.name=o.browser,r.platform=o.platform,r}return window.jQBrowser=t(window.navigator.userAgent),window.jQBrowser.uaMatch=t,e&&(e.browser=window.jQBrowser),window.jQBrowser}(e)}.apply(t,r))||(e.exports=o)},204:function(e,t){var n; 25/*! 26 * jQuery JavaScript Library v3.5.1 27 * https://jquery.com/ 28 * 29 * Includes Sizzle.js 30 * https://sizzlejs.com/ 31 * 32 * Copyright JS Foundation and other contributors 33 * Released under the MIT license 34 * https://jquery.org/license 35 * 36 * Date: 2020-05-04T22:49Z 37 */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,o){"use strict";var i=[],a=Object.getPrototypeOf,s=i.slice,c=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},u=i.push,l=i.indexOf,d={},p=d.toString,f=d.hasOwnProperty,h=f.toString,m=h.call(Object),v={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},y=function(e){return null!=e&&e===e.window}
vendor: 5,879 bytes, line 37
37,b=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,o,i=(n=n||b).createElement("script");if(i.text=e,t)for(r in x)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[p.call(e)]||"object":typeof e}var C="3.5.1",j=function(e,t){return new j.fn.init(e,t)};function T(e){var t=!!e&&"length"in e&&e.length,n=k(e);return!g(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}j.fn=j.prototype={jquery:C,constructor:j,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=j.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return j.each(this,e)},map:function(e){return this.pushStack(j.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(j.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(j.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:i.sort,splice:i.splice},j.extend=j.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(j.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],i=o&&!Array.isArray(n)?[]:o||j.isPlainObject(n)?n:{},o=!1,a[t]=j.extend(u,i,r)):void 0!==r&&(a[t]=r));return a},j.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=a(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&h.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(T(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?j.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(T(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return c(a)},guid:1,support:v}),"function"==typeof Symbol&&(j.fn[Symbol.iterator]=i[Symbol.iterator]),j.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var S=function(e){var t,n,r,o,i,a,s,c,u,l,d,p,f,h,m,v,g,y,b,x="sizzle"+1*new Date,w=e.document,k=0,C=0,j=ce(),T=ce(),S=ce(),A=ce(),E=function(e,t){return e===t&&(d=!0),0},N={}.hasOwnProperty,q=[],D=q.pop,O=q.push,_=q.push,P=q.slice,L=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},$="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",R="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\[[\\x20\\t\\r\\n\\f]*("+R+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+H+"*\\]",M=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",W=new RegExp(H+"+","g"),F=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),B=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),Q=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),z=new RegExp(H+"|>"),U=new RegExp(M),X=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+$+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){p()},ae=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{_.apply(q=P.call(w.childNodes),w.childNodes),q[w.childNodes.length].nodeType}catch(e){_={apply:q.length?function(e,t){O.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,o){var i,s,u,l,d,h,g,y=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;
vendor: 19,604 bytes, line 37
37if(!o&&(p(t),t=t||f,m)){if(11!==w&&(d=Z.exec(e)))if(i=d[1]){if(9===w){if(!(u=t.getElementById(i)))return r;if(u.id===i)return r.push(u),r}else if(y&&(u=y.getElementById(i))&&b(t,u)&&u.id===i)return r.push(u),r}else{if(d[2])return _.apply(r,t.getElementsByTagName(e)),r;if((i=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return _.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!A[e+" "]&&(!v||!v.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(g=e,y=t,1===w&&(z.test(e)||Q.test(e))){for((y=ee.test(e)&&ge(t.parentNode)||t)===t&&n.scope||((l=t.getAttribute("id"))?l=l.replace(re,oe):t.setAttribute("id",l=x)),s=(h=a(e)).length;s--;)h[s]=(l?"#"+l:":scope")+" "+be(h[s]);g=h.join(",")}try{return _.apply(r,y.querySelectorAll(g)),r}catch(t){A(e,!0)}finally{l===x&&t.removeAttribute("id")}}}return c(e.replace(F,"$1"),t,r,o)}function ce(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ue(e){return e[x]=!0,e}function le(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return ue((function(t){return t=+t,ue((function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:w;return a!=f&&9===a.nodeType&&a.documentElement?(h=(f=a).documentElement,m=!i(f),w!=f&&(o=f.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.scope=le((function(e){return h.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=le((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=le((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(f.getElementsByClassName),n.getById=le((function(e){return h.appendChild(e).id=x,!f.getElementsByName||!f.getElementsByName(x).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},g=[],v=[],(n.qsa=K.test(f.querySelectorAll))&&(le((function(e){var t;h.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+$+")"),e.querySelectorAll("[id~="+x+"-]").length||v.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),le((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=K.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&le((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),g.push("!=",M)})),v=v.length&&new RegExp(v.join("|")),g=g.length&&new RegExp(g.join("|")),t=K.test(h.compareDocumentPosition),b=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==f||e.ownerDocument==w&&b(w,e)?-1:t==f||t.ownerDocument==w&&b(w,t)?1:l?L(l,e)-L(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e==f?-1:t==f?1:o?-1:i?1:l?L(l,e)-L(l,t):0;if(o===i)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},f):f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&m&&!A[t+" "]&&(!g||!g.test(t))&&(!v||!v.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){A(t,!0)}return se(t,f,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=f&&p(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=f&&p(e);var o=r.attrHandle[t.toLowerCase()],i=o&&N.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==i?i:n.attributes||!m?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],o=0,i=0;if(d=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(E),d){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return l=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ue,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=j[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+H+"|$)"))&&j(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=se.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(W," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,c){var u,l,d,p,f,h,m=i!==a?"nextSibling":"previousSibling",v=t.parentNode,g=s&&t.nodeName.toLowerCase(),y=!c&&!s,b=!1;if(v){if(i){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===g:1===p.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&y){for(b=(f=(u=(l=(d=(p=v)[x]||(p[x]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===k&&u[1])&&u[2],p=f&&v.childNodes[f];p=++f&&p&&p[m]||(b=f=0)||h.pop();)if(1===p.nodeType&&++b&&p===t){l[e]=[k,f,b];break}}else if(y&&(b=f=(u=(l=(d=(p=t)[x]||(p[x]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===k&&u[1]),!1===b)for(;(p=++f&&p&&p[m]||(b=f=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==g:1!==p.nodeType)||!++b||(y&&((l=(d=p[x]||(p[x]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[k,b]),p!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[x]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue((function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=L(e,i[a])]=!(n[r]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:ue((function(e){var t=[],n=[],r=s(e.replace(F,"$1"));return r[x]?ue((function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:ue((function(e){return function(t){return se(e,t).length>0}})),contains:ue((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ue((function(e){return X.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve((function(){return[0]})),last:ve((function(e,t){return[t-1]})),eq:ve((function(e,t,n){return[n<0?n+t:n]})),even:ve((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ve((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ve((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ve((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function xe(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,s=C++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,c){var u,l,d,p=[k,s];if(c){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(l=(d=t[x]||(t[x]={}))[t.uniqueID]||(d[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=l[i])&&u[0]===k&&u[1]===s)return p[2]=u[2];if(l[i]=p,p[2]=e(t,n,c))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function ke(e,t,n,r,o){for(var i,a=[],s=0,c=e.length,u=null!=t;s<c;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),u&&t.push(s)));return a}function Ce(e,t,n,r,o,i){return r&&!r[x]&&(r=Ce(r)),o&&!o[x]&&(o=Ce(o,i)),ue((function(i,a,s,c){var u,l,d,p=[],f=[],h=a.length,m=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!i&&t?m:ke(m,p,e,s,c),g=n?o||(i?e:h||r)?[]:a:v;if(n&&n(v,g,s,c),r)for(u=ke(g,f),r(u,[],s,c),l=u.length;l--;)(d=u[l])&&(g[f[l]]=!(v[f[l]]=d));if(i){if(o||e){if(o){for(u=[],l=g.length;l--;)(d=g[l])&&u.push(v[l]=d);o(null,g=[],u,c)}for(l=g.length;l--;)(d=g[l])&&(u=o?L(i,d):p[l])>-1&&(i[u]=!(a[u]=d))}}else g=ke(g===a?g.splice(h,g.length):g),o?o(null,a,g,c):_.apply(a,g)}))}function je(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],c=a?1:0,l=xe((function(e){return e===t}),s,!0),d=xe((function(e){return L(t,e)>-1}),s,!0),p=[function(e,n,r){var o=!a&&(r||n!==u)||((t=n).nodeType?l(e,n,r):d(e,n,r));return t=null,o}];c<i;c++)if(n=r.relative[e[c].type])p=[xe(we(p),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[x]){for(o=++c;o<i&&!r.relative[e[o].type];o++);return Ce(c>1&&we(p),c>1&&be(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(F,"$1"),n,c<o&&je(e.slice(c,o)),o<i&&je(e=e.slice(o)),o<i&&be(e))}p.push(n)}return we(p)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,o,i,a,s,c,u,l=T[e+" "];if(l)return t?0:l.slice(0);for(s=e,c=[],u=r.preFilter;s;){for(a in n&&!(o=B.exec(s))||(o&&(s=s.slice(o[0].length)||s),c.push(i=[])),n=!1,(o=Q.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(F," ")}),s=s.slice(n.length)),r.filter)!(o=V[a].exec(s))||u[a]&&!(o=u[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):T(e,c).slice(0)},s=se.compile=function(e,t){var n,o=[],i=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=je(t[n]))[x]?o.push(s):i.push(s);(s=S(e,function(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,c,l){var d,h,v,g=0,y="0",b=i&&[],x=[],w=u,C=i||o&&r.find.TAG("*",l),j=k+=null==w?1:Math.random()||.1,T=C.length;for(l&&(u=a==f||a||l);y!==T&&null!=(d=C[y]);y++){if(o&&d){for(h=0,a||d.ownerDocument==f||(p(d),s=!m);v=e[h++];)if(v(d,a||f,s)){c.push(d);break}l&&(k=j)}n&&((d=!v&&d)&&g--,i&&b.push(d))}if(g+=y,n&&y!==g){for(h=0;v=t[h++];)v(b,x,a,s);if(i){if(g>0)for(;y--;)b[y]||x[y]||(x[y]=D.call(c));x=ke(x)}_.apply(c,x),l&&!i&&x.length>0&&g+t.length>1&&se.uniqueSort(c)}return l&&(k=j,u=w),b};return n?ue(i):i}(i,o))).selector=e}return s},c=se.select=function(e,t,n,o){var i,c,u,l,d,p="function"==typeof e&&e,f=!o&&a(e=p.selector||e);if(n=n||[],1===f.length){if((c=f[0]=f[0].slice(0)).length>2&&"ID"===(u=c[0]).type&&9===t.nodeType&&m&&r.relative[c[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(i=V.needsContext.test(e)?0:c.length;i--&&(u=c[i],!r.relative[l=u.type]);)if((d=r.find[l])&&(o=d(u.matches[0].replace(te,ne),ee.test(c[0].type)&&ge(t.parentNode)||t))){if(c.splice(i,1),!(e=o.length&&be(c)))return _.apply(n,o),n;break}}return(p||s(e,f))(o,t,!m,n,!t||ee.test(e)&&ge(t.parentNode)||t),n},n.sortStable=x.split("").sort(E).join("")===x,n.detectDuplicates=!!d,p(),n.sortDetached=le((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),le((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&le((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),le((function(e){return null==e.getAttribute("disabled")}))||de($,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(r);j.find=S,j.expr=S.selectors,j.expr[":"]=j.expr.pseudos,j.uniqueSort=j.unique=S.uniqueSort,j.text=S.getText,j.isXMLDoc=S.isXML,j.contains=S.contains,j.escapeSelector=S.escape;var A=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&j(e).is(n))break;r.push(e)}return r},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=j.expr.match.needsContext;function q(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,t,n){return g(t)?j.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?j.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?j.grep(e,(function(e){return l.call(t,e)>-1!==n})):j.filter(t,e,n)}j.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?j.find.matchesSelector(r,e)?[r]:[]:j.find.matches(e,j.grep(t,(function(e){return 1===e.nodeType})))},j.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(j(e).filter((function(){for(t=0;t<r;t++)if(j.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)j.find(e,o[t],n);return r>1?j.uniqueSort(n):n},filter:function(e){return this.pushStack(O(this,e||[],!1))},not:function(e){return this.pushStack(O(this,e||[],!0))},is:function(e){return!!O(this,"string"==typeof e&&N.test(e)?j(e):e||[],!1).length}});var _,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(j.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||_,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:P.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof j?t[0]:t,j.merge(this,j.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),D.test(r[1])&&j.isPlainObject(t))for(r in t)g(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=b.getElementById(r[2]))&&(this[0]=o,this.length=1),this}
vendor: 4,280 bytes, line 37
37return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(j):j.makeArray(e,this)}).prototype=j.fn,_=j(b);var L=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};function H(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}j.fn.extend({has:function(e){var t=j(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(j.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&j(e);if(!N.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&j.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?j.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?l.call(j(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(j.uniqueSort(j.merge(this.get(),j(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),j.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return A(e,"parentNode")},parentsUntil:function(e,t,n){return A(e,"parentNode",n)},next:function(e){return H(e,"nextSibling")},prev:function(e){return H(e,"previousSibling")},nextAll:function(e){return A(e,"nextSibling")},prevAll:function(e){return A(e,"previousSibling")},nextUntil:function(e,t,n){return A(e,"nextSibling",n)},prevUntil:function(e,t,n){return A(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(q(e,"template")&&(e=e.content||e),j.merge([],e.childNodes))}},(function(e,t){j.fn[e]=function(n,r){var o=j.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=j.filter(r,o)),this.length>1&&($[e]||j.uniqueSort(o),L.test(e)&&o.reverse()),this.pushStack(o)}}));var R=/[^\x20\t\r\n\f]+/g;function I(e){return e}function M(e){throw e}function W(e,t,n,r){var o;try{e&&g(o=e.promise)?o.call(e).done(t).fail(n):e&&g(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}j.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return j.each(e.match(R)||[],(function(e,n){t[n]=!0})),t}(e):j.extend({},e);var t,n,r,o,i=[],a=[],s=-1,c=function(){for(o=o||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},u={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){j.each(n,(function(n,r){g(r)?e.unique&&u.has(r)||i.push(r):r&&r.length&&"string"!==k(r)&&t(r)}))}(arguments),n&&!t&&c()),this},remove:function(){return j.each(arguments,(function(e,t){for(var n;(n=j.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--})),this},has:function(e){return e?j.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},j.extend({Deferred:function(e){var t=[["notify","progress",j.Callbacks("memory"),j.Callbacks("memory"),2],["resolve","done",j.Callbacks("once memory"),j.Callbacks("once memory"),0,"resolved"],["reject","fail",j.Callbacks("once memory"),j.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return j.Deferred((function(n){j.each(t,(function(t,r){var o=g(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&g(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,o){var i=0;function a(e,t,n,o){return function(){var s=this,c=arguments,u=function(){var r,u;if(!(e<i)){if((r=n.apply(s,c))===t.promise())throw new TypeError("Thenable self
37-resolution");u=r&&("object"==typeof r||"function"==typeof r)&&r.then,g(u)?o?u.call(r,a(i,t,I,o),a(i,t,M,o)):(i++,u.call(r,a(i,t,I,o),a(i,t,M,o),a(i,t,I,t.notifyWith))):(n!==I&&(s=void 0,c=[r]),(o||t.resolveWith)(s,c))}},l=o?u:function(){try{u()}catch(r){j.Deferred.exceptionHook&&j.Deferred.exceptionHook(r,l.stackTrace),e+1>=i&&(n!==M&&(s=void 0,c=[r]),t.rejectWith(s,c))}};e?l():(j.Deferred.getStackHook&&(l.stackTrace=j.Deferred.getStackHook()),r.setTimeout(l))}}return j.Deferred((function(r){t[0][3].add(a(0,r,g(o)?o:I,r.notifyWith)),t[1][3].add(a(0,r,g(e)?e:I)),t[2][3].add(a(0,r,g(n)?n:M))})).promise()},promise:function(e){return null!=e?j.extend(e,o):o}},i={};return j.each(t,(function(e,r){var a=r[2],s=r[5];o[r[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),i[r[0]]=function(){return i[r[0]+"With"](this===i?void 0:this,arguments),this},i[r[0]+"With"]=a.fireWith})),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=s.call(arguments),i=j.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?s.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&(W(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||g(o[n]&&o[n].then)))return i.then();for(;n--;)W(o[n],a(n),i.reject);return i.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;j.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&F.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},j.readyException=function(e){r.setTimeout((function(){throw e}))};var B=j.Deferred();function Q(){b.removeEventListener("DOMContentLoaded",Q),r.removeEventListener("load",Q),j.ready()}j.fn.ready=function(e){return B.then(e).catch((function(e){j.readyException(e)})),this},j.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--j.readyWait:j.isReady)||(j.isReady=!0,!0!==e&&--j.readyWait>0||B.resolveWith(b,[j]))}}),j.ready.then=B.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(j.ready):(b.addEventListener("DOMContentLoaded",Q),r.addEventListener("load",Q));var z=function(e,t,n,r,o,i,a){var s=0,c=e.length,u=null==n;if("object"===k(n))for(s in o=!0,n)z(e,t,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,g(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(j(e),n)})),t))for(;s<c;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:u?t.call(e):c?t(e[0],n):i},U=/^-ms-/,X=/-([a-z])/g;function V(e,t){return t.toUpperCase()}function G(e){return e.replace(U,"ms-").replace(X,V)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=j.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[G(t)]=n;else for(r in t)o[G(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(G):(t=G(t))in r?[t]:t.match(R)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||j.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!j.isEmptyObject(t)}};var K=new Y,Z=new Y,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}j.extend({hasData:function(e){return Z.hasData(e)||K.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return K.access(e,t,n)},_removeData:function(e,t){K.remove(e,t)}}),j.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=Z.get(i),1===i.nodeType&&!K.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=G(r.slice(5)),ne(i,r,o[r]));K.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){Z.set(this,e)})):z(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=Z.get(i,e))||void 0!==(n=ne(i,e))?n:void 0;this.each((function(){Z.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Z.remove(this,e)}))}}),j.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=K.get(e,t),n&&(!r||Array.isArray(n)?r=K.access(e,t,j.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=j.queue(e,t),r=n.length,o=n.shift(),i=j._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,(function(){j.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:j.Callbacks("once memory").add((function(){K.remove(e,[t+"queue",n])}))})}}),j.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?j.queue(this[0],e):void 0===t?this:this.each((function(){var n=j.queue(this,e,t);j._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&j.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){j.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=j.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=K.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oe=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ae=b.documentElement,se=function(e){return j.contains(e.ownerDocument,e)},ce={composed:!0};ae.getRootNode&&(se=function(e){return j.contains(e.ownerDocument,e)||e.getRootNode(ce)===e.ownerDocument});var ue=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===j.css(e,"display")};function le(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return j.css(e,t,"")},c=s(),u=n&&n[3]||(j.cssNumber[t]?"":"px"),l=e.nodeType&&(j.cssNumber[t]||"px"!==u&&+c)&&oe.exec(j.css(e,t));if(l&&l[3]!==u){for(c/=2,u=u||l[3],l=+c||1;a--;
vendor: 9,599 bytes, line 37
37)j.style(e,t,l+u),(1-i)*(1-(i=s()/c||.5))<=0&&(a=0),l/=i;l*=2,j.style(e,t,l+u),n=n||[]}return n&&(l=+l||+c||0,o=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=l,r.end=o)),o}var de={};function pe(e){var t,n=e.ownerDocument,r=e.nodeName,o=de[r];return o||(t=n.body.appendChild(n.createElement(r)),o=j.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),de[r]=o,o)}function fe(e,t){for(var n,r,o=[],i=0,a=e.length;i<a;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(o[i]=K.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&ue(r)&&(o[i]=pe(r))):"none"!==n&&(o[i]="none",K.set(r,"display",n)));for(i=0;i<a;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}j.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ue(this)?j(this).show():j(this).hide()}))}});var he,me,ve=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i;he=b.createDocumentFragment().appendChild(b.createElement("div")),(me=b.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),he.appendChild(me),v.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",v.option=!!he.lastChild;var be={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function xe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&q(e,t)?j.merge([e],n):n}function we(e,t){for(var n=0,r=e.length;n<r;n++)K.set(e[n],"globalEval",!t||K.get(t[n],"globalEval"))}be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,v.option||(be.optgroup=be.option=[1,"<select multiple='multiple'>","</select>"]);var ke=/<|&#?\w+;/;function Ce(e,t,n,r,o){for(var i,a,s,c,u,l,d=t.createDocumentFragment(),p=[],f=0,h=e.length;f<h;f++)if((i=e[f])||0===i)if("object"===k(i))j.merge(p,i.nodeType?[i]:i);else if(ke.test(i)){for(a=a||d.appendChild(t.createElement("div")),s=(ge.exec(i)||["",""])[1].toLowerCase(),c=be[s]||be._default,a.innerHTML=c[1]+j.htmlPrefilter(i)+c[2],l=c[0];l--;)a=a.lastChild;j.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(t.createTextNode(i));for(d.textContent="",f=0;i=p[f++];)if(r&&j.inArray(i,r)>-1)o&&o.push(i);else if(u=se(i),a=xe(d.appendChild(i),"script"),u&&we(a),n)for(l=0;i=a[l++];)ye.test(i.type||"")&&n.push(i);return d}var je=/^key/,Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function Ee(){return!1}function Ne(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function qe(e,t,n,r,o,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)qe(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Ee;else if(!o)return e;return 1===i&&(a=o,(o=function(e){return j().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=j.guid++)),e.each((function(){j.event.add(this,t,o,r,n)}))}function De(e,t,n){n?(K.set(e,t,!1),j.event.add(e,t,{namespace:!1,handler:function(e){var r,o,i=K.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(j.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),K.set(this,t,i),r=n(this,t),this[t](),i!==(o=K.get(this,t))||r?K.set(this,t,!1):o={},i!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else i.length&&(K.set(this,t,{value:j.event.trigger(j.extend(i[0],j.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,t)&&j.event.add(e,t,Ae)}j.event={global:{},add:function(e,t,n,r,o){var i,a,s,c,u,l,d,p,f,h,m,v=K.get(e);if(J(e))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&j.find.matchesSelector(ae,o),n.guid||(n.guid=j.guid++),(c=v.events)||(c=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return void 0!==j&&j.event.triggered!==t.type?j.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(R)||[""]).length;u--;)f=m=(s=Se.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),f&&(d=j.event.special[f]||{},f=(o?d.delegateType:d.bindType)||f,d=j.event.special[f]||{},l=j.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&j.expr.match.needsContext.test(o),namespace:h.join(".")},i),(p=c[f])||((p=c[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,l):p.push(l),j.event.global[f]=!0)},remove:function(e,t,n,r,o){var i,a,s,c,u,l,d,p,f,h,m,v=K.hasData(e)&&K.get(e);if(v&&(c=v.events)){for(u=(t=(t||"").match(R)||[""]).length;u--;)if(f=m=(s=Se.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=j.event.special[f]||{},p=c[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)l=p[i],!o&&m!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(i,1),l.selector&&p.delegateCount--,d.remove&&d.remove.call(e,l));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,v.handle)||j.removeEvent(e,f,v.handle),delete c[f])}else for(f in c)j.event.remove(e,f+t[u],n,r,!0);j.isEmptyObject(c)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=new Array(arguments.length),c=j.event.fix(e),u=(K.get(this,"events")||Object.create(null))[c.type]||[],l=j.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,c)){for(a=j.event.handlers.call(this,c,u),t=0;(o=a[t++])&&!c.isPropagationStopped();)for(c.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==i.namespace&&!c.rnamespace.test(i.namespace)||(c.handleObj=i,c.data=i.data,void 0!==(r=((j.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,o,i,a,s=[],c=t.delegateCount,u=e.target;if(c&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(i=[],a={},n=0;n<c;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?j(o,this).index(u)>-1:j.find(o,this,null,[u]).length),a[o]&&i.push(r);i.length&&s.push({elem:u,handlers:i})}return u=this,c<t.length&&s.push({elem:u,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(j.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[j.expando]?e:new j.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ve.test(t.type)&&t.click&&q(t,"input")&&De(t,"click",Ae),!1},trigger:function(e){var t=this||e;return ve.test(t.type)&&t.click&&q(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return ve.test(t.type)&&t.click&&q(t,"input")&&K.get(t,"click")||q(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},j.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},j.Event=function(e,t){if(!(this instanceof j.Event))return new j.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ae:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&j.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[j.expando]=!0},j.Event.prototype={constructor:j.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},j.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&je.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Te.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},j.event.addProp),j.each({focus:"focusin",blur:"focusout"},(function(e,t){j.event.special[e]={setup:function(){return De(this,e,Ne),!1},trigger:function(){return De(this,e),!0},delegateType:t}}
vendor: 3,030 bytes, line 37
37)),j.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){j.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,o=e.relatedTarget,i=e.handleObj;return o&&(o===r||j.contains(r,o))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),j.fn.extend({on:function(e,t,n,r){return qe(this,e,t,n,r)},one:function(e,t,n,r){return qe(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,j(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each((function(){j.event.remove(this,e,n,t)}))}});var Oe=/<script|<style|<link/i,_e=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Le(e,t){return q(e,"table")&&q(11!==t.nodeType?t:t.firstChild,"tr")&&j(e).children("tbody")[0]||e}function $e(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Re(e,t){var n,r,o,i,a,s;if(1===t.nodeType){if(K.hasData(e)&&(s=K.get(e).events))for(o in K.remove(t,"handle events"),s)for(n=0,r=s[o].length;n<r;n++)j.event.add(t,o,s[o][n]);Z.hasData(e)&&(i=Z.access(e),a=j.extend({},i),Z.set(t,a))}}function Ie(e,t,n,r){t=c(t);var o,i,a,s,u,l,d=0,p=e.length,f=p-1,h=t[0],m=g(h);if(m||p>1&&"string"==typeof h&&!v.checkClone&&_e.test(h))return e.each((function(o){var i=e.eq(o);m&&(t[0]=h.call(this,o,i.html())),Ie(i,t,n,r)}));if(p&&(i=(o=Ce(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(s=(a=j.map(xe(o,"script"),$e)).length;d<p;d++)u=o,d!==f&&(u=j.clone(u,!0,!0),s&&j.merge(a,xe(u,"script"))),n.call(e[d],u,d);if(s)for(l=a[a.length-1].ownerDocument,j.map(a,He),d=0;d<s;d++)u=a[d],ye.test(u.type||"")&&!K.access(u,"globalEval")&&j.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?j._evalUrl&&!u.noModule&&j._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):w(u.textContent.replace(Pe,""),u,l))}return e}function Me(e,t,n){for(var r,o=t?j.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||j.cleanData(xe(r)),r.parentNode&&(n&&se(r)&&we(xe(r,"script")),r.parentNode.removeChild(r));return e}j.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,i,a,s,c,u,l=e.cloneNode(!0),d=se(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||j.isXMLDoc(e)))for(a=xe(l),r=0,o=(i=xe(e)).length;r<o;r++)s=i[r],c=a[r],u=void 0,"input"===(u=c.nodeName.toLowerCase())&&ve.test(s.type)?c.checked=s.checked:"input"!==u&&"textarea"!==u||(c.defaultValue=s.defaultValue);if(t)if(n)for(i=i||xe(e),a=a||xe(l),r=0,o=i.length;r<o;r++)Re(i[r],a[r]);else Re(e,l);return(a=xe(l,"script")).length>0&&we(a,!d&&xe(e,"script")),l},cleanData:function(e){for(var t,n,r,o=j.event.special,i=0;void 0!==(n=e[i]);
vendor: 4,388 bytes, line 37
37i++)if(J(n)){if(t=n[K.expando]){if(t.events)for(r in t.events)o[r]?j.event.remove(n,r):j.removeEvent(n,r,t.handle);n[K.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),j.fn.extend({detach:function(e){return Me(this,e,!0)},remove:function(e){return Me(this,e)},text:function(e){return z(this,(function(e){return void 0===e?j.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ie(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,e).appendChild(e)}))},prepend:function(){return Ie(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ie(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ie(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(j.cleanData(xe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return j.clone(this,e,t)}))},html:function(e){return z(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!be[(ge.exec(e)||["",""])[1].toLowerCase()]){e=j.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(j.cleanData(xe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ie(this,arguments,(function(t){var n=this.parentNode;j.inArray(this,e)<0&&(j.cleanData(xe(this)),n&&n.replaceChild(t,this))}),e)}}),j.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){j.fn[e]=function(e){for(var n,r=[],o=j(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),j(o[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}}));var We=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),Fe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Be=function(e,t,n){var r,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];for(o in r=n.call(e),t)e.style[o]=i[o];return r},Qe=new RegExp(ie.join("|"),"i");function ze(e,t,n){var r,o,i,a,s=e.style;return(n=n||Fe(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||se(e)||(a=j.style(e,t)),!v.pixelBoxStyles()&&We.test(a)&&Qe.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i)),void 0!==a?a+"":a}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(u).appendChild(l);var e=r.getComputedStyle(l);n="1%"!==e.top,c=12===t(e.marginLeft),l.style.right="60%",a=36===t(e.right),o=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),ae.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,o,i,a,s,c,u=b.createElement("div"),l=b.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===l.style.backgroundClip,j.extend(v,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,o;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",ae.appendChild(e).appendChild(t).appendChild(n),o=r.getComputedStyle(t),s=parseInt(o.height)>3,ae.removeChild(e)),s}}))}();var Xe=["Webkit","Moz","ms"],Ve=b.createElement("div").style,Ge={};function Je(e){var t=j.cssProps[e]||Ge[e];return t||(e in Ve?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in Ve)return e}(e)||e)}
vendor: 5,064 bytes, line 37
37var Ye=/^(none|table(?!-c[ea]).+)/,Ke=/^--/,Ze={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=oe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,o,i){var a="width"===t?1:0,s=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=j.css(e,n+ie[a],!0,o)),r?("content"===n&&(c-=j.css(e,"padding"+ie[a],!0,o)),"margin"!==n&&(c-=j.css(e,"border"+ie[a]+"Width",!0,o))):(c+=j.css(e,"padding"+ie[a],!0,o),"padding"!==n?c+=j.css(e,"border"+ie[a]+"Width",!0,o):s+=j.css(e,"border"+ie[a]+"Width",!0,o));return!r&&i>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-c-s-.5))||0),c}function rt(e,t,n){var r=Fe(e),o=(!v.boxSizingReliable()||n)&&"border-box"===j.css(e,"boxSizing",!1,r),i=o,a=ze(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(We.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&o||!v.reliableTrDimensions()&&q(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===j.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===j.css(e,"boxSizing",!1,r),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+nt(e,t,n||(o?"border":"content"),i,r,a)+"px"}function ot(e,t,n,r,o){return new ot.prototype.init(e,t,n,r,o)}j.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=G(t),c=Ke.test(t),u=e.style;if(c||(t=Je(s)),a=j.cssHooks[t]||j.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:u[t];"string"===(i=typeof n)&&(o=oe.exec(n))&&o[1]&&(n=le(e,t,o),i="number"),null!=n&&n==n&&("number"!==i||c||(n+=o&&o[3]||(j.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var o,i,a,s=G(t);return Ke.test(t)||(t=Je(s)),(a=j.cssHooks[t]||j.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=ze(e,t,r)),"normal"===o&&t in et&&(o=et[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),j.each(["height","width"],(function(e,t){j.cssHooks[t]={get:function(e,n,r){if(n)return!Ye.test(j.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):Be(e,Ze,(function(){return rt(e,t,r)}))},set:function(e,n,r){var o,i=Fe(e),a=!v.scrollboxSize()&&"absolute"===i.position,s=(a||r)&&"border-box"===j.css(e,"boxSizing",!1,i),c=r?nt(e,t,r,s,i):0;return s&&a&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-nt(e,t,"border",!1,i)-.5)),c&&(o=oe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=j.css(e,t)),tt(0,n,c)}}})),j.cssHooks.marginLeft=Ue(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-Be(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),j.each({margin:"",padding:"",border:"Width"},(function(e,t){j.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+ie[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(j.cssHooks[e+t].set=tt)})),j.fn.extend({css:function(e,t){return z(this,(function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=Fe(e),o=t.length;a<o;a++)i[t[a]]=j.css(e,t[a],!1,r);return i}return void 0!==n?j.style(e,t,n):j.css(e,t)}),e,t,arguments.length>1)}}),j.Tween=ot,ot.prototype={constructor:ot,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||j.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(j.cssNumber[n]?"":"px")},cur:function(){var e=ot.propHooks[this.prop];return e&&e.get?e.get(this):ot.propHooks._default.get(this)},run:function(e){var t,n=ot.propHooks[this.prop];return this.options.duration?this.pos=t=j.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ot.propHooks._default.set(this),this}},ot.prototype.init.prototype=ot.prototype,ot.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=j.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){j.fx.step[e.prop]?j.fx.step[e.prop](e):1!==e.elem.nodeType||!j.cssHooks[e.prop]&&null==e.elem.style[Je(e.prop)]?e.elem[e.prop]=e.now:j.style(e.elem,e.prop,e.now+e.unit)}}},ot.propHooks.scrollTop=ot.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},j.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},j.fx=ot.prototype.init,j.fx.step={};
vendor: 7,631 bytes, line 37
37var it,at,st=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ut(){at&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ut):r.setTimeout(ut,j.fx.interval),j.fx.tick())}function lt(){return r.setTimeout((function(){it=void 0})),it=Date.now()}function dt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=ie[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function pt(e,t,n){for(var r,o=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function ft(e,t,n){var r,o,i=0,a=ft.prefilters.length,s=j.Deferred().always((function(){delete c.elem})),c=function(){if(o)return!1;for(var t=it||lt(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),i=0,a=u.tweens.length;i<a;i++)u.tweens[i].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:j.extend({},t),opts:j.extend(!0,{specialEasing:{},easing:j.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||lt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=j.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),l=u.props;for(!function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=G(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=j.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(l,u.opts.specialEasing);i<a;i++)if(r=ft.prefilters[i].call(u,e,l,u.opts))return g(r.stop)&&(j._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return j.map(l,pt,u),g(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),j.fx.timer(j.extend(c,{elem:e,anim:u,queue:u.opts.queue})),u}j.Animation=j.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,oe.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(R);for(var n,r=0,o=e.length;r<o;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,c,u,l,d="width"in t||"height"in t,p=this,f={},h=e.style,m=e.nodeType&&ue(e),v=K.get(e,"fxshow");for(r in n.queue||(null==(a=j._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always((function(){p.always((function(){a.unqueued--,j.queue(e,"fx").length||a.empty.fire()}))}))),t)if(o=t[r],st.test(o)){if(delete t[r],i=i||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!v||void 0===v[r])continue;m=!0}f[r]=v&&v[r]||j.style(e,r)}if((c=!j.isEmptyObject(t))||!j.isEmptyObject(f))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(u=v&&v.display)&&(u=K.get(e,"display")),"none"===(l=j.css(e,"display"))&&(u?l=u:(fe([e],!0),u=e.style.display||u,l=j.css(e,"display"),fe([e]))),("inline"===l||"inline-block"===l&&null!=u)&&"none"===j.css(e,"float")&&(c||(p.done((function(){h.display=u})),null==u&&(l=h.display,u="none"===l?"":l)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),c=!1,f)c||(v?"hidden"in v&&(m=v.hidden):v=K.access(e,"fxshow",{display:u}),i&&(v.hidden=!m),m&&fe([e],!0),p.done((function(){for(r in m||fe([e]),K.remove(e,"fxshow"),f)j.style(e,r,f[r])}))),c=pt(m?v[r]:0,r,p),r in v||(v[r]=c.start,m&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),j.speed=function(e,t,n){var r=e&&"object"==typeof e?j.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return j.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in j.fx.speeds?r.duration=j.fx.speeds[r.duration]:r.duration=j.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&j.dequeue(this,r.queue)},r},j.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ue).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=j.isEmptyObject(e),i=j.speed(t,n,r),a=function(){var t=ft(this,j.extend({},e),i);(o||K.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",i=j.timers,a=K.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&ct.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||j.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=K.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=j.timers,a=r?r.length:0;for(n.finish=!0,j.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),j.each(["toggle","show","hide"],(function(e,t){var n=j.fn[t];j.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,r,o)}})),j.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){j.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),j.timers=[],j.fx.tick=function(){var e,t=0,n=j.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||j.fx.stop(),it=void 0},j.fx.timer=function(e){j.timers.push(e),j.fx.start()},j.fx.interval=13,j.fx.start=function(){at||(at=!0,ut())},j.fx.stop=function(){at=null},j.fx.speeds={slow:600,fast:200,_default:400},j.fn.delay=function(e,t){return e=j.fx&&j.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var o=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(o)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var ht,mt=j.expr.attrHandle;j.fn.extend({attr:function(e,t){return z(this,j.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){j.removeAttr(this,e)}))}}),j.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?j.prop(e,t,n):(1===i&&j.isXMLDoc(e)||(o=j.attrHooks[t.toLowerCase()]||(j.expr.match.bool.test(t)?ht:void 0)),void 0!==n?null===n?void j.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=j.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&q(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(R);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),ht={set:function(e,t,n){return!1===t?j.removeAttr(e,n):e.setAttribute(n,n),n}},j.each(j.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||j.find.attr;mt[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=mt[a],mt[a]=o,o=null!=n(e,t,r)?a:null,mt[a]=i),o}}
vendor: 22,322 bytes, line 37
37));var vt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function yt(e){return(e.match(R)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(R)||[]}j.fn.extend({prop:function(e,t){return z(this,j.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[j.propFix[e]||e]}))}}),j.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&j.isXMLDoc(e)||(t=j.propFix[t]||t,o=j.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=j.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(j.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),j.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){j.propFix[this.toLowerCase()]=this})),j.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,c=0;if(g(e))return this.each((function(t){j(this).addClass(e.call(this,t,bt(this)))}));if((t=xt(e)).length)for(;n=this[c++];)if(o=bt(n),r=1===n.nodeType&&" "+yt(o)+" "){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(s=yt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,c=0;if(g(e))return this.each((function(t){j(this).removeClass(e.call(this,t,bt(this)))}));if(!arguments.length)return this.attr("class","");if((t=xt(e)).length)for(;n=this[c++];)if(o=bt(n),r=1===n.nodeType&&" "+yt(o)+" "){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");o!==(s=yt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){j(this).toggleClass(e.call(this,n,bt(this),t),t)})):this.each((function(){var t,o,i,a;if(r)for(o=0,i=j(this),a=xt(e);t=a[o++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=bt(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":K.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+yt(bt(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;j.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=g(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,j(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=j.map(o,(function(e){return null==e?"":e+""}))),(t=j.valHooks[this.type]||j.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=j.valHooks[o.type]||j.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(wt,""):null==n?"":n:void 0}}),j.extend({valHooks:{option:{get:function(e){var t=j.find.attr(e,"value");return null!=t?t:yt(j.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],c=a?i+1:o.length;for(r=i<0?c:a?i:0;r<c;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!q(n.parentNode,"optgroup"))){if(t=j(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=j.makeArray(t),a=o.length;a--;)((r=o[a]).selected=j.inArray(j.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),j.each(["radio","checkbox"],(function(){j.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=j.inArray(j(e).val(),t)>-1}},v.checkOn||(j.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),v.focusin="onfocusin"in r;var kt=/^(?:focusinfocus|focusoutblur)$/,Ct=function(e){e.stopPropagation()};j.extend(j.event,{trigger:function(e,t,n,o){var i,a,s,c,u,l,d,p,h=[n||b],m=f.call(e,"type")?e.type:e,v=f.call(e,"namespace")?e.namespace.split("."):[];if(a=p=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!kt.test(m+j.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[j.expando]?e:new j.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:j.makeArray(t,[e]),d=j.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(n,t))){if(!o&&!d.noBubble&&!y(n)){for(c=d.delegateType||m,kt.test(c+m)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(n.ownerDocument||b)&&h.push(s.defaultView||s.parentWindow||r)}for(i=0;(a=h[i++])&&!e.isPropagationStopped();)p=a,e.type=i>1?c:d.bindType||m,(l=(K.get(a,"events")||Object.create(null))[e.type]&&K.get(a,"handle"))&&l.apply(a,t),(l=u&&a[u])&&l.apply&&J(a)&&(e.result=l.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!J(n)||u&&g(n[m])&&!y(n)&&((s=n[u])&&(n[u]=null),j.event.triggered=m,e.isPropagationStopped()&&p.addEventListener(m,Ct),n[m](),e.isPropagationStopped()&&p.removeEventListener(m,Ct),j.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var r=j.extend(new j.Event,n,{type:e,isSimulated:!0});j.event.trigger(r,null,t)}}),j.fn.extend({trigger:function(e,t){return this.each((function(){j.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return j.event.trigger(e,t,n,!0)}}),v.focusin||j.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){j.event.simulate(t,e.target,j.event.fix(e))};j.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=K.access(r,t);o||r.addEventListener(e,n,!0),K.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=K.access(r,t)-1;o?K.access(r,t,o):(r.removeEventListener(e,n,!0),K.remove(r,t))}}}));var jt=r.location,Tt={guid:Date.now()},St=/\?/;j.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||j.error("Invalid XML: "+e),t};var At=/\[\]$/,Et=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,qt=/^(?:input|select|textarea|keygen)/i;function Dt(e,t,n,r){var o;if(Array.isArray(t))j.each(t,(function(t,o){n||At.test(e)?r(e,o):Dt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)}));else if(n||"object"!==k(t))r(e,t);else for(o in t)Dt(e+"["+o+"]",t[o],n,r)}j.param=function(e,t){var n,r=[],o=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!j.isPlainObject(e))j.each(e,(function(){o(this.name,this.value)}));else for(n in e)Dt(n,e[n],t,o);return r.join("&")},j.fn.extend({serialize:function(){return j.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=j.prop(this,"elements");return e?j.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!j(this).is(":disabled")&&qt.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!ve.test(e))})).map((function(e,t){var n=j(this).val();return null==n?null:Array.isArray(n)?j.map(n,(function(e){return{name:t.name,value:e.replace(Et,"\r\n")}})):{name:t.name,value:n.replace(Et,"\r\n")}})).get()}});var Ot=/%20/g,_t=/#.*$/,Pt=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,$t=/^(?:GET|HEAD)$/,Ht=/^\/\//,Rt={},It={},Mt="*/".concat("*"),Wt=b.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(R)||[];if(g(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Bt(e,t,n,r){var o={},i=e===It;function a(s){var c;return o[s]=!0,j.each(e[s]||[],(function(e,s){var u=s(t,n,r);return"string"!=typeof u||i||o[u]?i?!(c=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),c}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Qt(e,t){var n,r,o=j.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&j.extend(!0,e,r),e}Wt.href=jt.href,j.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(jt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Mt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":j.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Qt(Qt(e,j.ajaxSettings),t):Qt(j.ajaxSettings,e)},ajaxPrefilter:Ft(Rt),ajaxTransport:Ft(It),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o,i,a,s,c,u,l,d,p,f=j.ajaxSetup({},t),h=f.context||f,m=f.context&&(h.nodeType||h.jquery)?j(h):j.event,v=j.Deferred(),g=j.Callbacks("once memory"),y=f.statusCode||{},x={},w={},k="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Lt.exec(i);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?i:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==u&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)C.always(e[C.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||k;return n&&n.abort(t),T(0,t),this}};if(v.promise(C),f.url=((e||f.url||jt.href)+"").replace(Ht,jt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(R)||[""],null==f.crossDomain){c=b.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=Wt.protocol+"//"+Wt.host!=c.protocol+"//"+c.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=j.param(f.data,f.traditional)),Bt(Rt,f,t,C),u)return C;for(d in(l=j.event&&f.global)&&0==j.active++&&j.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!$t.test(f.type),o=f.url.replace(_t,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ot,"+")):(p=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(St.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(Pt,"$1"),p=(St.test(o)?"&":"?")+"_="+Tt.guid+++p),f.url=o+p),f.ifModified&&(j.lastModified[o]&&C.setRequestHeader("If-Modified-Since",j.lastModified[o]),j.etag[o]&&C.setRequestHeader("If-None-Match",j.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Mt+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(h,C,f)||u))return C.abort();if(k="abort",g.add(f.complete),C.done(f.success),C.fail(f.error),n=Bt(It,f,t,C)){if(C.readyState=1,l&&m.trigger("ajaxSend",[C,f]),u)return C;f.async&&f.timeout>0&&(s=r.setTimeout((function(){C.abort("timeout")}),f.timeout));try{u=!1,n.send(x,T)}catch(e){if(u)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,a,c){var d,p,b,x,w,k=t;u||(u=!0,s&&r.clearTimeout(s),n=void 0,i=c||"",C.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(x=function(e,t,n){for(var r,o,i,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){c.unshift(o);break}if(c[0]in n)i=c[0];else{for(o in n){if(!c[0]||e.converters[o+" "+c[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==c[0]&&c.unshift(i),n[i]}(f,C,a)),!d&&j.inArray("script",f.dataTypes)>-1&&(f.converters["text script"]=function(){}),x=function(e,t,n,r){var o,i,a,s,c,u={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(i=l.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=i,i=l.shift())if("*"===i)i=c;else if("*"!==c&&c!==i){if(!(a=u[c+" "+i]||u["* "+i]))for(o in u)if((s=o.split(" "))[1]===i&&(a=u[c+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[o]:!0!==u[o]&&(i=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+c+" to "+i}}}return{state:"success",data:t}}(f,x,C,d),d?(f.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(j.lastModified[o]=w),(w=C.getResponseHeader("etag"))&&(j.etag[o]=w)),204===e||"HEAD"===f.type?k="nocontent":304===e?k="notmodified":(k=x.state,p=x.data,d=!(b=x.error))):(b=k,!e&&k||(k="error",e<0&&(e=0))),C.status=e,C.statusText=(t||k)+"",d?v.resolveWith(h,[p,k,C]):v.rejectWith(h,[C,k,b]),C.statusCode(y),y=void 0,l&&m.trigger(d?"ajaxSuccess":"ajaxError",[C,f,d?p:b]),g.fireWith(h,[C,k]),l&&(m.trigger("ajaxComplete",[C,f]),--j.active||j.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return j.get(e,t,n,"json")},getScript:function(e,t){return j.get(e,void 0,t,"script")}}),j.each(["get","post"],(function(e,t){j[t]=function(e,n,r,o){return g(n)&&(o=o||r,r=n,n=void 0),j.ajax(j.extend({url:e,type:t,dataType:o,data:n,success:r},j.isPlainObject(e)&&e))}})),j.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),j._evalUrl=function(e,t,n){return j.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){j.globalEval(e,t,n)}})},j.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=j(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){j(this).wrapInner(e.call(this,t))})):this.each((function(){var t=j(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){j(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){j(this).replaceWith(this.childNodes)})),this}}),j.expr.pseudos.hidden=function(e){return!j.expr.pseudos.visible(e)},j.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},j.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Ut=j.ajaxSettings.xhr();v.cors=!!Ut&&"withCredentials"in Ut,v.ajax=Ut=!!Ut,j.ajaxTransport((function(e){var t,n;if(v.cors||Ut&&!e.crossDomain)return{send:function(o,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),j.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),j.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return j.globalEval(e),e}}}),j.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),j.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=j("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Xt,Vt=[],Gt=/(=)\?(?=&|$)|\?\?/;j.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||j.expando+"_"+Tt.guid++;return this[e]=!0,e}}),j.ajaxPrefilter("json jsonp",(function(e,t,n){var o,i,a,s=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Gt,"$1"+o):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||j.error(o+" was not called"),a[0]},e.dataTypes[0]="json",i=r[o],r[o]=function(){a=arguments},n.always((function(){void 0===i?j(r).removeProp(o):r[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,Vt.push(o)),a&&g(i)&&i(a[0]),a=i=void 0})),"script"})),v.createHTMLDocument=((Xt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),j.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),i=!n&&[],(o=D.exec(e))?[t.createElement(o[1])]:(o=Ce([e],t,i),i&&i.length&&j(i).remove(),j.merge([],o.childNodes)));var r,o,i},j.fn.load=function(e,t,n){var r,o,i,a=this,s=e.indexOf(" ");return s>-1&&(r=yt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&j.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){i=arguments,a.html(r?j("<div>").append(j.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},j.expr.pseudos.animated=function(e){return j.grep(j.timers,(function(t){return e===t.elem})).length},j.offset={setOffset:function(e,t,n){var r,o,i,a,s,c,u=j.css(e,"position"),l=j(e),d={};"static"===u&&(e.style.position="relative"),s=l.offset(),i=j.css(e,"top"),c=j.css(e,"left"),("absolute"===u||"fixed"===u)&&(i+c).indexOf("auto")>-1?(a=(r=l.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(c)||0),g(t)&&(t=t.call(e,n,j.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),l.css(d))}},j.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){j.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===j.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===j.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=j(e).offset()).top+=j.css(e,"borderTopWidth",!0),o.left+=j.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-j.css(r,"marginTop",!0),left:t.left-o.left-j.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===j.css(e,"position");)e=e.offsetParent;return e||ae}))}}),j.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;j.fn[e]=function(r){return z(this,(function(e,r,o){var i;if(y(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o}),e,r,arguments.length)}})),j.each(["top","left"],(function(e,t){j.cssHooks[t]=Ue(v.pixelPosition,(function(e,n){if(n)return n=ze(e,t),We.test(n)?j(e).position()[t]+"px":n}))})),j.each({Height:"height",Width:"width"},(function(e,t){j.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){j.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return z(this,(function(t,n,o){var i;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?j.css(t,n,s):j.style(t,n,o,s)}),t,a?o:void 0,a)}}))})),j.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){j.fn[t]=function(e){return this.on(t,e)}})),j.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),j.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){j.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Jt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;j.proxy=function(e,t){var n,r,o;
37if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=s.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||j.guid++,o},j.holdReady=function(e){e?j.readyWait++:j.ready(!0)},j.isArray=Array.isArray,j.parseJSON=JSON.parse,j.nodeName=q,j.isFunction=g,j.isWindow=y,j.camelCase=G,j.type=k,j.now=Date.now,j.isNumeric=function(e){var t=j.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},j.trim=function(e){return null==e?"":(e+"").replace(Jt,"")},void 0===(n=function(){return j}.apply(t,[]))||(e.exports=n);var Yt=r.jQuery,Kt=r.$;return j.noConflict=function(e){return r.$===j&&(r.$=Kt),e&&r.jQuery===j&&(r.jQuery=Yt),j},void 0===o&&(r.jQuery=r.$=j),j}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e].call(n.exports,n,n.exports,a),n.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>"a434b5f71c30e8dcef50-chunk.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="prestashop-core-theme-js:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+o){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var p=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={179:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,c]=n,u=0;for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(c)c(a);for(t&&t(n);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[i[u]]=0},n=self.webpackChunkprestashop_core_theme_js=self.webpackChunkprestashop_core_theme_js||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e=a(204),t=a.n(e);void 0===t().migrateMute&&(t().migrateMute=!window.prestashop.debug);a(290),a(768),a(333);const n=prestashop;var r=a.n(n); 38/** 39 * Copyright since 2007 PrestaShop SA and Contributors 40 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 41 * 42 * NOTICE OF LICENSE 43 * 44 * This source file is subject to the Open Software License (OSL 3.0)
45 * that is bundled with this package in the file LICENSE.md. 46 * It is also available through the world-wide-web at this URL: 47 * https://opensource.org/licenses/OSL-3.0 48 * If you did not receive a copy of the license and are unable to 49 * obtain it through the world-wide-web, please send an email 50 * to [email protected] so we can send you a copy immediately. 51 * 52 * DISCLAIMER 53 * 54 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 55 * versions in the future. If you wish to customize PrestaShop for your 56 * needs please refer to https://devdocs.prestashop.com/ for more information. 57 * 58 * @author PrestaShop SA and Contributors <[email protected]> 59 * @copyright Since 2007 PrestaShop SA and Contributors 60 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 61 */ 62r().selectors={quantityWanted:"#quantity_wanted",product:{imageContainer:".quickview .images-container, .page-product:not(.modal-open) .row .images-container, .page-product:not(.modal-open) .product-container .images-container, .quickview .js-images-container, .page-product:not(.modal-open) .row .js-images-container, .page-product:not(.modal-open) .product-container .js-images-container",container:".product-container, .js-product-container",availability:"#product-availability, .js-product-availability",actions:".product-actions, .js-product-actions",variants:".product-variants, .js-product-variants",refresh:".product-refresh, .js-product-refresh",miniature:".js-product-miniature",minimalQuantity:".product-minimal-quantity, .js-product-minimal-quantity",addToCart:".quickview .product-add-to-cart, .page-product:not(.modal-open) .row .product-add-to-cart, .page-product:not(.modal-open) .product-container .product-add-to-cart, .quickview .js-product-add-to-cart, .page-product:not(.modal-open) .row .js-product-add-to-cart, .page-product:not(.modal-open) .product-container .js-product-add-to-cart",prices:".quickview .product-prices, .page-product:not(.modal-open) .row .product-prices, .page-product:not(.modal-open) .product-container .product-prices, .quickview .js-product-prices, .page-product:not(.modal-open) .row .js-product-prices, .page-product:not(.modal-open) .product-container .js-product-prices",inputCustomization:'.product-actions input[name="id_customization"], .js-product-actions .js-product-customization-id',customization:".quickview .product-customization, .page-product:not(.modal-open) .row .product-customization, .page-product:not(.modal-open) .product-container .product-customization, .quickview .js-product-customization, .page-product:not(.modal-open) .row .js-product-customization, .page-product:not(.modal-open) .product-container .js-product-customization",variantsUpdate:".quickview .product-variants, .page-product:not(.modal-open) .row .product-variants, .page-product:not(.modal-open) .product-container .product-variants, .quickview .js-product-variants, .page-product:not(.modal-open) .row .js-product-variants, .page-product:not(.modal-open) .js-product-container .js-product-variants",discounts:".quickview .product-discounts, .page-product:not(.modal-open) .row .product-discounts, .page-product:not(.modal-open) .product-container .product-discounts, .quickview .js-product-discounts, .page-product:not(.modal-open) .row .js-product-discounts, .page-product:not(.modal-open) .product-container .js-product-discounts",additionalInfos:".quickview .product-additional-info, .page-product:not(.modal-open) .row .product-additional-info, .page-product:not(.modal-open) .product-container .product-additional-info, .quickview .js-product-additional-info, .page-product:not(.modal-open) .row .js-product-additional-info, .page-product:not(.modal-open) .js-product-container .js-product-additional-info",details:".quickview #product-details, #product-details, .quickview .js-product-details, .js-product-details",flags:".quickview .product-flags, .page-product:not(.modal-open) .row .product-flags, .page-product:not(.modal-open) .product-container .product-flags, .quickview .js-product-flags, .page-product:not(.modal-open) .row .js-product-flags, .page-product:not(.modal-open) .js-product-container .js-product-flags"},listing:{quickview:".quick-view, .js-quick-view"},checkout:{form:".checkout-step form",currentStep:"js-current-step",step:".checkout-step",stepTitle:".step-title, .js-step-title",confirmationSelector:"#payment-confirmation button, .js-payment-confirmation",conditionsSelector:'#conditions-to-approve input[type="checkbox"], .js-conditions-to-approve',conditionAlertSelector:".js-alert-payment-conditions",additionalInformatonSelector:".js-additional-information",optionsForm:".js-payment-option-form",termsCheckboxSelector:'#conditions-to-approve input[name="conditions_to_approve[terms-and-conditions]"], .js-conditions-to-approve input[name="conditions_to_approve[terms-and-conditions]"]',paymentBinary:".payment-binary, .js-payment-binary",deliveryFormSelector:"#js-delivery",summarySelector:"#js-checkout-summary",deliveryStepSelector:"#checkout-delivery-step",editDeliveryButtonSelector:".js-edit-delivery",deliveryOption:".delivery-option, .js-delivery-option",cartPaymentStepRefresh:".js-cart-payment-step-refresh",editAddresses:".js-edit-addresses",deliveryAddressRadios:"#delivery-addresses input[type=radio], #invoice-addresses input[type=radio], .js-address-selector input[type=radio]",addressItem:".address-item, .js-address-item",addressesStep:"#checkout-addresses-step",addressItemChecked:".address-item:has(input[type=radio]:checked), .js-address-item:has(input[type=radio]:checked)",addressError:".js-address-error",n
62otValidAddresses:"#not-valid-addresses, .js-not-valid-addresses",invoiceAddresses:"#invoice-addresses, .js-address-selector",addressForm:".js-address-form"},cart:{detailedTotals:".cart-detailed-totals, .js-cart-detailed-totals",summaryItemsSubtotal:".cart-summary-items-subtotal, .js-cart-summary-items-subtotal",summarySubTotalsContainer:".cart-summary-subtotals-container, .js-cart-summary-subtotals-container",summaryTotals:".cart-summary-totals, .js-cart-summary-totals",summaryProducts:".cart-summary-products, .js-cart-summary-products",detailedActions:".cart-detailed-actions, .js-cart-detailed-actions",voucher:".cart-voucher, .js-cart-voucher",overview:".cart-overview",summaryTop:".cart-summary-top, .js-cart-summary-top",productCustomizationId:"#product_customization_id, .js-product-customization-id",lineProductQuantity:".js-cart-line-product-quantity"}},t()(document).ready((()=>{r().emit("selectorsInit")}));function o(e){const t={};return window.location.href.replace(location.hash,"").replace(/[?&]+([^=&]+)=?([^&]*)?/gi,((e,n,r)=>{t[n]=void 0!==r?r:""})),void 0!==e?t[e]?t[e]:null:t}function i(){const e=o();if(e.updatedTransaction)return void window.location.reload();e.updatedTransaction=1;const t=Object.entries(e).map((e=>e.join("="))).join("&");window.location.href=`${window.location.pathname}?${t}`}r().checkPasswordScore=e=>{return t=void 0,n=null,r=function*(){return(0,(yield a.e(341).then(a.t.bind(a,341,23))).default)(e)},new Promise(((e,o)=>{var i=e=>{try{s(r.next(e))}catch(e){o(e)}},a=e=>{try{s(r.throw(e))}catch(e){o(e)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,a);s((r=r.apply(t,n)).next())}));var t,n,r}, 63/** 64 * Copyright since 2007 PrestaShop SA and Contributors 65 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 66 * 67 * NOTICE OF LICENSE 68 * 69 * This source file is subject to the Open Software License (OSL 3.0) 70 * that is bundled with this package in the file LICENSE.md. 71 * It is also available through the world-wide-web at this URL: 72 * https://opensource.org/licenses/OSL-3.0 73 * If you did not receive a copy of the license and are unable to 74 * obtain it through the world-wide-web, please send an email 75 * to [email protected] so we can send you a copy immediately. 76 * 77 * DISCLAIMER 78 * 79 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 80 * versions in the future. If you wish to customize PrestaShop for your 81 * needs please refer to https://devdocs.prestashop.com/ for more information. 82 * 83 * @author PrestaShop SA and Contributors <[email protected]> 84 * @copyright Since 2007 PrestaShop SA and Contributors 85 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 86 */ 87t()(document).ready((()=>{r().on("updateCart",(e=>{r().cart=e.resp.cart;const n=t()(".js-cart").data("refresh-url");if(!n)return;let o={};e&&e.reason&&(o={id_product_attribute:e.reason.idProductAttribute,id_product:e.reason.idProduct}),t().post(n,o).then((e=>{t()(r().selectors.cart.detailedTotals).replaceWith(e.cart_detailed_totals),t()(r().selectors.cart.summaryItemsSubtotal).replaceWith(e.cart_summary_items_subtotal),t()(r().selectors.cart.summarySubTotalsContainer).replaceWith(e.cart_summary_subtotals_container),t()(r().selectors.cart.summaryProducts).replaceWith(e.cart_summary_products),t()(r().selectors.cart.summaryTotals).replaceWith(e.cart_summary_totals),t()(r().selectors.cart.detailedActions).replaceWith(e.cart_detailed_actions),t()(r().selectors.cart.voucher).replaceWith(e.cart_voucher),t()(r().selectors.cart.overview).replaceWith(e.cart_detailed),t()(r().selectors.cart.summaryTop).replaceWith(e.cart_summary_top),t()(r().selectors.cart.productCustomizationId).val(0),t()(r().selectors.cart.lineProductQuantity).each(((e,n)=>{const r=t()(n);r.attr("value",r.val())})),t()(r().selectors.checkout.cartPaymentStepRefresh).length&&i(),r().emit("updatedCart",{eventType:"updateCart",resp:e})})).fail((e=>{r().emit("handleError",{eventType:"updateCart",resp:e})}))}));const e=t()("body");e.on("click",'[data-button-action="add-to-cart"]',(e=>{e.preventDefault();const n=t()(e.currentTarget.form),o=`${n.serialize()}&add=1&action=update`,i=n.attr("action"),a=t()(e.currentTarget);a.prop("disabled",!0);let s=e=>{e.parents(r().selectors.product.addToCart).first().find(r().selectors.product.minimalQuantity).addClass("error"),e.parent().find("label").addClass("error")};const c=n.find("input[min]");(e=>{let n=!0;return e.each(((e,r)=>{const o=t()(r),i=parseInt(o.attr("min"),10);i&&o.val()<i&&(s(o),n=!1)})),n})(c)?t().post(i,o,null,"json").then((e=>{e.hasError?r().emit("handleError",{eventType:"addProductToCart",resp:e}):r().emit("updateCart",{reason:{idProduct:e.id_product,idProductAttribute:e.id_product_attribute,idCustomization:e.id_customization,linkAction:"add-to-cart",cart:e.cart},resp:e})})).fail((e=>{r().emit("handleError",{eventType:"addProductToCart",resp:e})})).always((()=>{setTimeout((()=>{a.prop("disabled",!1)}),1e3)})):s(c)})),e.on("submit",'[data-link-action="add-voucher"]',(e=>{e.preventDefault();const n=t()(e.currentTarget),o=n.attr("action");0===n.find("[name=action]").length&&n.append(t()("<input>",{type:"hidden",name:"ajax",value:1})),0===n.find("[name=action]").length&&n.append(t()("<input>",{type:"hidden",name:"action",value:"update"})),t().post(o,n.serialize(),null,"json").then((n=>{n.hasError?t()(".js-error").show().find(".js-error-text").text(n.errors[0]):r().emit("updateCart",{reason:e.target.dataset,resp:n})})).fail((e=>{r().emit("handleError",{eventType:"updateCart",resp:e})}))}))})); 88/** 89 * Copyright since 2007 PrestaShop SA and Contributors 90 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 91 * 92 * NOTICE OF LICENSE 93 * 94 * This source file is subject to the Open Software License (OSL 3.0)
95 * that is bundled with this package in the file LICENSE.md. 96 * It is also available through the world-wide-web at this URL: 97 * https://opensource.org/licenses/OSL-3.0 98 * If you did not receive a copy of the license and are unable to 99 * obtain it through the world-wide-web, please send an email 100 * to [email protected] so we can send you a copy immediately. 101 * 102 * DISCLAIMER 103 * 104 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 105 * versions in the future. If you wish to customize PrestaShop for your 106 * needs please refer to https://devdocs.prestashop.com/ for more information. 107 * 108 * @author PrestaShop SA and Contributors <[email protected]> 109 * @copyright Since 2007 PrestaShop SA and Contributors 110 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 111 */ 112const s=o("editAddress"),c=o("use_same_address");t()(window).on("load",(()=>{let e=t()(`${r().selectors.checkout.addressError}:visible`);if(0===parseInt(c,10)&&t()(r().selectors.checkout.invoiceAddresses).trigger("click"),(null!==s||t()(`${r().selectors.checkout.addressForm}:visible`).length>1)&&e.hide(),e.length>0){const n=t()(r().selectors.checkout.addressError).prop("id").split("-").pop();e.each((function(){u(!0,n,t()(this).attr("name").split("-").pop())}))}e=t()(`${r().selectors.checkout.addressError}:visible`),l(e.length<=0)}));const u=function(e,n,r){const o=t()(`#id-address-${r}-address-${n} a.edit-address`),i=["text-info","address-item-invalid"];t()(`#${r}-addresses a.edit-address`).removeClass(i),o.toggleClass(i,e)},l=function(e){t()("button[name=confirm-addresses]").prop("disabled",!e)}; 113/** 114 * Copyright since 2007 PrestaShop SA and Contributors 115 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 116 * 117 * NOTICE OF LICENSE 118 * 119 * This source file is subject to the Open Software License (OSL 3.0) 120 * that is bundled with this package in the file LICENSE.md. 121 * It is also available through the world-wide-web at this URL: 122 * https://opensource.org/licenses/OSL-3.0 123 * If you did not receive a copy of the license and are unable to 124 * obtain it through the world-wide-web, please send an email 125 * to [email protected] so we can send you a copy immediately. 126 * 127 * DISCLAIMER 128 * 129 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 130 * versions in the future. If you wish to customize PrestaShop for your 131 * needs please refer to https://devdocs.prestashop.com/ for more information. 132 * 133 * @author PrestaShop SA and Contributors <[email protected]> 134 * @copyright Since 2007 PrestaShop SA and Contributors 135 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 136 */ 137r().checkout=r().checkout||{},r().checkout.onCheckOrderableCartResponse=(e,t)=>!0===e.errors&&(r().emit("orderConfirmationErrors",{resp:e,paymentObject:t}),!0);class d{constructor(){this.confirmationSelector=r().selectors.checkout.confirmationSelector,this.conditionsSelector=r().selectors.checkout.conditionsSelector,this.conditionAlertSelector=r().selectors.checkout.conditionAlertSelector,this.additionalInformatonSelector=r().selectors.checkout.additionalInformatonSelector,this.optionsForm=r().selectors.checkout.optionsForm,this.termsCheckboxSelector=r().selectors.checkout.termsCheckboxSelector}init(){r().on("orderConfirmationErrors",(({resp:e,paymentObject:t})=>{""!==e.cartUrl&&(location.href=e.cartUrl)}));const e=t()("body");e.on("change",`${this.conditionsSelector} input[type="checkbox"]`,t().proxy(this.toggleOrderButton,this)),e.on("change",'input[name="payment-option"]',t().proxy(this.toggleOrderButton,this)),this.toggleOrderButton(),e.on("click",`${this.confirmationSelector} button`,t().proxy(this.confirm,this)),this.getSelectedOption()||this.collapseOptions()}collapseOptions(){t()(`${this.additionalInformatonSelector}, ${this.optionsForm}`).hide()}getSelectedOption(){return t()('input[name="payment-option"]:checked').attr("id")}haveTermsBeenAccepted(){return t()(this.termsCheckboxSelector).prop("checked")}hideConfirmation(){t()(this.confirmationSelector).hide()}showConfirmation(){t()(this.confirmationSelector).show()}toggleOrderButton(){let e=!0;t()(`${this.conditionsSelector} input[type="checkbox"]`).each(((t,n)=>{n.checked||(e=!1)})),r().emit("termsUpdated",{isChecked:e}),this.collapseOptions();const n=this.getSelectedOption();if(n||(e=!1),t()(`#${n}-additional-information`).show(),t()(`#pay-with-${n}-form`).show(),t()(r().selectors.checkout.paymentBinary).hide(),t()(`#${n}`).hasClass("binary")){const r=this.getPaymentOptionSelector(n);this.hideConfirmation(),t()(r).show(),document.querySelectorAll(`${r} button, ${r} input`).forEach((t=>{e?t.removeAttribute("disabled"):t.setAttribute("disabled",!e)})),e?t()(r).removeClass("disabled"):t()(r).addClass("disabled")}else this.showConfirmation(),t()(`${this.confirmationSelector} button`).toggleClass("disabled",!e),t()(`${this.confirmationSelector} button`).attr("disabled",!e),e?t()(this.conditionAlertSelector).hide():t()(this.conditionAlertSelector).show()}getPaymentOptionSelector(e){return`.js-payment-${t()(`#${e}`).data("module-name")}`}showNativeFormErrors(){t()(`input[name=payment-option], ${this.termsCheckboxSelector}`).each((function(){this.reportValidity()}))}confirm(){return e=this,n=null,o=function*(){const e=this.getSelectedOption(),n=this.haveTermsBeenAccepted();if(void 0===e||!1===n)return void this.showNativeFormErrors();const o=yield t().post(window.prestashop.urls.pages.order,{ajax:1,action:"checkCartStillOrderable"});r().checkout.onCheckOrderableCartResponse(o,this)||(t()(`${this.confirmationSelector} button`).addClass("disabled"),t()(`#pay-with-${e}-form form`).submit())},new Promise(((t,r)=>{var i=e=>
137{try{s(o.next(e))}catch(e){r(e)}},a=e=>{try{s(o.throw(e))}catch(e){r(e)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(i,a);s((o=o.apply(e,n)).next())}));var e,n,o}} 138/** 139 * Copyright since 2007 PrestaShop SA and Contributors 140 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 141 * 142 * NOTICE OF LICENSE 143 * 144 * This source file is subject to the Open Software License (OSL 3.0) 145 * that is bundled with this package in the file LICENSE.md. 146 * It is also available through the world-wide-web at this URL: 147 * https://opensource.org/licenses/OSL-3.0 148 * If you did not receive a copy of the license and are unable to 149 * obtain it through the world-wide-web, please send an email 150 * to [email protected] so we can send you a copy immediately. 151 * 152 * DISCLAIMER 153 * 154 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 155 * versions in the future. If you wish to customize PrestaShop for your 156 * needs please refer to https://devdocs.prestashop.com/ for more information. 157 * 158 * @author PrestaShop SA and Contributors <[email protected]> 159 * @copyright Since 2007 PrestaShop SA and Contributors 160 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 161 */ 162const p=r().selectors.checkout.currentStep,f=`.${p}`;class h{constructor(){this.$steps=t()(r().selectors.checkout.step),this.$steps.off("click"),this.$clickableSteps=t()(f).prevAll().addBack(),this.$clickableSteps.addClass("-clickable")}getClickableSteps(){return this.$clickableSteps}makeCurrent(e){this.$steps.removeClass("-current"),this.$steps.removeClass(p),e.makeCurrent()}static getClickedStep(e){return new m(t()(e.target).closest(r().selectors.checkout.step))}}class m{constructor(e){this.$step=e}isUnreachable(){return this.$step.hasClass("-unreachable")}makeCurrent(){this.$step.addClass("-current"),this.$step.addClass(p)}hasContinueButton(){return t()("button.continue",this.$step).length>0}disableAllAfter(){const e=this.$step.nextAll();e.addClass("-unreachable").removeClass("-complete"),t()(r().selectors.checkout.stepTitle,e).addClass("not-allowed")}enableAllBefore(){const e=this.$step.nextAll(`${r().selectors.checkout.step}.-clickable`);e.removeClass("-unreachable").addClass("-complete"),t()(r().selectors.checkout.stepTitle,e).removeClass("not-allowed")}} 163/** 164 * Copyright since 2007 PrestaShop SA and Contributors 165 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 166 * 167 * NOTICE OF LICENSE 168 * 169 * This source file is subject to the Open Software License (OSL 3.0) 170 * that is bundled with this package in the file LICENSE.md. 171 * It is also available through the world-wide-web at this URL: 172 * https://opensource.org/licenses/OSL-3.0 173 * If you did not receive a copy of the license and are unable to 174 * obtain it through the world-wide-web, please send an email 175 * to [email protected] so we can send you a copy immediately. 176 * 177 * DISCLAIMER 178 * 179 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 180 * versions in the future. If you wish to customize PrestaShop for your 181 * needs please refer to https://devdocs.prestashop.com/ for more information. 182 * 183 * @author PrestaShop SA and Contributors <[email protected]> 184 * @copyright Since 2007 PrestaShop SA and Contributors 185 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 186 */ 187function v(){t()(r().selectors.checkout.editAddresses).on("click",(e=>{e.stopPropagation(),t()(r().selectors.checkout.addressesStep).trigger("click"),r().emit("editAddress")})),t()(r().selectors.checkout.deliveryAddressRadios).on("click",(function(){t()(r().selectors.checkout.addressItem).removeClass("selected"),t()(r().selectors.checkout.addressItemChecked).addClass("selected");const e=t()(r().selectors.checkout.addressError).prop("id").split("-").pop(),n=t()(r().selectors.checkout.notValidAddresses).val(),o=this.name.split("_").pop(),i=t()(`${r().selectors.checkout.addressError}[name=alert-${o}]`);u(!1,e,o),""!==n&&null===s&&n.split(",").indexOf(this.value)>=0?(i.show(),u(!0,this.value,o),t()(r().selectors.checkout.addressError).prop("id",`id-failure-address-${this.value}`)):i.hide();
187const a=t()(`${r().selectors.checkout.addressError}:visible`);l(a.length<=0)})), 188/** 189 * Copyright since 2007 PrestaShop SA and Contributors 190 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 191 * 192 * NOTICE OF LICENSE 193 * 194 * This source file is subject to the Open Software License (OSL 3.0) 195 * that is bundled with this package in the file LICENSE.md. 196 * It is also available through the world-wide-web at this URL: 197 * https://opensource.org/licenses/OSL-3.0 198 * If you did not receive a copy of the license and are unable to 199 * obtain it through the world-wide-web, please send an email 200 * to [email protected] so we can send you a copy immediately. 201 * 202 * DISCLAIMER 203 * 204 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 205 * versions in the future. If you wish to customize PrestaShop for your 206 * needs please refer to https://devdocs.prestashop.com/ for more information. 207 * 208 * @author PrestaShop SA and Contributors <[email protected]> 209 * @copyright Since 2007 PrestaShop SA and Contributors 210 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 211 */function(){const e=t()("body"),{deliveryFormSelector:n}=r().selectors.checkout,{summarySelector:o}=r().selectors.checkout,{deliveryStepSelector:a}=r().selectors.checkout,{editDeliveryButtonSelector:s}=r().selectors.checkout;e.on("change",`${n} input`,(e=>{const a=t()(n),s=a.serialize(),c=t()(e.currentTarget).parents(r().selectors.checkout.deliveryOption);t().post(a.data("url-update"),s).then((e=>{t()(o).replaceWith(e.preview),t()(r().selectors.checkout.cartPaymentStepRefresh).length&&i(),r().emit("updatedDeliveryForm",{dataForm:a.serializeArray(),deliveryOption:c,resp:e})})).fail((e=>{r().trigger("handleError",{eventType:"updateDeliveryOptions",resp:e})}))})),e.on("click",s,(e=>{e.stopPropagation(),t()(a).trigger("click"),r().emit("editDelivery")}))}(),function(){const e=new d;e.init()}(),function(){const e=new h;e.getClickableSteps().on("click",(t=>{const n=h.getClickedStep(t);n.isUnreachable()||(e.makeCurrent(n),n.hasContinueButton()?n.disableAllAfter():n.enableAllBefore()),r().emit("changedCheckoutStep",{event:t})}))}(),function(){const e=r().selectors.checkout.form;t()(e).submit((function(e){!0===t()(this).data("disabled")&&e.preventDefault(),t()(this).data("disabled",!0),t()('button[type="submit"]',this).addClass("disabled")}))}()}t()(document).ready((()=>{1===t()("#checkout").length&&v()})); 212/** 213 * Copyright since 2007 PrestaShop SA and Contributors 214 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 215 * 216 * NOTICE OF LICENSE 217 * 218 * This source file is subject to the Open Software License (OSL 3.0) 219 * that is bundled with this package in the file LICENSE.md. 220 * It is also available through the world-wide-web at this URL: 221 * https://opensource.org/licenses/OSL-3.0 222 * If you did not receive a copy of the license and are unable to 223 * obtain it through the world-wide-web, please send an email 224 * to [email protected] so we can send you a copy immediately. 225 * 226 * DISCLAIMER 227 * 228 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 229 * versions in the future. If you wish to customize PrestaShop for your 230 * needs please refer to https://devdocs.prestashop.com/ for more information. 231 * 232 * @author PrestaShop SA and Contributors <[email protected]> 233 * @copyright Since 2007 PrestaShop SA and Contributors 234 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 235 */ 236let g=null;function y(e){r().emit("updateProductList",e),window.history.pushState(e,document.title,e.current_url)}function b(e,t){return"abort"!==t}function x(e){g===e&&(g=null)}t()(document).ready((()=>{r().on("updateFacets",(e=>{!function(e){g&&g.abort();const n=e.indexOf("?")>=0?"&":"?",r=`${e+n}from-xhr`;g=t().ajax({url:r,dataType:"json",success:y,error:b,complete:x})}(e)}))})), 237/** 238 * Copyright since 2007 PrestaShop SA and Contributors 239 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 240 * 241 * NOTICE OF LICENSE 242 * 243 * This source file is subject to the Open Software License (OSL 3.0)
244 * that is bundled with this package in the file LICENSE.md. 245 * It is also available through the world-wide-web at this URL: 246 * https://opensource.org/licenses/OSL-3.0 247 * If you did not receive a copy of the license and are unable to 248 * obtain it through the world-wide-web, please send an email 249 * to [email protected] so we can send you a copy immediately. 250 * 251 * DISCLAIMER 252 * 253 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 254 * versions in the future. If you wish to customize PrestaShop for your 255 * needs please refer to https://devdocs.prestashop.com/ for more information. 256 * 257 * @author PrestaShop SA and Contributors <[email protected]> 258 * @copyright Since 2007 PrestaShop SA and Contributors 259 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 260 */ 261t()(document).ready((()=>{t()("body").on("click",r().selectors.listing.quickview,(e=>{r().emit("clickQuickView",{dataset:t()(e.target).closest(r().selectors.product.miniature).data()}),e.preventDefault()}))}));var w=Object.defineProperty,k=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,T=(e,t,n)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||(t={}))C.call(t,n)&&T(e,n,t[n]);if(k)for(var n of k(t))j.call(t,n)&&T(e,n,t[n]);return e}; 262/** 263 * Copyright since 2007 PrestaShop SA and Contributors 264 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 265 * 266 * NOTICE OF LICENSE 267 * 268 * This source file is subject to the Open Software License (OSL 3.0) 269 * that is bundled with this package in the file LICENSE.md. 270 * It is also available through the world-wide-web at this URL: 271 * https://opensource.org/licenses/OSL-3.0 272 * If you did not receive a copy of the license and are unable to 273 * obtain it through the world-wide-web, please send an email 274 * to [email protected] so we can send you a copy immediately. 275 * 276 * DISCLAIMER 277 * 278 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 279 * versions in the future. If you wish to customize PrestaShop for your 280 * needs please refer to https://devdocs.prestashop.com/ for more information. 281 * 282 * @author PrestaShop SA and Contributors <[email protected]> 283 * @copyright Since 2007 PrestaShop SA and Contributors 284 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 285 */ 286let A=null,E=null,N=!1;const q=[];let D=!1;function O(e){!function(e,n){const r=t()(`<div class="alert alert-danger ajax-error" role="alert">${n}</div>`);e.replaceWith(r)}(t()(".quickview #product-availability, .page-product:not(.modal-open) .row #product-availability, .page-product:not(.modal-open) .product-container #product-availability"),e)}function _(e,n,i){const a=t()(r().selectors.product.actions),s=a.find(r().selectors.quantityWanted),c=a.find("form:first"),u=c.serialize();let l,d=o("preview");if("function"==typeof Event?l=new Event("updateRating"):(l=document.createEvent("Event"),l.initEvent("updateRating",!0,!0)),null!==d){const e=o("adtoken"),t=o("id_employee");d=`&preview=${d}&adtoken=${e}&id_employee=${t}`}else d="";if(null===i)return void O();if(e&&"keyup"===e.type&&s.val()===s.data("old-value"))return;s.data("old-value",s.val()),E&&clearTimeout(E);let p=30;"updatedProductQuantity"===n&&(p=750),E=setTimeout((()=>{""!==u&&(A=t().ajax({url:i+(-1===i.indexOf("?")?"?":"&")+u+d,method:"POST",data:{quickview:t()(".modal.quickview.in").length,ajax:1,action:"refresh",quantity_wanted:"updatedProductCombination"===n?s.attr("min"):s.val()},dataType:"json",beforeSend(){null!==A&&A.abort()},error(e,n){"abort"!==n&&0===t()("section#main > .ajax-error").length&&O()},success(e){const o=t()("<div>").append(e.product_cover_thumbnails);t()(r().selectors.product.imageContainer).html()!==o.find(r().selectors.product.imageContainer).html()&&t()(r().selectors.product.imageContainer).replaceWith(e.product_cover_thumbnails),t()(r().selectors.product.prices).first().replaceWith(e.product_prices),t()(r().selectors.product.customization).first().replaceWith(e.product_customization),"updatedProductQuantity"!==n&&"updatedProductCombination"!==n||!e.id_customization?t()(r().selectors.product.inputCustomization).val(0):t()(r().selectors.cart.productCustomizationId).val(e.id_customization),t()(r().selectors.product.variantsUpdate).first().replaceWith(e.product_variants),t()(r().selectors.product.discounts).first().replaceWith(e.product_discounts),t()(r().selectors.product.additionalInfos).first().replaceWith(e.product_additional_info),t()(r().selectors.product.details).replaceWith(e.product_details),t()(r().selectors.product.flags).first().replaceWith(e.product_flags),function(e){let n=null;t()(e.product_add_to_cart).each(((e,r)=>!t()(r).hasClass("product-add-to-cart")||(n=t()(r),!1))),null===n&&O();const o=t()(r().selectors.product.addToCart),i="#product-availability",a=".product-minimal-quantity";P({$addToCartSnippet:n,$targetParent:o,targetSelector:".add"}),P({$addToCartSnippet:n,$targetParent:o,targetSelector:i}),P({$addToCartSnippet:n,$targetParent:o,targetSelector:a})}(e);const i=parseInt(e.product_minimal_quantity,10);document.dispatchEvent(l),isNaN(i)||"updatedProductQuantity"===n||(s.attr("min",i),s.val(i)),r().emit("updatedProduct",e,c.serializeArray())},complete(){A=null,E=null}}))}),p)}function P(e){const n=t()(e.$targetParent.find(e.targetSelector));if(n.length<=0)return;const r=e.$addToCartSnippet.find(e.targetSelector);r.length>0?n.replaceWith(r[0].outerHTML):n.html("")}t()(document).ready((()=>{const e=t()(r().selectors.product.actions);t()("body").on("change touchspin.on.startspin",`${r().selectors.product.variants} *[name]`,(e=>{D=!0,r().emit("updateProduct",{eventType:"updatedProductCombination",event:e,resp:{},reason:{productUrl:r().urls.pages.product||""}})})),t()(e.find("form:first").serializeArray()).each(((e,{value:t,name:n})=>{q.push({value:t,name:n})})),window.addEventListener("popstate",(e=>{if(N=!0,(!e.state||e.state&&e.state.form&&0===e.state.form.length)&&!D)return;const n=t()(r().selectors.product.actions).find("form:first");e.state&&e.state.form?e.state.form.forEach((e=>{n.find(`[name="${e.name}"]`).val(e.value)})):q.forEach((e=>{n.find(`[name="${e.name}"]`).val(e.value)})),r().emit("updateProduct",{eventType:"updatedProductCombination",event:e,resp:{},reason:{productUrl:r().urls.pages.product||""}})})),t()("body").on("click",r().selectors.product.refresh,((e,t)=>{e.preventDefault();let n="updatedProductCombination";void 0!==t&&t.eventType&&(n=t.eventType),r().emit("updateProduct",{eventType:n,event:e,resp:{},reason:{productUrl:r().urls.pages.product||""}})})),r().on("updateProduct",(e=>{const{eventType:n}=e,{event:o}=e;(function(){const e=t().Deferred(),n=t()(r().selectors.product.actions),o=t()(r().selectors.quantityWanted);if(null!==r()&&null!==r().urls&&null!==r().urls.pages&&""!==r().urls.pages.product&&null!==r().urls.pages.product)return e.resolve(r().urls.pages.product),e.promise();const i={};return t()(n.find("form:first").serializeArray()).each(((e,t)=>{i[t.name]=t.value})),t().ajax({url:n.find("form:first").attr("action"),method:"POST",data:S({ajax:1,action:"productrefresh",quantity_wanted:o.val()},i),dataType:"json",success(t){const n=t.productUrl;r().page.canonical=n,e.resolve(n)},error(t,n,r){e.reject({jqXHR:t,textStatus:n,errorThrown:r})}}),e.promise()})().done((e=>_(o,n,e))).fail((()=>{0===t()("section#main > .ajax-error").length&&O()}))})),r().on("updatedProduct",((e,n)=>{if(!e.product_url||!e.id_product_attribute)return;if(t()(".modal.quickview").length)return;let r=document.title;e.product_title&&(r=e.product_title,t()(document).attr("title",r)),N||window.history.pushState({id_product_attribute:e.id_product_attribute,form:n},r,e.product_url),N=!1})),r().on("updateCart",(e=>{if(!e||!e.reason||"add-to-cart"!==e.reason.linkAction)return;t()("#quantity_wanted").val(1)})),r().on("showErrorNextToAddtoCartButton",(e=>{e&&e.errorMessage&&O(e.errorMessage)}))})),t()(document).ready((()=>{var e;e={country:".js-country",address:".js-address-form"},t()("body").on("change",e.country,(n=>{const o={id_country:t()(e.country).val(),id_address:t()(`${e.address} form`).data("id-address")},i=t()(`${e.address} form`).data("refresh-url"),a=`${e.address} input`,s=t()(n.target);t().post(i,o).then((n=>{const o=[];t()(a).each((function(){o[t()(this).prop("name")]=t()(this).val()})),t()(s.closest(e.address)).replaceWith(n.address_form),t()(a).each((function(){t()(this).val(o[t()(this).prop("name")])})),r().emit("updatedAddressForm",{target:t()(e.address),resp:n})})).fail((e=>{r().emit("handleError",{eventType:"updateAddressForm",resp:e})}))}))}));const L=2147483647,$=36,H=/^xn--/,R=/[^\0-\x7E]/,I=/[\x2E\u3002\uFF0E\uFF61]/g,M={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >
286= 0x80 (not a basic code point)","invalid-input":"Invalid input"},W=Math.floor,F=String.fromCharCode;function B(e){throw new RangeError(M[e])}function Q(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const o=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(I,".")).split("."),t).join(".");return r+o}function z(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}const U=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},X=function(e,t,n){let r=0;for(e=n?W(e/700):e>>1,e+=W(e/t);e>455;r+=$)e=W(e/35);return W(r+36*e/(e+38))},V=function(e){const t=[],n=e.length;let r=0,o=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n<a;++n)e.charCodeAt(n)>=128&&B("not-basic"),t.push(e.charCodeAt(n));for(let c=a>0?a+1:0;c<n;){let a=r;for(let t=1,o=$;;o+=$){c>=n&&B("invalid-input");const a=(s=e.charCodeAt(c++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:$;(a>=$||a>W((L-r)/t))&&B("overflow"),r+=a*t;const u=o<=i?1:o>=i+26?26:o-i;if(a<u)break;const l=$-u;t>W(L/l)&&B("overflow"),t*=l}const u=t.length+1;i=X(r-a,u,0==a),W(r/u)>L-o&&B("overflow"),o+=W(r/u),r%=u,t.splice(r++,0,o)}var s;return String.fromCodePoint(...t)},G=function(e){const t=[];let n=(e=z(e)).length,r=128,o=0,i=72;for(const n of e)n<128&&t.push(F(n));let a=t.length,s=a;
286for(a&&t.push("-");s<n;){let n=L;for(const t of e)t>=r&&t<n&&(n=t);const c=s+1;n-r>W((L-o)/c)&&B("overflow"),o+=(n-r)*c,r=n;for(const n of e)if(n<r&&++o>L&&B("overflow"),n==r){let e=o;for(let n=$;;n+=$){const r=n<=i?1:n>=i+26?26:n-i;if(e<r)break;const o=e-r,a=$-r;t.push(F(U(r+o%a,0))),e=W(o/a)}t.push(F(U(e,0))),i=X(o,c,s==a),o=0,++s}++o,++r}return t.join("")},J={version:"2.1.0",ucs2:{decode:z,encode:e=>String.fromCodePoint(...e)},decode:V,encode:G,toASCII:function(e){return Q(e,(function(e){return R.test(e)?"xn--"+G(e):e}))},toUnicode:function(e){return Q(e,(function(e){return H.test(e)?V(e.slice(4).toLowerCase()):e}))}},Y=function(e){const n=t()(e);t().each(n,((e,t)=>{if(!t.checkValidity()){const e=t.value.split("@");J.toASCII(e[0])===e[0]&&(t.value=J.toASCII(t.value))}}))}; 287/** 288 * Copyright since 2007 PrestaShop SA and Contributors 289 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 290 * 291 * NOTICE OF LICENSE 292 * 293 * This source file is subject to the Open Software License (OSL 3.0) 294 * that is bundled with this package in the file LICENSE.md. 295 * It is also available through the world-wide-web at this URL: 296 * https://opensource.org/licenses/OSL-3.0 297 * If you did not receive a copy of the license and are unable to 298 * obtain it through the world-wide-web, please send an email 299 * to [email protected] so we can send you a copy immediately. 300 * 301 * DISCLAIMER 302 * 303 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 304 * versions in the future. If you wish to customize PrestaShop for your 305 * needs please refer to https://devdocs.prestashop.com/ for more information. 306 * 307 * @author PrestaShop SA and Contributors <[email protected]> 308 * @copyright Since 2007 PrestaShop SA and Contributors 309 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 310 */ 311a.p=window.prestashop.core_js_public_path,window.$=t(),window.jQuery=t(),t()(document).ready((()=>{t()(".ps-shown-by-js").show(),t()(".ps-hidden-by-js").hide(),Y('input[type="email"]')}))})()})();var swiperSoyTitles;$(document).on("click","#soy_menu_icon",function(){$("#mobile_top_menu_wrapper").toggleClass("opened");if($("#mobile_top_menu_wrapper").hasClass("opened")){$("body, #soy_menu_icon").addClass("soy_menu_opened");$("#mobile_top_menu_wrapper").css("height",$(window).height()-$(".soy_content_nav").height());if(prestashop.page.page_name=='index'){$(".header-top").css("background-color","white");$(".cart-description svg path").css("fill","black");$(".wish_link svg path").css("fill","black");$(".user-info svg path").css("fill","black");$(".language-selector .expand-more").css("color","#000000");$(".language-selector select.link").css("color","#000000");$(".logo-no-scroll").css("display","none");$(".logo-scroll").removeClass('d-none');$("#header #_desktop_top_menu.menu.js-top-menu a.dropdown-item").css("color","#000000");$("#search_widget form i").css({color:"#000000"})}}else{$("body, #soy_menu_icon").removeClass("soy_menu_opened");if(prestashop.page.page_name=='index'){if(!$('#header').hasClass('fixed-header')){$(".header-top").css("background-color","unset");$(".cart-description svg path").css("fill","white");$(".wish_link svg path").css("fill","white");$(".user-info svg path").css("fill","white");$(".language-selector .expand-more").css("color","#FFFFFF");$(".language-selector select.link").css("color","#FFFFFF");$(".logo-no-scroll").css("display","block");$(".logo-scroll").addClass('d-none');$("#header #_desktop_top_menu.menu.js-top-menu a.dropdown-item").css("color","#FFFFFF");$("#search_widget form i").css({color:"#ffffff"})}}}});$(document).on("click","#soy_back_mobile_menu",function(){$("#mobile_top_menu_wrapper").removeClass("opened");$("body, #soy_menu_icon").removeClass("soy_menu_opened")});$(document).ready(function(){headerFixed.init();slickBlogs();categoryPageDesc();$(document).on('click','.slider-button',function(){var $slideButton=$(this);var $currentSlide=$slideButton.closest('.soyslider');var currentPath=window.location.pathname;var isSpanish=!currentPath.match(/^\/[a-z]{2}\//);var $allSlides=$('#soyresponsiveslider .soyslider-container .soyslider:not(.bx-clone)');var resolutionClass='has_desktop';var windowWidth=$(window).width();if(windowWidth<768){resolutionClass='has_phone'}else if(windowWidth<992){resolutionClass='has_tablet'} 312var $visibleSlides=$allSlides.filter(function(){return $(this).hasClass(resolutionClass)});var slidePosition=$visibleSlides.index($currentSlide);console.log('Language:',isSpanish?'ES':'Other','Slide position:',slidePosition);if(isSpanish){if(slidePosition===1){console.log('Spanish second slide - no action (direct link)');return}else{$('input[name="s"]').focus();console.log('Spanish - opening search')}}else{if(slidePosition===1){var oct8neWidget=document.querySelector('chat-oct8ne#livechat-wrapper');if(oct8neWidget){oct8neWidget.click();console.log('Other language - Oct8ne chat opened')}else{console.warn('Oct8ne widget not found')}}else{$('input[name="s"]').focus();console.log('Other language - opening search')}}});if(prestashop.page.page_name=='index'){if($('.soy_grupo_cliente').length>0){var height=$(".soy_grupo_cliente").outerHeight(!0);$("#header .header-top").css({top:height})}} 313var altura_extra=$("#header .soy_header_fijo").outerHeight()+$(".mobile_search").outerHeight();$('section.product-description .show-more').on('click',function(e){e.preventDefault();var $descriptionText=$(this).siblings('#_mobile_description');var $soyTitleDescription=$(this).closest('.soy_title_description');if($descriptionText.hasClass('expanded')){$descriptionText.removeClass('expanded').animate({maxHeight:'400px'},300,function(){$descriptionText.css('maxHeight','')});$(this).text('Mostrar más');$('html, body').animate({scrollTop:$soyTitleDescription.offset().top-altura_extra},500);closeAllTabs()}else{$descriptionText.css('maxHeight','400px');$descriptionText.addClass('expanded').animate({maxHeight:$descriptionText.get(0).scrollHeight},300);$(this).text('Mostrar menos');closeAllTabs()}})});var headerFixed={contenedorFixed:"#header .header-nav .soy_content_nav",contenedorNav:"#header .header-nav",init:function(){var elemento_fixed=$(this.contenedorFixed);var header_nav=$(this.contenedorNav);var object=this;$(window).resize(function(){if($(window).scrollTop()>header_nav.position().top&&$(window).width()+scrollCompensate()<992){object.addFixed()}else{object.removeFixed()}});$(window).scroll(function(){if($(window).scrollTop()>header_nav.position().top&&$(window).width()+scrollCompensate()<992){object.addFixed()}else{object.removeFixed()}})},addFixed:function(){var elemento_fixed=$(this.contenedorFixed);var header_nav=$(this.contenedorNav);header_nav.css("height",header_nav.height());
313elemento_fixed.css("position","fixed");if($('.soy_grupo_cliente').length>0){var height=$(".soy_grupo_cliente").outerHeight(!0);elemento_fixed.css("top",height)}else{elemento_fixed.css("top","0")} 314elemento_fixed.css("width","100%");elemento_fixed.css("z-index","9999")},removeFixed:function(){var elemento_fixed=$(this.contenedorFixed);var header_nav=$(this.contenedorNav);header_nav.css("height","");elemento_fixed.css("position","");elemento_fixed.css("top","");elemento_fixed.css("width","");elemento_fixed.css("z-index","")}};function scrollCompensate(){var inner=document.createElement('p');inner.style.width="100%";inner.style.height="200px";var outer=document.createElement('div');outer.style.position="absolute";outer.style.top="0px";outer.style.left="0px";outer.style.visibility="hidden";outer.style.width="200px";outer.style.height="150px";outer.style.overflow="hidden";outer.appendChild(inner);document.body.appendChild(outer);var w1=inner.offsetWidth;outer.style.overflow='scroll';var w2=inner.offsetWidth;if(w1==w2)w2=outer.clientWidth;document.body.removeChild(outer);return(w1-w2)} 315if($('body#product').length>0){var soy_title=$("title").html();$(document).ready(function(){if(typeof(prestashop)!=="undefined"){prestashop.on('updatedProduct',function(data){$("title").html(soy_title);$('.productPriceMeta').prop('content',$('body#product .product-buy-block .product-prices .product-price .current-price span').attr('content'))})} 316$(document).on("click","body#product .container .soy_product_info .product-information .ets-rv-btn-read-user",function(){if(window.innerWidth>=992){var tab_element=$("#soy_pestanyas .soy_info_product #valoraciones-tab");var class_active="active"}else{var tab_element=$("#product-description-large .soy_title .soy_title_valoraciones");var class_active="show"} 317if(!tab_element.length){return} 318if(!tab_element.hasClass(class_active))Â {tab_element.click()} 319var extra_height=0;if($("#header .soy_header_fijo").length){extra_height=$("#header .soy_header_fijo").height()} 320$('html, body').animate({scrollTop:tab_element.offset().top-extra_height},1000)})})} 321$(document).on('click','#header .soy_buscador_mobile',function(){if($(".modal.search_results_modal").hasClass("in")){$(".modal.search_results_modal").modal("hide")} 322jQuery('#header .search-widget').slideToggle("slow")});if($("body#addresses").length>0){var botones_detalles=$(".detail_address");botones_detalles.each(function(index,elemento){$(this).on("click",function(){var data_valor_id=$(this).data('id');$("#soy_address_"+data_valor_id).slideToggle()})})} 323if(location.hash=="#soy_seguimiento"){if($(window).width()+scrollCompensate()>=768){var altura_de_mas=20}else{var altura_de_mas=30} 324$('html, body').animate({scrollTop:$("#soy_seguimiento").offset().top-altura_de_mas},1000)} 325$(document).ready(function(){if(prestashop.page.page_name=='index'){slickFeaturedProducts()} 326initFooter();$(window).resize(function(){if($("footer .soy_bloque_info-compra").length){if($(window).width()+scrollCompensate()<991){if(!$('footer .soy_bloque_info-compra').hasClass('slick-initialized')){initFooter()}}else{if($('footer .soy_bloque_info-compra').hasClass('slick-initialized')){$('footer .soy_bloque_info-compra').slick('unslick')}}}})});function initFooter(){if(typeof $.fn.slick!=='function'){whenSlickReady(initFooter);return} 327if($(window).width()<991){$('footer .soy_bloque_info-compra').slick({infinite:!0,dots:!0,autoplay:!0,autoplaySpeed:2000,})}} 328var soy_initial_pos=0;function soyHeaderHeightCompensate(){if($(window).scrollTop()>soy_initial_pos){var soy_header_height=$("#header .soy_header_fijo").outerHeight();$("#header").addClass("fixed-header");$("#header").css("padding-bottom",soy_header_height+"px");$("#category .filter-button").css("top",soy_header_height+"px");$("#soy_account_menu").css("top",soy_header_height+"px");$("#header .soy_header_fijo").css("position","fixed")}else{$("#header").removeClass("fixed-header");$("#header").css("padding-bottom","");$("#category .filter-button").css("top","");$("#soy_account_menu").css("top","");$("#header .soy_header_fijo").css("position","")} 329if(prestashop.page.page_name=='index'){if($(window).scrollTop()>soy_initial_pos){$(".header-top").css("background-color","white");$(".cart-description svg path").css("fill","black");$(".wish_link svg path").css("fill","black");$(".user-info svg path").css("fill","black");$(".language-selector .expand-more").css("color","#000000");$(".language-selector select.link").css("color","#000000");$(".logo-no-scroll").css("display","none");$(".logo-scroll").removeClass('d-none');$("#header #_desktop_top_menu.menu.js-top-menu a.dropdown-item").
329css("color","#000000");$("#header .header-top input.ui-autocomplete-input").css({color:"#000000",border:"1px solid #000000"});$("#search_widget form i").css({color:"#000000"});if($('.soy_grupo_cliente').length>0){var height=$(".soy_grupo_cliente").outerHeight(!0);$("#header .header-top").css({top:height})}}else{$(".header-top").css("background-color","unset");$(".cart-description svg path").css("fill","white");$(".wish_link svg path").css("fill","white");$(".user-info svg path").css("fill","white");$(".language-selector .expand-more").css("color","#FFFFFF");$(".language-selector select.link").css("color","#FFFFFF");$(".logo-no-scroll").css("display","block");$(".logo-scroll").addClass('d-none');$("#header #_desktop_top_menu.menu.js-top-menu a.dropdown-item").css("color","#FFFFFF");$("#header .header-top input.ui-autocomplete-input").css({color:"#ffffff",border:"unset"});$("#search_widget form i").css({color:"#ffffff"});if($('.soy_grupo_cliente').length>0){var height=$(".soy_grupo_cliente").outerHeight(!0);$("#header .header-top").css({top:height})}}}};$(document).ready(function(){soyHeaderHeightCompensate();fixedFiltersPLP()});$(window).resize(function(){soyHeaderHeightCompensate()});$(window).scroll(function(){soyHeaderHeightCompensate()});$(document).ready(function(){$(document).scroll(function(){var scrollDistance=$(this).scrollTop();if(scrollDistance>100){$('.scroll-to-top').fadeIn()}else{$('.scroll-to-top').fadeOut()}})});$(document).on('click','a[href^="#header"]',function(event){event.preventDefault();$('html, body').animate({scrollTop:$($.attr(this,'href')).offset().top},500)});$(document).ready(function(){var envios=$("#js-delivery").serializeArray();for(var i in envios){var nombre=envios[i].name;var valor=envios[i].value;if(nombre.indexOf("delivery_option")>-1){$("label[for=delivery_option_"+parseInt(valor)+"]").parent().addClass("soy_delivery-select")}} 330var pagos=$(".payment-options").serializeArray();for(var i in pagos){var nombre1=pagos[i].name;var valor1=pagos[i].value;if(nombre1.indexOf(".payment-options")>-1){$("label[for=payment-option-"+parseInt(valor1)+"]").parent().addClass("soy_payment-select")}}});$(document).on("click",".delivery-option",function(){$(".delivery-option").removeClass("soy_delivery-select");$(this).addClass("soy_delivery-select")});$(document).on("click",".payment-option",function(){$(".payment-option").removeClass("soy_payment-select");$(this).addClass("soy_payment-select")}); 331/** 332* Copyright (c) 2019, Nicripsia Internet SL www.soy.es All rights reserved. 333* 334* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 335* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 336* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 337* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 338* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 339* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 340* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 341* 342* @author Soy.es <[email protected]> 343* @copyright 2019 Soy.es 344* @license Soy.es 345* 346*/ 347if($('body#product').length>0){function BuyBlockCanBeFloat(){var alturaVista=$(window).height();var alturaFooter=$("main > #footer").height();var scrollTop=$(window).scrollTop() 348var topInformation=0;var scrollBottom=$(document).height()-alturaVista-scrollTop;if($(window).width()<991&&(topInformation<scrollTop)){return!0} 349return!1} 350$(document).ready(function(){soyCombinaciones.init();if($("body#product #product-description-large div").outerHeight()===260||$("body#product #product-description-large div").outerHeight()===121){$("body#product #product-description-large").css("display","none")} 351if($("body#product #soy-faqs-content #soy-all-faqs").outerHeight()==0){$("body#product #soy-faqs-content .soy_faq_title_respuestas").css("display","none");$("body#product #soy-faqs-content #soy-faqs-header").css("padding-bottom",0,"px")} 352$('.masaje').append('<i class="soyFont-massage"></i>');$('.difusion').append('<i class="soyFont-difusor"></i>');$('.cosmetica').append('<i class="soyFont-cosmetics"></i>')},soyCombinaciones={init:function(){if(typeof wim_attribute_groups!="undefined"){var soy_comb=this;for(var id_attribute_group in wim_attribute_groups){$(document).on("change","body#product .product-variants [name='group["+id_attribute_group+"]']",function(){soy_comb.refresh();$("body#product .product-actions").removeClass("soy_variants_opened")})} 353$(document).on("click","body#product .soy_combination .soy_cambiar_combinacion",function(){$("body#product .product-variants").slideDown();$("body#product .product-actions").addClass("soy_variants_opened")});$(document).on("click","body#product .soy_combination .soy_close_variants",function(){$("body#product .product-variants").slide
353Up(400,function(){$("body#product .product-actions").removeClass("soy_variants_opened")})});$(window).scroll(function(){if($(window).scrollTop()>0&&$(window).width()+scrollCompensate()<992){$(".product-buy-block").addClass("soy_fixed")}else{$(".product-buy-block").removeClass("soy_fixed")}});soy_comb.refresh()}},refresh:function(){var attr_list=new Array();for(var id_attribute_group in wim_attribute_groups){var soy_group=wim_attribute_groups[id_attribute_group];if(soy_group.group_type=="select"){var id_attribute=$("body#product .product-variants [name='group["+id_attribute_group+"]']").val()}else{var id_attribute=$("body#product .product-variants [name='group["+id_attribute_group+"]']:checked").val()} 354for(var attr in soy_group.attributes){if(attr==id_attribute){attr_list.push(soy_group.attributes[attr].name)}} 355$("body#product .soy_combination .soy_attributes_combination").text(attr_list.join(", "))}},});$(document).ready(function(){initProducts();if(prestashop.page.page_name=='product'){selectedCombo();stickyContainer();showAttributeName();getStickyPrice();buildStickyVariants();collapseProductDesc();closeAllTabs()} 356prestashop.on('updatedProduct',function(){initProducts();selectedCombo();showAttributeName();getStickyPrice();buildStickyVariants()});$(window).resize(function(){if($(window).width()+scrollCompensate()<991){if(!$('.images-block .images-container .product-images-carrousel').hasClass('slick-initialized')){initProducts()}}})});function initProducts(){if($(window).width()+scrollCompensate()<991){if(!$('.images-block .images-container .product-images-carrousel').hasClass('slick-initialized')){$('.images-block .images-container .product-images-carrousel').slick({infinite:!0,slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!0,})}}else{if(!$('.images-block .images-container .product-cover').hasClass('slick-initialized')&&!$('.images-block .images-container .thumbnails').hasClass('slick-initialized')){var sync1=$(".images-block .images-container .product-cover");var sync2=$(".images-block .images-container .thumbnails");sync1.slick({slidesToShow:1,slidesToScroll:1,arrows:!0,fade:!0,infinite:!1});sync2.slick({slidesToShow:6,slidesToScroll:1,dots:!1,arrows:!1,centerMode:!1,focusOnSelect:!0,infinite:!1});sync1.on('beforeChange',function(event,slick,currentSlide,nextSlide){if(sync2.slick('getSlick').slideCount>nextSlide){sync2.slick('slickGoTo',nextSlide)}});sync2.on('click','.slick-slide',function(event){event.preventDefault();var goToSingleSlide=$(this).data('slick-index');if(sync1.slick('getSlick').slideCount>goToSingleSlide){sync1.slick('slickGoTo',goToSingleSlide)}})}}};$(document).ready(function(){initCrossselling();var initAccessoriesDependingOnWidth=function(){if(window.innerWidth<1200&&!$('.product-accessories .products').hasClass('slick-initialized')){initAccessories()}else if(window.innerWidth>=1200&&$('.product-accessories .products').hasClass('slick-initialized')){$('.product-accessories .products').slick('unslick')}} 357initAccessoriesDependingOnWidth();$(window).resize(function(){initAccessoriesDependingOnWidth()})});function initAccessories(){if($('.product-accessories .products article.product-miniature').length<3){return} 358$('.product-accessories .products').slick({infinite:!0,slidesToShow:6,slidesToScroll:6,dots:!0,arrows:!1,responsive:[{breakpoint:1200,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0,dots:!0}},{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:1}}]})};function initCrossselling(){$('.soy_crossselling .products').slick({infinite:!0,slidesToShow:6,slidesToScroll:1,dots:!1,arrows:!0,responsive:[{breakpoint:1500,settings:{slidesToShow:5,slidesToScroll:1,infinite:!0,dots:!0,arrows:!1,}},{breakpoint:1200,settings:{slidesToShow:4,slidesToScroll:1,infinite:!0,dots:!0,arrows:!1,}},{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:1,dots:!0,arrows:!1,}}]})};$(document).on("click","body#product .soy_combination .soy_cambiar_combinacion_pack",function(){$("body#product .product-pack").slideDown();$("body#product .product-pack").removeClass("hidden");$("body#product .soy_cambiar_combinacion_pack").addClass("soy_close_variants");$("body#product .soy_ocultar").removeClass("soy_close_variants")});$(document).on("click","body#product .soy_combination .soy_ocultar",function(){$("body#product .product-pack").slide
358Up(400,function(){$("body#product .product-pack").addClass("hidden");$("body#product .soy_cambiar_combinacion_pack").removeClass("soy_close_variants");$("body#product .soy_ocultar").addClass("soy_close_variants")})});var altura_extra=$("#header .soy_header_fijo").outerHeight()+$(".mobile_search").outerHeight();$(document).on("click","body#product #product-description-large .soy_title_valoraciones .tab-container",function(){var $parent=$(this).closest('.soy_title_valoraciones');if($parent.hasClass('show')){closeAllTabs()}else{closeAllTabs(function(){$("#_mobile_valoraciones").slideDown();$parent.addClass('show');$('html, body').animate({scrollTop:$parent.offset().top-altura_extra},200)})}});$(document).on("click","body#product #product-description-large .soy_title_descargas .tab-container",function(){var $parent=$(this).closest('.soy_title_descargas');if($parent.hasClass('show')){closeAllTabs()}else{closeAllTabs(function(){$("#_mobile_attachments").slideDown();$parent.addClass('show');$('html, body').animate({scrollTop:$parent.offset().top-altura_extra},200)})}});$(document).on("click","body#product #product-description-large .soy_title_faqs .tab-container",function(){var $parent=$(this).closest('.soy_title_faqs');if($parent.hasClass('show')){closeAllTabs()}else{closeAllTabs(function(){$("#_mobile_faqs").slideDown();$parent.addClass('show');$('html, body').animate({scrollTop:$parent.offset().top-altura_extra},200)})}})} 359$(document).on("click","#blockcart-modal .close, #blockcart-modal button[data-dismiss='modal']",function(){$(".modal-backdrop").each(function(){var element=$(this) 360if(element.hasClass("in")){element.removeClass("in");element.css("display","none")}})}); 361/** 362* Copyright (c) 2019, Nicripsia Internet SL www.soy.es All rights reserved. 363* 364* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 365* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 366* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 367* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 368* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 369* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 370* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 371* 372* @author Soy.es <[email protected]> 373* @copyright 2019 Soy.es 374* @license Soy.es 375* 376*/ 377$(document).ready(function(){if(prestashop.page.page_name=='index'){$(document).ready(function(){var clonedCarousel=$('.hc-carousel').clone();$('.hc-carousel .hc-tab:eq(1)').remove();clonedCarousel.find('.hc-tab:eq(0)').remove();clonedCarousel.insertAfter('#categorySection')})} 378if($("body#category").length>0&&("#search_filters_wrapper .facet").length>0){var contenerdorFiltros="#search_filters_wrapper";var precioFiltros=$(contenerdorFiltros+" .faceted-slider");filterPosition(contenerdorFiltros);toggleActiveFilters();$(window).resize(function(){toggleActiveFilters()});function ocultarFiltro(){if(prestashop.responsive.min_width==992){$("#footer").removeClass("hidden-sm-down");$("#content-wrapper").removeClass("hidden-md-down");$("#search_filters_wrapper").addClass("hidden-md-down")}};$("#search_filter_toggler").click(function(){$("#search_filters_wrapper").slideToggle();if($(this).hasClass('show')){$(this).removeClass('show')}else{$(this).addClass('show')} 379if(prestashop.responsive.min_width==992){$("#footer").removeClass("hidden-sm-down");$("#left-column").removeClass("hidden-md-down");$("#search_filters_wrapper").removeClass("hidden-md-down");var altura_extra=$("#header .soy_header_fijo").outerHeight()+$("#search_filter_toggler").outerHeight();var posicion_filtros=$("#search_filters_wrapper").offset().top;var altura_scroll_top=posicion_filtros-altura_extra;$("html, body").animate({scrollTop:altura_scroll_top},600);return!1}});$("#search_filter_controls .ok").click(ocultarFiltro)};var hcSubElements=document.querySelectorAll('.hc-sub');
379if(hcSubElements.length){hcSubElements.forEach(function(hcSubElement){$(hcSubElement).slick({dots:!1,arrows:!0,infinite:!1,speed:300,slidesToShow:3,slidesToScroll:3,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0,dots:!1}},{breakpoint:600,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:480,settings:{slidesToShow:3,slidesToScroll:3}}]})})}});function filterPosition(contenerdorFiltros){setFilterWidth(contenerdorFiltros);var filtrosFlotando=!1;var alturaHeader=$("main > #header .soy_header_fijo").height()+$("main .soy_header_category").height();$(window).scroll(function(){var alturaFiltros=$(contenerdorFiltros).height();var alturaVista=$(window).height()+$("main .soy_header_category").height();var scrollBottom=$(document).height()-alturaVista-$(window).scrollTop();var alturaFooter=$("main > #footer").height()+$("main .soy_description_category").height();if(filtrosFlotando===!0&&scrollBottom<=(alturaFooter-100)){var vistaNofooter=(alturaVista-(alturaFooter-scrollBottom));if(vistaNofooter<=alturaFiltros){$(contenerdorFiltros).css("top","unset");$(contenerdorFiltros).css("bottom",(alturaFooter-scrollBottom)+'px')}}else if(filtrosFlotando===!0&&$(window).scrollTop()<=alturaHeader){var scrollBottom=$(document).height()-$(window).height()-$(window).scrollTop();var alturaFooter=$("main > #footer").height()+$("main .soy_description_category").height();filtrosFlotando=!1;if(scrollBottom>=alturaFooter){$(contenerdorFiltros).css("position","relative");$(contenerdorFiltros).css("top","0rem")}else{if($(document).height()-(alturaFooter-scrollBottom)<alturaFiltros){$(contenerdorFiltros).css("fixed","relative");$(contenerdorFiltros).css("top","inherit");$(contenerdorFiltros).css("bottom",alturaFooter-scrollBottom+100+"px")}else{$(contenerdorFiltros).css("position","fixed");$(contenerdorFiltros).css("top","2rem");$(contenerdorFiltros).css("margin-top","0rem");if(alturaFiltros>alturaVista){collapseAllFilters(contenerdorFiltros)}}}}})} 380function setFilterWidth(contenerdorFiltros){var elemento=$("#left-column");if(elemento.length>0){var leftColumn=elemento.width();$(contenerdorFiltros).css("width",leftColumn+"px");$(window).resize(function(){leftColumn=elemento.width();$(contenerdorFiltros).css("width",leftColumn+"px")})}} 381function collapseAllFilters(contenerdorFiltros){var filtros=$(contenerdorFiltros+" .facet");if(filtros.length>0){filtros.each(function(index,item){var title=$(item).find(".title");if(title.length>0&&!$(title).hasClass("collapsed")&&$(title).attr("aria-expanded")==="true"){var optionList=$(item).find("ul.collapse.in");if(optionList.length===1){optionList.collapse("hide")}}})}} 382function toggleActiveFilters(){var filtrosActivos=$("#js-active-search-filters");if($(document).width()>prestashop.responsive.min_width){if($("#products > #soyContainerActiveFilters > section#js-active-search-filters").length===0){$("#products > #soyContainerActiveFilters").append(filtrosActivos);$("#left-column #search_filter_controls > #js-active-search-filters").remove()} 383if(prestashop.responsive.min_width==992){$("#footer")}}else{if($("#left-column #search_filter_controls > #js-active-search-filters").length===0){$("#left-column #search_filter_controls").append(filtrosActivos);$("#products > #soyContainerActiveFilters > section#js-active-search-filters").remove()}}};$(document).ready(function(){$(document).on("click",".select-title",function(){if($(".select-title .arrow-down").hasClass("hidden")){$(".arrow-up").addClass("hidden");$(".arrow-down").removeClass("hidden")}else{$(".arrow-up").removeClass("hidden");$(".arrow-down").addClass("hidden")}});if($(window).width()>991){if($("#category #left-column").height()===1){$("#category #left-column").css("display","none");$(".soy_btn_expandirFiltro ").css("display","none")}}});$(document).ready(function(){$('.filter_column_sort').hide();$('.filter-block-pop-up').on('click',function(){$('.filter_column_sort').hide();$('.block-content-pop-up-filter').show();$(this).addClass('active-filter');$('.sort-by-pop-up').removeClass('active-filter')});$('.sort-by-pop-up').on('click',function(){$('.filter_column_sort').show();$('.block-content-pop-up-filter').hide();$(this).addClass('active-filter');$('.filter-block-pop-up').removeClass('active-filter')});$('.close-button').on('click',function(e){e.stopPropagation();$('.filter_column_sort').hide();$('.block-content-pop-up-filter').show()});$('.boton-acordeon').on('click',function(){var $boton=$(this);var $contenido=$boton.next();if($contenido.css('display')==='none'){$boton.find('i').attr('class','fa fa-minus');$contenido.css('display','block')}else{$boton.find('i').attr('class','fa fa-plus');$contenido.css('display','none')}})});function slickBlogs(){if(typeof $.fn.slick!=='function'){whenSlickReady(slickBlogs);return} 384if(window.matchMedia&&window.matchMedia("(max-width: 768px)").matches){var postsElement=document.querySelector('.posts');if(postsElement){$(postsElement).slick({responsive:[{breakpoint:768,settings:{arrows:!1,centerMode:!0,centerPadding:'40px',slidesToShow:1}},{breakpoint:480,settings:{arrows:!1,centerMode:!0,centerPadding:'40px',slidesToShow:1}}]})}}} 385$(document).ready(function(){$(document).on('click',".click-toggled-filter, .click-toggled-filter-sort-by",function(event){event.stopPropagation();$("#amazzing_filter").css("display","block");$("body").addClass("dark-background");if($(this).hasClass("click-toggled-filter")){$("#amazzing_filter .filter-block-pop-up").click()} 386if($(this).hasClass("click-toggled-filter-sort-by")){$("#amazzing_filter .sort-by-pop-up").click()}});$("body, #cerrar_svg").click(function(){$("#amazzing_filter").css("display","none");$("body").removeClass("dark-background");$("#amazzing_filter").removeClass("filter-block-pop-up sort-by-pop-up")});$("#amazzing_filter").click(function(event){event.stopPropagation()});$("#amazzing_filter .filter-block-pop-up").on('click',function(){$('.filter_column_sort').hide();$('.block-content-pop-up-filter').show();$(this).addClass('active-filter');$('.sort-by-pop-up').removeClass('active-filter')});$("#amazzing_filter .sort-by-pop-up").on('click',function(){$('.filter_column_sort').show();$('.block-content-pop-up-filter').hide();$(this).addClass('active-filter');$('.filter-block-pop-up').removeClass('active-filter')})});function fixedFiltersPLP(){var $productListTop=$("#js-product-list-top");if(window.matchMedia&&window.matchMedia("(max-width: 991px)").matches){var $header=$('#header .soy_content_nav')}else{var $header=$('#header > .soy_header_fijo')} 387var offset=$productListTop.offset().top;$(window).scroll(function(){if($(window).scrollTop()>offset){$productListTop.addClass('sticky');$productListTop.css('top',$header.height()-2)}else{$productListTop.removeClass('sticky');$productListTop.css('top','')}})} 388$(document).ready(function(){var selectedUrl="";$('.sorting-options a').on('click',function(e){e.preventDefault();selectedUrl=$(this).attr('href');updateButtonStyle();$(this).parents('ul').find('input').prop('checked',!1);$(this).parents('li').find('input').prop('checked',!0)});$('.sorting-options input[type="radio"]').on('click',function(){$(this).siblings('label').find('a').click()});$('.filter-botton-pop-up-1').on('click',function(){if(selectedUrl!==""){window.location.href=selectedUrl}else{console.log("No se ha seleccionado ninguna URL")}});function updateButtonStyle(){$('.filter-botton-pop-up-1').toggleClass('has-url',selectedUrl!=="")} 389$('.click-toggled-filter-sort-by, .filter-block-pop-up.active-filter, .click-toggled-filter').on('click',function(){$('.filter-botton-pop-up-1').removeClass('has-url')})});
389$(document).ready(function(){$('.sort-by-pop-up').on('click',function(){if($(this).hasClass('active-filter')){$('#amazzing_filter .btn').css('display','none')}});$('.filter-block-pop-up').on('click',function(){if($(this).hasClass('active-filter')){$('#amazzing_filter .btn').css('display','block')}})});$(document).ready(function(){if(window.innerWidth<=426){if($('.media').length>3){$('.media:gt(2)').hide();$('<button id="ver-mas-btn">Ver más</button>').insertAfter('.media-list');$(document).on('click','#ver-mas-btn',function(){var nuevoTexto=$(this).text()==='Ver más'?'Ver menos':'Ver más';$(this).text(nuevoTexto);if(nuevoTexto==='Ver más'){$('.media:gt(2)').hide()}else{$('.media').show()}})}}});$(document).ready(function(){if(window.innerWidth>=768){var mediaList=$('.media-list');mediaList.css({'overflow-y':'scroll','max-height':'300px','padding-right':'17px',});mediaList.scroll(function(){if(mediaList.scrollTop()+mediaList.innerHeight()>=mediaList[0].scrollHeight){$('.media:hidden').show()}})}});$(document).ready(function(){$('.container-price-add-to-cart.-clickable').on('click',function(){$('.cart-grid-right.col-lg-4.soy_checkout_right').toggle()})});$(document).ready(function(){$('.only-mobile-close').click(function(){$('.cart-grid-right.col-lg-4.soy_checkout_right').toggle()})});function showAttributeName(){var attr_list=new Array();for(var id_attribute_group in wim_attribute_groups){var soy_group=wim_attribute_groups[id_attribute_group];if(soy_group.group_type=="select"){var id_attribute=$("body#product .product-variants [name='group["+id_attribute_group+"]']").val()}else{var id_attribute=$("body#product .product-variants [name='group["+id_attribute_group+"]']:checked").val()} 390for(var attr in soy_group.attributes){if(attr==id_attribute){attr_list.push(soy_group.attributes[attr].name)}} 391$("body#product .product-actions.SoyaddCart .wim_attributes_combination").text(" / "+attr_list.join(", "));$("body#product .sticky-variant-value").text(attr_list.join(", "))}} 392$(document).ready(function(){$('.ver-mas-diluciones').click(function(){$('.toggle-mobile-group-age').toggle();if($(this).text()==="Ver más"){$(this).text("Ver menos")}else{$(this).text("Ver más");$('.toggle-mobile-group-age').css('display','none')}})});function selectedCombo(){var checkedInput=$('.product-variants input:checked');checkedInput.parent().addClass('selectedCombo')} 393function stickyContainer(){var bar=document.getElementById('sticky-bar');if(!bar){return} 394var mq=window.matchMedia('(max-width: 991px)');var atc=document.querySelector('.product-actions.SoyaddCart .product-add-to-cart');var footer=document.getElementById('footer');var atcVisible=!0,footerVisible=!1;function refresh(){var show=mq.matches&&!atcVisible&&!footerVisible;bar.classList.toggle('sticky-add-to-cart',show);if(window.essSetStickyActive){window.essSetStickyActive('mobile',show)}} 395if('IntersectionObserver' in window&&atc){new IntersectionObserver(function(e){atcVisible=e[0].isIntersecting;refresh()},{threshold:0}).observe(atc);if(footer){new IntersectionObserver(function(e){footerVisible=e[0].isIntersecting;refresh()},{threshold:0,rootMargin:'0px 0px 120px 0px'}).observe(footer)}} 396if(mq.addEventListener){mq.addEventListener('change',refresh)}else if(mq.addListener){mq.addListener(refresh)} 397var main=document.getElementById('quantity_wanted');var input=bar.querySelector('.js-msb-qty');var minus=bar.querySelector('.js-msb-minus');var plus=bar.querySelector('.js-msb-plus');function minQty(){var m=main?parseInt(main.getAttribute('min'),10):1;return isNaN(m)?1:m} 398function push(v){if(!main){return} 399v=parseInt(v,10);if(isNaN(v)||v<minQty()){v=minQty()} 400if(window.jQuery){window.jQuery(main).val(v).trigger('change')}else{main.value=v;main.dispatchEvent(new Event('change',{bubbles:!0}))} 401return v} 402if(input&&main){input.value=main.value;input.addEventListener('change',function(){input.value=push(input.value)});if(minus){minus.addEventListener('click',function(){input.value=push((parseInt(input.value,10)||minQty())-1)})} 403if(plus){plus.addEventListener('click',function(){input.value=push((parseInt(input.value,10)||minQty())+1)})} 404if(window.jQuery){window.jQuery(document).on('change','#quantity_wanted',function(){var m=document.getElementById('quantity_wanted');if(m){input.value=m.value}})}else{main.addEventListener('change',function(){input.value=main.value})}} 405var addBtn=bar.querySelector('.sticky-button-cta');if(addBtn){addBtn.addEventListener('click',function(e){var real=document.getElementById('soy_compra');if(!real||real.disabled){e.preventDefault();e.stopPropagation();window.essScrollToVariants(!0);return} 406if(input&&main){var v=parseInt(input.value,10);if(isNaN(v)||v<minQty()){v=minQty()} 407main.value=v}})} 408refresh()} 409function isElementInViewport(el){var rect=el.getBoundingClientRect();var headerEl=document.querySelector('.soy_content_nav');var headerRect=headerEl.getBoundingClientRect();var headerHeight=headerRect.height;return(rect.bottom>headerHeight&&rect.left>=0&&rect.right<=(window.innerWidth||document.documentElement.clientWidth))} 410function getStickyPrice(){var price=$(".current-price .current-product-price").text();$('.sticky-product-price').text(price)} 411function buildStickyVariants(){var panel=document.getElementById('sticky-variants');var variantsWrap=document.querySelector('.product-actions.SoyaddCart .product-variants');if(!panel||!variantsWrap){return} 412function esc(s){return String(s).replace(/[&<>"']/g,function(c){return({'&':'&','<':'<','>':'>','"':'"',"'":'''})[c]})} 413function bgImage(el){if(!el){return''} 414var bi=el.style.backgroundImage||(window.getComputedStyle?getComputedStyle(el).backgroundImage:'');var m=/url\((['"]?)(.*?)\1\)/.exec(bi||'');return m?m[2]:''} 415function chip(gid,val,name,img,price,swatch,selected,disabled){var media=img?'<span class="sticky-variant-thumb" style="background-image:url('+img+')"></span>':(swatch?'<span class="sticky-variant-thumb" style="background:'+swatch+'"></span>':'');return'<button type="button" class="sticky-variant-option'+(selected?' is-selected':'')+(disabled?' is-disabled':'')+'" data-group="'+gid+'" data-value="'+esc(val)+'"'+(disabled?' disabled':'')+'>'+media+'<span class="sticky-variant-name">'+esc(name)+'</span>'+(price?'<span class="sticky-variant-price">'+esc(price)+'</span>':'')+'</button>'} 416var html='';variantsWrap.querySelectorAll('.product-variants-item').forEach(function(group){var control=group.querySelector('[name^="group["]');if(!control){return} 417var gm=/group\[(\d+)\]/.exec(control.getAttribute('name'));if(!gm){return} 418var gid=gm[1];var labelEl=group.querySelector('.control-label');var label=labelEl?labelEl.textContent.trim():'';var options='';var select=group.querySelector('select[name="group['+gid+']"]');if(select){Array.prototype.forEach.call(select.options,function(opt){options+=chip(gid,opt.value,opt.text.trim(),'','','',opt.selected,opt.disabled)})}else{group.querySelectorAll('input[name="group['+gid+']"]').forEach(function(inp){var box=inp.closest('.input-container')||inp.closest('label')||inp.parentNode;var nameEl=box.querySelector('.radio-label')||box.querySelector('.sr-only');var nm=nameEl?nameEl.textContent.trim():(inp.value||'');var img=bgImage(box.querySelector('.color.texture'));var colorEl=box.querySelector('.color:not(.texture)');var swatch=colorEl?(colorEl.style.backgroundColor||''):'';var priceEl=box.querySelector('.wim-combination-price');var price=priceEl?priceEl.textContent.trim():'';options+=chip(gid,inp.value,nm,img,price,swatch,inp.checked,inp.disabled)})} 419if(options){html+='<div class="sticky-variants-group">'+(label?'<span class="sticky-variants-group-label">'+esc(label)+'</span>':'')+'<div class="sticky-variants-options">
419'+options+'</div></div>'}});panel.innerHTML=html} 420$(document).on('click','.sticky-variant-option',function(){var $btn=$(this);if($btn.hasClass('is-disabled')){return} 421if($btn.hasClass('is-selected')){$('#sticky-variants').slideUp('fast');return} 422var gid=$btn.data('group');var val=String($btn.data('value'));var variantsWrap=document.querySelector('.product-actions.SoyaddCart .product-variants');if(!variantsWrap){return} 423var realInput=variantsWrap.querySelector('input[name="group['+gid+']"][value="'+val+'"]');if(realInput){realInput.click()}else{var select=variantsWrap.querySelector('select[name="group['+gid+']"]');if(select){if(window.jQuery){window.jQuery(select).val(val).trigger('change')}else{select.value=val;select.dispatchEvent(new Event('change',{bubbles:!0}))}}} 424$btn.closest('.sticky-variants-options').find('.sticky-variant-option').removeClass('is-selected');$btn.addClass('is-selected');$('#sticky-variants').slideUp('fast')});$(document).on('click','.sticky-selector',function(){$('#sticky-variants').slideToggle('fast')});$(document).on('keydown','.sticky-selector',function(e){if(e.key==='Enter'||e.key===' '||e.keyCode===13||e.keyCode===32){e.preventDefault();$('#sticky-variants').slideToggle('fast')}});function collapseProductDesc(){} 425function closeAllTabs(callback){$("#_mobile_valoraciones").slideUp();$("#_mobile_attachments").slideUp();$("#_mobile_faqs").slideUp();$(".soy_title_valoraciones").removeClass('show');$(".soy_title_descargas").removeClass('show');$(".soy_title_faqs").removeClass('show');if(callback){setTimeout(callback,400)}} 426$(window).on("load",function(){var element=$('.hc-sub--4 li .hc-cat').first();if(element.length){element.click()}});document.addEventListener('DOMContentLoaded',function(){$('.ws_wishlist_product_list').append('<div class="swiper-scrollbar"></div>');var swiper=new Swiper('.ws_wishlist_product_list',{direction:'horizontal',loop:!1,freeMode:!1,spaceBetween:20,breakpoints:{1920:{slidesPerView:3},992:{slidesPerView:3},320:{slidesPerView:1}},scrollbar:{el:'.swiper-scrollbar',draggable:!0,dragSize:150}})});document.addEventListener('DOMContentLoaded',function(){if(prestashop.page.page_name=='product'){$('.soy_titles').append('<div class="swiper-scrollbar"></div>');swiperSoyTitles=new Swiper('.soy_titles',{direction:'horizontal',loop:!1,freeMode:!1,spaceBetween:0,breakpoints:{1920:{slidesPerView:4},992:{slidesPerView:3.5},640:{slidesPerView:2.5},320:{slidesPerView:2}},scrollbar:{el:'.swiper-scrollbar',draggable:!0,dragSize:150}})}});function adjustEkomi(){var attempts=0;var appendElement=function(){if(++attempts>30){clearInterval(intervalId);return} 427if($('.pstats-section .topright').length===0){return} 428if($('.pstats-section .topright .top-center.box-right').length===0){$('<div class="top-center box-right"><span class="crating box-heading text-capitalize">Experiencia del producto</span></div>').appendTo('.pstats-section .topright');$('.bottomright .stats').appendTo('.pstats-section .topright .top-center');var review_numbers=$('.product-description .top-left .tot-reviews').text();var formattedText='('+review_numbers+' valoraciones)';$('.product-description .top-left .tot-reviews').text(formattedText);$('.pstars-blank').appendTo('.top-left .tot-reviews')}else{clearInterval(intervalId)}};var intervalId=setInterval(appendElement,1000)} 429function checkIfElementGetClass(){(function(func){$.fn.addClass=function(n){this.each(function(i){var $this=$(this);if(!this||typeof this.getAttribute!=='function')return;var prevClasses=this.getAttribute('class');var classNames=$.isFunction(n)?n(i,prevClasses):n.toString();$.each(classNames.split(/\s+/),function(index,className){if(!$this.hasClass(className)){func.call($this,className);$this.trigger('classAdded',className)}});prevClasses!=this.getAttribute('class')&&$this.trigger('classChanged')});return this}})($.fn.addClass);(function(func){$.fn.removeClass=function(n){this.each(function(i){var $this=$(this);if(!this||typeof this.getAttribute!=='function')return;var prevClasses=this.getAttribute('class');var classNames=$.isFunction(n)?n(i,prevClasses):n.toString();$.each(classNames.split(/\s+/),function(index,className){if($this.hasClass(className)){func.call($this,className);$this.trigger('classRemoved',className)}});prevClasses!=this.getAttribute('class')&&$this.trigger('classChanged')});return this}})($.fn.removeClass)} 430function whenSlickReady(fn,attempts){attempts=attempts||0;if(typeof $.fn.slick==='function'){fn();return} 431if(attempts>50)return;setTimeout(function(){whenSlickReady(fn,attempts+1)},100)} 432var qvCache=new Map();var qvHoverTimers=new WeakMap();var qvSwipers=new WeakMap();function qvKey(idProduct,idAttr){return(idProduct|0)+':'+((idAttr|0)||0)} 433function qvFetch(idProduct,idAttr){var key=qvKey(idProduct,idAttr);
433if(qvCache.has(key))return qvCache.get(key);var url=(window.prestashop&&prestashop.urls&&prestashop.urls.pages&&prestashop.urls.pages.product)||'';if(!url)return Promise.reject(new Error('prestashop.urls.pages.product unavailable'));var body='ajax=1&action=quickview&id_product='+encodeURIComponent(idProduct)+'&id_product_attribute='+encodeURIComponent((idAttr|0)||0);var req=fetch(url,{method:'POST',credentials:'same-origin',headers:{'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8','X-Requested-With':'XMLHttpRequest'},body:body}).then(function(r){if(!r.ok)throw new Error('quickview http '+r.status);return r.json()}).catch(function(err){qvCache.delete(key);throw err});qvCache.set(key,req);return req} 434function qvOpen(data){if(!data||!data.quickview_html||!data.product)return;var productId=data.product.id;var attrId=data.product.id_product_attribute||0;var id='quickview-modal-'+productId+'-'+attrId;var existing=document.getElementById(id);if(!existing){document.body.insertAdjacentHTML('beforeend',data.quickview_html);existing=document.getElementById(id)} 435if(existing)$(existing).modal('show');} 436var QV_SELECTOR='[data-button-action="quick-view"], [data-link-action="quickview"]';function qvIdsFromEl(el){var idProduct=el.getAttribute('data-id-product');var idAttr=el.getAttribute('data-id-product-attribute');if(idProduct)return{idProduct:idProduct,idAttr:idAttr||0};var mini=el.closest('.js-product-miniature, [data-id-product]');if(mini&&mini.getAttribute('data-id-product')){return{idProduct:mini.getAttribute('data-id-product'),idAttr:mini.getAttribute('data-id-product-attribute')||0}} 437var form=el.closest('form#add-to-cart-or-refresh')||el.closest('form');if(!form)return null;var prodInput=form.querySelector('#product_page_product_id, input[name="id_product"]');idProduct=prodInput&&prodInput.value;if(!idProduct)return null;var attrInput=form.querySelector('input[name="id_product_attribute"]:checked, input[name="id_product_attribute"]');idAttr=(attrInput&&attrInput.value)||0;return{idProduct:idProduct,idAttr:idAttr}} 438function qvHandleClick(el){var ids=qvIdsFromEl(el);if(!ids)return;qvFetch(ids.idProduct,ids.idAttr).then(qvOpen).catch(function(err){console.warn('quickview failed, navigating instead',err);var href=el.getAttribute('href')||(el.closest('a[href]')&&el.closest('a[href]').getAttribute('href'));if(href)window.location.href=href})} 439document.addEventListener('click',function(e){var el=e.target.closest(QV_SELECTOR);if(!el)return;e.preventDefault();e.stopImmediatePropagation();qvHandleClick(el)},!0);$(document).on('mouseenter',QV_SELECTOR,function(){var el=this;var ids=qvIdsFromEl(el);if(!ids)return;var t=setTimeout(function(){qvFetch(ids.idProduct,ids.idAttr).catch(function(){})},200);qvHoverTimers.set(el,t)});$(document).on('mouseleave',QV_SELECTOR,function(){var t=qvHoverTimers.get(this);if(t)clearTimeout(t);qvHoverTimers.delete(this)});function initQuickviewSwipers($modal){if(typeof Swiper==='undefined')return;var modalEl=$modal[0];var coverEl=modalEl.querySelector('.qv-swiper-cover');var thumbsEl=modalEl.querySelector('.qv-swiper-thumbs');if(!coverEl)return;if(qvSwipers.has(modalEl))return;var thumbsSwiper=null;if(thumbsEl){thumbsSwiper=new Swiper(thumbsEl,{slidesPerView:4,spaceBetween:10,freeMode:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,breakpoints:{0:{slidesPerView:3},576:{slidesPerView:4}}})} 440var coverSwiper=new Swiper(coverEl,{effect:'fade',fadeEffect:{crossFade:!0},speed:250,navigation:{nextEl:coverEl.querySelector('.swiper-button-next'),prevEl:coverEl.querySelector('.swiper-button-prev')},keyboard:{enabled:!0,onlyInViewport:!0},thumbs:thumbsSwiper?{swiper:thumbsSwiper}:undefined});qvSwipers.set(modalEl,{cover:coverSwiper,thumbs:thumbsSwiper});if(window.QV_DEBUG)console.log('[qv] swipers init',{slides:coverEl.querySelectorAll('.swiper-slide').length,thumbs:thumbsEl&&thumbsEl.querySelectorAll('.swiper-slide').length})} 441function destroyQuickviewSwipers($modal){var modalEl=$modal[0];var pair=qvSwipers.get(modalEl);if(!pair)return;try{if(pair.cover)pair.cover.destroy(!0,!0);}catch(e){} 442try{if(pair.thumbs)pair.thumbs.destroy(!0,!0);}catch(e){} 443qvSwipers.delete(modalEl)} 444$(document).on('shown.bs.modal','.quickview',function(){console.log('dada');var $modal=$(this);initQuickviewSwipers($modal);requestAnimationFrame(function(){var pair=qvSwipers.get($modal[0]);if(!pair)return;
444try{pair.cover&&pair.cover.update()}catch(e){} 445try{pair.thumbs&&pair.thumbs.update()}catch(e){}});initQuickviewCombosRail($modal[0])});function initQuickviewCombosRail(modal){if(!modal||!modal.querySelectorAll)return;var uls=modal.querySelectorAll('.product-variants-item > ul');if(!uls.length){if(window.QV_DEBUG)console.log('[qv-combos] no variant <ul> in modal');return} 446uls.forEach(function(ul){wrapVariantUlInRail(ul)})} 447function wrapVariantUlInRail(ul){if(!ul||!ul.parentElement)return;var rail=ul.parentElement.classList.contains('qv-combos-rail')?ul.parentElement:null;if(!rail){rail=document.createElement('div');rail.className='qv-combos-rail';ul.parentNode.insertBefore(rail,ul);rail.appendChild(ul);var prev=document.createElement('button');prev.type='button';prev.className='qv-combos-arrow qv-arrow-prev';prev.setAttribute('aria-label','Anterior');prev.innerHTML='â¹';var next=document.createElement('button');next.type='button';next.className='qv-combos-arrow qv-arrow-next';next.setAttribute('aria-label','Siguiente');next.innerHTML='âº';rail.appendChild(prev);rail.appendChild(next);var step=function(){return Math.max(120,Math.round(ul.clientWidth*0.8))};prev.addEventListener('click',function(e){e.preventDefault();qvSmoothScrollBy(ul,-step())});next.addEventListener('click',function(e){e.preventDefault();qvSmoothScrollBy(ul,step())});ul.addEventListener('scroll',function(){updateRailState(rail,ul)},{passive:!0});window.addEventListener('resize',function(){updateRailState(rail,ul)});var DRAG_THRESHOLD=5;var dragState=null;ul.addEventListener('pointerdown',function(e){if(e.pointerType!=='mouse')return;if(e.button!==0)return;if(e.target.closest&&e.target.closest('.qv-combos-arrow'))return;dragState={startX:e.clientX,startScroll:ul.scrollLeft,pointerId:e.pointerId,isDragging:!1,}});ul.addEventListener('pointermove',function(e){if(!dragState||e.pointerId!==dragState.pointerId)return;var dx=e.clientX-dragState.startX;if(!dragState.isDragging){if(Math.abs(dx)<DRAG_THRESHOLD)return;dragState.isDragging=!0;ul.classList.add('qv-rail-dragging');try{ul.setPointerCapture(dragState.pointerId)}catch(err){}} 448ul.scrollLeft=dragState.startScroll-dx;e.preventDefault()});function endDrag(e){if(!dragState)return;var wasDragging=dragState.isDragging;try{ul.releasePointerCapture(dragState.pointerId)}catch(err){} 449ul.classList.remove('qv-rail-dragging');dragState=null;if(wasDragging){var swallow=function(ev){ev.stopPropagation();ev.preventDefault();ul.removeEventListener('click',swallow,!0)};ul.addEventListener('click',swallow,!0);setTimeout(function(){ul.removeEventListener('click',swallow,!0)},50)}} 450ul.addEventListener('pointerup',endDrag);ul.addEventListener('pointercancel',endDrag);ul.addEventListener('pointerleave',endDrag);if(typeof ResizeObserver!=='undefined'){var ro=new ResizeObserver(function(){updateRailState(rail,ul)});ro.observe(ul);for(var li of ul.children)ro.observe(li)} 451if(window.QV_DEBUG)console.log('[qv-combos] wrapped variant strip',{items:ul.children.length,ulId:ul.id||'(no id)'})} 452requestAnimationFrame(function(){qvScrollSelectedIntoView(ul);updateRailState(rail,ul)});setTimeout(function(){updateRailState(rail,ul)},50);setTimeout(function(){updateRailState(rail,ul)},200);setTimeout(function(){updateRailState(rail,ul)},500)} 453function qvScrollSelectedIntoView(ul){if(!ul)return;var checked=ul.querySelector('input:checked');if(!checked)return;var li=checked.closest('li');if(!li)return;var ulRect=ul.getBoundingClientRect();var liRect=li.getBoundingClientRect();if(liRect.left<ulRect.left){ul.scrollLeft-=(ulRect.left-liRect.left)}else if(liRect.right>ulRect.right){ul.scrollLeft+=(liRect.right-ulRect.right)}} 454function qvSmoothScrollBy(el,deltaX,duration){if(!el)return;duration=duration||350;var start=el.scrollLeft;var target=Math.max(0,Math.min(el.scrollWidth-el.clientWidth,start+deltaX));var distance=target-start;if(distance===0)return;var t0=performance.now();function tick(now){var t=Math.min(1,(now-t0)/duration);var ease=0.5-Math.cos(t*Math.PI)/2;el.scrollLeft=start+distance*ease;if(t<1)requestAnimationFrame(tick);} 455requestAnimationFrame(tick)} 456function updateRailState(rail,ul){if(!rail||!ul)return;var overflow=ul.scrollWidth-ul.clientWidth;if(overflow<=1){rail.classList.remove('qv-rail-scrolled');rail.classList.add('qv-rail-end');return} 457var atStart=ul.scrollLeft<=5;var atEnd=ul.scrollLeft+ul.clientWidth>=ul.scrollWidth-5;rail.classList.toggle('qv-rail-scrolled',!atStart);rail.classList.toggle('qv-rail-end',atEnd)}(function watchQuickviewCombos(){if(typeof MutationObserver==='undefined')return;var mo=new MutationObserver(function(mutations){for(var i=0;i<mutations.length;i++){var m=mutations[i];for(var j=0;j<m.addedNodes.length;j++){var node=m.addedNodes[j];if(!node||node.nodeType!==1)continue;var modal=node.classList&&node.classList.contains('quickview')?node:(node.closest?node.closest('.quickview'):null);if(!modal&&node.querySelector){var inner=node.querySelector('.quickview');if(inner)modal=inner} 458if(modal)initQuickviewCombosRail(modal);if(node.matches&&node.matches('.product-variants-item, .product-variants-item ul')){var hostModal=node.closest('.quickview');if(hostModal)initQuickviewCombosRail(hostModal);}}}});mo.observe(document.body,{childList:!0,subtree:!0})})();$(document).on('hidden.bs.modal','.quickview',function(){var $modal=$(this);destroyQuickviewSwipers($modal);$modal.remove()});function qvUpdatedProductHandler(){var $modal=$('.quickview.in, .quickview.show').filter(':visible').first();if(!$modal.length)return;if(window.QV_DEBUG)console.log('[qv] updatedProduct â reinit');destroyQuickviewSwipers($modal);
458initQuickviewSwipers($modal);initQuickviewCombosRail($modal[0])}(function attachQvUpdatedProduct(tries){tries=tries||0;if(window.prestashop&&typeof window.prestashop.on==='function'){window.prestashop.on('updatedProduct',qvUpdatedProductHandler);if(window.QV_DEBUG)console.log('[qv] updatedProduct handler attached');return} 459if(tries>50){if(window.QV_DEBUG)console.warn('[qv] prestashop.on never became available');return} 460setTimeout(function(){attachQvUpdatedProduct(tries+1)},100)})();function quickViewCombinationPrice(){$(document).on('show.bs.modal','.quickview',function(){let wim_product_id=$('.quickview').find('#product_page_product_id').val();let wim_static_token=$('.quickview').find('input[name="token"]').val();let wim_attributes=[];let wim_other_selected_attributes=[];let wim_productVariants=$('.product-actions .product-variants-item');$(wim_productVariants).each(function(){if(!$(this).is('.color_quickview')){$(this).find('input').each(function(){if($(this).prop('checked')){let wim_attribute=[];wim_attribute.group_name=$(this).attr('name');wim_attribute.attr_value=$(this).val();wim_attributes.push(wim_attribute);wim_other_selected_attributes.push($(this).val())}});$(this).find('option').each(function(){if($(this).prop('selected')){let wim_attribute=[];wim_attribute.group_name=$(this).parent('select').attr('name');wim_attribute.attr_value=$(this).val();wim_attributes.push(wim_attribute);wim_other_selected_attributes.push($(this).val())}})}});let wim_only_attributes=[];let groupURL='';$('.quickview .product-actions .color_quickview input').each(function(){let wim_attribute=[];wim_attribute.group_name=$(this).attr('name');wim_attribute.attr_value=$(this).val();wim_only_attributes.push($(this).val());let wim_combination_attrs=[wim_attributes,[wim_attribute]];$(wim_combination_attrs).each(function(index,elem){$(elem).each(function(index,elem){let groupNameItem=elem.group_name;let attrItem=elem.attr_value;groupURL+='&'+groupNameItem+'='+attrItem})})});let url='index.php?controller=product?token='+wim_static_token+'&id_product='+wim_product_id+'&id_customization=0'+groupURL+'&qty=1';$.ajax({type:"POST",url:url,async:!0,data:{'wim_only_attributes':JSON.stringify(wim_only_attributes),'wim_other_selected_attributes':JSON.stringify(wim_other_selected_attributes),'ajax':1,'action':'refresh','getCombinationPrice':!0,'quantity_wanted':'1'},}).done(function(res){let attributesPrices=JSON.parse(JSON.stringify(res));if(!jQuery.isEmptyObject(attributesPrices)){$(attributesPrices).each(function(index,elem){if(elem.id_attribute.length&&elem.combination_price.length&&elem.combination_base_price.length){let id_attribute=elem.id_attribute;let attributePrice=elem.combination_price;let attributeInput='.quickview .product-actions .color_quickview input[value="'+id_attribute+'"]';if(elem.scale_images.length){$(attributeInput).parent().parent().addClass('scale_image')} 461$(attributeInput).parent().append('<div class="wim-combination-prices">');$(attributeInput).parent().find('.wim-combination-prices').append('<span class="wim-combination-price">'+attributePrice+'</span>');$(attributeInput).parent().append('</div>')}})} 462$('.wim-combination-prices').addClass('d-block')})})} 463function quickViewCombinationPriceOnUpdateProduct(){if($('.quickview').hasClass('in')){let wim_product_id=$('.quickview').find('#product_page_product_id').val();let wim_static_token=$('.quickview').find('input[name="token"]').val();let wim_attributes=[];let wim_other_selected_attributes=[];let wim_productVariants=$('.quickview .product-actions .product-variants-item');$(wim_productVariants).each(function(){if(!$(this).is('.color_quickview')){$(this).find('input').each(function(){if($(this).prop('checked')){let wim_attribute=[];wim_attribute.group_name=$(this).attr('name');wim_attribute.attr_value=$(this).val();wim_attributes.push(wim_attribute);wim_other_selected_attributes.push($(this).val())}});$(this).find('option').each(function(){if($(this).prop('selected')){let wim_attribute=[];wim_attribute.group_name=$(this).parent('select').attr('name');wim_attribute.attr_value=$(this).val();wim_attributes.push(wim_attribute);wim_other_selected_attributes.push($(this).val())}})}});let wim_only_attributes=[];let groupURL='';$('.quickview .product-actions .color_quickview input').each(function(){let wim_attribute=[];wim_attribute.group_name=$(this).attr('name');wim_attribute.attr_value=$(this).val();wim_only_attributes.push($(this).val());let wim_combination_attrs=[wim_attributes,[wim_attribute]];$(wim_combination_attrs).each(function(index,elem){$(elem).each(function(index,elem){let groupNameItem=elem.group_name;let attrItem=elem.attr_value;groupURL+='&'+groupNameItem+'='+attrItem})})});let url='index.php?controller=product?token='+wim_static_token+'&id_product='+wim_product_id+'&id_customization=0'+groupURL+'&qty=1';$.ajax({type:"POST",url:url,async:!0,data:{'wim_only_attributes':JSON.stringify(wim_only_attributes),'wim_other_selected_attributes':JSON.stringify(wim_other_selected_attributes),'ajax':1,'action':'refresh','getCombinationPrice':!0,'quantity_wanted':'1'},}).done(function(res){let attributesPrices=JSON.parse(JSON.stringify(res));if(!jQuery.isEmptyObject(attributesPrices)){$(attributesPrices).each(function(index,elem){if(elem.id_attribute.length&&elem.combination_price.length&&elem.combination_base_price.length){let id_attribute=elem.id_attribute;let attributePrice=elem.combination_price;let attributeInput='.quickview .product-actions .color_quickview input[value="'+id_attribute+'"]';$(attributeInput).parent().append('<div class="wim-combination-prices">');$(attributeInput).parent().find('.wim-combination-prices').append('<span class="wim-combination-price">'+attributePrice+'</span>');$(attributeInput).parent().append('</div>')}})} 464$('.wim-combination-prices').addClass('d-block')})}}
465function productCombinationPrice(){$(window).on('load',function(){let wim_product_id=$('.product-actions.SoyaddCart').find('#product_page_product_id').val();let wim_static_token=$('.product-actions.SoyaddCart').find('input[name="token"]').val();let wim_attributes=[];let wim_other_selected_attributes=[];let wim_productVariants=$('.product-actions.SoyaddCart .product-variants-item');$(wim_productVariants).each(function(){if(!$(this).is('.color_quickview')){$(this).find('input').each(function(){if($(this).prop('checked')){let wim_attribute=[];wim_attribute.group_name=$(this).attr('name');wim_attribute.attr_value=$(this).val();wim_attributes.push(wim_attribute);wim_other_selected_attributes.push($(this).val())}});$(this).find('option').each(function(){if($(this).prop('selected')){let wim_attribute=[];wim_attribute.group_name=$(this).parent('select').attr('name');wim_attribute.attr_value=$(this).val();wim_attributes.push(wim_attribute);wim_other_selected_attributes.push($(this).val())}})}});let wim_only_attributes=[];let groupURL='';$('.product-actions.SoyaddCart .color_quickview input').each(function(){let wim_attribute=[];wim_attribute.group_name=$(this).attr('name');wim_attribute.attr_value=$(this).val();wim_only_attributes.push($(this).val());let wim_combination_attrs=[wim_attributes,[wim_attribute]];$(wim_combination_attrs).each(function(index,elem){$(elem).each(function(index,elem){let groupNameItem=elem.group_name;let attrItem=elem.attr_value;groupURL+='&'+groupNameItem+'='+attrItem})})});let url='index.php?controller=product?token='+wim_static_token+'&id_product='+wim_product_id+'&id_customization=0'+groupURL+'&qty=1';$.ajax({type:"POST",url:url,async:!0,data:{'wim_only_attributes':JSON.stringify(wim_only_attributes),'wim_other_selected_attributes':JSON.stringify(wim_other_selected_attributes),'ajax':1,'action':'refresh','getCombinationPrice':!0,'quantity_wanted':'1'},}).done(function(res){let attributesPrices=JSON.parse(JSON.stringify(res));if(!jQuery.isEmptyObject(attributesPrices)){$(attributesPrices).each(function(index,elem){if(elem.id_attribute.length&&elem.combination_price.length&&elem.combination_base_price.length){let id_attribute=elem.id_attribute;let attributePrice=elem.combination_price;let attributeInput='.product-actions.SoyaddCart .color_quickview input[value="'+id_attribute+'"]';if($(attributeInput).parent().find('.wim-combination-prices').length===0){$(attributeInput).parent().append('<div class="wim-combination-prices">');$(attributeInput).parent().find('.wim-combination-prices').append('<span class="wim-combination-price">'+attributePrice+'</span>');$(attributeInput).parent().append('</div>')}}})} 466$('.wim-combination-prices').addClass('d-block')})})} 467function productCombinationPriceOnUpdate(){if(!$('#product').length)return 0;let wim_product_id=$('.product-actions.SoyaddCart').find('#product_page_product_id').val();let wim_static_token=$('.product-actions.SoyaddCart').find('input[name="token"]').val();let wim_attributes=[];let wim_other_selected_attributes=[];let wim_productVariants=$('.product-actions.SoyaddCart .product-variants-item');$(wim_productVariants).each(function(){if(!$(this).is('.color_quickview')){$(this).find('input').each(function(){if($(this).prop('checked')){let wim_attribute=[];wim_attribute.group_name=$(this).attr('name');wim_attribute.attr_value=$(this).val();wim_attributes.push(wim_attribute);wim_other_selected_attributes.push($(this).val())}});$(this).find('option').each(function(){if($(this).prop('selected')){let wim_attribute=[];wim_attribute.group_name=$(this).parent('select').attr('name');wim_attribute.attr_value=$(this).val();wim_attributes.push(wim_attribute);wim_other_selected_attributes.push($(this).val())}})}});let wim_only_attributes=[];let groupURL='';$('.product-actions.SoyaddCart .color_quickview input').each(function(){let wim_attribute=[];wim_attribute.group_name=$(this).attr('name');wim_attribute.attr_value=$(this).val();wim_only_attributes.push($(this).val());let wim_combination_attrs=[wim_attributes,[wim_attribute]];$(wim_combination_attrs).each(function(index,elem){$(elem).each(function(index,elem){let groupNameItem=elem.group_name;let attrItem=elem.attr_value;groupURL+='&'+groupNameItem+'='+attrItem})})});let url='index.php?controller=product?token='+wim_static_token+'&id_product='+wim_product_id+'&id_customization=0'+groupURL+'&qty=1';$.ajax({type:"POST",url:url,async:!0,data:{'wim_only_attributes':JSON.stringify(wim_only_attributes),'wim_other_selected_attributes':JSON.stringify(wim_other_selected_attributes),'ajax':1,'action':'refresh','getCombinationPrice':!0,'quantity_wanted':'1'},}).done(function(res){let attributesPrices=JSON.parse(JSON.stringify(res));if(!jQuery.isEmptyObject(attributesPrices)){$(attributesPrices).each(function(index,elem){if(elem.id_attribute.length&&elem.combination_price.length&&elem.combination_base_price.length){let id_attribute=elem.id_attribute;let attributePrice=elem.combination_price;let attributeInput='.product-actions.SoyaddCart .color_quickview input[value="'+id_attribute+'"]';if($(attributeInput).parent().find('.wim-combination-prices').length===0){$(attributeInput).parent().append('<div class="wim-combination-prices">');$(attributeInput).parent().find('.wim-combination-prices').append('<span class="wim-combination-price">'+attributePrice+'</span>');$(attributeInput).parent().append('</div>')}}})} 468$('.wim-combination-prices').addClass('d-block')})} 469function scaleImages(){if($('.quickview .scale_image').length){var listItems=$('.quickview .scale_image ul li.input-container');var numItems=listItems.length;var stepSize=0.07;listItems.each(function(index){var transformScale=1-(numItems-index-1)*stepSize;var transformTextScale=1+(numItems-index-1)*stepSize;$(this).find('.color.texture').css({'transform':'scale('+transformScale.toFixed(2)+')','transform-origin':'bottom'});$(this).find('.sr-only').css('transform','scale('+transformTextScale.toFixed(2)+')')})}} 470function categoryPageDesc(){var $content=$(".category_description_content");
470if(!$content.text().trim()){return} 471var $h1=$content.find("h1");var $h2s=$content.find("h2");var $tabs=$("<div class='tabs'></div>");$content.prepend($tabs);var $mainTitle;var $mainText;if($h1.length){$mainTitle=$("<div class='main-title'>"+$h1.text()+"</div>");$mainText=$h1.nextUntil("h2").addClass("main-text")}else{var $firstH2=$content.find("h2:first");var $p=$content.find("p").filter(function(){return $(this).prevAll("h2").length===0});$mainTitle=$("<div class='main-title'></div>");$mainText=$p.addClass("main-text")} 472$tabs.append($mainTitle);$tabs.append($mainText);$h2s.each(function(i){var $this=$(this);var $nextH2=$h2s.eq(i+1);var $tabContent;if($nextH2.length){$tabContent=$this.nextUntil("h2")}else{$tabContent=$this.nextAll()} 473var $tab=$("<div class='tab'></div>");var $tabTitle=$("<div class='tab-title'>"+$this.text()+"<i class='fa fa-plus'></i></div>");var $tabBody=$("<div class='tab-body' style='display: none;'></div>");$tabBody.append($tabContent);$tab.append($tabTitle).append($tabBody);$tabs.append($tab);$tabTitle.on("click",function(){if($tabBody.is(':visible')){$tabBody.hide();$tabTitle.find('i').removeClass('fa-minus').addClass('fa-plus');return} 474$('.tab-body').hide();$('.tab-title i').removeClass('fa-minus').addClass('fa-plus');$tabBody.show();$tabTitle.find('i').removeClass('fa-plus').addClass('fa-minus')})});$h1.remove();$h2s.remove();if($h2s.length===0){$('.main-text:last').css('margin-bottom','0')}} 475function slickFeaturedProducts(){if(typeof $.fn.slick!=='function'){whenSlickReady(slickFeaturedProducts);return} 476var featuredProducts=document.querySelectorAll('.featured-products .products');if(featuredProducts.length){featuredProducts.forEach(function(featuredProduct){$(featuredProduct).slick({dots:!1,arrows:!1,infinite:!1,speed:300,slidesToShow:4,slidesToScroll:1,responsive:[{breakpoint:1200,settings:{arrows:!1,centerMode:!1,slidesToShow:3}},{breakpoint:768,settings:{arrows:!1,centerMode:!1,slidesToShow:2}},{breakpoint:480,settings:{arrows:!1,centerMode:!1,slidesToShow:2}}]})})}} 477$(document).ready(function(){$('#product .tab-title').click(function(){var tabBody=$(this).next('.tab-body');var icon=$(this).find('.fa');if(tabBody.is(':visible')){tabBody.slideUp();icon.addClass('fa-plus').removeClass('fa-minus')}
477else{$('.tab-body').slideUp();$('.fa-minus').addClass('fa-plus').removeClass('fa-minus');tabBody.slideDown();icon.addClass('fa-minus').removeClass('fa-plus')}})});$(window).on("load",function(){if(window.innerWidth>=768){$("#scroll-link").click(function(){$("#valoraciones-tab").click();$("html, body").animate({scrollTop:$("#valoraciones-tab").offset().top-100},1000)})}else{$("#scroll-link").click(function(){$('.soy_title_valoraciones h5').click();swiperSoyTitles.slideTo(1,300);$("html, body").animate({scrollTop:$("#product-description-large").offset().top-200},1000)})}});$(document).ready(function(){console.log('testing!');var isUpdating=!1;$(document).on('change','input[name="id_address_delivery"]',function(){if(isUpdating){console.log('Already updating, please wait...');return} 478var $selectedRadio=$(this);var selectedAddressId=$selectedRadio.val();var $addressItem=$selectedRadio.closest('.js-address-item');$('.js-address-item').removeClass('selected');$addressItem.addClass('selected');updateAddressAndRefreshCheckout(selectedAddressId,'delivery')});$(document).on('change','input[name="id_address_invoice"]',function(){if(isUpdating){console.log('Already updating, please wait...');return} 479var $selectedRadio=$(this);var selectedAddressId=$selectedRadio.val();var $addressItem=$selectedRadio.closest('.js-address-item');$('.js-address-item').removeClass('selected');$addressItem.addClass('selected');updateAddressAndRefreshCheckout(selectedAddressId,'invoice')});function updateAddressAndRefreshCheckout(addressId,type){isUpdating=!0;var $checkoutSummary=$('#js-checkout-summary');$checkoutSummary.css('opacity','0.5');$('input[name="id_address_delivery"], input[name="id_address_invoice"]').prop('disabled',!0);var ajaxData={ajax:1,action:'updateAddress',timestamp:new Date().getTime()};if(type==='delivery'){ajaxData.id_address_delivery=addressId;console.log('Updating delivery address to:',addressId)}else{ajaxData.id_address_invoice=addressId;console.log('Updating invoice address to:',addressId)} 480$.ajax({type:'POST',url:prestashop.urls.pages.order,data:ajaxData,dataType:'json',cache:!1,success:function(response){console.log('Response:',response);if(response.success&&response.preview){$checkoutSummary.replaceWith(response.preview);console.log('â Address updated and checkout summary refreshed!');console.log('Debug info:',response.debug);$('input[name="id_address_delivery"], input[name="id_address_invoice"]').prop('disabled',!1);isUpdating=!1}else{console.error('â No preview in response or update failed');$('#js-checkout-summary').css('opacity','1');$('input[name="id_address_delivery"], input[name="id_address_invoice"]').prop('disabled',!1);isUpdating=!1}},error:function(xhr,status,error){console.error('â Error updating address:',error);console.log('Response text:',xhr.responseText);$('#js-checkout-summary').css('opacity','1');$('input[name="id_address_delivery"], input[name="id_address_invoice"]').prop('disabled',!1);isUpdating=!1}})}});(function(){function labelTouchspin(){var up=document.querySelectorAll('.bootstrap-touchspin-up:not([aria-label])');var down=document.querySelectorAll('.bootstrap-touchspin-down:not([aria-label])');for(var i=0;i<up.length;i++){up[i].setAttribute('aria-label','Aumentar cantidad')} 481for(var j=0;j<down.length;j++){down[j].setAttribute('aria-label','Disminuir cantidad')}} 482if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',labelTouchspin)}else{labelTouchspin()} 483if(window.prestashop&&typeof window.prestashop.on==='function'){window.prestashop.on('updatedProduct',labelTouchspin);window.prestashop.on('updatedCart',labelTouchspin)} 484if(window.MutationObserver){var queued=!1;new MutationObserver(function(){if(queued){return} 485queued=!0;requestAnimationFrame(function(){queued=!1;labelTouchspin()})}).observe(document.documentElement,{childList:!0,subtree:!0})}})();(function(){function labelElementorImages(){var imgs=document.querySelectorAll('.elementor-image-box-img img:not([alt])');for(var i=0;i<imgs.length;i++){var img=imgs[i];var wrap=img.closest?img.closest('.elementor-image-box-wrapper'):null;var title=wrap?wrap.querySelector('.elementor-image-box-title'):null;img.setAttribute('alt',title?(title.textContent||'').trim():'')}} 486if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',labelElementorImages)}else{labelElementorImages()}})();(function(){'use strict';if(typeof prestashop==='undefined'||!prestashop.page||prestashop.page.page_name!=='product'){return} 487var DESKTOP_MQ=window.matchMedia('(min-width: 992px)');var bar,mainQty,mainAddBtn,atcSection,footer,variantsWrap;var atcVisible=!0;var footerVisible=!1;var syncing=!1;var observersReady=!1;var atcObserver=null;function $one(sel,ctx){return(ctx||document).querySelector(sel)} 488function cacheNodes(){bar=$one('#desktop-sticky-bar');mainQty=$one('#quantity_wanted');mainAddBtn=$one('#soy_compra');atcSection=$one('.product-actions.SoyaddCart .product-add-to-cart');variantsWrap=$one('.product-actions.SoyaddCart .product-variants');footer=document.getElementById('footer');return bar&&atcSection} 489function refreshVisibility(){if(!bar){return} 490var show=DESKTOP_MQ.matches&&!atcVisible&&!footerVisible;bar.classList.toggle('dsb-visible',show);bar.setAttribute('aria-hidden',show?'false':'true');
490if(window.essSetStickyActive){window.essSetStickyActive('desktop',show)}} 491function initObservers(){if(observersReady||!('IntersectionObserver' in window)){return} 492atcObserver=new IntersectionObserver(function(entries){atcVisible=entries[0].isIntersecting;refreshVisibility()},{threshold:0});atcObserver.observe(atcSection);if(footer){new IntersectionObserver(function(entries){footerVisible=entries[0].isIntersecting;refreshVisibility()},{threshold:0,rootMargin:'0px 0px 140px 0px'}).observe(footer)} 493observersReady=!0} 494function reobserveAtc(){if(!atcObserver){return} 495var current=$one('.product-actions.SoyaddCart .product-add-to-cart');if(current&¤t!==atcSection){atcObserver.disconnect();atcSection=current;atcVisible=!0;atcObserver.observe(atcSection)}} 496function currentPrice(){var el=$one('.product-prices .current-product-price')||$one('.current-price .current-product-price');return el?el.textContent.trim():''} 497function currentVariantText(){if(!variantsWrap){return''} 498var parts=[];var items=variantsWrap.querySelectorAll('.product-variants-item');items.forEach(function(item){var labelEl=item.querySelector('.control-label');var label=labelEl?labelEl.textContent.trim():'';var value='';var select=item.querySelector('select');if(select){var opt=select.options[select.selectedIndex];value=opt?opt.text.trim():''}else{var checked=item.querySelector('input:checked');if(checked){var lbl=checked.closest('label');var tag=lbl&&(lbl.querySelector('.radio-label')||lbl.querySelector('.sr-only'));value=tag?tag.textContent.trim():(checked.value||'')}} 499if(value){parts.push(label?(label+': '+value):value)}});return parts.join(', ')} 500function currentThumb(){var img=$one('#content .product-cover .slick-current img')||$one('#content .product-cover img')||$one('.js-qv-product-cover');return img?img.getAttribute('src'):null} 501function updateBarContent(){if(!bar){return} 502var priceTxt=currentPrice();var variantTxt=currentVariantText();var hasVariants=!!(variantsWrap&&variantsWrap.querySelector('.product-variants-item'));var vEl=bar.querySelector('.dsb-variant-text');var changeLink=bar.querySelector('.dsb-change-link');var variantBtn=bar.querySelector('.dsb-variant');if(hasVariants){if(vEl){vEl.textContent=variantTxt+(variantTxt&&priceTxt?' · '+priceTxt:(priceTxt||''))} 503if(changeLink){changeLink.style.display=''} 504if(variantBtn){variantBtn.disabled=!1;variantBtn.style.cursor='pointer'}}else{if(vEl){vEl.textContent=priceTxt} 505if(changeLink){changeLink.style.display='none'} 506if(variantBtn){variantBtn.disabled=!0;variantBtn.style.cursor='default'}} 507var thumb=currentThumb();var tEl=bar.querySelector('.dsb-thumb');if(thumb&&tEl&&tEl.getAttribute('src')!==thumb){tEl.setAttribute('src',thumb)} 508var addBtn=bar.querySelector('.dsb-add');if(addBtn&&mainAddBtn){addBtn.classList.toggle('dsb-disabled',mainAddBtn.disabled)} 509syncQtyFromMain()} 510function minQty(){var m=mainQty?parseInt(mainQty.getAttribute('min'),10):1;return isNaN(m)?1:m} 511function syncQtyFromMain(){if(!mainQty||!bar){return} 512var input=bar.querySelector('.js-dsb-qty');if(input&&!syncing){input.value=mainQty.value}} 513function pushQtyToMain(val){if(!mainQty){return} 514val=parseInt(val,10);if(isNaN(val)||val<minQty()){val=minQty()} 515syncing=!0;if(window.jQuery){window.jQuery(mainQty).val(val).trigger('change')}else{mainQty.value=val;mainQty.dispatchEvent(new Event('change',{bubbles:!0}))} 516syncing=!1;return val} 517function scrollToVariants(focus){window.essScrollToVariants(focus)} 518function stickyAddToCart(){if(!mainAddBtn||mainAddBtn.disabled){scrollToVariants(!0);return} 519var input=bar.querySelector('.js-dsb-qty');if(input&&mainQty){var v=parseInt(input.value,10);if(isNaN(v)||v<minQty()){v=minQty()} 520mainQty.value=v} 521mainAddBtn.click()} 522function bindEvents(){bar.querySelectorAll('.js-dsb-change').forEach(function(el){el.addEventListener('click',function(e){e.preventDefault();scrollToVariants(!0)})});var input=bar.querySelector('.js-dsb-qty');var down=bar.querySelector('.js-dsb-qty-down');var up=bar.querySelector('.js-dsb-qty-up');if(down){down.addEventListener('click',function(){input.value=pushQtyToMain((parseInt(input.value,10)||minQty())-1)})} 523if(up){up.addEventListener('click',function(){input.value=pushQtyToMain((parseInt(input.value,10)||minQty())+1)})} 524if(input){input.addEventListener('change',function(){input.value=pushQtyToMain(input.value)})} 525var addBtn=bar.querySelector('.js-dsb-add');if(addBtn){addBtn.addEventListener('click',stickyAddToCart)} 526if(window.jQuery){window.jQuery(document).on('change','#quantity_wanted',function(){if(!syncing){syncQtyFromMain()}})} 527if(DESKTOP_MQ.addEventListener){DESKTOP_MQ.addEventListener('change',refreshVisibility)}else if(DESKTOP_MQ.addListener){DESKTOP_MQ.addListener(refreshVisibility)} 528prestashop.on('updatedProduct',function(){mainQty=$one('#quantity_wanted');mainAddBtn=$one('#soy_compra');variantsWrap=$one('.product-actions.SoyaddCart .product-variants');reobserveAtc();updateBarContent()});prestashop.on('updatedCart',updateBarContent)}
529function init(){if(!cacheNodes()){return} 530bindEvents();initObservers();updateBarContent();refreshVisibility()} 531if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',init)}else{init()}})();window.essFixedHeaderOffset=function(){var candidates=['#header .soy_header_fijo','#header .header-nav .soy_content_nav','#header .header-nav'];for(var i=0;i<candidates.length;i++){var el=document.querySelector(candidates[i]);if(!el){continue} 532var pos=window.getComputedStyle(el).position;var rect=el.getBoundingClientRect();if((pos==='fixed'||pos==='sticky')&&rect.top<=1&&rect.height){return rect.height}} 533return 20};window.essScrollToVariants=function(focus){var variantsWrap=document.querySelector('.product-actions.SoyaddCart .product-variants');var target=variantsWrap||document.querySelector('.product-actions.SoyaddCart .product-add-to-cart');if(!target){return} 534var top=window.pageYOffset+target.getBoundingClientRect().top-window.essFixedHeaderOffset()-16;window.scrollTo({top:Math.max(0,top),behavior:'smooth'});if(variantsWrap){variantsWrap.classList.remove('ess-variant-highlight');void variantsWrap.offsetWidth;variantsWrap.classList.add('ess-variant-highlight');setTimeout(function(){variantsWrap.classList.remove('ess-variant-highlight')},1700);if(focus){var firstControl=variantsWrap.querySelector('select, input');if(firstControl){try{firstControl.focus({preventScroll:!0})}catch(e){firstControl.focus()}}}}};(function(){var state={mobile:!1,desktop:!1};var GAP=10;var CHAT_SELECTOR='chat-oct8ne, #livechat-wrapper, #oct8ne-livechat, #oct8ne-chat-button';function collapsedHeight(bar){if(!bar){return 0} 535var h=bar.offsetHeight;var panel=document.getElementById('sticky-variants');if(panel&&panel.offsetHeight&&getComputedStyle(panel).display!=='none'){h-=(panel.offsetHeight+10)} 536return Math.max(0,h)} 537function popup(){var el=document.getElementById('popupContainer');return(el&&el.offsetHeight)?el:null} 538function dockedHeight(){var h=0;if(state.mobile){h=Math.max(h,collapsedHeight(document.getElementById('sticky-bar')))} 539if(state.desktop){h=Math.max(h,collapsedHeight(document.getElementById('desktop-sticky-bar')))} 540var p=popup();if(p){h=Math.max(h,p.offsetHeight)} 541return h} 542function isVisible(el){var cs=getComputedStyle(el);return cs.display!=='none'&&cs.visibility!=='hidden'&&parseFloat(cs.opacity)!==0} 543function fixedHost(el){for(var n=el;n&&n!==document.body;n=n.parentElement){if(getComputedStyle(n).position==='fixed'){return n}} 544return el} 545function tagFloating(){var EXCLUDE=/sticky-bar|desktop-sticky-bar|scroll-to-top|popupContainer|darkOverlay|^header$|adveg-grecaptcha|footer|cookie|gdpr|rgpd/i;var vw=window.innerWidth,vh=window.innerHeight;Array.prototype.forEach.call(document.querySelectorAll(CHAT_SELECTOR),function(el){var host=fixedHost(el);if(host&&isVisible(host)&&host.offsetHeight<=250){host.classList.add('ess-sticky-lift')}});Array.prototype.forEach.call(document.body.children,function(el){if(el.nodeType!==1||el.classList.contains('ess-sticky-lift')){return} 546var idcls=(el.id||'')+' '+(el.className&&el.className.baseVal!==undefined?'':el.className||'');if(EXCLUDE.test(idcls)||el===document.getElementById('sticky-bar')||el===document.getElementById('desktop-sticky-bar')){return} 547var cs=getComputedStyle(el);if(cs.position!=='fixed'||cs.display==='none'||parseFloat(cs.opacity)===0){return} 548var r=el.getBoundingClientRect();if(!r.width||!r.height){return} 549var bottomAnchored=r.bottom>=vh-180&&r.bottom<=vh+40;var rightSide=r.left>=vw*0.55;var buttonSized=r.width<=200&&r.height<=200;if(bottomAnchored&&rightSide&&buttonSized){el.classList.add('ess-sticky-lift')}})} 550function naturalBottom(el){var applied=parseFloat(el.style.getPropertyValue('--ess-lift-y'))||0;var r=el.getBoundingClientRect();if(r.height&&(applied===0||el.essNaturalBottom==null)){el.essNaturalBottom=r.bottom+applied} 551return el.essNaturalBottom||0} 552function applyLift(height){var ceiling=window.innerHeight-height-GAP;var widgets=document.querySelectorAll('.scroll-to-top, .ess-sticky-lift');Array.prototype.forEach.call(widgets,function(el){var overlap=naturalBottom(el)-ceiling;el.style.setProperty('--ess-lift-y',Math.max(0,Math.round(overlap))+'px')})} 553function clearLift(){Array.prototype.forEach.call(document.querySelectorAll('.scroll-to-top, .ess-sticky-lift'),function(el){el.style.setProperty('--ess-lift-y','0px');el.classList.remove('ess-sticky-lift')})} 554function refresh(){var height=dockedHeight();var active=height>0&&(state.mobile||state.desktop||popup());document.body.classList.toggle('ess-sticky-active',!!active);if(active){document.documentElement.style.setProperty('--ess-sticky-lift',height+'px');tagFloating();applyLift(height)}else{clearLift()}} 555window.essSetStickyActive=function(which,on){if(which!=='mobile'&&which!=='desktop'){return} 556state[which]=!!on;refresh()};var queued=!1;function scheduleRefresh(){if(queued){return} 557queued=!0;setTimeout(function(){queued=!1;refresh()},0)} 558if(window.MutationObserver&&document.body){new MutationObserver(scheduleRefresh).observe(document.body,{childList:!0})} 559window.addEventListener('resize',function(){Array.prototype.forEach.call(document.querySelectorAll('.scroll-to-top, .ess-sticky-lift'),function(el){el.essNaturalBottom=null});scheduleRefresh()})})();(function(){function minQty(input){var m=parseInt(input.getAttribute('min'),10);return isNaN(m)?1:m} 560function syncDisabled(){var input=document.getElementById('quantity_wanted');if(!input){return} 561var down=document.querySelector('.js-ess-qty-down');if(down){down.disabled=(parseInt(input.value,10)||minQty(input))<=m
vendor: 5,971 bytes, lines 561-573
561inQty(input)}} 562function step(delta){var input=document.getElementById('quantity_wanted');if(!input){return} 563var min=minQty(input);var next=(parseInt(input.value,10)||min)+delta;if(next<min){next=min} 564if(window.jQuery){window.jQuery(input).val(next).trigger('change')}else{input.value=next;input.dispatchEvent(new Event('change',{bubbles:!0}))} 565syncDisabled()} 566document.addEventListener('click',function(e){var btn=e.target.closest?e.target.closest('.ess-qty-btn'):null;if(!btn){return} 567e.preventDefault();step(btn.classList.contains('js-ess-qty-up')?1:-1)});if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',syncDisabled)}else{syncDisabled()} 568if(window.prestashop&&typeof window.prestashop.on==='function'){window.prestashop.on('updatedProduct',syncDisabled)} 569if(window.jQuery){window.jQuery(document).on('change','#quantity_wanted',syncDisabled)}})();/*! jQuery UI - v1.10.3 - 2013-05-03 570* http://jqueryui.com 571* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js 572* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 573!function(a,b){function e(b,c){var d,e,g,h=b.nodeName.toLowerCase();return"area"===h?(d=b.parentNode,e=d.name,!(!b.href||!e||"map"!==d.nodeName.toLowerCase())&&(g=a("img[usemap=#"+e+"]")[0],!!g&&f(g))):(/input|select|textarea|button|object/.test(h)?!b.disabled:"a"===h?b.href||c:c)&&f(b)}function f(b){return a.expr.filters.visible(b)&&!a(b).parents().addBack().filter(function(){return"hidden"===a.css(this,"visibility")}).length}var c=0,d=/^ui-id-\d+$/;a.ui=a.ui||{},a.extend(a.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({focus:function(b){return function(c,d){return"number"==typeof c?this.each(function(){var b=this;setTimeout(function(){a(b).focus(),d&&d.call(b)},c)}):b.apply(this,arguments)}}(a.fn.focus),scrollParent:function(){var b;return b=a.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.css(this,"position"))&&/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length)for(var e,f,d=a(this[0]);d.length&&d[0]!==document;){if(e=d.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(f=parseInt(d.css("zIndex"),10),!isNaN(f)&&0!==f))return f;d=d.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++c)})},removeUniqueId:function(){return this.each(function(){d.test(this.id)&&a(this).removeAttr("id")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return e(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var c=a.attr(b,"tabindex"),d=isNaN(c);return(d||c>=0)&&e(b,!d)}}),a("<a>").outerWidth(1).jquery||a.each(["Width","Height"],function(c,d){function h(b,c,d,f){return a.each(e,function(){c-=parseFloat(a.css(b,"padding"+this))||0,d&&(c-=parseFloat(a.css(b,"border"+this+"Width"))||0),f&&(c-=parseFloat(a.css(b,"margin"+this))||0)}),c}var e="Width"===d?["Left","Right"]:["Top","Bottom"],f=d.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?g["inner"+d].call(this):this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return"number"!=typeof b?g["outer"+d].call(this,b):this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=function(b){return function(c){return arguments.length?b.call(this,a.camelCase(c)):b.call(this)}}(a.fn.removeData)),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.support.selectstart="onselectstart"in document.createElement("div"),a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.extend(a.ui,{plugin:{add:function(b,c,d){var e,f=a.ui[b].prototype;for(e in d)f.plugins[e]=f.plugins[e]||[],f.plugins[e].push([c,d[e]])},call:function(a,b,c){var d,e=a.plugins[b];if(e&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(d=0;d<e.length;d++)a.options[e[d][0]]&&e[d][1].apply(a.element,c)}},hasScroll:function(b,c){if("hidden"===a(b).css("overflow"))return!1;var d=c&&"left"===c?"scrollLeft":"scrollTop",e=!1;return b[d]>
vendor: 24,975 bytes, line 573
5730||(b[d]=1,e=b[d]>0,b[d]=0,e)}})}(jQuery),function(a,b){var c=0,d=Array.prototype.slice,e=a.cleanData;a.cleanData=function(b){for(var d,c=0;null!=(d=b[c]);c++)try{a(d).triggerHandler("remove")}catch(a){}e(b)},a.widget=function(b,c,d){var e,f,g,h,i={},j=b.split(".")[0];b=b.split(".")[1],e=j+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][e.toLowerCase()]=function(b){return!!a.data(b,e)},a[j]=a[j]||{},f=a[j][b],g=a[j][b]=function(a,b){return this._createWidget?void(arguments.length&&this._createWidget(a,b)):new g(a,b)},a.extend(g,f,{version:d.version,_proto:a.extend({},d),_childConstructors:[]}),h=new c,h.options=a.widget.extend({},h.options),a.each(d,function(b,d){return a.isFunction(d)?void(i[b]=function(){var a=function(){return c.prototype[b].apply(this,arguments)},e=function(a){return c.prototype[b].apply(this,a)};return function(){var f,b=this._super,c=this._superApply;return this._super=a,this._superApply=e,f=d.apply(this,arguments),this._super=b,this._superApply=c,f}}()):void(i[b]=d)}),g.prototype=a.widget.extend(h,{widgetEventPrefix:f?h.widgetEventPrefix:b},i,{constructor:g,namespace:j,widgetName:b,widgetFullName:e}),f?(a.each(f._childConstructors,function(b,c){var d=c.prototype;a.widget(d.namespace+"."+d.widgetName,g,c._proto)}),delete f._childConstructors):c._childConstructors.push(g),a.widget.bridge(b,g)},a.widget.extend=function(c){for(var h,i,e=d.call(arguments,1),f=0,g=e.length;f<g;f++)for(h in e[f])i=e[f][h],e[f].hasOwnProperty(h)&&i!==b&&(a.isPlainObject(i)?c[h]=a.isPlainObject(c[h])?a.widget.extend({},c[h],i):a.widget.extend({},i):c[h]=i);return c},a.widget.bridge=function(c,e){var f=e.prototype.widgetFullName||c;a.fn[c]=function(g){var h="string"==typeof g,i=d.call(arguments,1),j=this;return g=!h&&i.length?a.widget.extend.apply(null,[g].concat(i)):g,h?this.each(function(){var d,e=a.data(this,f);return e?a.isFunction(e[g])&&"_"!==g.charAt(0)?(d=e[g].apply(e,i),d!==e&&d!==b?(j=d&&d.jquery?j.pushStack(d.get()):d,!1):void 0):a.error("no such method '"+g+"' for "+c+" widget instance"):a.error("cannot call methods on "+c+" prior to initialization; attempted to call method '"+g+"'")}):this.each(function(){var b=a.data(this,f);b?b.option(g||{})._init():a.data(this,f,new e(g,this))}),j}},a.Widget=function(){},a.Widget._childConstructors=[],a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(b,d){d=a(d||this.defaultElement||this)[0],this.element=a(d),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=a.widget.extend({},this.options,this._getCreateOptions(),b),this.bindings=a(),this.hoverable=a(),this.focusable=a(),d!==this&&(a.data(d,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:a.noop,widget:function(){return this.element},option:function(c,d){var f,g,h,e=c;if(0===arguments.length)return a.widget.extend({},this.options);if("string"==typeof c)if(e={},f=c.split("."),c=f.shift(),f.length){for(g=e[c]=a.widget.extend({},this.options[c]),h=0;h<f.length-1;h++)g[f[h]]=g[f[h]]||{},g=g[f[h]];if(c=f.pop(),d===b)return g[c]===b?null:g[c];g[c]=d}else{if(d===b)return this.options[c]===b?null:this.options[c];e[c]=d}return this._setOptions(e),this},_setOptions:function(a){var b;for(b in a)this._setOption(b,a[b]);return this},_setOption:function(a,b){return this.options[a]=b,"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!b).attr("aria-disabled",b),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(b,c,d){var e,f=this;"boolean"!=typeof b&&(d=c,c=b,b=!1),d?(c=e=a(c),this.bindings=this.bindings.add(c)):(d=c,c=this.element,e=this.widget()),a.each(d,function(d,g){function h(){if(b||f.options.disabled!==!0&&!a(this).hasClass("ui-state-disabled"))return("string"==typeof g?f[g]:g).apply(f,arguments)}"string"!=typeof g&&(h.guid=g.guid=g.guid||h.guid||a.guid++);var i=d.match(/^(\w+)\s*(.*)$/),j=i[1]+f.eventNamespace,k=i[2];k?e.delegate(k,j,h):c.bind(j,h)})},_off:function(a,b){b=(b||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,a.unbind(b).undelegate(b)},_delay:function(a,b){function c(){return("string"==typeof a?d[a]:a).apply(d,arguments)}var d=this;return setTimeout(c,b||0)},_hoverable:function(b){this.hoverable=this.hoverable.add(b),this._on(b,{mouseenter:function(b){a(b.currentTarget).addClass("ui-state-hover")},mouseleave:function(b){a(b.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(b){this.focusable=this.focusable.add(b),this._on(b,{focusin:function(b){a(b.currentTarget).addClass("ui-state-focus")},focusout:function(b){a(b.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(b,c,d){var e,f,g=this.options[b];if(d=d||{},c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),c.target=this.element[0],f=c.originalEvent)for(e in f)e in c||(c[e]=f[e]);return this.element.trigger(c,d),!(a.isFunction(g)&&g.apply(this.element[0],[c].concat(d))===!1||c.isDefaultPrevented())}},a.each({show:"fadeIn",hide:"fadeOut"},function(b,c){a.Widget.prototype["_"+b]=function(d,e,f){"string"==typeof e&&(e={effect:e});var g,h=e?e===!0||"number"==typeof e?c:e.effect||c:b;e=e||{},"number"==typeof e&&(e={duration:e}),g=!a.isEmptyObject(e),e.complete=f,e.delay&&d.delay(e.delay),g&&a.effects&&a.effects.effect[h]?d[b](e):h!==b&&d[h]?d[h](e.duration,e.easing,f):d.queue(function(c){a(this)[b](),f&&f.call(d[0]),c()})}})}(jQuery),function(a,b){var c=!1;a(document).mouseup(function(){c=!1}),a.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(!0===a.data(c.target,b.widgetName+".preventClickEvent"))return a.removeData(c.target,b.widgetName+".preventClickEvent"),c.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(b){if(!c){this._mouseStarted&&this._mouseUp(b),this._mouseDownEvent=b;var d=this,e=1===b.which,f=!("string"!=typeof this.options.cancel||!b.target.nodeName)&&a(b.target).closest(this.options.cancel).length;return!(e&&!f&&this._mouseCapture(b))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(b)!==!1,!this._mouseStarted)?(b.preventDefault(),!0):(!0===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return d._mouseMove(a)},this._mouseUpDelegate=function(a){return d._mouseUp(a)},a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),b.preventDefault(),c=!0,!0))}},_mouseMove:function(b){return a.ui.ie&&(!document.documentMode||document.documentMode<9)&&!b.button?this._mouseUp(b):this._mouseStarted?(this._mouseDrag(b),b.preventDefault()):(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1,this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)),!this._mouseStarted)},_mouseUp:function(b){return a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target===this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b)),!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(a,b){a.widget("ui.draggable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;return!(this.helper||c.disabled||a(b.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(b),!!this.handle&&(a(c.iframeFix===!0?"iframe":c.iframeFix).each(function(){a("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")}),!0))},_mouseStart:function(b){var c=this.options;return this.helper=this._createHelper(b),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),this._setContainment(),this._trigger("start",b)===!1?(this._clear(),!1):(this._cacheHelperProportions(),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this._mouseDrag(b,!0),a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b),!0)},_mouseDrag:function(b,c){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),!c){var d=this._uiHash();if(this._trigger("drag",b,d)===!1)return this._mouseUp({}),!1;this.position=d.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),!1},_mouseStop:function(b){var c=this,d=!1;return a.ui.ddmanager&&!this.options.dropBehaviour&&(d=a.ui.ddmanager.drop(this,b)),this.dropped&&(d=this.dropped,this.dropped=!1),!("original"===this.options.helper&&!a.contains(this.element[0].ownerDocument,this.element[0]))&&("invalid"===this.options.revert&&!d||"valid"===this.options.revert&&d||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)?a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",b)!==!1&&c._clear()}):this._trigger("stop",b)!==!1&&this._clear(),!1)},_mouseUp:function(b){return a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b),a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(b){return!this.options.handle||!!a(b.target).closest(this.element.find(this.options.handle)).length},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):"clone"===c.helper?this.element.clone().removeAttr("id"):this.element;return d.parents("body").length||d.appendTo("parent"===c.appendTo?this.element[0].parentNode:c.appendTo),d[0]===this.element[0]||/(fixed|absolute)/.test(d.css("position"))||d.css("position","absolute"),d},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){var b=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,c,d,e=this.options;return e.containment?"window"===e.containment?void(this.containment=[a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,a(window).scrollLeft()+a(window).width()-this.helperProportions.width-this.margins.left,a(window).scrollTop()+(a(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===e.containment?void(this.containment=[0,0,a(document).width()-this.helperProportions.width-this.margins.left,(a(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):e.containment.constructor===Array?void(this.containment=e.containment):("parent"===e.containment&&(e.containment=this.helper[0].parentNode),c=a(e.containment),d=c[0],void(d&&(b="hidden"!==c.css("overflow"),this.containment=[(parseInt(c.css("borderLeftWidth"),10)||0)+(parseInt(c.css("paddingLeft"),10)||0),(parseInt(c.css("borderTopWidth"),10)||0)+(parseInt(c.css("paddingTop"),10)||0),(b?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c.css("borderRightWidth"),10)||0)-(parseInt(c.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(b?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c.css("borderBottomWidth"),10)||0)-(parseInt(c.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=c))):void(this.containment=null)},_convertPositionTo:function(b,c){c||(c=this.position);var d="absolute"===b?1:-1,e="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:e.scrollTop(),left:e.scrollLeft()}),{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*d}},_generatePosition:function(b){var c,d,e,f,g=this.options,h="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=b.pageX,j=b.pageY;return this.offset.scroll||(this.offset.scroll={top:h.scrollTop(),left:h.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(d=this.relative_container.offset(),c=[this.containment[0]+d.left,this.containment[1]+d.top,this.containment[2]+d.left,this.containment[3]+d.top]):c=this.containment,b.pageX-this.offset.click.left<c[0]&&(i=c[0]+this.offset.click.left),b.pageY-this.offset.click.top<c[1]&&(j=c[1]+this.offset.click.top),b.pageX-this.offset.click.left>c[2]&&(i=c[2]+this.offset.click.left),b.pageY-this.offset.click.top>c[3]&&(j=c[3]+this.offset.click.top)),g.grid&&(e=g.grid[1]?this.originalPageY+Math.round((j-this.originalPageY)/g.grid[1])*g.grid[1]:this.originalPageY,j=c?e-this.offset.click.top>=c[1]||e-this.offset.click.top>c[3]?e:e-this.offset.click.top>=c[1]?e-g.grid[1]:e+g.grid[1]:e,f=g.grid[0]?this.originalPageX+Math.round((i-this.originalPageX)/g.grid[0])*g.grid[0]:this.originalPageX,i=c?f-this.offset.click.left>=c[0]||f-this.offset.click.left>c[2]?f:f-this.offset.click.left>=c[0]?f-g.grid[0]:f+g.grid[0]:f)),{top:j-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(b,c,d){return d=d||this._uiHash(),a.ui.plugin.call(this,b,[c,d]),"drag"===b&&(this.positionAbs=this._convertPositionTo("absolute")),a.Widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),a.ui.plugin.add("draggable","connectToSortable",{start:function(b,c){var d=a(this).data("ui-draggable"),e=d.options,f=a.extend({},c,{item:d.element});d.sortables=[],a(e.connectToSortable).each(function(){var c=a.data(this,"ui-sortable");c&&!c.options.disabled&&(d.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",b,f))})},stop:function(b,c){var d=a(this).data("ui-draggable"),e=a.extend({},c,{item:d.element});a.each(d.sortables,function(){this.instance.isOver?(this.instance.isOver=0,d.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(b),this.instance.options.helper=this.instance.options._helper,"original"===d.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",b,e))})},drag:function(b,c){var d=a(this).data("ui-draggable"),e=this;a.each(d.sortables,function(){var f=!1,g=this;this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(f=!0,a.each(d.sortables,function(){return this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this!==g&&this.instance._intersectsWith(this.instance.containerCache)&&a.contains(g.instance.element[0],this.instance.element[0])&&(f=!1),f})),f?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=a(e).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return c.helper[0]},b.target=this.instance.currentItem[0],this.instance._mouseCapture(b,!0),this.instance._mouseStart(b,!0,!0),this.instance.offset.click.top=d.offset.click.top,this.instance.offset.click.left=d.offset.click.left,this.instance.offset.parent.left-=d.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=d.offset.parent.top-this.instance.offset.parent.top,d._trigger("toSortable",b),d.dropped=this.instance.element,d.currentItem=d.element,this.instance.fromOutside=d),this.instance.currentItem&&this.instance._mouseDrag(b)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",b,this.instance._uiHash(this.instance)),this.instance._mouseStop(b,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),d._trigger("fromSortable",b),d.dropped=!1)})}}),a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),c=a(this).data("ui-draggable").options;b.css("cursor")&&(c._cursor=b.css("cursor")),b.css("cursor",c.cursor)},stop:function(){var b=a(this).data("ui-draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}}),a.ui.plugin.add("draggable","opacity",{start:function(b,c){var d=a(c.helper),e=a(this).data("ui-draggable").options;d.css("opacity")&&(e._opacity=d.css("opacity")),d.css("opacity",e.opacity)},stop:function(b,c){var d=a(this).data("ui-draggable").options;d._opacity&&a(c.helper).css("opacity",d._opacity)}}),a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("ui-draggable");b.scrollParent[0]!==document&&"HTML"!==b.scrollParent[0].tagName&&(b.overflowOffset=b.scrollParent.offset())},drag:function(b){var c=a(this).data("ui-draggable"),d=c.options,e=!1;c.scrollParent[0]!==document&&"HTML"!==c.scrollParent[0].tagName?(d.axis&&"x"===d.axis||(c.overflowOffset.top+c.scrollParent[0].offsetHeight-b.pageY<d.scrollSensitivity?c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop+d.scrollSpeed:b.pageY-c.overflowOffset.top<d.scrollSensitivity&&(c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop-d.scrollSpeed)),d.axis&&"y"===d.axis||(c.overflowOffset.left+c.scrollParent[0].offsetWidth-b.pageX<d.scrollSensitivity?c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft+d.scrollSpeed:b.pageX-c.overflowOffset.left<d.scrollSensitivity&&(c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft-d.scrollSpeed))):(d.axis&&"x"===d.axis||(b.pageY-a(document).scrollTop()<d.scrollSensitivity?e=a(document).scrollTop(a(document).scrollTop()-d.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<d.scrollSensitivity&&(e=a(document).scrollTop(a(document).scrollTop()+d.scrollSpeed))),d.axis&&"y"===d.axis||(b.pageX-a(document).scrollLeft()<d.scrollSensitivity?e=a(document).scrollLeft(a(document).scrollLeft()-d.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<d.scrollSensitivity&&(e=a(document).scrollLeft(a(document).scrollLeft()+d.scrollSpeed)))),e!==!1&&a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(c,b)}}),a.ui.plugin.add("draggable","snap",{start:function(){var b=a(this).data("ui-draggable"),c=b.options;b.snapElements=[],a(c.snap.constructor!==String?c.snap.items||":data(ui-draggable)":c.snap).each(function(){var c=a(this),d=c.offset();this!==b.element[0]&&b.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left
573:d.left})})},drag:function(b,c){var d,e,f,g,h,i,j,k,l,m,n=a(this).data("ui-draggable"),o=n.options,p=o.snapTolerance,q=c.offset.left,r=q+n.helperProportions.width,s=c.offset.top,t=s+n.helperProportions.height;for(l=n.snapElements.length-1;l>=0;l--)h=n.snapElements[l].left,i=h+n.snapElements[l].width,j=n.snapElements[l].top,k=j+n.snapElements[l].height,r<h-p||q>i+p||t<j-p||s>k+p||!a.contains(n.snapElements[l].item.ownerDocument,n.snapElements[l].item)?(n.snapElements[l].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,b,a.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=!1):("inner"!==o.snapMode&&(d=Math.abs(j-t)<=p,e=Math.abs(k-s)<=p,f=Math.abs(h-r)<=p,g=Math.abs(i-q)<=p,d&&(c.position.top=n._convertPositionTo("relative",{top:j-n.helperProportions.height,left:0}).top-n.margins.top),e&&(c.position.top=n._convertPositionTo("relative",{top:k,left:0}).top-n.margins.top),f&&(c.position.left=n._convertPositionTo("relative",{top:0,left:h-n.helperProportions.width}).left-n.margins.left),g&&(c.position.left=n._convertPositionTo("relative",{top:0,left:i}).left-n.margins.left)),m=d||e||f||g,"outer"!==o.snapMode&&(d=Math.abs(j-s)<=p,e=Math.abs(k-t)<=p,f=Math.abs(h-q)<=p,g=Math.abs(i-r)<=p,d&&(c.position.top=n._convertPositionTo("relative",{top:j,left:0}).top-n.margins.top),e&&(c.position.top=n._convertPositionTo("relative",{top:k-n.helperProportions.height,left:0}).top-n.margins.top),f&&(c.position.left=n._convertPositionTo("relative",{top:0,left:h}).left-n.margins.left),g&&(c.position.left=n._convertPositionTo("relative",{top:0,left:i-n.helperProportions.width}).left-n.margins.left)),!n.snapElements[l].snapping&&(d||e||f||g||m)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,b,a.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=d||e||f||g||m)}}),a.ui.plugin.add("draggable","stack",{start:function(){var b,c=this.data("ui-draggable").options,d=a.makeArray(a(c.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});d.length&&(b=parseInt(a(d[0]).css("zIndex"),10)||0,a(d).each(function(c){a(this).css("zIndex",b+c)}),this.css("zIndex",b+d.length))}}),a.ui.plugin.add("draggable","zIndex",{start:function(b,c){var d=a(c.helper),e=a(this).data("ui-draggable").options;d.css("zIndex")&&(e._zIndex=d.css("zIndex")),d.css("zIndex",e.zIndex)},stop:function(b,c){var d=a(this).data("ui-draggable").options;d._zIndex&&a(c.helper).css("zIndex",d._zIndex)}})}(jQuery),function(a,b){function c(a,b,c){return a>b&&a<b+c}a.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var b=this.options,c=b.accept;this.isover=!1,this.isout=!0,this.accept=a.isFunction(c)?c:function(a){return a.is(c)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},a.ui.ddmanager.droppables[b.scope]=a.ui.ddmanager.droppables[b.scope]||[],a.ui.ddmanager.droppables[b.scope].push(this),b.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var b=0,c=a.ui.ddmanager.droppables[this.options.scope];b<c.length;b++)c[b]===this&&c.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(b,c){"accept"===b&&(this.accept=a.isFunction(c)?c:function(a){return a.is(c)}),a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),c&&this._trigger("activate",b,this.ui(c))},_deactivate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),c&&this._trigger("deactivate",b,this.ui(c))},_over:function(b){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",b,this.ui(c)))},_out:function(b){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",b,this.ui(c)))},_drop:function(b,c){var d=c||a.ui.ddmanager.current,e=!1;return!(!d||(d.currentItem||d.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var b=a.data(this,"ui-droppable");if(b.options.greedy&&!b.options.disabled&&b.options.scope===d.options.scope&&b.accept.call(b.element[0],d.currentItem||d.element)&&a.ui.intersect(d,a.extend(b,{offset:b.element.offset()}),b.options.tolerance))return e=!0,!1}),!e&&(!!this.accept.call(this.element[0],d.currentItem||d.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",b,this.ui(d)),this.element)))},ui:function(a){return{draggable:a.currentItem||a.element,helper:
vendor: 10,735 bytes, line 573
573a.helper,position:a.position,offset:a.positionAbs}}}),a.ui.intersect=function(a,b,d){if(!b.offset)return!1;var e,f,g=(a.positionAbs||a.position.absolute).left,h=g+a.helperProportions.width,i=(a.positionAbs||a.position.absolute).top,j=i+a.helperProportions.height,k=b.offset.left,l=k+b.proportions.width,m=b.offset.top,n=m+b.proportions.height;switch(d){case"fit":return k<=g&&h<=l&&m<=i&&j<=n;case"intersect":return k<g+a.helperProportions.width/2&&h-a.helperProportions.width/2<l&&m<i+a.helperProportions.height/2&&j-a.helperProportions.height/2<n;case"pointer":return e=(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,f=(a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,c(f,m,b.proportions.height)&&c(e,k,b.proportions.width);case"touch":return(i>=m&&i<=n||j>=m&&j<=n||i<m&&j>n)&&(g>=k&&g<=l||h>=k&&h<=l||g<k&&h>l);default:return!1}},a.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(b,c){var d,e,f=a.ui.ddmanager.droppables[b.options.scope]||[],g=c?c.type:null,h=(b.currentItem||b.element).find(":data(ui-droppable)").addBack();a:for(d=0;d<f.length;d++)if(!(f[d].options.disabled||b&&!f[d].accept.call(f[d].element[0],b.currentItem||b.element))){for(e=0;e<h.length;e++)if(h[e]===f[d].element[0]){f[d].proportions.height=0;continue a}f[d].visible="none"!==f[d].element.css("display"),f[d].visible&&("mousedown"===g&&f[d]._activate.call(f[d],c),f[d].offset=f[d].element.offset(),f[d].proportions={width:f[d].element[0].offsetWidth,height:f[d].element[0].offsetHeight})}},drop:function(b,c){var d=!1;return a.each((a.ui.ddmanager.droppables[b.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance)&&(d=this._drop.call(this,c)||d),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],b.currentItem||b.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,c)))}),d},dragStart:function(b,c){b.element.parentsUntil("body").bind("scroll.droppable",function(){b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)})},drag:function(b,c){b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,c),a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var d,e,f,g=a.ui.intersect(b,this,this.options.tolerance),h=!g&&this.isover?"isout":g&&!this.isover?"isover":null;h&&(this.options.greedy&&(e=this.options.scope,f=this.element.parents(":data(ui-droppable)").filter(function(){return a.data(this,"ui-droppable").options.scope===e}),f.length&&(d=a.data(f[0],"ui-droppable"),d.greedyChild="isover"===h)),d&&"isover"===h&&(d.isover=!1,d.isout=!0,d._out.call(d,c)),this[h]=!0,this["isout"===h?"isover":"isout"]=!1,this["isover"===h?"_over":"_out"].call(this,c),d&&"isout"===h&&(d.isout=!1,d.isover=!0,d._over.call(d,c)))}})},dragStop:function(b,c){b.element.parentsUntil("body").unbind("scroll.droppable"),b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)}}}(jQuery),function(a,b){function c(a){return parseInt(a,10)||0}function d(a){return!isNaN(parseInt(a,10))}a.widget("ui.resizable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var b,c,d,e,f,g=this,h=this.options;if(this.element.addClass("ui-resizable"),a.extend(this,{_aspectRatio:!!h.aspectRatio,aspectRatio:h.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:h.helper||h.ghost||h.animate?h.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(a("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=h.handles||(a(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),b=this.handles.split(","),this.handles={},c=0;c<b.length;c++)d=a.trim(b[c]),f="ui-resizable-"+d,e=a("<div class='ui-resizable-handle "+f+"'></div>"),e.css({zIndex:h.zIndex}),"se"===d&&e.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[d]=".ui-resizable-"+d,this.element.append(e);this._renderAxis=function(b){var c,d,e,f;b=b||this.element;for(c in this.handles)this.handles[c].constructor===String&&(this.handles[c]=a(this.handles[c],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(d=a(this.handles[c],this.element),f=/sw|ne|nw|se|n|s/.test(c)?d.outerHeight():d.outerWidth(),e=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join(""),b.css(e,f),this._proportionallyResize()),a(this.handles[c]).length},this._renderAxis(this.element),this._handles=a(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){g.resizing||(this.className&&(e=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),g.axis=e&&e[1]?e[1]:"se")}),h.autoHide&&(this._handles.hide(),a(this.element).addClass("ui-resizable-autohide").mouseenter(function(){h.disabled||(a(this).removeClass("ui-resizable-autohide"),g._handles.show())}).mouseleave(function(){h.disabled||g.resizing||(a(this).addClass("ui-resizable-autohide"),g._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var b,c=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(c(this.element),b=this.element,this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")}).insertAfter(b),b.remove()),this.originalElement.css("resize",this.originalResizeStyle),c(this.originalElement),this},_mouseCapture:function(b){var c,d,e=!1;for(c in this.handles)d=a(this.handles[c])[0],(d===b.target||a.contains(d,b.target))&&(e=!0);return!this.options.disabled&&e},_mouseStart:function(b){var d,e,f,g=this.options,h=this.element.position(),i=this.element;return this.resizing=!0,/absolute/.test(i.css("position"))?i.css({position:"absolute",top:i.css("top"),left:i.css("left")}):i.is(".ui-draggable")&&i.css({position:"absolute",top:h.top,left:h.left}),this._renderProxy(),d=c(this.helper.css("left")),e=c(this.helper.css("top")),g.containment&&(d+=a(g.containment).scrollLeft()||0,e+=a(g.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:d,top:e},this.size=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.originalPosition={left:d,top:e},this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()},this.originalMousePosition={left:b.pageX,top:b.pageY},this.aspectRatio="number"==typeof g.aspectRatio?g.aspectRatio:this.originalSize.width/this.originalSize.height||1,f=a(".ui-resizable-"+this.axis).css("cursor"),a("body").css("cursor","auto"===f?this.axis+"-resize":f),i.addClass("ui-resizable-resizing"),this._propagate("start",b),!0},_mouseDrag:function(b){var c,d=this.helper,e={},f=this.originalMousePosition,g=this.axis,h=this.position.top,i=this.position.left,j=this.size.width,k=this.size.height,l=b.pageX-f.left||0,m=b.pageY-f.top||0,n=this._change[g];return!!n&&(c=n.apply(this,[b,l,m]),this._updateVirtualBoundaries(b.shiftKey),(this._aspectRatio||b.shiftKey)&&(c=this._updateRatio(c,b)),c=this._respectSize(c,b),this._updateCache(c),this._propagate("resize",b),this.position.top!==h&&(e.top=this.position.top+"px"),this.position.left!==i&&(e.left=this.position.left+"px"),this.size.width!==j&&(e.width=this.size.width+"px"),this.size.height!==k&&(e.height=this.size.height+"px"),d.css(e),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),a.isEmptyObject(e)||this._trigger("resize",b,this.ui()),!1)},_mouseStop:function(b){this.resizing=!1;var c,d,e,f,g,h,i,j=this.options,k=this;return this._helper&&(c=this._proportionallyResizeElements,d=c.length&&/textarea/i.test(c[0].nodeName),e=d&&a.ui.hasScroll(c[0],"left")?0:k.sizeDiff.height,f=d?0:k.sizeDiff.width,g={width:k.helper.width()-f,height:k.helper.height()-e},h=parseInt(k.element.css("left"),10)+(k.position.left-k.originalPosition.left)||null,i=parseInt(k.element.css("top"),10)+(k.position.top-k.originalPosition.top)||null,j.animate||this.element.css(a.extend(g,{top:i,left:h})),k.helper.height(k.size.height),k.helper.width(k.size.width),this._helper&&!j.animate&&this._proportionallyResize()),a("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",b),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(a){var b,c,e,f,g,h=this.options;g={minWidth:d(h.minWidth)?h.minWidth:0,maxWidth:d(h.maxWidth)?h.maxWidth:1/0,minHeight:d(h.minHeight)?h.minHeight:0,maxHeight:d(h.maxHeight)?h.maxHeight:1/0},(this._aspectRatio||a)&&(b=g.minHeight*this.aspectRatio,e=g.minWidth/this.aspectRatio,c=g.maxHeight*this.aspectRatio,f=g.maxWidth/this.aspectRatio,b>g.minWidth&&(g.minWidth=b),e>g.minHeight&&(g.minHeight=e),c<g.maxWidth&&(g.maxWidth=c),f<g.maxHeight&&(g.maxHeight=f)),this._vBoundaries=g},_updateCache:function(a){this.offset=this.helper.offset(),d(a.left)&&(this.position.left
573=a.left),d(a.top)&&(this.position.top=a.top),d(a.height)&&(this.size.height=a.height),d(a.width)&&(this.size.width=a.width)},_updateRatio:function(a){var b=this.position,c=this.size,e=this.axis;return d(a.height)?a.width=a.height*this.aspectRatio:d(a.width)&&(a.height=a.width/this.aspectRatio),"sw"===e&&(a.left=b.left+(c.width-a.width),a.top=null),"nw"===e&&(a.top=b.top+(c.height-a.height),a.left=b.left+(c.width-a.width)),a},_respectSize:function(a){var b=this._vBoundaries,c=this.axis,e=d(a.width)&&b.maxWidth&&b.maxWidth<a.width,f=d(a.height)&&b.maxHeight&&b.maxHeight<a.height,g=d(a.width)&&b.minWidth&&b.minWidth>a.width,h=d(a.height)&&b.minHeight&&b.minHeight>a.height,i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,k=/sw|nw|w/.test(c),l=/nw|ne|n/.test(c);return g&&(a.width=b.minWidth),h&&(a.height=b.minHeight),e&&(a.width=b.maxWidth),f&&(a.height=b.maxHeight),g&&k&&(a.left=i-b.minWidth),e&&k&&(a.left=i-b.maxWidth),h&&l&&(a.top=j-b.minHeight),f&&l&&(a.top=j-b.maxHeight),a.width||a.height||a.left||!a.top?a.width||a.height||a.top||!a.left||(a.left=null):a.top=null,a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var a,b,c,d,e,f=this.helper||this.element;for(a=0;a<this._proportionallyResizeElements.length;a++){if(e=this._proportionallyResizeElements[a],!this.borderDif)for(this.borderDif=[],c=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],d=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")],b=0;b<c.length;b++)this.borderDif[b]=(parseInt(c[b],10)||0)+(parseInt(d[b],10)||0);e.css({height:f.height()-this.borderDif[0]-this.borderDif[2]||0,width:f.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var b=this.element,c=this.options;this.elementOffset=b.offset(),this._helper?(this.helper=this.helper||a("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++c.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(a,b){return{width:this.originalSize.width+b}},w:function(a,b){var c=this.originalSize,d=this.originalPosition;return{left:d.left+b,width:c.width-b}},n:function(a,b,c){var d=this.originalSize,e=this.originalPosition;return{top:e.top+c,height:d.height-c}},s:function(a,b,c){return{height:this.originalSize.height+c}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]),"resize"!==b&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),a.ui.plugin.add("resizable","animate",{stop:function(b){var c=a(this).data("ui-resizable"),d=c.options,e=c._proportionallyResizeElements,f=e.length&&/textarea/i.test(e[0].nodeName),g=f&&a.ui.hasScroll(e[0],"left")?0:c.sizeDiff.height,h=f?0:c.sizeDiff.width,i={width:c.size.width-h,height:c.size.height-g},j=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,k=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;c.element.animate(a.extend(i,k&&j?{top:k,left:j}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var d={width:parseInt(c.element.css("width"),10),height:parseInt(c.element.css("height"),10),top:parseInt(c.element.css("top"),10),left:parseInt(c.element.css("left"),10)};e&&e.length&&a(e[0]).css({width:d.width,height:d.height}),c._updateCache(d),c._propagate("resize",b)}})}}),a.ui.plugin.add("resizable","containment",{start:function(){var b,d,e,f,g,h,i,j=a(this).data("ui-resizable"),k=j.options,l=j.element,m=k.containment,n=m instanceof a?m.get(0):/parent/.test(m)?l.parent().get(0):m;n&&(j.containerElement=a(n),/document/.test(m)||m===document?(j.containerOffset={left:0,top:0},j.containerPosition={left:0,top:0},j.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}):(b=a(n),d=[],a(["Top","Right","Left","Bottom"]).each(function(a,e){d[a]=c(b.css("padding"+e))}),j.containerOffset=b.offset(),j.containerPosition=b.position(),j.containerSize={height:b.innerHe
vendor: 34,166 bytes, line 573
573ight()-d[3],width:b.innerWidth()-d[1]},e=j.containerOffset,f=j.containerSize.height,g=j.containerSize.width,h=a.ui.hasScroll(n,"left")?n.scrollWidth:g,i=a.ui.hasScroll(n)?n.scrollHeight:f,j.parentData={element:n,left:e.left,top:e.top,width:h,height:i}))},resize:function(b){var c,d,e,f,g=a(this).data("ui-resizable"),h=g.options,i=g.containerOffset,j=g.position,k=g._aspectRatio||b.shiftKey,l={top:0,left:0},m=g.containerElement;m[0]!==document&&/static/.test(m.css("position"))&&(l=i),j.left<(g._helper?i.left:0)&&(g.size.width=g.size.width+(g._helper?g.position.left-i.left:g.position.left-l.left),k&&(g.size.height=g.size.width/g.aspectRatio),g.position.left=h.helper?i.left:0),j.top<(g._helper?i.top:0)&&(g.size.height=g.size.height+(g._helper?g.position.top-i.top:g.position.top),k&&(g.size.width=g.size.height*g.aspectRatio),g.position.top=g._helper?i.top:0),g.offset.left=g.parentData.left+g.position.left,g.offset.top=g.parentData.top+g.position.top,c=Math.abs((g._helper?g.offset.left-l.left:g.offset.left-l.left)+g.sizeDiff.width),d=Math.abs((g._helper?g.offset.top-l.top:g.offset.top-i.top)+g.sizeDiff.height),e=g.containerElement.get(0)===g.element.parent().get(0),f=/relative|absolute/.test(g.containerElement.css("position")),e&&f&&(c-=g.parentData.left),c+g.size.width>=g.parentData.width&&(g.size.width=g.parentData.width-c,k&&(g.size.height=g.size.width/g.aspectRatio)),d+g.size.height>=g.parentData.height&&(g.size.height=g.parentData.height-d,k&&(g.size.width=g.size.height*g.aspectRatio))},stop:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.containerOffset,e=b.containerPosition,f=b.containerElement,g=a(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width,j=g.outerHeight()-b.sizeDiff.height;b._helper&&!c.animate&&/relative/.test(f.css("position"))&&a(this).css({left:h.left-e.left-d.left,width:i,height:j}),b._helper&&!c.animate&&/static/.test(f.css("position"))&&a(this).css({left:h.left-e.left-d.left,width:i,height:j})}}),a.ui.plugin.add("resizable","alsoResize",{start:function(){var b=a(this).data("ui-resizable"),c=b.options,d=function(b){a(b).each(function(){var b=a(this);b.data("ui-resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10)})})};"object"!=typeof c.alsoResize||c.alsoResize.parentNode?d(c.alsoResize):c.alsoResize.length?(c.alsoResize=c.alsoResize[0],d(c.alsoResize)):a.each(c.alsoResize,function(a){d(a)})},resize:function(b,c){var d=a(this).data("ui-resizable"),e=d.options,f=d.originalSize,g=d.originalPosition,h={height:d.size.height-f.height||0,width:d.size.width-f.width||0,top:d.position.top-g.top||0,left:d.position.left-g.left||0},i=function(b,d){a(b).each(function(){var b=a(this),e=a(this).data("ui-resizable-alsoresize"),f={},g=d&&d.length?d:b.parents(c.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(g,function(a,b){var c=(e[b]||0)+(h[b]||0);c&&c>=0&&(f[b]=c||null)}),b.css(f)})};"object"!=typeof e.alsoResize||e.alsoResize.nodeType?i(e.alsoResize):a.each(e.alsoResize,function(a,b){i(a,b)})},stop:function(){a(this).removeData("resizable-alsoresize")}}),a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.size;b.ghost=b.originalElement.clone(),b.ghost.css({opacity:.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof c.ghost?c.ghost:""),b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).data("ui-resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=a(this).data("ui-resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}}),a.ui.plugin.add("resizable","grid",{resize:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.size,e=b.originalSize,f=b.originalPosition,g=b.axis,h="number"==typeof c.grid?[c.grid,c.grid]:c.grid,i=h[0]||1,j=h[1]||1,k=Math.round((d.width-e.width)/i)*i,l=Math.round((d.height-e.height)/j)*j,m=e.width+k,n=e.height+l,o=c.maxWidth&&c.maxWidth<m,p=c.maxHeight&&c.maxHeight<n,q=c.minWidth&&c.minWidth>m,r=c.minHeight&&c.minHeight>n;c.grid=h,q&&(m+=i),r&&(n+=j),o&&(m-=i),p&&(n-=j),/^(se|s|e)$/.test(g)?(b.size.width=m,b.size.height=n):/^(ne)$/.test(g)?(b.size.width=m,b.size.height=n,b.position.top=f.top-l):/^(sw)$/.test(g)?(b.size.width=m,b.size.height=n,b.position.left=f.left-k):(b.size.width=m,b.size.height=n,b.position.top=f.top-l,b.position.left=f.left-k)}})}(jQuery),function(a,b){a.widget("ui.selectable",a.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var b,c=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){b=a(c.options.filter,c.element[0]),b.addClass("ui-selectee"),b.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerWidth(),bottom:c.top+b.outerHeight(),startselected:!1,selected:b.hasClass("ui-selected"),selecting:b.hasClass("ui-selecting"),unselecting:b.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=b.addClass("ui-selectee"),this._mouseInit(),this.helper=a("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(b){var c=this,d=this.options;this.opos=[b.pageX,b.pageY],this.options.disabled||(this.selectees=a(d.filter,this.element[0]),this._trigger("start",b),a(d.appendTo).append(this.helper),this.helper.css({left:b.pageX,top:b.pageY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var d=a.data(this,"selectable-item");d.startselected=!0,b.metaKey||b.ctrlKey||(d.$element.removeClass("ui-selected"),d.selected=!1,d.$element.addClass("ui-unselecting"),d.unselecting=!0,c._trigger("unselecting",b,{unselecting:d.element}))}),a(b.target).parents().addBack().each(function(){var d,e=a.data(this,"selectable-item");if(e)return d=!b.metaKey&&!b.ctrlKey||!e.$element.hasClass("ui-selected"),e.$element.removeClass(d?"ui-unselecting":"ui-selected").addClass(d?"ui-selecting":"ui-unselecting"),e.unselecting=!d,e.selecting=d,e.selected=d,d?c._trigger("selecting",b,{selecting:e.element}):c._trigger("unselecting",b,{unselecting:e.element}),!1}))},_mouseDrag:function(b){if(this.dragged=!0,!this.options.disabled){var c,d=this,e=this.options,f=this.opos[0],g=this.opos[1],h=b.pageX,i=b.pageY;return f>h&&(c=h,h=f,f=c),g>i&&(c=i,i=g,g=c),this.helper.css({left:f,top:g,width:h-f,height:i-g}),this.selectees.each(function(){var c=a.data(this,"selectable-item"),j=!1;c&&c.element!==d.element[0]&&("touch"===e.tolerance?j=!(c.left>h||c.right<f||c.top>i||c.bottom<g):"fit"===e.tolerance&&(j=c.left>f&&c.right<h&&c.top>g&&c.bottom<i),j?(c.selected&&(c.$element.removeClass("ui-selected"),c.selected=!1),c.unselecting&&(c.$element.removeClass("ui-unselecting"),c.unselecting=!1),c.selecting||(c.$element.addClass("ui-selecting"),c.selecting=!0,d._trigger("selecting",b,{selecting:c.element}))):(c.selecting&&((b.metaKey||b.ctrlKey)&&c.startselected?(c.$element.removeClass("ui-selecting"),c.selecting=!1,c.$element.addClass("ui-selected"),c.selected=!0):(c.$element.removeClass("ui-selecting"),c.selecting=!1,c.startselected&&(c.$element.addClass("ui-unselecting"),c.unselecting=!0),d._trigger("unselecting",b,{unselecting:c.element}))),c.selected&&(b.metaKey||b.ctrlKey||c.startselected||(c.$element.removeClass("ui-selected"),c.selected=!1,c.$element.addClass("ui-unselecting"),c.unselecting=!0,d._trigger("unselecting",b,{unselecting:c.element})))))}),!1}},_mouseStop:function(b){var c=this;return this.dragged=!1,a(".ui-unselecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-unselecting"),d.unselecting=!1,d.startselected=!1,c._trigger("unselected",b,{unselected:d.element})}),a(".ui-selecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected"),d.selecting=!1,d.selected=!0,d.startselected=!0,c._trigger("selected",b,{selected:d.element})}),this._trigger("stop",b),this.helper.remove(),!1}})}(jQuery),function(a,b){function c(a,b,c){return a>b&&a<b+c}function d(a){return/left|right/.test(a.css("float"))||/inline|table-cell/.test(a.css("display"))}a.widget("ui.sortable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var a=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===a.axis||d(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData(this.widgetName+"-item");return this},_setOption:function(b,c){"disabled"===b?(this.options[b]=c,this.widget().toggleClass("ui-sortable-disabled",!!c)):a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,c){var d=null,e=!1,f=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(b),a(b.target).parents().each(function(){if(a.data(this,f.widgetName+"-item")===f)return d=a(this),!1}),a.data(b.target,f.widgetName+"-item")===f&&(d=a(b.target)),!!d&&(!(this.options.handle&&!c&&(a(this.options.handle,d).find("*").addBack().each(function(){this===b.target&&(e=!0)}),!e))&&(this.currentItem=d,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(b,c,d){var e,f,g=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(b),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),g.containment&&this._setContainment(),g.cursor&&"auto"!==g.cursor&&(f=this.document.find("body"),this.storedCursor=f.css("cursor"),f.css("cursor",g.cursor),this.storedStylesheet=a("<style>*{ cursor: "+g.cursor+" !important; }</style>").appendTo(f)),g.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",g.opacity)),g.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",g.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",b,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!d)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",b,this._uiHash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(b),!0},_mouseDrag:function(b){var c,d,e,f,g=this.options,h=!1;for(this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<g.scrollSensitivity?this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop+g.scrollSpeed:b.pageY-this.overflowOffset.top<g.scrollSensitivity&&(this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop-g.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<g.scrollSensitivity?this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft+g.scrollSpeed:b.pageX-this.overflowOffset.left<g.scrollSensitivity&&(this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft-g.scrollSpeed)):(b.pageY-a(document).scrollTop()<g.scrollSensitivity?h=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<g.scrollSensitivity&&(h=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)),b.pageX-a(document).scrollLeft()<g.scrollSensitivity?h=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<g.scrollSensitivity&&(h=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed))),h!==!1&&a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),c=this.items.length-1;c>=0;c--)if(d=this.items[c],e=d.item[0],f=this._intersectsWithPointer(d),f&&d.instance===this.currentContainer&&!(e===this.currentItem[0]||this.placeholder[1===f?"next":"prev"]()[0]===e||a.contains(this.placeholder[0],e)||"semi-dynamic"===this.options.type&&a.contains(this.element[0],e))){if(this.direction=1===f?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(d))break;this._rearrange(b,d),this._trigger("change",b,this._uiHash());break}return this._contactContainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger("sort",b,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(b,c){if(b){if(a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b),this.options.revert){var d=this,e=this.placeholder.offset(),f=this.options.axis,g={};f&&"x"!==f||(g.left=e.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),f&&"y"!==f||(g.top=e.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,a(this.helper).animate(g,parseInt(this.options.revert,10)||500,function(){d._clear(b)})}else this._clear(b,c);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--)this.containers[b]._trigger("deactivate",null,this._uiHash(this)),this.containers[b].containerCache.over&&(this.containers[b]._trigger("out",null,this._uiHash(this)),this.containers[b].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[\-=_](.+)/);c&&d.push((b.key||c[1]+"[]")+"="+(b.key&&b.expression?c[1]:c[2]))}),!d.length&&b.key&&d.push(b.key+"="),d.join("&")},toArray:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},c.each(function(){d.push(a(b.item||this).attr(b.attribute||"id")||"")}),d},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,d=this.positionAbs.top,e=d+this.helperProportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left,l="x"===this.options.axis||d+j>h&&d+j<i,m="y"===this.options.axis||b+k>f&&b+k<g,n=l&&m;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?n:f<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<g&&h<d+this.helperProportions.height/2&&e-this.helperProportions.height/2<i},_intersectsWithPointer:function(a){var b="x"===this.options.axis||c(this.positionAbs.top+this.offset.click.top,a.top,a.height),d="y"===this.options.axis||c(this.positionAbs.left+this.offset.click.left,a.left,a.width),e=b&&d,f=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return!!e&&(this.floating?g&&"right"===g||"down"===f?2:1:f&&("down"===f?2:1))},_intersectsWithSides:function(a){var b=c(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height),d=c(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width),e=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();return this.floating&&f?"right"===f&&d||"left"===f&&!d:e&&("down"===e&&b||"up"===e&&!b)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return 0!==a&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return 0!==a&&(a>0?"right":"left")},refresh:function(a){return this._refreshItems(a),this.refreshPositions(),this},_connectWith:function(){var a=this.options;return a.connectWith.constructor===String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){var c,d,e,f,g=[],h=[],i=this._connectWith();if(i&&b)for(c=i.length-1;c>=0;c--)for(e=a(i[c]),d=e.length-1;d>=0;d--)f=a.data(e[d],this.widgetFullName),f&&f!==this&&!f.options.disabled&&h.push([a.isFunction(f.options.items)?f.options.items.call(f.element):a(f.options.items,f.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),f]);for(h.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),c=h.length-1;c>=0;c--)h[c][0].each(function(){g.push(this)});return a(g)},_removeCurrentsFromItems:function(){var b=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=a.grep(this.items,function(a){for(var c=0;c<b.length;c++)if(b[c]===a.item[0])return!1;return!0})},_refreshItems:function(b){this.items=[],this.containers=[this];var c,d,e,f,g,h,i,j,k=this.items,l=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]],m=this._connectWith();if(m&&this.ready)for(c=m.length-1;c>=0;c--)for(e=a(m[c]),d=e.length-1;d>=0;d--)f=a.data(e[d],this.widgetFullName),f&&f!==this&&!f.options.disabled&&(l.push([a.isFunction(f.options.items)?f.options.items.call(f.element[0],b,{item:this.currentItem}):a(f.options.items,f.element),f]),this.containers.push(f));for(c=l.length-1;c>=0;c--)for(g=l[c][1],h=l[c][0],d=0,j=h.length;d<j;d++)i=a(h[d]),i.data(this.widgetName+"-item",g),k.push({item:i,instance:g,width:0,height:0,left:0,top:0})},refreshPositions:function(b){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var c,d,e,f;for(c=this.items.length-1;c>=0;c--)d=this.items[c],d.instance!==this.currentContainer&&this.currentContainer&&d.item[0]!==this.currentItem[0]||(e=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item,b||(d.width=e.outerWidth(),d.height=e.outerHeight()),f=e.offset(),d.left=f.left,d.top=f.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(c=this.containers.length-1;c>=0;c--)f=this.containers[c].element.offset(),this.containers[c].containerCache.left=f.left,this.containers[c].containerCache.top=f.top,this.containers[c].containerCache.width=this.containers[c].element.outerWidth(),this.containers[c].containerCache.height=this.containers[c].element.outerHeight();return this},_createPlaceholder:function(b){b=b||this;var c,d=b.options;d.placeholder&&d.placeholder.constructor!==String||(c=d.placeholder,d.placeholder={element:function(){var d=b.currentItem[0].nodeName.toLowerCase(),e=a("<"+d+">",b.document[0]).addClass(c||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===d?b.currentItem.children().each(function(){a("<td> </td>",b.document[0]).attr("colspan",a(this).attr("colspan")||1).appendTo(e)}):"img"===d&&e.attr("src",b.currentItem.attr("src")),c||e.css("visibility","hidden"),e},update:function(a,e){c&&!d.forcePlaceholderSize||(e.height()||e.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10)))}}),b.placeholder=a(d.placeholder.element.call(b.element,b.currentItem)),b.currentItem.after(b.placeholder),d.placeholder.update(b,b.placeholder)},_contactContainers:function(b){var e,f,g,h,i,j,k,l,m,n,o=null,p=null;for(e=this.containers.length-1;e>=0;e--)if(!a.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(o&&a.contains(this.containers[e].element[0],o.element[0]))continue;o=this.containers[e],p=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",b,this._uiHash(this)),this.containers[e].containerCache.over=0);if(o)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",b,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(g=1e4,h=null,n=o.floating||d(this.currentItem),i=n?"left":"top",j=n?"width":"height",k=this.positionAbs[i]+this.offset.click[i],f=this.items.length-1;f>=0;f--)a.contains(this.containers[p].element[0],this.items[f].item[0])&&this.items[f].item[0]!==this.currentItem[0]&&(n&&!c(this.positionAbs.top+this.offset.click.top,this.items[f].top,this.items[f].height)||(l=this.items[f].item.offset()[i],m=!1,Math.abs(l-k)>Math.abs(l+this.items[f][j]-k)&&(m=!0,l+=this.items[f][j]),Math.abs(l-k)<g&&(g=Math.abs(l-k),h=this.items[f],this.direction=m?"up":"down")));if(!h&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return;h?this._rearrange(b,h,null,!0):this._rearrange(b,null,this.containers[p].element,!0),this._trigger("change",b,this._uiHash()),this.containers[p]._trigger("change",b,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",b,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentItem])):"clone"===c.helper?this.currentItem.clone():this.currentItem;return d.parents("body").length||a("parent"!==c.appendTo?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]),d[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),d[0].style.width&&!c.forceHelperSize||d.width(this.currentItem.width()),d[0].style.height&&!c.forceHelperSize||d.height(this.currentItem.height()),d},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,c,d,e=this.options;"parent"===e.containment&&(e.containment=this.helper[0].parentNode),"document"!==e.containment&&"window"!==e.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a("document"===e.containment?document:window).width()-this.helperProportions.width-this.margins.left,(a("document"===e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||(b=a(e.containment)[0],c=a(e.containment).offset(),d="hidden"!==a(b).css("overflow"),this.containment=[c.left+(parseInt(a(b).css("borderLeftWidth"),10)||0)+(parseInt(a(b).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(b).css("borderTopWidth"),10)||0)+(parseInt(a(b).css("paddingTop"),10)||0)-this.margins.top,c.left+(d?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(a(b).css("borderLeftWidth"),10)||0)-(parseInt(a(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(d?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(a(b).css("borderTopWidth"),10)||0)-(parseInt(a(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(b,c){c||(c=this.position);var d="absolute"===b?1:-1,e="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(e[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():f?0:e.scrollTop())*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*d}},_generatePosition:function(b){var c,d,e=this.options,f=b.pageX,g=b.pageY,h="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(h[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(b.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),b.pageY-this.offset.click.top<this.containment[1]&&(g=this.containment[1]+this.offset.click.top),b.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(g=this.containment[3]+this.offset.click.top)),e.grid&&(c=this.originalPageY+Math.round((g-this.originalPageY)/e.grid[1])*e.grid[1],g=this.containment?c-this.offset.click.top>=this.containment[1]&&c-this.offset.click.top<=this.containment[3]?c:c-this.offset.click.top>=this.containment[1]?c-e.grid[1]:c+e.grid[1]:c,d=this.originalPageX+Math.round((f-this.originalPageX)/e.grid[0])*e.grid[0],f=this.containment?d-this.offset.click.left>=this.containment[0]&&d-this.offset.click.left<=this.containment[2]?d:d-this.offset.click.left>=this.containment[0]?d-e.grid[0]:d+e.grid[0]:d)),{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():i?0:h.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())}},_rearrange:function(a,b,c,d){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?b.item[0]:b.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var e=this.counter;this._delay(function(){e===this.counter&&this.refreshPositions(!d)})},_clear:function(a,b){this.reverting=!1;var c,d=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(c in this._storedCSS)"auto"!==this._storedCSS[c]&&"static"!==this._storedCSS[c]||(this._storedCSS[c]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!b&&d.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||b||d.push(function(a){this._trigger("update",a,this._uiHash())}),this!==this.currentContainer&&(b||(d.push(function(a){this._trigger("remove",a,this._uiHash())}),d.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.currentContainer)),d.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.currentContainer)))),c=this.containers.length-1;c>=0;c--)b||d.push(function(a){return function(b){a._trigger("deactivate",b,this._uiHash(this))}}.call(this,this.containers[c])),this.containers[c].containerCache.over&&(d.push(function(a){return function(b){a._trigger("out",b,this._uiHash(this))}}.call(this,this.containers[c])),this.containers[c].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!b){for(this._trigger("beforeStop",a,this._uiHash()),c=0;c<d.length;c++)d[c].call(this,a);this._trigger("stop",a,this._uiHash())}return this.fromOutside=!1,!1}if(b||this._trigger("beforeStop",a,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!b){for(c=0;c<d.length;c++)d[c].call(this,a);this._trigger("stop",a,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(b){var c=b||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:b?b.element:null}}})}(jQuery),function(a,b){var c="ui-effects-";a.effects={effect:{}},function(a,b){function m(a,b,c){var d=h[b.type]||{};return null==a?c||!b.def?null:b.def:(a=d.floor?~~a:parseFloat(a),isNaN(a)?b.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max<a?d.max:a)}function n(b){var c=f(),d=c._rgba=[];return b=b.toLowerCase(),l(e,function(a,e){var f,h=e.re.exec(b),i=h&&e.parse(h),j=e.space||"rgba";if(i)return f=c[j](i),c[g[j].cache]=f[g[j].cache],d=c._rgba=f._rgba,!1}),d.length?("0,0,0,0"===d.join()&&a.extend(d,k.transparent),c):k[b]}function o(a,b,c){return c=(c+1)%1,6*c<1?a+(b-a)*c*6:2*c<1?b:3*c<2?a+(b-a)*(2/3-c)*6:a}var k,c="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",d=/^([\-+])=\s*(\d+\.?\d*)/,e=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],f=a.Color=function(b,c,d,e){return new a.Color.fn.parse(b,c,d,e)},g={rgba:{props:{red:{idx:0,type:"byte"}
vendor: 12,935 bytes, line 573
573,green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},i=f.support={},j=a("<p>")[0],l=a.each;j.style.cssText="background-color:rgba(1,1,1,.5)",i.rgba=j.style.backgroundColor.indexOf("rgba")>-1,l(g,function(a,b){b.cache="_"+a,b.props.alpha={idx:3,type:"percent",def:1}}),f.fn=a.extend(f.prototype,{parse:function(c,d,e,h){if(c===b)return this._rgba=[null,null,null,null],this;(c.jquery||c.nodeType)&&(c=a(c).css(d),d=b);var i=this,j=a.type(c),o=this._rgba=[];return d!==b&&(c=[c,d,e,h],j="array"),"string"===j?this.parse(n(c)||k._default):"array"===j?(l(g.rgba.props,function(a,b){o[b.idx]=m(c[b.idx],b)}),this):"object"===j?(c instanceof f?l(g,function(a,b){c[b.cache]&&(i[b.cache]=c[b.cache].slice())}):l(g,function(b,d){var e=d.cache;l(d.props,function(a,b){if(!i[e]&&d.to){if("alpha"===a||null==c[a])return;i[e]=d.to(i._rgba)}i[e][b.idx]=m(c[a],b,!0)}),i[e]&&a.inArray(null,i[e].slice(0,3))<0&&(i[e][3]=1,d.from&&(i._rgba=d.from(i[e])))}),this):void 0},is:function(a){var b=f(a),c=!0,d=this;return l(g,function(a,e){var f,g=b[e.cache];return g&&(f=d[e.cache]||e.to&&e.to(d._rgba)||[],l(e.props,function(a,b){if(null!=g[b.idx])return c=g[b.idx]===f[b.idx]})),c}),c},_space:function(){var a=[],b=this;return l(g,function(c,d){b[d.cache]&&a.push(c)}),a.pop()},transition:function(a,b){var c=f(a),d=c._space(),e=g[d],i=0===this.alpha()?f("transparent"):this,j=i[e.cache]||e.to(i._rgba),k=j.slice();return c=c[e.cache],l(e.props,function(a,d){var e=d.idx,f=j[e],g=c[e],i=h[d.type]||{};null!==g&&(null===f?k[e]=g:(i.mod&&(g-f>i.mod/2?f+=i.mod:f-g>i.mod/2&&(f-=i.mod)),k[e]=m((g-f)*b+f,d)))}),this[d](k)},blend:function(b){if(1===this._rgba[3])return this;var c=this._rgba.slice(),d=c.pop(),e=f(b)._rgba;return f(a.map(c,function(a,b){return(1-d)*e[b]+d*a}))},toRgbaString:function(){var b="rgba(",c=a.map(this._rgba,function(a,b){return null==a?b>2?1:0:a});return 1===c[3]&&(c.pop(),b="rgb("),b+c.join()+")"},toHslaString:function(){var b="hsla(",c=a.map(this.hsla(),function(a,b){return null==a&&(a=b>2?1:0),b&&b<3&&(a=Math.round(100*a)+"%"),a});return 1===c[3]&&(c.pop(),b="hsl("),b+c.join()+")"},toHexString:function(b){var c=this._rgba.slice(),d=c.pop();return b&&c.push(~~(255*d)),"#"+a.map(c,function(a){return a=(a||0).toString(16),1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),f.fn.parse.prototype=f.fn,g.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var k,l,b=a[0]/255,c=a[1]/255,d=a[2]/255,e=a[3],f=Math.max(b,c,d),g=Math.min(b,c,d),h=f-g,i=f+g,j=.5*i;return k=g===f?0:b===f?60*(c-d)/h+360:c===f?60*(d-b)/h+120:60*(b-c)/h+240,l=0===h?0:j<=.5?h/i:h/(2-i),[Math.round(k)%360,l,j,null==e?1:e]},g.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,c=a[1],d=a[2],e=a[3],f=d<=.5?d*(1+c):d+c-d*c,g=2*d-f;return[Math.round(255*o(g,f,b+1/3)),Math.round(255*o(g,f,b)),Math.round(255*o(g,f,b-1/3)),e]},l(g,function(c,e){var g=e.props,h=e.cache,i=e.to,j=e.from;f.fn[c]=function(c){if(i&&!this[h]&&(this[h]=i(this._rgba)),c===b)return this[h].slice();var d,e=a.type(c),k="array"===e||"object"===e?c:arguments,n=this[h].slice();return l(g,function(a,b){var c=k["object"===e?a:b.idx];null==c&&(c=n[b.idx]),n[b.idx]=m(c,b)}),j?(d=f(j(n)),d[h]=n,d):f(n)},l(g,function(b,e){f.fn[b]||(f.fn[b]=function(f){var k,g=a.type(f),h="alpha"===b?this._hsla?"hsla":"rgba":c,i=this[h](),j=i[e.idx];return"undefined"===g?j:("function"===g&&(f=f.call(this,j),g=a.type(f)),null==f&&e.empty?this:("string"===g&&(k=d.exec(f),k&&(f=j+parseFloat(k[2])*("+"===k[1]?1:-1))),i[e.idx]=f,this[h](i)))})})}),f.hook=function(b){var c=b.split(" ");l(c,function(b,c){a.cssHooks[c]={set:function(b,d){var e,g,h="";if("transparent"!==d&&("string"!==a.type(d)||(e=n(d)))){if(d=f(e||d),!i.rgba&&1!==d._rgba[3]){for(g="backgroundColor"===c?b.parentNode:b;(""===h||"transparent"===h)&&g&&g.style;)try{h=a.css(g,"backgroundColor"),g=g.parentNode}catch(a){}d=d.blend(h&&"transparent"!==h?h:"_default")}d=d.toRgbaString()}try{b.style[c]=d}catch(a){}}},a.fx.step[c]=function(b){b.colorInit||(b.start=f(b.elem,c),b.end=f(b.end),b.colorInit=!0),a.cssHooks[c].set(b.elem,b.start.transition(b.end,b.pos))}})},f.hook(c),a.cssHooks.borderColor={expand:function(a){var b={};return l(["Top","Right","Bottom","Left"],function(c,d){b["border"+d+"Color"]=a}),b}},k=a.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function e(b){var c,d,e=b.ownerDocument.defaultView?b.ownerDocument.defaultView.getComputedStyle(b,null):b.currentStyle,f={};if(e&&e.length&&e[0]&&e[e[0]])for(d=e.length;d--;)c=e[d],"string"==typeof e[c]&&(f[a.camelCase(c)]=e[c]);else for(c in e)"string"==typeof e[c]&&(f[c]=e[c]);return f}function f(b,c){var f,g,e={};for(f in c)g=c[f],b[f]!==g&&(d[f]||!a.fx.step[f]&&isNaN(parseFloat(g))||(e[f]=g));return e}var c=["add","remove","toggle"],d={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(b,c){a.fx.step[c]=function(a){("none"!==a.end&&!a.setAttr||1===a.pos&&!a.setAttr)&&(jQuery.style(a.elem,c,a.end),a.setAttr=!0)}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a.effects.animateClass=function(b,d,g,h){var i=a.speed(d,g,h);return this.queue(function(){var h,d=a(this),g=d.attr("class")||"",j=i.children?d.find("*").addBack():d;j=j.map(function(){var b=a(this);return{el:b,start:e(this)}}),h=function(){a.each(c,function(a,c){b[c]&&d[c+"Class"](b[c])})},h(),j=j.map(function(){return this.end=e(this.el[0]),this.diff=f(this.start,this.end),this}),d.attr("class",g),j=j.map(function(){var b=this,c=a.Deferred(),d=a.extend({},i,{queue:!1,complete:function(){c.resolve(b)}});return this.el.animate(this.diff,d),c.promise()}),a.when.apply(a,j.get()).done(function(){h(),a.each(arguments,function(){var b=this.el;a.each(this.diff,function(a){b.css(a,"")})}),i.complete.call(d[0])})})},a.fn.extend({addClass:function(b){return function(c,d,e,f){return d?a.effects.animateClass.call(this,{add:c},d,e,f):b.apply(this,arguments)}}(a.fn.addClass),removeClass:function(b){return function(c,d,e,f){return arguments.length>1?a.effects.animateClass.call(this,{remove:c},d,e,f):b.apply(this,arguments)}}(a.fn.removeClass),toggleClass:function(c){return function(d,e,f,g,h){return"boolean"==typeof e||e===b?f?a.effects.animateClass.call(this,e?{add:d}:{remove:d},f,g,h):c.apply(this,arguments):a.effects.animateClass.call(this,{toggle:d},e,f,g)}}(a.fn.toggleClass),switchClass:function(b,c,d,e,f){return a.effects.animateClass.call(this,{add:c,remove:b},d,e,f)}})}(),function(){function d(b,c,d,e){return a.isPlainObject(b)&&(c=b,b=b.effect),b={effect:b},null==c&&(c={}),a.isFunction(c)&&(e=c,d=null,c={}),("number"==typeof c||a.fx.speeds[c])&&(e=d,d=c,c={}),a.isFunction(d)&&(e=d,d=null),c&&a.extend(b,c),d=d||c.duration,b.duration=a.fx.off?0:"number"==typeof d?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default,b.complete=e||c.complete,b}function e(b){return!(b&&"number"!=typeof b&&!a.fx.speeds[b])||("string"==typeof b&&!a.effects.effect[b]||(!!a.isFunction(b)||"object"==typeof b&&!b.effect))}a.extend(a.effects,{version:"1.10.3",save:function(a,b){for(var d=0;d<b.length;d++)null!==b[d]&&a.data(c+b[d],a[0].style[b[d]])},restore:function(a,d){var e,f;for(f=0;f<d.length;f++)null!==d[f]&&(e=a.data(c+d[f]),e===b&&(e=""),a.css(d[f],e))},setMode:function(a,b){return"toggle"===b&&(b=a.is(":hidden")?"show":"hide"),b},getBaseline:function(a,b){var c,d;switch(a[0]){case"top":c=0;break;case"middle":c=.5;break;case"bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case"left":d=0;break;case"center":d=.5;break;case"right":d=1;break;default:d=a[1]/b.width}return{x:d,y:c}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(!0),height:b.outerHeight(!0),float:b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:b.width(),height:b.height()},f=document.activeElement;try{f.id}catch(a){f=document.body}return b.wrap(d),(b[0]===f||a.contains(b[0],f))&&a(f).focus(),d=b.parent(),"static"===b.css("position")?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),b.css(e),d.css(c).show()},removeWrapper:function(b){var c=document.activeElement;return b.parent().is(".ui-effects-wrapper")&&(b.parent().replaceWith(b),(b[0]===c||a.contains(b[0],c))&&a(c).focus()),b},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(){function g(c){function h(){a.isFunction(e)&&e.call(d[0]),a.isFunction(c)&&c()}var d=a(this),e=b.complete,g=b.mode;(d.is(":hidden")?"hide"===g:"show"===g)?(d[g](),h()):f.call(d[0],b,h)}var b=d.apply(this,arguments),c=b.mode,e=b.queue,f=a.effects.effect[b.effect];return a.fx.off||!f?c?this[c](b.duration,b.complete):this.each(function(){b.complete&&b.complete.call(this)}):e===!1?this.each(g):this.queue(e||"fx",g)},show:function(a){return function(b){if(e(b))return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="show",this.effect.call(this,c)}}(a.fn.show),hide:function(a){return function(b){if(e(b))return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="hide",this.effect.call(this,c)}}(a.fn.hide),toggle:function(a){return function(b){if(e(b)||"boolean"==typeof b)return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="toggle",this.effect.call(this,c)}}(a.fn.toggle),cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}})}(),function(){var b={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(a,c){b[c]=function(b){return Math.pow(b,a+2)}}),a.extend(b,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,c=4;a<((b=Math.pow(2,--c))-1)/11;);return 1/Math.pow(4,3-c)-7.5625*Math.pow((3*b-2)/22-a,2)}}),a.each(b,function(b,c){a.easing["easeIn"+b]=c,a.easing["easeOut"+b]=function(a){return 1-c(1-a)},a.easing["easeInOut"+b]=function(a){return a<.5?c(2*a)/2:1-c(a*-2+2)/2}})}()}(jQuery),function(a,b){var c=0,d={},e={};d.height=d.paddingTop=d.paddingBottom=d.borderTopWidth=d.borderBottomWidth="hide",e.height=e.paddingTop=e.paddingBottom=e.borderTopWidth=e.borderBottomWidth="show",a.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var b=this.options;this.prevShow=this.prevHide=a(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),b.collapsible||b.active!==!1&&null!=b.active||(b.active=0),this._processPanels(),b.active<0&&(b.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():a(),content:this.active.length?this.active.next():a()}},_createIcons:function(){var b=this.options.icons;b&&(a("<span>").addClass("ui-accordion-header-icon ui-icon "+b.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(b.header).addClass(b.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var a;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id
vendor: 8,248 bytes, line 573
573)&&this.removeAttribute("id")}),this._destroyIcons(),a=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&a.css("height","")},_setOption:function(a,b){return"active"===a?void this._activate(b):("event"===a&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(b)),this._super(a,b),"collapsible"!==a||b||this.options.active!==!1||this._activate(0),"icons"===a&&(this._destroyIcons(),b&&this._createIcons()),void("disabled"===a&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!b)))},_keydown:function(b){if(!b.altKey&&!b.ctrlKey){var c=a.ui.keyCode,d=this.headers.length,e=this.headers.index(b.target),f=!1;switch(b.keyCode){case c.RIGHT:case c.DOWN:f=this.headers[(e+1)%d];break;case c.LEFT:case c.UP:f=this.headers[(e-1+d)%d];break;case c.SPACE:case c.ENTER:this._eventHandler(b);break;case c.HOME:f=this.headers[0];break;case c.END:f=this.headers[d-1]}f&&(a(b.target).attr("tabIndex",-1),a(f).attr("tabIndex",0),f.focus(),b.preventDefault())}},_panelKeyDown:function(b){b.keyCode===a.ui.keyCode.UP&&b.ctrlKey&&a(b.currentTarget).prev().focus()},refresh:function(){var b=this.options;this._processPanels(),b.active===!1&&b.collapsible===!0||!this.headers.length?(b.active=!1,this.active=a()):b.active===!1?this._activate(0):this.active.length&&!a.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(b.active=!1,this.active=a()):this._activate(Math.max(0,b.active-1)):b.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var b,d=this.options,e=d.heightStyle,f=this.element.parent(),g=this.accordionId="ui-accordion-"+(this.element.attr("id")||++c);this.active=this._findActive(d.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(b){var c=a(this),d=c.attr("id"),e=c.next(),f=e.attr("id");d||(d=g+"-header-"+b,c.attr("id",d)),f||(f=g+"-panel-"+b,e.attr("id",f)),c.attr("aria-controls",f),e.attr("aria-labelledby",d)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(d.event),"fill"===e?(b=f.height(),this.element.siblings(":visible").each(function(){var c=a(this),d=c.css("position");"absolute"!==d&&"fixed"!==d&&(b-=c.outerHeight(!0))}),this.headers.each(function(){b-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,b-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===e&&(b=0,this.headers.next().each(function(){b=Math.max(b,a(this).css("height","").height())}).height(b))},_activate:function(b){var c=this._findActive(b)[0];c!==this.active[0]&&(c=c||this.active[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return"number"==typeof b?this.headers.eq(b):a()},_setupEvents:function(b){var c={keydown:"_keydown"};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,c),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e[0]===d[0],g=f&&c.collapsible,h=g?a():e.next(),i=d.next(),j={oldHeader:d,oldPanel:i,newHeader:g?a():e,newPanel:h};b.preventDefault(),f&&!c.collapsible||this._trigger("beforeActivate",b,j)===!1||(c.active=!g&&this.headers.index(e),this.active=f?a():e,this._toggle(j),d.removeClass("ui-accordion-header-active ui-state-active"),c.icons&&d.children(".ui-accordion-header-icon").removeClass(c.icons.activeHeader).addClass(c.icons.header),f||(e.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),c.icons&&e.children(".ui-accordion-header-icon").removeClass(c.icons.header).addClass(c.icons.activeHeader),e.next().addClass("ui-accordion-content-active")))},_toggle:function(b){var c=b.newPanel,d=this.prevShow.length?this.prevShow:b.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=c,this.prevHide=d,this.options.animate?this._animate(c,d,b):(d.hide(),c.show(),this._toggleComplete(b)),d.attr({"aria-expanded":"false","aria-hidden":"true"}),d.prev().attr("aria-selected","false"),c.length&&d.length?d.prev().attr("tabIndex",-1):c.length&&this.headers.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),c.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(a,b,c){var f,g,h,i=this,j=0,k=a.length&&(!b.length||a.index()<b.index()),l=this.options.animate||{},m=k&&l.down||l,n=function(){i._toggleComplete(c)};return"number"==typeof m&&(h=m),"string"==typeof m&&(g=m),g=g||m.easing||l.easing,h=h||m.duration||l.duration,b.length?a.length?(f=a.show().outerHeight(),b.animate(d,{duration:h,easing:g,step:function(a,b){b.now=Math.round(a)}}),void a.hide().animate(e,{duration:h,easing:g,complete:n,step:function(a,c){c.now=Math.round(a),"height"!==c.prop?j+=c.now:"content"!==i.options.heightStyle&&(c.now=Math.round(f-b.outerHeight()-j),j=0)}})):b.animate(d,h,g,n):a.animate(e,h,g,n)},_toggleComplete:function(a){var b=a.oldPanel;b.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),b.length&&(b.parent()[0].className=b.parent()[0].className),this._trigger("activate",null,a)}})}(jQuery),function(a,b){var c=0;a.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var b,c,d,e=this.element[0].nodeName.toLowerCase(),f="textarea"===e,g="input"===e;this.isMultiLine=!!f||!g&&this.element.prop("isContentEditable"),this.valueMethod=this.element[f||g?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))return b=!0,d=!0,void(c=!0);b=!1,d=!1,c=!1;var f=a.ui.keyCode;switch(e.keyCode){case f.PAGE_UP:b=!0,this._move("previousPage",e);break;case f.PAGE_DOWN:b=!0,this._move("nextPage",e);break;case f.UP:b=!0,this._keyEvent("previous",e);break;case f.DOWN:b=!0,this._keyEvent("next",e);break;case f.ENTER:case f.NUMPAD_ENTER:this.menu.active&&(b=!0,e.preventDefault(),this.menu.select(e));break;case f.TAB:this.menu.active&&this.menu.select(e);break;case f.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(e),e.preventDefault());break;default:c=!0,this._searchTimeout(e)}},keypress:function(d){if(b)return b=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||d.preventDefault());if(!c){var e=a.ui.keyCode;switch(d.keyCode){case e.PAGE_UP:this._move("previousPage",d);break;case e.PAGE_DOWN:this._move("nextPage",d);break;case e.UP:this._keyEvent("previous",d);break;case e.DOWN:this._keyEvent("next",d)}}},input:function(a){return d?(d=!1,void a.preventDefault()):void this._searchTimeout(a)},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 8,212 bytes, line 573
573)},blur:function(a){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(a),void this._change(a))}}),this._initSource(),this.menu=a("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(b){b.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var c=this.menu.element[0];a(b.target).closest(".ui-menu-item").length||this._delay(function(){var b=this;this.document.one("mousedown",function(d){d.target===b.element[0]||d.target===c||a.contains(c,d.target)||b.close()})})},menufocus:function(b,c){if(this.isNewMenu&&(this.isNewMenu=!1,b.originalEvent&&/^mouse/.test(b.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){a(b.target).trigger(b.originalEvent)});var d=c.item.data("ui-autocomplete-item");!1!==this._trigger("focus",b,{item:d})?b.originalEvent&&/^key/.test(b.originalEvent.type)&&this._value(d.value):this.liveRegion.text(d.value)},menuselect:function(a,b){var c=b.item.data("ui-autocomplete-item"),d=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=d,this._delay(function(){this.previous=d,this.selectedItem=c})),!1!==this._trigger("select",a,{item:c})&&this._value(c.value),this.term=this._value(),this.close(a),this.selectedItem=c}}),this.liveRegion=a("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(a,b){this._super(a,b),"source"===a&&this._initSource(),"appendTo"===a&&this.menu.element.appendTo(this._appendTo()),"disabled"===a&&b&&this.xhr&&this.xhr.abort()},_appendTo:function(){var b=this.options.appendTo;return b&&(b=b.jquery||b.nodeType?a(b):this.document.find(b).eq(0)),b||(b=this.element.closest(".ui-front")),b.length||(b=this.document[0].body),b},_initSource:function(){var b,c,d=this;a.isArray(this.options.source)?(b=this.options.source,this.source=function(c,d){d(a.ui.autocomplete.filter(b,c.term))}):"string"==typeof this.options.source?(c=this.options.source,this.source=function(b,e){d.xhr&&d.xhr.abort(),d.xhr=a.ajax({url:c,data:b,dataType:"json",success:function(a){e(a)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(a){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,a))},this.options.delay)},search:function(a,b){return a=null!=a?a:this._value(),this.term=this._value(),a.length<this.options.minLength?this.close(b):this._trigger("search",b)!==!1?this._search(a):void 0},_search:function(a){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:a},this._response())},_response:function(){var a=this,b=++c;return function(d){b===c&&a.__response(d),a.pending--,a.pending||a.element.removeClass("ui-autocomplete-loading")}},__response:function(a){a&&(a=this._normalize(a)),this._trigger("response",null,{content:a}),!this.options.disabled&&a&&a.length&&!this.cancelSearch?(this._suggest(a),this._trigger("open")):this._close()},close:function(a){this.cancelSearch=!0,this._close(a)},_close:function(a){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",a))},_change:function(a){this.previous!==this._value()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(b){return b.length&&b[0].label&&b[0].value?b:a.map(b,function(b){return"string"==typeof b?{label:b,value:b}:a.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(b){var c=this.menu.element.empty();this._renderMenu(c,b),this.isNewMenu=!0,this.menu.refresh(),c.show(),this._resizeMenu(),c.position(a.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(b,c){var d=this;a.each(c,function(a,c){d._renderItemData(b,c)})},_renderItemData:function(a,b){return this._renderItem(a,b).data("ui-autocomplete-item",b)},_renderItem:function(b,c){return a("<li>").append(a("<a>").text(c.label)).appendTo(b)},_move:function(a,b){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(a)||this.menu.isLastItem()&&/^next/.test(a)?(this._value(this.term),void this.menu.blur()):void this.menu[a](b):void this.search(null,b)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(a,b){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(a,b),b.preventDefault())}}),a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(b,c){var d=new RegExp(a.ui.autocomplete.escapeRegex(c),"i");return a.grep(b,function(a){return d.test(a.label||a.value||a)})}}),a.widget("ui.autocomplete",a.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(a){return a+(a>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(a){var b;this._superApply(arguments),this.options.disabled||this.cancelSearch||(b=a&&a.length?this.options.messages.results(a.length):this.options.messages.noResults,this.liveRegion.text(b))}})}(jQuery),function(a,b){var c,d,e,f,g="ui-button ui-widget ui-state-default ui-corner-all",h="ui-state-hover ui-state-active ",i="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",j=function(){var b=a(this);setTimeout(function(){b.find(":ui-button").button("refresh")},1)},k=function(b){var c=b.name,d=b.form,e=a([]);return c&&(c=c.replace(/'/g,"\\'"),e=d?a(d).find("[name='"+c+"']"):a("[name='"+c+"']",b.ownerDocument).filter(function(){return!this.form})),e};a.widget("ui.button",{version:"1.10.3",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,j),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var b=this,h=this.options,i="checkbox"===this.type||"radio"===this.type,l=i?"":"ui-state-active",m="ui-state-focus";null===h.label&&(h.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(g).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){h.disabled||this===c&&a(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){h.disabled||a(this).removeClass(l)}).bind("click"+this.eventNamespace,function(a){h.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){b.buttonElement.addClass(m)}).bind("blur"+this.eventNamespace,function(){b.buttonElement.removeClass(m)}),i&&(this.element.bind("change"+this.eventNamespace,function(){f||b.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(a){h.disabled||(f=!1,d=a.pageX,e=a.pageY)}).bind("mouseup"+this.eventNamespace,function(a){h.disabled||d===a.pageX&&e===a.pageY||(f=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(h.disabled||f)return!1}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(h.disabled||f)return!1;a(this).addClass("ui-state-active"),b.buttonElement.attr("aria-pressed","true");var c=b.element[0];k(c).not(c).map(function(){return a(this).button("widget")[0]}
573).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return!h.disabled&&(a(this).addClass("ui-state-active"),c=this,void b.document.one("mouseup",function(){c=null}))}).bind("mouseup"+this.eventNamespace,function(){return!h.disabled&&void a(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(b){return!h.disabled&&void(b.keyCode!==a.ui.keyCode.SPACE&&b.keyCode!==a.ui.keyCode.ENTER||a(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){a(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(b){b.keyCode===a.ui.keyCode.SPACE&&a(this).click()})),this._setOption("disabled",h.disabled),this._resetButton()},_determineButtonType:function(){var a,b,c;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(a=this.element.parents().last(),b="label[for='"+this.element.attr("id")+"']",this.buttonElement=a.find(b),this.buttonElement.length||(a=a.length?a.siblings():this.element.siblings(),this.buttonElement=a.filter(b),this.buttonElement.length||(this.buttonElement=a.find(b))),this.element.addClass("ui-helper-hidden-accessible"),c=this.element.is(":checked"),c&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",c)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(g+" "+h+" "+i).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(a,b){return this._super(a,b),"disabled"===a?void(b?this.element.prop("disabled",!0):this.element.prop("disabled",!1)):void this._resetButton()},refresh:function(){var b=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");b!==this.options.disabled&&this._setOption("disabled",b),"radio"===this.type?k(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return void(this.options.label&&this.element.val(this.options.label));var b=this.buttonElement.removeClass(i),c=a("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,e=d.primary&&d.secondary,f=[];d.primary||d.secondary?(this.options.text&&f.push("ui-button-text-icon"+(e?"s":d.primary?"-primary":"-secondary")),d.primary&&b.prepend("<span class='ui-button-icon-primary ui-icon "+d.primary+"'></span>"),d.secondary&&b.append("<span class='ui-button-icon-secondary ui-icon "+d.secondary+"'></span>"),this.options.text||(f.push(e?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||b.attr("title",a.trim(c)))):f.push("ui-button-text-only"),b.addClass(f.join(" "))}}),a.widget("ui.buttonset",{version:"1.10.3",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(a,b){"disabled"===a&&this.buttons.button("option",a,b),this._super(a,b)},refresh:function(){var b="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(b?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(b?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(jQuery),function(a,b){function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
573ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},a.extend(this._defaults,this.regional[""]),this.dpDiv=f(a("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function f(b){var c="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return b.delegate(c,"mouseout",function(){a(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&a(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&a(this).removeClass("ui-datepicker-next-hover")}).delegate(c,"mouseover",function(){a.datepicker._isDisabledDatepicker(d.inline?b.parent()[0]:d.input[0])||(a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),a(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&a(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&a(this).addClass("ui-datepicker-next-hover"))})}function g(b,c){a.extend(b,c);for(var d in c)null==c[d]&&(b[d]=c[d]);return b}a.extend(a.ui,{datepicker:{version:"1.10.3"}});var d,c="datepicker";a.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return g(this._defaults,a||{}),this},_attachDatepicker:function(b,c){var d,e,f;d=b.nodeName.toLowerCase(),e="div"===d||"span"===d,b.id||(this.uuid+=1,b.id="dp"+this.uuid),f=this._newInst(a(b),e),f.settings=a.extend({},c||{}),"input"===d?this._connectDatepicker(b,f):e&&this._inlineDatepicker(b,f)},_newInst:function(b,c){var d=b[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:d,input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:c?f(a("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(b,d){var e=a(b);d.append=a([]),d.trigger=a([]),e.hasClass(this.markerClassName)||(this._attachments(e,d),e.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(d),a.data(b,c,d),d.settings.disabled&&this._disableDatepicker(b))},_attachments:function(b,c){var d,e,f,g=this._get(c,"appendText"),h=this._get(c,"isRTL");c.append&&c.append.remove(),g&&(c.append=a("<span class='"+this._appendClass+"'>"+g+"</span>"),b[h?"before":"after"](c.append)),b.unbind("focus",this._showDatepicker),c.trigger&&c.trigger.remove(),d=this._get(c,"showOn"),"focus"!==d&&"both"!==d||b.focus(this._showDatepicker),"button"!==d&&"both"!==d||(e=this._get(c,"buttonText"),f=this._get(c,"buttonImage"),c.trigger=a(this._get(c,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:f,alt:e,title:e}):a("<button type='button'></button>").addClass(this._triggerClass).html(f?a("<img/>").attr({src:f,alt:e,title:e}):e)),b[h?"before":"after"](c.trigger),c.trigger.click(function(){return a.datepicker._datepickerShowing&&a.datepicker._lastInput===b[0]?a.datepicker._hideDatepicker():a.datepicker._datepickerShowing&&a.datepicker._lastInput!==b[0]?(a.datepicker._hideDatepicker(),a.datepicker._showDatepicker(b[0])):a.datepicker._showDatepicker(b[0]),!1}))}
vendor: 7,339 bytes, line 573
573,_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b,c,d,e,f=new Date(2009,11,20),g=this._get(a,"dateFormat");g.match(/[DM]/)&&(b=function(a){for(c=0,d=0,e=0;e<a.length;e++)a[e].length>c&&(c=a[e].length,d=e);return d},f.setMonth(b(this._get(a,g.match(/MM/)?"monthNames":"monthNamesShort"))),f.setDate(b(this._get(a,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())),a.input.attr("size",this._formatDate(a,f).length)}},_inlineDatepicker:function(b,d){var e=a(b);e.hasClass(this.markerClassName)||(e.addClass(this.markerClassName).append(d.dpDiv),a.data(b,c,d),this._setDate(d,this._getDefaultDate(d),!0),this._updateDatepicker(d),this._updateAlternate(d),d.settings.disabled&&this._disableDatepicker(b),d.dpDiv.css("display","block"))},_dialogDatepicker:function(b,d,e,f,h){var i,j,k,l,m,n=this._dialogInst;return n||(this.uuid+=1,i="dp"+this.uuid,this._dialogInput=a("<input type='text' id='"+i+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),a("body").append(this._dialogInput),n=this._dialogInst=this._newInst(this._dialogInput,!1),n.settings={},a.data(this._dialogInput[0],c,n)),g(n.settings,f||{}),d=d&&d.constructor===Date?this._formatDate(n,d):d,this._dialogInput.val(d),this._pos=h?h.length?h:[h.pageX,h.pageY]:null,this._pos||(j=document.documentElement.clientWidth,k=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,m=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[j/2-100+l,k/2-150+m]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=e,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),a.blockUI&&a.blockUI(this.dpDiv),a.data(this._dialogInput[0],c,n),this},_destroyDatepicker:function(b){var d,e=a(b),f=a.data(b,c);e.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),a.removeData(b,c),"input"===d?(f.append.remove(),f.trigger.remove(),e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==d&&"span"!==d||e.removeClass(this.markerClassName).empty())},_enableDatepicker:function(b){var d,e,f=a(b),g=a.data(b,c);f.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),"input"===d?(b.disabled=!1,g.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==d&&"span"!==d||(e=f.children("."+this._inlineClass),e.children().removeClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}))},_disableDatepicker:function(b){var d,e,f=a(b),g=a.data(b,c);f.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),"input"===d?(b.disabled=!0,g.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==d&&"span"!==d||(e=f.children("."+this._inlineClass),e.children().addClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}),this._disabledInputs[this._disabledInputs.length]=b)},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]===a)return!0;return!1},_getInst:function(b){try{return a.data(b,c)}catch(a){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(c,d,e){var f,h,i,j,k=this._getInst(c);return 2===arguments.length&&"string"==typeof d?"defaults"===d?a.extend({},a.datepicker._defaults):k?"all"===d?a.extend({},k.settings):this._get(k,d):null:(f=d||{},"string"==typeof d&&(f={},f[d]=e),void(k&&(this._curInst===k&&this._hideDatepicker(),h=this._getDateDatepicker(c,!0),i=this._getMinMaxDate(k,"min"),j=this._getMinMaxDate(k,"max"),g(k.settings,f),null!==i&&f.dateFormat!==b&&f.minDate===b&&(k.settings.minDate=this._formatDate(k,i)),null!==j&&f.dateFormat!==b&&f.maxDate===b&&(k.settings.maxDate=this._formatDate(k,j)),"disabled"in f&&(f.disabled?this._disableDatepicker(c):this._enableDatepicker(c)),this._attachments(a(c),k),this._autoSize(k),this._setDate(k,h),this._updateAlternate(k),this._updateDatepicker(k))))},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){var b=this._getInst(a);b&&this._updateDatepicker(b)},_setDateDatepicker:function(a,b){var c=this._getInst(a);c&&(this._setDate(c,b),this._updateDatepicker(c),this._updateAlternate(c))},_getDateDatepicker:function(a,b){var c=this._getInst(a);return c&&!c.inline&&this._setDateFromField(c,b),c?this._getDate(c):null},_doKeyDown:function(b){var c,d,e,f=a.datepicker._getInst(b.target),g=!0,h=f.dpDiv.is(".ui-datepicker-rtl");if(f._keyEvent=!0,a.datepicker._datepickerShowing)switch(b.keyCode){case 9:a.datepicker._hideDatepicker(),g=!1;break;case 13:return e=a("td."+a.datepicker._dayOverClass+":not(."+a.datepicker._currentClass+")",f.dpDiv),e[0]&&a.datepicker._selectDay(b.target,f.selectedMonth,f.selectedYear,e[0]),c=a.datepicker._get(f,"onSelect"),c?(d=a.datepicker._formatDate(f),c.apply(f.input?f.input[0]:null,[d,f])):a.datepicker._hideDatepicker(),!1;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");break;case 35:(b.ctrlKey||b.metaKey)&&a.datepicker._clearDate(b.target),g=b.ctrlKey||b.metaKey;break;case 36:(b.ctrlKey||b.metaKey)&&a.datepicker._gotoToday(b.target),g=b.ctrlKey||b.metaKey;break;case 37:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,h?1:-1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 38:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,-7,"D"),g=b.ctrlKey||b.metaKey;break;case 39:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,h?-1:1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");break;case 40:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,7,"D"),g=b.ctrlKey||b.metaKey;break;default:g=!1}else 36===b.keyCode&&b.ctrlKey?a.datepicker._showDatepicker(this):g=!1;g&&(b.preventDefault(),b.stopPropagation())},_doKeyPress:function(b){var c,d,e=a.datepicker._getInst(b.target);if(a.datepicker._get(e,"constrainInput"))return c=a.datepicker._possibleChars(a.datepicker._get(e,"dateFormat")),d=String.fromCharCode(null==b.charCode?b.keyCode:b.charCode),b.ctrlKey||b.metaKey||d<" "||!c||c.indexOf(d)>-1},_doKeyUp:function(b){var c,d=a.datepicker._getInst(b.target);if(d.input.val()!==d.lastVal)try{c=a.datepicker.parseDate(a.datepicker._get(d,"dateFormat"),d.input?d.input.val():null,a.datepicker._getFormatConfig(d)),c&&(a.datepicker._setDateFromField(d),a.datepicker._updateAlternate(d),a.datepicker._updateDatepicker(d
vendor: 6,333 bytes, line 573
573))}catch(a){}return!0},_showDatepicker:function(b){if(b=b.target||b,"input"!==b.nodeName.toLowerCase()&&(b=a("input",b.parentNode)[0]),!a.datepicker._isDisabledDatepicker(b)&&a.datepicker._lastInput!==b){var c,d,e,f,h,i,j;c=a.datepicker._getInst(b),a.datepicker._curInst&&a.datepicker._curInst!==c&&(a.datepicker._curInst.dpDiv.stop(!0,!0),c&&a.datepicker._datepickerShowing&&a.datepicker._hideDatepicker(a.datepicker._curInst.input[0])),d=a.datepicker._get(c,"beforeShow"),e=d?d.apply(b,[b,c]):{},e!==!1&&(g(c.settings,e),c.lastVal=null,a.datepicker._lastInput=b,a.datepicker._setDateFromField(c),a.datepicker._inDialog&&(b.value=""),a.datepicker._pos||(a.datepicker._pos=a.datepicker._findPos(b),a.datepicker._pos[1]+=b.offsetHeight),f=!1,a(b).parents().each(function(){return f|="fixed"===a(this).css("position"),!f}),h={left:a.datepicker._pos[0],top:a.datepicker._pos[1]},a.datepicker._pos=null,c.dpDiv.empty(),c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),a.datepicker._updateDatepicker(c),h=a.datepicker._checkOffset(c,h,f),c.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":f?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),c.inline||(i=a.datepicker._get(c,"showAnim"),j=a.datepicker._get(c,"duration"),c.dpDiv.zIndex(a(b).zIndex()+1),a.datepicker._datepickerShowing=!0,a.effects&&a.effects.effect[i]?c.dpDiv.show(i,a.datepicker._get(c,"showOptions"),j):c.dpDiv[i||"show"](i?j:null),a.datepicker._shouldFocusInput(c)&&c.input.focus(),a.datepicker._curInst=c))}},_updateDatepicker:function(b){this.maxRows=4,d=b,b.dpDiv.empty().append(this._generateHTML(b)),this._attachHandlers(b),b.dpDiv.find("."+this._dayOverClass+" a").mouseover();var c,e=this._getNumberOfMonths(b),f=e[1],g=17;b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),f>1&&b.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",g*f+"em"),b.dpDiv[(1!==e[0]||1!==e[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),b===a.datepicker._curInst&&a.datepicker._datepickerShowing&&a.datepicker._shouldFocusInput(b)&&b.input.focus(),b.yearshtml&&(c=b.yearshtml,setTimeout(function(){c===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml),c=b.yearshtml=null},0))},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(b,c,d){var e=b.dpDiv.outerWidth(),f=b.dpDiv.outerHeight(),g=b.input?b.input.outerWidth():0,h=b.input?b.input.outerHeight():0,i=document.documentElement.clientWidth+(d?0:a(document).scrollLeft()),j=document.documentElement.clientHeight+(d?0:a(document).scrollTop());return c.left-=this._get(b,"isRTL")?e-g:0,c.left-=d&&c.left===b.input.offset().left?a(document).scrollLeft():0,c.top-=d&&c.top===b.input.offset().top+h?a(document).scrollTop():0,c.left-=Math.min(c.left,c.left+e>i&&i>e?Math.abs(c.left+e-i):0),c.top-=Math.min(c.top,c.top+f>j&&j>f?Math.abs(f+h):0),c},_findPos:function(b){for(var c,d=this._getInst(b),e=this._get(d,"isRTL");b&&("hidden"===b.type||1!==b.nodeType||a.expr.filters.hidden(b));)b=b[e?"previousSibling":"nextSibling"];return c=a(b).offset(),[c.left,c.top]},_hideDatepicker:function(b){var d,e,f,g,h=this._curInst;!h||b&&h!==a.data(b,c)||this._datepickerShowing&&(d=this._get(h,"showAnim"),e=this._get(h,"duration"),f=function(){a.datepicker._tidyDialog(h)},a.effects&&(a.effects.effect[d]||a.effects[d])?h.dpDiv.hide(d,a.datepicker._get(h,"showOptions"),e,f):h.dpDiv["slideDown"===d?"slideUp":"fadeIn"===d?"fadeOut":"hide"](d?e:null,f),d||f(),this._datepickerShowing=!1,g=this._get(h,"onClose"),g&&g.apply(h.input?h.input[0]:null,[h.input?h.input.val():"",h]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){var c=a(b.target),d=a.datepicker._getInst(c[0]);(c[0].id===a.datepicker._mainDivId||0!==c.parents("#"+a.datepicker._mainDivId).length||c.hasClass(a.datepicker.markerClassName)||c.closest("."+a.datepicker._triggerClass).length||!a.datepicker._datepickerShowing||a.datepicker._inDialog&&a.blockUI)&&(!c.hasClass(a.datepicker.markerClassName)||a.datepicker._curInst===d)||a.datepicker._hideDatepicker()}},_adjustDate:function(b,c,d){var e=a(b),f=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(f,c+("M"===d?this._get(f,"showCurrentAtPos"):0),d),this._updateDatepicker(f))},_gotoToday:function(b){var c,d=a(b),e=this._getInst(d[0]);this._get(e,"gotoCurrent")&&e.currentDay?(e.selectedDay=e.currentDay,e.drawMonth=e.selectedMonth=e.currentMonth,e.drawYear=e.selectedYear=e.currentYear):(c=new Date,e.selectedDay=c.getDate(),e.drawMonth=e.selectedMonth=c.getMonth(),e.drawYear=e.selectedYear=c.getFullYear()),this._notifyChange(e),this._adjustDate(d)},_selectMonthYear:function(b,c,d){var e=a(b),f=this._getInst(e[0]);f["selected"+("M"===d?"Month":"Year")]=f["draw"+("M"===d?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10),this._notifyChange(f),this._adjustDate(e)},_selectDay:function(b,c,d,e){var f,g=a(b);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||(f=this._getInst(g[0]),f.selectedDay=f.currentDay=a("a",e).html(),f.selectedMonth=f.currentMonth=c,f.selectedYear=f.currentYear=d,this._selectDate(b,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(b){var c=a(b);this._selectDate(c,"")},_selectDate:function(b,c){var d,e=a(b),f=this._getInst(e[0]);c=null!=c?c:this._formatDate(f),f.input&&f.input.val(c),this._updateAlternate(f),d=this._get(f,"onSelect"),d?d.apply(f.input?f.input[0]:null,[c,f]):f.input&&f.input.trigger("change"),f.inline?this._updateDatepicker(f):(this._hideDatepicker(),this._lastInput=f.input[0],"object"!=typeof f.input[0]&&f.input.focus(),this._lastInput=null)},_updateAlternate:function(b){var c,d,e,f=this._get(b,"altField");f&&(c=this._get(b,"altFormat")||this._get(b,"dateFormat"),d=this._getDate(b),e=this.formatDate(c,d,this._getFormatConfig(b)),a(f).each(function(){a(this).val(e)}))}
vendor: 5,580 bytes, line 573
573,noWeekends:function(a){var b=a.getDay();return[b>0&&b<6,""]},iso8601Week:function(a){var b,c=new Date(a.getTime());return c.setDate(c.getDate()+4-(c.getDay()||7)),b=c.getTime(),c.setMonth(0),c.setDate(1),Math.floor(Math.round((b-c)/864e5)/7)+1},parseDate:function(b,c,d){if(null==b||null==c)throw"Invalid arguments";if(c="object"==typeof c?c.toString():c+"",""===c)return null;var e,f,g,t,h=0,i=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,j="string"!=typeof i?i:(new Date).getFullYear()%100+parseInt(i,10),k=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,l=(d?d.dayNames:null)||this._defaults.dayNames,m=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,n=(d?d.monthNames:null)||this._defaults.monthNames,o=-1,p=-1,q=-1,r=-1,s=!1,u=function(a){var c=e+1<b.length&&b.charAt(e+1)===a;return c&&e++,c},v=function(a){var b=u(a),d="@"===a?14:"!"===a?20:"y"===a&&b?4:"o"===a?3:2,e=new RegExp("^\\d{1,"+d+"}"),f=c.substring(h).match(e);if(!f)throw"Missing number at position "+h;return h+=f[0].length,parseInt(f[0],10)},w=function(b,d,e){var f=-1,g=a.map(u(b)?e:d,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)});if(a.each(g,function(a,b){var d=b[1];if(c.substr(h,d.length).toLowerCase()===d.toLowerCase())return f=b[0],h+=d.length,!1}),f!==-1)return f+1;throw"Unknown name at position "+h},x=function(){if(c.charAt(h)!==b.charAt(e))throw"Unexpected literal at position "+h;h++};for(e=0;e<b.length;e++)if(s)"'"!==b.charAt(e)||u("'")?x():s=!1;else switch(b.charAt(e)){case"d":q=v("d");break;case"D":w("D",k,l);break;case"o":r=v("o");break;case"m":p=v("m");break;case"M":p=w("M",m,n);break;case"y":o=v("y");break;case"@":t=new Date(v("@")),o=t.getFullYear(),p=t.getMonth()+1,q=t.getDate();break;case"!":t=new Date((v("!")-this._ticksTo1970)/1e4),o=t.getFullYear(),p=t.getMonth()+1,q=t.getDate();break;case"'":u("'")?x():s=!0;break;default:x()}if(h<c.length&&(g=c.substr(h),!/^\s+/.test(g)))throw"Extra/unparsed characters found in date: "+g;if(o===-1?o=(new Date).getFullYear():o<100&&(o+=(new Date).getFullYear()-(new Date).getFullYear()%100+(o<=j?0:-100)),r>-1)for(p=1,q=r;;){if(f=this._getDaysInMonth(o,p-1),q<=f)break;p++,q-=f}if(t=this._daylightSavingAdjust(new Date(o,p-1,q)),t.getFullYear()!==o||t.getMonth()+1!==p||t.getDate()!==q)throw"Invalid date";return t},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d,e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=function(b){var c=d+1<a.length&&a.charAt(d+1)===b;return c&&d++,c},j=function(a,b,c){var d=""+b;if(i(a))for(;d.length<c;)d="0"+d;return d},k=function(a,b,c,d){return i(a)?d[b]:c[b]},l="",m=!1;if(b)for(d=0;d<a.length;d++)if(m)"'"!==a.charAt(d)||i("'")?l+=a.charAt(d):m=!1;else switch(a.charAt(d)){case"d":l+=j("d",b.getDate(),2);break;case"D":l+=k("D",b.getDay(),e,f);break;case"o":l+=j("o",Math.round((new Date(b.getFullYear(),b.getMonth(),b.getDate()).getTime()-new Date(b.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=j("m",b.getMonth()+1,2);break;case"M":l+=k("M",b.getMonth(),g,h);break;case"y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case"@":l+=b.getTime();break;case"!":l+=1e4*b.getTime()+this._ticksTo1970;break;case"'":i("'")?l+="'":m=!0;break;default:l+=a.charAt(d)}return l},_possibleChars:function(a){var b,c="",d=!1,e=function(c){var d=b+1<a.length&&a.charAt(b+1)===c;return d&&b++,d};for(b=0;b<a.length;b++)if(d)"'"!==a.charAt(b)||e("'")?c+=a.charAt(b):d=!1;else switch(a.charAt(b)){case"d":case"m":case"y":case"@":c+="0123456789";break;case"D":case"M":return null;case"'":e("'")?c+="'":d=!0;break;default:c+=a.charAt(b)}return c},_get:function(a,c){return a.settings[c]!==b?a.settings[c]:this._defaults[c]},_setDateFromField:function(a,b){if(a.input.val()!==a.lastVal){var c=this._get(a,"dateFormat"),d=a.lastVal=a.input?a.input.val():null,e=this._getDefaultDate(a),f=e,g=this._getFormatConfig(a);try{f=this.parseDate(c,d,g)||e}catch(a){d=b?"":d}a.selectedDay=f.getDate(),a.drawMonth=a.selectedMonth=f.getMonth(),a.drawYear=a.selectedYear=f.getFullYear(),a.currentDay=d?f.getDate():0,a.currentMonth=d?f.getMonth():0,a.currentYear=d?f.getFullYear():0,this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(b,c,d){var e=function(a){var b=new Date;return b.setDate(b.getDate()+a),b},f=function(c){try{return a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),c,a.datepicker._getFormatConfig(b))}catch(a){}for(var d=(c.toLowerCase().match(/^c/)?a.datepicker._getDate(b):null)||new Date,e=d.getFullYear(),f=d.getMonth(),g=d.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,i=h.exec(c);i;){switch(i[2]||"d"){case"d":case"D":g+=parseInt(i[1],10);break;case"w":case"W":g+=7*parseInt(i[1],10);break;case"m":case"M":f+=parseInt(i[1],10),g=Math.min(g,a.datepicker._getDaysInMonth(e,f));break;case"y":case"Y":e+=parseInt(i[1],10),g=Math.min(g,a.datepicker._getDaysInMonth(e,f))}i=h.exec(c)}return new Date(e,f,g)},g=null==c||""===c?d:"string"==typeof c?f(c):"number"==typeof c?isNaN(c)?d:e(c):new Date(c.getTime());
vendor: 4,973 bytes, line 573
573return g=g&&"Invalid Date"===g.toString()?d:g,g&&(g.setHours(0),g.setMinutes(0),g.setSeconds(0),g.setMilliseconds(0)),this._daylightSavingAdjust(g)},_daylightSavingAdjust:function(a){return a?(a.setHours(a.getHours()>12?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),e===a.selectedMonth&&f===a.selectedYear||c||this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&""===a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(b){var c=this._get(b,"stepMonths"),d="#"+b.id.replace(/\\\\/g,"\\");b.dpDiv.find("[data-handler]").map(function(){var b={prev:function(){a.datepicker._adjustDate(d,-c,"M")},next:function(){a.datepicker._adjustDate(d,+c,"M")},hide:function(){a.datepicker._hideDatepicker()},today:function(){a.datepicker._gotoToday(d)},selectDay:function(){return a.datepicker._selectDay(d,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return a.datepicker._selectMonthYear(d,this,"M"),!1},selectYear:function(){return a.datepicker._selectMonthYear(d,this,"Y"),!1}};a(this).bind(this.getAttribute("data-event"),b[this.getAttribute("data-handler")])})},_generateHTML:function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O=new Date,P=this._daylightSavingAdjust(new Date(O.getFullYear(),O.getMonth(),O.getDate())),Q=this._get(a,"isRTL"),R=this._get(a,"showButtonPanel"),S=this._get(a,"hideIfNoPrevNext"),T=this._get(a,"navigationAsDateFormat"),U=this._getNumberOfMonths(a),V=this._get(a,"showCurrentAtPos"),W=this._get(a,"stepMonths"),X=1!==U[0]||1!==U[1],Y=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(a,"min"),$=this._getMinMaxDate(a,"max"),_=a.drawMonth-V,aa=a.drawYear;if(_<0&&(_+=12,aa--),$)for(b=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-U[0]*U[1]+1,$.getDate())),b=Z&&b<Z?Z:b;this._daylightSavingAdjust(new Date(aa,_,1))>b;)_--,_<0&&(_=11,aa--);for(a.drawMonth=_,a.drawYear=aa,c=this._get(a,"prevText"),c=T?this.formatDate(c,this._daylightSavingAdjust(new Date(aa,_-W,1)),this._getFormatConfig(a)):c,d=this._canAdjustMonth(a,-1,aa,_)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"e":"w")+"'>"+c+"</span></a>":S?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"e":"w")+"'>"+c+"</span></a>",e=this._get(a,"nextText"),e=T?this.formatDate(e,this._daylightSavingAdjust(new Date(aa,_+W,1)),this._getFormatConfig(a)):e,f=this._canAdjustMonth(a,1,aa,_)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+e+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"w":"e")+"'>"+e+"</span></a>":S?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+e+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"w":"e")+"'>"+e+"</span></a>",g=this._get(a,"currentText"),h=this._get(a,"gotoCurrent")&&a.currentDay?Y:P,g=T?this.formatDate(g,h,this._getFormatConfig(a)):g,i=a.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(a,"closeText")+"</button>",j=R?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Q?i:"")+(this._isInRange(a,h)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+g+"</button>":"")+(Q?"":i)+"</div>":"",k=parseInt(this._get(a,"firstDay"),10),k=isNaN(k)?0:k,l=this._get(a,"showWeek"),m=this._get(a,"dayNames"),n=this._get(a,"dayNamesMin"),o=this._get(a,"monthNames"),p=this._get(a,"monthNamesShort"),q=this._get(a,"beforeShowDay"),r=this._get(a,"showOtherMonths"),s=this._get(a,"selectOtherMonths"),t=this._getDefaultDate(a),u="",w=0;w<U[0];w++){for(x="",this.maxRows=4,y=0;y<U[1];y++){if(z=this._daylightSavingAdjust(new Date(aa,_,a.selectedDay)),A=" ui-corner-all",B="",X){if(B+="<div class='ui-datepicker-group",U[1]>1)switch(y){case 0:B+=" ui-datepicker-group-first",A=" ui-corner-"+(Q?"right":"left");break;case U[1]-1:B+=" ui-datepicker-group-last",A=" ui-corner-"+(Q?"left":"right");break;default:B+=" ui-datepicker-group-middle",A=""}B+="'>"}for(B+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+A+"'>"+(/all|left/.test(A)&&0===w?Q?f:d:"")+(/all|right/.test(A)&&0===w?Q?d:f:"")+this._generateMonthYearHeader(a,_,aa,Z,$,w>0||y>
vendor: 3,788 bytes, line 573
5730,o,p)+"</div><table class='ui-datepicker-calendar'><thead><tr>",C=l?"<th class='ui-datepicker-week-col'>"+this._get(a,"weekHeader")+"</th>":"",v=0;v<7;v++)D=(v+k)%7,C+="<th"+((v+k+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+m[D]+"'>"+n[D]+"</span></th>";for(B+=C+"</tr></thead><tbody>",E=this._getDaysInMonth(aa,_),aa===a.selectedYear&&_===a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,E)),F=(this._getFirstDayOfMonth(aa,_)-k+7)%7,G=Math.ceil((F+E)/7),H=X&&this.maxRows>G?this.maxRows:G,this.maxRows=H,I=this._daylightSavingAdjust(new Date(aa,_,1-F)),J=0;J<H;J++){for(B+="<tr>",K=l?"<td class='ui-datepicker-week-col'>"+this._get(a,"calculateWeek")(I)+"</td>":"",v=0;v<7;v++)L=q?q.apply(a.input?a.input[0]:null,[I]):[!0,""],M=I.getMonth()!==_,N=M&&!s||!L[0]||Z&&I<Z||$&&I>$,K+="<td class='"+((v+k+6)%7>=5?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(I.getTime()===z.getTime()&&_===a.selectedMonth&&a._keyEvent||t.getTime()===I.getTime()&&t.getTime()===z.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!r?"":" "+L[1]+(I.getTime()===Y.getTime()?" "+this._currentClass:"")+(I.getTime()===P.getTime()?" ui-datepicker-today":""))+"'"+(M&&!r||!L[2]?"":" title='"+L[2].replace(/'/g,"'")+"'")+(N?"":" data-handler='selectDay' data-event='click' data-month='"+I.getMonth()+"' data-year='"+I.getFullYear()+"'")+">"+(M&&!r?" ":N?"<span class='ui-state-default'>"+I.getDate()+"</span>":"<a class='ui-state-default"+(I.getTime()===P.getTime()?" ui-state-highlight":"")+(I.getTime()===Y.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#'>"+I.getDate()+"</a>")+"</td>",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);B+=K+"</tr>"}_++,_>11&&(_=0,aa++),B+="</tbody></table>"+(X?"</div>"+(U[0]>0&&y===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),x+=B}u+=x}return u+=j,a._keyEvent=!1,u},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,o,p,q=this._get(a,"changeMonth"),r=this._get(a,"changeYear"),s=this._get(a,"showMonthAfterYear"),t="<div class='ui-datepicker-title'>",u="";if(f||!q)u+="<span class='ui-datepicker-month'>"+g[b]+"</span>";else{for(i=d&&d.getFullYear()===c,j=e&&e.getFullYear()===c,u+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",k=0;k<12;k++)(!i||k>=d.getMonth())&&(!j||k<=e.getMonth())&&(u+="<option value='"+k+"'"+(k===b?" selected='selected'":"")+">"+h[k]+"</option>");u+="</select>"}if(s||(t+=u+(!f&&q&&r?"":" ")),!a.yearshtml)if(a.yearshtml="",f||!r)t+="<span class='ui-datepicker-year'>"+c+"</span>";else{for(l=this._get(a,"yearRange").split(":"),m=(new Date).getFullYear(),n=function(a){var b=a.match(/c[+\-].*/)?c+parseInt(a.substring(1),10):a.match(/[+\-].*/)?m+parseInt(a,10):parseInt(a,10);return isNaN(b)?m:b},o=n(l[0]),p=Math.max(o,n(l[1]||"")),o=d?Math.max(o,d.getFullYear()):o,p=e?Math.min(p,e.getFullYear()):p,a.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";o<=p;o++)a.yearshtml+="<option value='"+o+"'"+(o===c?" selected='selected'":"")+">"+o+"</option>";a.yearshtml+="</select>",t+=a.yearshtml,a.yearshtml=null}return t+=this._get(a,"yearSuffix"),s&&(t+=(!f&&q&&r?"":" ")+u),t+="</div>"},_adjustInstDate:function(a,b,c){var d=a.drawYear+("Y"===c?b:0),e=a.drawMonth+("M"===c?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+("D"===c?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),"M"!==c&&"Y"!==c||this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&b<c?c:b;return d&&e>d?d:e}
vendor: 9,341 bytes, line 573
573,_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return null==b?[1,1]:"number"==typeof b?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(b<0?b:e[0]*e[1]),1));return b<0&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c,d,e=this._getMinMaxDate(a,"min"),f=this._getMinMaxDate(a,"max"),g=null,h=null,i=this._get(a,"yearRange");return i&&(c=i.split(":"),d=(new Date).getFullYear(),g=parseInt(c[0],10),h=parseInt(c[1],10),c[0].match(/[+\-].*/)&&(g+=d),c[1].match(/[+\-].*/)&&(h+=d)),(!e||b.getTime()>=e.getTime())&&(!f||b.getTime()<=f.getTime())&&(!g||b.getFullYear()>=g)&&(!h||b.getFullYear()<=h)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b="string"!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?"object"==typeof b?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),a.fn.datepicker=function(b){if(!this.length)return this;a.datepicker.initialized||(a(document).mousedown(a.datepicker._checkExternalClick),a.datepicker.initialized=!0),0===a("#"+a.datepicker._mainDivId).length&&a("body").append(a.datepicker.dpDiv);var c=Array.prototype.slice.call(arguments,1);return"string"!=typeof b||"isDisabled"!==b&&"getDate"!==b&&"widget"!==b?"option"===b&&2===arguments.length&&"string"==typeof arguments[1]?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):this.each(function(){"string"==typeof b?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(c)):a.datepicker._attachDatepicker(this,b)}):a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c))},a.datepicker=new e,a.datepicker.initialized=!1,a.datepicker.uuid=(new Date).getTime(),a.datepicker.version="1.10.3"}(jQuery),function(a,b){var c={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},d={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};a.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(b){var c=a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&a.fn.draggable&&this._makeDraggable(),this.options.resizable&&a.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var b=this.options.appendTo;return b&&(b.jquery||b.nodeType)?a(b):this.document.find(b||"body").eq(0)},_destroy:function(){var a,b=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),a=b.parent.children().eq(b.index),a.length&&a[0]!==this.element[0]?a.before(this.element):b.parent.append(this.element)},widget:function(){return this.uiDialog},disable:a.noop,enable:a.noop,close:function(b){var c=this;this._isOpen&&this._trigger("beforeClose",b)!==!1&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||a(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){c._trigger("close",b)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(a,b){var c=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return c&&!b&&this._trigger("focus",a),c},open:function(){var b=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=a(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){b._focusTabbable(),b._trigger("focus")}),void this._trigger("open"))},_focusTabbable:function(){var a=this.element.find("[autofocus]");a.length||(a=this.element.find(":tabbable")),a.length||(a=this.uiDialogButtonPane.find(":tabbable")),a.length||(a=this.uiDialogTitlebarClose.filter(":tabbable")),a.length||(a=this.uiDialog),a.eq(0).focus()},_keepFocus:function(b){function c(){var b=this.document[0].activeElement,c=this.uiDialog[0]===b||a.contains(this.uiDialog[0],b);c||this._focusTabbable()}b.preventDefault(),c.call(this),this._delay(c)},_createWrapper:function(){this.uiDialog=a("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(b){if(this.options.closeOnEscape&&!b.isDefaultPrevented()&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE)return b.preventDefault(),void this.close(b);if(b.keyCode===a.ui.keyCode.TAB){var c=this.uiDialog.find(":tabbable"),d=c.filter(":first"),e=c.filter(":last");b.target!==e[0]&&b.target!==this.uiDialog[0]||b.shiftKey?b.target!==d[0]&&b.target!==this.uiDialog[0]||!b.shiftKey||(e.focus(1),b.preventDefault()):(d.focus(1),b.preventDefault())}},mousedown:function(a){this._moveToTop(a)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var b;this.uiDialogTitlebar=a("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(b){a(b.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=a("<button></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(a){a.preventDefault(),this.close(a)}}),b=a("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(b),this.uiDialog.attr({"aria-labelledby":b.attr("id")})},_title:function(a){this.options.title||a.html(" "),a.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=a("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=a("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var b=this,c=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),a.isEmptyObject(c)||a.isArray(c)&&!c.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(a.each(c,function(c,d){var e,f;d=a.isFunction(d)?{click:d,text:c}:d,d=a.extend({type:"button"},d),e=d.click,d.click=function(){e.apply(b.element[0],arguments)},f={icons:d.icons,text:d.showText},delete d.icons,delete d.showText,a("<button></button>",d).button(f).appendTo(b.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function d(a){return{position:a.position,offset:a.offset}}var b=this,c=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(c,e){a(this).addClass("ui-dialog-dragging"),b._blockFrames(),b._trigger("dragStart",c,d(e))},drag:function(a,c){b._trigger("drag",a,d(c))},stop:function(e,f){c.position=[f.position.left-b.document.scrollLeft(),f.position.top-b.document.scrollTop()],a(this).removeClass("ui-dialog-dragging"),b._unblockFrames(),b._trigger("dragStop",e,d(f))}})}
573,_makeResizable:function(){function g(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}var b=this,c=this.options,d=c.resizable,e=this.uiDialog.css("position"),f="string"==typeof d?d:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:c.maxWidth,maxHeight:c.maxHeight,minWidth:c.minWidth,minHeight:this._minHeight(),handles:f,start:function(c,d){a(this).addClass("ui-dialog-resizing"),b._blockFrames(),b._trigger("resizeStart",c,g(d))},resize:function(a,c){b._trigger("resize",a,g(c))},stop:function(d,e){c.height=a(this).height(),c.width=a(this).width(),a(this).removeClass("ui-dialog-resizing"),b._unblockFrames(),b._trigger("resizeStop",d,g(e))}}).css("position",e)},_minHeight:function(){var a=this.options;return"auto"===a.height?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(){var a=this.uiDialog.is(":visible");a||this.uiDialog.show(),this.uiDialog.position(this.options.position),a||this.uiDialog.hide()},_setOptions:function(b){var e=this,f=!1,g={};a.each(b,function(a,b){e._setOption(a,b),a in c&&(f=!0),a in d&&(g[a]=b)}),f&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",g)},_setOption:function(a,b){var c,d,e=this.uiDialog;"dialogClass"===a&&e.removeClass(this.options.dialogClass).addClass(b),"disabled"!==a&&(this._super(a,b),"appendTo"===a&&this.uiDialog.appendTo(this._appendTo()),"buttons"===a&&this._createButtons(),"closeText"===a&&this.uiDialogTitlebarClose.button({label:""+b}),"draggable"===a&&(c=e.is(":data(ui-draggable)"),c&&!b&&e.draggable("destroy"),!c&&b&&this._makeDraggable()),"position"===a&&this._position(),"resizable"===a&&(d=e.is(":data(ui-resizable)"),d&&!b&&e.resizable("destroy"),d&&"string"==typeof b&&e.resizable("option","handles",b),d||b===!1||this._makeResizable()),"title"===a&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var a,b,c,d=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),d.minWidth>d.width&&(d.width=d.minWidth),a=this.uiDialog.css({height:"auto",width:d.width}).outerHeight(),b=Math.max(0,d.minHeight-a),c="number"==typeof d.maxHeight?Math.max(0,d.maxHeight-a):"none","auto"===d.height?this.element.css({minHeight:b,maxHeight:c,height:"auto"}):this.element.height(Math.max(0,d.height-a)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var b=a(this);return a("<div>").css({position:"absolute",width:b.outerWidth(),height:b.outerHeight()}).appendTo(b.parent()).offset(b.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(b){return!!a(b.target).closest(".ui-dialog").length||!!a(b.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var b=this,c=this.widgetFullName;a.ui.dialog.overlayInstances||this._delay(function(){a.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(d){b._allowInteraction(d)||(d.preventDefault(),a(".ui-dialog:visible:last .ui-dialog-content").data(c)._focusTabbable())})}),this.overlay=a("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),a.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(a.ui.dialog.overlayInstances--,a.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),a.ui.dialog.overlayInstances=0,a.uiBackCompat!==!1&&a.widget("ui.dialog",a.ui.dialog,{_position:function(){var e,b=this.options.position,c=[],d=[0,0];b?(("string"==typeof b||"object"==typeof b&&"0"in b)&&(c=b.split?b.split(" "):[b[0],b[1]],1===c.length&&(c[1]=c[0]),a.each(["left","top"],function(a,b){+c[a]===c[a]&&(d[a]=c[a],c[a]=b)}),b={my:c[0]+(d[0]<0?d[0]:"+"+d[0])+" "+c[1]+(d[1]<0?d[1]:"+"+d[1]),at:c.join(" ")}),b=a.extend({},a.ui.dialog.prototype.options.position,b)):b=a.ui.dialog.prototype.options.position,e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.position(b),e||this.uiDialog.hide()}})}(jQuery),function(a,b){var c=/up|down|vertical/,d=/up|left|vertical|horizontal/;a.effects.effect.blind=function(b,e){var p,q,r,f=a(this),g=["position","top","bottom","left","right","height","width"],h=a.effects.setMode(f,b.mode||"hide"),i=b.direction||"up",j=c.test(i),k=j?"height":"width",l=j?"top":"left",m=d.test(i),n={},o="show"===h;f.parent().is(".ui-effects-wrapper")?a.effects.save(f.parent(),g):a.effects.save(f,g),f.show(),p=a.effects.createWrapper(f).css({overflow:"hidden"}),q=p[k](),r=parseFloat(p.css(l))||0,n[k]=o?q:0,m||(f.css(j?"bottom":"right",0).css(j?"top":"left","auto").css({position:"absolute"}),n[l]=o?r:q+r),o&&(p.css(k,0),m||p.css(l,r+q)),p.animate(n,{duration:b.duration,easing:b.easing,queue:!1,complete:function(){"hide"===h&&f.hide(),a.effects.restore(f,g),a.effects.removeWrapper(f),e()}})}}(jQuery),function(a,b){a.effects.effect.bounce=function(b,c){var q,r,s,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"effect"),g="hide"===f,h="show"===f,i=b.direction||"up",j=b.distance,k=b.times||5,l=2*k+(h||g?1:0),m=b.duration/l,n=b.easing,o="up"===i||"down"===i?"top":"left",p="up"===i||"left"===i,t=d.queue(),u=t.length;for((h||g)&&e.push("opacity"),a.effects.save(d,e),d.show(),a.effects.createWrapper(d),j||(j=d["top"===o?"outerHeight":"outerWidth"]()/3),h&&(s={opacity:1},s[o]=0,d.css("opacity",0).css(o,p?2*-j:2*j).animate(s,m,n)),g&&(j/=Math.pow(2,k-1)),s={},s[o]=0,q=0;q<k;q++)r={},r[o]=(p?"-=":"+=")+j,d.animate(r,m,n).animate(s,m,n),j=g?2*j:j/2;g&&(r={opacity:0}
vendor: 8,181 bytes, line 573
573,r[o]=(p?"-=":"+=")+j,d.animate(r,m,n)),d.queue(function(){g&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}),u>1&&t.splice.apply(t,[1,0].concat(t.splice(u,l+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.clip=function(b,c){var m,n,o,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h=b.direction||"vertical",i="vertical"===h,j=i?"height":"width",k=i?"top":"left",l={};a.effects.save(d,e),d.show(),m=a.effects.createWrapper(d).css({overflow:"hidden"}),n="IMG"===d[0].tagName?m:d,o=n[j](),g&&(n.css(j,0),n.css(k,o/2)),l[j]=g?o:0,l[k]=g?0:o/2,n.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){g||d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.drop=function(b,c){var l,d=a(this),e=["position","top","bottom","left","right","opacity","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h=b.direction||"left",i="up"===h||"down"===h?"top":"left",j="up"===h||"left"===h?"pos":"neg",k={opacity:g?1:0};a.effects.save(d,e),d.show(),a.effects.createWrapper(d),l=b.distance||d["top"===i?"outerHeight":"outerWidth"](!0)/2,g&&d.css("opacity",0).css(i,"pos"===j?-l:l),k[i]=(g?"pos"===j?"+=":"-=":"pos"===j?"-=":"+=")+l,d.animate(k,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.explode=function(b,c){function s(){l.push(this),l.length===d*e&&t()}function t(){f.css({visibility:"visible"}),a(l).remove(),h||f.hide(),c()}var m,n,o,p,q,r,d=b.pieces?Math.round(Math.sqrt(b.pieces)):3,e=d,f=a(this),g=a.effects.setMode(f,b.mode||"hide"),h="show"===g,i=f.show().css("visibility","hidden").offset(),j=Math.ceil(f.outerWidth()/e),k=Math.ceil(f.outerHeight()/d),l=[];for(m=0;m<d;m++)for(p=i.top+m*k,r=m-(d-1)/2,n=0;n<e;n++)o=i.left+n*j,q=n-(e-1)/2,f.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-n*j,top:-m*k}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:j,height:k,left:o+(h?q*j:0),top:p+(h?r*k:0),opacity:h?0:1}).animate({left:o+(h?0:q*j),top:p+(h?0:r*k),opacity:h?1:0},b.duration||500,b.easing,s)}}(jQuery),function(a,b){a.effects.effect.fade=function(b,c){var d=a(this),e=a.effects.setMode(d,b.mode||"toggle");d.animate({opacity:e},{queue:!1,duration:b.duration,easing:b.easing,complete:c})}}(jQuery),function(a,b){a.effects.effect.fold=function(b,c){var o,p,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h="hide"===f,i=b.size||15,j=/([0-9]+)%/.exec(i),k=!!b.horizFirst,l=g!==k,m=l?["width","height"]:["height","width"],n=b.duration/2,q={},r={};a.effects.save(d,e),d.show(),o=a.effects.createWrapper(d).css({overflow:"hidden"}),p=l?[o.width(),o.height()]:[o.height(),o.width()],j&&(i=parseInt(j[1],10)/100*p[h?0:1]),g&&o.css(k?{height:0,width:i}:{height:i,width:0}),q[m[0]]=g?p[0]:i,r[m[1]]=g?p[1]:0,o.animate(q,n,b.easing).animate(r,n,b.easing,function(){h&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()})}}(jQuery),function(a,b){a.effects.effect.highlight=function(b,c){var d=a(this),e=["backgroundImage","backgroundColor","opacity"],f=a.effects.setMode(d,b.mode||"show"),g={backgroundColor:d.css("backgroundColor")};"hide"===f&&(g.opacity=0),a.effects.save(d,e),d.show().css({backgroundImage:"none",backgroundColor:b.color||"#ffff99"}).animate(g,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),c()}})}}(jQuery),function(a,b){a.effects.effect.pulsate=function(b,c){var n,d=a(this),e=a.effects.setMode(d,b.mode||"show"),f="show"===e,g="hide"===e,h=f||"hide"===e,i=2*(b.times||5)+(h?1:0),j=b.duration/i,k=0,l=d.queue(),m=l.length;for(!f&&d.is(":visible")||(d.css("opacity",0).show(),k=1),n=1;n<i;n++)d.animate({opacity:k},j,b.easing),k=1-k;d.animate({opacity:k},j,b.easing),d.queue(function(){g&&d.hide(),c()}),m>1&&l.splice.apply(l,[1,0].concat(l.splice(m,i+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.puff=function(b,c){var d=a(this),e=a.effects.setMode(d,b.mode||"hide"),f="hide"===e,g=parseInt(b.percent,10)||150,h=g/100,i={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()};a.extend(b,{effect:"scale",queue:!1,fade:!0,mode:e,complete:c,percent:f?g:100,from:f?i:{height:i.height*h,width:i.width*h,outerHeight:i.outerHeight*h,outerWidth:i.outerWidth*h}}),d.effect(b)},a.effects.effect.scale=function(b,c){var d=a(this),e=a.extend(!0,{},b),f=a.effects.setMode(d,b.mode||"effect"),g=parseInt(b.percent,10)||(0===parseInt(b.percent,10)?0:"hide"===f?0:100),h=b.direction||"both",i=b.origin,j={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()},k={y:"horizontal"!==h?g/100:1,x:"vertical"!==h?g/100:1};e.effect="size",e.queue=!1,e.complete=c,"effect"!==f&&(e.origin=i||["middle","center"],e.restore=!0),e.from=b.from||("show"===f?{height:0,width:0,outerHeight:0,outerWidth:0}:j),e.to={height:j.height*k.y,width:j.width*k.x,outerHeight:j.outerHeight*k.y,outerWidth:j.outerWidth*k.x},e.fade&&("show"===f&&(e.from.opacity=0,e.to.opacity=1),"hide"===f&&(e.from.opacity=1,e.to.opacity=0)),d.effect(e)},a.effects.effect.size=function(b,c){var d,e,f,g=a(this),h=["position","top","bottom","left","right","width","height","overflow","opacity"],i=["position","top","bottom","left","right","overflow","opacity"],j=["width","height","overflow"],k=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],m=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],n=a.effects.setMode(g,b.mode||"effect"),o=b.restore||"effect"!==n,p=b.scale||"both",q=b.origin||["middle","center"],r=g.css("position"),s=o?h:i,t={height:0,width:0,outerHeight:0,outerWidth:0};"show"===n&&g.show(),d={height:g.height(),width:g.width(),outerHeight:g.outerHeight(),outerWidth:g.outerWidth()},"toggle"===b.mode&&"show"===n?(g.from=b.to||t,g.to=b.from||d):(g.from=b.from||("show"===n?t:d),g.to=b.to||("hide"===n?t:d)),f={from:{y:g.from.height/d.height,x:g.from.width/d.width},to:{y:g.to.height/d.height,x:g.to.width/d.width}},"box"!==p&&"both"!==p||(f.from.y!==f.to.y&&(s=s.concat(l),g.from=a.effects.setTransition(g,l,f.from.y,g.from),g.to=a.effects.setTransition(g,l,f.to.y,g.to)),f.from.x!==f.to.x&&(s=s.concat(m),g.from=a.effects.setTransition(g,m,f.from.x,g.from),g.to=a.effects.setTransition(g,m,f.to.x,g.to))),"content"!==p&&"both"!==p||f.from.y!==f.to.y&&(s=s.concat(k).concat(j),g.from=a.effects.setTransition(g,k,f.from.y,g.from),g.to=a.effects.setTransition(g,k,f.to.y,g.to)),a.effects.save(g,s),g.show(),a.effects.createWrapper(g),g.css("overflow","hidden").css(g.from),q&&(e=a.effects.getBaseline(q,d),g.from.top=(d.outerHeight-g.outerHeight())*e.y,g.from.left=(d.outerWidth-g.outerWidth())*e.x,g.to.top=(d.outerHeight-g.to.outerHeight)*e.y,g.to.left=(d.outerWidth-g.to.outerWidth)*e.x),g.css(g.from),"content"!==p&&"both"!==p||(l=l.concat(["marginTop","marginBottom"]).concat(k),m=m.concat(["marginLeft","marginRight"]),j=h.concat(l).concat(m),g.find("*[width]").each(function(){var c=a(this),d={height:c.height(),width:c.width(),outerHeight:c.outerHeight(),outerWidth:c.outerWidth()};o&&a.effects.save(c,j),c.from={height:d.height*f.from.y,width:d.width*f.from.x,outerHeight:d.outerHeight*f.from.y,outerWidth:d.outerWidth*f.from.x},c.to={height:d.height*f.to.y,width:d.width*f.to.x,outerHeight:d.height*f.to.y,outerWidth:d.width*f.to.x},f.from.y!==f.to.y&&(c.from=a.effects.setTransition(c,l,f.from.y,c.from),c.to=a.effects.setTransition(c,l,f.to.y,c.to)),f.from.x!==f.to.x&&(c.from=a.effects.setTransition(c,m,f.from.x,c.from),c.to=a.effects.setTransition(c,m,f.to.x,c.to)),c.css(c.from),c.animate(c.to,b.duration,b.easing,function(){o&&a.effects.restore(c,j)})})),g.animate(g.to,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){0===g.to.opacity&&g.css("opacity",g.from.opacity),"hide"===n&&g.hide(),a.effects.restore(g,s),o||("static"===r?g.css({position:"relative",top:g.to.top,left
vendor: 6,557 bytes, line 573
573:g.to.left}):a.each(["top","left"],function(a,b){g.css(b,function(b,c){var d=parseInt(c,10),e=a?g.to.left:g.to.top;return"auto"===c?e+"px":d+e+"px"})})),a.effects.removeWrapper(g),c()}})}}(jQuery),function(a,b){a.effects.effect.shake=function(b,c){var q,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"effect"),g=b.direction||"left",h=b.distance||20,i=b.times||3,j=2*i+1,k=Math.round(b.duration/j),l="up"===g||"down"===g?"top":"left",m="up"===g||"left"===g,n={},o={},p={},r=d.queue(),s=r.length;for(a.effects.save(d,e),d.show(),a.effects.createWrapper(d),n[l]=(m?"-=":"+=")+h,o[l]=(m?"+=":"-=")+2*h,p[l]=(m?"-=":"+=")+2*h,d.animate(n,k,b.easing),q=1;q<i;q++)d.animate(o,k,b.easing).animate(p,k,b.easing);d.animate(o,k,b.easing).animate(n,k/2,b.easing).queue(function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}),s>1&&r.splice.apply(r,[1,0].concat(r.splice(s,j+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.slide=function(b,c){var k,d=a(this),e=["position","top","bottom","left","right","width","height"],f=a.effects.setMode(d,b.mode||"show"),g="show"===f,h=b.direction||"left",i="up"===h||"down"===h?"top":"left",j="up"===h||"left"===h,l={};a.effects.save(d,e),d.show(),k=b.distance||d["top"===i?"outerHeight":"outerWidth"](!0),a.effects.createWrapper(d).css({overflow:"hidden"}),g&&d.css(i,j?isNaN(k)?"-"+k:-k:k),l[i]=(g?j?"+=":"-=":j?"-=":"+=")+k,d.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.transfer=function(b,c){var d=a(this),e=a(b.to),f="fixed"===e.css("position"),g=a("body"),h=f?g.scrollTop():0,i=f?g.scrollLeft():0,j=e.offset(),k={top:j.top-h,left:j.left-i,height:e.innerHeight(),width:e.innerWidth()},l=d.offset(),m=a("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(b.className).css({top:l.top-h,left:l.left-i,height:d.innerHeight(),width:d.innerWidth(),position:f?"fixed":"absolute"}).animate(k,b.duration,b.easing,function(){m.remove(),c()})}}(jQuery),function(a,b){a.widget("ui.menu",{version:"1.10.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,a.proxy(function(a){this.options.disabled&&a.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(a){a.preventDefault()},"click .ui-state-disabled > a":function(a){a.preventDefault()},"click .ui-menu-item:has(a)":function(b){var c=a(b.target).closest(".ui-menu-item");!this.mouseHandled&&c.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(b),c.has(".ui-menu").length?this.expand(b):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(b){var c=a(b.currentTarget);c.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(b,c)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,b){var c=this.active||this.element.children(".ui-menu-item").eq(0);b||this.focus(a,c)},blur:function(b){this._delay(function(){a.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(b)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(b){a(b.target).closest(".ui-menu").length||this.collapseAll(b),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var b=a(this);b.data("ui-menu-submenu-carat")&&b.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(b){function i(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var c,d,e,f,g,h=!0;switch(b.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(b);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(b);break;case a.ui.keyCode.HOME:this._move("first","first",b);break;case a.ui.keyCode.END:this._move("last","last",b);break;case a.ui.keyCode.UP:this.previous(b);break;case a.ui.keyCode.DOWN:this.next(b);break;case a.ui.keyCode.LEFT:this.collapse(b);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(b);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(b);break;case a.ui.keyCode.ESCAPE:this.collapse(b);break;default:h=!1,d=this.previousFilter||"",e=String.fromCharCode(b.keyCode),f=!1,clearTimeout(this.filterTimer),e===d?f=!0:e=d+e,g=new RegExp("^"+i(e),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())}),c=f&&c.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):c,c.length||(e=String.fromCharCode(b.keyCode),g=new RegExp("^"+i(e),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())})),c.length?(this.focus(b,c),c.length>1?(this.previousFilter=e,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}h&&b.preventDefault()},_activate:function(a){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(a):this.select(a))},refresh:function(){var b,c=this.options.icons.submenu,d=this.element.find(this.options.menus);d.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}
vendor: 9,482 bytes, line 573
573).each(function(){var b=a(this),d=b.prev("a"),e=a("<span>").addClass("ui-menu-icon ui-icon "+c).data("ui-menu-submenu-carat",!0);d.attr("aria-haspopup","true").prepend(e),b.attr("aria-labelledby",d.attr("id"))}),b=d.add(this.element),b.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),b.children(":not(.ui-menu-item)").each(function(){var b=a(this);/[^\-\u2014\u2013\s]/.test(b.text())||b.addClass("ui-widget-content ui-menu-divider")}),b.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(a,b){"icons"===a&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(b.submenu),this._super(a,b)},focus:function(a,b){var c,d;this.blur(a,a&&"focus"===a.type),this._scrollIntoView(b),this.active=b.first(),d=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",d.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),a&&"keydown"===a.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),c=b.children(".ui-menu"),c.length&&/^mouse/.test(a.type)&&this._startOpening(c),this.activeMenu=b.parent(),this._trigger("focus",a,{item:b})},_scrollIntoView:function(b){var c,d,e,f,g,h;this._hasScroll()&&(c=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,d=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,e=b.offset().top-this.activeMenu.offset().top-c-d,f=this.activeMenu.scrollTop(),g=this.activeMenu.height(),h=b.height(),e<0?this.activeMenu.scrollTop(f+e):e+h>g&&this.activeMenu.scrollTop(f+e-g+h))},blur:function(a,b){b||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",a,{item:this.active}))},_startOpening:function(a){clearTimeout(this.timer),"true"===a.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(a)},this.delay))},_open:function(b){var c=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(b.parents(".ui-menu")).hide().attr("aria-hidden","true"),b.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(c)},collapseAll:function(b,c){clearTimeout(this.timer),this.timer=this._delay(function(){var d=c?this.element:a(b&&b.target).closest(this.element.find(".ui-menu"));d.length||(d=this.element),this._close(d),this.blur(b),this.activeMenu=d},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element),a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(a){var b=this.active&&this.active.parent().closest(".ui-menu-item",this.element);b&&b.length&&(this._close(),this.focus(a,b))},expand:function(a){var b=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();b&&b.length&&(this._open(b.parent()),this._delay(function(){this.focus(a,b)}))},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(a,b,c){var d;this.active&&(d="first"===a||"last"===a?this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[a+"All"](".ui-menu-item").eq(0)),d&&d.length&&this.active||(d=this.activeMenu.children(".ui-menu-item")[b]()),this.focus(c,d)},nextPage:function(b){var c,d,e;return this.active?void(this.isLastItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-d-e<0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(b)},previousPage:function(b){var c,d,e;return this.active?void(this.isFirstItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-d+e>0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item").first()))):void this.next(b)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(b){this.active=this.active||a(b.target).closest(".ui-menu-item");var c={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(b,!0),this._trigger("select",b,c)}})}(jQuery),function(a,b){function m(a,b,c){return[parseFloat(a[0])*(k.test(a[0])?b/100:1),parseFloat(a[1])*(k.test(a[1])?c/100:1)]}function n(b,c){return parseInt(a.css(b,c),10)||0}function o(b){var c=b[0];return 9===c.nodeType?{width:b.width(),height:b.height(),offset:{top:0,left:0}}:a.isWindow(c)?{width:b.width(),height:b.height(),offset:{top:b.scrollTop(),left:b.scrollLeft()}}:c.preventDefault?{width:0,height:0,offset:{top:c.pageY,left:c.pageX}}:{width:b.outerWidth(),height:b.outerHeight(),offset:b.offset()}}a.ui=a.ui||{};var c,d=Math.max,e=Math.abs,f=Math.round,g=/left|center|right/,h=/top|center|bottom/,i=/[\+\-]\d+(\.[\d]+)?%?/,j=/^\w+/,k=/%$/,l=a.fn.position;a.position={scrollbarWidth:function(){if(c!==b)return c;var d,e,f=a("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),g=f.children()[0];return a("body").append(f),d=g.offsetWidth,f.css("overflow","scroll"),e=g.offsetWidth,d===e&&(e=f[0].clientWidth),f.remove(),c=d-e},getScrollInfo:function(b){var c=b.isWindow?"":b.element.css("overflow-x"),d=b.isWindow?"":b.element.css("overflow-y"),e="scroll"===c||"auto"===c&&b.width<b.element[0].scrollWidth,f="scroll"===d||"auto"===d&&b.height<b.element[0].scrollHeight;return{width:f?a.position.scrollbarWidth():0,height:e?a.position.scrollbarWidth():0}},getWithinInfo:function(b){var c=a(b||window),d=a.isWindow(c[0]);return{element:c,isWindow:d,offset:c.offset()||{left:0,top:0},scrollLeft:c.scrollLeft(),scrollTop:c.scrollTop(),width:d?c.width():c.outerWidth(),height:d?c.height():c.outerHeight()}}},a.fn.position=function(b){if(!b||!b.of)return l.apply(this,arguments);b=a.extend({},b);var c,k,p,q,r,s,t=a(b.of),u=a.position.getWithinInfo(b.within),v=a.position.getScrollInfo(u),w=(b.collision||"flip").split(" "),x={};return s=o(t),t[0].preventDefault&&(b.at="left top"),k=s.width,p=s.height,q=s.offset,r=a.extend({},q),a.each(["my","at"],function(){var c,d,a=(b[this]||"").split(" ");1===a.length&&(a=g.test(a[0])?a.concat(["center"]):h.test(a[0])?["center"].concat(a):["center","center"]),a[0]=g.test(a[0])?a[0]:"center",a[1]=h.test(a[1])?a[1]:"center",c=i.exec(a[0]),d=i.exec(a[1]),x[this]=[c?c[0]:0,d?d[0]:0],b[this]=[j.exec(a[0])[0],j.exec(a[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===b.at[0]?r.left+=k:"center"===b.at[0]&&(r.left+=k/2),"bottom"===b.at[1]?r.top+=p:"center"===b.at[1]&&(r.top+=p/2),c=m(x.at,k,p),r.left+=c[0],r.top+=c[1],this.each(function(){var g,h,i=a(this),j=i.outerWidth(),l=i.outerHeight(),o=n(this,"marginLeft"),s=n(this,"marginTop"),y=j+o+n(this,"marginRight")+v.width,z=l+s+n(this,"marginBottom")+v.height,A=a.extend({},r),B=m(x.my,i.outerWidth(),i.outerHeight());"right"===b.my[0]?A.left-=j:"center"===b.my[0]&&(A.left-=j/2),"bottom"===b.my[1]?A.top-=l:"center"===b.my[1]&&(A.top-=l/2),A.left+=B[0],A.top+=B[1],a.support.offsetFractions||(A.left=f(A.left),A.top=f(A.top)),g={marginLeft:o,marginTop:s},a.each(["left","top"],function(d,e){a.ui.position[w[d]]&&a.ui.position[w[d]][e](A,{targetWidth:k,targetHeight:p,elemWidth:j,elemHeight:l,collisionPosition:g,collisionWidth:y,collisionHeight:z,offset:[c[0]+B[0],c[1]+B[1]],my:b.my,at:b.at,within:u,elem:i})}),b.using&&(h=function(a){var c=q.left-A.left,f=c+k-j,g=q.top-A.top,h=g+p-l,m={target:{element:t,left:q.left,top:q.top,width:k,height:p},element:{element:i,left:A.left,top:A.top,width:j,height:l},horizontal:f<0?"left":c>0?"right":"center",vertical:h<0?"top":g>0?"bottom":"middle"};k<j&&e(c+f)<k&&(m.horizontal="center"),p<l&&e(g+h)<p&&(m.vertical="middle"),d(e(c),e(f))>d(e(g),e(h))?m.important="horizontal":m.important="vertical",b.using.call(this,a,m)}),i.offset(a.extend(A,{using:h}))})},a.ui.position={fit:{left:function(a,b){var j,c=b.within,e=c.isWindow?c.scrollLeft:c.offset.left,f=c.width,g=a.left-b.collisionPosition.marginLeft,h=e-g,i=g+b.collisionWidth-f-e;b.collisionWidth>f?h>0&&i<=0?(j=a.left+h+b.collisionWidth-f-e,a.left+=h-j):i>0&&h<=0?a.left=e:h>i?a.left=e+f-b.collisionWidth:a.left=e:h>0?a.left+=h:i>0?a.left-=i:a.left=d(a.left-g,a.left)},top:function(a,b){var j,c=b.within,e=c.isWindow?c.scrollTop:c.offset.top,f=b.within.height,g=a.top-b.collisionPosition.marginTop,h=e-g,i=g+b.collisionHeight-f-e;b.collisionHeight>f?h>0&&i<=0?(j=a.top+h+b.collisionHeight-f-e,a.top+=h-j):i>0&&h<=0?a.top=e:h>i?a.top=e+f-b.collisionHeight:a.top=e:h>0?a.top+=h:i>0?a.top-=i:a.top=d(a.top-g,a.top)}},flip:{left:function(a,b){var n,o,c=b.within,d=c.offset.left+c.scrollLeft,f=c.width,g=c.isWindow?c.scrollLeft:c.offset.left,h=a.left-b.collisionPosition.marginLeft,i=h-g,j=h+b.collisionWidth-f-g,k="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,l="left"
vendor: 6,371 bytes, line 573
573===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,m=-2*b.offset[0];i<0?(n=a.left+k+l+m+b.collisionWidth-f-d,(n<0||n<e(i))&&(a.left+=k+l+m)):j>0&&(o=a.left-b.collisionPosition.marginLeft+k+l+m-g,(o>0||e(o)<j)&&(a.left+=k+l+m))},top:function(a,b){var o,p,c=b.within,d=c.offset.top+c.scrollTop,f=c.height,g=c.isWindow?c.scrollTop:c.offset.top,h=a.top-b.collisionPosition.marginTop,i=h-g,j=h+b.collisionHeight-f-g,k="top"===b.my[1],l=k?-b.elemHeight:"bottom"===b.my[1]?b.elemHeight:0,m="top"===b.at[1]?b.targetHeight:"bottom"===b.at[1]?-b.targetHeight:0,n=-2*b.offset[1];i<0?(p=a.top+l+m+n+b.collisionHeight-f-d,a.top+l+m+n>i&&(p<0||p<e(i))&&(a.top+=l+m+n)):j>0&&(o=a.top-b.collisionPosition.marginTop+l+m+n-g,a.top+l+m+n>j&&(o>0||e(o)<j)&&(a.top+=l+m+n))}},flipfit:{left:function(){a.ui.position.flip.left.apply(this,arguments),a.ui.position.fit.left.apply(this,arguments)},top:function(){a.ui.position.flip.top.apply(this,arguments),a.ui.position.fit.top.apply(this,arguments)}}},function(){var b,c,d,e,f,g=document.getElementsByTagName("body")[0],h=document.createElement("div");b=document.createElement(g?"div":"body"),d={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},g&&a.extend(d,{position:"absolute",left:"-1000px",top:"-1000px"});for(f in d)b.style[f]=d[f];b.appendChild(h),c=g||document.documentElement,c.insertBefore(b,c.firstChild),h.style.cssText="position: absolute; left: 10.7432222px;",e=a(h).offset().left,a.support.offsetFractions=e>10&&e<11,b.innerHTML="",c.removeChild(b)}()}(jQuery),function(a,b){a.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(a){return a===b?this.options.value:(this.options.value=this._constrainedValue(a),void this._refreshValue())},_constrainedValue:function(a){return a===b&&(a=this.options.value),this.indeterminate=a===!1,"number"!=typeof a&&(a=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,a))},_setOptions:function(a){var b=a.value;delete a.value,this._super(a),this.options.value=this._constrainedValue(b),this._refreshValue()},_setOption:function(a,b){"max"===a&&(b=Math.max(this.min,b)),this._super(a,b)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var b=this.options.value,c=this._percentage();this.valueDiv.toggle(this.indeterminate||b>this.min).toggleClass("ui-corner-right",b===this.options.max).width(c.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=a("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":b}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==b&&(this.oldValue=b,this._trigger("change")),b===this.options.max&&this._trigger("complete")}})}(jQuery),function(a,b){var c=5;a.widget("ui.slider",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var b,c,d=this.options,e=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",g=[];for(c=d.values&&d.values.length||1,e.length>c&&(e.slice(c).remove(),e=e.slice(0,c)),b=e.length;b<c;b++)g.push(f);this.handles=e.add(a(g.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(b){a(this).data("ui-slider-handle-index",b)})},_createRange:function(){var b=this.options,c="";b.range?(b.range===!0&&(b.values?b.values.length&&2!==b.values.length?b.values=[b.values[0],b.values[0]]:a.isArray(b.values)&&(b.values=b.values.slice(0)):b.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=a("<div></div>").appendTo(this.element),c="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(c+("min"===b.range||"max"===b.range?" ui-slider-range-"+b.range:""))):this.range=a([])},_setupEvents:function(){var a=this.handles.add(this.range).filter("a");this._off(a),this._on(a,this._handleEvents),this._hoverable(a),this._focusable(a)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(b){var c,d,e,f,g,h,i,j,k=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),c={x:b.pageX,y:b.pageY},d=this._normValueFromMouse(c),e=this._valueMax()-this._valueMin()+1,this.handles.each(function(b){var c=Math.abs(d-k.values(b));(e>c||e===c&&(b===k._lastChangedValue||k.values(b)===l.min))&&(e=c,f=a(this),g=b)}),h=this._start(b,g),h!==!1&&(this._mouseSliding=!0,this._handleIndex=g,f.addClass("ui-state-active").focus(),i=f.offset(),j=!a(b.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=j?{left:0,top:0}
vendor: 4,200 bytes, line 573
573:{left:b.pageX-i.left-f.width()/2,top:b.pageY-i.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(b,g,d),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(a){var b={x:a.pageX,y:a.pageY},c=this._normValueFromMouse(b);return this._slide(a,this._handleIndex,c),!1},_mouseStop:function(a){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(a,this._handleIndex),this._change(a,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(a){var b,c,d,e,f;return"horizontal"===this.orientation?(b=this.elementSize.width,c=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(b=this.elementSize.height,c=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),d=c/b,d>1&&(d=1),d<0&&(d=0),"vertical"===this.orientation&&(d=1-d),e=this._valueMax()-this._valueMin(),f=this._valueMin()+d*e,this._trimAlignValue(f)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("start",a,c)},_slide:function(a,b,c){var d,e,f;this.options.values&&this.options.values.length?(d=this.values(b?0:1),2===this.options.values.length&&this.options.range===!0&&(0===b&&c>d||1===b&&c<d)&&(c=d),c!==this.values(b)&&(e=this.values(),e[b]=c,f=this._trigger("slide",a,{handle:this.handles[b],value:c,values:e}),d=this.values(b?0:1),f!==!1&&this.values(b,c,!0))):c!==this.value()&&(f=this._trigger("slide",a,{handle:this.handles[b],value:c}),f!==!1&&this.value(c))},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._lastChangedValue=b,this._trigger("change",a,c)}},value:function(a){return arguments.length?(this.options.value=this._trimAlignValue(a),this._refreshValue(),void this._change(null,0)):this._value()},values:function(b,c){var d,e,f;if(arguments.length>1)return this.options.values[b]=this._trimAlignValue(c),this._refreshValue(),void this._change(null,b);if(!arguments.length)return this._values();if(!a.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();for(d=this.options.values,e=arguments[0],f=0;f<d.length;f+=1)d[f]=this._trimAlignValue(e[f]),this._change(null,f);this._refreshValue()},_setOption:function(b,c){var d,e=0;switch("range"===b&&this.options.range===!0&&("min"===c?(this.options.value=this._values(0),this.options.values=null):"max"===c&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),a.isArray(this.options.values)&&(e=this.options.values.length),a.Widget.prototype._setOption.apply(this,arguments),b){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),d=0;d<e;d+=1)this._change(null,d);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var b,c,d;if(arguments.length)return b=this.options.values[a],b=this._trimAlignValue(b);if(this.options.values&&this.options.values.length){for(c=this.options.values.slice(),d=0;d<c.length;d+=1)c[d]=this._trimAlignValue(c[d]);return c}return[]}
vendor: 9,751 bytes, line 573
573,_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b,d=a-c;return 2*Math.abs(c)>=b&&(d+=c>0?b:-b),parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b,c,d,e,f,g=this.options.range,h=this.options,i=this,j=!this._animateOff&&h.animate,k={};this.options.values&&this.options.values.length?this.handles.each(function(d){c=(i.values(d)-i._valueMin())/(i._valueMax()-i._valueMin())*100,k["horizontal"===i.orientation?"left":"bottom"]=c+"%",a(this).stop(1,1)[j?"animate":"css"](k,h.animate),i.options.range===!0&&("horizontal"===i.orientation?(0===d&&i.range.stop(1,1)[j?"animate":"css"]({left:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({width:c-b+"%"},{queue:!1,duration:h.animate})):(0===d&&i.range.stop(1,1)[j?"animate":"css"]({bottom:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({height:c-b+"%"},{queue:!1,duration:h.animate}))),b=c}):(d=this.value(),e=this._valueMin(),f=this._valueMax(),c=f!==e?(d-e)/(f-e)*100:0,k["horizontal"===this.orientation?"left":"bottom"]=c+"%",this.handle.stop(1,1)[j?"animate":"css"](k,h.animate),"min"===g&&"horizontal"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({width:c+"%"},h.animate),"max"===g&&"horizontal"===this.orientation&&this.range[j?"animate":"css"]({width:100-c+"%"},{queue:!1,duration:h.animate}),"min"===g&&"vertical"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({height:c+"%"},h.animate),"max"===g&&"vertical"===this.orientation&&this.range[j?"animate":"css"]({height:100-c+"%"},{queue:!1,duration:h.animate}))},_handleEvents:{keydown:function(b){var d,e,f,g,h=a(b.target).data("ui-slider-handle-index");switch(b.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(b.preventDefault(),!this._keySliding&&(this._keySliding=!0,a(b.target).addClass("ui-state-active"),d=this._start(b,h),d===!1))return}switch(g=this.options.step,e=f=this.options.values&&this.options.values.length?this.values(h):this.value(),b.keyCode){case a.ui.keyCode.HOME:f=this._valueMin();break;case a.ui.keyCode.END:f=this._valueMax();break;case a.ui.keyCode.PAGE_UP:f=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.PAGE_DOWN:f=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(e===this._valueMax())return;f=this._trimAlignValue(e+g);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(e===this._valueMin())return;f=this._trimAlignValue(e-g)}this._slide(b,h,f)},click:function(a){a.preventDefault()},keyup:function(b){var c=a(b.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(b,c),this._change(b,c),a(b.target).removeClass("ui-state-active"))}}})}(jQuery),function(a){function b(a){return function(){var b=this.element.val();a.apply(this,arguments),this._refresh(),b!==this.element.val()&&this._trigger("change")}}a.widget("ui.spinner",{version:"1.10.3",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var b={},c=this.element;return a.each(["min","max","step"],function(a,d){var e=c.attr(d);void 0!==e&&e.length&&(b[d]=e)}),b},_events:{keydown:function(a){this._start(a)&&this._keydown(a)&&a.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(a){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",a)))},mousewheel:function(a,b){if(b){if(!this.spinning&&!this._start(a))return!1;this._spin((b>0?1:-1)*this.options.step,a),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(a)},100),a.preventDefault()}},"mousedown .ui-spinner-button":function(b){function d(){var a=this.element[0]===this.document[0].activeElement;a||(this.element.focus(),this.previous=c,this._delay(function(){this.previous=c}))}var c;c=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),b.preventDefault(),d.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,d.call(this)}),this._start(b)!==!1&&this._repeat(null,a(b.currentTarget).hasClass("ui-spinner-up")?1:-1,b)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(b){if(a(b.currentTarget).hasClass("ui-state-active"))return this._start(b)!==!1&&void this._repeat(null,a(b.currentTarget).hasClass("ui-spinner-up")?1:-1,b)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var a=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=a.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*a.height())&&a.height()>0&&a.height(a.height()),this.options.disabled&&this.disable()},_keydown:function(b){var c=this.options,d=a.ui.keyCode;switch(b.keyCode){case d.UP:return this._repeat(null,1,b),!0;case d.DOWN:return this._repeat(null,-1,b),!0;case d.PAGE_UP:return this._repeat(null,c.page,b),!0;case d.PAGE_DOWN:return this._repeat(null,-c.page,b),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>▲</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>▼</span></a>"},_start:function(a){return!(!this.spinning&&this._trigger("start",a)===!1)&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(a,b,c){a=a||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,b,c)},a),this._spin(b*this.options.step,c)},_spin:function(a,b){var c=this.value()||0;this.counter||(this.counter=1),c=this._adjustValue(c+a*this._increment(this.counter)),this.spinning&&this._trigger("spin",b,{value:c})===!1||(this._value(c),this.counter++)},_increment:function(b){var c=this.options.incremental;return c?a.isFunction(c)?c(b):Math.floor(b*b*b/5e4-b*b/500+17*b/200+1):1},_precision:function(){var a=this._precisionOf(this.options.step);return null!==this.options.min&&(a=Math.max(a,this._precisionOf(this.options.min))),a},_precisionOf:function(a){var b=a.toString(),c=b.indexOf(".");return c===-1?0:b.length-c-1},_adjustValue:function(a){var b,c,d=this.options;return b=null!==d.min?d.min:0,c=a-b,c=Math.round(c/d.step)*d.step,a=b+c,a=parseFloat(a.toFixed(this._precision())),null!==d.max&&a>d.max?d.max:null!==d.min&&a<d.min?d.min:a},_stop:function(a){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",a))},_setOption:function(a,b){if("culture"===a||"numberFormat"===a){var c=this._parse(this.element.val());return this.options[a]=b,void this.element.val(this._format(c))}"max"!==a&&"min"!==a&&"step"!==a||"string"==typeof b&&(b=this._parse(b)),"icons"===a&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(b.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(b.down)),this._super(a,b),"disabled"===a&&(b?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:b(function(a){this._super(a),this._value(this.element.val())}),_parse:function(a){return"string"==typeof a&&""!==a&&(a=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(a,10,this.options.culture):+a),""===a||isNaN(a)?null:a},_format:function(a){return""===a?"":window.Globalize&&this.options.numberFormat?Globalize.format(a,this.options.numberFormat,this.options.culture):a},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(a,b){var c;""!==a&&(c=this._parse(a),null!==c&&(b||(c=this._adjustValue(c)),a=this._format(c))),this.element.val(a),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:b(function(a){this._stepUp(a)}),_stepUp:function(a){this._start()&&(this._spin((a||1)*this.options.step),this._stop())},stepDown:b(function(a){this._stepDown(a)}),_stepDown:function(a){this._start()&&(this._spin((a||1)*-this.options.step),this._stop())},pageUp:b(function(a){this._stepUp((a||1)*this.options.page)}),pageDown:b(function(a){this._stepDown((a||1)*this.options.page)}),value:function(a){return arguments.length?void b(this._value).call(this,a):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}
vendor: 10,571 bytes, line 573
573)}(jQuery),function(a,b){function e(){return++c}function f(a){return a.hash.length>1&&decodeURIComponent(a.href.replace(d,""))===decodeURIComponent(location.href.replace(d,""))}var c=0,d=/#.*$/;a.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var b=this,c=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",c.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(b){a(this).is(".ui-state-disabled")&&b.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){a(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),c.active=this._initialActive(),a.isArray(c.disabled)&&(c.disabled=a.unique(c.disabled.concat(a.map(this.tabs.filter(".ui-state-disabled"),function(a){return b.tabs.index(a)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(c.active):this.active=a(),this._refresh(),this.active.length&&this.load(c.active)},_initialActive:function(){var b=this.options.active,c=this.options.collapsible,d=location.hash.substring(1);return null===b&&(d&&this.tabs.each(function(c,e){if(a(e).attr("aria-controls")===d)return b=c,!1}),null===b&&(b=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==b&&b!==-1||(b=!!this.tabs.length&&0)),b!==!1&&(b=this.tabs.index(this.tabs.eq(b)),b===-1&&(b=!c&&0)),!c&&b===!1&&this.anchors.length&&(b=0),b},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):a()}},_tabKeydown:function(b){var c=a(this.document[0].activeElement).closest("li"),d=this.tabs.index(c),e=!0;if(!this._handlePageNav(b)){switch(b.keyCode){case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:d++;break;case a.ui.keyCode.UP:case a.ui.keyCode.LEFT:e=!1,d--;break;case a.ui.keyCode.END:d=this.anchors.length-1;break;case a.ui.keyCode.HOME:d=0;break;case a.ui.keyCode.SPACE:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d);case a.ui.keyCode.ENTER:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d!==this.options.active&&d);default:return}b.preventDefault(),clearTimeout(this.activating),d=this._focusNextTab(d,e),b.ctrlKey||(c.attr("aria-selected","false"),this.tabs.eq(d).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",d)},this.delay))}},_panelKeydown:function(b){this._handlePageNav(b)||b.ctrlKey&&b.keyCode===a.ui.keyCode.UP&&(b.preventDefault(),this.active.focus())},_handlePageNav:function(b){return b.altKey&&b.keyCode===a.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):b.altKey&&b.keyCode===a.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(b,c){function e(){return b>d&&(b=0),b<0&&(b=d),b}for(var d=this.tabs.length-1;a.inArray(e(),this.options.disabled)!==-1;)b=c?b+1:b-1;return b},_focusNextTab:function(a,b){return a=this._findNextTab(a,b),this.tabs.eq(a).focus(),a},_setOption:function(a,b){return"active"===a?void this._activate(b):"disabled"===a?void this._setupDisabled(b):(this._super(a,b),"collapsible"===a&&(this.element.toggleClass("ui-tabs-collapsible",b),b||this.options.active!==!1||this._activate(0)),"event"===a&&this._setupEvents(b),void("heightStyle"===a&&this._setupHeightStyle(b)))},_tabId:function(a){return a.attr("aria-controls")||"ui-tabs-"+e()},_sanitizeSelector:function(a){return a?a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var b=this.options,c=this.tablist.children(":has(a[href])");b.disabled=a.map(c.filter(".ui-state-disabled"),function(a){return c.index(a)}),this._processTabs(),b.active!==!1&&this.anchors.length?this.active.length&&!a.contains(this.tablist[0],this.active[0])?this.tabs.length===b.disabled.length?(b.active=!1,this.active=a()):this._activate(this._findNextTab(Math.max(0,b.active-1),!1)):b.active=this.tabs.index(this.active):(b.active=!1,this.active=a()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var b=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return a("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=a(),this.anchors.each(function(c,d){var e,g,h,i=a(d).uniqueId().attr("id"),j=a(d).closest("li"),k=j.attr("aria-controls");f(d)?(e=d.hash,g=b.element.find(b._sanitizeSelector(e))):(h=b._tabId(j),e="#"+h,g=b.element.find(e),g.length||(g=b._createPanel(h),g.insertAfter(b.panels[c-1]||b.tablist)),g.attr("aria-live","polite")),g.length&&(b.panels=b.panels.add(g)),k&&j.data("ui-tabs-aria-controls",k),j.attr({"aria-controls":e.substring(1),"aria-labelledby":i}),g.attr("aria-labelledby",i)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(b){return a("<div>").attr("id",b).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(b){a.isArray(b)&&(b.length?b.length===this.anchors.length&&(b=!0):b=!1);for(var d,c=0;d=this.tabs[c];c++)b===!0||a.inArray(c,b)!==-1?a(d).addClass("ui-state-disabled").attr("aria-disabled","true"):a(d).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=b},_setupEvents:function(b){var c={click:function(a){a.preventDefault()}};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,c),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(b){var c,d=this.element.parent();"fill"===b?(c=d.height(),c-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var b=a(this),d=b.css("position");"absolute"!==d&&"fixed"!==d&&(c-=b.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){c-=a(this).outerHeight(!0)}),this.panels.each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===b&&(c=0,this.panels.each(function(){c=Math.max(c,a(this).height("").height())}).height(c))},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e.closest("li"),g=f[0]===d[0],h=g&&c.collapsible,i=h?a():this._getPanelForTab(f),j=d.length?this._getPanelForTab(d):a(),k={oldTab:d,oldPanel:j,newTab:h?a():f,newPanel:i};b.preventDefault(),f.hasClass("ui-state-disabled")||f.hasClass("ui-tabs-loading")||this.running||g&&!c.collapsible||this._trigger("beforeActivate",b,k)===!1||(c.active=!h&&this.tabs.index(f),this.active=g?a():f,this.xhr&&this.xhr.abort(),j.length||i.length||a.error("jQuery UI Tabs: Mismatching fragment identifier."),i.length&&this.load(this.tabs.index(f),b),this._toggle(b,k))},_toggle:function(b,c){function g(){d.running=!1,d._trigger("activate",b,c)}function h(){c.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),e.length&&d.options.show?d._show(e,d.options.show,g):(e.show(),g())}var d=this,e=c.newPanel,f=c.oldPanel;this.running=!0,f.length&&this.options.hide?this._hide(f,this.options.hide,function(){c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),h()}):(c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),f.hide(),h()),f.attr({"aria-expanded":"false","aria-hidden":"true"}),c.oldTab.attr("aria-selected","false"),e.length&&f.length?c.oldTab.attr("tabIndex",-1):e.length&&this.tabs.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),e.attr({"aria-expanded":"true","aria-hidden":"false"}),c.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(b){var c,d=this._findActive(b);d[0]!==this.active[0]&&(d.length||(d=this.active),c=d.find(".ui-tabs-anchor")[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return b===!1?a():this.tabs.eq(b)},_getIndex:function(a){return"string"==typeof a&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){a.data(this,"ui-tabs-destroy")?a(this).remove():a(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var b=a(this),c=b.data("ui-tabs-aria-controls");c?b.attr("aria-controls",c).removeData("ui-tabs-aria-controls"):b.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(c){var d=this.options.disabled;d!==!1&&(c===b?d=!1:(c=this._getIndex(c),d=a.isArray(d)?a.map(d,function(a){return a!==c?a:null}):a.map(this.tabs,function(a,b){return b!==c?b:null})),this._setupDisabled(d))},disable:function(c){var d=this.options.disabled;if(d!==!0){if(c===b)d=!0;else{if(c=this._getIndex(c),a.inArray(c,d)!==-1)return;
573d=a.isArray(d)?a.merge([c],d).sort():[c]}this._setupDisabled(d)}},load:function(b,c){b=this._getIndex(b);var d=this,e=this.tabs.eq(b),g=e.find(".ui-tabs-anchor"),h=this._getPanelForTab(e),i={tab:e,panel:h};f(g[0])||(this.xhr=a.ajax(this._ajaxSettings(g,c,i)),this.xhr&&"canceled"!==this.xhr.statusText&&(e.addClass("ui-tabs-loading"),h.attr("aria-busy","true"),this.xhr.success(function(a){setTimeout(function(){h.html(a),d._trigger("load",c,i)},1)}).complete(function(a,b){setTimeout(function(){"abort"===b&&d.panels.stop(!1,!0),e.removeClass("ui-tabs-loading"),h.removeAttr("aria-busy"),a===d.xhr&&delete d.xhr},1)})))},_ajaxSettings:function(b,c,d){var e=this;return{url:b.attr("href"),beforeSend:function(b,f){return e._trigger("beforeLoad",c,a.extend({jqXHR:b,ajaxSettings:f},d))}}},_getPanelForTab:function(b){var c=a(b).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+c))}})}(jQuery),function(a){function c(b,c){var d=(b.attr("aria-describedby")||"").split(/\s+/);d.push(c),b.data("ui-tooltip-id",c).attr("aria-describedby",a.trim(d.join(" ")))}function d(b){var c=b.data("ui-tooltip-id"),d=(b.attr("aria-describedby")||"").split(/\s+/),e=a.inArray(c,d);e!==-1&&d.splice(e,1),b.removeData("ui-tooltip-id"),d=a.trim(d.join(" ")),d?b.attr("aria-describedby",d):b.removeAttr("aria-describedby")}var b=0;a.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var b=a(this).attr("title")||"";return a("<a>").text(b).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(b,c){var d=this;return"disabled"===b?(this[c?"_disable":"_enable"](),void(this.options[b]=c)):(this._super(b,c),void("content"===b&&a.each(this.tooltips,function(a,b){d._updateContent(b)})))},_disable:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0)}),this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.is("[title]")&&b.data("ui-tooltip-title",b.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.data("ui-tooltip-title")&&b.attr("title",b.data("ui-tooltip-title"))})},open:function(b){var c=this,d=a(b?b.target:this.element).closest(this.options.items);d.length&&!d.data("ui-tooltip-id")&&(d.attr("title")&&d.data("ui-tooltip-title",d.attr("title")),d.data("ui-tooltip-open",!0),b&&"mouseover"===b.type&&d.parents().each(function(){var d,b=a(this);b.data("ui-tooltip-open")&&(d=a.Event("blur"),d.target=d.currentTarget=this,c.close(d,!0)),b.attr("title")&&(b.uniqueId(),c.parents[this.id]={element:this,title:b.attr("title")},b.attr("title",""))}),this._updateContent(d,b))},_updateContent:function(a,b){var c,d=this.options.content,e=this,f=b?b.type:null;return"string"==typeof d?this._open(b,a,d):(c=d.call(a[0],function(c){a.data("ui-tooltip-open")&&e._delay(function(){b&&(b.type=f),this._open(b,a,c)})}),void(c&&this._open(b,a,c)))},_open:function(b,d,e){function j(a){i.of=a,f.is(":hidden")||f.position(i)}var f,g,h,i=a.extend({},this.options.position);if(e){if(f=this._find(d),f.length)return void f.find(".ui-tooltip-content").html(e);d.is("[title]")&&(b&&"mouseover"===b.type?d.attr("title",""):d.removeAttr("title")),f=this._tooltip(d),c(d,f.attr("id")),f.find(".ui-tooltip-content").html(e),this.options.track&&b&&/^mouse/.test(b.type)?(this._on(this.document,{mousemove:j}),j(b)):f.position(a.extend({of:d},this.options.position)),f.hide(),this._show(f,this.options.show),this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){f.is(":visible")&&(j(i.of),clearInterval(h))},a.fx.interval)),this._trigger("open",b,{tooltip:f}),g={keyup:function(b){if(b.keyCode===a.ui.keyCode.ESCAPE){var c=a.Event(b);c.currentTarget=d[0],this.close(c,!0)}},remove:function(){this._removeTooltip(f)}},b&&"mouseover"!==b.type||(g.mouseleave="close"),b&&"focusin"!==b.type||(g.focusout="close"),this._on(!0,d,g)}},close:function(b){var c=this,e=a(b?b.currentTarget:this.element),f=this._find(e);this.closing||(clearInterval(this.delayedShow),e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title")),d(e),f.stop(!0),this._hide(f,this.options.hide,function(){c._removeTooltip(a(this))}),e.removeData("ui-tooltip-open"),this._off(e,"mouseleave focusout keyup"),e[0]!==this.element[0]&&this._off(e,"remove"),this._off(this.document,"mousemove"),b&&"mouseleave"===b.type&&a.each(this.parents,function(b,d){a(d.element).attr("title",d.title),delete c.parents[b]}),this.closing=!0,this._trigger("close",b,{tooltip:f}),this.closing=!1)},_tooltip:function(c){var d="ui-tooltip-"+b++,e=a("<div>").attr({id:d,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return a("<div>").addClass("ui-tooltip-content").appendTo(e),e.appendTo(this.document[0].body),this.tooltips[d]=c,e},_find:function(b){var c=b.data("ui-tooltip-id");return c?a("#"+c):a()},_removeTooltip:function(a){a.remove(),delete this.tooltips[a.attr("id")]},_destroy:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0),a("#"+c).remove(),d.data("ui-tooltip-title")&&(d.attr("title",d.data("ui-tooltip-title")),d.removeData("ui-tooltip-title"))})}})}(jQuery);(()=>{var n={105:()=>{!function(s){function a(e,t){this.options=t,this.$elementFilestyle=[],this.$element=s(e)}var r=0;a.prototype={clear:function(){this.$element.val(""),this.$elementFilestyle.find(":text").val(""),this.$elementFilestyle.find(".badge").remove()},destroy:function(){this.$element.removeAttr("style").removeData("filestyle"),this.$elementFilestyle.remove()},disabled:function(e){if(!0===e)this.options.disabled||(this.$element.attr("disabled","true"),this.$elementFilestyle.find("label").attr("disabled","true"),this.options.disabled=!0);else{if(!1!==e)return this.options.disabled;this.options.disabled&&(this.$element.removeAttr("disabled"),this.$elementFilestyle.find("label").removeAttr("disabled"),this.options.disabled=!1)}},buttonBefore:function(e){if(!0===e)this.options.buttonBefore||(this.options.buttonBefore=!0,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()));else{if(!1!==e)return this.options.buttonBefore;this.options.buttonBefore&&(this.options.buttonBefore=!1,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()))}},icon:function(e){if(!0===e)this.options.icon||(this.options.icon=!0,this.$elementFilestyle.find("label").prepend(this.htmlIcon()));else{if(!1!==e)return this.options.icon;this.options.icon&&(this.options.icon=!1,this.$elementFilestyle.find(".
573icon-span-filestyle").remove())}},input:function(e){if(!0===e)this.options.input||(this.options.input=!0,this.options.buttonBefore?this.$elementFilestyle.append(this.htmlInput()):this.$elementFilestyle.prepend(this.htmlInput()),this.$elementFilestyle.find(".badge").remove(),this.pushNameFiles(),this.$elementFilestyle.find(".group-span-filestyle").addClass("input-group-btn"));else{if(!1!==e)return this.options.input;this.options.input&&(this.options.input=!1,this.$elementFilestyle.find(":text").remove(),0<(e=this.pushNameFiles()).length&&this.options.badge&&this.$elementFilestyle.find("label").append(' <span class="badge">'+e.length+"</span>"),this.$elementFilestyle.find(".group-span-filestyle").removeClass("input-group-btn"))}},size:function(e){if(void 0===e)return this.options.size;var t=this.$elementFilestyle.find("label"),n=this.$elementFilestyle.find("input");t.removeClass("btn-lg btn-sm"),n.removeClass("input-lg input-sm"),"nr"!=e&&(t.addClass("btn-"+e),n.addClass("input-"+e))},placeholder:function(e){if(void 0===e)return this.options.placeholder;this.options.placeholder=e,this.$elementFilestyle.find("input").attr("placeholder",e)},buttonText:function(e){if(void 0===e)return this.options.buttonText;this.options.buttonText=e,this.$elementFilestyle.find("label .buttonText").html(this.options.buttonText)},buttonName:function(e){if(void 0===e)return this.options.buttonName;this.options.buttonName=e,this.$elementFilestyle.find("label").attr({class:"btn "+this.options.buttonName})},iconName:function(e){if(void 0===e)return this.options.iconName;this.$elementFilestyle.find(".icon-span-filestyle").attr({class:"icon-span-filestyle "+this.options.iconName})},htmlIcon:function(){return this.options.icon?'<span class="icon-span-filestyle '+this.options.iconName+'"></span> ':""},htmlInput:function(){return this.options.input?'<input type="text" class="form-control '+("nr"==this.options.size?"":"input-"+this.options.size)+'" placeholder="'+this.options.placeholder+'" disabled> ':""},pushNameFiles:function(){var e="",t=[];void 0===this.$element[0].files?t[0]={name:this.$element[0]&&this.$element[0].value}:t=this.$element[0].files;for(var n=0;n<t.length;n++)e+=t[n].name.split("\\").pop()+", ";return""!==e?this.$elementFilestyle.find(":text").val(e.replace(/\, $/g,"")):this.$elementFilestyle.find(":text").val(""),t},constructor:function(){var e,t,n=this,i=n.$element.attr("id");""!==i&&i||(n.$element.attr({id:i="filestyle-"+r}),r++),t='<span class="group-span-filestyle '+(n.options.input?"input-group-btn":"")+'"><label for="'+i+'" class="btn '+n.options.buttonName+" "+("nr"==n.options.size?"":"btn-"+n.options.size)+'" '+(n.options.disabled?'disabled="true"':"")+">"+n.htmlIcon()+'<span class="buttonText">'+n.options.buttonText+"</span></label></span>",e=n.options.buttonBefore?t+n.htmlInput():n.htmlInput()+t,n.$elementFilestyle=s('<div class="bootstrap-filestyle input-group">'+e+"</div>"),n.$elementFilestyle.find(".group-span-filestyle").attr("tabindex","0").keypress(function(e){if(13===e.keyCode||32===e.charCode)return n.$elementFilestyle.find("label").click(),!1}),n.$element.css({position:"absolute",clip:"rect(0px 0px 0px 0px)"}).attr("tabindex","-1").after(n.$elementFilestyle),n.options.disabled&&n.$element.attr("disabled","true"),n.$element.change(function(){var e=n.pushNameFiles();0==n.options.input&&n.options.badge?0==n.$elementFilestyle.find(".badge").length?n.$elementFilestyle.find("label").append(' <span class="badge">'+e.length+"</span>"):0==e.length?n.$elementFilestyle.find(".badge").remove():n.$elementFilestyle.find(".badge").html(e.length):n.$elementFilestyle.find(".badge").remove()}
573),-1<window.navigator.userAgent.search(/firefox/i)&&n.$elementFilestyle.find("label").click(function(){return n.$element.click(),!1})}};var e=s.fn.filestyle;s.fn.filestyle=function(i,r){var o="";this.each(function(){var e,t,n;"file"===s(this).attr("type")&&(t=(e=s(this)).data("filestyle"),n=s.extend({},s.fn.filestyle.defaults,i,"object"==typeof i&&i),t||(e.data("filestyle",t=new a(this,n)),t.constructor()),"string"==typeof i&&(o=t[i](r)))});return o},s.fn.filestyle.defaults={buttonText:"Choose file",iconName:"glyphicon glyphicon-folder-open",buttonName:"btn-default",size:"nr",input:!0,badge:!0,icon:!0,buttonBefore:!1,disabled:!1,placeholder:""},s.fn.filestyle.noConflict=function(){return s.fn.filestyle=e,this},s(function(){s(".filestyle").each(function(){var e=s(this),t={input:"false"!==e.attr("data-input"),icon:"false"!==e.attr("data-icon"),buttonBefore:"true"===e.attr("data-buttonBefore"),disabled:"true"===e.attr("data-disabled"),size:e.attr("data-size"),buttonText:e.attr("data-buttonText"),buttonName:e.attr("data-buttonName"),iconName:e.attr("data-iconName"),badge:"false"!==e.attr("data-badge"),placeholder:e.attr("data-placeholder")};e.filestyle(t)})})}(window.jQuery)},285:()=>{var g;(g=jQuery).fn.scrollbox=function(m){return(m=g.extend({linear:!1,startDelay:2,delay:3,step:5,speed:32,switchItems:1,direction:"vertical",distance:"auto",autoPlay:!0,onMouseOverPause:!0,paused:!1,queue:null,listElement:"ul",listItemElement:"li",infiniteLoop:!0,switchAmount:0,afterForward:null,afterBackward:null,triggerStackable:!1},m)).scrollOffset="vertical"===m.direction?"scrollTop":"scrollLeft",m.queue&&(m.queue=g("#"+m.queue)),this.each(function(){var i,r,e,o,t,n,s,a,l,c=g(this),u=null,f=null,d=!1,h=0,p=0;m.onMouseOverPause&&(c.bind("mouseover",function(){d=!0}),c.bind("mouseout",function(){d=!1})),i=c.children(m.listElement+":first-child"),!1===m.infiniteLoop&&0===m.switchAmount&&(m.switchAmount=i.children().length),n=function(){if(!d){var e,t=i.children(m.listItemElement+":first-child"),t="auto"!==m.distance?m.distance:"vertical"===m.direction?t.outerHeight(!0):t.outerWidth(!0),n=m.linear?Math.min(c[0][m.scrollOffset]+m.step,t):(n=Math.max(3,parseInt(.3*(t-c[0][m.scrollOffset]),10)),Math.min(c[0][m.scrollOffset]+n,t));if(t<=(c[0][m.scrollOffset]=n)){for(e=0;e<m.switchItems;e++)m.queue&&0<m.queue.find(m.listItemElement).length?(i.append(m.queue.find(m.listItemElement)[0]),i.children(m.listItemElement+":first-child").remove()):i.append(i.children(m.listItemElement+":first-child")),++h;c[0][m.scrollOffset]=0,clearInterval(u),u=null,g.isFunction(m.afterForward)&&m.afterForward.call(c,{switchCount:h,currentFirstChild:i.children(m.listItemElement+":first-child")}),m.triggerStackable&&0!==p?r():!1===m.infiniteLoop&&h>=m.switchAmount||m.autoPlay&&(f=setTimeout(o,1e3*m.delay))}}},s=function(){if(!d){var e,t,n;if(0===c[0][m.scrollOffset]){for(e=0;e<m.switchItems;e++)i.children(m.listItemElement+":last-child").insertBefore(i.children(m.listItemElement+":first-child"));t=i.children(m.listItemElement+":first-child"),t="auto"!==m.distance?m.distance:"vertical"===m.direction?t.height():t.width(),c[0][m.scrollOffset]=t}n=m.linear?Math.max(c[0][m.scrollOffset]-m.step,0):(n=Math.max(3,parseInt(.3*c[0][m.scrollOffset],10)),Math.max(c[0][m.scrollOffset]-n,0)),0===(c[0][m.scrollOffset]=n)&&(--h,clearInterval(u),u=null,g.isFunction(m.afterBackward)&&m.afterBackward.call(c,{switchCount:h,currentFirstChild:i.children(m.listItemElement+":first-child")}),m.triggerStackable&&0!==p?r():m.autoPlay&&(f=setTimeout(o,1e3*m.delay)))}},r=function(){0!==p&&(f=0<p?(p--,setTimeout(o,0)):(p++,setTimeout(e,0)))},o=function(){clearInterval(u),u=setInterval(n,m.speed)},e=function(){clearInterval(u),u=setInterval(s,m.speed)},a=function(){m.autoPlay=!0,d=!1,clearInterval(u),u=setInterval(n,m.speed)},l=function(){d=!0},t=function(e){m.delay=e||m.delay,clearTimeout(f),m.autoPlay&&(f=setTimeout(o,1e3*m.delay))},m.autoPlay&&(f=setTimeout(o,1e3*m.startDelay)),c.bind("resetClock",function(e){t(e)}),c.bind("forward",function(){m.triggerStackable?null!==u?p++:o():(clearTimeout(f),o())}),c.bind("backward",function(){m.triggerStackable?null!==u?p--:e():(clearTimeout(f),e())}),c.bind("pauseHover",function(){l()}),c.bind("forwardHover",function(){a()}),c.bind("speedUp",function(e,t){"undefined"===t&&(t=Math.max(1,parseInt(m.speed/2,10))),m.speed=t}),c.bind("speedDown",function(e,t){"undefined"===t&&(t=2*m.speed),m.speed=t}),c.bind("updateConfig",function(e,t){m=g.extend(m,t)})})}},877:()=>{!function(_){"use strict";var S=0;function T(e,t){return _.map(e,function(e){return e+".touchspin_"+t})}_.fn.TouchSpin=function(b){if("destroy"!==b){var w={min:0,max:100,initval:"",replacementval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalupclass:"glyphicon glyphicon-chevron-up",verticaldownclass:"glyphicon glyphicon-chevron-down",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-default",buttonup_class:"btn btn-default",buttondown_txt:"-",buttonup_txt:"+"},x={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each(function(){var a,l,n,i,e,t,r,o,c=_(this),s=c.data(),u=0,f=!1;function d(){var e,t,n=c.val();""!==n?0<a.decimals&&"."===n||(e=parseFloat(n),(t=e=isNaN(e)?""!==a.replacementval?a.replacementval:0:e).toString()!==n&&(t=e),e<a.min&&(t=a.min),t=function(e){switch(a.forcestepdivisibility){case"round":return(Math.round(e/a.step)*a.step).toFixed(a.decimals);case"floor":return(Math.floor(e/a.step)*a.step).toFixed(a.decimals);case"ceil":return(Math.ceil(e/a.step)*a.step).toFixed(a.decimals);default:return e}}(t=e>a.max?a.max:t),Number(n).toString()!==t.toString()&&(c.val(t),c.trigger("change"))):""!==a.replacementval&&(c.val(a.replacementval),c.trigger("change"))}function h(){if(a.booster){var e=Math.pow(2,Math.floor(u/a.boostat))*a.step;return a.maxboostedstep&&e>a.maxboostedstep&&(e=a.maxboostedstep,i=Math.round(i/e)*e),Math.max(a.step,e)}return a.step}function p(){d(),i=parseFloat(n.input.val());var e=i=isNaN(i)?0:i,t=h();(i+=t)>a.max&&(i=a.max,c.trigger("touchspin.on.max"),v()),n.input.val(Number(i).toFixed(a.decimals)),e!==i&&c.trigger("change")}function m(){d(),i=parseFloat(n.input.val());var e=i=isNaN(i)?0:i,t=h();(i-=t)<a.min&&(i=a.min,c.trigger("touchspin.on.min"),v()),n.input.val(i.toFixed(a.decimals)),e!==i&&c.trigger("change")}function g(){v(),u=0,f="down",c.trigger("touchspin.on.startspin"),c.trigger("touchspin.on.startdownspin"),r=setTimeout(function(){e=setInterval(function(){u++,m()},a.stepinterval)},a.stepintervaldelay)}function y(){v(),u=0,f="up",c.trigger("touchspin.on.startspin"),c.trigger("touchspin.on.startupspin"),o=setTimeout(function(){t=setInterval(function(){u++,p()},a.stepinterval)},a.stepintervaldelay)}function v(){switch(clearTimeout(r),clearTimeout(o),clearInterval(e),clearInterval(t),f){case"up":c.trigger("touchspin.on.stopupspin"),c.trigger("touchspin.on.stopspin");break;case"down":c.trigger("touchspin.on.stopdownspin"),c.trigger("touchspin.on.stopspin")}u=0,f=!1}c.data("alreadyinitialized")||(c.data("alreadyinitialized",!0),S+=1,c.data("spinnerid",S),c.is("input")&&(""!==(a=_.extend({},w,s,function(){var n={};return _.each(x,function(e,t){t="bts-"+t;c.is("[data-"+t+"]")&&(n[e]=c.data(t))}),n}(),b)).initval&&""===c.val()&&c.val(a.initval),d(),function(){var e=c.val(),t=c.parent();""!==e&&(e=Number(e).toFixed(a.decimals));c.data("initvalue",e).val(e),c.addClass("form-control"),t.hasClass("input-group")?function(e){e.addClass("bootstrap-touchspin");var t,n,i=c.prev(),r=c.next(),o='<span class="input-group-addon bootstrap-touchspin-prefix">'+a.prefix+"</span>
573",s='<span class="input-group-addon bootstrap-touchspin-postfix">'+a.postfix+"</span>";i.hasClass("input-group-btn")?(t='<button class="'+a.buttondown_class+' bootstrap-touchspin-down" type="button">'+a.buttondown_txt+"</button>",i.append(t)):(t='<span class="input-group-btn"><button class="'+a.buttondown_class+' bootstrap-touchspin-down" type="button">'+a.buttondown_txt+"</button></span>",_(t).insertBefore(c));r.hasClass("input-group-btn")?(n='<button class="'+a.buttonup_class+' bootstrap-touchspin-up" type="button">'+a.buttonup_txt+"</button>",r.prepend(n)):(n='<span class="input-group-btn"><button class="'+a.buttonup_class+' bootstrap-touchspin-up" type="button">'+a.buttonup_txt+"</button></span>",_(n).insertAfter(c));_(o).insertBefore(c),_(s).insertAfter(c),l=e}(t):function(){var e;e=a.verticalbuttons?'<div class="input-group bootstrap-touchspin"><span class="input-group-addon bootstrap-touchspin-prefix">'+a.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+a.postfix+'</span><span class="input-group-btn-vertical"><button class="'+a.buttondown_class+' bootstrap-touchspin-up" type="button"><i class="'+a.verticalupclass+'"></i></button><button class="'+a.buttonup_class+' bootstrap-touchspin-down" type="button"><i class="'+a.verticaldownclass+'"></i></button></span></div>':'<div class="input-group bootstrap-touchspin"><span class="input-group-btn"><button class="'+a.buttondown_class+' bootstrap-touchspin-down" type="button">'+a.buttondown_txt+'</button></span><span class="input-group-addon bootstrap-touchspin-prefix">'+a.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+a.postfix+'</span><span class="input-group-btn"><button class="'+a.buttonup_class+' bootstrap-touchspin-up" type="button">'+a.buttonup_txt+"</button></span></div>";l=_(e).insertBefore(c),_(".bootstrap-touchspin-prefix",l).after(c),c.hasClass("input-sm")?l.addClass("input-group-sm"):c.hasClass("input-lg")&&l.addClass("input-group-lg")}()}(),n={down:_(".bootstrap-touchspin-down",l),up:_(".bootstrap-touchspin-up",l),input:_("input",l),prefix:_(".bootstrap-touchspin-prefix",l).addClass(a.prefix_extraclass),postfix:_(".bootstrap-touchspin-postfix",l).addClass(a.postfix_extraclass)},function(){""===a.prefix&&n.prefix.hide();""===a.postfix&&n.postfix.hide()}(),c.on("keydown",function(e){var t=e.keyCode||e.which;38===t?("up"!==f&&(p(),y()),e.preventDefault()):40===t&&("down"!==f&&(m(),g()),e.preventDefault())}),c.on("keyup",function(e){e=e.keyCode||e.which;38!==e&&40!==e||v()}),c.on("blur",function(){d()}),n.down.on("keydown",function(e){var t=e.keyCode||e.which;32!==t&&13!==t||("down"!==f&&(m(),g()),e.preventDefault())}),n.down.on("keyup",function(e){e=e.keyCode||e.which;32!==e&&13!==e||v()}),n.up.on("keydown",function(e){var t=e.keyCode||e.which;32!==t&&13!==t||("up"!==f&&(p(),y()),e.preventDefault())}),n.up.on("keyup",function(e){e=e.keyCode||e.which;32!==e&&13!==e||v()}),n.down.on("mousedown.touchspin",function(e){n.down.off("touchstart.touchspin"),c.is(":disabled")||(m(),g(),e.preventDefault(),e.stopPropagation())}),n.down.on("touchstart.touchspin",function(e){n.down.off("mousedown.touchspin"),c.is(":disabled")||(m(),g(),e.preventDefault(),e.stopPropagation())}),n.up.on("mousedown.touchspin",function(e){n.up.off("touchstart.touchspin"),c.is(":disabled")||(p(),y(),e.preventDefault(),e.stopPropagation())}),n.up.on("touchstart.touchspin",function(e){n.up.off("mousedown.touchspin"),c.is(":disabled")||(p(),y(),e.preventDefault(),e.stopPropagation())}),n.up.on("mouseout touchleave touchend touchcancel",function(e){f&&(e.stopPropagation(),v())}),n.down.on("mouseout touchleave touchend touchcancel",function(e){f&&(e.stopPropagation(),v())}),n.down.on("mousemove touchmove",function(e){f&&(e.stopPropagation(),e.preventDefault())}),n.up.on("mousemove touchmove",function(e){f&&(e.stopPropagation(),e.preventDefault())}),_(document).on(T(["mouseup","touchend","touchcancel"],S).join(" "),function(e){f&&(e.preventDefault(),v())}),_(document).on(T(["mousemove","touchmove","scroll","scrollstart"],S).join(" "),function(e){f&&(e.preventDefault(),v())}),c.on("mousewheel DOMMouseScroll",function(e){var t;a.mousewheel&&c.is(":focus")&&(t=e.originalEvent.wheelDelta||-e.originalEvent.deltaY||-e.originalEvent.detail,e.stopPropagation(),e.preventDefault(),(t<0?m:p)())}),c.on("touchspin.uponce",function(){v(),p()}),c.on("touchspin.downonce",function(){v(),m()}),c.on("touchspin.startupspin",function(){y()}),c.on("touchspin.startdownspin",function(){g()}),c.on("touchspin.stopspin",function(){v()}),c.on("touchspin.updatesettings",function(e,t){!function(e){(function(e){a=_.extend({},a,e)})(e),d();e=n.input.val();""!==e&&(e=Number(n.input.val()),n.input.val(e.toFixed(a.decimals)))}(t)}),n.input.css("display","block")))})}this.each(function(){var e=_(this).data();_(document).off(T(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],e.spinnerid).join(" "))})}}(jQuery)},948:()=>{if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e(e){var t=this,n=!1;return r(this).one(o.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||o.triggerTransitionEnd(t)},e),this}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r,t,n,o,x,_,S,m;!function(){var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=jQuery,t=!(_=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},o={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");return t||(t=e.getAttribute("href")||"",t=/^#[a-z]/i.test(t)?t:null),t},reflow:function(e){new Function("bs","return bs")(e.offsetHeight)}
573,triggerTransitionEnd:function(e){r(e).trigger(t.end)},supportsTransitionEnd:function(){return Boolean(t)},typeCheckConfig:function(e,t,n){for(var i in n)if(n.hasOwnProperty(i)){var r=n[i],o=t[i],s=o&&((a=o)[0]||a).nodeType?"element":(o=o,{}.toString.call(o).match(/\s([a-zA-Z]+)/)[1].toLowerCase());if(!new RegExp(r).test(s))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+r+'".')}var a}},t=function(){if(window.QUnit)return!1;var e,t=document.createElement("bootstrap");for(e in n)if(void 0!==t.style[e])return{end:n[e]};return!1}(),r.fn.emulateTransitionEnd=e,o.supportsTransitionEnd()&&(r.event.special[o.TRANSITION_END]={bindType:t.end,delegateType:t.end,handle:function(e){if(r(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),S=o,function(i){var e="alert",r="bs.alert",t="."+r,n=i.fn[e],o={CLOSE:"close"+t,CLOSED:"closed"+t,CLICK_DATA_API:"click"+t+".data-api"},s="alert",a="fade",l="in",c=(u.prototype.close=function(e){e=e||this._element;e=this._getRootElement(e);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},u.prototype.dispose=function(){i.removeData(this._element,r),this._element=null},u.prototype._getRootElement=function(e){var t=S.getSelectorFromElement(e),n=!1;return n=(n=t?i(t)[0]:n)||i(e).closest("."+s)[0]},u.prototype._triggerCloseEvent=function(e){var t=i.Event(o.CLOSE);return i(e).trigger(t),t},u.prototype._removeElement=function(e){return i(e).removeClass(l),S.supportsTransitionEnd()&&i(e).hasClass(a)?void i(e).one(S.TRANSITION_END,i.proxy(this._destroyElement,this,e)).emulateTransitionEnd(150):void this._destroyElement(e)},u.prototype._destroyElement=function(e){i(e).detach().trigger(o.CLOSED).remove()},u._jQueryInterface=function(n){return this.each(function(){var e=i(this),t=e.data(r);t||(t=new u(this),e.data(r,t)),"close"===n&&t[n](this)})},u._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},_(u,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),u);function u(e){w(this,u),this._element=e}i(document).on(o.CLICK_DATA_API,'[data-dismiss="alert"]',c._handleDismiss(new c)),i.fn[e]=c._jQueryInterface,i.fn[e].Constructor=c,i.fn[e].noConflict=function(){return i.fn[e]=n,c._jQueryInterface}}(jQuery),function(i){var e="button",n="bs.button",t="."+n,r=".data-api",o=i.fn[e],s="active",a="btn",l="focus",c='[data-toggle^="button"]',u='[data-toggle="buttons"]',f="input",d=".active",h=".btn",r={CLICK_DATA_API:"click"+t+r,FOCUS_BLUR_DATA_API:"focus"+t+r+" blur"+t+r},p=(m.prototype.toggle=function(){var e,t=!0,n=i(this._element).closest(u)[0];n?(e=i(this._element).find(f)[0])&&("radio"===e.type&&(e.checked&&i(this._element).hasClass(s)?t=!1:(n=i(n).find(d)[0])&&i(n).removeClass(s)),t&&(e.checked=!i(this._element).hasClass(s),i(this._element).trigger("change")),e.focus()):this._element.setAttribute("aria-pressed",!i(this._element).hasClass(s)),t&&i(this._element).toggleClass(s)},m.prototype.dispose=function(){i.removeData(this._element,n),this._element=null},m._jQueryInterface=function(t){return this.each(function(){var e=i(this).data(n);e||(e=new m(this),i(this).data(n,e)),"toggle"===t&&e[t]()})},_(m,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),m);function m(e){w(this,m),this._element=e}i(document).on(r.CLICK_DATA_API,c,function(e){e.preventDefault();e=e.target;i(e).hasClass(a)||(e=i(e).closest(h)),p._jQueryInterface.call(i(e),"toggle")}).on(r.FOCUS_BLUR_DATA_API,c,function(e){var t=i(e.target).closest(h)[0];i(t).toggleClass(l,/^focus(in)?$/.test(e.type))}),i.fn[e]=p._jQueryInterface,i.fn[e].Constructor=p,i.fn[e].noConflict=function(){return i.fn[e]=o,p._jQueryInterface}}(jQuery),function(a){var t="carousel",r="bs.carousel",e="."+r,n=".data-api",i=a.fn[t],o={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},s={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},l="next",c="prev",u={SLIDE:"slide"+e,SLID:"slid"+e,KEYDOWN:"keydown"+e,MOUSEENTER:"mouseenter"+e,MOUSELEAVE:"mouseleave"+e,LOAD_DATA_API:"load"+e+n,CLICK_DATA_API:"click"+e+n},f="carousel",d="active",h="slide",p="right",m="left",g={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".next, .prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-sli
573de], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},y=(v.prototype.next=function(){this._isSliding||this._slide(l)},v.prototype.nextWhenVisible=function(){document.hidden||this.next()},v.prototype.prev=function(){this._isSliding||this._slide(c)},v.prototype.pause=function(e){e||(this._isPaused=!0),a(this._element).find(g.NEXT_PREV)[0]&&S.supportsTransitionEnd()&&(S.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},v.prototype.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval(a.proxy(document.visibilityState?this.nextWhenVisible:this.next,this),this._config.interval))},v.prototype.to=function(e){var t=this;this._activeElement=a(this._element).find(g.ACTIVE_ITEM)[0];var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)a(this._element).one(u.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();this._slide(n<e?l:c,this._items[e])}},v.prototype.dispose=function(){a(this._element).off(e),a.removeData(this._element,r),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},v.prototype._getConfig=function(e){return e=a.extend({},o,e),S.typeCheckConfig(t,e,s),e},v.prototype._addEventListeners=function(){this._config.keyboard&&a(this._element).on(u.KEYDOWN,a.proxy(this._keydown,this)),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||a(this._element).on(u.MOUSEENTER,a.proxy(this.pause,this)).on(u.MOUSELEAVE,a.proxy(this.cycle,this))},v.prototype._keydown=function(e){if(e.preventDefault(),!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}},v.prototype._getItemIndex=function(e){return this._items=a.makeArray(a(e).parent().find(g.ITEM)),this._items.indexOf(e)},v.prototype._getItemByDirection=function(e,t){var n=e===l,i=e===c,r=this._getItemIndex(t),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return t;e=(r+(e===c?-1:1))%this._items.length;return-1==e?this._items[this._items.length-1]:this._items[e]},v.prototype._triggerSlideEvent=function(e,t){t=a.Event(u.SLIDE,{relatedTarget:e,direction:t});return a(this._element).trigger(t),t},v.prototype._setActiveIndicatorElement=function(e){this._indicatorsElement&&(a(this._indicatorsElement).find(g.ACTIVE).removeClass(d),(e=this._indicatorsElement.children[this._getItemIndex(e)])&&a(e).addClass(d))},v.prototype._slide=function(e,t){var n,i=this,r=a(this._element).find(g.ACTIVE_ITEM)[0],o=t||r&&this._getItemByDirection(e,r),t=Boolean(this._interval),s=e===l?m:p;o&&a(o).hasClass(d)?this._isSliding=!1:!this._triggerSlideEvent(o,s).isDefaultPrevented()&&r&&o&&(this._isSliding=!0,t&&this.pause(),this._setActiveIndicatorElement(o),n=a.Event(u.SLID,{relatedTarget:o,direction:s}),S.supportsTransitionEnd()&&a(this._element).hasClass(h)?(a(o).addClass(e),S.reflow(o),a(r).addClass(s),a(o).addClass(s),a(r).one(S.TRANSITION_END,function(){a(o).removeClass(s).removeClass(e),a(o).addClass(d),a(r).removeClass(d).removeClass(e).removeClass(s),i._isSliding=!1,setTimeout(function(){return a(i._element).trigger(n)},0)}).emulateTransitionEnd(600)):(a(r).removeClass(d),a(o).addClass(d),this._isSliding=!1,a(this._element).trigger(n)),t&&this.cycle())},v._jQueryInterface=function(i){return this.each(function(){var e=a(this).data(r),t=a.extend({},o,a(this).data());"object"===(void 0===i?"undefined":x(i))&&a.extend(t,i);var n="string"==typeof i?i:t.slide;if(e||(e=new v(this,t),a(this).data(r,e)),"number"==typeof i)e.to(i);else if("string"==typeof n){if(void 0===e[n])throw new Error('No method named "'+n+'"');e[n]()}else t.interval&&(e.pause(),e.cycle())})},v._dataApiClickHandler=function(e){var t,n,i=S.getSelectorFromElement(this);!i||(t=a(i)[0])&&a(t).hasClass(f)&&(n=a.extend({}
573,a(t).data(),a(this).data()),(i=this.getAttribute("data-slide-to"))&&(n.interval=!1),v._jQueryInterface.call(a(t),n),i&&a(t).data(r).to(i),e.preventDefault())},_(v,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return o}}]),v);function v(e,t){w(this,v),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this._config=this._getConfig(t),this._element=a(e)[0],this._indicatorsElement=a(this._element).find(g.INDICATORS)[0],this._addEventListeners()}a(document).on(u.CLICK_DATA_API,g.DATA_SLIDE,y._dataApiClickHandler),a(window).on(u.LOAD_DATA_API,function(){a(g.DATA_RIDE).each(function(){var e=a(this);y._jQueryInterface.call(e,e.data())})}),a.fn[t]=y._jQueryInterface,a.fn[t].Constructor=y,a.fn[t].noConflict=function(){return a.fn[t]=i,y._jQueryInterface}}(jQuery),function(o){var t="collapse",s="bs.collapse",e="."+s,n=o.fn[t],r={toggle:!0,parent:""},i={toggle:"boolean",parent:"string"},a={SHOW:"show"+e,SHOWN:"shown"+e,HIDE:"hide"+e,HIDDEN:"hidden"+e,CLICK_DATA_API:"click"+e+".data-api"},l="in",c="collapse",u="collapsing",f="collapsed",d="width",h="height",p=".card > .in, .card > .collapsing",e='[data-toggle="collapse"]',m=(g.prototype.toggle=function(){o(this._element).hasClass(l)?this.hide():this.show()},g.prototype.show=function(){var e,t,n,i,r=this;this._isTransitioning||o(this._element).hasClass(l)||(n=i=void 0,this._parent&&((i=o.makeArray(o(p))).length||(i=null)),i&&((n=o(i).data(s))&&n._isTransitioning)||(e=o.Event(a.SHOW),o(this._element).trigger(e),e.isDefaultPrevented()||(i&&(g._jQueryInterface.call(o(i),"hide"),n||o(i).data(s,null)),t=this._getDimension(),o(this._element).removeClass(c).addClass(u),this._element.style[t]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&o(this._triggerArray).removeClass(f).attr("aria-expanded",!0),this.setTransitioning(!0),n=function(){o(r._element).removeClass(u).addClass(c).addClass(l),r._element.style[t]="",r.setTransitioning(!1),o(r._element).trigger(a.SHOWN)},S.supportsTransitionEnd()?(i="scroll"+(t[0].toUpperCase()+t.slice(1)),o(this._element).one(S.TRANSITION_END,n).emulateTransitionEnd(600),this._element.style[t]=this._element[i]+"px"):n())))},g.prototype.hide=function(){var e=this;if(!this._isTransitioning&&o(this._element).hasClass(l)){var t=o.Event(a.HIDE);if(o(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element[n===d?"offsetWidth":"offsetHeight"]+"px",S.reflow(this._element),o(this._element).addClass(u).removeClass(c).removeClass(l),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&o(this._triggerArray).addClass(f).attr("aria-expanded",!1),this.setTransitioning(!0);t=function(){e.setTransitioning(!1),o(e._element).removeClass(u).addClass(c).trigger(a.HIDDEN)};return this._element.style[n]="",S.supportsTransitionEnd()?void o(this._element).one(S.TRANSITION_END,t).emulateTransitionEnd(600):void t()}}},g.prototype.setTransitioning=function(e){this._isTransitioning=e},g.prototype.dispose=function(){o.removeData(this._element,s),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},g.prototype._getConfig=function(e){return(e=o.extend({},r,e)).toggle=Boolean(e.toggle),S.typeCheckConfig(t,e,i),e},g.prototype._getDimension=function(){return o(this._element).hasClass(d)?d:h},g.prototype._getParent=function(){var n=this,e=o(this._config.parent)[0],t='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return o(e).find(t).each(function(e,t){n._addAriaAndCollapsedClass(g._getTargetFromElement(t),[t])}),e},g.prototype._addAriaAndCollapsedClass=function(e,t){var n;e&&(n=o(e).hasClass(l),e.setAttribute("aria-expanded",n),t.length&&o(t).toggleClass(f,!n).attr("aria-expanded",n))},g._getTargetFromElement=function(e){e=S.getSelectorFromElement(e);return e?o(e)[0]:null},g._jQueryInterface=function(i){return this.each(function(){var e=o(this),t=e.data(s),n=o.extend({},r,e.data(),"object"===(void 0===i?"undefined":x(i))&&i);if(!t&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),t||(t=new g(this,n),e.data(s,t)),"string"==typeof i){if(void 0===t[i])throw new Error('No method n
573amed "'+i+'"');t[i]()}})},_(g,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return r}}]),g);function g(e,t){w(this,g),this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=o.makeArray(o('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}o(document).on(a.CLICK_DATA_API,e,function(e){e.preventDefault();var t=m._getTargetFromElement(this),e=o(t).data(s)?"toggle":o(this).data();m._jQueryInterface.call(o(t),e)}),o.fn[t]=m._jQueryInterface,o.fn[t].Constructor=m,o.fn[t].noConflict=function(){return o.fn[t]=n,m._jQueryInterface}}(jQuery),function(a){var e="dropdown",n="bs.dropdown",t="."+n,i=".data-api",r=a.fn[e],l={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,CLICK:"click"+t,CLICK_DATA_API:"click"+t+i,KEYDOWN_DATA_API:"keydown"+t+i},o="dropdown-backdrop",s="disabled",c="open",u=".dropdown-backdrop",f='[data-toggle="dropdown"]',d=".dropdown form",h='[role="menu"]',i='[role="listbox"]',p=".navbar-nav",m='[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a',g=(y.prototype.toggle=function(){if(this.disabled||a(this).hasClass(s))return!1;var e=y._getParentFromElement(this),t=a(e).hasClass(c);if(y._clearMenus(),t)return!1;"ontouchstart"in document.documentElement&&!a(e).closest(p).length&&((n=document.createElement("div")).className=o,a(n).insertBefore(this),a(n).on("click",y._clearMenus));var t={relatedTarget:this},n=a.Event(l.SHOW,t);return a(e).trigger(n),!n.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded","true"),a(e).toggleClass(c),a(e).trigger(a.Event(l.SHOWN,t)),!1)},y.prototype.dispose=function(){a.removeData(this._element,n),a(this._element).off(t),this._element=null},y.prototype._addEventListeners=function(){a(this._element).on(l.CLICK,this.toggle)},y._jQueryInterface=function(t){return this.each(function(){var e=a(this).data(n);if(e||a(this).data(n,e=new y(this)),"string"==typeof t){if(void 0===e[t])throw new Error('No method named "'+t+'"');e[t].call(this)}})},y._clearMenus=function(e){if(!e||3!==e.which){var t=a(u)[0];t&&t.parentNode.removeChild(t);for(var n=a.makeArray(a(f)),i=0;i<n.length;i++){var r,o=y._getParentFromElement(n[i]),s={relatedTarget:n[i]};!a(o).hasClass(c)||e&&"click"===e.type&&/input|textarea/i.test(e.target.tagName)&&a.contains(o,e.target)||(r=a.Event(l.HIDE,s),a(o).trigger(r),r.isDefaultPrevented()||(n[i].setAttribute("aria-expanded","false"),a(o).removeClass(c).trigger(a.Event(l.HIDDEN,s))))}}},y._getParentFromElement=function(e){var t=void 0,n=S.getSelectorFromElement(e);return(t=n?a(n)[0]:t)||e.parentNode},y._dataApiKeydownHandler=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!a(this).hasClass(s))){var t=y._getParentFromElement(this),n=a(t).hasClass(c);if(!n&&27!==e.which||n&&27===e.which)return 27===e.which&&(i=a(t).find(f)[0],a(i).trigger("focus")),void a(this).trigger("click");var i,t=a.makeArray(a(m));(t=t.filter(function(e){return e.offsetWidth||e.offsetHeight})).length&&(i=t.indexOf(e.target),38===e.which&&0<i&&i--,40===e.which&&i<t.length-1&&i++,t[i=i<0?0:i].focus())}},_(y,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),y);function y(e){w(this,y),this._element=e,this._addEventListeners()}a(document).on(l.KEYDOWN_DATA_API,f,g._dataApiKeydownHandler).on(l.KEYDOWN_DATA_API,h,g._dataApiKeydownHandler).on(l.KEYDOWN_DATA_API,i,g._dataApiKeydownHandler).on(l.CLICK_DATA_API,g._clearMenus).on(l.CLICK_DATA_API,f,g.prototype.toggle).on(l.CLICK_DATA_API,d,function(e){e.stopPropagation()}),a.fn[e]=g._jQueryInterface,a.fn[e].Constructor=g,a.fn[e].noConflict=function(){return a.fn[e]=r,g._jQueryInterface}}(jQuery),function(o){var t="modal",s="bs.modal",e="."+s,n=o.fn[t],i={backdrop:!0,keyboard:!0,focus:!0,show:!0},r={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},a={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,FOCUSIN:"focusin"+e,RESIZE:"resize"+e,CLICK_DISMISS:"click.dismiss"+e,KEYDOWN_DISMISS:"keydown.dismiss"+e,MOUSEUP_DISMISS:"mouseup.dismiss"+e,MOUSEDOWN_DISMISS:"mousedown.dismiss"+e,CLICK_DATA_API:"click"+e+".data-api"},l="modal-scrollbar-measure",c="modal-backdrop",u="modal-open",f="fade",d="in",h={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".navbar-fixed-top, .navbar-fixed-bottom, .is-fixed"},p=(m.prototype.toggle=function(e){return this._isShown?this.hide():this.show(e)},m.prototype.show=function(e){var t=this,n=o.Event(a.SHOW,{relatedTarget:e});o(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),o(document.body).addClass(u),this._setEscapeEvent(),this._setResizeEvent(),o(this._element).on(a.CLICK_DISMISS,h.DATA_DISMISS,o.proxy(this.hide,this)),o(this._dialog).on(a.MOUSEDOWN_DISMISS,function(){o(t._element).one(a.MOUSEUP_DISMISS,function(e){o(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(o.proxy(this._showElement,this,e)))},m.prototype.hide=function(e){e&&e.preventDefault();e=o.Event(a.HIDE);o(this._element).trigger(e),this._isShown&&!e.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),o(document).off(a.FOCUSIN),o(this._element).removeClass(d),o(this._element).off(a.CLICK_DISMISS),o(this._dialog).off(a.MOUSEDOWN_DISMISS),S.supportsTransitionEnd()&&o(this._element).hasClass(f)?o(this._element).one(S.TRANSITION_END,o.proxy(this._hideModal,this)).emulateTransitionEnd(300):this._hideModal())},m.prototype.dispose=function(){o.removeData(this._element,s),o(window).off(e),o(document).off(e),o(this._element).off(e),o(this._backdrop).off(e),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._originalBodyPadding=null,this._scrollbarWidth=null},m.prototype._getConfig=function(e){return e=o.extend({},i,e),S.typeCheckConfig(t,e,r),e},m.prototype._showElement=function(e){var t=this,n=S.supportsTransitionEnd()&&o(this._element).hasClass(f);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,n&&S.reflow(this._element),o(this._element).addClass(d),this._config.focus&&this._enforceFocus();var i=o.Event(a.SHOWN,{relatedTarget:e}),e=function(){t._config.focus&&t._element.focus(),o(t._element).trigger(i)};n?o(this._dialog).one(S.TRANSITION_END,e).emulateTransitionEnd(300):e()},m.prototype._enforceFocus=function(){var t=this;o(document).off(a.FOCUSIN).on(a.FOCUSIN,function(e){document===e.target||t._element===e.target||o(t._element).has(e.target).length||t._element.focus()})},m.prototype._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?o(this._element).on(a.KEYDOWN_DISMISS,function(e){27===e.which&&t.hide()}):this._isShown||o(this._element).off(a.KEYDOWN_DISMISS)},m.prototype._setResizeEvent=function(){this._isShown?o(window).on(a.RESIZE,o.proxy(this._handleUpdate,this)):o(window).off(a.RESIZE)},m.prototype._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._showBackdrop(function(){o(document.body).removeClass(u),e._resetAdjustments(),e._resetScrollbar(),o(e._element).trigger(a.HIDDEN)})},m.prototype._removeBackdrop=function(){this._backdrop&&(o(this._backdrop).remove(),this._backdrop=null)},m.prototype._showBackdrop=function(e){var t,n=this,i=o(this._element).hasClass(f)?f:"";this._isShown&&this._config.backdrop?(t=S.supportsTransitionEnd()&&i,this._backdrop=document.createElement("div"),this._backdrop.className=c,i&&o(this._backdrop).addClass(i),o(this._backdrop).appendTo(document.body),o(this._element).on(a.CLICK_DISMISS,function(e){return n._ignoreBackdropClick?void(n._ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide()))}),t&&S.reflow(this._backdrop),o(this._backdrop).addClass(d),e&&(t?o(this._backdrop).one(S.TRANSITION_END,e).emulateTransitionEnd(150):e())):!this._isShown&&this._backdrop?(o(this._backdrop).removeClass(d),t=function(){n._removeBackdrop(),e&&e()},S.supportsTransitionEnd()&&o(this._element).hasClass(f)?o(this._backdrop).one(S.TRANSITION_END,t).emulateTransitionEnd(150):t()):e&&e()},m.prototype._handleUpdate=function(){this._adjustDialog()},m.prototype._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},m.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},m.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},m.prototype._setScrollbar=function(){var e=parseInt(o(h.FIXED_CONTENT).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"",this._isBodyOverflowing&&(document.body.style.paddingRight=e+this._scrollbarWidth+"px")},m.prototype._resetScrollbar=function(){document.body.style.paddingRight=this._originalBodyPadding},m.prototype._getScrollbarWidth=function(){var e=document.createElement("div");e.className=l,document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t},m._jQueryInterface=function(n,i){return this.each(function(){var e=o(this).data(s),t=o.extend({},m.Default,o(this).data(),"object"===(void 0===n?"undefined":x(n))&&n);if(e||(e=new m(this,t),o(this).data(s,e)),"string"==typeof n){if(void 0===e[n])throw new Error('No method n
573amed "'+n+'"');e[n](i)}else t.show&&e.show(i)})},_(m,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return i}}]),m);function m(e,t){w(this,m),this._config=this._getConfig(t),this._element=e,this._dialog=o(e).find(h.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}o(document).on(a.CLICK_DATA_API,h.DATA_TOGGLE,function(e){var t=this,n=void 0,i=S.getSelectorFromElement(this);i&&(n=o(i)[0]);i=o(n).data(s)?"toggle":o.extend({},o(n).data(),o(this).data());"A"===this.tagName&&e.preventDefault();var r=o(n).one(a.SHOW,function(e){e.isDefaultPrevented()||r.one(a.HIDDEN,function(){o(t).is(":visible")&&t.focus()})});p._jQueryInterface.call(o(n),i,this)}),o.fn[t]=p._jQueryInterface,o.fn[t].Constructor=p,o.fn[t].noConflict=function(){return o.fn[t]=n,p._jQueryInterface}}(jQuery),function(r){var n="scrollspy",i="bs.scrollspy",e="."+i,t=r.fn[n],o={offset:10,method:"auto",target:""},s={offset:"number",method:"string",target:"(string|element)"},a={ACTIVATE:"activate"+e,SCROLL:"scroll"+e,LOAD_DATA_API:"load"+e+".data-api"},l="dropdown-item",c="active",u={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",LIST_ITEM:".list-item",LI:"li",LI_DROPDOWN:"li.dropdown",NAV_LINKS:".nav-link",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},f="offset",d="position",h=(p.prototype.refresh=function(){var t=this,e=this._scrollElement!==this._scrollElement.window?d:f,n="auto"===this._config.method?e:this._config.method,i=n===d?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),r.makeArray(r(this._selector)).map(function(e){var t=void 0,e=S.getSelectorFromElement(e);return(t=e?r(e)[0]:t)&&(t.offsetWidth||t.offsetHeight)?[r(t)[n]().top+i,e]:null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},p.prototype.dispose=function(){r.removeData(this._element,i),r(this._scrollElement).off(e),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},p.prototype._getConfig=function(e){var t;return"string"!=typeof(e=r.extend({},o,e)).target&&((t=r(e.target).attr("id"))||(t=S.getUID(n),r(e.target).attr("id",t)),e.target="#"+t),S.typeCheckConfig(n,e,s),e},p.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.scrollY:this._scrollElement.scrollTop},p.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},p.prototype._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._scrollElement.offsetHeight;if(this._scrollHeight!==t&&this.refresh(),n<=e&&(n=this._targets[this._targets.length-1],this._activeTarget!==n&&this._activate(n)),this._activeTarget&&e<this._offsets[0])return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(void 0===this._offsets[i+1]||e<this._offsets[i+1])&&this._activate(this._targets[i])},p.prototype._activate=function(t){this._activeTarget=t,this._clear();var e=(e=this._selector.split(",")).map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),e=r(e.join(","));e.hasClass(l)?(e.closest(u.DROPDOWN).find(u.DROPDOWN_TOGGLE).addClass(c),e.addClass(c)):e.parents(u.LI).find(u.NAV_LINKS).addClass(c),r(this._scrollElement).trigger(a.ACTIVATE,{relatedTarget:t})},p.prototype._clear=function(){r(this._selector).filter(u.ACTIVE).removeClass(c)},p._jQueryInterface=function(n){return this.each(function(){var e=r(this).data(i),t="object"===(void 0===n?"undefined":x(n))&&n||null;if(e||(e=new p(this,t),r(this).data(i,e)),"string"==typeof n){if(void 0===e[n])throw new Error('No method named "'+n+'"');e[n]()}})},_(p,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return o}}]),p);function p(e,t){w(this,p),this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+u.NAV_LINKS+","+this._config.target+" "+u.DROPDOWN_IT
573EMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,r(this._scrollElement).on(a.SCROLL,r.proxy(this._process,this)),this.refresh(),this._process()}r(window).on(a.LOAD_DATA_API,function(){for(var e=r.makeArray(r(u.DATA_SPY)),t=e.length;t--;){var n=r(e[t]);h._jQueryInterface.call(n,n.data())}}),r.fn[n]=h._jQueryInterface,r.fn[n].Constructor=h,r.fn[n].noConflict=function(){return r.fn[n]=t,h._jQueryInterface}}(jQuery),function(a){var i="bs.tab",e="."+i,t=a.fn.tab,l={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK_DATA_API:"click"+e+".data-api"},o="dropdown-menu",c="active",s="fade",u="in",f=".dropdown",d="ul:not(.dropdown-menu)",r="> .nav-item .fade, > .fade",h=".active",p="> .nav-item > .active, > .active",e='[data-toggle="tab"], [data-toggle="pill"]',m=".dropdown-toggle",g="> .dropdown-menu .active",n=(y.prototype.show=function(){var e,n,t,i,r,o,s=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&a(this._element).hasClass(c)||(n=e=void 0,o=a(this._element).closest(d)[0],t=S.getSelectorFromElement(this._element),o&&(n=(n=a.makeArray(a(o).find(h)))[n.length-1]),i=a.Event(l.HIDE,{relatedTarget:this._element}),r=a.Event(l.SHOW,{relatedTarget:n}),n&&a(n).trigger(i),a(this._element).trigger(r),r.isDefaultPrevented()||i.isDefaultPrevented()||(t&&(e=a(t)[0]),this._activate(this._element,o),o=function(){var e=a.Event(l.HIDDEN,{relatedTarget:s._element}),t=a.Event(l.SHOWN,{relatedTarget:n});a(n).trigger(e),a(s._element).trigger(t)},e?this._activate(e,e.parentNode,o):o()))},y.prototype.dispose=function(){a.removeClass(this._element,i),this._element=null},y.prototype._activate=function(e,t,n){var i=a(t).find(p)[0],t=n&&S.supportsTransitionEnd()&&(i&&a(i).hasClass(s)||Boolean(a(t).find(r)[0])),n=a.proxy(this._transitionComplete,this,e,i,t,n);i&&t?a(i).one(S.TRANSITION_END,n).emulateTransitionEnd(150):n(),i&&a(i).removeClass(u)},y.prototype._transitionComplete=function(e,t,n,i){var r;t&&(a(t).removeClass(c),(r=a(t).find(g)[0])&&a(r).removeClass(c),t.setAttribute("aria-expanded",!1)),a(e).addClass(c),e.setAttribute("aria-expanded",!0),n?(S.reflow(e),a(e).addClass(u)):a(e).removeClass(s),e.parentNode&&a(e.parentNode).hasClass(o)&&((n=a(e).closest(f)[0])&&a(n).find(m).addClass(c),e.setAttribute("aria-expanded",!0)),i&&i()},y._jQueryInterface=function(n){return this.each(function(){var e=a(this),t=e.data(i);if(t||(t=new y(this),e.data(i,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})},_(y,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),y);function y(e){w(this,y),this._element=e}a(document).on(l.CLICK_DATA_API,e,function(e){e.preventDefault(),n._jQueryInterface.call(a(this),"show")}),a.fn.tab=n._jQueryInterface,a.fn.tab.Constructor=n,a.fn.tab.noConflict=function(){return a.fn.tab=t,n._jQueryInterface}}(jQuery),m=function(o){if(void 0===window.Tether)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var t="tooltip",i="bs.tooltip",e="."+i,n=o.fn[t],r={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[]},s={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array"},a={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},l="in",c="out",u={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,INSERTED:"inserted"+e,CLICK:"click"+e,FOCUSIN:"focusin"+e,FOCUSOUT:"focusout"+e,MOUSEENTER:"mouseenter"+e,MOUSELEAVE:"mouseleave"+e},f="fade",d="in",h=".tooltip-inner",p={element:!1,enabled:!1},m="hover",g="focus",y="manual",v=(b.prototype.enable=function(){this._isEnabled=!0},b.prototype.disable=function(){this._isEnabled=!1},b.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},b.prototype.toggle=function(e){var t,n;e?(t=this.constructor.DATA_KEY,(n=o(e.currentTarget).data(t))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),o(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)):o(this.getTipElement()).hasClass(d)?this._leave(null,this):this._enter(null,this)},b.prototype.dispose=function(){clearTimeout(this._timeout),this.cleanupTether(),o.removeData(this.element,this.constructor.DATA_KEY),o(this.element).off(this.constructor.EVENT_KEY),this.tip&&o(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null},b.prototype.show=function(){var e,t=this,n=o.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(o(this.element).trigger(n),e=o.contains(this.element.ownerDocument.documentElement,this.element),!n.isDefaultPrevented()&&e&&(n=this.getTipElement(),e=S.getUID(this.constructor.NAME),n.setAttribute("id",e),this.element.setAttribute("aria-describedby",e),this.setContent(),this.config.animation&&o(n).addClass(f),e="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement,e=this._getAttachment(e),o(n).data(this.constructor.DATA_KEY,this).appendTo(document.body),o(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:e,element:n,target:this.element,classes:p,classPrefix:"bs-tether",offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),S.reflow(n),this._tether.position(),o(n).addClass(d),n=function(){var e=t._hoverState;t._hoverState=null,o(t.element).trigger(t.constructor.Event.SHOWN),e===c&&t._leave(null,t)},S.supportsTransitionEnd()&&o(this.tip).hasClass(f)?o(this.tip).one(S.TRANSITION_END,n).emulateTransitionEnd(b._TRANSITION_DURATION):n()))},b.prototype.hide=function(e){function t(){n._hoverState!==l&&i.parentNode&&i.parentNode.removeChild(i),n.element.removeAttribute("aria-describedby"),o(n.element).trigger(n.constructor.Event.HIDDEN),n.cleanupTether(),e&&e()}var n=this,i=this.getTipElement(),r=o.Event(this.constructor.Event.HIDE);o(this.element).trigger(r),r.isDefaultPrevented()||(o(i).removeClass(d),S.supportsTransitionEnd()&&o(this.tip).hasClass(f)?o(i).one(S.TRANSITION_END,t).emulateTransitionEnd(150):t(),this._hoverState="")},b.prototype.isWithContent=function(){return Boolean(this.getTitle())},b.prototype.getTipElement=function(){return this.tip=this.tip||o(this.config.template)[0]},b.prototype.setContent=function(){var e=o(this.getTipElement());this.setElementContent(e.find(h),this.getTitle()),e.removeClass(f).removeClass(d),this.cleanupTether()},b.prototype.setElementContent=function(e,t){var n=this.config.html;
573"object"===(void 0===t?"undefined":x(t))&&(t.nodeType||t.jquery)?n?o(t).parent().is(e)||e.empty().append(t):e.text(o(t).text()):e[n?"html":"text"](t)},b.prototype.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},b.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},b.prototype._getAttachment=function(e){return a[e.toUpperCase()]},b.prototype._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(e){var t;"click"===e?o(n.element).on(n.constructor.Event.CLICK,n.config.selector,o.proxy(n.toggle,n)):e!==y&&(t=e===m?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,e=e===m?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT,o(n.element).on(t,n.config.selector,o.proxy(n._enter,n)).on(e,n.config.selector,o.proxy(n._leave,n)))}),this.config.selector?this.config=o.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},b.prototype._fixTitle=function(){var e=x(this.element.getAttribute("data-original-title"));!this.element.getAttribute("title")&&"string"===e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},b.prototype._enter=function(e,t){var n=this.constructor.DATA_KEY;return(t=t||o(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),o(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?g:m]=!0),o(t.getTipElement()).hasClass(d)||t._hoverState===l?void(t._hoverState=l):(clearTimeout(t._timeout),t._hoverState=l,t.config.delay&&t.config.delay.show?void(t._timeout=setTimeout(function(){t._hoverState===l&&t.show()},t.config.delay.show)):void t.show())},b.prototype._leave=function(e,t){var n=this.constructor.DATA_KEY;if((t=t||o(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),o(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?g:m]=!1),!t._isWithActiveTrigger())return clearTimeout(t._timeout),t._hoverState=c,t.config.delay&&t.config.delay.hide?void(t._timeout=setTimeout(function(){t._hoverState===c&&t.hide()},t.config.delay.hide)):void t.hide()},b.prototype._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},b.prototype._getConfig=function(e){return(e=o.extend({},this.constructor.Default,o(this.element).data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),S.typeCheckConfig(t,e,this.constructor.DefaultType),e},b.prototype._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},b._jQueryInterface=function(n){return this.each(function(){var e=o(this).data(i),t="object"===(void 0===n?"undefined":x(n))?n:null;if((e||!/dispose|hide/.test(n))&&(e||(e=new b(this,t),o(this).data(i,e)),"string"==typeof n)){if(void 0===e[n])throw new Error('No method named "'+n+'"');e[n]()}})},_(b,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return r}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return i}},{key:"Event",get:function(){return u}},{key:"EVENT_KEY",get:function(){return e}},{key:"DefaultType",get:function(){return s}}]),b);function b(e,t){w(this,b),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._tether=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}
573return o.fn[t]=v._jQueryInterface,o.fn[t].Constructor=v,o.fn[t].noConflict=function(){return o.fn[t]=n,v._jQueryInterface},v}(jQuery),function(i){var e,t="popover",r="bs.popover",n="."+r,o=i.fn[t],s=i.extend({},m.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),a=i.extend({},m.DefaultType,{content:"(string|element|function)"}),l="fade",c="in",u=".popover-title",f=".popover-content",d={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,INSERTED:"inserted"+n,CLICK:"click"+n,FOCUSIN:"focusin"+n,FOCUSOUT:"focusout"+n,MOUSEENTER:"mouseenter"+n,MOUSELEAVE:"mouseleave"+n},h=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(p,e=m),p.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},p.prototype.getTipElement=function(){return this.tip=this.tip||i(this.config.template)[0]},p.prototype.setContent=function(){var e=i(this.getTipElement());this.setElementContent(e.find(u),this.getTitle()),this.setElementContent(e.find(f),this._getContent()),e.removeClass(l).removeClass(c),this.cleanupTether()},p.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},p._jQueryInterface=function(n){return this.each(function(){var e=i(this).data(r),t="object"===(void 0===n?"undefined":x(n))?n:null;if((e||!/destroy|hide/.test(n))&&(e||(e=new p(this,t),i(this).data(r,e)),"string"==typeof n)){if(void 0===e[n])throw new Error('No method named "'+n+'"');e[n]()}})},_(p,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}},{key:"Default",get:function(){return s}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return r}},{key:"Event",get:function(){return d}},{key:"EVENT_KEY",get:function(){return n}},{key:"DefaultType",get:function(){return a}}]),p);function p(){return w(this,p),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}i.fn[t]=h._jQueryInterface,i.fn[t].Constructor=h,i.fn[t].noConflict=function(){return i.fn[t]=o,h._jQueryInterface}}(jQuery)},590:e=>{function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function l(e){return"function"==typeof e}function c(e){return"object"==typeof e&&null!==e}function u(e){return void 0===e}((e.exports=i).EventEmitter=i).prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,n,i,r,o,s;if(this._events||(this._events={}),"error"===e&&(!this._events.error||c(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var a=new Error('Uncaught, unspecified "error" event. ('+t+")");throw a.context=t,a}if(u(n=this._events[e]))return!1;if(l(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slice.call(arguments,1),n.apply(this,r)}else if(c(n))for(r=Array.prototype.slice.call(arguments,1),i=(s=n.slice()).length,o=0;o<i;o++)s[o].apply(this,r);return!0},i.prototype.on=i.prototype.addListener=function(e,t){var n;if(!l(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,l(t.listener)?t.listener:t),this._events[e]?c(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,c(this._events[e])&&!this._events[e].warned&&(n=u(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&0<n&&this._events[e].length>n&&(this._events[e].warned=!0,console.trace),this},i.prototype.once=function(e,t){if(!l(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},i.prototype.removeListener=function(e,t){var n,i,r,o;
573if(!l(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=(n=this._events[e]).length,i=-1,n===t||l(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(c(n)){for(o=r;0<o--;)if(n[o]===t||n[o].listener&&n[o].listener===t){i=o;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(l(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){e=this._events&&this._events[e]?l(this._events[e])?[this._events[e]]:this._events[e].slice():[];return e},i.prototype.listenerCount=function(e){if(this._events){e=this._events[e];if(l(e))return 1;if(e)return e.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}},635:e=>{e.exports=function i(r,o,s){function a(n,e){if(!o[n]){if(!r[n]){if(0,l)return l(n,!0);var t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t}t=o[n]={exports:{}};r[n][0].call(t.exports,function(e){var t=r[n][1][e];return a(t||e)},t,t.exports,i,r,o,s)}return o[n].exports}for(var l=void 0,e=0;e<s.length;e++)a(s[e]);return a}({1:[function(e,t,n){t.exports=function(e){var t,n,i,r=-1;if(1<e.lines.length&&"flex-start"===e.style.alignContent)for(t=0;i=e.lines[++r];)i.crossStart=t,t+=i.cross;else if(1<e.lines.length&&"flex-end"===e.style.alignContent)for(t=e.flexStyle.crossSpace;i=e.lines[++r];)i.crossStart=t,t+=i.cross;else if(1<e.lines.length&&"center"===e.style.alignContent)for(t=e.flexStyle.crossSpace/2;i=e.lines[++r];)i.crossStart=t,t+=i.cross;else if(1<e.lines.length&&"space-between"===e.style.alignContent)for(n=e.flexStyle.crossSpace/(e.lines.length-1),t=0;i=e.lines[++r];)i.crossStart=t,t+=i.cross+n;else if(1<e.lines.length&&"space-around"===e.style.alignContent)for(t=(n=2*e.flexStyle.crossSpace/(2*e.lines.length))/2;i=e.lines[++r];)i.crossStart=t,t+=i.cross+n;else for(n=e.flexStyle.crossSpace/e.lines.length,t=e.flexStyle.crossInnerBefore;i=e.lines[++r];)i.crossStart=t,i.cross+=n,t+=i.cross}},{}],2:[function(e,t,n){t.exports=function(e){for(var t,n=-1;line=e.lines[++n];)for(t=-1;child=line.children[++t];){var i=child.style.alignSelf;"flex-start"===(i="auto"===i?e.style.alignItems:i)?child.flexStyle.crossStart=line.crossStart:"flex-end"===i?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:"center"===i?child.flexStyle.crossStart=line.crossStart+(line.cross-child.flexStyle.crossOuter)/2:(child.flexStyle.crossStart=line.crossStart,child.flexStyle.crossOuter=line.cross,child.flexStyle.cross=child.flexStyle.crossOuter-child.flexStyle.crossBefore-child.flexStyle.crossAfter)}}},{}],3:[function(e,t,n){t.exports=function(e,t){var n="row"===t||"row-reverse"===t,i=e.mainAxis;i?n&&"inline"===i||!n&&"block"===i||(e.flexStyle={main:e.flexStyle.cross,cross:e.flexStyle.main,mainOffset:e.flexStyle.crossOffset,crossOffset:e.flexStyle.mainOffset,mainBefore:e.flexStyle.crossBefore,mainAfter:e.flexStyle.crossAfter,crossBefore:e.flexStyle.mainBefore,crossAfter:e.flexStyle.mainAfter,mainInnerBefore:e.flexStyle.crossInnerBefore,mainInnerAfter:e.flexStyle.crossInnerAfter,crossInnerBefore:e.flexStyle.mainInnerBefore,crossInnerAfter:e.flexStyle.mainInnerAfter,mainBorderBefore:e.flexStyle.crossBorderBefore,mainBorderAfter:e.flexStyle.crossBorderAfter,crossBorderBefore:e.flexStyle.mainBorderBefore,crossBorderAfter:e.flexStyle.mainBorderAfter}):(e.flexStyle=n?{main:e.style.width,cross:e.style.height,mainOffset:e.style.offsetWidth,crossOffset:e.style.offsetHeight,mainBefore:e.style.marginLeft,mainAfter:e.style.marginRight,crossBefore:e.style.marginTop,crossAfter:e.style.marginBottom,mainInnerBefore:e.style.paddingLeft,mainInnerAfter:e.style.paddingRight,crossInnerBefore:e.style.paddingTop,crossInnerAfter:e.style.paddingBottom,mainBorderBefore:e.style.borderLeftWidth,mainBorderAfter:e.style.borderRightWidth,crossBorderBefore:e.style.borderTopWidth,crossBorderAfter:e.style.borderBottomWidth}:{main:e.style.height,cross:e.style.width,mainOffset:e.style.offsetHeight,crossOffset:e.style.offsetWidth,mainBefore:e.style.marginTop,mainAfter:e.style.marginBottom,crossBefore:e.style.marginLeft,crossAfter:e.style.marginRight,mainInnerBefore:e.style.paddingTop,mainInnerAfter:e.style.paddingBottom,crossInnerBefore:e.style.paddingLeft,crossInnerAfter:e.style.paddingRight,mainBorderBefore:e.style.borderTopWidth,mainBorderAfter:e.style.borderBottomWidth,crossBorderBefore:e.style.borderLeftWidth,crossBorderAfter:e.style.borderRightWidth},"content-box"===e.style.boxSizing&&("number"==typeof e.flexStyle.main&&(e.flexStyle.main+=e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),"number"==typeof e.flexStyle.cross&&(e.flexStyle.cross+=e.flexStyle.crossInnerBefore+e.flexStyle.crossInnerAfter+e.flexStyle.crossBorderBefore+e.flexStyle.crossBorderAfter))),e.mainAxis=n?"inline":"block",e.crossAxis=n?"block":"inl
573ine","number"==typeof e.style.flexBasis&&(e.flexStyle.main=e.style.flexBasis+e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),e.flexStyle.mainOuter=e.flexStyle.main,e.flexStyle.crossOuter=e.flexStyle.cross,"auto"===e.flexStyle.mainOuter&&(e.flexStyle.mainOuter=e.flexStyle.mainOffset),"auto"===e.flexStyle.crossOuter&&(e.flexStyle.crossOuter=e.flexStyle.crossOffset),"number"==typeof e.flexStyle.mainBefore&&(e.flexStyle.mainOuter+=e.flexStyle.mainBefore),"number"==typeof e.flexStyle.mainAfter&&(e.flexStyle.mainOuter+=e.flexStyle.mainAfter),"number"==typeof e.flexStyle.crossBefore&&(e.flexStyle.crossOuter+=e.flexStyle.crossBefore),"number"==typeof e.flexStyle.crossAfter&&(e.flexStyle.crossOuter+=e.flexStyle.crossAfter)}},{}],4:[function(e,t,n){var r=e("../reduce");t.exports=function(n){var i;0<n.mainSpace&&(0<(i=r(n.children,function(e,t){return e+parseFloat(t.style.flexGrow)},0))&&(n.main=r(n.children,function(e,t){return"auto"===t.flexStyle.main?t.flexStyle.main=t.flexStyle.mainOffset+parseFloat(t.style.flexGrow)/i*n.mainSpace:t.flexStyle.main+=parseFloat(t.style.flexGrow)/i*n.mainSpace,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,e+t.flexStyle.mainOuter},0),n.mainSpace=0))}},{"../reduce":12}],5:[function(e,t,n){var r=e("../reduce");t.exports=function(n){var i;n.mainSpace<0&&(0<(i=r(n.children,function(e,t){return e+parseFloat(t.style.flexShrink)},0))&&(n.main=r(n.children,function(e,t){return t.flexStyle.main+=parseFloat(t.style.flexShrink)/i*n.mainSpace,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,e+t.flexStyle.mainOuter},0),n.mainSpace=0))}},{"../reduce":12}],6:[function(e,t,n){var r=e("../reduce");t.exports=function(e){var t;e.lines=[t={main:0,cross:0,children:[]}];for(var n,i=-1;n=e.children[++i];)"nowrap"===e.style.flexWrap||0===t.children.length||"auto"===e.flexStyle.main||e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter>=t.main+n.flexStyle.mainOuter?(t.main+=n.flexStyle.mainOuter,t.cross=Math.max(t.cross,n.flexStyle.crossOuter)):e.lines.push(t={main:n.flexStyle.mainOuter,cross:n.flexStyle.crossOuter,children:[]}),t.children.push(n);e.flexStyle.mainLines=r(e.lines,function(e,t){return Math.max(e,t.main)},0),e.flexStyle.crossLines=r(e.lines,function(e,t){return e+t.cross},0),"auto"===e.flexStyle.main&&(e.flexStyle.main=Math.max(e.flexStyle.mainOffset,e.flexStyle.mainLines+e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter)),"auto"===e.flexStyle.cross&&(e.flexStyle.cross=Math.max(e.flexStyle.crossOffset,e.flexStyle.crossLines+e.flexStyle.crossInnerBefore+e.flexStyle.crossInnerAfter+e.flexStyle.crossBorderBefore+e.flexStyle.crossBorderAfter)),e.flexStyle.crossSpace=e.flexStyle.cross-e.flexStyle.crossInnerBefore-e.flexStyle.crossInnerAfter-e.flexStyle.crossBorderBefore-e.flexStyle.crossBorderAfter-e.flexStyle.crossLines,e.flexStyle.mainOuter=e.flexStyle.main+e.flexStyle.mainBefore+e.flexStyle.mainAfter,e.flexStyle.crossOuter=e.flexStyle.cross+e.flexStyle.crossBefore+e.flexStyle.crossAfter}},{"../reduce":12}],7:[function(r,e,t){e.exports=function(e){for(var t,n,i=-1;t=e.children[++i];)r("./flex-direction")(t,e.style.flexDirection);for(r("./flex-direction")(e,e.style.flexDirection),r("./order")(e),r("./flexbox-lines")(e),r("./align-content")(e),i=-1;n=e.lines[++i];)n.mainSpace=e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter-n.main,r("./flex-grow")(n),r("./flex-shrink")(n),r("./margin-main")(n),r("./margin-cross")(n),r("./justify-content")(n,e.style.justifyContent,e);r("./align-items")(e)}},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(e,t,n){t.exports=function(e,t,n){var i,r,o,n=n.flexStyle.mainInnerBefore,s=-1;if("flex-end"===t)for(i=e.mainSpace,i+=n;o=e.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter;else if("center"===t)for(i=e.mainSpace/2,i+=n;o=e.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter;else if("space-between"===t)for(r=e.mainSpace/(e.children.length-1),i=0,i+=n;o=e.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter+r;else if("space-around"===t)for(i=(r=2*e.mainSpace/(2*e.children.length))/2,i+=n;o=e.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter+r;else for(i=0,i+=n;o=e.children[++s];)o.flexStyle.mainStart=i,i+=o.flexStyle.mainOuter}},{}],9:[function(e,t,n){t.exports=function(e){for(var t,n=-1;t=e.children[++n];){var i=0;"auto"===t.flexStyle.crossBefore&&++i,"auto"===t.flexStyle.crossAfter&&
573++i;var r=e.cross-t.flexStyle.crossOuter;"auto"===t.flexStyle.crossBefore&&(t.flexStyle.crossBefore=r/i),"auto"===t.flexStyle.crossAfter&&(t.flexStyle.crossAfter=r/i),"auto"===t.flexStyle.cross?t.flexStyle.crossOuter=t.flexStyle.crossOffset+t.flexStyle.crossBefore+t.flexStyle.crossAfter:t.flexStyle.crossOuter=t.flexStyle.cross+t.flexStyle.crossBefore+t.flexStyle.crossAfter}}},{}],10:[function(e,t,n){t.exports=function(e){for(var t,n=0,i=-1;t=e.children[++i];)"auto"===t.flexStyle.mainBefore&&++n,"auto"===t.flexStyle.mainAfter&&++n;if(0<n){for(i=-1;t=e.children[++i];)"auto"===t.flexStyle.mainBefore&&(t.flexStyle.mainBefore=e.mainSpace/n),"auto"===t.flexStyle.mainAfter&&(t.flexStyle.mainAfter=e.mainSpace/n),"auto"===t.flexStyle.main?t.flexStyle.mainOuter=t.flexStyle.mainOffset+t.flexStyle.mainBefore+t.flexStyle.mainAfter:t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter;e.mainSpace=0}}},{}],11:[function(e,t,n){var i=/^(column|row)-reverse$/;t.exports=function(e){e.children.sort(function(e,t){return e.style.order-t.style.order||e.index-t.index}),i.test(e.style.flexDirection)&&e.children.reverse()}},{}],12:[function(e,t,n){t.exports=function(e,t,n){for(var i=e.length,r=-1;++r<i;)r in e&&(n=t(n,e[r],r));return n}},{}],13:[function(e,t,n){var i=e("./read"),r=e("./write"),o=e("./readAll"),s=e("./writeAll");t.exports=function(e){s(o(e))},t.exports.read=i,t.exports.write=r,t.exports.readAll=o,t.exports.writeAll=s},{"./read":15,"./readAll":16,"./write":17,"./writeAll":18}],14:[function(e,t,n){t.exports=function(e,t){var n=String(e).match(r);if(!n)return e;var i=n[1];return"px"===(n=n[2])?+i:"cm"===n?.3937*i*96:"in"===n?96*i:"mm"===n?.3937*i*96/10:"pc"===n?12*i*96/72:"pt"===n?96*i/72:"rem"===n?16*i:function(e,t){o.style.cssText="border:none!important;clip:rect(0 0 0 0)!important;display:block!important;font-size:1em!important;height:0!important;margin:0!important;padding:0!important;position:relative!important;width:"+e+"!important",t.parentNode.insertBefore(o,t.nextSibling);e=o.offsetWidth;return t.parentNode.removeChild(o),e}(e,t)};var r=/^([-+]?\d*\.?\d+)(%|[a-z]+)$/,o=document.createElement("div")},{}],15:[function(e,t,n){t.exports=function(e){var t={alignContent:"stretch",alignItems:"stretch",alignSelf:"auto",borderBottomWidth:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,boxSizing:"content-box",display:"inline",flexBasis:"auto",flexDirection:"row",flexGrow:0,flexShrink:1,flexWrap:"nowrap",justifyContent:"flex-start",height:"auto",marginTop:0,marginRight:0,marginLeft:0,marginBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,paddingBottom:0,maxHeight:"none",maxWidth:"none",minHeight:0,minWidth:0,order:0,position:"static",width:"auto"};if(e instanceof Element){var n,i=e.hasAttribute("data-style"),r=i?e.getAttribute("data-style"):e.getAttribute("style")||"";for(n in i||e.setAttribute("data-style",r),function(e,t){for(var n in e)n in t&&!/^(alignSelf|height|width)$/.test(n)&&(e[n]=t[n])}(t,window.getComputedStyle&&getComputedStyle(e)||{}),function(e,t){for(var n in e){var i;n in t?e[n]=t[n]:(i=n.replace(/[A-Z]/g,"-$&").toLowerCase())in t&&(e[n]=t[i])}"-js-display"in t&&(e.display=t["-js-display"])}(t,e.currentStyle||{}),function(e,t){for(var n;n=o.exec(t);){var i=n[1].toLowerCase().replace(/-[a-z]/g,function(e){return e.slice(1).toUpperCase()});e[i]=n[2]}}(t,r),t)t[n]=s(t[n],e);r=e.getBoundingClientRect();t.offsetHeight=r.height||e.offsetHeight,t.offsetWidth=r.width||e.offsetWidth}return{element:e,style:t}};var o=/([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g,s=e("./getComputedLength")},{"./getComputedLength":14}],16:[function(e,t,n){function u(e){var t=e instanceof Element,n=t&&e.getAttribute("data-style"),e=t&&e.currentStyle&&e.currentStyle["-js-display"];return i.test(n)||r.test(e)}t.exports=function(e){var t=[];return function e(t,n){for(var i,r=u(t),o=[],s=-1;i=t.childNodes[++s];){var a=3===i.nodeType&&!/^\s*$/.test(i.nodeValue);r&&a&&(l=i,(i=t.insertBefore(document.createElement("flex-item"),l)).appendChild(l));var l,a=i instanceof Element;a&&(l=e(i,n),r&&((a=i.style).display="inline-block",a.position="absolute",l.style=f(i).style,o.push(l)))}var c={element:t,children:o};return r&&(c.style=f(t).style,n.push(c)),c}(e,t),t};var f=e("../read"),i=/(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i,r=/^(inline-)?flex$/i},{"../read":15}],17:[function(e,t,n){function a(e){return"string"==typeof e?e:Math.max(e,0)+"px"}t.exports=function(e){l(e);var t=e.element.style,n="inline"===e.mainAxis?["main","cross"]:["cross","main"];t.boxSizing="content-box",t.display="block",t.position="relative",t.width=a(e.flexStyle[n[0]]-e.flexStyle[n[0]+"InnerBefore"]-e.flexStyle[n[0]+"InnerAfter"]-e.flexStyle[n[0]+"BorderBefore"]-e.flexStyle[n[0]+"BorderAfter"]),t.height=a(e.flexStyle[n[1]]-e.flexStyle[n[1]+"InnerBefore"]-e.flexStyle[n[1]+"InnerAfter"]-e.flexStyle[n[1]+"BorderBefore"]-e.flexStyle[n[1]+"BorderAfter"]);for(var i,r=-1;i=e.children[++r];){var o=i.element.style,s="inline"===i.mainAxis?["main","cross"]:["cross","main"];o.boxSizing="content-box",o.display="block",o.position="absolute","auto"!==i.flexStyle[s[0]]&&(o.width=a(i.flexStyle[s[0]]-i.flexStyle[s[0]+"InnerBefore"]-i.flexStyle[s[0]+"InnerAfter"]-i.flexStyle[s[0]+"BorderBefore"]-i.flexStyle[s[0]+"BorderAfter"])),"auto"!==i.flexStyle[s[1]]&&(o.height=a(i.flexStyle[s[1]]-i.flexStyle[s[1]+"InnerBefore"]-i.flexStyle[s[1]+"InnerAfter"]-i.flexStyle[s[1]+"BorderBefore"]-i.flexStyle[s[1]+"BorderAfter"])),o.top=a(i.flexStyle[s[1]+"Start"]),o.left=a(i.flexStyle[s[0]+"Start"]),o.marginTop=a(i.flexStyle[s[1]+"Before"]),o.marginRight=a(i.flexStyle[s[0]+"After"]),o.marginBottom=a(i.flexStyle[s[1]+"After"]),o.marginLeft=a(i.flexStyle[s[0]+"Before"])}};var l=e("../flexbox")},{"../flexbox":7}],18:[function(e,t,n){t.exports=function(e){for(var t,n=-1;t=e[++n];)i(t)};var i=e("../write")},{"../write":17}]},{},[13])(13)},990:(e,t,n)=>{var i,r,o;o=function(ae){"use strict";function i(e,s){function t(e){if(!(!0===X.data(De+"_intouch")||0<ae(e.target).closest(s.excludedElements,X).length)){var t=e.originalEvent||e;if(!t.pointerType||"mouse"!=t.pointerType||0!=s.fallbackToMouseEvents){var n,i=t.touches,r=i?i[0]:t;return G=Ce,i?Z=i.length:!1!==s.preventDefaultEvents&&e.preventDefault(),Y=R=H=null,U=1,Q=z=q=$=W=0,(e={}
573)[le]=O(le),e[ce]=O(ce),e[ue]=O(ue),e[fe]=O(fe),K=e,S(),E(0,r),!i||Z===s.fingers||s.fingers===Se||m()?(ee=N(),2==Z&&(E(1,i[1]),q=z=P(J[0].start,J[1].start)),(s.swipeStatus||s.pinchStatus)&&(n=c(t,G))):n=!1,!1===n?(c(t,G=ke),n):(s.hold&&(se=setTimeout(ae.proxy(function(){X.trigger("hold",[t.target]),s.hold&&(n=s.hold.call(X,t,t.target))},this),s.longTapThreshold)),C(!0),null)}}}function n(e){var t,n,i,r,o=e.originalEvent||e;G===Ae||G===ke||T()||(t=A((n=o.touches)?n[0]:o),te=N(),n&&(Z=n.length),s.hold&&clearTimeout(se),G=Ee,2==Z&&(0==q?(E(1,n[1]),q=z=P(J[0].start,J[1].start)):(A(n[1]),z=P(J[0].end,J[1].end),J[0].end,J[1].end,Y=U<1?he:de),U=(z/q*1).toFixed(2),Q=Math.abs(q-z)),Z===s.fingers||s.fingers===Se||!n||m()?(H=D(t.start,t.end),function(e,t){if(!1!==s.preventDefaultEvents)if(s.allowPageScroll===pe)e.preventDefault();else{var n=s.allowPageScroll===me;switch(t){case le:(s.swipeLeft&&n||!n&&s.allowPageScroll!=xe)&&e.preventDefault();break;case ce:(s.swipeRight&&n||!n&&s.allowPageScroll!=xe)&&e.preventDefault();break;case ue:(s.swipeUp&&n||!n&&s.allowPageScroll!=_e)&&e.preventDefault();break;case fe:(s.swipeDown&&n||!n&&s.allowPageScroll!=_e)&&e.preventDefault()}}}(e,R=D(t.last,t.end)),i=t.start,r=t.end,W=Math.round(Math.sqrt(Math.pow(r.x-i.x,2)+Math.pow(r.y-i.y,2))),$=I(),n=W,(e=H)!=pe&&(n=Math.max(n,k(e)),K[e].distance=n),r=c(o,G),s.triggerOnTouchEnd&&!s.triggerOnTouchLeave||(i=!0,s.triggerOnTouchLeave&&(e={left:(n=(e=ae(e=this)).offset()).left,right:n.left+e.outerWidth(),top:n.top,bottom:n.top+e.outerHeight()},t=t.end,e=e,i=t.x>e.left&&t.x<e.right&&t.y>e.top&&t.y<e.bottom),!s.triggerOnTouchEnd&&i?G=l(Ee):s.triggerOnTouchLeave&&!i&&(G=l(Ae)),G!=ke&&G!=Ae||c(o,G))):c(o,G=ke),!1===r&&c(o,G=ke))}function i(e){var t,n=e.originalEvent||e,i=n.touches;if(i){if(i.length&&!T())return t=n,ne=N(),ie=t.touches.length+1,!0;if(i.length&&T())return!0}return T()&&(Z=ie),te=N(),$=I(),d()||!f()?c(n,G=ke):s.triggerOnTouchEnd||!1===s.triggerOnTouchEnd&&G===Ee?(!1!==s.preventDefaultEvents&&!1!==e.cancelable&&e.preventDefault(),c(n,G=Ae)):!s.triggerOnTouchEnd&&w()?u(n,G=Ae,ve):G===Ee&&c(n,G=ke),C(!1),null}function r(){z=q=ee=te=Z=0,S(),C(!(U=1))}function o(e){e=e.originalEvent||e;s.triggerOnTouchLeave&&c(e,G=l(Ae))}function a(){X.off(B,t),X.off(M,r),X.off(F,n),X.off(L,i),V&&X.off(V,o),C(!1)}function l(e){var t=e,n=h(),i=f(),r=d();return!n||r?t=ke:!i||e!=Ee||s.triggerOnTouchEnd&&!s.triggerOnTouchLeave?!i&&e==Ae&&s.triggerOnTouchLeave&&(t=ke):t=Ae,t}function c(e,t){var n,i=e.touches;return(g()&&y()||y())&&(n=u(e,t,ge)),(p()&&m()||m())&&!1!==n&&(n=u(e,t,ye)),_()&&x()&&!1!==n?n=u(e,t,be):$>s.longTapThreshold&&W<Te&&s.longTap&&!1!==n?n=u(e,t,we):1!==Z&&Oe||!(isNaN(W)||W<s.threshold)||!w()||!1===n||(n=u(e,t,ve)),t===ke&&r(),t===Ae&&(i&&i.length||r()),n}function u(e,t,n){var i;if(n==ge){if(X.trigger("swipeStatus",[t,H||null,W||0,$||0,Z,J,R]),s.swipeStatus&&!1===(i=s.swipeStatus.call(X,e,t,H||null,W||0,$||0,Z,J,R)))return!1;if(t==Ae&&g()){if(clearTimeout(oe),clearTimeout(se),X.trigger("swipe",[H,W,$,Z,J,R]),s.swipe&&!1===(i=s.swipe.call(X,e,H,W,$,Z,J,R)))return!1;switch(H){case le:X.trigger("swipeLeft",[H,W,$,Z,J,R]),s.swipeLeft&&(i=s.swipeLeft.call(X,e,H,W,$,Z,J,R));break;case ce:X.trigger("swipeRight",[H,W,$,Z,J,R]),s.swipeRight&&(i=s.swipeRight.call(X,e,H,W,$,Z,J,R));break;case ue:X.trigger("swipeUp",[H,W,$,Z,J,R]),s.swipeUp&&(i=s.swipeUp.call(X,e,H,W,$,Z,J,R));break;case fe:X.trigger("swipeDown",[H,W,$,Z,J,R]),s.swipeDown&&(i=s.swipeDown.call(X,e,H,W,$,Z,J,R))}}}if(n==ye){if(X.trigger("pinchStatus",[t,Y||null,Q||0,$||0,Z,U,J]),s.pinchStatus&&!1===(i=s.pinchStatus.call(X,e,t,Y||null,Q||0,$||0,Z,U,J)))return!1;if(t==Ae&&p())switch(Y){case de:X.trigger("pinchIn",[Y||null,Q||0,$||0,Z,U,J]),s.pinchIn&&(i=s.pinchIn.call(X,e,Y||null,Q||0,$||0,Z,U,J));break;case he:X.trigger("pinchOut",[Y||null,Q||0,$||0,Z,U,J]),s.pinchOut&&(i=s.pinchOut.call(X,e,Y||null,Q||0,$||0,Z,U,J))}}return n==ve?t!==ke&&t!==Ae||(clearTimeout(oe),clearTimeout(se),x()&&!_()?(re=N(),oe=setTimeout(ae.proxy(function(){re=null,X.trigger("tap",[e.target]),s.tap&&(i=s.tap.call(X,e,e.target))},this),s.doubleTapThreshold)):(re=null,X.trigger("tap",[e.target]),s.tap&&
573(i=s.tap.call(X,e,e.target)))):n==be?t!==ke&&t!==Ae||(clearTimeout(oe),clearTimeout(se),re=null,X.trigger("doubletap",[e.target]),s.doubleTap&&(i=s.doubleTap.call(X,e,e.target))):n==we&&(t!==ke&&t!==Ae||(clearTimeout(oe),re=null,X.trigger("longtap",[e.target]),s.longTap&&(i=s.longTap.call(X,e,e.target)))),i}function f(){var e=!0;return e=null!==s.threshold?W>=s.threshold:e}function d(){var e=!1;return e=null!==s.cancelThreshold&&null!==H?k(H)-W>=s.cancelThreshold:e}function h(){return!s.maxTimeThreshold||!($>=s.maxTimeThreshold)}function p(){var e=v(),t=b(),n=null===s.pinchThreshold||Q>=s.pinchThreshold;return e&&t&&n}function m(){return s.pinchStatus||s.pinchIn||s.pinchOut}function g(){var e=h(),t=f(),n=v(),i=b();return!d()&&i&&n&&t&&e}function y(){return s.swipe||s.swipeStatus||s.swipeLeft||s.swipeRight||s.swipeUp||s.swipeDown}function v(){return Z===s.fingers||s.fingers===Se||!Oe}function b(){return 0!==J[0].end.x}function w(){return s.tap}function x(){return!!s.doubleTap}function _(){if(null==re)return!1;var e=N();return x()&&e-re<=s.doubleTapThreshold}function S(){ie=ne=0}function T(){var e=!1;return e=ne&&N()-ne<=s.fingerReleaseThreshold?!0:e}function C(e){X&&(!0===e?(X.on(F,n),X.on(L,i),V&&X.on(V,o)):(X.off(F,n,!1),X.off(L,i,!1),V&&X.off(V,o,!1)),X.data(De+"_intouch",!0===e))}function E(e,t){var n={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return n.start.x=n.last.x=n.end.x=t.pageX||t.clientX,n.start.y=n.last.y=n.end.y=t.pageY||t.clientY,J[e]=n}function A(e){var t=void 0!==e.identifier?e.identifier:0,n=J[t]||null;return(n=null===n?E(t,e):n).last.x=n.end.x,n.last.y=n.end.y,n.end.x=e.pageX||e.clientX,n.end.y=e.pageY||e.clientY,n}function k(e){return K[e]?K[e].distance:void 0}function O(e){return{direction:e,distance:0}}function I(){return te-ee}function P(e,t){var n=Math.abs(e.x-t.x),t=Math.abs(e.y-t.y);return Math.round(Math.sqrt(n*n+t*t))}function D(e,t){if(i=t,(n=e).x==i.x&&n.y==i.y)return pe;var n,i,e=(i=t,e=(t=e).x-i.x,t=i.y-t.y,e=Math.atan2(t,e),e=(e=Math.round(180*e/Math.PI))<0?360-Math.abs(e):e);return e<=45&&0<=e||e<=360&&315<=e?le:135<=e&&e<=225?ce:45<e&&e<135?fe:ue}function N(){return(new Date).getTime()}var s=ae.extend({},s),j=Oe||Pe||!s.fallbackToMouseEvents,B=j?Pe?Ie?"MSPointerDown":"pointerdown":"touchstart":"mousedown",F=j?Pe?Ie?"MSPointerMove":"pointermove":"touchmove":"mousemove",L=j?Pe?Ie?"MSPointerUp":"pointerup":"touchend":"mouseup",V=!j||Pe?"mouseleave":null,M=Pe?Ie?"MSPointerCancel":"pointercancel":"touchcancel",W=0,H=null,R=null,$=0,q=0,z=0,U=1,Q=0,Y=0,K=null,X=ae(e),G="start",Z=0,J={},ee=0,te=0,ne=0,ie=0,re=0,oe=null,se=null;try{X.on(B,t),X.on(M,r)}catch(e){ae.error("events not supported "+B+","+M+" on jQuery.swipe")}this.enable=function(){return this.disable(),X.on(B,t),X.on(M,r),X},this.disable=function(){return a(),X},this.destroy=function(){a(),X.data(De,null),X=null},this.option=function(e,t){if("object"==typeof e)s=ae.extend(s,e);else if(void 0!==s[e]){if(void 0===t)return s[e];s[e]=t}else{if(!e)return s;ae.error("Option "+e+" does not exist on jQuery.swipe.options")}return null}}var le="left",ce="right",ue="up",fe="down",de="in",he="out",pe="none",me="auto",ge="swipe",ye="pinch",ve="tap",be="doubletap",we="longtap",xe="horizontal",_e="vertical",Se="all",Te=10,Ce="start",Ee="move",Ae="end",ke="cancel",Oe="ontouchstart"in window,Ie=window.navigator.msPointerEnabled&&!window.PointerEvent&&!Oe,Pe=(window.PointerEvent||window.navigator.msPointerEnabled)&&!Oe,De="TouchSwipe";ae.fn.swipe=function(e){var t=ae(this),n=t.data(De);if(n&&"string"==typeof e){if(n[e])return n[e].apply(n,Array.prototype.slice.call(arguments,1));ae.error("Method "+e+" does not exist on jQuery.swipe")}else if(n&&"object"==typeof e)n.option.apply(n,arguments);else if(!(n||"object"!=typeof e&&e))return function(n){return!n||void 0!==n.allowPageScroll||void 0===n.swipe&&void 0===n.swipeStatus||(n.allowPageScroll=pe),void 0!==n.click&&void 0===n.tap&&(n.tap=n.click),n=ae.extend({},ae.fn.swipe.defaults,n=n||{}),this.each(function(){var e=ae(this),t=e.data(De);t||(t=new i(this,n),e.data(De,t))})}.apply(this,arguments);return t},ae.fn.swipe.version="1.6.18",ae.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0},ae.fn.swipe.phases={PHASE_START:Ce,PHASE_MOVE:Ee,PHASE_END:Ae,PHASE_CANCEL:ke},ae.fn.swipe.directions={LEFT:le,RIGHT:ce,UP:ue,DOWN:fe,IN:de,OUT:he},ae.fn.swipe.pageScroll={NONE:pe,HORIZONTAL:xe,VERTICAL:_e,AUTO:me},ae.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:Se}},n.amdO.jQuery?(i=[n(609)],void 0===(r="function"==typeof(r=o)?r.apply(t,i):r)||(e.exports=r)):o(e.exports?n(609):jQuery)},519:function(e,t){var n;void 0===(n="function"==typeof(n=function(){"use strict";var t=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1;i.configurable=!0;if("value"in i)i.writable=!0;Object.defineProperty(e,i.key,i)}}return function(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var S=undefined;if(typeof S==="undefined")S={modules:[]};var r=null;function s(e){var t=e.getBoundingClientRect();var n={};for(var i in t)n[i]=t[i];try{if(e.ownerDocument!==document){var r=e.ownerDocument.defaultView.frameElement;if(r){var o=s(r);n.top+=o.top;n.bottom+=o.top;n.left+=o.left;n.right+=o.left}}}catch(e){}return n}function c(e){var t=getComputedStyle(e)||{};var n=t.position;var i=[];if(n==="fixed")return[e];var r=e;
573while((r=r.parentNode)&&r&&r.nodeType===1){var o=undefined;try{o=getComputedStyle(r)}catch(e){}if(typeof o==="undefined"||o===null){i.push(r);return i}var s=o;var a=s.overflow;var l=s.overflowX;var c=s.overflowY;if(/(auto|scroll|overlay)/.test(a+c+l))if(n!=="absolute"||["relative","absolute","fixed"].indexOf(o.position)>=0)i.push(r)}i.push(e.ownerDocument.body);if(e.ownerDocument!==document)i.push(e.ownerDocument.defaultView);return i}var o=function(){var e=0;return function(){return++e}}(),a={},l=function e(){var t=r;if(!t||!document.body.contains(t)){t=document.createElement("div");t.setAttribute("data-tether-id",o());_(t.style,{top:0,left:0,position:"absolute"});document.body.appendChild(t);r=t}var n=t.getAttribute("data-tether-id");if(typeof a[n]==="undefined"){a[n]=s(t);k(function(){delete a[n]})}return a[n]};function u(){if(r)document.body.removeChild(r);r=null}function T(e){var t=undefined;if(e===document){t=document;e=document.documentElement}else t=e.ownerDocument;var n=t.documentElement;var i=s(e);var r=l();i.top-=r.top;i.left-=r.left;if(typeof i.width==="undefined")i.width=document.body.scrollWidth-i.left-i.right;if(typeof i.height==="undefined")i.height=document.body.scrollHeight-i.top-i.bottom;i.top=i.top-n.clientTop;i.left=i.left-n.clientLeft;i.right=t.body.clientWidth-i.width-i.left;i.bottom=t.body.clientHeight-i.height-i.top;return i}function C(e){return e.offsetParent||document.documentElement}var f=null;function E(){if(f)return f;var e=document.createElement("div");e.style.width="100%";e.style.height="200px";var t=document.createElement("div");_(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"});t.appendChild(e);document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var i=e.offsetWidth;if(n===i)i=t.clientWidth;document.body.removeChild(t);var r=n-i;f={width:r,height:r};return f}function _(){var n=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var e=[];Array.prototype.push.apply(e,arguments);e.slice(1).forEach(function(e){if(e)for(var t in e)if({}.hasOwnProperty.call(e,t))n[t]=e[t]});return n}function d(t,e){if(typeof t.classList!=="undefined")e.split(" ").forEach(function(e){if(e.trim())t.classList.remove(e)});else{var n=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi");var i=m(t).replace(n," ");g(t,i)}}function h(t,e){if(typeof t.classList!=="undefined")e.split(" ").forEach(function(e){if(e.trim())t.classList.add(e)});else{d(t,e);var n=m(t)+(" "+e);g(t,n)}}function p(e,t){if(typeof e.classList!=="undefined")return e.classList.contains(t);var n=m(e);return new RegExp("(^| )"+t+"( |$)","gi").test(n)}function m(e){if(e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString)return e.className.baseVal;return e.className}function g(e,t){e.setAttribute("class",t)}function A(t,n,e){e.forEach(function(e){if(n.indexOf(e)===-1&&p(t,e))d(t,e)});n.forEach(function(e){if(!p(t,e))h(t,e)})}var n=[],k=function e(t){n.push(t)},O=function e(){var t=undefined;while(t=n.pop())t()},e=function(){function e(){i(this,e)}t(e,[{key:"on",value:function e(t,n,i){var r=arguments.length<=3||arguments[3]===undefined?false:arguments[3];if(typeof this.bindings==="undefined")this.bindings={};if(typeof this.bindings[t]==="undefined")this.bindings[t]=[];this.bindings[t].push({handler:n,ctx:i,once:r})}},{key:"once",value:function e(t,n,i){this.on(t,n,i,!0)}},{key:"off",value:function e(t,n){if(typeof this.bindings==="undefined"||typeof this.bindings[t]==="undefined")return;if(typeof n==="undefined")delete this.bindings[t];else{var i=0;while(i<this.bindings[t].length)if(this.bindings[t][i].handler===n)this.bindings[t].splice(i,1);else++i}}},{key:"trigger",value:function e(t){if(typeof this.bindings!=="undefined"&&this.bindings[t]){var n=0;for(var i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];while(n<this.bindings[t].length){var s=this.bindings[t][n];var a=s.handler;var l=s.ctx;var c=s.once;var u=l;if(typeof u==="undefined")u=this;a.apply(u,r);if(c)this.bindings[t].splice(n,1);else++n}}}}]);return e}();S.Utils={getActualBoundingClientRect:s,getScrollParents:c,getBounds:T,getOffsetParent:C,extend:_,addClass:h,removeClass:d,hasClass:p,updateClasses:A,defer:k,flush:O,uniqueId:o,Evented:e,getScrollBarSize:E,removeUtilElements:u};var I=function(){function n(e,t){var n=[];var i=!0;var r=!1;var o=undefined;try{for(var s=e[Symbol.iterator](),a;!(i=(a=s.next()).done);i=!0){n.push(a.value);if(t&&n.length===t)break}}catch(e){r=!0;o=e}finally{try{if(!i&&s["return"])s["return"]()}finally{if(r)throw o}}return n}return function(e,t){if(Array.isArray(e))return e;else if(Symbol.iterator in Object(e))return n(e,t);
573else throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),t=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1;i.configurable=!0;if("value"in i)i.writable=!0;Object.defineProperty(e,i.key,i)}}return function(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}}(),y=function e(t,n,i){var r=!0;e:while(r){var o=t,s=n,a=i;r=!1;if(o===null)o=Function.prototype;var l=Object.getOwnPropertyDescriptor(o,s);if(l===undefined){var c=Object.getPrototypeOf(o);if(c===null)return undefined;else{t=c;n=s;i=a;r=!0;l=c=undefined;continue e}}else if("value"in l)return l.value;else{var u=l.get;if(u===undefined)return undefined;return u.call(a)}}};function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}if(typeof S==="undefined")throw new Error("You must include the utils.js file before tether.js");var b=S.Utils,c=b.getScrollParents,T=b.getBounds,C=b.getOffsetParent,_=b.extend,h=b.addClass,d=b.removeClass,A=b.updateClasses,k=b.defer,O=b.flush,E=b.getScrollBarSize,u=b.removeUtilElements;function w(e,t){var n=arguments.length<=2||arguments[2]===undefined?1:arguments[2];return e+n>=t&&t>=e-n}var x=function(){if(typeof document==="undefined")return"";var e=document.createElement("div");var t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"];for(var n=0;n<t.length;++n){var i=t[n];if(e.style[i]!==undefined)return i}}(),P=[],D=function e(){P.forEach(function(e){e.position(!1)});O()};function N(){if(typeof performance==="object"&&typeof performance.now==="function")return performance.now();return+new Date}(function(){var t=null;var n=null;var i=null;var r=function e(){if(typeof n!=="undefined"&&n>16){n=Math.min(n-16,250);i=setTimeout(e,250);return}if(typeof t!=="undefined"&&N()-t<10)return;if(i!=null){clearTimeout(i);i=null}t=N();D();n=N()-t};if(typeof window!=="undefined"&&typeof window.addEventListener!=="undefined")["resize","scroll","touchmove"].forEach(function(e){window.addEventListener(e,r)})})();var j={center:"center",left:"right",right:"left"},B={middle:"middle",top:"bottom",bottom:"top"},F={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},L=function e(t,n){var i=t.left;var r=t.top;if(i==="auto")i=j[n.left];if(r==="auto")r=B[n.top];return{left:i,top:r}},V=function e(t){var n=t.left;var i=t.top;if(typeof F[t.left]!=="undefined")n=F[t.left];if(typeof F[t.top]!=="undefined")i=F[t.top];return{left:n,top:i}};function M(){var i={top:0,left:0};for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(e){var t=e.top;var n=e.left;if(typeof t==="string")t=parseFloat(t,10);if(typeof n==="string")n=parseFloat(n,10);i.top+=t;i.left+=n});return i}function W(e,t){if(typeof e.left==="string"&&e.left.indexOf("%")!==-1)e.left=parseFloat(e.left,10)/100*t.width;if(typeof e.top==="string"&&e.top.indexOf("%")!==-1)e.top=parseFloat(e.top,10)/100*t.height;return e}var H=function e(t){var n=t.split(" ");var i=I(n,2);var r=i[0];var o=i[1];return{top:r,left:o}},R=H,$=function(e){v(n,e);function n(e){var t=this;i(this,n);y(Object.getPrototypeOf(n.prototype),"constructor",this).call(this);this.position=this.position.bind(this);P.push(this);this.history=[];this.setOptions(e,!1);S.modules.forEach(function(e){if(typeof e.initialize!=="undefined")e.initialize.call(t)});this.position()}t(n,[{key:"getClass",value:function e(){var t=arguments.length<=0||arguments[0]===undefined?"":arguments[0];var n=this.options.classes;if(typeof n!=="undefined"&&n[t])return this.options.classes[t];else if(this.options.classPrefix)return this.options.classPrefix+"-"+t;else return t}},{key:"setOptions",value:function e(t){var n=this;var i=arguments.length<=1||arguments[1]===undefined?true:arguments[1];var r={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=_(r,t);var o=this.options;var s=o.element;var a=o.target;var l=o.targetModifier;this.element=s;this.target=a;this.targetModifier=l;if(this.target==="viewport"){this.target=document.body;this.targetModifier="visible"}else if(this.target==="scroll-handle"){this.target=document.body;this.targetModifier="scroll-handle"}["element","target"].forEach(function(e){if(typeof n[e]==="undefined")throw new Error("Tether Error: Both element and target must be defined");if(typeof n[e].jquery!=="undefined")n[e]=n[e][0];else if(typeof n[e]==="string")n[e]=document.querySelector(n[e])});h(this.element,this.getClass("element"));if(!(this.options.addTargetClasses===!1))h(this.target,this.getClass("target"));if(!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=R(this.options.targetAttachment);this.attachment=R(this.options.attachment);this.offset=H(this.options.offset);this.targetOffset=H(this.options.targetOffset);if(typeof this.scrollParents!=="undefined")this.disable();if(this.targetModifier==="scroll-handle")this.scrollParents=[this.target];else this.scrollParents=c(this.target);if(!(this.options.enabled===!1))this.enable(i)}},{key:"getTargetBounds",value:function e(){if(typeof this.targetModifier!=="undefined"){if(this.targetModifier==="visible")if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};else{var t=T(this.target);
573var n={height:t.height,width:t.width,top:t.top,left:t.left};n.height=Math.min(n.height,t.height-(pageYOffset-t.top));n.height=Math.min(n.height,t.height-(t.top+t.height-(pageYOffset+innerHeight)));n.height=Math.min(innerHeight,n.height);n.height-=2;n.width=Math.min(n.width,t.width-(pageXOffset-t.left));n.width=Math.min(n.width,t.width-(t.left+t.width-(pageXOffset+innerWidth)));n.width=Math.min(innerWidth,n.width);n.width-=2;if(n.top<pageYOffset)n.top=pageYOffset;if(n.left<pageXOffset)n.left=pageXOffset;return n}else if(this.targetModifier==="scroll-handle"){var t=undefined;var i=this.target;if(i===document.body){i=document.documentElement;t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}}else t=T(i);var r=getComputedStyle(i);var o=i.scrollWidth>i.clientWidth||[r.overflow,r.overflowX].indexOf("scroll")>=0||this.target!==document.body;var s=0;if(o)s=15;var a=t.height-parseFloat(r.borderTopWidth)-parseFloat(r.borderBottomWidth)-s;var n={width:15,height:a*.975*(a/i.scrollHeight),left:t.left+t.width-parseFloat(r.borderLeftWidth)-15};var l=0;if(a<408&&this.target===document.body)l=-11e-5*Math.pow(a,2)-.00727*a+22.58;if(this.target!==document.body)n.height=Math.max(n.height,24);var c=this.target.scrollTop/(i.scrollHeight-a);n.top=c*(a-n.height-l)+t.top+parseFloat(r.borderTopWidth);if(this.target===document.body)n.height=Math.max(n.height,24);return n}}else return T(this.target)}},{key:"clearCache",value:function e(){this._cache={}}},{key:"cache",value:function e(t,n){if(typeof this._cache==="undefined")this._cache={};if(typeof this._cache[t]==="undefined")this._cache[t]=n.call(this);return this._cache[t]}},{key:"enable",value:function e(){var t=this;var n=arguments.length<=0||arguments[0]===undefined?true:arguments[0];if(!(this.options.addTargetClasses===!1))h(this.target,this.getClass("enabled"));h(this.element,this.getClass("enabled"));this.enabled=!0;this.scrollParents.forEach(function(e){if(e!==t.target.ownerDocument)e.addEventListener("scroll",t.position)});if(n)this.position()}},{key:"disable",value:function e(){var t=this;d(this.target,this.getClass("enabled"));d(this.element,this.getClass("enabled"));this.enabled=!1;if(typeof this.scrollParents!=="undefined")this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function e(){var n=this;this.disable();P.forEach(function(e,t){if(e===n)P.splice(t,1)});if(P.length===0)u()}},{key:"updateAttachClasses",value:function e(t,n){var i=this;t=t||this.attachment;n=n||this.targetAttachment;var r=["left","top","bottom","right","middle","center"];if(typeof this._addAttachClasses!=="undefined"&&this._addAttachClasses.length)this._addAttachClasses.splice(0,this._addAttachClasses.length);if(typeof this._addAttachClasses==="undefined")this._addAttachClasses=[];var o=this._addAttachClasses;if(t.top)o.push(this.getClass("element-attached")+"-"+t.top);if(t.left)o.push(this.getClass("element-attached")+"-"+t.left);if(n.top)o.push(this.getClass("target-attached")+"-"+n.top);if(n.left)o.push(this.getClass("target-attached")+"-"+n.left);var s=[];r.forEach(function(e){s.push(i.getClass("element-attached")+"-"+e);s.push(i.getClass("target-attached")+"-"+e)});k(function(){if(!(typeof i._addAttachClasses!=="undefined"))return;A(i.element,i._addAttachClasses,s);if(!(i.options.addTargetClasses===!1))A(i.target,i._addAttachClasses,s);delete i._addAttachClasses})}},{key:"position",value:function e(){var a=this;var t=arguments.length<=0||arguments[0]===undefined?true:arguments[0];if(!this.enabled)return;this.clearCache();var n=L(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var i=this.cache("element-bounds",function(){return T(a.element)});var r=i.width;var o=i.height;if(r===0&&o===0&&typeof this.lastSize!=="undefined"){var s=this.lastSize;r=s.width;o=s.height}else this.lastSize={width:r,height:o};var l=this.cache("target-bounds",function(){return a.getTargetBounds()});var c=l;var u=W(V(this.attachment),{width:r,height:o});var f=W(V(n),c);var d=W(this.offset,{width:r,height:o});var h=W(this.targetOffset,c);u=M(u,d);f=M(f,h);var p=l.left+f.left-u.left;var m=l.top+f.top-u.top;for(var g=0;g<S.modules.length;++g){var y=S.modules[g];var v=y.position.call(this,{left:p,top:m,targetAttachment:n,targetPos:l,elementPos:i,offset:u,targetOffset:f,manualOffset:d,manualTargetOffset:h,scrollbarSize:_,attachment:this.attachment});if(v===!1)return!1;else if(typeof v==="undefined"||typeof v!=="object")continue;else{m=v.top;p=v.left}}var b={page:{top:m,left:p},viewport:{top:m-pageYOffset,bottom:pageYOffset-m-o+innerHeight,left:p-pageXOffset,right:pageXOffset-p-r+innerWidth}};var w=this.target.ownerDocument;var x=w.defaultView;var _=undefined;if(x.innerHeight>w.documentElement.clientHeight){_=this.cache("scrollbar-size",E);b.viewport.bottom-=_.height}if(x.innerWidth>w.documentElement.clientWidth){_=this.cache("scrollbar-size",E);b.viewport.right-=_.width}if(["","static"].indexOf(w.body.style.position)===-1||["","static"].indexOf(w.body.parentElement.style.position)===-1){b.page.bottom=w.body.scrollHeight-m-o;b.page.right=w.body.scrollWidth-p-r}if(typeof this.options.optimizations!=="undefined"&&this.options.optimizations.moveElement!==!1&&!(typeof this.targetModifier!=="undefined"))(function(){var e=a.cache("target-offsetparent",function(){return C(a.target)});var t=a.cache("target-offsetparent-bounds",function(){return T(e)});var n=getComputedStyle(e);var i=t;var r={};["Top","Left","Bottom","Right"].forEach(function(e){r[e.toLowerCase()]=parseFloat(n["border"+e+"Width"])});t.right=w.body.scrollWidth-t.left-i.width+r.right;t.bottom=w.body.scrollHeight-t.top-i.height+r.bottom;
573if(b.page.top>=t.top+r.top&&b.page.bottom>=t.bottom)if(b.page.left>=t.left+r.left&&b.page.right>=t.right){var o=e.scrollTop;var s=e.scrollLeft;b.offset={top:b.page.top-t.top+o-r.top,left:b.page.left-t.left+s-r.left}}})();this.move(b);this.history.unshift(b);if(this.history.length>3)this.history.pop();if(t)O();return!0}},{key:"move",value:function e(t){var a=this;if(!(typeof this.element.parentNode!=="undefined"))return;var n={};for(var i in t){n[i]={};for(var r in t[i]){var o=!1;for(var s=0;s<this.history.length;++s){var l=this.history[s];if(typeof l[i]!=="undefined"&&!w(l[i][r],t[i][r])){o=!0;break}}if(!o)n[i][r]=!0}}var c={top:"",left:"",right:"",bottom:""};var u=function e(t,n){var i=typeof a.options.optimizations!=="undefined";var r=i?a.options.optimizations.gpu:null;if(r!==!1){var o=undefined,s=undefined;if(t.top){c.top=0;o=n.top}else{c.bottom=0;o=-n.bottom}if(t.left){c.left=0;s=n.left}else{c.right=0;s=-n.right}if(typeof window.devicePixelRatio==="number"&&devicePixelRatio%1===0){s=Math.round(s*devicePixelRatio)/devicePixelRatio;o=Math.round(o*devicePixelRatio)/devicePixelRatio}c[x]="translateX("+s+"px) translateY("+o+"px)";if(x!=="msTransform")c[x]+=" translateZ(0)"}else{if(t.top)c.top=n.top+"px";else c.bottom=n.bottom+"px";if(t.left)c.left=n.left+"px";else c.right=n.right+"px"}};var f=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)){c.position="absolute";u(n.page,t.page)}else if((n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)){c.position="fixed";u(n.viewport,t.viewport)}else if(typeof n.offset!=="undefined"&&n.offset.top&&n.offset.left)(function(){c.position="absolute";var e=a.cache("target-offsetparent",function(){return C(a.target)});if(C(a.element)!==e)k(function(){a.element.parentNode.removeChild(a.element);e.appendChild(a.element)});u(n.offset,t.offset);f=!0})();else{c.position="absolute";u({top:!0,left:!0},t.page)}if(!f)if(this.options.bodyElement){if(this.element.parentNode!==this.options.bodyElement)this.options.bodyElement.appendChild(this.element)}else{var d=function e(t){var n=t.ownerDocument;var i=n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement;return i===t};var h=!0;var p=this.element.parentNode;while(p&&p.nodeType===1&&p.tagName!=="BODY"&&!d(p)){if(getComputedStyle(p).position!=="static"){h=!1;break}p=p.parentNode}if(!h){this.element.parentNode.removeChild(this.element);this.element.ownerDocument.body.appendChild(this.element)}}var m={};var g=!1;for(var r in c){var y=c[r];var v=this.element.style[r];if(v!==y){g=!0;m[r]=y}}if(g)k(function(){_(a.element.style,m);a.trigger("repositioned")})}}]);return n}(e);$.modules=[],S.position=D;var q=_($,S);"use strict";var I=function(){function n(e,t){var n=[];var i=!0;var r=!1;var o=undefined;try{for(var s=e[Symbol.iterator](),a;!(i=(a=s.next()).done);i=!0){n.push(a.value);if(t&&n.length===t)break}}catch(e){r=!0;o=e}finally{try{if(!i&&s["return"])s["return"]()}finally{if(r)throw o}}return n}return function(e,t){if(Array.isArray(e))return e;else if(Symbol.iterator in Object(e))return n(e,t);else throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b,T=(b=S.Utils).getBounds,_=b.extend,A=b.updateClasses,k=b.defer,z=["left","top","right","bottom"];function U(e,o){if(o==="scrollParent")o=e.scrollParents[0];else if(o==="window")o=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset];if(o===document)o=o.documentElement;if(typeof o.nodeType!=="undefined")(function(){var e=o;var t=T(o);var n=t;var i=getComputedStyle(o);o=[n.left,n.top,t.width+n.left,t.height+n.top];if(e.ownerDocument!==document){var r=e.ownerDocument.defaultView;o[0]+=r.pageXOffset;o[1]+=r.pageYOffset;o[2]+=r.pageXOffset;o[3]+=r.pageYOffset}z.forEach(function(e,t){e=e[0].toUpperCase()+e.substr(1);if(e==="Top"||e==="Left")o[t]+=parseFloat(i["border"+e+"Width"]);else o[t]-=parseFloat(i["border"+e+"Width"])})})();return o}S.modules.push({position:function e(t){var f=this;var d=t.top;var h=t.left;var p=t.targetAttachment;if(!this.options.constraints)return!0;var n=this.cache("element-bounds",function(){return T(f.element)});var m=n.height;var g=n.width;if(g===0&&m===0&&typeof this.lastSize!=="undefined"){var i=this.lastSize;g=i.width;m=i.height}var r=this.cache("target-bounds",function(){return f.getTargetBounds()});var y=r.height;var v=r.width;var o=[this.getClass("pinned"),this.getClass("out-of-bounds")];
573this.options.constraints.forEach(function(e){var t=e.outOfBoundsClass;var n=e.pinnedClass;if(t)o.push(t);if(n)o.push(n)});o.forEach(function(t){["left","top","right","bottom"].forEach(function(e){o.push(t+"-"+e)})});var b=[];var w=_({},p);var x=_({},this.attachment);this.options.constraints.forEach(function(e){var t=e.to;var n=e.attachment;var i=e.pin;if(typeof n==="undefined")n="";var r=undefined,o=undefined;if(n.indexOf(" ")>=0){var s=n.split(" ");var a=I(s,2);o=a[0];r=a[1]}else r=o=n;var l=U(f,t);if(o==="target"||o==="both"){if(d<l[1]&&w.top==="top"){d+=y;w.top="bottom"}if(d+m>l[3]&&w.top==="bottom"){d-=y;w.top="top"}}if(o==="together"){if(w.top==="top")if(x.top==="bottom"&&d<l[1]){d+=y;w.top="bottom";d+=m;x.top="top"}else if(x.top==="top"&&d+m>l[3]&&d-(m-y)>=l[1]){d-=m-y;w.top="bottom";x.top="bottom"}if(w.top==="bottom")if(x.top==="top"&&d+m>l[3]){d-=y;w.top="top";d-=m;x.top="bottom"}else if(x.top==="bottom"&&d<l[1]&&d+(m*2-y)<=l[3]){d+=m-y;w.top="top";x.top="top"}if(w.top==="middle")if(d+m>l[3]&&x.top==="top"){d-=m;x.top="bottom"}else if(d<l[1]&&x.top==="bottom"){d+=m;x.top="top"}}if(r==="target"||r==="both"){if(h<l[0]&&w.left==="left"){h+=v;w.left="right"}if(h+g>l[2]&&w.left==="right"){h-=v;w.left="left"}}if(r==="together")if(h<l[0]&&w.left==="left"){if(x.left==="right"){h+=v;w.left="right";h+=g;x.left="left"}else if(x.left==="left"){h+=v;w.left="right";h-=g;x.left="right"}}else if(h+g>l[2]&&w.left==="right"){if(x.left==="left"){h-=v;w.left="left";h-=g;x.left="right"}else if(x.left==="right"){h-=v;w.left="left";h+=g;x.left="left"}}
573else if(w.left==="center")if(h+g>l[2]&&x.left==="left"){h-=g;x.left="right"}else if(h<l[0]&&x.left==="right"){h+=g;x.left="left"}if(o==="element"||o==="both"){if(d<l[1]&&x.top==="bottom"){d+=m;x.top="top"}if(d+m>l[3]&&x.top==="top"){d-=m;x.top="bottom"}}if(r==="element"||r==="both"){if(h<l[0])if(x.left==="right"){h+=g;x.left="left"}else if(x.left==="center"){h+=g/2;x.left="left"}if(h+g>l[2])if(x.left==="left"){h-=g;x.left="right"}else if(x.left==="center"){h-=g/2;x.left="right"}}if(typeof i==="string")i=i.split(",").map(function(e){return e.trim()});else if(i===!0)i=["top","left","right","bottom"];i=i||[];var c=[];var u=[];if(d<l[1])if(i.indexOf("top")>=0){d=l[1];c.push("top")}else u.push("top");if(d+m>l[3])if(i.indexOf("bottom")>=0){d=l[3]-m;c.push("bottom")}else u.push("bottom");if(h<l[0])if(i.indexOf("left")>=0){h=l[0];c.push("left")}else u.push("left");if(h+g>l[2])if(i.indexOf("right")>=0){h=l[2]-g;c.push("right")}else u.push("right");if(c.length)(function(){var t=undefined;if(typeof f.options.pinnedClass!=="undefined")t=f.options.pinnedClass;else t=f.getClass("pinned");b.push(t);
573c.forEach(function(e){b.push(t+"-"+e)})})();if(u.length)(function(){var t=undefined;if(typeof f.options.outOfBoundsClass!=="undefined")t=f.options.outOfBoundsClass;else t=f.getClass("out-of-bounds");b.push(t);u.forEach(function(e){b.push(t+"-"+e)})})();if(c.indexOf("left")>=0||c.indexOf("right")>=0)x.left=w.left=!1;if(c.indexOf("top")>=0||c.indexOf("bottom")>=0)x.top=w.top=!1;if(w.top!==p.top||w.left!==p.left||x.top!==f.attachment.top||x.left!==f.attachment.left){f.updateAttachClasses(x,w);f.trigger("update",{attachment:x,targetAttachment:w})}});k(function(){if(!(f.options.addTargetClasses===!1))A(f.target,b,o);A(f.element,b,o)});return{top:d,left:h}}});var b,T=(b=S.Utils).getBounds,A=b.updateClasses,k=b.defer;S.modules.push({position:function e(t){var n=this;var i=t.top;var r=t.left;var o=this.cache("element-bounds",function(){return T(n.element)});var s=o.height;var a=o.width;var l=this.getTargetBounds();var c=i+s;var u=r+a;var f=[];if(i<=l.bottom&&c>=l.top)["left","right"].forEach(function(e){var t=l[e];if(t===r||t===u)f.push(e)});if(r<=l.right&&u>=l.left)["top","bottom"].forEach(function(e){var t=l[e];if(t===i||t===c)f.push(e)});var d=[];var h=[];var p=["left","top","right","bottom"];d.push(this.getClass("abutted"));p.forEach(function(e){d.push(n.getClass("abutted")+"-"+e)});if(f.length)h.push(this.getClass("abutted"));f.forEach(function(e){h.push(n.getClass("abutted")+"-"+e)});k(function(){if(!(n.options.addTargetClasses===!1))A(n.target,h,d);A(n.element,h,d)});return!0}});var I=function(){function n(e,t){var n=[];var i=!0;var r=!1;var o=undefined;try{for(var s=e[Symbol.iterator](),a;!(i=(a=s.next()).done);i=!0){n.push(a.value);if(t&&n.length===t)break}}catch(e){r=!0;o=e}finally{try{if(!i&&s["return"])s["return"]()}finally{if(r)throw o}}return n}return function(e,t){if(Array.isArray(e))return e;else if(Symbol.iterator in Object(e))return n(e,t);else throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return S.modules.push({position:function e(t){var n=t.top;var i=t.left;if(!this.options.shift)return;var r=this.options.shift;if(typeof this.options.shift==="function")r=this.options.shift.call(this,{top:n,left:i});var o=undefined,s=undefined;if(typeof r==="string"){r=r.split(" ");r[1]=r[1]||r[0];var a=r;var l=I(a,2);o=l[0];s=l[1];o=parseFloat(o,10);s=parseFloat(s,10)}else{o=r.top;s=r.left}n+=o;i+=s;return{top:n,left:i}}}),q})?n.apply(t,[]):n)||(e.exports=n)},5:(t,n,i)=>{var r;!function(t){"use strict";if(!t.jQuery){var c=function(e,t){return new c.fn.init(e,t)};c.isWindow=function(e){return e&&e===e.window},c.type=function(e){return e?"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e:e+""},c.isArray=Array.isArray||function(e){return"array"===c.type(e)},c.isPlainObject=function(e){if(!e||"object"!==c.type(e)||e.nodeType||c.isWindow(e))return!1;try{if(e.constructor&&!i.call(e,"constructor")&&!i.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(var t in e);return void 0===t||i.call(e,t)},c.each=function(e,t,n){var i=0,r=e.length,o=a(e);if(n){if(o)for(;i<r&&!1!==t.apply(e[i],n);i++);else for(i in e)if(e.hasOwnProperty(i)&&!1===t.apply(e[i],n))break}else if(o)for(;i<r&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(e.hasOwnProperty(i)&&!1===t.call(e[i],i,e[i]))break;return e},c.data=function(e,t,n){if(void 0===n){var i=e[c.expando],i=i&&r[i];return void 0===t?i:i&&t in i?i[t]:void 0}if(void 0!==t){e=e[c.expando]||(e[c.expando]=++c.uuid);return r[e]=r[e]||{},r[e][t]=n}},c.removeData=function(e,t){var e=e[c.expando],n=e&&r[e];n&&(t?c.each(t,function(e,t){delete n[t]}):delete r[e])},c.extend=function(){var e,t,n,i,r,o=arguments[0]||{},s=1,a=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[s]||{},s++),"object"!=typeof o&&"function"!==c.type(o)&&(o={}),s===a&&(o=this,s--);s<a;s++)if(i=arguments[s])for(n in i)i.hasOwnProperty(n)&&(r=o[n],o!==(t=i[n])&&(l&&t&&(c.isPlainObject(t)||(e=c.isArray(t)))?(r=e?(e=!1,r&&c.isArray(r)?r:[]):r&&c.isPlainObject(r)?r:{},o[n]=c.extend(l,r,t)):void 0!==t&&(o[n]=t)));return o}
573,c.queue=function(e,t,n){function i(e,t){t=t||[];return e&&(a(Object(e))?function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;)e[r++]=t[i++];if(n!=n)for(;void 0!==t[i];)e[r++]=t[i++];e.length=r}(t,"string"==typeof e?[e]:e):[].push.call(t,e)),t}if(e){var r=c.data(e,t=(t||"fx")+"queue");return n?(!r||c.isArray(n)?r=c.data(e,t,i(n)):r.push(n),r):r||[]}},c.dequeue=function(e,r){c.each(e.nodeType?[e]:e,function(e,t){r=r||"fx";var n=c.queue(t,r),i=n.shift();(i="inprogress"===i?n.shift():i)&&("fx"===r&&n.unshift("inprogress"),i.call(t,function(){c.dequeue(t,r)}))})},c.fn=c.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var e=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:e.top+(t.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:e.left+(t.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){var e=this[0],t=function(e){for(var t=e.offsetParent;t&&"html"!==t.nodeName.toLowerCase()&&t.style&&"static"===t.style.position;)t=t.offsetParent;return t||document}(e),n=this.offset(),i=/^(?:body|html)$/i.test(t.nodeName)?{top:0,left:0}:c(t).offset();return n.top-=parseFloat(e.style.marginTop)||0,n.left-=parseFloat(e.style.marginLeft)||0,t.style&&(i.top+=parseFloat(t.style.borderTopWidth)||0,i.left+=parseFloat(t.style.borderLeftWidth)||0),{top:n.top-i.top,left:n.left-i.left}}};var r={};c.expando="velocity"+(new Date).getTime(),c.uuid=0;for(var n={},i=n.hasOwnProperty,o=n.toString,e="Boolean Number String Function Array Date RegExp Object Error".split(" "),s=0;s<e.length;s++)n["[object "+e[s]+"]"]=e[s].toLowerCase();c.fn.init.prototype=c.fn,t.Velocity={Utilities:c}}function a(e){var t=e.length,n=c.type(e);return"function"!==n&&!c.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e))}}(window),function(e){"use strict";"object"==typeof t.exports?t.exports=e():void 0===(r="function"==typeof(r=e)?r.call(n,i,n,t):r)||(t.exports=r)}(function(){"use strict";return function(e,H,R,$){var i,t,T=function(){if(R.documentMode)return R.documentMode;for(var e=7;4<e;e--){var t=R.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]><span></span><![endif]--\x3e",t.getElementsByTagName("span").length)return t=null,e}return $}(),n=(i=0,H.webkitRequestAnimationFrame||H.mozRequestAnimationFrame||function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-i));return i=t+n,setTimeout(function(){e(t+n)},n)}),C=("function"!=typeof(o=H.performance||{}).now&&(t=o.timing&&o.timing.navigationStart?o.timing.navigationStart:(new Date).getTime(),o.now=function(){return(new Date).getTime()-t}),o);function q(){return Array.prototype.includes?function(e,t){return e.includes(t)}:Array.prototype.indexOf?function(e,t){return 0<=e.indexOf(t)}:function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}}var r=function(){var a=Array.prototype.slice;try{return a.call(R.documentElement),a}catch(e){return function(e,t){var n=this.length;if("number"!=typeof e&&(e=0),"number"!=typeof t&&(t=n),this.slice)return a.call(this,e,t);var i,r=[],o=0<=e?e:Math.max(0,n+e),s=(t<0?n+t:Math.min(t,n))-o;if(0<s)if(r=new Array(s),this.charAt)for(i=0;i<s;i++)r[i]=this.charAt(o+i);else for(i=0;i<s;i++)r[i]=this[o+i];return r}}}();function g(e){return U.isWrapped(e)?e=r.call(e):U.isNode(e)&&(e=[e]),e}var z,U={isNumber:function(e){return"number"==typeof e},isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isWrapped:function(e){return e&&e!==H&&U.isNumber(e.length)&&!U.isString(e)&&!U.isFunction(e)&&!U.isNode(e)&&(0===e.length||U.isNode(e[0]))},isSVG:function(e){return H.SVGElement&&e instanceof H.SVGElement},isEmptyObject:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}},o=!1;if(e.fn&&e.fn.jquery?(z=e,o=!0):z=H.Velocity.Utilities,T<=8&&!o)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(T<=7)){var s="swing",Q={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:H.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:R.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,
573calls:[],delayedElements:{count:0}},CSS:{},Utilities:z,Redirects:{},Easings:{},Promise:H.Promise,defaults:{queue:"",duration:400,easing:s,begin:$,complete:$,progress:$,display:$,visibility:$,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(e){z.data(e,"velocity",{isSVG:U.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:0},debug:!1,timestamp:!0,pauseAll:function(n){var i=(new Date).getTime();z.each(Q.State.calls,function(e,t){if(t){if(n!==$&&(t[2].queue!==n||!1===t[2].queue))return!0;t[5]={resume:!1}}}),z.each(Q.State.delayedElements,function(e,t){t&&v(t,i)})},resumeAll:function(n){var e=(new Date).getTime();z.each(Q.State.calls,function(e,t){if(t){if(n!==$&&(t[2].queue!==n||!1===t[2].queue))return!0;t[5]&&(t[5].resume=!0)}}),z.each(Q.State.delayedElements,function(e,t){t&&b(t)})}};H.pageYOffset!==$?(Q.State.scrollAnchor=H,Q.State.scrollPropertyLeft="pageXOffset",Q.State.scrollPropertyTop="pageYOffset"):(Q.State.scrollAnchor=R.documentElement||R.body.parentNode||R.body,Q.State.scrollPropertyLeft="scrollLeft",Q.State.scrollPropertyTop="scrollTop");var a=function e(t,n,i){var r,o,s,a,l,c,u,f,d,h,p={x:-1,v:0,tension:null,friction:null},m=[0],g=0;for(t=parseFloat(t)||500,n=parseFloat(n)||20,i=i||null,p.tension=t,p.friction=n,o=(r=null!==i)?(g=e(t,n))/i*.016:.016;l=o,d=h=d=f=u=c=void 0,c={dx:(a=s||p).v,dv:w(a)},u=x(a,.5*l,c),f=x(a,.5*l,u),d=x(a,l,f),h=1/6*(c.dx+2*(u.dx+f.dx)+d.dx),d=1/6*(c.dv+2*(u.dv+f.dv)+d.dv),a.x=a.x+h*l,a.v=a.v+d*l,m.push(1+(s=a).x),g+=16,1e-4<Math.abs(s.x)&&1e-4<Math.abs(s.v););return r?function(e){return m[e*(m.length-1)|0]}:g};Q.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},z.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){Q.Easings[t[0]]=l.apply(null,t[1])});var Y=Q.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e,t,n,i,r,o=0;o<Y.Lists.colors.length;o++){var s="color"===Y.Lists.colors[o]?"0 0 0 1":"255 255 255 1";
573Y.Hooks.templates[Y.Lists.colors[o]]=["Red Green Blue Alpha",s]}if(T)for(e in Y.Hooks.templates)Y.Hooks.templates.hasOwnProperty(e)&&(n=(t=Y.Hooks.templates[e])[0].split(" "),i=t[1].match(Y.RegEx.valueSplit),"Color"===n[0]&&(n.push(n.shift()),i.push(i.shift()),Y.Hooks.templates[e]=[n.join(" "),i.join(" ")]));for(e in Y.Hooks.templates)if(Y.Hooks.templates.hasOwnProperty(e))for(var a in n=(t=Y.Hooks.templates[e])[0].split(" "))n.hasOwnProperty(a)&&(r=e+n[a],Y.Hooks.registered[r]=[e,a])},getRoot:function(e){var t=Y.Hooks.registered[e];return t?t[0]:e},getUnit:function(e,t){t=(e.substr(t||0,5).match(/^[a-z%]+/)||[])[0]||"";return t&&q(Y.Lists.units)?t:""},fixColors:function(e){return e.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function(e,t,n){return Y.Lists.colorNames.hasOwnProperty(n)?(t||"rgba(")+Y.Lists.colorNames[n]+(t?"":",1)"):t+n})},cleanRootPropertyValue:function(e,t){return Y.RegEx.valueUnwrap.test(t)&&(t=t.match(Y.RegEx.valueUnwrap)[1]),t=Y.Values.isCSSNullValue(t)?Y.Hooks.templates[e][1]:t},extractValue:function(e,t){var n=Y.Hooks.registered[e];if(n){e=n[0],n=n[1];return(t=Y.Hooks.cleanRootPropertyValue(e,t)).toString().match(Y.RegEx.valueSplit)[n]}return t},injectValue:function(e,t,n){var i=Y.Hooks.registered[e];if(i){e=i[0],i=i[1];return(e=(n=Y.Hooks.cleanRootPropertyValue(e,n)).toString().match(Y.RegEx.valueSplit))[i]=t,e.join(" ")}return n}},Normalizations:{registered:{clip:function(e,t,n){switch(e){case"name":return"clip";case"extract":var i=!Y.RegEx.wrappedValueAlreadyExtracted.test(n)&&(i=n.toString().match(Y.RegEx.valueUnwrap))?i[1].replace(/,(\s+)?/g," "):n;return i;case"inject":return"rect("+n+")"}},blur:function(e,t,n){switch(e){case"name":return Q.State.isFirefox?"filter":"-webkit-filter";case"extract":var i,r=parseFloat(n);return r=!r&&0!==r?(i=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i))?i[1]:0:r;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(e,t,n){if(T<=8)switch(e){case"name":return"filter";case"extract":var i=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=i?i[1]/100:1;case"inject":return(t.style.zoom=1)<=parseFloat(n)?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(e){case"name":return"opacity";case"extract":case"inject":return n}}},register:function(){T&&!(9<T)||Q.State.isGingerbread||(Y.Lists.transformsBase=Y.Lists.transformsBase.concat(Y.Lists.transforms3D));for(var e=0;e<Y.Lists.transformsBase.length;e++)!function(){var r=Y.Lists.transformsBase[e];Y.Normalizations.registered[r]=function(e,t,n){switch(e){case"name":return"transform";case"extract":return K(t)===$||K(t).transformCache[r]===$?/^scale/i.test(r)?1:0:K(t).transformCache[r].replace(/[()]/g,"");case"inject":var i=!1;switch(r.substr(0,r.length-1)){case"translate":i=!/(%|px|em|rem|vw|vh|\d)$/i.test(n);break;case"scal":case"scale":Q.State.isAndroid&&K(t).transformCache[r]===$&&n<1&&(n=1),i=!/(\d)$/i.test(n);break;case"skew":case"rotate":i=!/(deg|\d)$/i.test(n)}return i||(K(t).transformCache[r]="("+n+")"),K(t).transformCache[r]}}}();for(var t=0;t<Y.Lists.colors.length;t++)!function(){var o=Y.Lists.colors[t];Y.Normalizations.registered[o]=function(e,t,n){switch(e){case"name":return o;case"extract":var i,r=Y.RegEx.wrappedValueAlreadyExtracted.test(n)?n:(i={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"},/^[A-z]+$/i.test(n)?r=i[n]!==$?i[n]:i.black:Y.RegEx.isHex.test(n)?r="rgb("+Y.Values.hexToRgb(n).join(" ")+")":/^rgba?\(/i.test(n)||(r=i.black),(r||n).toString().match(Y.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," "));return(!T||8<T)&&3===r.split(" ").length&&(r+=" 1"),r;case"inject":return/^rgb/.test(n)?n:(T<=8?4===n.split(" ").length&&(n=n.split(/\s+/).slice(0,3).join(" ")):3===n.split(" ").length&&(n+=" 1"),(T<=8?"rgb":"rgba")+"("+n.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();function o(e,t,n){if("border-box"===Y.getPropertyValue(t,"boxSizing").toString().toLowerCase()!==(n||!1))return 0;for(var i,r=0,e="width"===e?["Left","Right"]:["Top","Bottom"],o=["padding"+e[0],"padding"+e[1],"border"+e[0]+"Width","border"+e[1]+"Width"],s=0;s<o.length;s++)i=parseFloat(Y.getPropertyValue(t,o[s])),isNaN(i)||(r+=i);return n?-r:r}function n(i,r){return function(e,t,n){switch(e){case"name":return i;case"extract":return parseFloat(n)+o(i,t,r);case"inject":return parseFloat(n)-o(i,t,r)+"px"}}}Y.Normalizations.registered.innerWidth=n("width",!0),Y.Normalizations.registered.innerHeight=n("height",!0),Y.Normalizations.registered.outerWidth=n("width"),Y.Normalizations.registered.outerHeight=n("height")}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(T||Q.State.isAndroid&&!Q.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(Q.State.prefixMatches[e])return[Q.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],n=0,i=t.length;n<i;n++){var r=0===n?e:t[n]+e.replace(/^\w/,function(e){return e.toUpperCase()});if(U.isString(Q.State.prefixElement.style[r]))return[Q.State.prefixMatches[e]=r,!0]}return[e,!1]}},Values:{hexToRgb:function(e){return e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,i){return t+t+n+n+i+i}),(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]},isCSSNullValue:function(e){return!e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){e=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e)?"inline":/^(li)$/i.test(e)?"list-item":/^(tr)$/i.test(e)?"table-row":/^(table)$/i.test(e)?"table":/^(tbody)$/i.test(e)?"table-row-group":"block"},addClass:function(e,t){var n;e&&(e.classList?e.classList.add(t):U.isString(e.className)?e.className+=(e.className.length?" ":"")+t:(n=e.getAttribute(T<=7?"className":"class")||"",e.setAttribute("class",n+(n?" ":"")+t)))},removeClass:function(e,t){var n;e&&(e.classList?e.classList.remove(t):U.isString(e.className)?e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," "):(n=e.getAttribute(T<=7?"className":"class")||"",e.setAttribute("class",n.replace(new RegExp("(^|s)"+t.split(" ").join("|")+"(s|$)","gi")," ")))
573)}},getPropertyValue:function(e,t,n,a){function l(e,t){var n=0;if(T<=8)n=z.css(e,t);else{var i=!1;/^(width|height)$/.test(t)&&0===Y.getPropertyValue(e,"display")&&(i=!0,Y.setPropertyValue(e,"display",Y.Values.getDisplayType(e)));var r=function(){i&&Y.setPropertyValue(e,"display","none")};if(!a){if("height"===t&&"border-box"!==Y.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var o=e.offsetHeight-(parseFloat(Y.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(Y.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(Y.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(Y.getPropertyValue(e,"paddingBottom"))||0);return r(),o}if("width"===t&&"border-box"!==Y.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var s=e.offsetWidth-(parseFloat(Y.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(Y.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(Y.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(Y.getPropertyValue(e,"paddingRight"))||0);return r(),s}}s=K(e)===$?H.getComputedStyle(e,null):K(e).computedStyle?K(e).computedStyle:K(e).computedStyle=H.getComputedStyle(e,null),"borderColor"===t&&(t="borderTopColor"),""!==(n=9===T&&"filter"===t?s.getPropertyValue(t):s[t])&&null!==n||(n=e.style[t]),r()}return"auto"!==n||!/^(top|right|bottom|left)$/i.test(t)||("fixed"===(r=l(e,"position"))||"absolute"===r&&/top|left/i.test(t))&&(n=z(e).position()[t]+"px"),n}var i,r;if(Y.Hooks.registered[t]?(r=Y.Hooks.getRoot(i=t),n===$&&(n=Y.getPropertyValue(e,Y.Names.prefixCheck(r)[0])),Y.Normalizations.registered[r]&&(n=Y.Normalizations.registered[r]("extract",e,n)),i=Y.Hooks.extractValue(i,n)):Y.Normalizations.registered[t]&&("transform"!==(n=Y.Normalizations.registered[t]("name",e))&&(o=l(e,Y.Names.prefixCheck(n)[0]),Y.Values.isCSSNullValue(o)&&Y.Hooks.templates[t]&&(o=Y.Hooks.templates[t][1])),i=Y.Normalizations.registered[t]("extract",e,o)),!/^[\d-]/.test(i)){var o=K(e);if(o&&o.isSVG&&Y.Names.SVGAttribute(t))if(/^(height|width)$/i.test(t))try{i=e.getBBox()[t]}catch(e){i=0}else i=e.getAttribute(t);else i=l(e,Y.Names.prefixCheck(t)[0])}return Y.Values.isCSSNullValue(i)&&(i=0),Q.debug,i},setPropertyValue:function(e,t,n,i,r){var o=t;if("scroll"===t)r.container?r.container["scroll"+r.direction]=n:"Left"===r.direction?H.scrollTo(n,r.alternateValue):H.scrollTo(r.alternateValue,n);else if(Y.Normalizations.registered[t]&&"transform"===Y.Normalizations.registered[t]("name",e))Y.Normalizations.registered[t]("inject",e,n),o="transform",n=K(e).transformCache[t];else{if(Y.Hooks.registered[t]&&(s=Y.Hooks.getRoot(r=t),i=i||Y.getPropertyValue(e,s),n=Y.Hooks.injectValue(r,n,i),t=s),Y.Normalizations.registered[t]&&(n=Y.Normalizations.registered[t]("inject",e,n),t=Y.Normalizations.registered[t]("name",e)),o=Y.Names.prefixCheck(t)[0],T<=8)try{e.style[o]=n}catch(e){Q.debug}else{var s=K(e);s&&s.isSVG&&Y.Names.SVGAttribute(t)?e.setAttribute(t,n):e.style[o]=n}Q.debug}return[o,n]},flushTransformCache:function(t){var n,i,r,o="",e=K(t);(T||Q.State.isAndroid&&!Q.State.isChrome)&&e&&e.isSVG?(n={translate:[(e=function(e){return parseFloat(Y.getPropertyValue(t,e))})("translateX"),e("translateY")],skewX:[e("skewX")],skewY:[e("skewY")],scale:1!==e("scale")?[e("scale"),e("scale")]:[e("scaleX"),e("scaleY")],rotate:[e("rotateZ"),0,0]},z.each(K(t).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),n[e]&&(o+=e+"("+n[e].join(" ")+") ",delete n[e])})):(z.each(K(t).transformCache,function(e){return i=K(t).transformCache[e],"transformPerspective"===e?(r=i,!0):void(o+=(e=9===T&&"rotateZ"===e?"rotate":e)+i+" ")}),r&&(o="perspective"+r+" "+o)),Y.setPropertyValue(t,"transform",o)}};Y.Hooks.register(),Y.Normalizations.register(),Q.hook=function(e,i,r){var o;return e=g(e),z.each(e,function(e,t){var n;K(t)===$&&Q.init(t),r===$?o===$&&(o=Y.getPropertyValue(t,i)):("transform"===(n=Y.setPropertyValue(t,i,r))[0]&&Q.CSS.flushTransformCache(t),o=n)}),o};var y=function(){function e(){return t?k.promise||null:n}var t,n,i,E,A,r=arguments[0]&&(arguments[0].p||z.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||U.isString(arguments[0].properties));U.isWrapped(this)?(t=!1,i=0,n=E=this):(t=!0,i=1,E=r?arguments[0].elements||arguments[0].e:arguments[0]);var k={promise:null,resolver:null,rejecter:null};if(t&&Q.Promise&&(k.promise=new Q.Promise(function(e,t){k.resolver=e,k.rejecter
573=t})),V=r?(A=arguments[0].properties||arguments[0].p,arguments[0].options||arguments[0].o):(A=arguments[i],arguments[i+1]),E=g(E)){var B,F=E.length,L=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(A)&&!z.isPlainObject(V))for(var V={},o=i+1;o<arguments.length;o++)U.isArray(arguments[o])||!/^(fast|normal|slow)$/i.test(arguments[o])&&!/^\d/.test(arguments[o])?U.isString(arguments[o])||U.isArray(arguments[o])?V.easing=arguments[o]:U.isFunction(arguments[o])&&(V.complete=arguments[o]):V.duration=arguments[o];switch(A){case"scroll":B="scroll";break;case"reverse":B="reverse";break;case"pause":var s=(new Date).getTime();return z.each(E,function(e,t){v(t,s)}),z.each(Q.State.calls,function(e,i){var r=!1;i&&z.each(i[1],function(e,n){var t=V===$?"":V;return!0!==t&&i[2].queue!==t&&(V!==$||!1!==i[2].queue)||(z.each(E,function(e,t){if(t===n)return i[5]={resume:!1},!(r=!0)}),!r&&void 0)})}),e();case"resume":return z.each(E,function(e,t){b(t)}),z.each(Q.State.calls,function(e,i){var r=!1;i&&z.each(i[1],function(e,n){var t=V===$?"":V;return!0!==t&&i[2].queue!==t&&(V!==$||!1!==i[2].queue)||(!i[5]||(z.each(E,function(e,t){if(t===n)return i[5].resume=!0,!(r=!0)}),!r&&void 0))})}),e();case"finish":case"finishAll":case"stop":z.each(E,function(e,t){K(t)&&K(t).delayTimer&&(clearTimeout(K(t).delayTimer.setTimeout),K(t).delayTimer.next&&K(t).delayTimer.next(),delete K(t).delayTimer),"finishAll"!==A||!0!==V&&!U.isString(V)||(z.each(z.queue(t,U.isString(V)?V:""),function(e,t){U.isFunction(t)&&t()}),z.queue(t,U.isString(V)?V:"",[]))});var a=[];return z.each(Q.State.calls,function(r,o){o&&z.each(o[1],function(e,n){var i=V===$?"":V;if(!0!==i&&o[2].queue!==i&&(V!==$||!1!==o[2].queue))return!0;z.each(E,function(e,t){t===n&&(!0!==V&&!U.isString(V)||(z.each(z.queue(t,U.isString(V)?V:""),function(e,t){U.isFunction(t)&&t(null,!0)}),z.queue(t,U.isString(V)?V:"",[])),"stop"===A?((t=K(t))&&t.tweensContainer&&!1!==i&&z.each(t.tweensContainer,function(e,t){t.endValue=t.currentValue}),a.push(r)):"finish"!==A&&"finishAll"!==A||(o[2].duration=1))})})}),"stop"===A&&(z.each(a,function(e,t){O(t,!0)}),k.promise&&k.resolver(E)),e();default:if(!z.isPlainObject(A)||U.isEmptyObject(A)){if(U.isString(A)&&Q.Redirects[A]){var l,c=(l=z.extend({},V)).duration,u=l.delay||0;return!0===l.backwards&&(E=z.extend(!0,[],E).reverse()),z.each(E,function(e,t){parseFloat(l.stagger)?l.delay=u+parseFloat(l.stagger)*e:U.isFunction(l.stagger)&&(l.delay=u+l.stagger.call(t,e,F)),l.drag&&(l.duration=parseFloat(c)||(/^(callout|transition)/.test(A)?1e3:400),l.duration=Math.max(l.duration*(l.backwards?1-e/F:(e+1)/F),.75*l.duration,200)),Q.Redirects[A].call(t,t,l||{},e,F,E,k.promise?k:$)}),e()}var f="Velocity: First argument ("+A+") was not a property map, a known action, or a registered redirect. Aborting.";return k.promise?k.rejecter(new Error(f)):H.console,e()}B="start"}var M={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},W=[];z.each(E,function(e,t){U.isNode(t)&&m(t,e)}),(l=z.extend({},Q.defaults,V)).loop=parseInt(l.loop,10);var d=2*l.loop-1;if(l.loop)for(var h=0;h<d;h++){var p={delay:l.delay,progress:l.progress};h===d-1&&(p.display=l.display,p.visibility=l.visibility,p.complete=l.complete),y(E,"reverse",p)}return e()}function m(P,C){var D,e,t,N=z.extend({},Q.defaults,V),j={};switch(K(P)===$&&Q.init(P),parseFloat(N.delay)&&!1!==N.queue&&z.queue(P,N.queue,function(e){Q.velocityQueueEntryFlag=!0;var t=Q.State.delayedElements.count++;Q.State.delayedElements[t]=P;var n,t=(n=t,function(){Q.State.delayedElements[n]=!1,e()});K(P).delayBegin=(new Date).getTime(),K(P).delay=parseFloat(N.delay),K(P).delayTimer={setTimeout:setTimeout(e,parseFloat(N.delay)),next:t}}),N.duration.toString().toLowerCase()){case"fast":N.duration=200;break;case"normal":N.duration=400;break;case"slow":N.duration=600;break;default:N.duration=parseFloat(N.duration)||1}function n(e){var O,I,t,n,i,r,o,s;if(N.begin&&0===L)try{N.begin.call(E,E)}catch(e){setTimeout(function(){throw e},1)}if("scroll"===B){var a,l,c,u=/^x$/i.test(N.axis)?"Left":"Top",f=parseFloat(N.offset)||0;N.container?U.isWrapped(N.container)||U.isNode(N.container)?(N.container=N.container[0]||N.container,c=(a=N.container["scroll"+u])+z(P).position()[u.toLowerCase()]+f):N.container=null:(a=Q.State.scrollAnchor[Q.State["scrollProperty"+u]],l=Q.State.scrollAnchor[Q.State["scrollProperty"+("Left"===u?"Top":"Left")]],c=z(P).offset()[u.toLowerCase()]+f),j={scroll:{rootPropertyValue:!1,startValue:a,currentValue:a,endValue:c,unitType:"",easing:N.easing,scrollData:{container:N.container,direction:u,alternateValue:l}},element:P},Q.debug}
573else if("reverse"===B){if(!(O=K(P)))return;if(!O.tweensContainer)return void z.dequeue(P,N.queue);for(var d in"none"===O.opts.display&&(O.opts.display="auto"),"hidden"===O.opts.visibility&&(O.opts.visibility="visible"),O.opts.loop=!1,O.opts.begin=null,O.opts.complete=null,V.easing||delete N.easing,V.duration||delete N.duration,N=z.extend({},O.opts,N),I=z.extend(!0,{},O?O.tweensContainer:null))I.hasOwnProperty(d)&&"element"!==d&&(t=I[d].startValue,I[d].startValue=I[d].currentValue=I[d].endValue,I[d].endValue=t,U.isEmptyObject(V)||(I[d].easing=N.easing),Q.debug);j=I}else if("start"===B){(O=K(P))&&O.tweensContainer&&!0===O.isAnimating&&(I=O.tweensContainer);var h,p=function(e,t){var n=Y.Hooks.getRoot(e),i=!1,r=t[0],o=t[1],s=t[2];if(O&&O.isSVG||"tween"===n||!1!==Y.Names.prefixCheck(n)[1]||Y.Normalizations.registered[n]!==$){(N.display!==$&&null!==N.display&&"none"!==N.display||N.visibility!==$&&"hidden"!==N.visibility)&&/opacity|filter/.test(e)&&!s&&0!==r&&(s=0),N._cacheValues&&I&&I[e]?(s===$&&(s=I[e].endValue+I[e].unitType),i=O.rootPropertyValueCache[n]):Y.Hooks.registered[e]?s===$?(i=Y.getPropertyValue(P,n),s=Y.getPropertyValue(P,e,i)):i=Y.Hooks.templates[n][1]:s===$&&(s=Y.getPropertyValue(P,e));var a,l,c=!1,t=function(e,t){var t=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return n=e,""}),n=n||Y.Values.getUnitType(e);return[t,n]};if(s!==r&&U.isString(s)&&U.isString(r)){for(var u="",f=0,d=0,h=[],p=[],m=0,g=0,y=0,s=Y.Hooks.fixColors(s),r=Y.Hooks.fixColors(r);f<s.length&&d<r.length;){var v=s[f],b=r[d];if(/[\d\.-]/.test(v)&&/[\d\.-]/.test(b)){for(var w=v,x=b,_=".",S=".";++f<s.length;){if((v=s[f])===_)_="..";else if(!/\d/.test(v))break;w+=v}for(;++d<r.length;){if((b=r[d])===S)S="..";else if(!/\d/.test(b))break;x+=b}var T,C,E=Y.Hooks.getUnit(s,f),A=Y.Hooks.getUnit(r,d);f+=E.length,d+=A.length,E===A?w===x?u+=w+E:(u+="{"+h.length+(g?"!":"")+"}"+E,h.push(parseFloat(w)),p.push(parseFloat(x))):(T=parseFloat(w),C=parseFloat(x),u+=(m<5?"calc":"")+"("+(T?"{"+h.length+(g?"!":"")+"}":"0")+E+" + "+(C?"{"+(h.length+(T?1:0))+(g?"!":"")+"}":"0")+A+")",T&&(h.push(T),p.push(0)),C&&(h.push(0),p.push(C)))}else{if(v!==b){m=0;break}u+=v,f++,d++,0===m&&"c"===v||1===m&&"a"===v||2===m&&"l"===v||3===m&&"c"===v||4<=m&&"("===v?m++:(m&&m<5||4<=m&&")"===v&&--m<5)&&(m=0),0===g&&"r"===v||1===g&&"g"===v||2===g&&"b"===v||3===g&&"a"===v||3<=g&&"("===v?(3===g&&"a"===v&&(y=1),g++):y&&","===v?3<++y&&(g=y=0):(y&&g<(y?5:4)||(y?4:3)<=g&&")"===v&&--g<(y?5:4))&&(g=y=0)}}f===s.length&&d===r.length||(Q.debug,u=$),u&&(h.length?(Q.debug,s=h,r=p,a=l=""):u=$)}u||(s=(n=t(e,s))[0],l=n[1],r=(n=t(e,r))[0].replace(/^([+-\/*])=/,function(e,t){return c=t,""}),a=n[1],s=parseFloat(s)||0,r=parseFloat(r)||0,"%"===a&&(/^(fontSize|lineHeight)$/.test(e)?(r/=100,a="em"):/^scale/.test(e)?(r/=100,a=""):/(Red|Green|Blue)$/i.test(e)&&(r=r/100*255,a="")));if(/[\/*]/.test(c))a=l;else if(l!==a&&0!==s)if(0===r)a=l;else{D=D||function(){var e={myParent:P.parentNode||R.body,position:Y.getPropertyValue(P,"position"),fontSize:Y.getPropertyValue(P,"fontSize")},t=e.position===M.lastPosition&&e.myParent===M.lastParent,n=e.fontSize===M.lastFontSize;M.lastParent=e.myParent,M.lastPosition=e.position,M.lastFontSize=e.fontSize;var i,r={};return n&&t?(r.emToPx=M.lastEmToPx,r.percentToPxWidth=M.lastPercentToPxWidth,r.percentToPxHeight=M.lastPercentToPxHeight):(i=O&&O.isSVG?R.createElementNS("http://www.w3.org/2000/svg","rect"):R.createElement("div"),Q.init(i),e.myParent.appendChild(i),z.each(["overflow","overflowX","overflowY"],function(e,t){Q.CSS.setPropertyValue(i,t,"hidden")}),Q.CSS.setPropertyValue(i,"position",e.position),Q.CSS.setPropertyValue(i,"fontSize",e.fontSize),Q.CSS.setPropertyValue(i,"boxSizing","content-box"),z.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){Q.CSS.setPropertyValue(i,t,"100%")}),Q.CSS.setPropertyValue(i,"paddingLeft","100em"),r.percentToPxWidth=M.lastPercentToPxWidth=(parseFloat(Y.getPropertyValue(i,"width",null,!0))||1)/100,r.percentToPxHeight=M.lastPercentToPxHeight=(parseFloat(Y.getPropertyValue(i,"height",null,!0))||1)/100,r.emToPx=M.lastEmToPx=(parseFloat(Y.getPropertyValue(i,"paddingLeft"))||1)/100,e.myParent.removeChild(i)),null===M.remToPx&&(M.remToPx=parseFloat(Y.getPropertyValue(R.body,"fontSize"))||16),null===M.vwToPx&&(M.vwToPx=parseFloat(H.innerWidth)/100,M.vhToPx=parseFloat(H.innerHeight)/100),r.remToPx=M.remToPx,r.vwToPx=M.vwToPx,r.vhToPx=M.vhToPx,Q.debug,r}();var k=/margin|padding|left|right|width|text|word|letter/i.test(e)||/X$/.test(e)||"x"===e?"x":"y";switch(l){case"%":s*="x"==k?D.percentToPxWidth:D.percentToPxHeight;break;case"px":break;default:s*=D[l+"ToPx"]}switch(a){case"%":s*=1/("x"==k?D.percentToPxWidth:D.percentToPxHeight);break;case"px":break;default:s*=1/D[a+"ToPx"]}}switch(c){case"+":r=s+r;break;case"-":r=s-r;break;case"*":r*=s;break;case"/":r=s/r}
573j[e]={rootPropertyValue:i,startValue:s,currentValue:s,endValue:r,unitType:a,easing:o},u&&(j[e].pattern=u),Q.debug}else Q.debug};for(h in A)if(A.hasOwnProperty(h)){var m=Y.Names.camelCase(h),g=(n=A[h],s=o=r=i=void 0,U.isFunction(n)&&(n=n.call(P,C,F)),U.isArray(n)?(r=n[0],s=!U.isArray(n[1])&&/^[\d-]/.test(n[1])||U.isFunction(n[1])||Y.RegEx.isHex.test(n[1])?n[1]:U.isString(n[1])&&!Y.RegEx.isHex.test(n[1])&&Q.Easings[n[1]]||U.isArray(n[1])?(o=i?n[1]:X(n[1],N.duration),n[2]):n[1]||n[2]):r=n,i||(o=o||N.easing),[(r=U.isFunction(r)?r.call(P,C,F):r)||0,o,s=U.isFunction(s)?s.call(P,C,F):s]);if(q(Y.Lists.colors)){var y=g[0],v=g[1],b=g[2];if(Y.RegEx.isHex.test(y)){for(var w=["Red","Green","Blue"],x=Y.Values.hexToRgb(y),_=b?Y.Values.hexToRgb(b):$,S=0;S<w.length;S++){var T=[x[S]];v&&T.push(v),_!==$&&T.push(_[S]),p(m+w[S],T)}continue}}p(m,g)}j.element=P}j.element&&(Y.Values.addClass(P,"velocity-animating"),W.push(j),(O=K(P))&&(""===N.queue&&(O.tweensContainer=j,O.opts=N),O.isAnimating=!0),L===F-1?(Q.State.calls.push([W,E,N,null,k.resolver,null,0]),!1===Q.State.isTicking&&(Q.State.isTicking=!0,G())):L++)}!1!==Q.mock&&(!0===Q.mock?N.duration=N.delay=1:(N.duration*=parseFloat(Q.mock)||1,N.delay*=parseFloat(Q.mock)||1)),N.easing=X(N.easing,N.duration),N.begin&&!U.isFunction(N.begin)&&(N.begin=null),N.progress&&!U.isFunction(N.progress)&&(N.progress=null),N.complete&&!U.isFunction(N.complete)&&(N.complete=null),N.display!==$&&null!==N.display&&(N.display=N.display.toString().toLowerCase(),"auto"===N.display&&(N.display=Q.CSS.Values.getDisplayType(P))),N.visibility!==$&&null!==N.visibility&&(N.visibility=N.visibility.toString().toLowerCase()),N.mobileHA=N.mobileHA&&Q.State.isMobile&&!Q.State.isGingerbread,!1===N.queue?N.delay?(e=Q.State.delayedElements.count++,Q.State.delayedElements[e]=P,t=e,e=function(){Q.State.delayedElements[t]=!1,n()},K(P).delayBegin=(new Date).getTime(),K(P).delay=parseFloat(N.delay),K(P).delayTimer={setTimeout:setTimeout(n,parseFloat(N.delay)),next:e}):n():z.queue(P,N.queue,function(e,t){return!0===t?(k.promise&&k.resolver(E),!0):(Q.velocityQueueEntryFlag=!0,void n())}),""!==N.queue&&"fx"!==N.queue||"inprogress"===z.queue(P)[0]||z.dequeue(P)}k.promise&&(A&&V&&!1===V.promiseRejectEmpty?k.resolver():k.rejecter())};(Q=z.extend(y,Q)).animate=y;var E=H.requestAnimationFrame||n;return Q.State.isMobile||R.hidden===$||((o=function(){R.hidden?(E=function(e){return setTimeout(function(){e(!0)},16)},G()):E=H.requestAnimationFrame||n})(),R.addEventListener("visibilitychange",o)),e.Velocity=Q,e!==H&&(e.fn.velocity=y,e.fn.velocity.defaults=Q.defaults),z.each(["Down","Up"],function(e,u){Q.Redirects["slide"+u]=function(n,e,i,t,r,o){var e=z.extend({},e),s=e.begin,a=e.complete,l={},c={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};e.display===$&&(e.display="Down"===u?"inline"===Q.CSS.Values.getDisplayType(n)?"inline-block":"block":"none"),e.begin=function(){for(var e in 0===i&&s&&s.call(r,r),c){var t;c.hasOwnProperty(e)&&(l[e]=n.style[e],t=Y.getPropertyValue(n,e),
573c[e]="Down"===u?[t,0]:[0,t])}l.overflow=n.style.overflow,n.style.overflow="hidden"},e.complete=function(){for(var e in l)l.hasOwnProperty(e)&&(n.style[e]=l[e]);i===t-1&&(a&&a.call(r,r),o&&o.resolver(r))},Q(n,c,e)}}),z.each(["In","Out"],function(e,l){Q.Redirects["fade"+l]=function(e,t,n,i,r,o){var s=z.extend({},t),a=s.complete,t={opacity:"In"===l?1:0};0!==n&&(s.begin=null),s.complete=n!==i-1?null:function(){a&&a.call(r,r),o&&o.resolver(r)},s.display===$&&(s.display="In"===l?"auto":"none"),Q(this,t,s)}}),Q}function K(e){e=z.data(e,"velocity");return null===e?$:e}function v(e,t){e=K(e);e&&e.delayTimer&&!e.delayPaused&&(e.delayRemaining=e.delay-t+e.delayBegin,e.delayPaused=!0,clearTimeout(e.delayTimer.setTimeout))}function b(e){e=K(e);e&&e.delayTimer&&e.delayPaused&&(e.delayPaused=!1,e.delayTimer.setTimeout=setTimeout(e.delayTimer.next,e.delayRemaining))}function l(s,t,a,n){var l=4,c=1e-7,u=10,f=11,d=1/(f-1),e="Float32Array"in H;if(4!==arguments.length)return!1;for(var i=0;i<4;++i)if("number"!=typeof arguments[i]||isNaN(arguments[i])||!isFinite(arguments[i]))return!1;s=Math.min(s,1),a=Math.min(a,1),s=Math.max(s,0),a=Math.max(a,0);var h=new(e?Float32Array:Array)(f);function r(e,t){return 1-3*t+3*e}function p(e,t,n){return((r(t,n)*e+(3*n-6*t))*e+3*t)*e}function m(e,t,n){return 3*r(t,n)*e*e+2*(3*n-6*t)*e+3*t}function o(e){for(var t=0,n=1,i=f-1;n!==i&&h[n]<=e;++n)t+=d;var r=t+(e-h[--n])/(h[n+1]-h[n])*d,o=m(r,s,a);return.001<=o?function(e,t){for(var n=0;n<l;++n){var i=m(t,s,a);if(0===i)return t;t-=(p(t,s,a)-e)/i}return t}(e,r):0===o?r:function(e,t,n){for(var i,r,o=0;0<(i=p(r=t+(n-t)/2,s,a)-e)?n=r:t=r,Math.abs(i)>c&&++o<u;);return r}(e,t,t+d)}var g=!1;function y(){g=!0,s===t&&a===n||function(){for(var e=0;e<f;++e)h[e]=p(e*d,s,a)}()}e=function(e){return g||y(),s===t&&a===n?e:0===e?0:1===e?1:p(o(e),t,n)};e.getControlPoints=function(){return[{x:s,y:t},{x:a,y:n}]};var v="generateBezier("+[s,t,a,n]+")";return e.toString=function(){return v},e}function w(e){return-e.tension*e.x-e.friction*e.v}function x(e,t,n){e={x:e.x+n.dx*t,v:e.v+n.dv*t,tension:e.tension,friction:e.friction};return{dx:e.v,dv:w(e)}}function X(e,t){var n=e;return U.isString(e)?Q.Easings[e]||(n=!1):n=U.isArray(e)&&1===e.length?function(t){return function(e){return Math.round(e*t)*(1/t)}}.apply(null,e):U.isArray(e)&&2===e.length?a.apply(null,e.concat([t])):!(!U.isArray(e)||4!==e.length)&&l.apply(null,e),n=!1===n?Q.Easings[Q.defaults.easing]?Q.defaults.easing:s:n}function G(e){if(e){var t=Q.timestamp&&!0!==e?e:C.now(),n=Q.State.calls.length;1e4<n&&(Q.State.calls=function(e){for(var t=-1,n=e?e.length:0,i=[];++t<n;){var r=e[t];r&&i.push(r)}return i}(Q.State.calls),n=Q.State.calls.length);for(var i=0;i<n;i++)if(Q.State.calls[i]){var r=Q.State.calls[i],o=r[0],s=r[2],a=!!(f=r[3]),l=null,c=r[5],u=r[6],f=f||(Q.State.calls[i][3]=t-16);if(c){if(!0!==c.resume)continue;f=r[3]=Math.round(t-u-16),r[5]=null}for(var u=r[6]=t-f,d=Math.min(u/s.duration,1),h=0,p=o.length;h<p;h++){var m=o[h],g=m.element;if(K(g)){var y,v,b,w,x,_,S=!1;for(y in s.display!==$&&null!==s.display&&"none"!==s.display&&("flex"===s.display&&z.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],function(e,t){Y.setPropertyValue(g,"display",t)}),Y.setPropertyValue(g,"display",s.display)),s.visibility!==$&&"hidden"!==s.visibility&&Y.setPropertyValue(g,"visibility",s.visibility),m)m.hasOwnProperty(y)&&"element"!==y&&(v=m[y],b=U.isString(v.easing)?Q.Easings[v.easing]:v.easing,_=U.isString(v.pattern)?v.pattern.replace(/{(\d+)(!)?}/g,1===d?function(e,t,n){t=v.endValue[t];return n?Math.round(t):t}:function(e,t,n){var i=v.startValue[t],t=v.endValue[t]-i,t=i+t*b(d,s,t);return n?Math.round(t):t}):1===d?v.endValue:(x=v.endValue-v.startValue,v.startValue+x*b(d,s,x)),!a&&_===v.currentValue||(v.currentValue=_,"tween"===y?l=_:(Y.Hooks.registered[y]&&(w=Y.Hooks.getRoot(y),(x=K(g).rootPropertyValueCache[w])&&(v.rootPropertyValue=x)),_=Y.setPropertyValue(g,y,v.currentValue+(T<9&&0===parseFloat(_)?"":v.unitType),v.rootPropertyValue,v.scrollData),Y.Hooks.registered[y]&&(Y.Normalizations.registered[w]?K(g).rootPropertyValueCache[w]=Y.Normalizations.registered[w]("extract",null,_[1]):K(g).rootPropertyValueCache[w]=_[1]),"transform"===_[0]&&(S=!0))));s.mobileHA&&K(g).transformCache.translate3d===$&&(K(g).transformCache.translate3d="(0px, 0px, 0px)",S=!0),S&&Y.flushTransformCache(g)}}s.display!==$&&"none"!==s.display&&(Q.State.calls[i][2].display=!1),s.visibility!==$&&"hidden"
573!==s.visibility&&(Q.State.calls[i][2].visibility=!1),s.progress&&s.progress.call(r[1],r[1],d,Math.max(0,f+s.duration-t),f,l),1===d&&O(i)}}Q.State.isTicking&&E(G)}function O(e,t){if(Q.State.calls[e]){for(var n=Q.State.calls[e][0],i=Q.State.calls[e][1],r=Q.State.calls[e][2],o=Q.State.calls[e][4],s=!1,a=0,l=n.length;a<l;a++){var c=n[a].element;t||r.loop||("none"===r.display&&Y.setPropertyValue(c,"display",r.display),"hidden"===r.visibility&&Y.setPropertyValue(c,"visibility",r.visibility));var u,f=K(c);if(!0===r.loop||z.queue(c)[1]!==$&&/\.velocityQueueEntryFlag/i.test(z.queue(c)[1])||f&&(f.isAnimating=!1,u=!(f.rootPropertyValueCache={}),z.each(Y.Lists.transforms3D,function(e,t){var n=/^scale/.test(t)?1:0,i=f.transformCache[t];f.transformCache[t]!==$&&new RegExp("^\\("+n+"[^.]").test(i)&&(u=!0,delete f.transformCache[t])}),r.mobileHA&&(u=!0,delete f.transformCache.translate3d),u&&Y.flushTransformCache(c),Y.Values.removeClass(c,"velocity-animating")),!t&&r.complete&&!r.loop&&a===l-1)try{r.complete.call(i,i)}catch(e){setTimeout(function(){throw e},1)}o&&!0!==r.loop&&o(i),f&&!0===r.loop&&!t&&(z.each(f.tweensContainer,function(e,t){var n;/^rotate/.test(e)&&(parseFloat(t.startValue)-parseFloat(t.endValue))%360==0&&(n=t.startValue,t.startValue=t.endValue,t.endValue=n),/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),Q(c,"reverse",{loop:!0,delay:r.delay})),!1!==r.queue&&z.dequeue(c,r.queue)}Q.State.calls[e]=!1;for(var d=0,h=Q.State.calls.length;d<h;d++)if(!1!==Q.State.calls[d]){s=!0;break}!1===s&&(Q.State.isTicking=!1,delete Q.State.calls,Q.State.calls=[])}}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)})},598:(e,t,n)=>{e.exports=n.g.Tether=n(519)},609:e=>{"use strict";e.exports=jQuery}},i={};function v(e){var t=i[e];if(void 0!==t)return t.exports;t=i[e]={exports:{}};return n[e].call(t.exports,t,t.exports,v),t.exports}v.amdO={},v.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return v.d(t,{a:t}),t},v.d=(e,t)=>{for(var n in t)v.o(t,n)&&!v.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),v.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);(()=>{"use strict";v(598),v(948),v(635),v(877),v(990);var e=prestashop,l=v.n(e),e=v(609),c=v.n(e);function i(e,t){var n=t.children().detach();t.empty().append(e.children().detach()),e.append(n)}function r(){l().responsive.mobile?c()("*[id^='_desktop_']").each((e,t)=>{var n=c()(`#${t.id.replace("_desktop_","_mobile_")}`);n.length&&i(c()(t),n)}):c()("*[id^='_mobile_']").each((e,t)=>{var n=c()(`#${t.id.replace("_mobile_","_desktop_")}`);n.length&&i(c()(t),n)}),l().emit("responsive update",{mobile:l().responsive.mobile})}l().themeSelectors={product:{tabs:".tabs .nav-link",activeNavClass:"js-product-nav-active",activeTabClass:"js-product-tab-active",activeTabs:".tabs .nav-link.active, .js-product-nav-active",imagesModal:".js-product-images-modal",thumb:".js-thumb",thumbContainer:".thumb-container, .js-thumb-container",arrows:".js-arrows",selected:".selected, .js-thumb-selected",modalProductCover:".js-modal-product-cover",cover:".
573js-qv-product-cover"},listing:{searchFilterToggler:"#search_filter_toggler, .js-search-toggler",searchFiltersWrapper:"#search_filters_wrapper",searchFilterControls:"#search_filter_controls",searchFilters:"#search_filters",activeSearchFilters:"#js-active-search-filters",listTop:"#js-product-list-top",list:"#js-product-list",listBottom:"#js-product-list-bottom",listHeader:"#js-product-list-header",searchFiltersClearAll:".js-search-filters-clear-all",searchLink:".js-search-link"},order:{returnForm:"#order-return-form, .js-order-return-form"},arrowDown:".arrow-down, .js-arrow-down",arrowUp:".arrow-up, .js-arrow-up",clear:".clear",fileInput:".js-file-input",contentWrapper:"#content-wrapper, .js-content-wrapper",footer:"#footer, .js-footer",modalContent:".js-modal-content",modal:"#modal, .js-checkout-modal",touchspin:".js-touchspin",checkout:{termsLink:".js-terms a",giftCheckbox:".js-gift-checkbox",imagesLink:".card-block .cart-summary-products p a, .js-show-details",carrierExtraContent:".carrier-extra-content, .js-carrier-extra-content"}},c()(document).ready(()=>{l().emit("themeSelectorsInit")}),l().responsive=l().responsive||{},l().responsive.current_width=window.innerWidth,l().responsive.min_width=992,l().responsive.mobile=l().responsive.current_width<l().responsive.min_width,c()(window).on("resize",()=>{var e=l().responsive.current_width,t=l().responsive.min_width,n=window.innerWidth,t=t<=e&&n<t||e<t&&t<=n;l().responsive.current_width=n,l().responsive.mobile=l().responsive.current_width<l().responsive.min_width,t&&r()}),c()(document).ready(()=>{l().responsive.mobile&&r()}),c()(document).ready(()=>{1===c()("body#checkout").length&&(c()(l().themeSelectors.checkout.termsLink).on("click",e=>{e.preventDefault();e=c()(e.target).attr("href");e&&(e+="?content_only=1",c().get(e,e=>{c()(l().themeSelectors.modal).find(l().themeSelectors.modalContent).html(c()(e).find(".page-cms").contents())}).fail(e=>{l().emit("handleError",{eventType:"clickTerms",resp:e})})),c()(l().themeSelectors.modal).modal("show")}),c()(l().themeSelectors.checkout.giftCheckbox).on("click",()=>{c()("#gift").collapse("toggle")}),c()(l().themeSelectors.checkout.imagesLink).on("click",function(){const e=c()(this).find("i.material-icons");"expand_more"===e.text()?e.text("expand_less"):e.text("expand_more")})),l().on("updatedDeliveryForm",e=>{void 0!==e.deliveryOption&&0!==e.deliveryOption.length&&(c()(l().themeSelectors.checkout.carrierExtraContent).hide(),e.deliveryOption.next(l().themeSelectors.checkout.carrierExtraContent).slideDown())})}),c()(document).ready(function(){c()("body#order-detail")&&c()(`${l().themeSelectors.order.returnForm} table thead input[type=checkbox]`).on("click",function(){const n=c()(this).prop("checked");c()(`${l().themeSelectors.order.returnForm} table tbody input[type=checkbox]`).each((e,t)=>{c()(t).prop("checked",n)})})});v(5);class a{init(){c()(".js-product-miniature").each((e,t)=>{if(5<c()(t).find(".color").length){let n=0;c()(t).find(".color").each((e,t)=>{4<e&&(c()(t).hide(),n+=1)}),c()(t).find(".js-count").append(`+${n}`)}})}}c()(document).ready(()=>{const t=window.location.href;l().on("clickQuickView",e=>{e={action:"quickview",id_product:e.dataset.idProduct,id_product_attribute:e.dataset.idProductAttribute};c().post(l().urls.pages.product,e,null,"json").then(e=>{c()("body").append(e.quickview_html);const t=c()(`#quickview-modal-${e.product.id}-${e.product.id_product_attribute}`);t.modal("show"),n(t),t.on("hidden.bs.modal",()=>{t.remove()})}).fail(e=>{l().emit("handleError",{eventType:"clickQuickView",resp:e})})});const n=e=>{const t=c()(l().themeSelectors.product.arrows),n=e.find(".js-qv-product-images");c()(l().themeSelectors.product.thumb).on("click",e=>{c()(l().themeSelectors.product.thumb).hasClass("selected")&&c()(l().themeSelectors.product.thumb).removeClass("selected"),c()(e.currentTarget).addClass("selected"),c()(l().themeSelectors.product.cover).attr("src",c()(e.target).data("image-large-src"))}),n.find("li").length<=4?t.hide():t.on("click",e=>{c()(e.target).hasClass("arrow-up")&&c()(".js-qv-product-images").position().top<0?(i("up"),c()(l().themeSelectors.arrowDown).css("opacity","1")):c()(e.target).hasClass("arrow-down")&&n.position().top+n.height()>c()(".js-qv-mask").height()&&(i("down"),c()(l().themeSelectors.arrowUp).css("opacity","1"))}),e.find(l().selectors.quantityWanted).TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:1,max:1e6}),c()(l().themeSelectors.touchspin).off("touchstart.touchspin")},i=e=>{const t=c()(".js-qv-product-images");var n=c()(".js-qv-product-images li img").height()+20,i=t.position().top;t.velocity({translateY:"up"===e?i+n:i-n},()=>{0<=t.position().top?c()(".arrow-up").css("opacity",".2"):t.position().top+t.height()<=c()(".js-qv-mask").height()&&c()(".arrow-down").css("opacity",".2")})};c()("body").on("click",l().themeSelectors.listing.searchFilterToggler,()=>{c()(l().themeSelectors.listing.searchFiltersWrapper).removeClass("hidden-sm-down"),c()(l().themeSelectors.contentWrapper).addClass("hidden-sm-down"),c()(l().themeSelectors.footer).addClass("hidden-sm-down")}),c()(`${l().themeSelectors.listing.searchFilterControls} ${l().themeSelectors.clear}`).on("click",()=>{c()(l().themeSelectors.listing.searchFiltersWrapper).addClass("hidden-sm-down"),c()(l().themeSelectors.contentWrapper).removeClass("hidden-sm-down"),c()(l().themeSelectors.footer).removeClass("hidden-sm-down")}),c()(`${l().themeSelectors.listing.searchFilterControls} .ok`).on("click",()=>{c()(l().themeSelectors.listing.searchFiltersWrapper).addClass("hidden-sm-down"),c()(l().themeSelectors.contentWrapper).removeClass("hidden-sm-down"),c()(l().themeSelectors.footer).removeClass("hidden-sm-down")});const r=function(e){if(void 0!==e.target.dataset.searchUrl)return e.target.dataset.searchUrl;if(void 0===c()(e.target).parent()[0].dataset.searchUrl)throw new Error("Can not parse search U
573RL");return c()(e.target).parent()[0].dataset.searchUrl};c()("body").on("change",`${l().themeSelectors.listing.searchFilters} input[data-search-url]`,e=>{l().emit("updateFacets",r(e))}),c()("body").on("click",l().themeSelectors.listing.searchFiltersClearAll,e=>{l().emit("updateFacets",r(e))}),c()("body").on("click",l().themeSelectors.listing.searchLink,e=>{e.preventDefault(),l().emit("updateFacets",c()(e.target).closest("a").get(0).href)}),window.addEventListener("popstate",e=>{var{state:e}=e;window.location.href=e&&e.current_url?e.current_url:t}),c()("body").on("change",`${l().themeSelectors.listing.searchFilters} select`,e=>{const t=c()(e.target).closest("form");l().emit("updateFacets",`?${t.serialize()}`)}),l().on("updateProductList",e=>{!function(e){c()(l().themeSelectors.listing.searchFilters).replaceWith(e.rendered_facets),c()(l().themeSelectors.listing.activeSearchFilters).replaceWith(e.rendered_active_filters),c()(l().themeSelectors.listing.listTop).replaceWith(e.rendered_products_top),c()(l().themeSelectors.listing.list).replaceWith(e.rendered_products),c()(l().themeSelectors.listing.listBottom).replaceWith(e.rendered_products_bottom),e.rendered_products_header&&c()(l().themeSelectors.listing.listHeader).replaceWith(e.rendered_products_header);const t=new a;t.init()}(e),window.scrollTo(0,0)})});class u{init(){const e=c()(".js-modal-arrows"),t=c()(".js-modal-product-images");c()("body").on("click",".js-modal-thumb",e=>{c()(".js-modal-thumb").hasClass("selected")&&c()(".js-modal-thumb").removeClass("selected"),c()(e.currentTarget).addClass("selected"),c()(".js-modal-product-cover").attr("src",c()(e.target).data("image-large-src")),c()(".js-modal-product-cover").attr("title",c()(e.target).attr("title")),c()(".js-modal-product-cover").attr("alt",c()(e.target).attr("alt"))}).on("click","aside#thumbnails",e=>{"thumbnails"===e.target.id&&c()("#product-modal").modal("hide")}),c()(".js-modal-product-images li").length<=5?e.css("opacity",".2"):e.on("click",e=>{c()(e.target).hasClass("arrow-up")&&t.position().top<0?(this.move("up"),c()(".js-modal-arrow-down").css("opacity","1")):c()(e.target).hasClass("arrow-down")&&t.position().top+t.height()>c()(".js-modal-mask").height()&&(this.move("down"),c()(".js-modal-arrow-up").css("opacity","1"))})}move(e){const t=c()(".js-modal-product-images");var n=c()(".js-modal-product-images li img").height()+10,i=t.position().top;t.velocity({translateY:"up"===e?i+n:i-n},()=>{0<=t.position().top?c()(".js-modal-arrow-up").css("opacity",".2"):t.position().top+t.height()<=c()(".js-modal-mask").height()&&c()(".js-modal-arrow-down").css("opacity",".2")})}}c()(document).ready(()=>{function o(){const i=c()(l().themeSelectors.product.cover);let r=c()(l().themeSelectors.product.selected);const o=(e,t)=>{const n=t.find(l().themeSelectors.product.thumb);c()(l().themeSelectors.product.modalProductCover).attr("src",n.data("image-large-src")),e.removeClass("selected"),n.addClass("selected"),i.prop("src",n.data("image-medium-src"))};c()(l().themeSelectors.product.thumb).on("click",e=>{r=c()(l().themeSelectors.product.selected),o(r,c()(e.target).closest(l().themeSelectors.product.thumbContainer))}),i.swipe({swipe:(e,t)=>{r=c()(l().themeSelectors.product.selected);const n=r.closest(l().themeSelectors.product.thumbContainer);"right"===t?0<n.prev().length?o(r,n.prev()):0<n.next().length&&o(r,n.next()):"left"===t&&(0<n.next().length?o(r,n.next()):0<n.prev().length&&o(r,n.prev()))}})}function s(){2<c()("#main .js-qv-product-images li").length?(c()("#main .js-qv-mask").addClass("scroll"),c()(".scroll-box-arrows").addClass("scroll"),c()("#main .js-qv-mask").scrollbox({direction:"h",distance:113,autoPlay:!1}),c()(".scroll-box-arrows .left").click(()=>{c()("#main .js-qv-mask").trigger("backward")}),c()(".scroll-box-arrows .right").click(()=>{c()("#main .js-qv-mask").trigger("forward")})):(c()("#main .js-qv-mask").removeClass("scroll"),c()(".scroll-box-arrows").removeClass("scroll"))}function a(){c()(l().themeSelectors.fileInput).on("change",e=>{let t;(e=c()(e.currentTarget)[0])&&(t=e.files[0])&&c()(e).prev().text(t.name)})}!function(){const t=c()(l().selectors.quantityWanted);t.TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:parseInt(t.attr("min"),10),max:1e6}),c()(l().themeSelectors.touchspin).off("touchstart.touchspin"),t.focu
573sout(()=>{(""===t.val()||t.val()<t.attr("min"))&&(t.val(t.attr("min")),t.trigger("change"))}),c()("body").on("change keyup",l().selectors.quantityWanted,e=>{""!==t.val()&&(c()(e.currentTarget).trigger("touchspin.stopspin"),l().emit("updateProduct",{eventType:"updatedProductQuantity",event:e}))})}(),a(),o(),s(),function(){const e=c()(l().themeSelectors.product.tabs);e.on("show.bs.tab",e=>{const t=c()(e.target);t.addClass(l().themeSelectors.product.activeNavClass),c()(t.attr("href")).addClass(l().themeSelectors.product.activeTabClass)}),e.on("hide.bs.tab",e=>{const t=c()(e.target);t.removeClass(l().themeSelectors.product.activeNavClass),c()(t.attr("href")).removeClass(l().themeSelectors.product.activeTabClass)})}(),l().on("updatedProduct",e=>{if(a(),o(),e&&e.product_minimal_quantity){var t=parseInt(e.product_minimal_quantity,10),n=l().selectors.quantityWanted;const r=c()(n);r.trigger("touchspin.updatesettings",{min:t})}s(),c()(c()(l().themeSelectors.product.activeTabs).attr("href")).addClass("active").removeClass("fade"),c()(l().themeSelectors.product.imagesModal).replaceWith(e.product_images_modal);const i=new u;i.init()})}),l().cart=l().cart||{},l().cart.active_inputs=null;const f='input[name="product-quantity-spin"]';let n=!1,o=!1,s="";function d(){c().each(c()(f),(e,t)=>{c()(t).TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin js-increase-product-quantity",buttonup_class:"btn btn-touchspin js-touchspin js-decrease-product-quantity",min:parseInt(c()(t).attr("min"),10),max:1e6})}),c()(l().themeSelectors.touchspin).off("touchstart.touchspin"),h.switchErrorStat()}c()(document).ready(()=>{const o=".js-cart-line-product-quantity",s=[];l().on("updateCart",()=>{c()(".quickview").modal("hide")}),l().on("updatedCart",()=>{d()}),d();const e=c()("body");function n(e,t){if("on.startupspin"!==(n=t)&&"on.startdownspin"!==n)return{url:e.attr("href"),type:function(e){var t=e.split("-");let n,i,r="";for(n=0;n<t.length;n+=1)i=t[n],0!==n&&(i=i.substring(0,1).toUpperCase()+i.substring(1)),r+=i;return r}(e.data("link-action"))};var n;const i=function(e){const t=e.parents(".bootstrap-touchspin").find(o);return t.is(":focus")?null:t}(e);if(!i)return!1;let r={};return r="on.startupspin"===t?{url:i.data("up-url"),type:"increaseProductQuantity"}:{url:i.data("down-url"),type:"decreaseProductQuantity"},r}const a=()=>{let e;for(;0<s.length;)e=s.pop(),e.abort()};var t=e=>{e.preventDefault();const i=c()(e.currentTarget),{dataset:r}=e.currentTarget,t=n(i,e.namespace);t&&(a(),c().ajax({url:t.url,method:"POST",data:{ajax:"1",action:"update"},dataType:"json",beforeSend(e){s.push(e)}}).then(e=>{h.checkUpdateOpertation(e);const t=(n=i,c()(n.parents(".bootstrap-touchspin").find("input")));var n;t.val(e.quantity),l().emit("updateCart",{reason:r,resp:e})}).fail(e=>{l().emit("handleError",{eventType:"updateProductInCart",resp:e,cartAction:t.type})}))};function i(e){const t=c()(e.currentTarget);var n,i=t.data("update-url"),r=t.attr("value"),e=t.val();e!=parseInt(e,10)||e<0||isNaN(e)?t.val(r):0!=(r=e-r)&&(t.attr("value",e),i=i,r=r,r={ajax:"1",qty:Math.abs(r),action:"update",op:0<r?"up":"down"},n=t,a(),c().ajax({url:i,method:"POST",data:r,dataType:"json",beforeSend(e){s.push(e)}}).then(e=>{h.checkUpdateOpertation(e),n.val(e.quantity);let t;t=n&&n.dataset?n.dataset:e,l().emit("updateCart",{reason:t,resp:e})}).fail(e=>{l().emit("handleError",{eventType:"updateProductQuantityInCart",resp:e})}))}e.on("click",'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]',t),e.on("touchspin.on.startdownspin",f,t),e.on("touchspin.on.startupspin",f,t),e.on("focusout keyup",o,e=>("keyup"===e.type?13===e.keyCode&&i(e):i(e),!1));e.on("hidden.bs.collapse","#promo-code",()=>{c()(".display-promo").show(400)}),e.on("click",".promo-code-button",e=>{e.preventDefault(),c()("#promo-code").collapse("toggle")}),e.on("click",".display-promo",e=>{c()(e.currentTarget).hide(400)}),e.on("click",".js-discount .code",e=>{e.stopPropagation();const t=c()(e.currentTarget),n=c()("[name=discount_name]");return n.val(t.text()),c()("#promo-code").collapse("show"),c()(".display-promo").hide(400),!1})});const h={switchErrorStat:()=>{const e=c()(".checkout a");var t;(c()("#notifications article.alert-danger").length||""!==s&&!n)&&e.addClass("disabled"),""!==s?(t=` <article class="alert alert-danger" role="alert" data-alert="danger"><ul><li>${s}</li></ul></article>`,c()("#notifications .container").html(t),s="",o=!1,n&&e.removeClass("disabled")):!n&&o&&(n=!1,o=!1,c()("#notifications .container").html(""),e.removeClass("disabled"))},checkUpdateOpertation:e=>{n=e.hasOwnProperty("hasError");const t=e.errors||"";s=t instanceof Array?t.join(" "):t,o=!0}};var e=v(590),t=v.n(e);class p{constructor(e){this.el=e}init(){this.el.on("show.bs.dropdown",(e,t)=>{(t?c()(`#${t}`):c()(e.target)).find(".dropdown-menu").first().stop(!0,!0).slideDown()}),this.el.on("hide.bs.dropdown",(e,t)=>{(t?c()(`#${t}`):c()(e.target)).find(".dropdown-menu").first().stop(!0,!0).slideUp()}),this.el.find("select.link").each((e,t)=>{c()(t).on("change",function(){window.location=c()(this).val()})})}}class m{init(){this.parentFocus(),this.togglePasswordVisibility()}parentFocus(){c()(".js-child-focus").focus(function(){c()(this).closest(".
vendor: 4,662 bytes, lines 573-574
573js-parent-focus").addClass("focus")}),c()(".js-child-focus").focusout(function(){c()(this).closest(".js-parent-focus").removeClass("focus")})}togglePasswordVisibility(){c()('button[data-action="show-password"]').on("click",function(){const e=c()(this).closest(".input-group").children("input.js-visible-password");"password"===e.attr("type")?(e.attr("type","text"),c()(this).text(c()(this).data("textHide"))):(e.attr("type","password"),c()(this).text(c()(this).data("textShow")))})}}class g extends p{init(){let i;const e=this;this.el.find("li").hover(e=>{if(!this.el.parent().hasClass("mobile")){var t=c()(e.currentTarget).attr("class");if(i!==t){const n=Array.prototype.slice.call(e.currentTarget.classList).map(e=>"string"==typeof e&&`.${e}`);i=n.join(""),i&&0===c()(e.target).data("depth")&&c()(`${i} .js-sub-menu`).css({top:c()(`${i}`).height()+c()(`${i}`).position().top})}}}),c()("#menu-icon").on("click",()=>{c()("#mobile_top_menu_wrapper").toggle(),e.toggleMobileMenu()}),this.el.on("click",e=>{this.el.parent().hasClass("mobile")||e.stopPropagation()}),l().on("responsive update",()=>{c()(".js-sub-menu").removeAttr("style"),e.toggleMobileMenu()}),super.init()}toggleMobileMenu(){}}v(105),v(285);l().blockcart=l().blockcart||{},l().blockcart.showModal=e=>{function t(){return c()("#blockcart-modal")}let n=t();n.length&&n.remove(),c()("body").append(e),n=t(),n.modal("show").on("hidden.bs.modal",e=>{l().emit("updateProduct",{reason:e.currentTarget.dataset,event:e})})};for(const y in t().prototype)l()[y]=t().prototype[y];c()(document).ready(()=>{var e=c()(".js-dropdown");const t=new m;var n=c()('.js-top-menu ul[data-depth="0"]');const i=new p(e),r=new g(n),o=new a,s=new u;i.init(),t.init(),r.init(),o.init(),s.init(),c()('.carousel[data-touch="true"]').swipe({swipe(e,t){"left"===t&&c()(this).carousel("next"),"right"===t&&c()(this).carousel("prev")},allowPageScroll:"vertical"})})})()})();/*! For license information please see front.js.LICENSE.txt */ 574(()=>{var e={267:()=>{},379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var a={},o=[],i=0;i<e.length;i++){var c=e[i],u=n.base?c[0]+n.base:c[0],l=a[u]||0,d="".concat(u," ").concat(l);a[u]=l+1;var p=r(d),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var v=s(f,n);n.byIndex=i,t.splice(i,0,{identifier:d,updater:v,references:1})}o.push(d)}return o}function s(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,s){var a=n(e=e||[],s=s||{});return function(e){e=e||[];for(var o=0;o<a.length;o++){var i=r(a[o]);t[i].references--}for(var c=n(e,s),u=0;u<a.length;u++){var l=r(a[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}a=c}}},569:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var s=void 0!==r.layer;s&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,s&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>
574{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nc=void 0,(()=>{"use strict";var e=r(379),t=r.n(e),n=r(795),s=r.n(n),a=r(569),o=r.n(a),i=r(565),c=r.n(i),u=r(216),l=r.n(u),d=r(589),p=r.n(d),f=r(267),v=r.n(f),m={};m.styleTagTransform=p(),m.setAttributes=c(),m.insert=o().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=l(),t()(v(),m),v()&&v().locals&&v().locals,$(window).ready((()=>{const e=$(".blockreassurance_product img.svg, .blockreassurance img.svg").map((function(){return $(this).attr("src")})).toArray();e.filter(((t,r)=>e.indexOf(t)===r)).forEach((function(e){const t=$(`.blockreassurance_product img.svg.invisible[src="${e}"], .blockreassurance img.svg.invisible[src="${e}"]`);0!==t.length&&$.ajax({url:e,type:"GET",success(r){if($.isXMLDoc(r)){let n=$(r).find("svg");n=n.attr("data-img-url",e),n=n.removeAttr("xmlns:a"),n.find("path[fill]").attr("fill",window.psr_icon_color),n.find("path:not([fill])").css("fill",window.psr_icon_color),t.each((function(){const e=$(this).attr("id"),t=$(this).attr("class");let r=n.clone();r=void 0!==e?r.attr("id",e):r,r=void 0!==t?r.attr("class",`${t} replaced-svg`):r.attr("class"," replaced-svg"),r.removeClass("invisible"),$(this).replaceWith(r)}))}}})}))}))})()})();/** 575 * 2007-2020 PrestaShop. 576 * 577 * NOTICE OF LICENSE 578 * 579 * This source file is subject to the Academic Free License 3.0 (AFL-3.0) 580 * that is bundled with this package in the file LICENSE.txt. 581 * It is also available through the world-wide-web at this URL: 582 * https://opensource.org/licenses/AFL-3.0 583 * If you did not receive a copy of the license and are unable to 584 * obtain it through the world-wide-web, please send an email 585 * to [email protected] so we can send you a copy immediately. 586 * 587 * DISCLAIMER 588 * 589 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 590 * versions in the future. If you wish to customize PrestaShop for your 591 * needs please refer to http://www.prestashop.com for more information. 592 * 593 * @author PrestaShop SA <[email protected]> 594 * @copyright 2007-2020 PrestaShop SA 595 * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) 596 * International Registered Trademark & Property of PrestaShop SA 597 */ 598$(document).ready(function(){$('.block_newsletter form').on('submit',function(){var psemailsubscriptionForm=$(this);if(typeof psemailsubscription_subscription==='undefined'){return!0} 599$('.block_newsletter_alert').remove();$.ajax({type:'POST',dataType:'JSON',url:psemailsubscription_subscription,cache:!1,data:$(this).serialize(),success:function(data){if(data.nw_error){psemailsubscriptionForm.prepend('<p class="alert alert-danger block_newsletter_alert">'+data.msg+'</p>')}else{psemailsubscriptionForm.prepend('<p class="alert alert-success block_newsletter_alert">'+data.msg+'</p>')}},error:function(err){console.log(err)}});return!1})});/* 600 * ISC License 601 * 602 * Copyright (c) 2024 idnovate.com 603 * idnovate is a Registered Trademark & Property of idnovate.com, innovación y desarrollo SCP 604 * 605 * Permission to use, copy, modify, and/or distribute this software for any 606 * purpose with or without fee is hereby granted, provided that the above 607 * copyright notice and this permission notice appear in all copies. 608 * 609 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 610 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 611 * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 612 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 613 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 614 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 615 * PERFORMANCE OF THIS SOFTWARE. 616 * 617 * @author idnovate 618 * @copyright 2024 idnovate 619 * @license https://www.isc.org/licenses/ https://opensource.org/licenses/ISC ISC License 620 */ 621var cookiesPlusBlockedScripts=cookiesPlusBlockedScripts||[];var cookieGdpr={init:function(){var self=this;self.loadedScriptsCount=0;self.loadedScriptsTotal=0;self.consentsGiven=0;if(document.cookie.indexOf('cookiesplus=')===-1){if(typeof C_P_EXPIRY==='undefined'){console.log('%cC_P_EXPIRY is not defined','background: red; color: white');return} 622var expireTime=new Date();expireTime.setDate(expireTime.getDate()+C_P_EXPIRY);var expires="expires="+expireTime.toUTCString();var cookieString="cookiesplus={}; domain="+C_P_DOMAIN+"; "+expires+"; path=/; SameSite="+PS_COOKIE_SAMESITE+";";if(PS_COOKIE_SECURE===1){cookieString+=" Secure;"} 623document.cookie=cookieString} 624const cookies=document.cookie.split('; ');
624const occurrences=cookies.filter(cookie=>cookie.startsWith('cookiesplus='));if(occurrences.length>1){console.log('Duplicate cookies found for cookiesplus');occurrences.forEach(()=>{document.cookie='cookiesplus=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;'})} 625$('.cookiesplus-move').appendTo(document.body);let cookiesplusVars=cookieGdpr.tryParseJSONObject(decodeURIComponent(cookieGdpr.getCookiesPlusCookieValue('cookiesplus')));let consentRefused=!1;if(typeof cookiesplusVars.consents==='object'&&cookiesplusVars.consents!==null){cookiesplusFinalities=Object.keys(cookiesplusVars.consents).filter(v=>v.startsWith('cookiesplus-finality'));self.consentsGiven=!1;cookiesplusFinalities.forEach(function(key){self.consentsGiven=!0;if(cookiesplusVars.consents[key]==='on'){$("label[for='"+key+'-'+cookiesplusVars.consents[key]+"']").click()}else{consentRefused=!0}}) 626if(cookiesplusVars.consent_link&&cookiesplusVars.consent_hash){$('.cookiesplus-consent-hash a').attr('href',C_P_CONSENT_DOWNLOAD+cookiesplusVars.consent_link);$('.cookiesplus-consent-hash a').text(cookiesplusVars.consent_hash);$('.cookiesplus-consent-hash').show()}} 627cookieGdpr.removeCookies();cookieGdpr.loadJs();cookieGdpr.executeScriptsAndCss();if($('body#cms').length){id=$('body#cms').attr('class').match(/cms-[\w-]*\b/);if(id){id=id[0].replace(/[^0-9]/gi,'');if(typeof cookiesplusVars.C_P_CMS_PAGE!=='undefined'&&(typeof cookiesplusVars.C_P_CMS_PAGE===id)){return}}} 628if(typeof C_P_DISPLAY_AGAIN!=='undefined'&&C_P_DISPLAY_AGAIN>0&&consentRefused){var dateCookiesAccepted=new Date(cookiesplusVars.consent_date.replace(/\+/g,' '));var xDaysAgo=new Date();xDaysAgo.setDate(xDaysAgo.getDate()-C_P_DISPLAY_AGAIN);if(dateCookiesAccepted<xDaysAgo){cookieGdpr.displayModal()}} 629if(typeof cookiesplusVars.C_P_DISPLAY_MODAL==='undefined'||(typeof cookiesplusVars.C_P_DISPLAY_MODAL!=='undefined'&&cookiesplusVars.C_P_DISPLAY_MODAL==!0)){cookieGdpr.displayModal()}},displayModal:function(){if(typeof $.uniform!=="undefined"&&typeof $.uniform.update!=="undefined"){$.uniform.update(".cookiesplus-finality-checkbox");$.uniform.restore(".cookiesplus-finality-checkbox")} 630if(typeof C_P_FINALITIES_COUNT==='undefined'||C_P_FINALITIES_COUNT<=1){console.log('%cC_P_FINALITIES_COUNT is empty','background: red; color: white');return} 631if($('.cookiesplus-move.container').length==0){console.log('%cCookiesplus banner not found','background: red; color: white')} 632if($('.cookiesplus-move.container').length>1){console.log('%cCookiesplus banner is duplicated','background: red; color: white')} 633if(typeof C_P_NOT_AVAILABLE_OUTSIDE_EU!=='undefined'&&C_P_NOT_AVAILABLE_OUTSIDE_EU===0){console.log('%cC_P_NOT_AVAILABLE_OUTSIDE_EU','background: red; color: white');return} 634this.displayOverlay();$('.cookiesplus-actions .first-layer').show();$("#cookiesplus-modal").addClass("first-layer-visible");$('.cookiesplus-finalities').slideUp('fast');$('.cookiesplus-actions .second-layer').hide();$("#cookiesplus-modal").removeClass("second-layer-visible");$('#cookiesplus-modal .cookiesplus-close-and-save').show();$('#cookiesplus-modal .cookiesplus-close').hide();$('#cookiesplus-modal').fadeIn('fast')},displayModalAdvanced:function(fromFirstLayer){if(typeof $.uniform!=="undefined"&&typeof $.uniform.update!=="undefined"){$.uniform.update(".cookiesplus-finality-checkbox");$.uniform.restore(".cookiesplus-finality-checkbox")} 635$('.cookiesplus-finality-content').each(function(){$(this).hide();$(this).parent().find('.cookiesplus-finality-chevron').removeClass('up').addClass('bottom')});this.displayOverlay();if(typeof C_P_NOT_AVAILABLE_OUTSIDE_EU!=='undefined'&&C_P_NOT_AVAILABLE_OUTSIDE_EU===0){$('#cookiesplus-modal-not-available').fadeIn('fast');$('#cookiesplus-overlay').click(function(){cookieGdpr.close()})}else{$('#cookiesplus-modal').fadeIn('fast');$('.cookiesplus-actions .first-layer').hide();$("#cookiesplus-modal").removeClass("first-layer-visible");$('.cookiesplus-finalities').slideDown('fast');$('.cookiesplus-actions .second-layer').show();$("#cookiesplus-modal").addClass("second-layer-visible");if(!fromFirstLayer){$('#cookiesplus-modal .cookiesplus-close-and-save').hide();$('#cookiesplus-modal .cookiesplus-close-and-reject').hide();$('#cookiesplus-modal #cookiesplus-back').hide();$('#cookiesplus-modal .cookiesplus-close').show()}}},save:function(){return cookieGdpr.sendForm()},acceptAllCookies:function(){$('input:radio:not(:disabled)[name^=cookiesplus-finality-][value=on]').prop('checked',!0);return cookieGdpr.sendForm()},rejectAllCookies:function(){if($('.cookiesplus-text-encourage').length>0){if($('.cookiesplus-text-encourage').is(":visible")){$('input:radio:not(:disabled)[name^=cookiesplus-finality-][value=off]').prop('checked',!0);return cookieGdpr.sendForm()}else{$('.cookiesplus-text').hide();$('.cookiesplus-buttons').hide();$('.cookiesplus-text-encourage').show();$('.cookiesplus-buttons-encourage').show();return!1}}else{$('input:radio:not(:disabled)[name^=cookiesplus-finality-][value=off]').prop('checked',!0);return cookieGdpr.sendForm()}},rejectAllCookiesFromX:function(){$('input:radio:not(:disabled)[name^=cookiesplus-finality-][value=off]').prop('checked',!0);return cookieGdpr.sendForm()},displayOverlay:function(){if(typeof C_P_OVERLAY!=='undefined'&&C_P_OVERLAY==='1'){$('#cookiesplus-overlay').fadeIn('fast');$('#cookiesplus-overlay').css('background-color','rgba(0, 0, 0, '+C_P_OVERLAY_OPACITY+')')} 636$('#cookiesplus-overlay').click(function(){cookieGdpr.shake($('#cookiesplus-modal'),4,2,20)})},close:function(){$('#cookiesplus-modal, #cookiesplus-modal-not-available, #cookiesplus-overlay').hide()},checkEvenDimensions:function(div){var styleObject=$(div).prop('style');styleObject.removeProperty('height');
636if($(div).height()%2===1){$(div).height(2*Math.round(($(div).height()-1)/2))} 637styleObject.removeProperty('width');$(div).css('width','');if($(div).width()%2===1){$(div).width(2*Math.round(($(div).width()-1)/2))}},shake:function(div,shakes,distance,duration){if(shakes>0){div.each(function(){var $el=$(this);var left=$el.css('left');$el.animate({left:"-="+distance},duration,function(){$el.animate({left:"+="+distance*2},duration,function(){$el.animate({left:left},duration,function(){cookieGdpr.shake($el,shakes-1,distance,duration)})})})})}},sendForm:function(){this.consentsGiven=!0;let cookiesplusVars=cookieGdpr.tryParseJSONObject(decodeURIComponent(cookieGdpr.getCookiesPlusCookieValue('cookiesplus')));if(cookiesplusVars instanceof Array){cookiesplusVars=Object.assign({},cookiesplusVars)} 638cookiesplusVars.C_P_DISPLAY_MODAL=!1;cookiesplusVars.consents={};$('#cookiesplus-form input:checked').each(function(){cookiesplusVars.consents[$(this).attr('name')]=$(this).val()});cookiesplusVars.consent_date=C_P_DATE;var expireTime=new Date();expireTime.setDate(expireTime.getDate()+C_P_EXPIRY);var expires="expires="+expireTime.toUTCString();var cookieString="cookiesplus="+encodeURIComponent(JSON.stringify(cookiesplusVars))+"; domain="+C_P_DOMAIN+"; "+expires+"; path=/; SameSite="+PS_COOKIE_SAMESITE+";";if(PS_COOKIE_SECURE===1){cookieString+=" Secure;"} 639document.cookie=cookieString;cookieGdpr.removeCookies();if(typeof C_P_REFRESH!=='undefined'&&!C_P_REFRESH){$.ajax({type:"POST",cache:!1,async:!0,url:$('#cookiesplus-form').attr('action'),data:'saveCookiesPlusPreferences=&ajax=1&'+$('#cookiesplus-form').serialize(),dataType:'json',headers:{"cache-control":"no-cache"},success:function(data){if(data.consent_link&&data.consent_hash){$('.cookiesplus-consent-hash a').attr('href',data.consent_link);$('.cookiesplus-consent-hash a').text(data.consent_hash);$('.cookiesplus-consent-hash').show();cookiesplusVars.consent_hash=data.consent_hash;var cookieString="cookiesplus="+encodeURIComponent(JSON.stringify(cookiesplusVars))+"; domain="+C_P_DOMAIN+"; "+expires+"; path=/; SameSite="+PS_COOKIE_SAMESITE+";";if(PS_COOKIE_SECURE===1){cookieString+=" Secure;"} 640document.cookie=cookieString} 641cookieGdpr.loadJs();cookieGdpr.executeScriptsAndCss();cookieGdpr.fireGTMEvents()},error:function(XMLHttpRequest,textStatus,errorThrown){window.cookiesplus_debug===!0&&console.log(errorThrown)}});cookieGdpr.close();return!1}else{cookieGdpr.close();return!0}},removeCookies:function(){$('#cookiesplus-form input:checked').each(function(){if($(this).val()!=='on'){let nameAttr=$(this).attr('name');let finalityId=parseInt(nameAttr.split('-').pop());if(typeof C_P_COOKIE_CONFIG[finalityId]!=='undefined'&&typeof C_P_COOKIE_CONFIG[finalityId].cookies!=='undefined'){Object.keys(C_P_COOKIE_CONFIG[finalityId].cookies).forEach(function(key){if(C_P_COOKIE_CONFIG[finalityId].cookies[key].name.includes('#')){let cookieValue=C_P_COOKIE_CONFIG[finalityId].cookies[key].name;let hashIndex=cookieValue.indexOf("#");let prefix=cookieValue.substr(0,hashIndex);let suffix=cookieValue.substr(hashIndex+1);window.cookiesplus_debug===!0&&console.log('Removing cookies starting with '+prefix+' and ending with '+suffix);document.cookie.split(";").forEach(function(cookie){let cookieName=cookie.trim().split("=")[0];if(cookieName.indexOf(prefix)===0&&cookieName.endsWith(suffix)){var urlParts=location.hostname.split('.');for(var i=2;i<urlParts.length+1;i++){window.cookiesplus_debug===!0&&console.log('Removing cookie '+cookieName);document.cookie=cookieName+'=;expires=Thu, 01 Jan 1970 00:00:01 GMT;Max-Age=0; path=/;';document.cookie=cookieName+'=;expires=Thu, 01 Jan 1970 00:00:01 GMT;Max-Age=0; path=/; domain='+urlParts.slice(-i).join('.');document.cookie=cookieName+'=;expires=Thu, 01 Jan 1970 00:00:01 GMT;Max-Age=0; path=/; domain=.'+urlParts.slice(-i).join('.')}}})}else{window.cookiesplus_debug===!0&&console.log('Removing cookie '+C_P_COOKIE_CONFIG[finalityId].cookies[key].name);var urlParts=location.hostname.split('.');for(var i=2;i<urlParts.length+1;i++){document.cookie=C_P_COOKIE_CONFIG[finalityId].cookies[key].name+'=;expires=Thu, 01 Jan 1970 00:00:01 GMT;Max-Age=0; path=/;';
641document.cookie=C_P_COOKIE_CONFIG[finalityId].cookies[key].name+'=;expires=Thu, 01 Jan 1970 00:00:01 GMT;Max-Age=0; path=/; domain='+urlParts.slice(-i).join('.');document.cookie=C_P_COOKIE_CONFIG[finalityId].cookies[key].name+'=;expires=Thu, 01 Jan 1970 00:00:01 GMT;Max-Age=0; path=/; domain=.'+urlParts.slice(-i).join('.')}}})}}})},loadJs:function(){if(!this.consentsGiven){return} 642const variableNames=this.getVariablesStartingWith('cookiesplus_js_');variableNames.forEach(variableName=>{try{const variableValue=window[variableName];if(variableValue){const parsedValue=cookieGdpr.tryParseJSONObject(variableValue);var hookModuleData=[];hookModuleData.id_module=parsedValue.id_module;hookModuleData.location=`#${parsedValue.divName}`;hookModuleData.finalities=parsedValue.finalities;hookModuleData.script=parsedValue.script;hookModuleData.js=cookieGdpr.tryParseJSONObject(parsedValue.js);hookModuleData.css=cookieGdpr.tryParseJSONObject(parsedValue.css);window.cookiesPlusBlockedScripts.push(hookModuleData)}}catch(e){console.error(`Error parsing variable ${variableName}:`,e)}});for(var i=0;i<cookiesPlusBlockedScripts.length;i++){let cookiesPlusBlockedScript=cookiesPlusBlockedScripts[i];let finalities=cookiesPlusBlockedScript.finalities.split(',');let allFinalitiesAccepted=!0;for(var j=0;j<finalities.length;j++){if(!$('#cookiesplus-form input#cookiesplus-finality-'+finalities[j]+'-on:checked').val()){allFinalitiesAccepted=!1;break}} 643if(allFinalitiesAccepted){if(!$.isEmptyObject(cookiesPlusBlockedScript.js)){Object.keys(cookiesPlusBlockedScript.js).forEach((key)=>{self.loadedScriptsTotal+=Object.keys(cookiesPlusBlockedScript.js).length;var s=document.createElement('script');s.setAttribute('src',cookiesPlusBlockedScript.js[key]);s.onload=()=>{self.loadedScriptsCount++};document.body.appendChild(s)}) 644cookiesPlusBlockedScripts[i].js=[]}}} 645return!0},executeScriptsAndCss:function(){var self=this;if(!self.consentsGiven){return} 646cookieGdpr.tryParseJSONObject(decodeURIComponent(cookieGdpr.getCookiesPlusCookieValue('cookiesplus'))) 647if(self.loadedScriptsCount===self.loadedScriptsTotal){self.executeScriptsAndCssLoaded();self.executeCustomScripts();self.fireFBPixel();self.replaceYTDomain()}else{setTimeout(function(){self.executeScriptsAndCss()},100)}},executeScriptsAndCssLoaded:function(){const variableNames=this.getVariablesStartingWith('cookiesplus_js_');variableNames.forEach(variableName=>{try{const variableValue=window[variableName];if(variableValue){const parsedValue=cookieGdpr.tryParseJSONObject(variableValue);var hookModuleData=[];hookModuleData.id_module=parsedValue.id_module;hookModuleData.location=`#${parsedValue.divName}`;hookModuleData.finalities=parsedValue.finalities;hookModuleData.script=parsedValue.script;hookModuleData.js=cookieGdpr.tryParseJSONObject(parsedValue.js);hookModuleData.css=cookieGdpr.tryParseJSONObject(parsedValue.css);window.cookiesPlusBlockedScripts.push(hookModuleData)}}catch(e){console.error(`Error parsing variable ${variableName}:`,e)}});for(var i=0;i<cookiesPlusBlockedScripts.length;i++){let cookiesPlusBlockedScript=cookiesPlusBlockedScripts[i];let finalities=cookiesPlusBlockedScript.finalities.split(',');let allFinalitiesAccepted=!0;for(var j=0;j<finalities.length;j++){if(!$('#cookiesplus-form input#cookiesplus-finality-'+finalities[j]+'-on:checked').val()){allFinalitiesAccepted=!1;break}} 648if(allFinalitiesAccepted){if(cookiesPlusBlockedScript.script){$(cookiesPlusBlockedScript.location).replaceWith(cookiesPlusBlockedScript.script);cookiesPlusBlockedScripts[i].script=[]}
649Object.keys(cookiesPlusBlockedScript.css).forEach(function(key){var s=document.createElement('link');s.setAttribute('rel','stylesheet');s.setAttribute('href',cookiesPlusBlockedScript.css[key]);document.head.appendChild(s)}) 650cookiesPlusBlockedScripts[i].css=[]}} 651return!0},executeCustomScripts:function(){$('#cookiesplus-form input:checked').each(function(){if($(this).val()==='on'){if(typeof C_P_COOKIE_CONFIG!=='undefined'&&C_P_COOKIE_CONFIG[$(this).data('finality-id')]&&C_P_COOKIE_CONFIG[$(this).data('finality-id')].script){$('body').append('<div style="display: none;" id="cookiesplus-scripts-'+$(this).data('finality-id')+'"></div>');cookieGdpr.setInnerHTML(document.querySelector('#cookiesplus-scripts-'+$(this).data('finality-id')),C_P_COOKIE_CONFIG[$(this).data('finality-id')].script);C_P_COOKIE_CONFIG[$(this).data('finality-id')].script=[]} 652if(typeof C_P_COOKIE_CONFIG!=='undefined'&&C_P_COOKIE_CONFIG[$(this).data('finality-id')]&&C_P_COOKIE_CONFIG[$(this).data('finality-id')].body_code){$('body').append('<div style="display: none;" id="cookiesplus-body_code-'+$(this).data('finality-id')+'"></div>');cookieGdpr.setInnerHTML(document.querySelector('#cookiesplus-body_code-'+$(this).data('finality-id')),C_P_COOKIE_CONFIG[$(this).data('finality-id')].body_code);C_P_COOKIE_CONFIG[$(this).data('finality-id')].body_code=[]}}else if($(this).val()==='off'){if(typeof C_P_COOKIE_CONFIG!=='undefined'&&C_P_COOKIE_CONFIG[$(this).data('finality-id')]&&C_P_COOKIE_CONFIG[$(this).data('finality-id')].script_not){$('body').append('<div style="display: none;" id="cookiesplus-scripts-'+$(this).data('finality-id')+'"></div>');cookieGdpr.setInnerHTML(document.querySelector('#cookiesplus-scripts-'+$(this).data('finality-id')),C_P_COOKIE_CONFIG[$(this).data('finality-id')].script_not);C_P_COOKIE_CONFIG[$(this).data('finality-id')].script_not=[]}}});return!0},fireGTMEvents:function(){let consentUpdateObject={};$('#cookiesplus-form input:checked').each(function(){if(typeof C_P_COOKIE_CONFIG!=='undefined'&&C_P_COOKIE_CONFIG[$(this).data('finality-id')]&&C_P_COOKIE_CONFIG[$(this).data('finality-id')].consent_type){Object.keys(C_P_COOKIE_CONFIG[$(this).data('finality-id')].consent_type).forEach(key=>{if($(this).val()==='on'){window.cookiesplus_debug===!0&&console.log('Granting consent '+key);consentUpdateObject[key]='granted'}else{window.cookiesplus_debug===!0&&console.log('Denying consent '+key);consentUpdateObject[key]='denied'}})}});window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)} 653window.cookiesplus_debug===!0&&console.log('Consent update object:',consentUpdateObject);gtag('consent','update',consentUpdateObject);$('#cookiesplus-form input:checked').each(function(){if($(this).val()==='on'){if(typeof C_P_COOKIE_CONFIG!=='undefined'&&C_P_COOKIE_CONFIG[$(this).data('finality-id')]&&C_P_COOKIE_CONFIG[$(this).data('finality-id')].firingEvent){window.cookiesplus_debug===!0&&console.log('Firing event '+[C_P_COOKIE_CONFIG[$(this).data('finality-id')].firingEvent]);dataLayer.push({'event':[C_P_COOKIE_CONFIG[$(this).data('finality-id')].firingEvent]})}}});return!0},fireFBPixel:function(){if(typeof C_P_COOKIE_CONFIG==='undefined'){return!1} 654let fbAllConsents=!1;$('#cookiesplus-form input:checked').each(function(){fbAllConsents=!0;if($(this).val()!=='on'&&C_P_COOKIE_CONFIG[$(this).data('finality-id')]&&C_P_COOKIE_CONFIG[$(this).data('finality-id')].fb){fbAllConsents=!1;return!1}});if(fbAllConsents){window.cookiesplus_debug===!0&&console.log('Firing FB Pixel');if(typeof fbq!=='undefined'){fbq('consent','grant')}} 655return!0},replaceYTDomain:function(){if(typeof C_P_COOKIE_CONFIG==='undefined'){return!1} 656let ytAllConsents=!1;$('#cookiesplus-form input:checked').each(function(){ytAllConsents=!0;if($(this).val()!=='on'&&C_P_COOKIE_CONFIG[$(this).data('finality-id')]&&C_P_COOKIE_CONFIG[$(this).data('finality-id')].yt){ytAllConsents=!1;return!1}});if(ytAllConsents){window.cookiesplus_debug===!0&&console.log('Replacing YT domain');$('iframe, script').each(function(){var src=$(this).attr('src');if(src&&src.includes('youtube-nocookie.com')){var newSrc=src.replace('youtube-nocookie.com','youtube.com');$(this).attr('src',newSrc)}});$('a').each(function(){var href=$(this).attr('href');if(href&&href.includes('youtube-nocookie.com')){var newHref=href.replace('youtube-nocookie.com','youtube.com');$(this).attr('href',newHref)}})} 657return!0},setInnerHTML:function(elm,html){elm.innerHTML=html;
657Array.from(elm.querySelectorAll("script")).forEach(function(oldScript){const newScript=document.createElement("script");Array.from(oldScript.attributes).forEach(function(attr){newScript.setAttribute(attr.name,attr.value)});newScript.appendChild(document.createTextNode(oldScript.innerHTML));oldScript.parentNode.replaceChild(newScript,oldScript)})},tryParseJSONObject:function(jsonString){try{var o=JSON.parse(jsonString);if(o&&typeof o==="object"){return o}}catch(e){} 658return{}},getCookiesPlusCookieValue:function(name){var match=document.cookie.match(RegExp('(?:^|;\\s*)'+name+'=([^;]*)'));return match?match[1]:null},getVariablesStartingWith:function(prefix){const globalObj=typeof window!=='undefined'?window:global;return Object.keys(globalObj).filter(key=>key.startsWith(prefix))}} 659function waitForJqueryAndInitCookies(){if(typeof jQuery!=='undefined'){$(document).ready(function(){if(window.cookiesplus_debug){debugger} 660cookieGdpr.init();$('.cookiesplus-displaymodal').on('click',function(){cookieGdpr.displayModal()}) 661$('.cookiesplus-displaymodaladvanced').on('click',function(){cookieGdpr.displayModalAdvanced()}) 662$('a[href*="#cookiesplus-displaymodaladvanced"]').click(function(e){e.preventDefault();cookieGdpr.displayModalAdvanced()})})}else{setTimeout(waitForJqueryAndInitCookies,100)}} 663waitForJqueryAndInitCookies();/** 664* Cash On Delivery With Fee 665* 666* NOTICE OF LICENSE 667* 668* This product is licensed for one customer to use on one installation (test stores and multishop included). 669* Site developer has the right to modify this module to suit their needs, but can not redistribute the module in 670* whole or in part. Any other use of this module constitues a violation of the user agreement. 671* 672* DISCLAIMER 673* 674* NO WARRANTIES OF DATA SAFETY OR MODULE SECURITY 675* ARE EXPRESSED OR IMPLIED. USE THIS MODULE IN ACCORDANCE 676* WITH YOUR MERCHANT AGREEMENT, KNOWING THAT VIOLATIONS OF 677* PCI COMPLIANCY OR A DATA BREACH CAN COST THOUSANDS OF DOLLARS 678* IN FINES AND DAMAGE A STORES REPUTATION. USE AT YOUR OWN RISK. 679* 680* @author idnovate 681* @copyright 2022 idnovate 682* @license See above 683*/ 684function updateTotalsWithFee(){var js_checkout_summary='';if(typeof $('#js-checkout-summary')!=='undefined'){var js_checkout_summary='#js-checkout-summary '} 685var total_ori_html=$(js_checkout_summary+'.cart-summary-line.cart-total').last().html();if(typeof $('.cart-summary-line.cart-total_2').last().html()==='undefined'){if($(js_checkout_summary+'.cart-summary-totals div').length==2){if($(js_checkout_summary+'.cart-summary-totals div').last().prev().find('span.value').text()!=''){var total_ori_without_taxes_html=$(js_checkout_summary+'.cart-summary-totals div').last().prev().html()}}else{var total_ori_without_taxes_html=$(js_checkout_summary+'.cart-summary-totals .cart-summary-line.cart-total').last().prevAll('.cart-summary-line.cart-total').html()}}else{var total_ori_without_taxes_html=$('.cart-summary-line.cart-total_2').last().html()} 686if(typeof $('.cart-summary-line.cart-total').next().html()==='undefined'){var taxes_ori_html=$(js_checkout_summary+'.cart-summary-line.cart-total').prev().html();
686if($('#cart-subtotal-tax')){var taxes_ori_html=$('#cart-subtotal-tax').find('span.value').html()}}else{var taxes_ori_html=$(js_checkout_summary+'.cart-summary-line.cart-total').next().html()} 687$("input[name='payment-option']").click(function(){var codfee_id=$('#pay-with-'+this.id+'-form').find('input[name=codfee_id]').val();if(codfee_id!=null&&typeof codfee_id!=='undefined'){var conditions_checkbox=$("input[name='cgv']");if($("input[name='cgv']").size()==0){conditions_checkbox=$("input[name='conditions_to_approve[terms-and-conditions]']")} 688if(conditions_checkbox.size()==0||$("input[name='conditions_to_approve[terms-and-conditions]']").is(':checked')){document.querySelector('#payment-confirmation button').removeAttribute('disabled')}} 689if(codfee_id!=null&&typeof codfee_id!=='undefined'&&$("input[name='codfee_type_"+codfee_id+"']").val()!='3'){setTimeout(function(){$('#cart-subtotal-codfee').remove();if($("input[name='codfee_free_flag_"+codfee_id+"']").val()=='1'){$("input[name='codfee_fee_"+codfee_id+"']").val($("input[name='codfee_free_txt_"+codfee_id+"']").val());$("input[name='codfee_fee_wt_"+codfee_id+"']").val($("input[name='codfee_free_txt_"+codfee_id+"']").val())} 690if($("input[name='codfee_price_display_method_cartsummary_"+codfee_id+"']").val()=='1'){$('<div class="cart-summary-line cart-summary-subtotals" id="cart-subtotal-codfee">'+'<span class="label cart-summary-codfee-label">'+$("input[name='codfee_text_"+codfee_id+"']").val()+'</span>'+'<span class="value">'+$("input[name='codfee_fee_"+codfee_id+"']").val()+'</span>'+'</div>').insertAfter(js_checkout_summary+'#cart-subtotal-shipping')}else{$('<div class="cart-summary-line cart-summary-subtotals" id="cart-subtotal-codfee">'+'<span class="label cart-summary-codfee-label">'+$("input[name='codfee_text_"+codfee_id+"']").val()+'</span>'+'<span class="value">'+$("input[name='codfee_fee_wt_"+codfee_id+"']").val()+'</span>'+'</div>').insertAfter(js_checkout_summary+'#cart-subtotal-shipping')} 691if(typeof $('.cart-summary-line.cart-total_2').last().html()==='undefined'){$(js_checkout_summary+'.cart-summary-totals .cart-summary-line.cart-total').last().prevAll('.cart-summary-line.cart-total').find('span.value').html($("input[name='codfee_total_without_taxes_"+codfee_id+"']").val())}else{$('.cart-summary-line.cart-total_2').find('span.value').html($("input[name='codfee_total_without_taxes_"+codfee_id+"']").val())} 692if($("input[name='codfee_price_display_method_cartsummary_"+codfee_id+"']").val()=='1'){$(js_checkout_summary+'.cart-summary-line.cart-total').last().find('span.value').html($("input[name='codfee_total_with_taxes_"+codfee_id+"']").val());$(js_checkout_summary+'.cart-summary-line.cart-total').last().find('strong.value').html($("input[name='codfee_total_with_taxes_"+codfee_id+"']").val())}else{if($(js_checkout_summary+'.cart-summary-totals div').length==2){if($(js_checkout_summary+'.cart-summary-totals div').last().prev().find('span.value').text()!=''){$(js_checkout_summary+'.cart-summary-totals div').last().prev().find('span.value').html($("input[name='codfee_total_without_taxes_"+codfee_id+"']").val())} 693if($(js_checkout_summary+'.cart-summary-totals div').last().find('span.value').text()!=''){$(js_checkout_summary+'.cart-summary-totals div').last().find('span.value').html($("input[name='codfee_total_with_taxes_"+codfee_id+"']").val())}}else if($(js_checkout_summary+'.cart-summary-totals div').length==3){if($(js_checkout_summary+'.cart-summary-totals div').last().prev().find('span.value').text()!=''){$(js_checkout_summary+'.cart-summary-totals div').last().prev().find('span.value').html($("input[name='codfee_total_without_taxes_"+codfee_id+"']").val())} 694if($(js_checkout_summary+'.cart-summary-totals div').last().find('span.value').text()!=''){$(js_checkout_summary+'.cart-summary-totals div').last().find('span.value').html($("input[name='codfee_total_with_taxes_"+codfee_id+"']").val())}}else{$(js_checkout_summary+'.cart-summary-line.cart-total').last().find('span.value').html($("input[name='codfee_total_without_taxes_"+codfee_id+"']").val());
694$(js_checkout_summary+'.cart-summary-line.cart-total').last().find('strong.value').html($("input[name='codfee_total_without_taxes_"+codfee_id+"']").val())}} 695if($("input[name='codfee_tax_enabled_"+codfee_id+"']").val()=='1'&&$("input[name='codfee_tax_display_"+codfee_id+"']").val()=='1'){if($(js_checkout_summary+'.cart-summary-line.cart-total').next().find('span.value').text()!=""){$(js_checkout_summary+'.cart-summary-line.cart-total').next().find('span.value').html($("input[name='codfee_taxes_"+codfee_id+"']").val())} 696if(typeof $('.cart-summary-line.cart-total_2').last().html()!=='undefined'){$(js_checkout_summary+'.cart-summary-line.cart-total').prev().find('span.value').html($("input[name='codfee_taxes_"+codfee_id+"']").val())} 697if($('#cart-subtotal-tax').size()>0){$('.cart-summary-codfee-label').removeClass('label');$('#cart-subtotal-tax').find('span.value').html($("input[name='codfee_taxes_"+codfee_id+"']").val())}}},100)}else if($(this).attr('data-module-name')!='paypalwithfee'&&$(this).is(':checked')){$('#cart-subtotal-codfee').remove();$(js_checkout_summary+'.cart-summary-line.cart-total').last().html(total_ori_html);if(typeof $(js_checkout_summary+'.cart-summary-line.cart-total_2').last().html()==='undefined'){if($(js_checkout_summary+'.cart-summary-totals div').length==2){$(js_checkout_summary+'.cart-summary-totals div').last().prev().html(total_ori_without_taxes_html)}else{$(js_checkout_summary+'.cart-summary-totals .cart-summary-line.cart-total').last().prevAll('.cart-summary-line.cart-total').html(total_ori_without_taxes_html)}}else{$(js_checkout_summary+'.cart-summary-line.cart-total_2').first().html(total_ori_without_taxes_html)} 698if(typeof $(js_checkout_summary+'.cart-summary-line.cart-total').next().html()==='undefined'){$(js_checkout_summary+'.cart-summary-line.cart-total').prev().html(taxes_ori_html);
698if($('#cart-subtotal-tax').size()>0){$('#cart-subtotal-tax').find('span.value').html(taxes_ori_html)}}else{$(js_checkout_summary+'.cart-summary-line.cart-total').next().html(taxes_ori_html)}}else{$(js_checkout_summary+'#cart-subtotal-codfee').remove();$(js_checkout_summary+'.cart-summary-line.cart-total_2').first().html(total_ori_without_taxes_html);if($(js_checkout_summary+'.cart-summary-totals div').length==2){$(js_checkout_summary+'.cart-summary-totals div').last().prev().html(total_ori_without_taxes_html)} 699if(typeof $(js_checkout_summary+'.cart-summary-line.cart-total').next().html()==='undefined'){$(js_checkout_summary+'.cart-summary-line.cart-total').prev().html(taxes_ori_html)}else{$(js_checkout_summary+'.cart-summary-line.cart-total').next().html(taxes_ori_html)} 700$(js_checkout_summary+'.cart-summary-line.cart-total').last().html(total_ori_html)}})} 701function updateOrderSummaryWithFee(){var ps176=!1;var ps1761=!1;if(typeof $('.order-confirmation-table .order-confirmation-total').html()!=='undefined'){ps1761=!0;var table_totals=$('.order-confirmation-table div');var total_ori_html=table_totals.last().html();var taxes_ori_html=table_totals.last().prev().prev().html()}else if(typeof $('.order-confirmation-table .taxes').html()==='undefined'){var total_ori_html=$('.order-confirmation-table table tr td').last().html();var taxes_ori_html=$('.order-confirmation-table table tr').last().prev().last().html()}else{ps176=!0;var total_ori_html=$('.order-confirmation-table table tr').last().prev().last().html();var taxes_ori_html=$('.order-confirmation-table .taxes').html()} 702$("input[name='payment-option']").click(function(){var codfee_id=$('#pay-with-'+this.id+'-form').find('input[name=codfee_id]').val();if(codfee_id!=null&&$("input[name='codfee_type_"+codfee_id+"']").val()!='3'){$('tr.cart-order-summary-codfee, div.cart-order-summary-codfee').remove();if($("input[name='codfee_free_flag_"+codfee_id+"']").val()=='1'){$("input[name='codfee_fee_"+codfee_id+"']").val($("input[name='codfee_free_txt_"+codfee_id+"']").val());$("input[name='codfee_fee_wt_"+codfee_id+"']").val($("input[name='codfee_free_txt_"+codfee_id+"']").val())} 703if($("input[name='codfee_price_display_method_cartsummary_"+codfee_id+"']").val()=='1'){$('<tr class="cart-order-summary-codfee">'+'<td>'+$("input[name='codfee_text_"+codfee_id+"']").val()+'</td>'+'<td>'+$("input[name='codfee_fee_"+codfee_id+"']").val()+'</td>'+'</tr>').insertBefore($('.order-confirmation-table table tr').last().prev().prev());if(ps1761){$('<div class="col-8 cart-order-summary-codfee text-right">'+'<label>'+$("input[name='codfee_text_"+codfee_id+"']").val()+'</label></div>'+'<div class="col-4 cart-order-summary-codfee text-right"><span class="price price-normal">'+$("input[name='codfee_fee_"+codfee_id+"']").val()+'</span></div>'+'').insertBefore(table_totals.last().prev().prev().prev())}}else{$('<tr class="cart-order-summary-codfee">'+'<td>'+$("input[name='codfee_text_"+codfee_id+"']").val()+'</td>'+'<td>'+$("input[name='codfee_fee_wt_"+codfee_id+"']").val()+'</td>'+'</tr>').insertBefore($('.order-confirmation-table table tr').last().prev())} 704if(ps176){$('.order-confirmation-table table tr').last().prev().find('td').last().html($("input[name='codfee_total_with_taxes_"+codfee_id+"']").val());if($("input[name='codfee_tax_enabled_"+codfee_id+"']").val()=='1'&&$("input[name='codfee_tax_display_"+codfee_id+"']").val()=='1'){$('.order-confirmation-table .taxes').find('td span').last().html($("input[name='codfee_taxes_"+codfee_id+"']").val())}}else if(ps1761){$('.order-confirmation-table div span').last().html($("input[name='codfee_total_with_taxes_"+codfee_id+"']").val());if($("input[name='codfee_tax_enabled_"+codfee_id+"']").val()=='1'&&$("input[name='codfee_tax_display_"+codfee_id+"']").val()=='1'){table_totals.last().prev().prev().html($("input[name='codfee_taxes_"+codfee_id+"']").val())}}else{$('.order-confirmation-table table tr td').last().html($("input[name='codfee_total_with_taxes_"+codfee_id+"']").val());if($("input[name='codfee_tax_enabled_"+codfee_id+"']").val()=='1'&&$("input[name='codfee_tax_display_"+codfee_id+"']").val()=='1'){$('.order-confirmation-table table tr').last().prev().find('td').last().html($("input[name='codfee_taxes_"+codfee_id+"']").val())}}}else{$('tr.cart-order-summary-codfee, div.cart-order-summary-codfee').remove();if(ps176){$('.order-confirmation-table table tr').last().prev().last().html(total_ori_html);$('.order-confirmation-table .taxes').html(taxes_ori_html)}else if(ps1761){table_totals.last().html(total_ori_html);table_totals.last().prev().prev().html(taxes_ori_html)}else{$('.order-confirmation-table table tr td').last().html(total_ori_html);$('.order-confirmation-table table tr').last().prev().last().html(taxes_ori_html)}}})} 705$(document).ready(function(){updateTotalsWithFee();updateOrderSummaryWithFee();if($('input[data-module-name=codfee]:checked').attr('checked')==='checked'){$('input[data-module-name=codfee]').click()}});/** 706* Cash On Delivery With Fee 707* 708* NOTICE OF LICENSE 709* 710* This product is licensed for one customer to use on one installation (test stores and multishop included). 711* Site developer has the right to modify this module to suit their needs, but can not redistribute the module in 712* whole or in part. Any other use of this module constitues a violation of the user agreement. 713* 714* DISCLAIMER 715* 716* NO WARRANTIES OF DATA SAFETY OR MODULE SECURITY 717* ARE EXPRESSED OR IMPLIED. USE THIS MODULE IN ACCORDANCE 718* WITH YOUR MERCHANT AGREEMENT, KNOWING THAT VIOLATIONS OF 719* PCI COMPLIANCY OR A DATA BREACH CAN COST THOUSANDS OF DOLLARS 720* IN FINES AND DAMAGE A STORES REPUTATION. USE AT YOUR OWN RISK. 721* 722* @author idnovate 723* @version 2.1.2 724* @copyright 2016 idnovate 725* @license See above 726*/ 727$(document).ready(function(){if(typeof orderProcess!=='undefined'){var key=$('input[class="delivery_option_radio"]:checked').data('key');var id_address=parseInt($('input[class="delivery_option_radio"]:checked').data('id_address'));if(orderProcess=='order'&&key&&id_address) 728updateExtraCarrier(key,id_address);else if(orderProcess=='order-opc'&&typeof updateCarrierSelectionAndGift!=='undefined'&&typeof key!=='undefined') 729updateCarrierSelectionAndGift();}});/** 730 * Social Login 731 * 732 * @author businesstech.fr <[email protected]> - https://www.businesstech.fr/ 733 * @copyright Business Tech - https://www.businesstech.fr/ 734 * @license see file: LICENSE.txt 735 * 736 * ____ _______ 737 * | _ \ |__ __| 738 * | |_) | | | 739 * | _ < | | 740 * | |_) | | | 741 * |____/ |_| 742 */ 743var FpcModule=function(sName){this.name=sName;this.oldVersion=!1;this.msgs={};this.aError=[];this.sImgUrl="";this.sWebService="";this.sShortCodeUrl="";this.response=null;var oThis=this;this.show=function(sId,sHtml){$("#"+sId).html(sHtml).css("style","none");$("#"+sId).show("fast")};this.hide=function(sId){$("#"+sId).hide("fast",function(){$("#"+sId).html("")})};this.form=function(sForm,sURI,sRequestParam,sToDisplay,sToHide,bSubmit,bFancyBox,sCallback,sErrorType,sLoadBar){if(sLoadBar){$("#"+sLoadBar).show()} 744var aError=[];var fields=$("#"+sForm).serializeArray();var iCounter=0;var bIsError=!1;toastr.options={closeButton:!0,debug:!1,newestOnTop:!1,progressBar:!0,positionClass:"toast-top-right",preventDuplicates:!1,onclick:null,showDuration:"5000",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"1000",
744showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",};jQuery.each(fields,function(i,field){bIsError=!1;switch(field.name){case "id":if(field.value==""){oThis.aError[iCounter]=oThis.msgs.id;toastr.error(oThis.msgs.id);bIsError=!0} 745break;case "secret":if(field.value==""){oThis.aError[iCounter]=oThis.msgs.secret;toastr.error(oThis.msgs.secret);bIsError=!0} 746break;case "callback":if(field.value==""){oThis.aError[iCounter]=oThis.msgs.callback;toastr.error(oThis.msgs.callback);bIsError=!0} 747break;case "scope":if(field.value==""){oThis.aError[iCounter]=oThis.msgs.scope;toastr.error(oThis.msgs.scope);bIsError=!0} 748break;case "developerKey":if(field.value==""){oThis.aError[iCounter]=oThis.msgs.developerKey;toastr.error(oThis.msgs.developerKey);bIsError=!0} 749break;case "socialEmail":if(field.value==""){oThis.aError[iCounter]=oThis.msgs.socialEmail;toastr.error(oThis.msgs.socialEmail);bIsError=!0} 750break;case "fbpscDefaultConnectText":if(field.value==""){oThis.aError[iCounter]=oThis.msgs.defaultText;toastr.error(oThis.msgs.defaultText);bIsError=!0} 751break;case "fbpscPrefixCode":if(field.value==""&&$('input:radio[name="fbpscEnableVoucher"]').val()=="true"){oThis.aError[iCounter]=oThis.msgs.prefixCode;toastr.error(oThis.msgs.prefixCode);bIsError=!0} 752break;case "fbpscApiRequestType":if(field.value==""){oThis.aError[iCounter]=oThis.msgs.apiType;toastr.error(oThis.msgs.apiType);bIsError=!0} 753break;case "fbpscHtmlElement":if(field.value==""){oThis.aError[iCounter]=oThis.msgs.htmlElement;toastr.error(oThis.msgs.htmlElement);bIsError=!0} 754break;case "fbpscPositionName":if(field.value==""){oThis.aError[iCounter]=oThis.msgs.positionName;toastr.error(oThis.msgs.positionName);bIsError=!0} 755break;case "sCssPaddingTop":if(field.value==""||$.isNumeric(field.value)==!1){oThis.aError[iCounter]=oThis.msgs.padding;toastr.error(oThis.msgs.padding);bIsError=!0} 756break;case "sCssPaddingRight":if(field.value==""||$.isNumeric(field.value)==!1){oThis.aError[iCounter]=oThis.msgs.padding;toastr.error(oThis.msgs.padding);bIsError=!0} 757break;case "sCssPaddingBottom":if(field.value==""||$.isNumeric(field.value)==!1){oThis.aError[iCounter]=oThis.msgs.padding;toastr.error(oThis.msgs.padding);bIsError=!0} 758break;case "sCssPaddingLeft":if(field.value==""||$.isNumeric(field.value)==!1){oThis.aError[iCounter]=oThis.msgs.padding;toastr.error(oThis.msgs.padding);bIsError=!0} 759break;case "sCssMarginTop":if(field.value==""||$.isNumeric(field.value)==!1){oThis.aError[iCounter]=oThis.msgs.margin;toastr.error(oThis.msgs.margin);bIsError=!0} 760break;case "sCssMarginRight":if(field.value==""||$.isNumeric(field.value)==!1){oThis.aError[iCounter]=oThis.msgs.margin;toastr.error(oThis.msgs.margin);bIsError=!0} 761break;case "sCssMarginBottom":if(field.value==""||$.isNumeric(field.value)==!1){oThis.aError[iCounter]=oThis.msgs.margin;toastr.error(oThis.msgs.margin);bIsError=!0} 762break;case "sCssMarginLeft":if(field.value==""||$.isNumeric(field.value)==!1){oThis.aError[iCounter]=oThis.msgs.margin;toastr.error(oThis.msgs.margin);bIsError=!0} 763break;default:break} 764if(($('input[name="'+field.name+'"]')!=undefined||$('textarea[name="'+field.name+'"]')!=undefined||$('select[name="'+field.name+'"]').length!=undefined)&&bIsError==!0){if($('input[name="'+field.name+'"]').length!=0){$('input[name="'+field.name+'"]').parent().addClass("has-error has-feedback");$('input[name="'+field.name+'"]').append('<span class="icon-remove-sign"></span>')} 765if($('textarea[name="'+field.name+'"]').length!=0){$('textarea[name="'+field.name+'"]').parent().addClass("has-error has-feedback");$('textarea[name="'+field.name+'"]').append('<span class="icon-remove-sign"></span>')} 766if($('select[name="'+field.name+'"]').length!=0){$('select[name="'+field.name+'"]').parent().addClass("has-error has-feedback");$('select[name="'+field.name+'"]').append('<span class="icon-remove-sign"></span>')} 767++iCounter}});if(oThis.aError.length==0&&!bIsError){if(bSubmit==undefined||bSubmit==null||!bSubmit){if(sLoadBar&&sToHide!=null){oThis.hide(sToHide,!0)} 768var sFormParams=$.param(fields);if(sRequestParam!=null&&sRequestParam!=""){sFormParams=sRequestParam+"&"+sFormParams} 769this.ajax(sURI,sFormParams,sToDisplay,sToHide,bFancyBox,null,sLoadBar);return!0}else{if(sLoadBar){$("#"+sLoadBar).hide()} 770document.forms[sForm].submit();return!0}}else{$("#"+sLoadBar).hide()} 771this.displayError(sErrorType);return!1};this.ajax=function(sURI,sParams,sToShow,sToHide,bFancyBox,bFancyBoxActivity,sLoadBar){if(bFancyBox&&bFancyBoxActivity!=!1){} 772sParams="sMode=xhr"+(sParams==null||sParams==undefined?"":"&"+sParams);$.ajax({type:"POST",url:sURI,data:sParams,dataType:"html",success:function(data){if(sLoadBar){$("#"+sLoadBar).hide()} 773if(bFancyBox){$.fancybox(data);$.fancybox.close();if(sToShow==oThis.name+"ConnectorList"){oThis.ajax(""+sURI,"sAction=display&sType=connectors",""+sToShow+"",""+sToHide+"")}else if(sToShow==oThis.name+"HookList"){sToShow=sToHide=oThis.name+"ConnectorList";oThis.ajax(""+sURI+"connectors","sAction=display&sType=connectors",""+sToShow+"",""+sToHide+"");sToShow=sToHide=oThis.name+"HookList";oThis.ajax(""+sURI+"hooks","sAction=display&sType=hooks",""+sToShow+"",""+sToHide+"")}else if(sToShow==oThis.name+"HookAdvanced"){oThis.ajax(""+sURI,"sAction=display&sType=hookAdvanced",""+sToShow+"",""+sToHide+"")}else if(sToShow==oThis.name+"ShortCode"){oThis.ajax(""+sURI,"sAction=display&sType=shortCode",""+sToShow+"",""+sToHide+"")}}else if(sToShow!=null&&sToHide!=null){if(sToShow==sToHide){oThis.hide("fast");$("#"+sToHide).hide("fast");$("#"+sToHide).empty();setTimeout("",1000);oThis.show(sToShow,data)}else{oThis.hide(sToHide);setTimeout("",1000);oThis.show(sToShow,data)}}else if(sToShow!=null){oThis.show(sToShow,data)}else if(sToHide!=null){oThis.hide(sToHide)}else{oThis.response=data} 774setTimeout(function(){$('#fbpscConfirm').slideUp()},2000)},error:function(xhr,ajaxOptions,thrownError){$("#"+oThis.name+"FormError").addClass("alert error");oThis.show("#"+oThis.name+"FormError","<h3>internal error</h3>")},})};this.displayError=function(sType){if(oThis.aError.length!=0){var sError='<div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert">Ã</button><ul class="list-unstyled">';for(var i=0;i<oThis.aError.length;++i){sError+="<li>"+oThis.aError[i]+"</li>"} 775sError+="</ul></div>";$("#"+oThis.name+sType+"Error").html(sError);$("#"+oThis.name+sType+"Error").slideDown();oThis.aError=[];return!1}};this.changeSelect=function(sId,mDestId,sDestId2,sDestIdToHide,bForce,mVal){if(bForce){if(typeof mDestId=="string"){mDestId=[mDestId]} 776for(var i=0;i<mDestId.length;++i){if(mVal){$("#"+mDestId[i]).fadeIn("fast",function(){$("#"+mDestId[i]).css("display","block")})}else{$("#"+mDestId[i]).fadeOut("fast")}}}else{$("#"+sId).bind("change",function(event){$("#"+sId+" input:checked").each(function(){switch($(this).val()){case "true":$("#"+sDestId).fadeIn("fast",function(){$("#"+sDestId).css("display","block")});break;default:$("#"+sDestId).fadeOut("fast");if(sDestId2&&sDestIdToHide){$("#"+sDestId2+" input").each(function(){switch($(this).val()){case "false":$(this).attr("checked","checked");$("#"+sDestIdToHide).fadeOut("fast");break;default:$(this).attr("checked","");break}})} 777break}})})}};this.selectAll=function(sCible,sType){if(sType=="check"){$(sCible).attr("checked",!0)}else{$(sCible).attr("checked",!1)}};this.updateHook=function(sURI,sHookList,sToShow,sToHide,bFancyBox){var sList="";if($("#"+sHookList+" li").length!=0){var aConnectorId=[];$("#"+sHookList+" li").each(function(i,elt){aConnectorId[i]=elt.id});sList=aConnectorId.toString()} 778this.ajax(sURI,"sConnectorList="+sList,sToShow,sToHide,bFancyBox)};this.draggableConnector=function(){$("#"+oThis.name+"DraggableConnector li").draggable({revert:"invalid",});$("#"+oThis.name+"DroppableConnector ul").droppable({drop:function(event,ui){$("#"+oThis.name+"DroppableConnector ul").append(ui.draggable);$(ui.draggable).css({position:"relative",top:"0px",left:"0px",display:"block"}).draggable("disable").css({opacity:1}).addClass("fbpscsortli","ui-state-default","pull-left","col-xs-8");var bFound=$(ui.draggable).find("span."+oThis.name+"Garbage");if(bFound.length==0){var oCurrentDragableA=$(ui.draggable).html();var oGarbage='<span class="pull-left btn btn-default btn-mini '+oThis.name+'Garbage">
778 <i class="fa fa-trash"/></span>';$(ui.draggable).html();$(ui.draggable).html('<div class="row" id="fbpsc" ><div class="col-xs-10">'+oCurrentDragableA+'</div><div class="col-xs-2">'+oGarbage+" </div></div>");$(ui.draggable).bind("click",function(){oThis.deleteConnector(this)})}},})};this.sortableConnector=function(){$("#"+oThis.name+"Sortable").sortable();$("#"+oThis.name+"Sortable").disableSelection()};this.deleteConnector=function(oElt){$(oElt).find("button."+oThis.name+"Garbage").remove();$("#"+oThis.name+"DraggableConnector ul").append($(oElt).removeClass("fbpscsortli").draggable("enable").draggable("option","revert","invalid").addClass("fbpscdragli"))};this.getCharts=function(sElem,aData,aLabel,aColor,sTitle){aDataSet={datasets:[{data:aData,backgroundColor:aColor,},],labels:aLabel,};new Chart(ctx,{type:"pie",data:aDataSet,options:{legend:{position:"bottom",},title:{display:!0,position:"top",text:sTitle,fontSize:14,},},})};this.hide=function(sId){$("#"+sId).hide("fast",function(){$("#"+sId).html("")})};this.getBulkCheckBox=function(sFieldName){var iElemId=[];$('input:checked[name="'+sFieldName+'"]').each(function(){iElemId.push($(this).val())});if(iElemId!=null)return iElemId;else return(iElemId=1)};this.getContentFromSwitch=function(sIdElemOn,sElem){if($("#"+sIdElemOn).is(":checked")==!0){$("#"+sElem).show()}else{$("#"+sElem).hide()}};this.getConnectors=function(sSelector,sShortCodeName){this.ajax(this.sShortCodeUrl,"sAction=display&sType=shortCode&sShortCodeName="+sShortCodeName,"sl_connector_"+sSelector,null,null,null,null)};this.activateLinkedOption=function(sElement,sAction){if(sAction=='click'){$('#'+sElement).trigger('click')}}};/** 779 * Social Login 780 * 781 * @author businesstech.fr <[email protected]> - https://www.businesstech.fr/ 782 * @copyright Business Tech - https://www.businesstech.fr/ 783 * @license see file: LICENSE.txt 784 * 785 * ____ _______ 786 * | _ \ |__ __| 787 * | |_) | | | 788 * | _ < | | 789 * | |_) | | | 790 * |____/ |_| 791 */ 792document.addEventListener('DOMContentLoaded',function(){$.ajax({type:"POST",url:bt
792Sl.ajaxUrl,dataType:"json",async:!0,data:{ajax:1,action:"getButtons",token:btSl.token,current_page:prestashop.page.page_name,},success:function(jsonData,textStatus,jqXHR){$.each(jsonData.btSocialLogin,function(i,item){html_content='<div id="fbpsc" class="'+item.hook+'">';if(item.use_custom_text==!0){html_content+='<p class="text-uppercase h6 mb-1">'+item.custom_text+'</p>'} 793$.each(item.connectors,function(j,connector){if(connector.social!='google'){html_content+='<p "'+connector.url+' class="'+item.size+' '+item.rounded+' '+item.shadow+' btn-connect btn-block-connect btn-social btn-'+connector.social+'">';html_content+='<span class="fa fa-bt-'+connector.social+'"></span> ' 794if(item.size_type=='large'){html_content+='<span class="btn-title-connect">'+connector.label+'</span>'} 795html_content+='</p>'}else if(connector.social=='google'){if(connector.social_style==!1){html_content+='<p "'+connector.url+' class="'+item.size+' '+item.rounded+' '+item.shadow+' btn-connect btn-block-connect btn-social btn-'+connector.social+'">';html_content+='<span class="fa fa-bt-'+connector.social+'"></span> ' 796if(item.size_type=='large'){html_content+='<span class="btn-title-connect">'+connector.label+'</span>'} 797html_content+='</p>'}else if(connector.social_style==!0){html_content+='<p "'+connector.url+' class="'+item.size+' '+item.rounded+' '+item.shadow+' btn-connect btn-block-connect btn-social btn-'+connector.social+'-default">';html_content+='<span class="btn-google-default-icon"></span> ' 798if(item.size_type=='large'){html_content+='<span class="btn-title-connect">'+connector.label+'</span>'} 799html_content+='</p>'}}});html_content+='</div>';if(item.position=="prepend"){$(item.element).prepend(html_content)}else{$(item.element).append(html_content)}})},})});var PROBANCE_browser_detect=null,probance_ajax=null,PROBANCE_encoder=null,PROBANCE_utils=null,PROBANCE_urlUtils=null,PROBANCE_idManager=null;if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")}}if(!String.prototype.endsWith){String.prototype.endsWith=function(a){return this.indexOf(a,this.length-a.length)!==-1}}if(typeof JSON!=="object"){JSON={};function quote(a){escapable.lastIndex=0;return escapable.test(a)?'"'+a.replace(escapable,function(c){var b=meta[c];return typeof b==="string"?b:"\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(g,k){var d,b,f,l,c=gap,j,h=k[g];if(h&&typeof h==="object"&&typeof h.toJSON==="function"){h=h.toJSON(g)}if(typeof rep==="function"){h=rep.call(k,g,h)}switch(typeof h){case"string":return quote(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h){return"null"}gap+=indent;j=[];if(Object.prototype.toString.apply(h)==="[object Array]"){l=h.length;for(d=0;d<l;d+=1){j[d]=str(d,h)||"null"}f=j.length===0?"[]":gap?"[\n"+gap+j.join(",\n"+gap)+"\n"+c+"]":"["+j.join(",")+"]";gap=c;return f}if(rep&&typeof rep==="object"){l=rep.length;for(d=0;d<l;
799d+=1){if(typeof rep[d]==="string"){b=rep[d];f=str(b,h);if(f){j.push(quote(b)+(gap?": ":":")+f)}}}}else{for(b in h){if(Object.prototype.hasOwnProperty.call(h,b)){f=str(b,h);if(f){j.push(quote(b)+(gap?": ":":")+f)}}}}f=j.length===0?"{}":gap?"{\n"+gap+j.join(",\n"+gap)+"\n"+c+"}":"{"+j.join(",")+"}";gap=c;return f}}if(typeof JSON.stringify!=="function"){escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};JSON.stringify=function(c,a,d){var b;gap="";indent="";if(typeof d==="number"){for(b=0;b<d;b+=1){indent+=" "}}else{if(typeof d==="string"){indent=d}}rep=a;if(a&&typeof a!=="function"&&(typeof a!=="object"||typeof a.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":c})}}if(typeof JSON.parse!=="function"){cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;JSON.parse=function(text,reviver){function walk(e,t){var n,r,i=e[t];if(i&&typeof i==="object"){for(n in i){if(Object.prototype.hasOwnProperty.call(i,n)){r=walk(i,n);if(r!==undefined){i[n]=r}else{delete i[n]}}}}return reviver.call(e,t,i)}var j;text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}probance_ajax={sendAjax:function(b,a,d,e,g,f,i){var c=null;if(d&&e&&e.trim().length>0){if(a.indexOf("?")==-1){a+="?"+e}else{a+="&"+e}e=""}if("XDomainRequest" in window&&window.XDomainRequest!==null){c=new XDomainRequest();c.onprogress=function(){};if(f){c.onload=f}if(i){c.onerror=i}c.open((d?"GET":"POST"),a);c.send(e);return}if(window.XMLHttpRequest){c=new XMLHttpRequest()}else{if(window.ActiveXObject){c=new ActiveXObject("Microsoft.XMLHTTP")}}if(c===null){return}c.onload=f;c.onerror=i;if(g){var h=b;c.onreadystatechange=function(){probance_logger.writeDebug(h+" readyState="+this.readyState)}}c.open((d?"GET":"POST"),a,g);if(!d){c.setRequestHeader("Content-type","application/json")}c.send(e)},callScript:function(e,c,a,f){var b=document.createElement("script"),d=null;if(c){b.async=!0;b.defer=!0}if(b.addEventListener){if(a!==null&&a!==undefined){b.addEventListener("load",function(){a()},!1)}if(f!==null&&f!==undefined){b.addEventListener("error",function(){f()},!1)}}else{if((a!==null&&a!==undefined)||(f!==null&&f!==undefined)){b.onreadystatechange=function(){var g=b.readyState;if(g==="loaded"){if(g.status==200){if(a!==null&&a!==undefined){a()}}else{if(f!==null&&f!==undefined){f()}}}}}}b.src=e;d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(b,d)},callImage:function(f,h,a,g){var d=document.createElement("img"),b=null;try{d.style.visibility="hidden"}catch(c){}try{d.style.display="none"}catch(c){}if(d.addEventListener){if(a!==null&&a!==undefined){d.addEventListener("load",function(){a()},!1)}if(g!==null&&g!==undefined){d.addEventListener("error",function(){g()},!1)}}else{if((a!==null&&a!==undefined)||(g!==null&&g!==undefined)){d.onreadystatechange=function(){var e=d.readyState;if(e==="loaded"){if(e.status==200){if(a!==null&&a!==undefined){a()}}else{if(g!==null&&g!==undefined){g()}}}}}}if(h!==null&&h!==undefined){d.id=h}d.src=f;b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(d,b)}};function probanceCookies(b,a,c){this.name=b;this.delay=a;this.encode=!0;if(c!==null&&c!==undefined){if(!c){this.encode=!1}else{this.encode=!0}}}probanceCookies.prototype.readFromCookie=function(){var b="",a=0,d=0,c="";b=document.cookie+"";a=b.indexOf(this.name+"=");if(a>=0){a+=this.name.length+1;d=b.indexOf(";",a);if(d<0){d=b.length}if(a===d){return null}c=b.substring(a,d);if(this.encode){c=PROBANCE_encoder.decode(c)}return decodeURIComponent(c)}return null};probanceCookies.prototype.cookieExists=function(){var b="",a=0;b=document.cookie+"";a=b.indexOf(this.name+"=");if(a>=0){return!0}return!1};probanceCookies.prototype.saveCookie=function(d){var a="",c=null,b="";if(this.delay){c=new Date();c.setTime(c.getTime()+(this.delay*24*60*60*1000));a="; expires="+c.toGMTString()}if(d===null||d===undefined){b=""}b=encodeURIComponent(d);if(this.encode){b=PROBANCE_encoder.encode(b)}document.cookie=this.name+"="+b+a+"; path=/"};probanceCookies.prototype.deleteCookie=function(){document.cookie=this.name+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/"};PROBANCE_browser_detect={alreadyDone:!1,init:function(){if(this.alreadyDone){return}this.browser=this.searchString(this.dataBrowser)||"UNKNOWN";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"UNKNOWN";this.OS=this.searchString(this.dataOS)||"UNKNOWN";this.isMobile=this.testMobile(navigator.userAgent);this.alreadyDone=!0}
799,testMobile:function(a){if(a==null){return!1}return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(a)},searchString:function(d){if(d==null){return}var a=0,b=null,c=null;for(a=0;a<d.length;a++){b=d[a].string;c=d[a].prop;this.versionSearchString=d[a].versionSearch||d[a].identity;if(b){if(b.toLowerCase().indexOf(d[a].subString.toLowerCase())!=-1){return d[a].identity}}else{if(c){return d[a].identity}}}},searchVersion:function(c){if(c==null){return}var b=c.toLowerCase().indexOf(this.versionSearchString.toLowerCase());if(b==-1){return}var a=(this.versionSearchString.indexOf("/")>-1?0:1);return parseFloat(c.substring(b+this.versionSearchString.length+a))},dataBrowser:[{string:navigator.userAgent,subString:"Edg",identity:"Edge",versionSearch:"Edg/"},{string:navigator.userAgent,subString:"Edge",identity:"Edge",versionSearch:"Edge/"},{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{prop:window.opera,identity:"Opera"},{string:navigator.userAgent,subString:"OmniWeb",identity:"OmniWeb",versionSearch:"OmniWeb/"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.vendor,subString:"Camino",identity:"Camino",versionSearch:"Camino/"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv:"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.userAgent,subString:"IEMobile",identity:"IEMobile"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.userAgent,subString:"iPod",identity:"iPhone/iPod"},{string:navigator.userAgent,subString:"iPad",identity:"iPhone/iPod"},{string:navigator.userAgent,subString:"Android",identity:"Android"},{string:navigator.userAgent,subString:"BlackBerry",identity:"BlackBerry"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};PROBANCE_browser_detect.init();PROBANCE_encoder={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(c){if(c===null||c===undefined||c===""){return""}var a="",k,h,f,j,g,e,d,b=0;c=PROBANCE_encoder._utf8_encode(c);while(b<c.length){k=c.charCodeAt(b++);h=c.charCodeAt(b++);f=c.charCodeAt(b++);j=k>>2;g=((k&3)<<4)|(h>>4);e=((h&15)<<2)|(f>>6);d=f&63;if(isNaN(h)){e=d=64}else{if(isNaN(f)){d=64}}a=a+PROBANCE_encoder._keyStr.charAt(j)+PROBANCE_encoder._keyStr.charAt(g)+PROBANCE_encoder._keyStr.charAt(e)+PROBANCE_encoder._keyStr.charAt(d)}return a},decode:function(c){if(c==null||c===undefined||c==""){return""}var a="",k,h,f,j,g,e,d,b=0;c=c.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(b<c.length){j=PROBANCE_encoder._keyStr.indexOf(c.charAt(b++));g=PROBANCE_encoder._keyStr.indexOf(c.charAt(b++));e=PROBANCE_encoder._keyStr.indexOf(c.charAt(b++));d=PROBANCE_encoder._keyStr.indexOf(c.charAt(b++));k=(j<<2)|(g>>4);h=((g&15)<<4)|(e>>2);f=((e&3)<<6)|d;a=a+String.fromCharCode(k);if(e!=64){a=a+String.fromCharCode(h)}if(d!=64){a=a+String.fromCharCode(f)}}a=PROBANCE_encoder._utf8_decode(a);return a},_utf8_encode:function(b){if(b===null||b===undefined||b===""){return""}var a="",e=null,d=0;b=b.replace(/\r\n/g,"\n");for(d=0;d<b.length;d++){e=b.charCodeAt(d);if(e<128){a+=String.fromCharCode(e)}else{if((e>127)&&(e<2048)){a+=String.fromCharCode((e>>6)|192);a+=String.fromCharCode((e&63)|128)}else{a+=String.fromCharCode((e>>12)|224);a+=String.fromCharCode(((e>>6)&63)|128);a+=String.fromCharCode((e&63)|128)}}}return a},_utf8_decode:function(a){if(a===null||a===undefined||a===""){return""}var b="",d=0,e=c2=0;while(d<a.length){e=a.charCodeAt(d);if(e<128){b+=String.fromCharCode(e);d++}else{if((e>
799191)&&(e<224)){c2=a.charCodeAt(d+1);b+=String.fromCharCode(((e&31)<<6)|(c2&63));d+=2}else{c2=a.charCodeAt(d+1);c3=a.charCodeAt(d+2);b+=String.fromCharCode(((e&15)<<12)|((c2&63)<<6)|(c3&63));d+=3}}}return b}};PROBANCE_utils={getRandomString:function(){return String((new Date()).getTime()).replace(/\D/gi,"")},generateId:function(b){if(b<1){b=1}var a=0,c="";for(a=0;a<b;a++){c+="x"}return c.replace(/[x]/g,function(){return Math.floor(Math.random()*10).toString()})},getIndexOfArray:function(c,b){if(c===null||c===undefined){return-1}if(typeof c.indexOf==="function"){return c.indexOf(b)}for(var a=0;a<c.length;a++){if(b===c[a]){return a}}return-1}};PROBANCE_urlUtils={getParams:function(a){var e={},d=null,b=0,c=null;if(a===null||a===undefined||a.indexOf("?")===-1){return e}d=(a.split("?")[1].split("#")[0]).split("&");for(b=0;b<d.length;b++){c=d[b].split("=");e[c[0]]=c[1]}return e},deleteParam:function(c,g){if(c===null||c===undefined||c.indexOf("?")===-1){return c}var a=null,b=null,f=null,d=0,e=0;a=c.split("?")[0];if(c.indexOf("#")>0){b=c.split("#")[1]}f=(c.split("?")[1].split("#")[0]).split("&");e=0;for(d=0;d<f.length;d++){if(f[d].split("=")[0]!=g){if(e==0){a=a+"?"}else{a=a+"&"}a=a+f[d];e++}}if(b!=null&&b.trim().length>0){a+="#"+b}return a},normalize:function(a){if(a===null||a===undefined){return null}a=a.trim();if(!a.endsWith("/")){a+="/"}return a},getProtocol:function(a){if(a===null||a===undefined){return"http"}var b=a.split(":")[0];if(b===null||b===""){b="http"}return b}};PROBANCE_idManager={getVisitorId:function(a){return a},getCustomerId:function(a){if(a===null||a===undefined){return null}if(a.indexOf("_")==-1){return a}return a.split("_").pop()}};probance_logger={enabled:null,getHourTime:function(c){if(c==null){return""}var f="";var e=c.getHours();var a=c.getMinutes();var d=c.getSeconds();var b=c.getMilliseconds();if(e<10){f+="0"}f+=e+":";if(a<10){f+="0"}f+=a+":";if(d<10){f+="0"}f+=d+".";if(b<=0){f+="000"}else{if(b<10){f+="00"}else{if(b<100){f+="0"}}}f+=b;return f},writeDebug:function(e,a,c){if(!this.enabled||typeof console==="undefined"){return}var d="\t";var b=new Date();var f="";if(a!=null){if(a){d+=" --> start "}else{d+=" <-- end ";if(c!=null){f=" in "+(b.getTime()-c)+" ms"}}}if(console.debug){console.debug(this.getHourTime(b)+d+e+f)}else{if(console.info){console.info(this.getHourTime(b)+d+e+f)}else{console.log(this.getHourTime(b)+d+e+f)}}},writeLog:function(e,a,c){if(!this.enabled||typeof console==="undefined"){return}var d="\t";var b=new Date();var f="";if(a!=null){if(a){d+=" --> start "}else{d+=" <-- end ";if(c!=null){f=" in "+(b.getTime()-c)+" ms"}}}console.log(this.getHourTime(b)+d+e+f)},writeWarning:function(e,a,c){if(!this.enabled||typeof console==="undefined"){return}var d="\t";var b=new Date();var f="";if(a!=null){if(a){d+=" --> start "}else{d+=" <-- end ";if(c!=null){f=" in "+(b.getTime()-c)+" ms"}}}console.warn(this.getHourTime(b)+d+e+f)},writeError:function(e,a,c){if(!this.enabled||typeof console==="undefined"){return}var d="\t";var b=new Date();var f="";if(a!=null){if(a){d+=" --> start "}else{d+=" <-- end ";if(c!=null){f=" in "+(b.getTime()-c)+" ms"}}}console.error(this.getHourTime(b)+d+e+f)}};function PROBANCE_abstractTracker(c,d,b,a){this.siteid=c;this.cookie=new probanceCookies((d?d:"probance"),b);PROBANCE_browser_detect.init();if(a===undefined||a===null){this.webtraxUrl=null}else{a=PROBANCE_urlUtils.normalize(a);this.webtraxUrl=PROBANCE_urlUtils.getProtocol(document.location+"")+"://"+a+"listener.action"}this.request="";this.customs=[];this.trackingId=null;this.customerIdentifier=null;this.tagger=null;this.initialized=!1;this.trackerType=null;if(this.siteid===undefined){this.siteid=null}this.getTagsAsync=!1;this.autoTrackOnInit=!0;this.onIdentify=null;this.onTagsLoaded=null;this.probanceDelayedTrack=[]}PROBANCE_abstractTracker.prototype.init=function(b,d){if(this.initialized){return}if(this.siteid===null){this.initialized=!0;return}if(this.customerIdentifier===null){this.customerIdentifier=this.getCustomerIdentifier();if(this.customerIdentifier===null){this.initialized=!0;return}}var c=this.getUrl();this.customerIdentifier.init(b,this,c);if("getUrl" in this.customerIdentifier){c=this.customerIdentifier.getUrl(c)}if(this.autoTrackOnInit){this.probanceDelayedTrack.push(new probanceDelayedTrackItem(c,!1,null))}var a=this;setTimeout(function(){a.executeDelayedTrack()},4);if(this.tagger!=null&&!this.customerIdentifier.isNew()&&this.trackingId!=null){this.tagger.taggerType=this.trackerType;this.tagger.useAsyncCall=this.getTagsAsync;this.tagger.init(this.trackingId,this.trackingTypeId,function(){if(d){setTimeout(function(){d()},100)}setTimeout(function(){a.executeDelayedTrack()},4)})}else{if(d){setTimeout(function(){d()},100)}setTimeout(function(){a.executeDelayedTrack()},4)}};PROBANCE_abstractTracker.prototype.afterIdentify=function(){if(this.onIdentify!=null&&this.trackingId!=null){this.onIdentify(this.trackingId,this.trackingTypeId,this.tracking_mode)}if(this.customerIdentifier!=null&&!this.customerIdentifier.isNew()){if(this.tagger!=null){if(!this.tagger.loaded){this.tagger.useAsyncCall=this.getTagsAsync;this.tagger.init(this.trackingId,this.trackingTypeId,this.onTagsLoaded)}}}};PROBANCE_abstractTracker.prototype.initTagger=function(c,b,a){this.tagger=new PROBANCE_taggerValue(this.trackerType,this.siteid,c,b,a);this.tagger.useAsyncCall=this.getTagsAsync};PROBANCE_abstractTracker.prototype.getTag=function(b,a){if(b===null){return null}if(this.tagger===null){return null}return this.tagger.getTag(b,a)};PROBANCE_abstractTracker.prototype.getTags=function(){if(this.tagger===null){return null}return this.tagger.getTags()};PROBANCE_abstractTracker.prototype.printTags=function(d){if(this.tagger===null||this.tagger.getTags()===null){return""}var a=this.tagger.getTags(),c="",e=!0;for(var b=0;b<a.tags.length;b++){if(a.tags[b]!==null){if(!e){c+=d}e=!1;c+=encodeURIComponent(a.tags[b].name)+"="+encodeURIComponent(a.tags[b].value)}}return c};PROBANCE_abstractTracker.prototype.getTagsTime=function(){if(this.tagger===null){return null}return this.tagger.getTagsTime()};PROBANCE_abstractTracker.prototype.isTagsLoad=function(){if(this.tagger===null){return!1}return this.tagger.loaded};PROBANCE_abstractTracker.prototype.addCustom=function(a,b){this.customs.push([a,b])};PROBANCE_abstractTracker.prototype.clearCustom=function(a,b){this.customs=[]};PROBANCE_abstractTracker.prototype.readTrackingInfo=function(){var c=this.cookie.readFromCookie();if(c!==null&&c!==undefined){var b=c.split("\n");var a=b[0];if(a!==null&&a!==undefined){this.trackingId=a}}return c};PROBANCE_abstractTracker.prototype.getTrackingId=function(){if(this.trackingId!==null&&this.trackingId!==undefined){return this.trackingId}if(this.cookie===null||this.cookie===undefined){return null}var a=this.readTrackingInfo();return this.trackingId};PROBANCE_abstractTracker.prototype.getCustomerIdentifier=function(){return this.customerIdentifier};PROBANCE_abstractTracker.prototype.getUrl=function(){return document.location+""};PROBANCE_abstractTracker.prototype.getReferrer=function(){return document.referrer+""};function probanceDelayedTrackItem(a,c,b){this.url=a;this.isEvent=c;this.custAttr=b}PROBANCE_abstractTracker.prototype.executeDelayedTrack=function(){if(this.siteid===null){return}if(!this.initialized){return}if(this.probanceDelayedTrack==null){return}var a=null;while(this.probanceDelayedTrack.length>0){a=this.probanceDelayedTrack.pop();if(a==null){continue}if(a.isEvent){this.trackEvent(a.url,a.custAttr)}else{this.track(a.url,a.custAttr)}}};PROBANCE_abstractTracker.prototype._getTrackRequest=function(a,l,j){if(this.siteid===null||this.webtraxUrl==null){return null}if(!this.initialized){this.probanceDelayedTrack.push(new probanceDelayedTrackItem(a,l,j));return null}var f=null,c="",d="",b=[],k=[],h=null,g=null,e=0;if(this.customerIdentifier===null){this.customerIdentifier=this.getCustomerIdentifier();if(this.customerIdentifier===null){return null}}f=this.customerIdentifier.getTrackingMode();if(this.trackingId===null||this.trackingId===undefined){return null}if(a===null||a===undefined){a=this.getUrl();if("getUrl" in this.customerIdentifier){a=this.customerIdentifier.getUrl(a)}}c="";if(j!==null&&j!==undefined&&j.length>0){for(e=0;e<j.length;e++){h=encodeURIComponent(j[e][0]);g=encodeURIComponent(j[e][1]);if(h==null){continue}if(PROBANCE_utils.getIndexOfArray(k,h)!=-1){continue}k.push(h);if(g!=null){b.push(h+"="+g)}
799else{b.push(h+"=")}}}if(this.customs!==null&&this.customs!==undefined&&this.customs.length>0){for(e=0;e<this.customs.length;e++){h=encodeURIComponent(this.customs[e][0]);g=encodeURIComponent(this.customs[e][1]);if(h==null){continue}if(PROBANCE_utils.getIndexOfArray(k,h)!=-1){continue}k.push(h);if(g!=null){b.push(h+"="+g)}else{b.push(h+"=")}}}if(b!=null&&b.length>0){c=b.join("&")}var d=this.webtraxUrl+"?";if(this.trackingTypeId!=null&&this.trackingTypeId!=undefined&&this.trackingTypeId.trim().length>0){d+="typeId="+encodeURIComponent(this.trackingTypeId)+"&"}d+="id="+encodeURIComponent(this.trackingId)+"&"+"purl="+encodeURIComponent(PROBANCE_encoder.encode(a))+"&"+"site="+encodeURIComponent(this.siteid)+"&"+"os="+encodeURIComponent(PROBANCE_browser_detect.OS)+"&"+"br="+encodeURIComponent(PROBANCE_browser_detect.browser)+"&"+"ver="+encodeURIComponent(PROBANCE_browser_detect.version)+"&"+"mod="+encodeURIComponent(f)+"&"+"customParams="+encodeURIComponent(c)+"&"+"referrer="+encodeURIComponent(PROBANCE_encoder.encode(this.getReferrer()))+"&"+"version="+encodeURIComponent(PROBANCE_infos.version)+"&";if(l!=null&&l!=undefined&&l){d+="event=1&"}if(probance_logger.enabled){probance_logger.writeLog("tracker "+(this.trackerType!=null?"["+this.trackerType+"] ":"")+(l!=null&&l!=undefined&&l?"event ":"visit ")+"for '"+this.trackingId+"' "+"on url '"+a+"' "+"with customParams : '"+c+"'")}return d};PROBANCE_abstractTracker.prototype.track=function(a,b){var c=this._getTrackRequest(a,!1,b);if(c!=null){probance_ajax.callImage(c)}};PROBANCE_abstractTracker.prototype.trackEvent=function(a,b){var c=this._getTrackRequest(a,!0,b);if(c!=null){probance_ajax.callImage(c)}};function PROBANCE_CRM_trackingMode(a){this.tracking_param=a;this.tracking_mode=1}var cookieSep="\ntype=";PROBANCE_CRM_trackingMode.prototype.init=function(g,f,c){var h=null,e=null,b=null,a=null,d=null;h=PROBANCE_urlUtils.getParams(c);e=h[this.tracking_param];if(e!==null&&e!==undefined){f.cookie.saveCookie(e);f.tracking_mode=0;f.trackingId=e;f.trackingTypeId=null;if(f.afterIdentify!=null){f.afterIdentify()}}else{e=f.cookie.readFromCookie();if(e!==null&&e!==undefined){b=e.split(cookieSep);if(b.length>0){a=b[0];d=b[1]}}if(a!==null&&a!==undefined){f.trackingId=a;if(d!==null&&d!==undefined&&d.trim().length>0){f.trackingTypeId=d.trim()}else{f.trackingTypeId=null}if(f.afterIdentify!=null){f.afterIdentify()}e=f.trackingId;if(f.trackingTypeId!=null){e+=cookieSep+f.trackingTypeId}f.cookie.saveCookie(e)}}f.initialized=!0};PROBANCE_CRM_trackingMode.prototype.getTrackingMode=function(){return this.tracking_mode};PROBANCE_CRM_trackingMode.prototype.getUrl=function(a){return PROBANCE_urlUtils.deleteParam(a,this.tracking_param)};PROBANCE_CRM_trackingMode.prototype.isNew=function(){return!1};var PROBANCE_CRMTracker=(function(g,h,d,b,a,f,c){var e=function(n,o,l,j,i,m,k){PROBANCE_abstractTracker.call(this,n,o,l,j);this.trackerType="CRM";this.trackingTypeId=null;this.customerIdentifier=new PROBANCE_CRM_trackingMode(i);if(m!==null&&m!==undefined){this.initTagger(m,PROBANCE_idManager.getCustomerId,k)}};e.prototype=new PROBANCE_abstractTracker(g,h,d,b);e.prototype.constructor=e;e.trackingTypeId=null;e.prototype.track=function(i,j){PROBANCE_abstractTracker.prototype.track.call(this,i,j)};e.prototype.setCustomer=function(j,i){if(j==null||j==""){return}var k=null;if(this.trackingId!==j||this.trackingTypeId!==i){if(this.tagger!=null){this.tagger.clear()}}this.trackingId=j;if(i!==null&&i!==undefined){this.trackingTypeId=i}if(this.afterIdentify!=null){this.afterIdentify()}k=this.trackingId;if(this.trackingTypeId!=null){k+=cookieSep+this.trackingTypeId}this.cookie.saveCookie(k)};e.prototype.getTrackingTypeId=function(){if(this.trackingTypeId!==null&&this.trackingTypeId!==undefined){return this.trackingTypeId}if(this.cookie===null||this.cookie===undefined){return null}this.trackingTypeId=null;this.trackingId=null;var l=this.cookie.readFromCookie();if(l!==null&&l!==undefined){var j=l.split(cookieSep);var i=j[0];var k=j[1];if(i!==null&&i!==undefined){this.trackingId=i;if(k!==null&&k!==undefined&&k.trim().length>0){this.trackingTypeId=k.trim()}else{this.trackingTypeId=null}}}return this.trackingTypeId};return e}());function PROBANCE_VRM_trackingMode(b,a){this.isNewVisitor=!1;if(b.trim().length>0){b=PROBANCE_urlUtils.normalize(b);this.probanceGenerator=PROBANCE_urlUtils.getProtocol(document.location+"")+"://"+b+"VisitorIdGenerator";this.probanceIdentifier=PROBANCE_urlUtils.getProtocol(document.location+"")+"://"+b+"Identifier"}this.visitorCreationCallback=a;this.createdVisitorSentToTagger=!1}PROBANCE_VRM_trackingMode.prototype.init=function(i,h){var e=null,d=null,a=null,f=null,g=0,j=this,c=null;if(h.trackingId===null||h.trackingId===undefined){h.trackingId=h.cookie.readFromCookie();if(!this.isVisitorIdValid(h.trackingId)){h.trackingId=null}}if(h.trackingId!==null){h.initialized=!0;this.isNewVisitor=!1;probance_logger.writeLog("tracker VRM: read visitor id");h.cookie.saveCookie(h.trackingId);if(h.afterIdentify!=null){h.afterIdentify()}
799probance_ajax.callScript(this.probanceGenerator+"/"+h.trackingId,!0,null,null);return}if("origin" in document.location&&document.location.origin!==undefined&&document.location.origin!==null){c=document.location.origin}else{c=document.location.protocol+"//"+document.domain}probance_logger.writeLog("tracker VRM: get visitor id from Probance");var b=function(o){h.initialized=!0;var l=!1,n=null,k=null;if(o===undefined||o===null){return null}n=o.split("_");if(n.length>0){o=n[0];if(n.length>=1){k=n[1]}if(k!=null&&((new Date()).getTime()-(0+k))<1000){l=!0}}if(!j.isVisitorIdValid(o)){probance_logger.writeWarning("received visitorId is not valid, ignore");return null}j.isNewVisitor=l;h.trackingId=o;h.cookie.saveCookie(o);if(h.afterIdentify!=null){h.afterIdentify()}if(h.autoTrackOnInit){h.track()}if(l&&!j.createdVisitorSentToTagger){probance_logger.writeLog("tracker VRM: get '"+o+"' visitor id from Probance");if(h.tagger){probance_logger.writeLog("send created VRM visitor '"+o+"' to tagger");try{probance_ajax.sendAjax("tagger "+(h.taggerType!==null?"["+h.tagger.taggerType+"] ":""),h.tagger.taggerVisitorCreatorUrl+o,!1,"",!0,function(){j.createdVisitorSentToTagger=!0})}catch(m){probance_logger.writeWarning("error sending created VRM visitor '"+o+"' to tagger\n"+m)}}else{probance_logger.writeLog("tagger is disabled, could not sent created VRM visitor")}if(j.visitorCreationCallback!=null){try{j.visitorCreationCallback(o)}catch(m){probance_logger.writeWarning("tracker VRM: fail to sent created visitor\n"+m)}}}return o};probance_ajax.callScript(this.probanceIdentifier,!0,function(){if(generatedProbanceVisitorId==null){var k=1*PROBANCE_utils.generateId(12);probance_logger.writeWarning("tracker VRM: fail to get visitor id from Probance, generate one: '"+k+"'");b(""+k);return}probance_logger.writeLog("tracker VRM: get visitor id from Probance: '"+generatedProbanceVisitorId+"'");var k=b(""+generatedProbanceVisitorId);if(k!=null){probance_ajax.callScript(j.probanceGenerator+"/"+k,!0,null,null)}return},function(){var k=1*PROBANCE_utils.generateId(12);probance_logger.writeWarning("tracker VRM: fail to get visitor id from Probance, generate one: '"+k+"'");b(""+k)})};PROBANCE_VRM_trackingMode.prototype.isVisitorIdValid=function(a){if(a==null||a==undefined){return!1}if(a.trim().length==0){return!1}if(isNaN){return!isNaN(a)}if(Object.prototype.toString.call(a)!="[object String]"){return!1}return!0};PROBANCE_VRM_trackingMode.prototype.getTrackingMode=function(){return 1};PROBANCE_VRM_trackingMode.prototype.isNew=function(){return this.isNewVisitor};var PROBANCE_VRMTracker=(function(g,h,d,a,b,f,c){var e=function(n,o,l,i,j,m,k){PROBANCE_abstractTracker.call(this,n,o,l,i);this.trackerType="VRM";this.visitorCreationCallback=j;this.customerIdentifier=new PROBANCE_VRM_trackingMode(i,j);if(m!==null&&m!==undefined){this.initTagger(m,PROBANCE_idManager.getVisitorId,k)}};e.prototype=new PROBANCE_abstractTracker(g,h,d,a);e.prototype.constructor=e;e.prototype.track=function(i,j){PROBANCE_abstractTracker.prototype.track.call(this,i,j)};return e}());function PROBANCE_tags(){this.trackingId=null;this.trackingTypeId=null;this.generationDate=null;this.nextVerification=null;this.tags=new Array()}PROBANCE_tags.prototype.addTag=function(a,b,d,c){if(d===null||d===undefined){d=c}if(c!==null&&c!==undefined){if(b=="d"||b=="t"){c=new Date(c)}}this.tags.push(new PROBANCE_tag(a,b,d,c))};PROBANCE_tags.prototype.exportAsJson=function(){if(this.tags===null){return""}var b=null,c=null,a=0;for(a=0;a<this.tags.length;a++){if(this.tags[a]==null){continue}c=JSON.stringify(this.tags[a],["name","type","rawValue"]);if(b==null){b=c}else{b+=", "+c}}if(b==null){return'{"tags":[]}'}return'{"tags":['+b+"]}"};PROBANCE_tags.prototype.getTagValue=function(a){var b=0;for(b=0;b<this.tags.length;b++){if(this.tags[b].name==a){return this.tags[b].value}}return null};PROBANCE_tags.prototype.readFromString=function(c){if(!c){return null}var d=null,b=0,a=null;d=JSON.parse(c);if(!d){return null}a=new PROBANCE_tags();a.generationDate=new Date(d.generationDate);a.nextVerification=new Date(d.nextVerification);a.trackingId=d.trackingId;for(b=0;b<d.tags.length;b++){a.addTag(d.tags[b].name,d.tags[b].type,d.tags[b].rawValue,d.tags[b].value)}return a};function PROBANCE_tag(a,b,d,c){this.name=a;this.type=b;this.rawValue=d;this.value=c}function PROBANCE_taggerValue(e,d,c,b,a){this.siteId=d;this.taggerGetTagsUrl=null;this.taggerImportTagsUrl=null;this.taggerVisitorCreatorUrl=null;if(c.trim().length>0){c=PROBANCE_urlUtils.normalize(c);this.taggerGetTagsUrl=PROBANCE_urlUtils.getProtocol(document.location+"")+"://"+c+"api/tags/"+d+"/";this.taggerImportTagsUrl=PROBANCE_urlUtils.getProtocol(document.location+"")+"://"+c+"api/importTags/"+d+"/";this.taggerVisitorCreatorUrl=PROBANCE_urlUtils.getProtocol(document.location+"")+"://"+c+"api/visitor/"+d+"/"}this.storagePrefixName=a;this.storageName=null;this.idFunction=b;this.taggerType=e;this.loaded=!1;this.tagValue=null;this.callbackAfterLoad=null;this.useAsyncCall=!1;this.tagsChanged=!1;this.initialized=!1}PROBANCE_taggerValue.prototype.clear=function(){this.loaded=!1;this.tagValue=null;this.initialized=!1};PROBANCE_taggerValue.prototype.getTagsTime=function(){if(this.tagValue!==null){return this.tagValue.expires}return null};PROBANCE_taggerValue.prototype.getLocalTags=function(){try{if(!localStorage){return null}}catch(b){return null}var a=localStorage.getItem(this.storageName);return PROBANCE_encoder.decode(a)};PROBANCE_taggerValue.prototype.removeLocalTags=function(){try{if(!localStorage){return}localStorage.removeItem(this.storageName)}catch(a){return null}};PROBANCE_taggerValue.prototype.saveLocalTags=function(a){try{if(!localStorage){return}localStorage.setItem(this.storageName,a)}catch(b){return null}};PROBANCE_taggerValue.prototype.init=function(c,e,h){if(this.initialized){if(h!=null){h()}return}this.initialized=!0;if(this.storageName==null){if(this.storagePrefixName!=null&&this.storagePrefixName!=undefined){this.storageName=this.storagePrefixName+"_"}else{this.storageName=""}this.storageName+=this.taggerType+"_tags"}if(c===null){this.tagValue=null;if(h!=null){h()}return}if(this.tagValue!==null){if(h!=null){h()}return}if(e!==null&&e!==undefined&&e.trim().length>0){e=e.trim()}else{e=null}var f=null,d=null,b=null,g="tagger "+(this.taggerType!==null?"["+this.taggerType+"] ":"");
799f=this.getLocalTags();if(f!==null){this.tagValue=new PROBANCE_tags().readFromString(f);if(this.tagValue!=null){if(this.tagValue.trackingId!==c||this.tagValue.trackingTypeId!==e){probance_logger.writeLog(g+"local tags are not for this customer");this.removeLocalTags();this.tagValue=null}}else{if(this.tagValue!=null){this.removeLocalTags();this.tagValue=null}}}d=this;if(this.tagValue!==null){if(this.tagValue.nextVerification&&this.tagValue.nextVerification.getTime()>new Date().getTime()){this.loaded=!0;if(h!=null){h()}return}}probance_logger.writeLog(g+"get tags from server",!0);var a=new Date();b=null;if(d.idFunction!==null&&e==null){b=d.idFunction(c)}if(b===null){b=c}d.getTagsFromServer(g+"get tags from server",b,e,d.useAsyncCall,function(j){probance_logger.writeLog(g+"get tags from server",!1,a);var i="";if(d.tagValue!==null){d.tagValue.trackingId=b;d.tagValue.trackingTypeId=e;i=JSON.stringify(d.tagValue)}d.saveLocalTags(PROBANCE_encoder.encode(i));probance_logger.writeLog(g+"save tag into local storage");if(h){h()}d.tagsChanged=j;if(j&&d.callbackAfterLoad){setTimeout(d.callbackAfterLoad,100)}})};PROBANCE_taggerValue.prototype.getTags=function(){return this.tagValue};PROBANCE_taggerValue.prototype.getTag=function(c,a){if(c===null){return null}var b=null,d=null;b=this.getTags();if(b==null){return a}d=b.getTagValue(c);if(d==null){return a}return d};PROBANCE_taggerValue.prototype.getTagsFromServer=function(h,f,d,e,g){var b=this;var a=(this.tagValue&&this.tagValue.nextVerification?"ifModifiedSince="+this.tagValue.nextVerification.getTime():"");if(d!==null&&d!==undefined&&d.trim().length>0){d=d.trim()}else{d=null}var c=this.taggerGetTagsUrl;if(d!==null){c+=d+"/"}c+=f;probance_ajax.sendAjax(h,c,!0,a,e,function(){var m=null,q=null,o=null,j=null,s=null,l=null,r=null,p=0,n=!1;if(!b.tagValue){b.tagValue=new PROBANCE_tags()}if("status" in this&&this.status!==undefined&&this.status!==null){m=Math.floor(this.status/100);if(m===2){q=this.responseText}}else{if("XDomainRequest" in window&&window.XDomainRequest!==null){q=this.responseText}}if(q===null){probance_logger.writeWarning(h+": not content (http "+this.status+")")}else{if(this.responseText.trim().length==0){probance_logger.writeLog(h+": unchanged")}else{try{o=JSON.parse(q)}catch(k){probance_logger.writeWarning(h+": fail to parse"+q)}if(o!==null){if("tags" in o&&o.tags){probance_logger.writeLog(h+": changed");n=!0;b.tagValue=new PROBANCE_tags();b.tagValue.trackingId=f;b.tagValue.trackingTypeId=d;b.tagValue.generationDate=new Date(o.generationDate);for(p=0;p<o.tags.length;p++){l=null;j=o.tags[p].name;r=o.tags[p].type;s=o.tags[p].value;if(o.tags[p].hasOwnProperty("rawValue")){l=o.tags[p].rawValue}b.tagValue.addTag(j,r,l,s)}}else{probance_logger.writeLog(h+": empty tags")}if("expires" in o){b.tagValue.nextVerification=new Date(o.expires)}}}}b.loaded=!0;if(g){g(n)}return},function(){b.tagValue=null;if(g){g(!1)}return})};function PROBANCE_trackers(){this.initialized=!1;this.getTagsAsync=!1;this.crmTagsSentToVRM=!1;this.autoTrackOnInit=!0;this.trackerCRM=null;this.trackerVRM=null}PROBANCE_trackers.prototype.doNotTrackOnInit=function(){this.autoTrackOnInit=!1};PROBANCE_trackers.prototype.setCRM=function(a){this.trackerCRM=a};PROBANCE_trackers.prototype.setVRM=function(a){this.trackerVRM=a};PROBANCE_trackers.prototype.getCRM=function(){return this.trackerCRM};PROBANCE_trackers.prototype.getVRM=function(){return this.trackerVRM};PROBANCE_trackers.prototype.sendCRMTags=function(){if(this.crmTagsSentToVRM){return!0}if(this.trackerCRM===null||this.trackerCRM.tagger===null||this.trackerVRM===null||this.trackerVRM.tagger===null){return!1}if(this.trackerCRM.getTags()===null||this.trackerCRM.getTags().tags===null||this.trackerCRM.getTags().tags.length==0){return!1}var b=this.trackerCRM.getTags().exportAsJson();var c=this.trackerVRM.getTrackingId();var a=this;probance_logger.writeLog("send CRM tags to VRM with\n"+b);probance_ajax.sendAjax("tagger "+(this.trackerVRM.tagger.taggerType!==null?"["+this.trackerVRM.tagger.taggerType+"] ":""),this.trackerVRM.tagger.taggerImportTagsUrl+c,!1,b,!0,function(){a.crmTagsSentToVRM=!0});return!0};PROBANCE_trackers.prototype.init=function(g){var h=this,d=null,e=null,c=0,j=null,b=null,f=[];if(this.initialized){return}d=this.trackerCRM;e=this.trackerVRM;if(d!==null&&d!==undefined&&d.tagger!==null&&d.tagger!==undefined&&e!==null&&e!==undefined&&e.tagger!==null&&e.tagger!==undefined){e.tagger.callbackAfterLoad=function(){h.sendCRMTags()}}if(d){f.push(d)}if(e){f.push(e)}var a=function a(m,k,l){if(!k){return}var i=k;probance_logger.writeLog("start init "+k.trackerType);k.init(m,function(){m.initialized=!0;probance_logger.writeLog("end init callback "+i.trackerType);if(l===null||l===undefined){return}if(f!=null){var n=PROBANCE_utils.getIndexOfArray(f,i);if(n!=-1){f.splice(n,1)}}if(f==null||f.length==0){if(l){l()}}});probance_logger.writeLog("end init "+k.trackerType)};if(this.trackerCRM){this.trackerCRM.getTagsAsync=this.getTagsAsync;this.trackerCRM.autoTrackOnInit=this.autoTrackOnInit;setTimeout(function(){a(h,d,g)},4)}if(this.trackerVRM){this.trackerVRM.getTagsAsync=this.getTagsAsync;this.trackerVRM.autoTrackOnInit=this.autoTrackOnInit;setTimeout(function(){a(h,e,g)},4)}};PROBANCE_trackers.prototype.track=function(a,b){if(this.trackerCRM){this.trackerCRM.track(a,b)}if(this.trackerVRM){this.trackerVRM.track(a,b)}};PROBANCE_trackers.prototype.trackEvent=function(a,b){if(this.trackerCRM){this.trackerCRM.trackEvent(a,b)}if(this.trackerVRM){this.trackerVRM.trackEvent(a,b)}};PROBANCE_trackers.prototype._getTag=function(c,b,a){if(!c){return null}return c.getTag(b,a)};
799PROBANCE_trackers.prototype._getId=function(a){if(!a){return null}return a.getTrackingId()};PROBANCE_trackers.prototype._getTags=function(a){if(!a){return null}return a.getTags()};PROBANCE_trackers.prototype._printTags=function(a,b){if(!a){return null}return a.printTags(b)};PROBANCE_trackers.prototype._getTagsTime=function(a){if(!a){return null}return a.getTagsTime()};PROBANCE_trackers.prototype._isTagsLoad=function(a){if(!a){return!0}return a.isTagsLoad()};PROBANCE_trackers.prototype._addCustom=function(b,a,c){if(!b){return}b.addCustom(a,c)};PROBANCE_trackers.prototype._clearCustom=function(a){if(!a){return}a.clearCustom()};PROBANCE_trackers.prototype.getCRMTag=function(b,a){return this._getTag(this.trackerCRM,b,a)};PROBANCE_trackers.prototype.getVRMTag=function(b,a){return this._getTag(this.trackerVRM,b,a)};PROBANCE_trackers.prototype.getCRMTags=function(){return this._getTags(this.trackerCRM)};PROBANCE_trackers.prototype.getVRMTags=function(){return this._getTags(this.trackerVRM)};PROBANCE_trackers.prototype.printCRMTags=function(a){return this._printTags(this.trackerCRM,a)};PROBANCE_trackers.prototype.printVRMTags=function(a){return this._printTags(this.trackerVRM,a)};PROBANCE_trackers.prototype.getCRMTagsTime=function(){return this._getTagsTime(this.trackerCRM)};PROBANCE_trackers.prototype.getVRMTagsTime=function(){return this._getTagsTime(this.trackerVRM)};PROBANCE_trackers.prototype.isTagsCRMLoad=function(){return this._isTagsLoad(this.trackerCRM)};PROBANCE_trackers.prototype.isTagsVRMLoad=function(){return this._isTagsLoad(this.trackerVRM)};PROBANCE_trackers.prototype.clearCustom=function(a,b){this._clearCustom(this.trackerCRM);this._clearCustom(this.trackerVRM)};PROBANCE_trackers.prototype.addCustom=function(a,b){this._addCustom(this.trackerCRM,a,b);this._addCustom(this.trackerVRM,a,b)};PROBANCE_trackers.prototype.addCustomCRM=function(a,b){this._addCustom(this.trackerCRM,a,b)};PROBANCE_trackers.prototype.addCustomVRM=function(a,b){this._addCustom(this.trackerVRM,a,b)};PROBANCE_trackers.prototype.clearCustomCRM=function(){this._clearCustom(this.trackerCRM)};PROBANCE_trackers.prototype.clearCustomVRM=function(){this._clearCustom(this.trackerVRM)};PROBANCE_trackers.prototype.getCRMId=function(){return this._getId(this.trackerCRM)};PROBANCE_trackers.prototype.getVRMId=function(){return this._getId(this.trackerVRM)};PROBANCE_infos={version:"3.2.10#1157"};var ViewedPage=function(){if("undefined"!=typeof probance_wt){var e=probance_wt.id_type,b=probance_wt.id,a=probance_wt.id_product?probance_wt.id_product:"",f=probance_wt.wt_token,k=probance_wt.api_url,g=probance_wt.customer_prefix?probance_wt.customer_prefix:"",h=probance_wt.product_prefix?probance_wt.product_prefix:"",i=document.location.href,j=probance_wt.debug;1==j&&console.log("my_id : "+b+"\ntypeID: "+e+"\nproductID : "+a+"\ntoken : "+f+"\napi_url : "+k+"\ncustomer_prefix : "+g+"\nproduct_prefix : "+h);var c=null;try{c=new PROBANCE_CRMTracker(f,"Prob_Track",90,"t4.my-probance.one/webtrax","idprob")}catch(l){return}if(null!==c){var d=new PROBANCE_trackers;d.setCRM(c),null!=b&&""!==b&&c.setCustomer(g+b,e),d.doNotTrackOnInit(),d.init(),null==a&&(a=""),""!=a&&(a=h+a),1==j&&console.log("track("+i+",[['product_id',"+a+"],['action','visit']])"),d.track(i,[["product_id",a],["action","visit"]])}}};$(document).ready(ViewedPage);/** 800 * Prestashop module for Oct8ne 801 * 802 * @author oct8ne.com 803 * @copyright 2026 Oct8ne 804 * @license Commercial license see license.txt * 805 * 806 * @category Prestashop 807 * @category Module 808 * Support by mail : [email protected] 809 */ 810(function(){if(typeof oct8neConfig==='undefined')return;var staticurl=oct8neConfig.urlStatic+"api/v2/oct8ne.js";var oct8ne=document.createElement("script");window.oct8ne=oct8ne;oct8ne.type="text/javascript";oct8ne.src=(document.location.protocol=="https:"?"https://":"http://")+staticurl+'?'+(Math.round(new Date().getTime()/86400000));oct8ne.async=!0;oct8ne.license=oct8neConfig.license;oct8ne.server=oct8neConfig.server;oct8ne.baseUrl=oct8neConfig.baseUrl;oct8ne.checkoutUrl=oct8neConfig.checkoutUrl;oct8ne.loginUrl=oct8neConfig.loginUrl;oct8ne.checkoutSuccessUrl=oct8neConfig.checkoutSuccessUrl;oct8ne.locale=oct8neConfig.locale;oct8ne.currencyCode=oct8neConfig.currencyCode;oct8ne.platform="prestashop";oct8ne.apiVersion="2.5";
810oct8ne.onProductAddedToCart=function(productId){if(typeof ajaxCart!='undefined'){ajaxCart.refresh()}};if(oct8neConfig.user&&oct8neConfig.user.email){oct8ne.options={context:{"userFirstName":oct8neConfig.user.firstName,"userLastName":oct8neConfig.user.lastName,"userEmail":oct8neConfig.user.email},user:{name:oct8neConfig.user.firstName,email:oct8neConfig.user.email}}} 811if(oct8neConfig.currentProduct){oct8ne.currentProduct={id:oct8neConfig.currentProduct.id,thumbnail:oct8neConfig.currentProduct.thumbnail}} 812function insertOct8ne(){if(!window.oct8neScriptInserted){var s=document.getElementsByTagName("script")[0];if(s){s.parentNode.insertBefore(oct8ne,s)}else{document.head.appendChild(oct8ne)} 813window.oct8neScriptInserted=!0;if(oct8neConfig.scriptEvents&&oct8neConfig.scriptEvents!=="DISABLED"){if(oct8neConfig.scriptEvents==="ALL"){window.removeEventListener('mousemove',insertOct8ne);window.removeEventListener('scroll',insertOct8ne);window.removeEventListener('click',insertOct8ne);window.removeEventListener('keydown',insertOct8ne);window.removeEventListener('touchstart',insertOct8ne)}else if(oct8neConfig.scriptEvents!=="SCRIPT"){window.removeEventListener(oct8neConfig.scriptEvents,insertOct8ne)}}}} 814if((!oct8neConfig.scriptTimer||oct8neConfig.scriptTimer==0)&&(!oct8neConfig.scriptEvents||oct8neConfig.scriptEvents=="DISABLED")){insertOct8ne()}else{if(document.cookie.indexOf("oct8ne-room")==-1&&!window.location.href.includes('viewTimeLine')){if(oct8neConfig.scriptTimer&&oct8neConfig.scriptTimer!=0){setTimeout(insertOct8ne,oct8neConfig.scriptTimer*1000)} 815if(oct8neConfig.scriptEvents&&oct8neConfig.scriptEvents!="DISABLED"){if(oct8neConfig.scriptEvents=="ALL"){window.addEventListener('mousemove',insertOct8ne);window.addEventListener('scroll',insertOct8ne);window.addEventListener('click',insertOct8ne);window.addEventListener('keydown',insertOct8ne);window.addEventListener('touchstart',insertOct8ne)}else if(oct8neConfig.scriptEvents!="SCRIPT"){window.addEventListener(oct8neConfig.scriptEvents,insertOct8ne)}}}else{insertOct8ne()}}})();eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('8 u(){6 9=c.A(\'p\');9.3.d="U%";9.3.E="F";6 1=c.A(\'X\');1.3.V="10";1.3.Z="K";1.3.Y="K";1.3.11="C";1.3.d="F";1.3.E="W";1.3.S="C";1.B(9);c.H.B(1);6 q=9.Q;1.3.S=\'T\';6 k=9.Q;5(q==k)k=1.13;c.H.1a(1);1i(q-k)}c.1h(\'1g\',8(n){z();6 l=1f;$(t).1e(8(){5($(t).d()<I-u()){5(!l){z();5(e $(".o")!==\'j\'&&$(".o").g>0){$(".o").L(8(n){n.1d();6 r=$(N).h("O");$("#7"+r).s("1c",8(){$("#14"+r).1b()})})}l=12}}x{5(e $(".7.f.b")!==\'j\'&&$(".7.f.b").g>0){$(".7.f.b").s();$(".7.f.b").19()}}});5(e $(".m")!==\'j\'&&$(".m").g>0){$(".m").L(8(){6 2=$(N).h("O");5(e $("#4"+2+" a i")!==\'j\'&&$("#4"+2+" a i").g>0){5($("#4"+2+" a i").18("w")){$("#4"+2+" a i").G(\'17\');$("#4"+2+" a i").y("M");$("#4"+2+" a i").v("w")}x{$("#4"+2+" a i").G(\'16\');$("#4"+2+" a i").y("w");$("#4"+2+" a i").v("M")}}})}});8 z(){5($(t).d()<I-u()){$(".7").y("b")}x{$(".7").v("b");$("#J #D P a").R(\'h-15\');$("#J #D P a").R(\'h-s\')}}',62,81,'|outer|id_data|style|soymenu_dropdown_|if|var|soymenu_subcategories|function|inner||collapse|document|width|typeof|soymm_sub_full|length|data||undefined|w2|subscribed_event_menu|soymenu_dropdown|event|soymenu_collapse||w1|data_id|toggle|window|scrollCompensate|removeClass|soymm_down|else|addClass|collapseBehaviour|createElement|appendChild|hidden|soymenu_main_ul|height|200px|html|body|mainmenu_resolution|soymenu|0px|click|soymm_up|this|id|li|offsetWidth|removeAttr|overflow|scroll|100|position|150px|div|left|top|absolute|visibility|true|clientWidth|soy_mm_|target|keyboard_arrow_down|keyboard_arrow_up|hasClass|hide|removeChild|show|fast|preventDefault|resize|false|DOMContentLoaded|addEventListener|return'.split('|'),0,{}));/** 816* 2007-2024 PrestaShop 817* 818* NOTICE OF LICENSE 819* 820* This source file is subject to the Academic Free License (AFL 3.0)
821* that is bundled with this package in the file LICENSE.txt. 822* It is also available through the world-wide-web at this URL: 823* http://opensource.org/licenses/afl-3.0.php 824* If you did not receive a copy of the license and are unable to 825* obtain it through the world-wide-web, please send an email 826* to [email protected] so we can send you a copy immediately. 827* 828* DISCLAIMER 829* 830* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 831* versions in the future. If you wish to customize PrestaShop for your 832* needs please refer to http://www.prestashop.com for more information. 833* 834* @author PrestaShop SA <[email protected]> 835* @copyright 2007-2024 PrestaShop SA 836* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 837* International Registered Trademark & Property of PrestaShop SA 838* 839* Don't forget to prefix your containers with your own identifier 840* to avoid any conflicts with others containers. 841*/ 842$(document).ready(function(){$('body').on('click','.product-miniature .add-to-cart-mobile',function(e){e.preventDefault();e.stopPropagation();var slider=$(this);var listaCombinaciones=$(this).parents('.product-add-to-cart').find('.input-interaction-size-product');if(!listaCombinaciones.length){$(this).parents('.product-add-to-cart').find('.add-to-cart').click();return!0} 843$('body').append('<div id="darkOverlay" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 999;"></div>');var id_product=$(this).parents('.product-miniature').data('id-product');var popupContent='<div id="popupContainer" data-id-product="'+id_product+'" style="position: fixed; bottom: 0; left: 0; width: 100%; height: 140px; background: white; padding: 10px; z-index: 99999;">';var titleContainer='<div class="title-container">';titleContainer+='<h3 class="title-pop-up"> Elegir el tamaño </h3>';titleContainer+='</div>';popupContent+=titleContainer;popupContent+='<div class="combination-popup-miniature" style="display: flex;">';var numItems=listaCombinaciones.length;var stepSize=0.07;listaCombinaciones.each(function(index,element){var image=$(element).data('image');var name=$(element).parent().find('span').text();var price=$(element).data('price');var scale_product_image=$(element).data('scale-product');if(scale_product_image==1){var transformScale=1-(numItems-index-1)*stepSize} 844popupContent+='<div class="product-item" data-id-atribbute="'+$(element).data('id-atribbute')+'">';if(scale_product_image==1){popupContent+='<img src="'+image+'" style="transform: scale('+transformScale.toFixed(2)+'); transform-origin: bottom">'}else{popupContent+='<img src="'+image+'">'} 845popupContent+='<p class="ml-size">'+name+'</p>';popupContent+='<span class="price-pop-up">'+price+'</span>';popupContent+='</div>'});popupContent+='</div>';popupContent+='</div>';$('body').append(popupContent);$(document).on('click',function(e){if(!$(e.target).closest('#popupContainer').length){closePopup()}});$(document).on('click','#popupContainer .product-item',function(e){var id_attribute=$(this).data('id-atribbute');var id_product=$(this).parents('#popupContainer').data('id-product');var $product_miniature=slider.closest('.product-miniature[data-id-product="'+id_product+'"]');$product_miniature.find('.input-interaction-size-product[data-id-atribbute="'+id_attribute+'"]').click();$product_miniature.find('.mobile.add-to-cart').click();closePopup()})});function closePopup(){$('#darkOverlay').remove();$('#popupContainer').remove()}});/** 846 * Advanced Anti Spam PrestaShop Module. 847 * 848 * NOTICE OF LICENSE 849 * 850 * This source file is subject to the Academic Free License version 3.0 851 * that is bundled with this package in the file LICENSE.md. 852 * It is also available through the world-wide-web at this URL: 853 * https://opensource.org/licenses/AFL-3.0 854 * If you did not receive a copy of the license and are unable to 855 * obtain it through the world-wide-web, please send an email 856 * to [email protected] so we can send you a copy immediately. 857 * 858 * @author ReduxWeb 859 * @copyright 2017-2024 reduxweb.net 860 * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 861 */ 862var AdvancedEmailGuard=function(){"use strict";function i(){return!0===c.drm}function a(){return t.split(" ").map(function(t){return String.fromCharCode(t)}).join("").replace("{{date}}",(new Date).getFullYear())}function o(){if(h.isObj(s.recaptcha.forms)){if(v("contact_us",p.ps.v17pc?"form:has(button[name=submitMessage], input[name=submitMessage])":"form:not(#id_new_comment_form):has(button[name=submitMessage], input[name=submitMessage])"),v("register",p.ps.v17?"body:not(#checkout):not(#identity) form:has(button[name=submitCreate], input[name=submitCreate])":w()?"#opc_account_form:visible:has(button[name=submitAccount], input[name=submitAccount])":"form:has(button[name=submitAccount], input[name=submitAccount])"),v("login",p.ps.v17?"form:has(button[name=submitLogin], input[name=submitLogin])":"form:has(button[name=SubmitLogin], input[name=SubmitLogin])"),v("reset_password",p.ps.v17?"form.forgotten-password, body#password #content form:first":"#form_forgotpassword",p.ps.v17?"button[type=submit]:visible, input[type=submit]:visible":"button[type=submit], input[type=submit]"),v("quick_order",p.ps.v17?"body#checkout form:has(button[name=submitCreate], input[name=submitCreate])":w()?"#opc_account_form:visible:has(button[name=submitGuestAccount], input[name=submitGuestAccount])":"#new_account_form"),v("newsletter",p.ps.v15?"form:has(button[name=submitNewsletter], input[name=submitNewsletter]):visible":"form:has(button[name=submitNewsletter], input[name=submitNewsletter])",p.ps.v17?"button[type=submit]:visible, input[type=submit]:visible":"button[type=submit], input[type=submit]"),v("write_review",p.ps.v17pc?"#post-product-comment-form":"#id_new_comment_form"),v("notify_when_in_stock",c.isLegacyMAModuleEnabled?"form:has(#mailalert_link)":".js-mailalert",c.isLegacyMAModuleEnabled?"":"button[type=submit], input[type=submit], button:first"),v("send_to_friend","#send_friend_form_content"),s.recaptcha.hidden&&$("#"+b).length===0)s.recaptcha.hidden=!1;for(var t in s.recaptcha.forms){h.recaptchaForms[t]=[];switch(t){case"register":if(!p.ps.v17){$(document).ajaxSuccess(function(t,e,
862i,a){var o=h.queryToObj(i.data);if(o.controller==="authentication"&&h.isDef(o.SubmitCreate)&&!a.hasError)setTimeout(function(){h.initRecaptchaForm("register")},700)});if(w()){$(document).on("click","#opc_createAccount",function(){setTimeout(function(){h.initRecaptchaForm("register")},700)});$(document).ajaxSend(function(t,e,i){var a=h.queryToObj(i.data);if(a.ajax==="true"&&h.isDef(a.submitAccount)&&a.is_new_customer==="1")i.data+=h.getRecFormTokenAsPayload("register")})}}break;case"login":if(w())$(document).ajaxSend(function(t,e,i){var a=h.queryToObj(i.data);if(a.ajax==="true"&&h.isDef(a.SubmitLogin))i.data+=h.getRecFormTokenAsPayload("login")});break;case"quick_order":if(w()){$(document).on("click","#opc_guestCheckout",function(){setTimeout(function(){h.initRecaptchaForm("quick_order")},700)});$(document).ajaxSend(function(t,e,i){var a=h.queryToObj(i.data);if(a.ajax==="true"&&h.isDef(a.submitAccount)&&a.is_new_customer==="0")i.data+=h.getRecFormTokenAsPayload("quick_order")})}break;case"notify_when_in_stock":var r=c.isLegacyMAModuleEnabled?"mailalerts":"ps_emailalerts";$(document).ajaxSend(function(t,e,i){if(i.url.includes(r)&&i.url.includes("process=add"))i.data+=h.getRecFormTokenAsPayload("notify_when_in_stock")});if(!c.isLegacyMAModuleEnabled)$(document).ajaxSuccess(function(t,e,i,a){var o=h.queryToObj(i.data);if(i.url.includes("controller=product")&&o.action==="refresh")h.initRecaptchaForm("notify_when_in_stock")});if(S())$(document).ajaxSuccess(function(t,e,i,a){if(i.url.includes(r)&&/process=(add|check)/.test(i.url)){var o=!1;if(c.isLegacyMAModuleEnabled)o=a==="1";else try{var n=JSON.parse(a);o=n.error===!1}catch(t){}if(o&&h.isDef(h.recaptchaForms.notify_when_in_stock))h.recaptchaForms.notify_when_in_stock.forEach(function(t){if(!t.$submit.is(":visible"))t.hideWidget()})}});break;case"send_to_friend":$(document).ajaxSend(function(t,e,i){var a=h.queryToObj(i.data);if(a.action==="sendToMyFriend")i.data+=h.getRecFormTokenAsPayload("send_to_friend")});break}}s.recaptcha.deferred&&!function(){var t=[],e;for(e in s.recaptcha.forms)if(h.isDef(y[e]))t.push(y[e].form);return t.length!==0&&$(t.join(",")).length!==0}()||e(n)}}function e(t){var e,i;F||(e="?render=explicit&onload="+d,"shop"===s.recaptcha.language&&(e+="&hl="+p.languageCode),i=t,window[d]=function(){F||(F=!0,k(),"function"==typeof h.googleRecaptchaCallbackBefore&&h.googleRecaptchaCallbackBefore(),i(),"function"==typeof h.googleRecaptchaCallback&&h.googleRecaptchaCallback())},$("head").append('<script src="https://www.google.com/recaptcha/api.js'+e+'"><\/script>'))}function n(){for(var t in s.recaptcha.forms)h.initRecaptchaForm(t)}var c,s,p,r,h={},t="65 100 118 97 110 99 101 100 32 65 110 116 105 32 83 112 97 109 32 71 111 111 103 108 101 32 114 101 67 65 80 84 67 72 65 32 40 99 41 32 67 111 112 121 114 105 103 104 116 32 50 48 49 55 45 50 48 50 48 32 82 101 100 117 120 87 101 98 32 119 119 119 46 114 101 100 117 120 119 101 98 46 110 101 116",u="AdvancedEmailGuard",m=u+"Data",d=u+"InitRecaptcha",l="g-recaptcha-response",f="adveg-grecaptcha",b="adveg-grecaptcha-legal",y=(h.booted=!1,h.recaptchaForms={},h.googleRecaptchaCallback=null,h.googleRecaptchaCallbackBefore=null,h.jqueryReady=null,{}),g={},F=!1,R=0,v=(h.extends=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},h.isObj=function(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)},h.isDef=function(t){return null!=t},h.queryToObj=function(t){var e={};return"string"==typeof t&&(t=0===(t=t.replace(/^\&+|\&+$/g,"")).lastIndexOf("?")?t.substr(1):t).split("&").forEach(function(t){t=t.split("=");e[t[0]]=decodeURIComponent(t[1])}),e},h.strToStudly=function(t){return t.replace(/^[a-z]|([-_][a-z])/gi,function(t){return t.toUpperCase().replace("-","").replace("_","")})},function(t,e,i){y[t]||h.registerFormSelectors(t,e,i)}),k=(h.registerFormSelectors=function(t,e,i){y[t]={form:e,submit:i||"button[type=submit], input[type=submit]"}},function(){var t,e;"v3"===s.recaptcha.type&&(0===(e=$("#"+f)).length&&(t="inline"===s.recaptcha.position?"inline":"fixed",e=$('<div id="'+f+'" class="adveg-grecaptcha-'+t+'" />'),$("body").append(e)),R=grecaptcha.render(f,{sitekey:s.recaptcha.key,badge:s.recaptcha.position,theme:s.recaptcha.theme,size:"invisible"}),s.recaptcha.hidden&&e.hide())}
862),S=(h.initRecaptchaForm=function(i){if(!h.isDef(y[i]))throw new Error('No selector defined for the "'+i+'" form type.');var a=y[i],o=s.recaptcha.forms[i];if(!h.isDef(o))throw new Error('No params defined for the "'+i+'" form type.');var n=h.strToStudly(i)+"Form",t=(h.isDef(h[n])||(n="RecaptchaForm"),$(a.form));0!==t.length&&(F?t.each(function(){var e=$(this),t=e.find(a.submit).first();h.recaptchaForms[i].some(function(t){return e.is(t.$form)})||h.recaptchaForms[i].push(new h[n](i,o,e,t))}):e(function(){h.initRecaptchaForm(i)}))},h.getRecFormWithToken=function(t){if(h.isDef(h.recaptchaForms[t]))for(var e=0;e<h.recaptchaForms[t].length;e++)if(""!==h.recaptchaForms[t][e].token)return h.recaptchaForms[t][e];return null},h.getRecFormTokenAsPayload=function(t){var e,t=h.getRecFormWithToken(t);return null===t||i()?"":(e=t.token,t.onRecaptchaTokenExpired(),"&"+l+"="+e)},h.getRecV3ID=function(){return R},function(){return"v2_cbx"===s.recaptcha.type||"inline"===s.recaptcha.position}),w=function(){return c.isLegacyOPCEnabled&&"order-opc"===p.pageName};return h.RecaptchaForm=function(t,e,i,a){this.recID=0,this.name=t,this.params=e,this.$form=i,this.$submit=a,this.$inner=null,this.$outer=null,this.token="",this.origHandler=null,this.$gdprCbx=null,this.init()},h.RecaptchaForm.prototype.getFormElement=function(){return this.$form.get(0)},h.RecaptchaForm.prototype.getSubmitElement=function(){return this.$submit.get(0)},h.RecaptchaForm.prototype.init=function(){this.setSubmitHandler(),"v2_cbx"===s.recaptcha.type&&(this.setGDPRHandler(),this.disableSubmitBtn()),"v3"!==s.recaptcha.type&&this.addRecaptchaWidget(),this.$form.addClass("adveg-grecaptcha-form-item-"+this.name)},h.RecaptchaForm.prototype.disableSubmitBtn=function(){this.$submit.prop("disabled",!0).addClass("adveg-grecaptcha-btn-disabled")},h.RecaptchaForm.prototype.enableSubmitBtn=function(){this.$submit.prop("disabled",!1).removeClass("adveg-grecaptcha-btn-disabled")},h.RecaptchaForm.prototype.setGDPRHandler=function(){var t=this.$form.find("input[name=psgdpr_consent_checkbox]");0!==t.length&&(this.$gdprCbx=t,t="."+this.$gdprCbx.attr("class"),$(document).off("change",t),this.$gdprCbx.on("change",this.onGDPRCheckboxChange.bind(this)))},h.RecaptchaForm.prototype.onGDPRCheckboxChange=function(){""!==this.token&&this.isGDPRChecked()?this.enableSubmitBtn():this.disableSubmitBtn()},h.RecaptchaForm.prototype.isGDPRChecked=function(){return null===this.$gdprCbx||this.$gdprCbx.is(":checked")},h.RecaptchaForm.prototype.setSubmitHandler=function(){this.$form.submit(this.onFormSubmit.bind(this))},h.RecaptchaForm.prototype.onFormSubmit=function(t){"v2_cbx"!==s.recaptcha.type&&(""!==this.token?this.insertInputWithToken():("v3"===s.recaptcha.type?(this.disableSubmitBtn(),grecaptcha.execute(R,{action:this.name}).then(this.onRecaptchaToken.bind(this),this.onRecaptchaError.bind(this))):grecaptcha.execute(this.recID),t.preventDefault()))},h.RecaptchaForm.prototype.setSubmitFormHandler=function(){var t=g[this.name];h.isDef(t)?this.swapSubmitHandler(t):h.jqueryReady.then(function(){var t=this.getFormElement(),t=$._data(t,"events");h.isDef(t)&&Array.isArray(t.submit)&&0!==t.submit.length&&(g[this.name]=t.submit[0].handler,this.swapSubmitHandler(g[this.name]))}.bind(this))},h.RecaptchaForm.prototype.swapSubmitHandler=function(t){this.origHandler=t.bind(this.getFormElement()),this.$form.off("submit"),this.$form.submit(this.onFormSubmitProxy.bind(this))},h.RecaptchaForm.prototype.setSubmitClickHandler=function(){var t=g[this.name];h.isDef(t)?this.swapSubmitClickHandler(t):h.jqueryReady.then(function(){var t=this.getSubmitElement(),t=$._data(t,"events");h.isDef(t)&&Array.isArray(t.click)&&0!==t.click.length&&(g[this.name]=t.click[0].handler,this.swapSubmitClickHandler(g[this.name]))}.bind(this))},h.RecaptchaForm.prototype.swapSubmitClickHandler=function(t){this.origHandler=t.bind(this.getSubmitElement()),this.$submit.off("click"),this.$submit.click(this.onFormSubmitProxy.bind(this))},h.RecaptchaForm.prototype.setDocHandler=function(e,i){var t=g[this.name];h.isDef(t)?this.swapDocHandler(e,i,t):h.jqueryReady.then(function(){var t=$._data(document,"events");h.isDef(t)&&Array.isArray(t[i])&&0!==t[i].length&&(t=t[i].find(function(t){return t.selector===e}),h.isDef(t)&&(g[this.name]=t.handler,this.swapDocHandler(e,i,g[this.name])))}.bind(this))}
862,h.RecaptchaForm.prototype.swapDocHandler=function(t,e,i){this.origHandler=i,$(document).off(e,t),$(document).on(e,t,this.onFormSubmitProxy.bind(this))},h.RecaptchaForm.prototype.setDocClickHandler=function(t){this.setDocHandler(t,"click")},h.RecaptchaForm.prototype.setDocSubmitHandler=function(t){this.setDocHandler(t,"submit")},h.RecaptchaForm.prototype.setGlobalFuncHandler=function(t){var e=g[this.name];h.isDef(e)?this.swapGlobalFuncHandler(t,e):h.isDef(window[t])&&(g[this.name]=window[t],this.swapGlobalFuncHandler(t,g[this.name]))},h.RecaptchaForm.prototype.swapGlobalFuncHandler=function(t,e){this.origHandler=e.bind(window),window[t]=this.onFormSubmitProxy.bind(this)},h.RecaptchaForm.prototype.onFormSubmitProxy=function(t){var e;return"v2_cbx"===s.recaptcha.type?(e=this.origHandler(t),this.disableSubmitBtn(),grecaptcha.reset(this.recID)):""===this.token?("v3"===s.recaptcha.type?(this.disableSubmitBtn(),grecaptcha.execute(R,{action:this.name}).then(this.onRecaptchaToken.bind(this),this.onRecaptchaError.bind(this))):grecaptcha.execute(this.recID),h.isObj(t)&&t.preventDefault&&t.preventDefault()):(this.insertInputWithToken(),e=this.origHandler(t),"v3"===s.recaptcha.type?this.onRecaptchaTokenExpired():grecaptcha.reset(this.recID)),h.isDef(e)?e:!!h.isDef(t)&&void 0},h.RecaptchaForm.prototype.onRecaptchaToken=function(t){this.token=t,("v3"===s.recaptcha.type||"v2_cbx"===s.recaptcha.type&&this.isGDPRChecked())&&this.enableSubmitBtn(),"v2_cbx"!==s.recaptcha.type&&this.submitForm()},h.RecaptchaForm.prototype.onRecaptchaTokenExpired=function(){this.token="","v2_cbx"===s.recaptcha.type&&this.disableSubmitBtn()},h.RecaptchaForm.prototype.onRecaptchaError=function(){"v3"===s.recaptcha.type&&this.enableSubmitBtn(),alert("reCAPTCHA: "+r.genericError)},h.RecaptchaForm.prototype.insertInputWithToken=function(){var t;"v3"!==s.recaptcha.type||i()||(0===(t=this.$form.find("textarea[name="+l+"]")).length&&(t=$('<textarea name="'+l+'" style="display: none;"></textarea>'),this.$form.append(t)),t.val(this.token))},h.RecaptchaForm.prototype.submitForm=function(){this.$submit.click()},h.RecaptchaForm.prototype.addRecaptchaWidget=function(){this.createRecaptchaContainer(),this.insertRecaptchaContainer(),this.renderRecaptchaWidget()},h.RecaptchaForm.prototype.createRecaptchaContainer=function(){var t;this.$inner=$('<div class="adveg-grecaptcha" />'),this.$outer=this.$inner,S()?(this.$inner.addClass("adveg-grecaptcha-inline"),t=this.$submit.parent().parent().hasClass("row"),"offset"===this.params.align?(this.$outer=this.$inner.wrap("<div />").parent(),this.$outer.addClass("col-md-"+(12-this.params.offset)+" col-md-offset-"+this.params.offset+" offset-md-"+this.params.offset),t||(this.$outer=this.$outer.wrap('<div class="row" />').parent())):(this.$inner.addClass("adveg-grecaptcha-"+this.params.align),t&&(this.$outer=this.$outer.wrap('<div class="col-xs-12" />').parent()))):this.$inner.addClass("adveg-grecaptcha-fixed")},h.RecaptchaForm.prototype.insertRecaptchaContainer=function(){(this.$submit.parent().is(this.$form)?this.$submit:this.$submit.parent()).before(this.$outer),S()&&this.$outer.before('<div class="clearfix" />')},h.RecaptchaForm.prototype.renderRecaptchaWidget=function(){this.recID=grecaptcha.render(this.getWidgetContainer(),this.getRecaptchaParams()),s.recaptcha.hidden&&this.hideWidget()},h.RecaptchaForm.prototype.getRecaptchaParams=function(){var t={sitekey:s.recaptcha.key,callback:this.onRecaptchaToken.bind(this),"expired-callback":this.onRecaptchaTokenExpired.bind(this),"error-callback":this.onRecaptchaError.bind(this),theme:s.recaptcha.theme};return"v2_cbx"===s.recaptcha.type?t.size=this.params.size:(t.size="invisible",t.isolated=!0,t.badge=s.recaptcha.position),t},h.RecaptchaForm.prototype.getWidgetContainer=function(){return this.$inner.get(0)},h.RecaptchaForm.prototype.hideWidget=function(){"v3"!==s.recaptcha.type&&this.$outer.hide()},h.RegisterForm=function(t,e,i,a){h.RecaptchaForm.call(this,t,e,i,a)},h.extends(h.RegisterForm,h.RecaptchaForm),h.RegisterForm.prototype.setSubmitHandler=function(){w()?p.ps.v16?this.setDocClickHandler("#submitAccount, #submitGuestAccount"):this.setSubmitClickHandler():h.RecaptchaForm.prototype.setSubmitHandler.call(this)},h.RegisterForm.prototype.insertRecaptchaContainer=function(){p.ps.v15&&!w()&&0!==this.$form.find("fieldset").length?this.$form.find("fieldset:last").append(this.$outer):h.RecaptchaForm.prototype.insertRecaptchaContainer.call(this)}
862,h.LoginForm=function(t,e,i,a){h.RecaptchaForm.call(this,t,e,i,a)},h.extends(h.LoginForm,h.RecaptchaForm),h.LoginForm.prototype.onFormSubmit=function(t){p.ps.v17ch&&"order"===p.pageName&&this.$form.data("disabled",!1),h.RecaptchaForm.prototype.onFormSubmit.call(this,t)},h.LoginForm.prototype.setSubmitHandler=function(){w()?p.ps.v16?this.setDocClickHandler("#SubmitLogin"):this.setSubmitClickHandler():h.RecaptchaForm.prototype.setSubmitHandler.call(this)},h.QuickOrderForm=function(t,e,i,a){h.RecaptchaForm.call(this,t,e,i,a)},h.extends(h.QuickOrderForm,h.RecaptchaForm),h.QuickOrderForm.prototype.setSubmitHandler=function(){w()?p.ps.v16?this.setDocClickHandler("#submitAccount, #submitGuestAccount"):this.setSubmitClickHandler():h.RecaptchaForm.prototype.setSubmitHandler.call(this)},h.QuickOrderForm.prototype.onFormSubmit=function(t){p.ps.v17ch&&this.$form.data("disabled",!1),h.RecaptchaForm.prototype.onFormSubmit.call(this,t)},h.QuickOrderForm.prototype.insertRecaptchaContainer=function(){p.ps.v16&&!w()&&0!==this.$form.find(".box").length?this.$form.find(".box:last").append(this.$outer):p.ps.v15&&!w()&&0!==this.$form.find("fieldset:last").length?this.$form.find("fieldset:last").append(this.$outer):h.RecaptchaForm.prototype.insertRecaptchaContainer.call(this)},h.NewsletterForm=function(t,e,i,a){h.RecaptchaForm.call(this,t,e,i,a)},h.extends(h.NewsletterForm,h.RecaptchaForm),h.NewsletterForm.prototype.insertRecaptchaContainer=function(){"flex"===this.$submit.closest("div").css("display")?this.$submit.closest("div").before(this.$outer):h.RecaptchaForm.prototype.insertRecaptchaContainer.call(this)},h.NewsletterForm.prototype.setSubmitHandler=function(){h.isDef(window.psemailsubscription_subscription)?h.jqueryReady.then(function(){h.isDef($._data(this.getFormElement(),"events"))?this.setSubmitFormHandler():h.RecaptchaForm.prototype.setSubmitHandler.call(this)}.bind(this)):h.RecaptchaForm.prototype.setSubmitHandler.call(this)},h.WriteReviewForm=function(t,e,i,a){h.RecaptchaForm.call(this,t,e,i,a)},h.extends(h.WriteReviewForm,h.RecaptchaForm),h.WriteReviewForm.prototype.setSubmitHandler=function(){p.ps.v17pc?this.setSubmitFormHandler():p.ps.v16?this.setDocClickHandler("#"+this.$submit.attr("id")):this.setSubmitClickHandler()},h.WriteReviewForm.prototype.insertRecaptchaContainer=function(){p.ps.v17pc?(this.$submit.parent().before(this.$outer),S()?this.$submit.closest(".post-comment-buttons").addClass("offset-md-6 offset-sm-6 col-md-offset-6 col-sm-offset-6"):function(){for(var t in h.recaptchaForms)if(0<h.recaptchaForms[t].length)return!0;return!1}()||this.$form.closest(".modal-dialog").attr("style","-webkit-transform: none!important; transform: none!important;")):h.RecaptchaForm.prototype.insertRecaptchaContainer.call(this)},h.NotifyWhenInStockForm=function(t,e,i,a){h.RecaptchaForm.call(this,t,e,i,a)},h.extends(h.NotifyWhenInStockForm,h.RecaptchaForm),h.NotifyWhenInStockForm.prototype.setSubmitHandler=function(){!c.isLegacyMAModuleEnabled&&this.$submit.hasClass("js-mailalert-add")?this.setDocClickHandler(".js-mailalert-add"):this.setGlobalFuncHandler("addNotification")},h.NotifyWhenInStockForm.prototype.swapDocHandler=function(t,e,i){!c.isLegacyMAModuleEnabled&&this.$submit.hasClass("js-mailalert-add")&&(i=i.bind(this.getSubmitElement())),h.RecaptchaForm.prototype.swapDocHandler.apply(this,[t,e,i])},h.NotifyWhenInStockForm.prototype.insertRecaptchaContainer=function(){this.$submit.before(this.$outer)},h.SendToFriendForm=function(t,e,i,a){h.RecaptchaForm.call(this,t,e,i,a)},h.extends(h.SendToFriendForm,h.RecaptchaForm),h.SendToFriendForm.prototype.setSubmitHandler=function(){this.setSubmitClickHandler()},h.run=function(){var t,e,i;return h.booted||(h.isObj(window[m])&&(h.jqueryReady=new Promise(function(t){$.isReady?t():$(function(){t()})}),i=window[m],c=i.meta,s=i.settings,p=i.context,r=i.trans,null!==c.validationError&&(t=0,(e=$('<div id="adveg-validation-failed" style="display: none;"><div><div>'+c.validationError+'</div><button type="button"><span>×</span></button></div></div>')).appendTo("body"),e.find("button:first").on("click",function(){clearTimeout(t),e.slideUp(200)}),setTimeout(function(){e.slideDown(200),t=setTimeout(function(){e.slideUp(200)},4500)},700)),o()),h.booted=!0),a},h}();(function(){var booted=!1;var run=function(){if(booted){return}booted=!0;AdvancedEmailGuard.run()};var evts=["mousemove","mousedown","touchstart","keydown","wheel","scroll","focusin"];
862var onInteract=function(){evts.forEach(function(e){window.removeEventListener(e,onInteract)});run()};var arm=function(){evts.forEach(function(e){window.addEventListener(e,onInteract,{passive:!0,once:!1})})};if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",arm)}else{arm()}})();/** 863 * Redsys TPV Virtual POS Card payment 864 * 865 * NOTICE OF LICENSE 866 * 867 * This product is licensed for one customer to use on one installation (test stores and multishop included). 868 * Site developer has the right to modify this module to suit their needs, but can not redistribute the module in 869 * whole or in part. Any other use of this module constitues a violation of the user agreement. 870 * 871 * DISCLAIMER 872 * 873 * NO WARRANTIES OF DATA SAFETY OR MODULE SECURITY 874 * ARE EXPRESSED OR IMPLIED. USE THIS MODULE IN ACCORDANCE 875 * WITH YOUR MERCHANT AGREEMENT, KNOWING THAT VIOLATIONS OF 876 * PCI COMPLIANCY OR A DATA BREACH CAN COST THOUSANDS OF DOLLARS 877 * IN FINES AND DAMAGE A STORES REPUTATION. USE AT YOUR OWN RISK. 878 * 879 * @author idnovate 880 * @copyright 2023 idnovate 881 * @license See above 882*/ 883function updateTotalsWithFee(){var js_checkout_summary='';if(typeof $('#js-checkout-summary')!=='undefined'){var js_checkout_summary='#js-checkout-summary '} 884var total_ori_html=$(js_checkout_summary+'.cart-summary-line.cart-total').last().html();if(typeof $('.cart-summary-line.cart-total_2').last().html()==='undefined'){if($(js_checkout_summary+'.cart-summary-totals div').length==2){if($(js_checkout_summary+'.cart-summary-totals div').last().prev().find('span.value').text()!=''){var total_ori_without_taxes_html=$(js_checkout_summary+'.cart-summary-totals div').last().prev().html()}}else{var total_ori_without_taxes_html=$(js_checkout_summary+'.cart-summary-totals .cart-summary-line.cart-total').last().prevAll('.cart-summary-line.cart-total').html()}}else{var total_ori_without_taxes_html=$('.cart-summary-line.cart-total_2').last().html()} 885if(typeof $('.cart-summary-line.cart-total').next().html()==='undefined'){var taxes_ori_html=$(js_checkout_summary+'.cart-summary-line.cart-total').prev().html();
885if($('#cart-subtotal-tax')){var taxes_ori_html=$('#cart-subtotal-tax').find('span.value').html()}}else{var taxes_ori_html=$(js_checkout_summary+'.cart-summary-line.cart-total').next().html()} 886$("input[name='payment-option']").on('click',function(){var redsys_id=$('#pay-with-'+this.id+'-form').find('input[name=redsys_id]').val();if(redsys_id!=null&&typeof redsys_id!=='undefined'){var conditions_checkbox=$("input[name='cgv']");if($("input[name='cgv']").size()==0){conditions_checkbox=$("input[name='conditions_to_approve[terms-and-conditions]']")} 887if(conditions_checkbox.size()==0||$("input[name='conditions_to_approve[terms-and-conditions]']").is(':checked')){document.querySelector('#payment-confirmation button').removeAttribute('disabled')}} 888if(redsys_id!=null&&typeof redsys_id!=='undefined'){$('#cart-subtotal-redsys').remove();$('<div class="cart-summary-line cart-summary-subtotals" id="cart-subtotal-redsys">'+'<span class="label cart-summary-redsys-label">'+$("input[name='redsys_text_"+redsys_id+"']").val()+'</span>'+'<span class="value pull-right">'+$("input[name='redsys_fee_with_taxes_"+redsys_id+"']").val()+'</span>'+'</div>').insertAfter(js_checkout_summary+'#cart-subtotal-shipping');if(typeof $('.cart-summary-line.cart-total_2').last().html()==='undefined'){$(js_checkout_summary+'.cart-summary-totals .cart-summary-line.cart-total').last().prevAll('.cart-summary-line.cart-total').find('span.value').html($("input[name='redsys_order_total_with_taxes_"+redsys_id+"']").val())}else{$('.cart-summary-line.cart-total_2').find('span.value').html($("input[name='redsys_order_total_with_taxes_"+redsys_id+"']").val())} 889if($("input[name='redsys_price_display_method_cartsummary_"+redsys_id+"']").val()=='1'){$(js_checkout_summary+'.cart-summary-line.cart-total').last().find('span.value').html($("input[name='redsys_order_total_with_taxes_"+redsys_id+"']").val());$(js_checkout_summary+'.cart-summary-line.cart-total').last().find('strong.value').html($("input[name='redsys_order_total_with_taxes_"+redsys_id+"']").val())}else{if($(js_checkout_summary+'.cart-summary-totals div').length==2){if($(js_checkout_summary+'.cart-summary-totals div').last().prev().find('span.value').text()!=''){$(js_checkout_summary+'.cart-summary-totals div').last().prev().find('span.value').html($("input[name='redsys_order_total_with_taxes_"+redsys_id+"']").val())} 890if($(js_checkout_summary+'.cart-summary-totals div').last().find('span.value').text()!=''){$(js_checkout_summary+'.cart-summary-totals div').last().find('span.value').html($("input[name='redsys_order_total_with_taxes_"+redsys_id+"']").val())}}else{$(js_checkout_summary+'.cart-summary-line.cart-total').last().find('span.value').html($("input[name='redsys_order_total_with_taxes_"+redsys_id+"']").val());$(js_checkout_summary+'.cart-summary-line.cart-total').last().find('strong.value').html($("input[name='redsys_order_total_with_taxes_"+redsys_id+"']").val())}}}else if($(this).attr('data-module-name')!='redsys'&&$(this).is(':checked')){$('#cart-subtotal-redsys').remove();$(js_checkout_summary+'.cart-summary-line.cart-total').last().html(total_ori_html);if(typeof $(js_checkout_summary+'.cart-summary-line.cart-total_2').last().html()==='undefined'){if($(js_checkout_summary+'.cart-summary-totals div').length==2){$(js_checkout_summary+'.cart-summary-totals div').last().prev().html(total_ori_without_taxes_html)}else{$(js_checkout_summary+'.cart-summary-totals .cart-summary-line.cart-total').last().prevAll('.cart-summary-line.cart-total').html(total_ori_without_taxes_html)}}else{$(js_checkout_summary+'.cart-summary-line.cart-total_2').first().html(total_ori_without_taxes_html)} 891if(typeof $(js_checkout_summary+'.cart-summary-line.cart-total').next().html()==='undefined'){$(js_checkout_summary+'.cart-summary-line.cart-total').prev().html(taxes_ori_html);
891if($('#cart-subtotal-tax').size()>0){$('#cart-subtotal-tax').find('span.value').html(taxes_ori_html)}}else{$(js_checkout_summary+'.cart-summary-line.cart-total').next().html(taxes_ori_html)}}else{$(js_checkout_summary+'#cart-subtotal-redsys').remove();$(js_checkout_summary+'.cart-summary-line.cart-total_2').first().html(total_ori_without_taxes_html);if($(js_checkout_summary+'.cart-summary-totals div').length==2){$(js_checkout_summary+'.cart-summary-totals div').last().prev().html(total_ori_without_taxes_html)} 892if(typeof $(js_checkout_summary+'.cart-summary-line.cart-total').next().html()==='undefined'){$(js_checkout_summary+'.cart-summary-line.cart-total').prev().html(taxes_ori_html)}else{$(js_checkout_summary+'.cart-summary-line.cart-total').next().html(taxes_ori_html)} 893$(js_checkout_summary+'.cart-summary-line.cart-total').last().html(total_ori_html)}})} 894function updateOrderSummaryWithFee(){var ps176=!1;var ps1761=!1;if(typeof $('.order-confirmation-table .order-confirmation-total').html()!=='undefined'){ps1761=!0;var table_totals=$('.order-confirmation-table div');var total_ori_html=table_totals.last().html();var taxes_ori_html=table_totals.last().prev().prev().html()}else if(typeof $('.order-confirmation-table .taxes').html()==='undefined'){var total_ori_html=$('.order-confirmation-table table tr td').last().html();var taxes_ori_html=$('.order-confirmation-table table tr').last().prev().last().html()}else{ps176=!0;var total_ori_html=$('.order-confirmation-table table tr').last().prev().last().html();var taxes_ori_html=$('.order-confirmation-table .taxes').html()} 895$("input[name='payment-option']").click(function(){var redsys_id=$('#pay-with-'+this.id+'-form').find('input[name=redsys_id]').val();if(redsys_id!=null){$('tr.cart-order-summary-redsys').remove();$('<tr class="cart-order-summary-redsys">'+'<td>'+$("input[name='redsys_text_"+redsys_id+"']").val()+'</td>'+'<td>'+$("input[name='redsys_fee_with_taxes_"+redsys_id+"']").val()+'</td>'+'</tr>').insertBefore($('.order-confirmation-table table tr').last().prev());if(ps176){$('.order-confirmation-table table tr').last().prev().find('td').last().html($("input[name='redsys_order_total_with_taxes_"+redsys_id+"']").val());if($("input[name='redsys_tax_enabled_"+redsys_id+"']").val()=='1'&&$("input[name='redsys_tax_display_"+redsys_id+"']").val()=='1'){$('.order-confirmation-table .taxes').find('td span').last().html($("input[name='redsys_taxes_"+redsys_id+"']").val())}}else if(ps1761){$('.order-confirmation-table div span').last().html($("input[name='redsys_order_total_with_taxes_"+redsys_id+"']").val());if($("input[name='redsys_tax_enabled_"+redsys_id+"']").val()=='1'&&$("input[name='redsys_tax_display_"+redsys_id+"']").val()=='1'){table_totals.last().prev().prev().html($("input[name='redsys_taxes_"+redsys_id+"']").val())}}else{$('.order-confirmation-table table tr td').last().html($("input[name='redsys_order_total_with_taxes_"+redsys_id+"']").val());if($("input[name='redsys_tax_enabled_"+redsys_id+"']").val()=='1'&&$("input[name='redsys_tax_display_"+redsys_id+"']").val()=='1'){$('.order-confirmation-table table tr').last().prev().find('td').last().html($("input[name='redsys_taxes_"+redsys_id+"']").val())}}}else{$('tr.cart-order-summary-redsys, div.cart-order-summary-redsys').remove();if(ps176){$('.order-confirmation-table table tr').last().prev().last().html(total_ori_html);$('.order-confirmation-table .taxes').html(taxes_ori_html)}else if(ps1761){table_totals.last().html(total_ori_html);table_totals.last().prev().prev().html(taxes_ori_html)}else{$('.order-confirmation-table table tr td').last().html(total_ori_html);$('.order-confirmation-table table tr').last().prev().last().html(taxes_ori_html)}}})} 896$(document).ready(function(){updateTotalsWithFee();updateOrderSummaryWithFee();if($('input[data-module-name=redsys]:checked').attr('checked')==='checked'){$('input[data-module-name=redsys]').click()} 897if(typeof prestashop!=='undefined'){prestashop.on('updatedCart',function(){if($('input[data-module-name=redsys]:checked').length>0){window.location.replace(window.location.href+'?redsys')}});if(window.location.href.indexOf("?redsys")!==-1){$('input[data-module-name=redsys]').click()}}});let dfOpenQuickView=(productOptions)=>{if(window.matchMedia("(max-width: 767px)").matches){return dfShowMobileCombinations(productOptions)} 898let productId=productOptions.productID;let attributeId=productOptions.customizationID||0;if(productOptions.productID.includes('VAR-')){productId=productOptions.group_id;attributeId=productOptions.productID.replace('VAR-','')||0} 899const postData={action:'quickview',id_product:productId,id_product_attribute:attributeId,ajax:1};const productUrl=(productOptions.baseUrl||window.location.origin)+'?controller=product';$.post(productUrl,postData,null,'json').then(response=>{if(response.quickview_html){$('body').append(response.quickview_html);const modalId=`#quickview-modal-${response.product.id}-${response.product.id_product_attribute}`;const $modal=$(modalId);$modal.modal('show');$modal.on('hidden.bs.modal',()=>$modal.remove());if(productOptions.statusPromise){productOptions.statusPromise.resolve()}}else{throw new Error(response.error||'Invalid quickview response')}}).catch(error=>{if(productOptions.statusPromise){productOptions.statusPromise.reject(error.message)} 900if(typeof prestashop!=='undefined'){prestashop.emit('handleError',{eventType:'quickview',resp:{error:error.message}})}})};let dfShowMobileCombinations=(productOptions)=>{let productId=productOptions.productID;let attributeId=productOptions.customizationID||0;if(productOptions.productID.includes('VAR-')){productId=productOptions.group_id} 901$.ajax({url:ajaxControllerUrl,type:'POST',data:{id_product:productId,action:'AddToCartMobile',ajax:1},dataType:'json',success:function(response){if(response.success&&response.combinations){showMobileCombinationPopup(response.combinations,productOptions)}else{throw new Error(response.error||'Failed to load combinations')}},error:function(xhr,status,error){if(productOptions.statusPromise){productOptions.statusPromise.reject('Error loading combinations: '+error)}}})};let showMobileCombinationPopup=(combinations,productOptions)=>{combinations.sort((a,b)=>
901{const priceA=parseFloat(a.precio_final.replace(/[^\d.,]/g,'').replace(',','.'));const priceB=parseFloat(b.precio_final.replace(/[^\d.,]/g,'').replace(',','.'));return priceA-priceB});const needsSlider=combinations.length>5;const containerClass=needsSlider?'container-combination-products-doofinder with-slider':'container-combination-products-doofinder no-slider';let popupHTML=` 902 <div id="darkOverlay-doofinder" class="dark-overlay-doofinder"></div> 903 <div id="mobileCombinationPopup-doofinder" class="mobile-combination-popup-doofinder"> 904 <div class="popup-header-doofinder"> 905 <h3 class="popup-title-doofinder">Elegir el tamaño</h3> 906 <button class="close-popup-doofinder">Ã</button> 907 </div> 908 <ul class="${containerClass}"> 909 `;combinations.forEach((item,index)=>{const numItems=combinations.length;const stepSize=0.07;let scaleStyle='';if(item.scale_product){const transformScale=1-(numItems-index-1)*stepSize;scaleStyle=`style="transform: scale(${transformScale.toFixed(2)}); transform-origin: bottom"`} 910popupHTML+=` 911 <li class="combination-item-doofinder"> 912 <div class="container-optional-price-size-doofinder"> 913 <div class="container-flex-combination-doofinder"> 914 <div class="interaction-size-products-doofinder"> 915 <label class="boton-circular-doofinder ${item.selected ? 'seleccionado-doofinder' : ''}" 916 data-id-product-doofinder="${item.id_product}"> 917 <input class="input-interaction-size-product-doofinder" type="radio" 918 name="id_product_attribute_doofinder" 919 value="${item.id_product_attribute}" 920 data-image-doofinder="${item.image_url}" 921 data-price-doofinder="${item.precio_final}" 922 data-id-atribbute-doofinder="${item.id_product_attribute}" 923 data-scale-product-doofinder="${item.scale_product}"> 924 <img src="${item.image_url}" class="combination-image-doofinder ${item.scale_product ? 'scaled-image-doofinder' : ''}" ${scaleStyle}> 925 <span class="combination-name-doofinder">${item.name}</span> 926 <span class="combination-price-doofinder">${item.precio_final}</span> 927 </label> 928 </div> 929 </div> 930 </div> 931 </li> 932 `});popupHTML+=`</ul></div>`;$('body').append(popupHTML);let isAddingToCart=!1;$('#mobileCombinationPopup-doofinder').on('click','.boton-circular-doofinder',function(e){if(isAddingToCart){e.preventDefault();e.stopImmediatePropagation();return!1} 933isAddingToCart=!0;const $label=$(this).addClass('adding-to-cart-doofinder');const id_product=$label.data('id-product-doofinder');const id_product_attribute=$label.find('.input-interaction-size-product-doofinder').val();$.post(prestashop.urls.pages.cart,{add:1,action:'update',id_product:id_product,id_product_attribute:id_product_attribute,qty:1,token:prestashop.static_token},null,'json').then(function(resp){prestashop.emit('updateCart',{reason:{idProduct:resp.id_product||id_product,idProductAttribute:resp.id_product_attribute||id_product_attribute,idCustomization:resp.id_customization||0,linkAction:'add-to-cart',cart:resp.cart||{}},resp:resp});closePopup();if(productOptions.statusPromise){productOptions.statusPromise.resolve()}}).fail(function(resp){prestashop.emit('handleError',{eventType:'addProductToCart',resp:resp});if(productOptions.statusPromise){productOptions.statusPromise.reject(resp.errors?resp.errors.join(', '):'Error adding to cart')}}).always(function(){isAddingToCart=!1;$label.removeClass('adding-to-cart-doofinder')});return!1});$('.close-popup-doofinder, #darkOverlay-doofinder').on('click',closePopup);function closePopup(){$('#darkOverlay-doofinder, #mobileCombinationPopup-doofinder').remove();if(productOptions.statusPromise&&!isAddingToCart){productOptions.statusPromise.reject('Popup closed without selection')}}};let doofinderManageQuickView=(productOptions)=>{dfOpenQuickView(productOptions)};/** 934* 2007-2019 PrestaShop 935* 936* NOTICE OF LICENSE 937* 938* This source file is subject to the Academic Free License (AFL 3.0)
939* that is bundled with this package in the file LICENSE.txt. 940* It is also available through the world-wide-web at this URL: 941* http://opensource.org/licenses/afl-3.0.php 942* If you did not receive a copy of the license and are unable to 943* obtain it through the world-wide-web, please send an email 944* to [email protected] so we can send you a copy immediately. 945* 946* DISCLAIMER 947* 948* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 949* versions in the future. If you wish to customize PrestaShop for your 950* needs please refer to http://www.prestashop.com for more information. 951* 952* @author PrestaShop SA <[email protected]> 953* @copyright 2007-2019 PrestaShop SA 954* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 955* International Registered Trademark & Property of PrestaShop SA 956* 957* Don't forget to prefix your containers with your own identifier 958* to avoid any conflicts with others containers. 959*/ 960;/** 961* This module was created by Anastasia Bu and is protected by the laws of Copyright. 962* This source file is subject to a commercial license from Anastasia Bu 963* Use, copy, modification or distribution of this source file without written 964* license agreement from Anastasia Bu <[email protected]> is strictly forbidden. 965* 966* 967* @author Anastasia Bu <[email protected]> 968* @copyright 2007-2022 Anastasia Bu 969* @license Commercial license 970*/ 971'use strict';const wishList={init(){this._products=JSON.parse(wsWlProducts);this._idWishlist=wsWishListConst.id_wishlist;this._setHandlers()},_setHandlers(){document.querySelectorAll('.add_to_ws_wishlist').forEach((btn)=>{btn.addEventListener('click',(evt)=>this._addToWishListHandler(evt))});document.querySelectorAll('.remove_from_wishlist').forEach(btn=>btn.addEventListener('click',(evt)=>this._deleteProductHandler(evt)));document.querySelectorAll('.wishlist_add_to_cart').forEach(btn=>btn.addEventListener('click',(evt)=>this._addToCartHandler(evt)));document.querySelectorAll('.wishlist_product_qty').forEach(btn=>btn.addEventListener('change',(evt)=>this._changeProductQtyHandler(evt)));document.querySelectorAll('.popup_button_wishlist').forEach((btn)=>btn.addEventListener('click',(evt)=>this._addFromPopupHandler(evt)));$(document).on('mouseenter','.wish_link, .wrap_allert',function(){$(this).find(".allert_note").show()});$(document).on('mouseleave','.wish_link, .wrap_allert',function(){$(this).find(".allert_note").hide()});$(document).on('change','select[name=wishlists]',function(){wishList.wishlistChangeDefault('ws_wishlist_block_list',$(this).val())});$(document).off('click','#create_new_wl').on('click','#create_new_wl',function(e){e.preventDefault();wishList.createNewWL()})},_addCheckedFlag(btn){if(this.isProductExists(btn.dataset.idProduct)>-1){btn.classList.add('wl-checked');btn.title=added_to_wishlist_btn}},_addToWishListHandler(evt){evt.preventDefault();this._productHub(evt.currentTarget.dataset);this._toggleClass(evt.currentTarget);if(evt.currentTarget.classList.contains('wlbtn_has-text')){this._toggleText(evt.currentTarget)}},_deleteProductHandler(evt){evt.preventDefault();this._getNewProduct(evt.currentTarget.dataset);const indexProduct=this.isProductExists();this.removeFromWishList(indexProduct)},_openPopUptHandler(evt){evt.preventDefault();this._getNewProduct(evt.currentTarget.dataset);$.fancybox.open([{autoScale:!0,minHeight:30,href:'#wishlist_popup_form'}])},_addFromPopupHandler(evt){evt.preventDefault();const idWishlist=document.querySelector("#wishlist_select_popup").value;console.log(this._idWishlist);if(idWishlist===this._idWishlist){this.addToWishList()}else{this.updateData('add',idWishlist).then(this.showSuccessPopUp())} 972$.fancybox.close()},_toggleClass(el){el.classList.toggle('wl-checked');el.parentElement.classList.toggle('wrap_allert')},_toggleText(el){if(el.classList.contains('wl-checked')){el.querySelector('span').innerHTML=added_to_wishlist_btn}else{el.querySelector('span').innerHTML=add_to_wishlist_btn}},isProductExists(idProduct=null,idProductAttribute=null){if(!idProduct){idProduct=this._newProduct.idProduct} 973if(!idProductAttribute){idProductAttribute=this._newProduct.idProductAttribute} 974return this._products.findIndex(product=>product.idProduct==idProduct&&product.idProductAttribute==idProductAttribute)},_getNewProduct(newProduct){this._newProduct={...newProduct,qty:1}},_productHub(newProduct){this._getNewProduct(newProduct);const indexProduct=this.isProductExists();if(indexProduct>-1){this.removeFromWishList(indexProduct)}else{this.addToWishList()}},_addToCartHandler(evt){evt.preventDefault();const{idProduct,idProductAttribute}=evt.currentTarget.dataset;const quantity=+document.querySelector(`#quantity_${idProduct}_${idProductAttribute}`).value;this._wishlistBuyProduct(idProduct,idProductAttribute,quantity,evt.currentTarget,static_token)},_changeProductQtyHandler(evt){this._getNewProduct(evt.currentTarget.dataset);const indexProduct=this.isProductExists();this.updateProduct(indexProduct)},addToWishList(idWishlist=this._idWishlist){this._products.push(this._newProduct);const response=this.updateData('add',idWishlist);response.then(data=>{this.showSuccessPopUp();this.updateView('add',data)})},removeFromWishList(indexProduct){this._products.splice(indexProduct,1);const response=this.updateData('delete');response.then(data=>{this.updateView('delete',data)})},async updateProduct(indexProduct){const newQty=document.querySelector(`#quantity_${this._newProduct.idProduct}_${this._newProduct.idProductAttribute}`).value;this._products[indexProduct].qty=newQty;this._newProduct.qty=newQty;const response=await this.updateData('upd');this.updateProductView();if(response.total){this.updateTotalPrice(response.total)} 975if(response.total_product){this.updateTotalProductPrice(response.total_product)}},async updateData(action,idWishlist=this._idWishlist){let query=`action=${action}&id_product=${this._newProduct.idProduct}&quantity=${this._newProduct.qty}&id_product_attribute=${this._newProduct.idProductAttribute}&id_wishlist=${idWishlist}&token=${static_token}`;if(wsWishlistUrlRewrite==1){query='?'+query}else{query='&'+query} 976const url=`${advansedwishlist_ajax_controller_url}${query}`;return fetch(url).then(response=>response.json())},updateView(action,data){this.updateCounters();const productListEl=document.querySelector('.ws_wishlist_product_list');if(productListEl!==null){switch(action){case 'add':this.displayNewProduct(data,productListEl);break;case 'delete':this.removeProductLine(productListEl);break;default:break}}},updateProductView(){document.querySelector(`input[data-id-product="${this._newProduct.idProduct}"]`).value=+this._newProduct.qty},updateTotalPrice(total){const totalPriceEl=document.querySelector('#wish_p_total');if(totalPriceEl!==null){totalPriceEl.innerHTML=total}},updateTotalProductPrice(totalProduct){const totalProductEl=document.querySelector(`#wlp_${this._newProduct.idProduct}_${this._newProduct.idProductAttribute} .wishlist-product-total-price`);if(totalProductEl!==null){totalProductEl.innerHTML=totalProduct}},getTotalCount(){return this._products.reduce((acc,curVal)=>+acc+ +curVal.qty,0)},updateCounters(){document.querySelectorAll(".wishlist_count").forEach(el=>el.textContent=this.getTotalCount())},displayNewProduct(product,productListEl){if($('#ws_wishlist_block_list dl.products').length==0){$('.wishlist_block_no_products').before('<dl class="products"></dl>');$('.wishlist_block_no_products').hide()} 977const typePage=productListEl.dataset.typePage;const dtElement=document.createElement(`dt`);dtElement.id=`ws_blockwishlist_product_${product.id}`;dtElement.classList.add('wl_block_product');let content=`<div class="wl_block_product_info"> 978 <a href="${product.ws_link}" title="${product.name}"> 979 <img src="${product.ws_img_link}" alt="${product.name}" > 980 </a> 981 <div class="wl_product_info"> 982 <a class="cart_block_product_name" href="${product.ws_link}">${product.name}</a> 983 <span class="ws_price">${product.ws_price}</span> 984 </div>`;if(typePage==='cart'){content+=`<input type="text" class="wishlist_product_qty" 985 data-id-product-attribute="${this._newProduct.idProductAttribute}" 986 data-id-product="${product.id}" 987 id="quantity_${product.id}_${this._newProduct.idProductAttribute}" 988 value="1"> 989 <a class="btn btn-primary exclusive wishlist_add_to_cart" href="${product.ws_cart_link}" rel="nofollow" title="${add_to_cart_btn}"> 990 <span>${add_to_cart_btn}</span> 991 </a>`};content+=`</div> 992 <a class="remove_from_wishlist" href="#" title="Delete" rel="nofollow" 993 data-id-product-attribute="${this._newProduct.idProductAttribute}" 994 data-id-product="${product.id}" 995 data-id_wishlist="${this._idWishlist}">`;if(product.ws_version==='advansedwishlistis17'){content+='<i class="material-icons">delete_forever</i>'}else{content+='<i class="icon icon-remove"></i>'} 996content+='</a>';dtElement.innerHTML=content;productListEl.querySelector('dl.products').append(dtElement);if(typePage==='cart'){dtElement.querySelector('.wishlist_add_to_cart').addEventListener('click',(evt)=>this._addToCartHandler(evt))} 997dtElement.querySelector('.remove_from_wishlist').addEventListener('click',(evt)=>this._deleteProductHandler(evt))},showSuccessPopUp(){window.wsWlPopup.wsOpen()},removeProductLine(productListEl){productListEl.querySelector(`#ws_blockwishlist_product_${this._newProduct.idProduct}`).remove()},_wishlistBuyProduct(id_product,id_product_attribute,id_quantity,button,static_token){if(ps_ws_version=='ps16'){ajaxCart.add(id_product,id_product_attribute,!1,button,id_quantity)}else{const cartUrl=`${wsWishListConst.wl_base_url}
997/index.php?controller=cart&update=1&id_product=${id_product}&id_product_attribute=${id_product_attribute}&qty=${id_quantity}&token=${static_token}&op=up`;fetch(cartUrl,{method:'POST',body:'',}).then(()=>{this._fixUpdateCart(id_quantity)})} 998$(".ws_added_alert").removeClass("hidden")},_fixUpdateCart(qty){const blockCart=document.querySelector(".blockcart");if(blockCart.classList.contains("active")){const cartProductsCountElement=blockCart.querySelector(".cart-products-count");const cartProductsCount=parseInt(cartProductsCountElement.textContent)+qty;cartProductsCountElement.textContent=cartProductsCount}else{window.location.reload()}},createNewWL:function(){var ws_select_text='<select><option value="11">---</option></select>';var idWishlist=$('#advansedwishlist_block').data('id-wishlist');$.ajax({type:'GET',async:!0,url:advansedwishlist_ajax_controller_url+'?rand='+new Date().getTime(),headers:{"cache-control":"no-cache"},data:'action=createNewWL',cache:!1,success:function(data){if(idWishlist){$("#ws_select_block").html(ws_select_text)} 999$("#createNewWL_ok").show();$('#advansedwishlist_block').data('id-wishlist','5')}})},wishlistChangeDefault(id,id_wishlist){$.ajax({type:'GET',url:advansedwishlist_ajax_controller_url,headers:{"cache-control":"no-cache"},async:!0,data:'action=changeDefault&id_wishlist='+id_wishlist+'&token='+static_token,cache:!1,success:function(data){$('#'+id).slideUp('normal');document.getElementById(id).innerHTML=data;$('#'+id).slideDown('normal')}})},} 1000document.addEventListener('DOMContentLoaded',()=>wishList.init());function wishlistBindBtn(event){$.fancybox.close();wishList._addToWishListHandler(event)} 1001function wishlistBindPopUpBtn(evt){$.fancybox.close();wishList._openPopUptHandler(evt)};/** 1002* This module was created by Anastasia Bu and is protected by the laws of Copyright. 1003* This source file is subject to a commercial license from Anastasia Bu 1004* Use, copy, modification or distribution of this source file without written 1005* license agreement from Anastasia Bu <[email protected]> is strictly forbidden. 1006* 1007* 1008* @author Anastasia Bu <[email protected]> 1009* @copyright 2007-2022 Anastasia Bu 1010* @license Commercial license 1011*/ 1012'use strict';const ready_wl_popup=(callback)=>{if(document.readyState!="loading")callback();else document.addEventListener("DOMContentLoaded",callback)} 1013ready_wl_popup(()=>{const wsModalDialog=document.querySelector(".ws_modal");if(!wsModalDialog)return;const wsModalCloseBtn=wsModalDialog.querySelector(".ws_modal_close");const wsEscHandler=function(evtK){if(evtK.key==='Escape'){wsModalCloseHandler(evtK)}} 1014const modalClose=function(){wsModalDialog.classList.add("hidden");document.querySelector("body").classList.remove("ws_modal_open");document.removeEventListener("keydown",wsEscHandler)} 1015const wsModalCloseHandler=function(evt){evt.preventDefault();modalClose()} 1016const modalOpen=()=>{document.querySelector("body").classList.add("ws_modal_open");wsModalDialog.classList.remove("hidden");wsModalCloseBtn.addEventListener("click",wsModalCloseHandler);document.addEventListener('keydown',wsEscHandler)} 1017window.wsWlPopup={wsOpen:modalOpen,wsClose:modalClose}});(function(){"use strict";var $,Animation,Growl,__bind=function(fn,me){return function(){return fn.apply(me,arguments)}};$=jQuery;Animation=(function(){function Animation(){} 1018Animation.transitions={"webkitTransition":"webkitTransitionEnd","mozTransition":"mozTransitionEnd","oTransition":"oTransitionEnd","transition":"transitionend"};Animation.transition=function($el){var el,result,type,_ref;el=$el[0];_ref=this.transitions;for(type in _ref){result=_ref[type];if(el.style[type]!=null){return result}}};return Animation})();Growl=(function(){Growl.settings={namespace:'growl',duration:3200,close:"×",location:"default",style:"default",size:"medium"};Growl.growl=function(settings){if(settings==null){settings={}} 1019this.initialize();return new Growl(settings)};Growl.initialize=function(){return $("body:not(:has(#growls))").append('<div id="growls" />')};function Growl(settings){if(settings==null){settings={}} 1020this.html=__bind(this.html,this);this.$growl=__bind(this.$growl,this);this.$growls=__bind(this.$growls,this);this.animate=__bind(this.animate,this);this.remove=__bind(this.remove,this);this.dismiss=__bind(this.dismiss,this);this.present=__bind(this.present,this);this.close=__bind(this.close,this);this.cycle=__bind(this.cycle,this);this.unbind=__bind(this.unbind,this);this.bind=__bind(this.bind,this);this.render=__bind(this.render,this);this.settings=$.extend({},Growl.settings,settings);this.$growls().attr('class',this.settings.location);this.render()} 1021Growl.prototype.render=function(){var $growl;$growl=this.$growl();this.$growls().append($growl);this.cycle($growl)};Growl.prototype.bind=function($growl){if($growl==null){$growl=this.$growl()} 1022return $growl.find("."+this.settings.namespace+"-close").on("click",this.close)};Growl.prototype.unbind=function($growl){if($growl==null){$growl=this.$growl()} 1023return $growl.find("."+(this.settings.namespace-close)).off("click",this.close)};Growl.prototype.cycle=function($growl){if($growl==null){$growl=this.$growl()} 1024return $growl.queue(this.present).delay(this.settings.duration).queue(this.dismiss).queue(this.remove)};Growl.prototype.close=function(event){var $growl;event.preventDefault();event.stopPropagation();$growl=this.$growl();return $growl.stop().queue(this.dismiss).queue(this.remove)};Growl.prototype.present=function(callback){var $growl;$growl=this.$growl();this.bind($growl);return this.animate($growl,""+this.settings.namespace+"-incoming",'out',callback)};Growl.prototype.dismiss=function(callback){var $growl;$growl=this.$growl();this.unbind($growl);return this.animate($growl,""+this.settings.namespace+"-outgoing",'in',callback)};Growl.prototype.remove=function(callback){this.$growl().remove();return callback()};Growl.prototype.animate=function($element,name,direction,callback){var transition;if(direction==null){direction='in'} 1025transition=Animation.transition($element);$element[direction==='in'?'removeClass':'addClass'](name);$element.offset().position;$element[direction==='in'?'addClass':'removeClass'](name);if(callback==null){return} 1026if(transition!=null){$element.one(transition,callback)}else{callback()}};Growl.prototype.$growls=function(){return this.$_growls!=null?this.$_growls:this.$_growls=$('#growls')};Growl.prototype.$growl=function(){return this.$_growl!=null?this.$_growl:this.$_growl=$(this.html())};Growl.prototype.html=function(){return"<div class='"+this.settings.namespace+" "+this.settings.namespace+"-"+this.settings.style+" "+this.settings.namespace+"-"+this.settings.size+"'>\n <div class='"+this.settings.namespace+"-close'>"+this.settings.close+"</div>\n <div class='"+this.settings.namespace+"-title'>"+this.settings.title+"</div>\n <div class='"+this.settings.namespace+"-message'>"+this.settings.message+"</div>\n</div>"};return Growl})();$.growl=function(options){if(options==null){options={}} 1027return Growl.growl(options)};$.growl.error=function(options){var settings;if(options==null){options={}} 1028settings={title:"Error!",style:"error"};return $.growl($.extend(settings,options))};$.growl.notice=function(options){var settings;if(options==null){options={}} 1029settings={title:"Notice!",style:"notice"};return $.growl($.extend(settings,options))};$.growl.warning=function(options){var settings;if(options==null){options={}} 1030settings={title:"Warning!",style:"warning"};return $.growl($.extend(settings,options))}}).call(this);!function(t){var e={},s={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,minSli
1030des:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};t.fn.bxSlider=function(n){if(0==this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(n)}),this;var o={},r=this;e.el=this;var a=t(window).width(),l=t(window).height(),d=function(){o.settings=t.extend({},s,n),o.settings.slideWidth=parseInt(o.settings.slideWidth),o.children=r.children(o.settings.slideSelector),o.children.length<o.settings.minSlides&&(o.settings.minSlides=o.children.length),o.children.length<o.settings.maxSlides&&(o.settings.maxSlides=o.children.length),o.settings.randomStart&&(o.settings.startSlide=Math.floor(Math.random()*o.children.length)),o.active={index:o.settings.startSlide},o.carousel=o.settings.minSlides>1||o.settings.maxSlides>1,o.carousel&&(o.settings.preloadImages="all"),o.minThreshold=o.settings.minSlides*o.settings.slideWidth+(o.settings.minSlides-1)*o.settings.slideMargin,o.maxThreshold=o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin,o.working=!1,o.controls={},o.interval=null,o.animProp="vertical"==o.settings.mode?"top":"left",o.usingCSS=o.settings.useCSS&&"fade"!=o.settings.mode&&function(){var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in e)if(void 0!==t.style[e[i]])return o.cssPrefix=e[i].replace("Perspective","").toLowerCase(),o.animProp="-"+o.cssPrefix+"-transform",!0;return!1}(),"vertical"==o.settings.mode&&(o.settings.maxSlides=o.settings.minSlides),r.data("origStyle",r.attr("style")),r.children(o.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),c()},c=function(){r.wrap('<div class="bx-wrapper"><div class="bx-viewport"></div></div>'),o.viewport=r.parent(),o.loader=t('<div class="bx-loading" />'),o.viewport.prepend(o.loader),r.css({width:"horizontal"==o.settings.mode?100*o.children.length+215+"%":"auto",position:"relative"}),o.usingCSS&&o.settings.easing?r.css("-"+o.cssPrefix+"-transition-timing-function",o.settings.easing):o.settings.easing||(o.settings.easing="swing"),f(),o.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),o.viewport.parent().css({maxWidth:p()}),o.settings.pager||o.viewport.parent().css({margin:"0 auto 0px"}),o.children.css({"float":"horizontal"==o.settings.mode?"left":"none",listStyle:"none",position:"relative"}),o.children.css("width",u()),"horizontal"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginRight",o.settings.slideMargin),"vertical"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginBottom",o.settings.slideMargin),"fade"==o.settings.mode&&(o.children.css({position:"absolute",zIndex:0,display:"none"}),o.children.eq(o.settings.startSlide).css({zIndex:o.settings.slideZIndex,display:"block"})),o.controls.el=t('<div class="bx-controls" />'),o.settings.captions&&P(),o.active.last=o.settings.startSlide==x()-1,o.settings.video&&r.fitVids();var e=o.children.eq(o.settings.startSlide);"all"==o.settings.preloadImages&&(e=o.children),o.settings.ticker?o.settings.pager=!1:(o.settings.pager&&T(),o.settings.controls&&C(),o.settings.auto&&o.settings.autoControls&&E(),(o.settings.controls||o.settings.autoControls||o.settings.pager)&&o.viewport.after(o.controls.el)),g(e,h)},g=function(e,i){var s=e.find("img, iframe").length;if(0==s)return i(),void 0;var n=0;e.find("img, iframe").each(function(){t(this).one("load",function(){++n==s&&i()}).each(function(){this.complete&&t(this).load()})})},h=function(){if(o.settings.infiniteLoop&&"fade"!=o.settings.mode&&!o.settings.ticker){var e="vertical"==o.settings.mode?o.settings.minSlides:o.settings.maxSlides,i=o.children.slice(0,e).clone().addClass("bx-clone"),s=o.children.slice(-e).clone().addClass("bx-clone");r.append(i).prepend(s)}o.loader.remove(),S(),"vertical"==o.settings.mode&&(o.settings.adaptiveHeight=!0),o.viewport.height(v()),r.redrawSlider(),o.settings.onSliderLoad(o.active.index),o.initialized=!0,o.settings.responsive&&t(window).bind("resize",Z),o.settings.auto&&o.settings.autoStart&&H(),o.settings.ticker&&L(),o.settings.pager&&q(o.settings.startSlide),o.settings.controls&&W(),o.settings.touchEnabled&&!o.settings.ticker&&O()},v=function(){var e=0,s=t();if("vertical"==o.settings.mode||o.settings.adaptiveHeight)if(o.carousel){var n=1==o.settings.moveSlides?o.active.index:o.active.index*m();for(s=o.children.eq(n),i=1;i<=o.settings.maxSlides-1;i++)s=n+i>=o.children.length?s.add(o.children.eq(i-1)):s.add(o.children.eq(n+i))}else s=o.children.eq(o.active.index);else s=o.children;return"vertical"==o.settings.mode?(s.each(function(){e+=t(this).outerHeight()}),o.settings.slideMargin>0&&(e+=o.settings.slideMargin*(o.settings.minSlides-1))):e=Math.max.apply(Math,s.map(function(){return t(this).outerHeight(!1)}).get()),e},p=function(){var t="100%";return o.settings.slideWidth>0&&(t="horizontal"==o.settings.mode?o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin:o.settings.slideWidth),t},u=function(){var t=o.settings.slideWidth,e=o.viewport.width();return 0==o.settings.slideWidth||o.settings.slideWidth>e&&!o.carousel||"vertical"==o.settings.mode?t=e:o.settings.maxSlides>1&&"horizontal"==o.settings.mode&&(e>o.maxThreshold||e<o.minThreshold&&(t=(e-o.settings.slideMargin*(o.settings.minSlides-1))/o.settings.minSlides)),t},f=function(){var t=1;if("horizontal"==o.settings.mode&&o.settings.slideWidth>0)if(o.viewport.width()<o.minThreshold)t=o.settings.minSlides;else if(o.viewport.width()>o.maxThreshold)t=o.settings.maxSlides;else{var e=o.children.first().width();t=Math.floor(o.viewport.width()/e)}else"vertical"==o.settings.mode&&(t=o.settings.minSlides);return t},x=function(){var t=0;if(o.settings.moveSlides>0)if(o.settings.infiniteLoop)t=o.children.length/m();else for(var e=0,i=0;e<o.children.length;)++t,e=i+f(),i+=o.settings.moveSlides<=f()?o.settings.moveSlides:f();else t=Math.ceil(o.children.length/f());return t},m=function(){return o.settings.moveSlides>0&&o.settings.moveSlides<=f()?o.settings.moveSlides:f()},S=function(){if(o.children.length>o.settings.maxSlides&&o.active.last&&!o.settings.infiniteLoop){if("horizontal"==o.settings.mode){var t=o.children.last(
1030),e=t.position();b(-(e.left-(o.viewport.width()-t.width())),"reset",0)}else if("vertical"==o.settings.mode){var i=o.children.length-o.settings.minSlides,e=o.children.eq(i).position();b(-e.top,"reset",0)}}else{var e=o.children.eq(o.active.index*m()).position();o.active.index==x()-1&&(o.active.last=!0),void 0!=e&&("horizontal"==o.settings.mode?b(-e.left,"reset",0):"vertical"==o.settings.mode&&b(-e.top,"reset",0))}},b=function(t,e,i,s){if(o.usingCSS){var n="vertical"==o.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)";r.css("-"+o.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"==e?(r.css(o.animProp,n),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),D()})):"reset"==e?r.css(o.animProp,n):"ticker"==e&&(r.css("-"+o.cssPrefix+"-transition-timing-function","linear"),r.css(o.animProp,n),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),b(s.resetValue,"reset",0),N()}))}else{var a={};a[o.animProp]=t,"slide"==e?r.animate(a,i,o.settings.easing,function(){D()}):"reset"==e?r.css(o.animProp,t):"ticker"==e&&r.animate(a,speed,"linear",function(){b(s.resetValue,"reset",0),N()})}},w=function(){for(var e="",i=x(),s=0;i>s;s++){var n="";o.settings.buildPager&&t.isFunction(o.settings.buildPager)?(n=o.settings.buildPager(s),o.pagerEl.addClass("bx-custom-pager")):(n=s+1,o.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+s+'" class="bx-pager-link">'+n+"</a></div>"}o.pagerEl.html(e)},T=function(){o.settings.pagerCustom?o.pagerEl=t(o.settings.pagerCustom):(o.pagerEl=t('<div class="bx-pager" />'),o.settings.pagerSelector?t(o.settings.pagerSelector).html(o.pagerEl):o.controls.el.addClass("bx-has-pager").append(o.pagerEl),w()),o.pagerEl.on("click","a",I)},C=function(){o.controls.next=t('<a class="bx-next" href="">'+o.settings.nextText+"</a>"),o.controls.prev=t('<a class="bx-prev" href="">'+o.settings.prevText+"</a>"),o.controls.next.bind("click",y),o.controls.prev.bind("click",z),o.settings.nextSelector&&t(o.settings.nextSelector).append(o.controls.next),o.settings.prevSelector&&t(o.settings.prevSelector).append(o.controls.prev),o.settings.nextSelector||o.settings.prevSelector||(o.controls.directionEl=t('<div class="bx-controls-direction" />'),o.controls.directionEl.append(o.controls.prev).append(o.controls.next),o.controls.el.addClass("bx-has-controls-direction").append(o.controls.directionEl))},E=function(){o.controls.start=t('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+o.settings.startText+"</a></div>"),o.controls.stop=t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+o.settings.stopText+"</a></div>"),o.controls.autoEl=t('<div class="bx-controls-auto" />'),o.controls.autoEl.on("click",".bx-start",k),o.controls.autoEl.on("click",".bx-stop",M),o.settings.autoControlsCombine?o.controls.autoEl.append(o.controls.start):o.controls.autoEl.append(o.controls.start).append(o.controls.stop),o.settings.autoControlsSelector?t(o.settings.autoControlsSelector).html(o.controls.autoEl):o.controls.el.addClass("bx-has-controls-auto").append(o.controls.autoEl),A(o.settings.autoStart?"stop":"start")},P=function(){o.children.each(function(){var e=t(this).find("img:first").attr("title");void 0!=e&&(""+e).length&&t(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},y=function(t){o.settings.auto&&r.stopAuto(),r.goToNextSlide(),t.preventDefault()},z=function(t){o.settings.auto&&r.stopAuto(),r.goToPrevSlide(),t.preventDefault()},k=function(t){r.startAuto(),t.preventDefault()},M=function(t){r.stopAuto(),t.preventDefault()},I=function(e){o.settings.auto&&r.stopAuto();var i=t(e.currentTarget),s=parseInt(i.attr("data-slide-index"));s!=o.active.index&&r.goToSlide(s),e.preventDefault()},q=function(e){var i=o.children.length;return"short"==o.settings.pagerType?(o.settings.maxSlides>1&&(i=Math.ceil(o.children.length/o.settings.maxSlides)),o.pagerEl.html(e+1+o.settings.pagerShortSeparator+i),void 0):(o.pagerEl.find("a").removeClass("active"),o.pagerEl.each(function(i,s){t(s).find("a").eq(e).addClass("active")}),void 0)},D=function(){if(o.settings.infiniteLoop){var t="";0==o.active.index?t=o.children.eq(0).position():o.active.index==x()-1&&o.carousel?t=o.children.eq((x()-1)*m()).position():o.active.index==o.children.length-1&&(t=o.children.eq(o.children.length-1).position()),t&&("horizontal"==o.settings.mode?b(-t.left,"reset",0):"vertical"==o.settings.mode&&b(-t.top,"reset",0))}o.working=!1,o.settings.onSlideAfter(o.children.eq(o.active.index),o.oldIndex,o.active.index)},A=function(t){o.settings.autoControlsCombine?o.controls.autoEl.html(o.controls[t]):(o.controls.autoEl.find("a").removeClass("active"),o.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},W=function(){1==x()?(o.controls.prev.addClass("disabled"),o.controls.next.addClass("disabled")):!o.settings.infiniteLoop&&o.settings.hideControlOnEnd&&(0==o.active.index?(o.controls.prev.addClass("disabled"),o.controls.next.removeClass("disabled")):o.active.index==x()-1?(o.controls.next.addClass("disabled"),o.controls.prev.removeClass("disabled")):(o.controls.prev.removeClass("disabled"),o.controls.next.removeClass("disabled")))},H=function(){o.settings.autoDelay>0?setTimeout(r.startAuto,o.settings.autoDelay):r.startAuto(),o.settings.autoHover&&r.hover(function(){o.interval&&(r.stopAuto(!0),o.autoPaused=!0)},function(){o.autoPaused&&(r.startAuto(!0),o.autoPaused=null)})},L=function(){var e=0;if("next"==o.settings.autoDirection)r.append(o.children.clone().addClass("bx-clone"));else{r.prepend(o.children.clone().addClass("bx-clone"));var i=o.children.first().position();e="horizontal"==o.settings.mode?-i.left:-i.top}b(e,"reset",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autoControls=!1,o.settings.tickerHover&&!o.usingCSS&&o.viewport.hover(function(){r.stop()},function(){var e=0;o.children.each(function(){e+="horizontal"==o.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)});
1030var i=o.settings.speed/e,s="horizontal"==o.settings.mode?"left":"top",n=i*(e-Math.abs(parseInt(r.css(s))));N(n)}),N()},N=function(t){speed=t?t:o.settings.speed;var e={left:0,top:0},i={left:0,top:0};"next"==o.settings.autoDirection?e=r.find(".bx-clone").first().position():i=o.children.first().position();var s="horizontal"==o.settings.mode?-e.left:-e.top,n="horizontal"==o.settings.mode?-i.left:-i.top,a={resetValue:n};b(s,"ticker",speed,a)},O=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.bind("touchstart",X)},X=function(t){if(o.working)t.preventDefault();else{o.touch.originalPos=r.position();var e=t.originalEvent;o.touch.start.x=e.changedTouches[0].pageX,o.touch.start.y=e.changedTouches[0].pageY,o.viewport.bind("touchmove",Y),o.viewport.bind("touchend",V)}},Y=function(t){var e=t.originalEvent,i=Math.abs(e.changedTouches[0].pageX-o.touch.start.x),s=Math.abs(e.changedTouches[0].pageY-o.touch.start.y);if(3*i>s&&o.settings.preventDefaultSwipeX?t.preventDefault():3*s>i&&o.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!=o.settings.mode&&o.settings.oneToOneTouch){var n=0;if("horizontal"==o.settings.mode){var r=e.changedTouches[0].pageX-o.touch.start.x;n=o.touch.originalPos.left+r}else{var r=e.changedTouches[0].pageY-o.touch.start.y;n=o.touch.originalPos.top+r}b(n,"reset",0)}},V=function(t){o.viewport.unbind("touchmove",Y);var e=t.originalEvent,i=0;if(o.touch.end.x=e.changedTouches[0].pageX,o.touch.end.y=e.changedTouches[0].pageY,"fade"==o.settings.mode){var s=Math.abs(o.touch.start.x-o.touch.end.x);s>=o.settings.swipeThreshold&&(o.touch.start.x>o.touch.end.x?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto())}else{var s=0;"horizontal"==o.settings.mode?(s=o.touch.end.x-o.touch.start.x,i=o.touch.originalPos.left):(s=o.touch.end.y-o.touch.start.y,i=o.touch.originalPos.top),!o.settings.infiniteLoop&&(0==o.active.index&&s>0||o.active.last&&0>s)?b(i,"reset",200):Math.abs(s)>=o.settings.swipeThreshold?(0>s?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto()):b(i,"reset",200)}o.viewport.unbind("touchend",V)},Z=function(){var e=t(window).width(),i=t(window).height();(a!=e||l!=i)&&(a=e,l=i,r.redrawSlider(),o.settings.onSliderResize.call(r,o.active.index))};return r.goToSlide=function(e,i){if(!o.working&&o.active.index!=e)if(o.working=!0,o.oldIndex=o.active.index,o.active.index=0>e?x()-1:e>=x()?0:e,o.settings.onSlideBefore(o.children.eq(o.active.index),o.oldIndex,o.active.index),"next"==i?o.settings.onSlideNext(o.children.eq(o.active.index),o.oldIndex,o.active.index):"prev"==i&&o.settings.onSlidePrev(o.children.eq(o.active.index),o.oldIndex,o.active.index),o.active.last=o.active.index>=x()-1,o.settings.pager&&q(o.active.index),o.settings.controls&&W(),"fade"==o.settings.mode)o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed),o.children.filter(":visible").fadeOut(o.settings.speed).css({zIndex:0}),o.children.eq(o.active.index).css("zIndex",o.settings.slideZIndex+1).fadeIn(o.settings.speed,function(){t(this).css("zIndex",o.settings.slideZIndex),D()});else{o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed);var s=0,n={left:0,top:0};if(!o.settings.infiniteLoop&&o.carousel&&o.active.last)if("horizontal"==o.settings.mode){var a=o.children.eq(o.children.length-1);n=a.position(),s=o.viewport.width()-a.outerWidth()}else{var l=o.children.length-o.settings.minSlides;n=o.children.eq(l).position()}else if(o.carousel&&o.active.last&&"prev"==i){var d=1==o.settings.moveSlides?o.settings.maxSlides-m():(x()-1)*m()-(o.children.length-o.settings.maxSlides),a=r.children(".bx-clone").eq(d);n=a.position()}else if("next"==i&&0==o.active.index)n=r.find("> .bx-clone").eq(o.settings.maxSlides).position(),o.active.last=!1;else if(e>=0){var c=e*m();n=o.children.eq(c).position()}if("undefined"!=typeof n){var g="horizontal"==o.settings.mode?-(n.left-s):-n.top;b(g,"slide",o.settings.speed)}}},r.goToNextSlide=function(){if(o.settings.infiniteLoop||!o.active.last){var t=parseInt(o.active.index)+1;r.goToSlide(t,"next")}},r.goToPrevSlide=function(){if(o.settings.infiniteLoop||0!=o.active.index){var t=parseInt(o.active.index)-1;r.goToSlide(t,"prev")}},r.startAuto=function(t){o.interval||(o.interval=setInterval(function(){"next"==o.settings.autoDirection?r.goToNextSlide():r.goToPrevSlide()},o.settings.pause),o.settings.autoControls&&1!=t&&A("stop"))},r.stopAuto=function(t){o.interval&&(clearInterval(o.interval),o.interval=null,o.settings.autoControls&&1!=t&&A("start"))},r.getCurrentSlide=function(){return o.active.index},r.getCurrentSlideElement=function(){return o.children.eq(o.active.index)},r.getSlideCount=function(){return o.children.length},r.redrawSlider=function(){o.children.add(r.find(".bx-clone")).outerWidth(u()),o.viewport.css("height",v()),o.settings.ticker||S(),o.active.last&&(o.active.index=x()-1),o.active.index>=x()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagerCustom&&(w(),q(o.active.index))},r.destroySlider=function(){o.initialized&&(o.initialized=!1,t(".bx-clone",this).remove(),o.children.each(function(){void 0!=t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!=t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerEl&&o.settings.controls&&o.pagerEl.remove(),t(".bx-caption",this).remove(),o.controls.autoEl&&o.controls.autoEl.remove(),clearInterval(o.interval),o.settings.responsive&&t(window).unbind("resize",Z))},r.reloadSlider=function(t){void 0!=t&&(n=t),r.destroySlider(),d()},d(),this}}(jQuery);var _0x33e06b=_0x322b;(function(_0x398de2,_0x4694c1){var _0x3006bb=_0x322b,_0x5d4766=_0x398de2();while(!![]){try{var _0x46410d=-parseInt(_0x3006bb(0xf3))/0x1+parseInt(_0x3006bb(0xf8))/0x2+-parseInt(_0x3006bb(0xee))/0x3+-parseInt(_0x3006bb(0xed))/0x4+-parseInt(_0x3006bb(0x104))/0x5*(-parseInt(_0x3006bb(0xf9))/0x6)+-parseInt(_0x3006bb(0xe6))/0x7*(-parseInt(_0x3006bb(0xf5))/0x8)+parseInt(_0x3006bb(0xeb))/0x9*(parseInt(_0x3006bb(0xf4))/0xa);if(_0x46410d===_0x4694c1)break;else _0x5d4766.push(_0x5d4766.shift())}catch(_0x89b2a){_0x5d4766.push(_0x5d4766.shift())}}}(_0x3290,0x255bf));var soyresponsiveslider_slider={},slider_image_type='';function _0x3290(){var _0x5ec062=['src','tablet','#soyresponsiveslider\x20.soyslider-container','data','wrap','DOMContentLoaded','<i\x20class=\x22material-icons\x22>navigate_before</i>','circles','outerWidth','prototype','45TSkNrl','reloadSlider','addEventListener','bxSlider','ready','-type','touch-enabled','attr','each','pause','length','705509VEuSIe','type','parentNode','<i\x20class=\x22material-icons\x22>navigate_next</i>','resize','126ICozct','desktop','179528SqfkSc','913527xOkWJt','.soyslider:not(.bx-clone).has_','#soyresponsiveslider','arrows','load','135060chZaYr','390KYWmAb','24LTgpUm','phone','-src','267752sYFpko','133794gOLPQJ'];_0x3290=function(){return _0x5ec062};return _0x3290()}document[_0x33e06b(0x106)](_0x33e06b(0xff),function(){var _0x77e47=_0x33e06b;soyGetResolution(),$('#soyresponsiveslider\x20video')[_0x77e47(0xe5)]&&placeSliderVideoSources()}),jQuery(document)[_0x33e06b(0x108)](function(_0x565b3c){var _0x433680=_0x33e06b;soyGetResolution(),!!_0x565b3c[_0x433680(0x103)][_0x433680(0x107)]&&(soyresponsiveslider_slider=_0x565b3c(_0x433680(0xfc))[_0x433680(0x107)](getResponsiveSliderConfig())),_0x565b3c(window)[_0x433680(0xea)](function(){var _0x55dd08=_0x433680;soyGetResolution()&&(_0x55dd08(0x105)in soyresponsiveslider_slider&&soyresponsiveslider_slider[_0x55dd08(0x105)](getResponsiveSliderConfig()),_0x565b3c('#soyresponsiveslider\x20video')[_0x55dd08(0xe5)]&&placeSliderVideoSources())})});function getResponsiveSliderConfig(){var _0x8d97f5=_0x33e06b,_0x732d6e=getSlideSelector(),_0x44509d=![],_0x453f67=![],_0x47827f=![];return $(_0x732d6e)['length']>0x1&&(_0x44509d=$('#soyresponsiveslider')['data'](_0x8d97f5(0xfe)),_0x453f67=$(_0x8d97f5(0xf0))[_0x8d97f5(0xfd)](_0x8d97f5(0xf1)),_0x47827f=$('#soyresponsiveslider')[_0x8d97f5(0xfd)](_0x8d97f5(0x101))),{'useCSS':![],'maxSlides':0x1,'slideSelector':_0x732d6e,'infiniteLoop':_0x44509d,'hideControlOnEnd':!![],'pager':![],'autoHover':$('#soyresponsiveslider')[_0x8d97f5(0xfd)](_0x8d97f5(0x10d)),'auto':!![],'speed':0x1f4,'pause':$('#soyresponsiveslider')[_0x8d97f5(0xfd)]('interval'),'controls':_0x453f67,'touchEnabled':$(_0x8d97f5(0xf0))[_0x8d97f5(0xfd)](_0x8d97f5(0x10a)),'nextText':_0x8d97f5(0xe9),'prevText':_0x8d97f5(0x100),'pagerType':'full','pager':_0x47827f}}function getSlideSelector(){var _0x50a294=_0x33e06b;return _0x50a294(0xef)+slider_image_type}function _0x322b(_0x4179ee,_0x1b6c93){var _0x32902=_0x3290();return _0x322b=function(_0x322b69,_0xa75131){_0x322b69=_0x322b69-0xe5;var _0xecd050=_0x32902[_0x322b69];return _0xecd050},_0x322b(_0x4179ee,_0x1b6c93)}function placeSliderVideoSources(){var _0x41a5cc=_0x33e06b;$('video.soyresponsiveslider-img\x20source')[_0x41a5cc(0x10c)](function(){var _0x2
vendor: 4,846 bytes, lines 1030-1031
1030156d2=_0x41a5cc,_0x57c0f3=$(this)[_0x2156d2(0xfd)](slider_image_type+_0x2156d2(0xf7)),_0x1ebae9=$(this)[_0x2156d2(0xfd)](slider_image_type+_0x2156d2(0x109));$(this)['attr']('src')!==_0x57c0f3&&$(this)[_0x2156d2(0x10b)](_0x2156d2(0xfa),_0x57c0f3),$(this)['attr'](_0x2156d2(0xe7))!==_0x1ebae9&&$(this)[_0x2156d2(0x10b)](_0x2156d2(0xe7),_0x1ebae9),this[_0x2156d2(0xe8)][_0x2156d2(0xf2)]()})}function soyGetResolution(){var _0x43dae0=_0x33e06b,_0xf74a4a=$(window)[_0x43dae0(0x102)]();if(_0xf74a4a>=0x3e0&&slider_image_type!=_0x43dae0(0xec))return slider_image_type=_0x43dae0(0xec),!![];else{if(_0xf74a4a>=0x300&&_0xf74a4a<0x3e0&&slider_image_type!=_0x43dae0(0xfb))return slider_image_type=_0x43dae0(0xfb),!![];else return _0xf74a4a<0x300&&slider_image_type!=_0x43dae0(0xf6)?(slider_image_type=_0x43dae0(0xf6),!![]):![]}};/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ 1031(function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0<a.indexOf("%")},l=function(a,d){var e=parseInt(a,10)||0;d&&E(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},w=function(a,b){return l(a,b)+"px"};f.extend(b,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(I?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;
1031a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,p.bind({"onCancel.player beforeClose.player":c,"onUpdate.player":e,"beforeLoad.player":d}),e(),b.trigger("onPlayStart")}else c()},next:function(a){var d=b.current;d&&(q(a)||(a=d.direction.next),b.jumpto(d.index+1,a,"next"))},prev:function(a){var d=b.current;d&&(q(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,"prev"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")),b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==v)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind("mousewheel.fb",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(".fancybox-skin")&&!h.is(".fancybox-wrap");)j=h[0]&&!(h[0].style.overflow&&"hidden"===h[0].style.overflow)&&(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?"down":"left");else if(0>g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1
vendor: 9,947 bytes, line 1031
1031)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("<div>").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}",g);break;case "swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+g+'"></param>',h="",f.each(a.swf,function(a,b){e+='<param name="'+a+'" value="'+b+'"></param>';h+=" "+a+'="'+b+'"'}),e+='<embed src="'+g+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll":"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c<m&&(c=m,j=l(c/D)),j<u&&(j=u,c=l(j*D))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&"iframe"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,p)));if(h.fitToView)if(g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height(),h.aspectRatio)for(;(a>z||y>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(p,j-10)),c=l(j*D),c<m&&(c=m,j=l(c/D)),c>n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&j<A&&c+x+q<z)&&(c+=q);g.width(c).height(j);e.width(c+x);a=e.width();y=e.height();e=(a>z||y>r)&&c>m&&j>u;c=h.aspectRatio?c<F&&j<B&&c<C&&j<A:(c<F||j<B)&&(c<C||j<A);f.extend(h,{dim:{width:w(a),height:w(y)},origWidth:C,origHeight:A,canShrink:e,canExpand:c,wPadding:x,hPadding:v,wrapSpace:y-k.outerHeight(!0),skinSpace:k.height()-j});!H&&(h.autoHeight&&j>u&&j<p&&!c)&&g.height("auto")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:"absolute",top:c[0],left:c[3]};d.autoCenter&&d.fixed&&!a&&g<=e.h&&f<=e.w?c.position="fixed":d.locked||(c.top+=e.y,c.left+=e.x);c.top=w(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=w(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css("overflow","visible").addClass("fancybox-opened"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css("cursor","pointer").bind("click.fb",function(d){!f(d.target).is("a")&&!f(d.target).parent().is("a")&&(d.preventDefault(),b[a.closeClick?"close":"next"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind("click.fb",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind("click.fb",b.next)),b.trigger("afterShow"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a=a||b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger("afterClose",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(":visible"))&&(e=d.find("img:first"),e.length||(e=d));t(e)?(c=e.offset(),e.is("img")&&(f=e.outerWidth(),g=e.outerHeight())):(c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if("fixed"===b.wrap.css("position")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:w(c.top-h*a.topRatio),left:w(c.left-j*a.leftRatio),width:w(f+j),height:w(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if("width"===f||"height"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c="width"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l("width"===f?c:c-g*e)),b.inner[f](l("width"===f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c="elastic"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):"fade"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:"none"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e="elastic"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c,{duration:"none"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})}
1031,changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;"elastic"===d&&(g="down"===f||"up"===f?"top":"left","down"===f||"right"===f?(e[g]=w(l(e[g])-200),c[g]="+=200px"):(e[g]=w(l(e[g])+200),c[g]="-=200px"));"none"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a=b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;"elastic"===d&&(e["down"===c||"up"===c?"top":"left"]=("up"===c||"left"===c?"-":"+")+"=200px");a.wrap.animate(e,{duration:"none"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger("onReset").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,el:f("html"),create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=f('<div class="fancybox-overlay"></div>').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"===f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('<div class="fancybox-title fancybox-title-'+c+'-wrap">'+e+"</div>");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner('<span class="child"></span>'),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.o
1031pen(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('<div style="position:fixed;top:20px;"></div>').appendTo("body");var e=20===d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("<style type='text/css'>.fancybox-margin{margin-right:"+(d-a)+"px;}</style>").appendTo("head")})})(window,document,jQuery);/** 1032* @author Amazzing 1033* @copyright Amazzing 1034* @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 1035*/ 1036var af_product_list_selector='#js-product-list',locked_class=af_classes['icon-lock'],unlocked_class=af_classes['icon-unlock-alt'],unlocked_selector='.'+unlocked_class.replace(/ /g,'.'),pagination_class=af_classes.pagination,customThemeActions={documentReady:function(){},updateContentAfter:function(jsonData){}};var af={defineVariables:function(){$.extend(af,{blockAjax:!1,resizeTimer:!1,mouseLeaveTimer:!1,qsTimer:!1,cosCounter:1,isCompact:!1,autoScroll:!1,useUniform:!!$.fn.uniform,dimZeroMatches:parseInt($('#af_dim_zero_matches').val()),hideZeroMatches:parseInt($('#af_hide_zero_matches').val()),showCounters:parseInt($('#af_count_data').val()),includeGroup:parseInt($('#af_include_group').val()),dynamicParams:{f:parseInt($('#af_url_filters').val()),s:parseInt($('#af_url_sorting').val()),p:parseInt($('#af_url_page').val()),},nbItems:{current:$('#af_nb_items').val(),orig:$('#af_npp').val(),},isHorizontal:$('#af_layout').val()=='horizontal',productItemSelector:'.'+af_classes['js-product-miniature'],noItemsClass:'no-available-items',popstateURL:af.removeHash(window.location.href),reqNum:0,doAfterAjaxOnce:[],$w:$(window),$listWrapper:$('.af_pl_wrapper'),$filterBlock:$('#amazzing_filter'),$selectedFilters:$('.selectedFilters'),$pageInput:$('#af_page'),$viewBtn:$('.viewFilteredProducts'),$dynamicContainer:$('#products').first(),});if(!af.$dynamicContainer.length){af.$dynamicContainer=$('#content').length?$('#content'):$('#main')}},documentReady:function(){af.defineVariables();customThemeActions.documentReady();af.setWrapper();af.bindEvents();af.emit('documentReady');af.toggleCompactView();af.cutOff.prepare();af.adjustFolderedStructure();af.prepareLoadMoreIfRequired();af.updateSelectedFilters();af.updURLrequired=af.updURLrequired||(!af.dynamicParams.p&&af.$pageInput.val()>1);if(af.updURLrequired&&af.$listWrapper.length){af.updateURL(af.prepareUrlAndVerifyParams())}},prepareLoadMoreIfRequired:function(){if(load_more&&af.$listWrapper.length){$('.dynamic-product-count').html(af_product_count_text);$('.dynamic-loading.next').removeClass('hidden').insertAfter(af.$listWrapper);$('.dynamic-loading.prev').removeClass('hidden').insertBefore(af.$listWrapper);if(!show_load_more_btn){$('.loadMore.next').addClass('hidden')} 1037$('.loadMore').on('click',function(){var $parent=$(this).closest('.dynamic-loading'),p=parseInt(af.$pageInput.val());if($parent.hasClass('next')){p++}else{$(this).data('p',$(this).data('p')-1);if($(this).data('p')<2){af.doAfterAjaxOnce.push(function(){$parent.addClass('hidden')})}} 1038$parent.addClass('loading');af.$pageInput.val(p).change()});af.rememberScrollPosition();if($('#af_p_type').val()==3){af.infScroll.init()}}},rememberScrollPosition:function(){$(document).on('click',af.productItemSelector,function(e){var possibleLink=$(e.target).closest('a').attr('href');if(possibleLink&&!possibleLink.startsWith('#')){af.$lastClickedItem=$(this);clearTimeout(af.lastClickedItemTimer);af.lastClickedItemTimer=setTimeout(function(){delete af.$lastClickedItem},3000)}});af.$w.on('unload',function(){if(af.$lastClickedItem){var $currentItems=af.$listWrapper.find(af.productItemSelector),prevNum=$currentItems.index(af.$lastClickedItem),nbItems=parseInt(af.nbItems.current),scrolledPage=Math.floor(prevNum/nbItems),initialPage=$('.loadMore.prev').data('p')||1,elIndexInPage=prevNum-(scrolledPage*nbItems),rememberPage=scrolledPage+initialPage,scrollC
1038ompensation=(af.$w.height()-af.$lastClickedItem.height())/2,requiredScrollPosition=$currentItems.eq(elIndexInPage).offset().top-scrollCompensation;af.dynamicParams.p=1;af.$pageInput.val(rememberPage);af.updateURL(af.prepareUrlAndVerifyParams());window.scrollTo(0,requiredScrollPosition)}})},bindEvents:function(){Object.keys(af.events).forEach(function(type){Object.keys(af.events[type]).forEach(function(event){af.events[type][event]()})})},events:{filter:{general:function(){$('.af-form').on('click','a[href="#"]',function(e){e.preventDefault()}).on('change','input, select',function(){if($(this).data('notrigger')){return} 1039var trigger=$(this).attr('id'),type=$(this).attr('type')||$(this).prop('tagName').toLowerCase(),$parent=$(this).closest('.af_filter'),isHiddenInput=$(this).parent().hasClass('hidden_inputs'),updateList=!af.$viewBtn.data('active')||isHiddenInput;if(type=='checkbox'||type=='radio'){if(type=='radio'){$parent.find('li.active').removeClass('active')} 1040$(this).closest('li').toggleClass('active',$(this).prop('checked'))}else if(type=='select'&&!$(this).closest('.selector-with-customer-filter').hasClass('hidden')&&$(this).find('option[value="'+$(this).val()+'"]').hasClass('customer-filter')){$(this).closest('.af_filter').find('.customer-filter-label').click();return} 1041if(trigger!='af_page'){af.$pageInput.val(1)} 1042if(!af.blockAjax){if(af.$viewBtn.data('active')&&!isHiddenInput){af.$viewBtn.addClass('loading').data('animate-after-loading',1)} 1043af.applyFilters(trigger,updateList)}});af.moreFilters.init()},selectedFilters:function(){af.$selectedFilters.on('click','a',function(e){e.preventDefault();var $parentRow=$(this).parent(),$groupBlock=$('.af_filter[data-url="'+$parentRow.data('group')+'"]');if($(this).hasClass('close')){if($groupBlock.hasClass('type-1')||$groupBlock.hasClass('type-2')){var $input=$groupBlock.find('input[data-url="'+$parentRow.data('url')+'"]');$input.prop('checked',!1).change();if(af.useUniform){$input.parent().removeClass('checked')}}else if($groupBlock.hasClass('type-3')){$groupBlock.find('select').val('').change()}else if($groupBlock.hasClass('has-slider')){af.slider.resetValues(af.slider.$[$groupBlock.find('.af-slider').data('type')])}}else if($(this).hasClass('all')){af.blockAjax=!0;af.$selectedFilters.find('.cf').find('a').not(unlocked_selector).click();af.blockAjax=!1;if(af.$viewBtn.data('active')){af.$viewBtn.addClass('loading').data('animate-after-loading',1)} 1044af.applyFilters('clear_all',!af.$viewBtn.data('active'))}})},dim:function(){if(af.dimZeroMatches&&!af.hideZeroMatches){af.$filterBlock.on('click','input.af.checkbox, input.af.radio',function(e){if($(this).prop('checked')&&$(this).closest('li').hasClass('no-matches')){e.preventDefault();$(this).prop('checked',!1);if(af.useUniform){$(this).parent().removeClass('checked').parent().removeClass('focus');if($(this).hasClass('radio')){var $parentBlock=$(this).closest('.af_filter'),url=$('.cf[data-group="'+$parentBlock.data('url')+'"]').data('url');$parentBlock.find('input[data-url="'+url+'"]').parent().addClass('checked').parent().addClass('focus')}}}})}},viewBtn:function(){af.$viewBtn.on('click',function(e){e.preventDefault();if(!$(this).hasClass('loading')){$(this).addClass('loading');af.applyFilters('view_products',!0);if(af.isCompact){$('.af-compact-overlay').click()}}})},foldered:function(){$('.af-toggle-child').on('click',function(){$(this).closest('.af-parent-category').toggleClass('open')})},toggleableContent:function(){af.$filterBlock.on('click','.af_subtitle.toggle-content',function(e){e.preventDefault();var $filter=$(this).closest('.af_filter');if(!$filter.hasClass(af.noItemsClass)){$filter.toggleClass('closed');if(!$filter.hasClass('closed')){if($filter.hasClass('type-3')&&af.useUniform){$filter.find('.af-select').uniform()} 1045if(af.isCompact){$filter.siblings('.af_filter').addClass('closed')}else if(af.isHorizontal){af.autoCloseFilterContent($filter)}}} 1046af.cutOff.prepare($filter)})},quickSearch:function(){af.$filterBlock.on('keyup','.qsInput',function(){var $qsInput=$(this);clearTimeout(af.qsTimer);af.qsTimer=setTimeout(function(){var value=$qsInput.val().toLowerCase(),$options=$qsInput.closest('.af_filter_content').find('li');$options.removeClass('qs-hidden');if(value.length){$options.each(function(){if($(this).children('label').children('.name').text().toLowerCase().indexOf(value)===-1){$(this).addClass('qs-hidden')}})} 1047$qsInput.toggleClass('has-value',value.length>0).siblings('.qs-no-matches').toggleClass('hidden',!!$options.not('.qs-hidden, .no-matches').length);if($qsInput.data('tree')){$options.removeClass('qs-half-hidden').filter('.af-parent-category.qs-hidden').each(function(){if($(this).find('li').not('.qs-hidden').length){$(this).addClass('qs-half-hidden open')}})} 1048af.cutOff.prepare($qsInput.closest('.af_filter'))},200)})},},theme:{nbItems:function(){$(document).off('change','select[name="n"]').on('change','select[name="n"]',function(){af.nbItems.current=$(this).val();$('#af_nb_items').val(af.nbItems.current).change()}).on('submit','.showall',function(e){e.preventDefault();var num=$(this).find('input[name="n"]').val(),$nSelect=$('select[name="n"]');if(!$nSelect.find('option[value="'+num+'"]').length){var maxNum=$nSelect.find('option').last().val();if(parseInt(maxNum)>=parseInt(num)){num=maxNum}else{var newOptionHTML='<option value="'+num+'">
1048'+num+'</option>';$nSelect.append(newOptionHTML);if(af.useUniform){$nSelect.uniform()}}} 1049$nSelect.val(num).change()})},sorting:function(){$('body').off('click','.js-search-link').on('click','.select-list.js-search-link',function(e){e.preventDefault();$(this).addClass('current').siblings().removeClass('current');var value=$(this).attr('href').split('order=')[1].split('&')[0].split('.');orderBy=value[1],orderWay=value[2],sortingName=$(this).text(),$title=$(this).closest('.products-sort-order').find('.select-title'),$htmlElementsInTitle=$title.children();af.applySorting(orderBy,orderWay);$title.html(sortingName).append($htmlElementsInTitle)})},pagination:function(){$(document).on('click','.'+pagination_class+' a',function(e){e.preventDefault();var page=1;if($(this).attr('href').indexOf('?')>-1){var params=af.unserialize($(this).attr('href').split('?')[1],!1);if(af_param_names.p in params&¶ms[af_param_names.p]>1){page=params[af_param_names.p]}} 1050af.$pageInput.val(page).change()})},},browser:{popstate:function(){af.$w.on('popstate',function(){if(af.removeHash(window.location.href)!=af.popstateURL){af.updateFiltersBasingOnURL(window.location.href)}})},resize:function(){af.$w.on('resize',function(){clearTimeout(af.resizeTimer);af.resizeTimer=setTimeout(function(){af.toggleCompactView()},100)})},},},autoCloseFilterContent:function($filter){$filter.off('mouseenter mouseleave').on('mouseenter',function(){clearTimeout(af.mouseLeaveTimer)}).on('mouseleave',function(){af.mouseLeaveTimer=setTimeout(function(){if(!$filter.hasClass('closed')&&!$filter.find('input[type="text"]:focus').length){$filter.find('.af_subtitle.toggle-content').click()} 1051$filter.off('mouseenter mouseleave')},1000)});af.onClickOutSide($filter.find('.af_filter_content'),function(){$filter.addClass('closed')})},onClickOutSide:function($el,action){setTimeout(function(){let clickEvent='click.outside'+(af.cosCounter++);$(document).on(clickEvent,function(e){if(!$el.is(e.target)&&$el.has(e.target).length===0){action();$(document).off(clickEvent)}})},0)},applySorting:function(orderBy,orderWay){$('#af_orderBy').val(orderBy);$('#af_orderWay').val(orderWay).change()},toggleSidePanel:function(){let $body=$('body');if(!$body.hasClass('show-filter')){$body.data('scroll',af.$w.scrollTop())} 1052$body.toggleClass('show-filter');if($body.hasClass('show-filter')){$body.css('top','-'+$body.data('scroll')+'px')}else{$body.css('top','');window.scrollTo({top:$body.data('scroll'),left:0,behavior:'instant'})}},prepareCompactView:function(){if($('.af-compact-overlay').hasClass('ready')){return} 1053$('.compact-toggle, .af-compact-overlay').on('click',function(e){e.preventDefault();af.toggleSidePanel()}).addClass('ready');if('ontouchstart' in document.documentElement){var swipeThreshold=150,xStart=0,xEnd=0,compactLeft=af.$filterBlock.hasClass('compact-offset-left');af.$filterBlock.on('touchstart',function(e){xStart=e.originalEvent.touches[0].clientX;xEnd=xStart}).on('touchmove',function(e){xEnd=e.originalEvent.touches[0].clientX}).on('touchend',function(e){var diff=compactLeft?xStart-xEnd:xEnd-xStart;if(diff>swipeThreshold&&!$(e.target).closest('.af_filter').not('.closed').hasClass('has-slider')){$('body').removeClass('show-filter')}})}},toggleCompactView:function(){var isCompactBefore=af.isCompact;af.isCompact=af.$filterBlock.css('position')=='fixed';af.autoScroll=af.isCompact?1:parseInt($('#af_autoscroll').val());if(isCompactBefore!=af.isCompact){$('body').toggleClass('has-compact-filter',af.isCompact);var $afBlocks=af.$filterBlock.find('.af_filter'),$btnHolder=af.$filterBlock.find('.btn-holder');if(af.isCompact){af.prepareCompactView();$afBlocks.filter('.closed').addClass('cl-orig');$afBlocks.filter('.foldered').addClass('fd-orig');$afBlocks.addClass('closed').filter('.folderable').addClass('foldered');$afBlocks.not('.no-available-items').first().removeClass('closed');af.$filterBlock.removeClass('horizontal-layout').before('<span class="af-orig hidden"></span>').appendTo('body');$('.af-compact-overlay').appendTo('body');$btnHolder.appendTo(af.$filterBlock);setTimeout(function(){af.$filterBlock.addClass('animation-ready');if(typeof accordion=='function'){af.$filterBlock.find('.block_content').stop().attr('style','')}},500);af.moreFilters.cancel()}else{af.$filterBlock.removeClass('animation-ready').toggleClass('horizontal-layout',af.isH
1053orizontal);$('.af-orig').before(af.$filterBlock).before($('.af-compact-overlay')).remove();$btnHolder.insertAfter('#af_form');$afBlocks.each(function(){$(this).toggleClass('closed',$(this).hasClass('cl-orig')).toggleClass('foldered',$(this).hasClass('fd-orig'))});af.moreFilters.update()} 1054af.cutOff.prepare($afBlocks);af.emit('toggleCompactView')} 1055af.updateSFPositionIfRequired();af.toggleViewBtn()},toggleViewBtn:function(){var showBtn=$('#af_reload_action').val()==2||af.isCompact;af.$viewBtn.toggleClass('hidden',!showBtn).data('active',showBtn).parent().toggleClass('hidden',!showBtn&&!$('.manage-permanent-filters').length)},setWrapper:function(){if(!af.$listWrapper.length){$(af_product_list_selector).first().wrap('<div class="af_pl_wrapper clearfix"></div>');af.$listWrapper=$('.af_pl_wrapper')}},updateSFPositionIfRequired:function(){if($('#af_sf_position').val()==1){if(!af.isCompact){var $before=af_is_modern?$('#products').first():$('.content_sortPagiBar').first();af.$selectedFilters.addClass('inline af').insertBefore($before)}else{af.$selectedFilters.removeClass('inline af').insertBefore('#af_form')}}else if(af.isHorizontal){af.$selectedFilters.toggleClass('inline af',!af.isCompact)}},applyFilters:function(trigger,updateList){if(af.$listWrapper.length&&(updateList||af.$viewBtn.data('active'))){af.updateSelectedFilters()} 1056af.loadProducts(trigger,updateList)},prepareParamsForAjaxRequest:function(trigger,updateList){if(updateList&&!$('.dynamic-loading').hasClass('loading')){af.$listWrapper.stop().animate({'opacity':0.3},350)} 1057$('.af-select').each(function(){if(!$(this).val()){if(!$(this).hasClass('no-submit')){$(this).addClass('no-submit').data('inputname',$(this).attr('name')).attr('name','no_submit')}}else if($(this).hasClass('no-submit')){$(this).removeClass('no-submit').attr('name',$(this).data('inputname'))} 1058if(af.dimZeroMatches){$(this).find('.no-matches:selected:disabled').prop('disabled',!1)}});var params=$('.af-form').serialize();if(!updateList){params+='&nb_items=0'}else if(!af.$listWrapper.length){if(!af_is_modern&&page_name!='index'){af.updateSelectedFilters();af.updateURL(af.prepareUrlAndVerifyParams());window.location.reload();return} 1059params+='&layout_required=1';af.$dynamicContainer.animate({'opacity':0.3},350)} 1060if(load_more){var $prevLoader=$('.dynamic-loading.prev');if(trigger=='af_page'){if(!$prevLoader.length){params+='&page_from=1'}else if($prevLoader.hasClass('loading')){params+='&page='+$('.loadMore.prev').data('p')+'&page_to='+af.$pageInput.val()}else{params+='&page_from='+$('.loadMore.prev').data('p')}}else{$prevLoader.remove()}} 1061return params},loadProducts:function(trigger,updateList){if(af.blockAjax){return} 1062var params=af.prepareParamsForAjaxRequest(trigger,updateList);requestIdentifier=++af.reqNum;af.newURL=af.prepareUrlAndVerifyParams();$.ajax({type:'POST',url:af_ajax.path,dataType:'json',data:{action:'getFilteredProducts',params:params,current_url:af.newURL,trigger:trigger,token:af_ajax.token,},success:function(r){if(requestIdentifier!=af.reqNum){return} 1063af.updateContent(r,trigger,updateList);af.updateURL(af.newURL);if(af.doAfterAjaxOnce.length>0){af.doAfterAjaxOnce.forEach(function(f){f()});af.doAfterAjaxOnce=[]} 1064fixedFiltersPLP()},error:function(r){console.warn($(r.responseText).text()||r.responseText)}})},updateContent:function(jsonData,trigger,updateList){if(updateList){if('layout' in jsonData){af.updateListLayout(jsonData.layout);af.newURL=af.prepareUrlAndVerifyParams()} 1065af.updateProductList(jsonData,trigger);if(af.autoScroll&&(!load_more||trigger!='af_page')){af.autoscrollToTopOfTheList()}} 1066if(trigger!='af_page'){$('.af-total-count').html(parseInt(jsonData.products_num));af.updateFilteringBlocks(jsonData)} 1067if(af.$viewBtn.data('active')){af.$viewBtn.removeClass('loading');if(af.$viewBtn.data('animate-after-loading')){af.$viewBtn.addClass('btn-pulsate').data('animate-after-loading',0);setTimeout(function(){af.$viewBtn.removeClass('btn-pulsate')},300)}}},updateProductList:function(jsonData,trigger){if(load_more&&trigger=='af_page'){var $result=$('<div>'+jsonData.product_list_html+'</div>'),$items=$result.find(af.productItemSelector);if($('.dynamic-loading.prev').hasClass('loading')){af.$listWrapper.find(af.productItemSelector).first().before($items)}else{af.$listWrapper.find(af.productItemSelector).last().after($items)} 1068$('.dynamic-loading.loading').removeClass('loading').find('.loadMore').trigger('blur');if(af_is_modern&&!$('#js-product-list-top').html()){$('#js-product-list-top').replaceWith(jsonData.product_list_top_html)}}else{af.$listWrapper.html(jsonData.product_list_html);if(af_is_modern){$('#js-product-list-top').replaceWith(jsonData.product_list_top_html);$('#js-product-list-bottom').replaceWith(jsonData.product_list_bottom_html)}else{$('.'+af_classes['product-count']).remove();$('#'+pagination_holder_id).replaceWith(jsonData.pagination_html);$('#'+pagination_bottom_holder_id).replaceWith(jsonData.pagination_bottom_html)}} 1069if(load_more){var $countContainer=af_is_modern?$('.dynamic-product-count'):$('.'+af_classes['product-count']);$countContainer.html(jsonData.product_count_text);$('.loadMore.next').toggleClass('hidden',jsonData.hide_load_more_btn)} 1070var animationTime=af_is_modern?500:1000;af.$listWrapper.animate({'opacity':1},animationTime);af.updateListAfter(jsonData)},updateListAfter:function(jsonData){if(typeof display=='function'&&$.totalStorage&&$.totalStorage('display')&&$.totalStorage('display')!='grid'){display($.totalStorage('display'))} 1071customThemeActions.updateContentAfter(jsonData);if(typeof updateContentAfter=='function')updateContentAfter(jsonData);af.$filterBlock.trigger('updateProductList',jsonData)},updateFilteringBlocks:function(jsonData){if($.isEmptyObject(jsonData.count_data)){return} 1072$('.af_filter').each(function(){let key=$(this).data('key'),sortByMatches=$(this).hasClass('sort-by-matches')&&!$(this).hasClass('has-selection');if($.inArray($(this).data('type'),[1,2,5])>-1){$(this).find('input.af').each(function(){var count=jsonData.count_data[key][$(this).val()]||0,$li=$(this).closest('li');if(count){$li.removeClass('no-matches')}else if(!$li.hasClass('no-matches')){$li.addClass('no-matches')} 1073if(af.showCounters){$li.find('.count').first().html(count)};if(sortByMatches){$li.data('count',count);if(!$li.next().length){af.sortByMatches($li.parent(),'li')}}});af.checkAvailableItems($(this),!1)}else if($(this).data('type')==3){var $select=$(this).find('.af-select'),currentValue=$select.val(),html='';$(this).find('.dynamic-select-options').children().each(function(){var data=$(this).data(),count=jsonData.count_data[key][data.value]||
10730;if(count||data.value==currentValue||$(this).hasClass('customer-filter')||!af.hideZeroMatches){html+='<option id="'+data.id+'" value="'+data.value+'"';html+=' class="'+$(this).attr('class')+(count?'':' no-matches')+'"';html+=' data-url="'+data.url+'" data-text="'+data.text+'"';if(sortByMatches){html+=' data-count="'+count+'"'} 1074html+=(af.dimZeroMatches&&!count?' disabled':'')+'>';html+=data.prefix+data.text+(af.showCounters?' ('+count+')':'')+'</option>'}});$select.children().first().nextAll().remove();if(html){$select.append(html).val(currentValue);if(sortByMatches){af.sortByMatches($select,'option:not(.first)')} 1075if(af.useUniform){$select.uniform()}} 1076af.checkAvailableItems($(this),!0)}});af.cutOff.prepare();if(!af.isCompact){af.moreFilters.update()} 1077af.adjustFolderedStructure();if(jsonData.dynamic_min_max&&af.slider){$.each(jsonData.dynamic_min_max,function(key,data){if('min' in data&&'max' in data&&af.slider.$[key]){af.slider.updMinMax(af.slider.$[key],data.min,data.max);$('.af_filter.'+key).toggleClass(af.noItemsClass,data.max==0)}})}},sortByMatches:function($parent,itemSelector){$parent.children(itemSelector).sort(function(a,b){return $(b).data('count')-$(
1077a).data('count')}).appendTo($parent)},prepareUrlAndVerifyParams:function(baseURL){var url=baseURL||af.getStaticURL(),dynamicParams=af.prepareDynamicParams();if(!$.isEmptyObject(dynamicParams)){url+=(url.indexOf('?')>-1?'&':'?')+decodeURIComponent($.param(dynamicParams,!0))} 1078return url},updateURL:function(url){if(url&&url!=window.location.href){window.history.pushState(null,null,url);af.popstateURL=url}},getStaticURL:function(){if(!af.staticURL){var splittedUrl=decodeURIComponent(window.location.href).split('?');af.staticURL=af.removeHash(splittedUrl[0]);if(splittedUrl.length==2){var staticParams=af.unserialize(splittedUrl[1],!0);if(!$.isEmptyObject(staticParams)){af.staticURL+='?'+decodeURIComponent($.param(staticParams,!0))}}} 1079return af.staticURL},prepareDynamicParams:function(){var dynamicParams={},page=af.$pageInput.val();if(af.dynamicParams.f){af.$selectedFilters.find('.cf').add('.sp-dynamic-params').each(function(){if(!$(this).find(unlocked_selector).length){var n=$(this).data('group'),v=$(this).data('url');if(n&&v){if(n in dynamicParams){dynamicParams[n]+=','+v}else{dynamicParams[n]=v}}}})} 1080if(af.dynamicParams.p&&page>1){dynamicParams[af_param_names.p]=page} 1081if(af.dynamicParams.s){var order={by:$('#af_orderBy').val(),way:$('#af_orderWay').val()};if(order.by+'.'+order.way!=$('#af_default_sorting').val()){if(af_is_modern){dynamicParams.order='product.'+order.by+'.'+order.way}else{dynamicParams.orderby=order.by 1082dynamicParams.orderway=order.way}}} 1083if(af.nbItems.current!=af.nbItems.orig){dynamicParams[af_param_names.n]=af.nbItems.current} 1084af.emit('prepareDynamicParams',dynamicParams);return dynamicParams},autoscrollToTopOfTheList:function(){if(af.$listWrapper.length){var wrapperTop=af.$listWrapper.offset().top;if(af.isCompact||!af.isInViewPort(wrapperTop,wrapperTop)){$('html, body').animate({scrollTop:wrapperTop-240},100)}}},isInViewPort:function(top,bottom){var scrollTop=af.$w.scrollTop(),windowHeight=af.$w.height();return(scrollTop+windowHeight)>top&&scrollTop<bottom},checkAvailableItems:function($block,isSelect){if(af.dimZeroMatches||af.hideZeroMatches){var noItems=!isSelect?$block.find('li').not('.no-matches:not(.active)').length<1:$block.find('option').not('.no-matches:not(:selected), .first').length<1;$block.toggleClass(af.noItemsClass,noItems)}},cutOff:{prepare:function($blocks){$blocks=$blocks?$blocks:$('.af_filter');$blocks.not('.closed').find('.toggle-cut-off').each(function(){var $filter=$(this).closest('.af_filter');af.cutOff.apply($filter,$(this).data('cut'));if(!$(this).data('click-ready')){$(this).on('click',function(e){e.preventDefault();$filter.toggleClass('cut-off')}).data('click-ready',1)}})},apply:function($filter,aboveCut){if(!$filter.hasClass('cut-off')){return} 1085let except='.qs-hidden'+(af.hideZeroMatches?', .no-matches':'');$filter.find('ul').first().children('li').not(except).each(function(){if(--aboveCut>=0){$(this).removeClass('cut')}else if(!$(this).hasClass('cut')){$(this).addClass('cut')}});$filter.toggleClass('expandable',aboveCut<0)},cancel:function($filter){$filter.find('.cut').removeClass('cut')},},moreFilters:{init:function(){af.moreFilters.$btn=af.$filterBlock.find('.toggleMoreFilters').on('click',function(){$('.af-form').toggleClass('show-more-f')})},update:function(){if(af.moreFilters.$btn.length){let $blocks=af.$filterBlock.find('.af_filter');if(af.hideZeroMatches){$blocks=$blocks.not('.no-available-items')} 1086$blocks.each(function(i){if(i<af.moreFilters.$btn.data('num')){$(this).removeClass('more-f')}else if(!$(this).hasClass('more-f')){$(this).addClass('more-f')}});af.moreFilters.$btn.parent().toggleClass('hidden',!$blocks.filter('.more-f').length)}},cancel:function(){af.$filterBlock.find('.af_filter').removeClass('more-f');af.moreFilters.$btn.parent().addClass('hidden')}},adjustFolderedStructure:function(){$('.af_filter.foldered').find('.af-parent-category').each(function(){var $children=$(this).children('ul').find('li'),childrenWithMatches=$children.not('.no-matches').length,checkedChildren=$children.filter('.active').length;if(af.hideZeroMatches){$(this).children('label').find('.af-toggle-child').toggleClass('hidden',!childrenWithMatches&&!checkedChildren)} 1087if(checkedChildren||(childrenWithMatches&&$(this).hasClass('no-matches'))){$(this).addClass('open');if(af.hideZeroMatches||af.dimZeroMatches){$(this).removeClass('no-matches')}}})},updateListLayout:function(layout_html){if($.contains(af.$dynamicContainer[0],af.$filterBlock[0])){af.$filterBlock.insertBefore(af.$dynamicContainer);$('.af.dynamic-loading').insertAfter(af.$filterBlock)} 1088af.$dynamicContainer.html(layout_html).animate({'opacity':1},350);af.setWrapper();af.updateSFPositionIfRequired();af.updateSelectedFilters();af.prepareLoadMoreIfRequired()},updateSelectedFilters:function(){var html='';$('.af_filter').each(function(){var groupURL=$(this).data('url'),groupText=af.includeGroup&&!$(this).hasClass('special')?$(this).find('.af_subtitle').text()+': ':'';iClass=af_classes['u-times']+' close',hasSelection=$(this).find('.customer-filter-label').not('.unlocked').length>0;if($(this).hasClass('has-slider')){var $bar=af.slider.$[$(this).find('.af-slider').data('type')];if($bar.values.from>$bar.values.min||$bar.values.to<$bar.values.max){var rangeURL=$bar.$inputs.from.val()+'-'+$bar.$inputs.to.val(),prefix=$(this).find('.prefix').first().text(),suffix=$(this).find('.suffix').first().text(),text=groupText+prefix+$bar.$displayValues.from.text()+' - '+$bar.$displayValues.to.text()+suffix;
1088html+=af.renderSelectedOption(rangeURL,groupURL,text,'slider-option',iClass);hasSelection=!0}}else{$(this).find('input, option:not(.first, .customer-filter)').filter(':checked, :selected').each(function(){var text=groupText+($(this).data('text')||$(this).closest('label').find('.name').text());html+=af.renderSelectedOption($(this).data('url'),groupURL,text,'',iClass);hasSelection=!0})} 1089$(this).toggleClass('has-selection',hasSelection)});af.$selectedFilters.find('.cf').remove();af.$selectedFilters.append(html).toggleClass('hidden',!html)},renderSelectedOption:function(url,group,text,divClass,iClass){return'<div class="cf '+divClass+'" data-url="'+url+'" data-group="'+group+'">'+text+' <a href="#" class="'+iClass+'"></a></div>'},infScroll:{threshold:[70,700],init:function(){this.$dl=$('.dynamic-loading.next');this.$btn=$('.loadMore.next');this.bind()},bind:function(){this.viewPortTop=af.$w.scrollTop();af.$w.on('scroll.afis',function(){clearTimeout(af.infScroll.timer);af.infScroll.timer=setTimeout(function(){if(af.infScroll.isScrollingDown()&&!af.infScroll.$dl.hasClass('loading')&&!af.infScroll.$btn.hasClass('hidden')){let offset=parseInt(af.infScroll.$dl.offset().top);thresholdOffset={top:af.infScroll.viewPortTop+af.infScroll.threshold[0],bottom:af.infScroll.viewPortTop+af.$w.height()+af.infScroll.threshold[1],};if(offset<thresholdOffset.bottom){offset>thresholdOffset.top?af.infScroll.$btn.click():af.infScroll.unbind(!0)}}},50)})},unbind:function(showBtnOnce){af.$w.off('scroll.afis');if(showBtnOnce){this.$dl.removeClass('infinite-scroll');af.doAfterAjaxOnce.push(function(){af.infScroll.$dl.addClass('infinite-scroll');af.infScroll.bind()})}},isScrollingDown:function(){let prevTop=this.viewPortTop;this.viewPortTop=af.$w.scrollTop();return this.viewPortTop>prevTop},},unserialize:function(params,excludeDynamicParams){params=params.split('&');var result={},dynamicParams={order:0,orderby:0,orderway:0};dynamicParams[af_param_names.p]=0;dynamicParams[af_param_names.n]=0;for(var i in params){if(params.hasOwnProperty(i)){var splitted=params[i].split('='),name=splitted[0];if(splitted.length==2&&(!excludeDynamicParams||!$('.af_filter[data-url="'+name+'"]').length&&!(name in dynamicParams))){result[name]=splitted[1]}}} 1090return result},updateFiltersBasingOnURL:function(url){window.location.reload()},removeHash:function(url){return url.split('#')[0]},externalEvents:{},emit:function(key,arg){if(af.externalEvents[key]){af.externalEvents[key].forEach(function(callback){callback(arg)})}},on:function(key,callback){af.externalEvents[key]=af.externalEvents[key]||[];af.externalEvents[key].push(callback)},};$(document).ready(function(){af.documentReady()});/** 1091* @author Amazzing 1092* @copyright Amazzing 1093* @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 1094*/ 1095$.extend(af,{slider:{$:{},precision:1000000,prepareAll:function(){this.defineNumberSeparators();$('.af-slider').each(function(){af.slider.init($(this).find('.slider-bar'),$(this).data('type'))}).find('.slider_value').on('click',function(){if(!$(this).hasClass('edit')){var mw=$(this).width()+'px',mh=$(this).height()+'px';$(this).addClass('edit').find('.input-text').css({'max-width':mw,'max-height':mh}).focus()}}).find('.input-text').on('focusin',function(){$(this).data('val',$(this).val()).val('')}).on('focusout',function(){$(this).css({'max-width':'','max-height':''}).closest('.slider_value').removeClass('edit');if($(this).val()==''){$(this).val($(this).data('val'))}}).on('change',function(){$(this).val(parseFloat($(this).val())||0).focusout();af.slider.setValues(af.slider.$[$(this).closest('.af-slider').data('type')])}).on('keydown',function(e){var code=e.keyCode;if($.inArray(code,[46,8,9,27,13,35,36,37,39])!==-1){return} 1096if((e.shiftKey||((code<48||code>57)&&code!=190))&&(code<96||code>105)&&code!=110){e.preventDefault()}})},init:function($bar,type){$bar.html(this.renderLayout());$.extend($bar,{step:af.slider.reduceDecimals($bar.data('step')),stepDecimals:af.slider.getDecimalsNum($bar.data('step')),values:{},$selectedBar:$bar.find('.selected-bar'),$inputs:{min:$('#'+type+'_min'),max:$('#'+type+'_max'),from:$('#'+type+'_from'),to:$('#'+type+'_to'),},$displayValues:{from:$('.'+type+'_slider .from_display span.value'),to:$('.'+type+'_slider .to_display span.value'),}});this.preparePointers($bar);this.setValues($bar);this.attachAdditionalEvents($bar);this.$[type]=$bar},preparePointers:function($bar){$bar.$pointers={from:$bar.find('.pointer.from').data('key','from').data('prc',0),to:$bar.find('.pointer.to').data('key','to').data('prc',100),};$bar.pointerHalfWidth=$bar.$pointers.from.width()/2;$.each($bar.$pointers,function(i,$pointer){$pointer.on('mousedown touchstart',function(e){if(e.type==='mousedown'&&e.which!==1){return} 1097e.stopPropagation();e.preventDefault();$bar.find('.pointer').removeClass('focused last-active');$pointer=$(e.target).addClass('focused last-active');$bar.offsetLeftPx=$bar.offset().left+$bar.pointerHalfWidth;$bar.widthPx=$bar.width();$(document).on('mousemove.afslider touchmove.afslider',function(e){if(e.originalEvent.touches&&e.originalEvent.touches.length){e=e.originalEvent.touches[0]}else if(e.originalEvent.changedTouches&&e.originalEvent.changedTouches.length){e=e.originalEvent.changedTouches[0]}
1098var percentage=af.slider.valueToPrc(e.clientX,$bar.offsetLeftPx,$bar.widthPx);af.slider.setPointerPosition($pointer,$bar,percentage,!0,!1)}).on('mouseup.afslider touchend.afslider touchcancel.afslider',function(e){$(document).off('.afslider');af.slider.triggerChage($bar);$bar.find('.pointer').removeClass('focused')})})})},triggerChage:function($bar){$bar.$inputs.max.change()},setValues:function($bar){$.each($bar.$inputs,function(name,$el){$bar.values[name]=af.slider.swapToStep(af.slider.reduceDecimals($el.val()),$bar.step,name)});$bar.interval=$bar.values.max-$bar.values.min;var prc={from:0,to:100};if(!$bar.interval){$bar.addClass('blocked').data('custom-step',0)}else{$bar.removeClass('blocked').data('custom-step',1);prc.from=af.slider.valueToPrc($bar.values.from,$bar.values.min,$bar.interval);prc.to=af.slider.valueToPrc($bar.values.to,$bar.values.min,$bar.interval)} 1099af.slider.setPointerPosition($bar.$pointers.from,$bar,prc.from,!1,!1);af.slider.setPointerPosition($bar.$pointers.to,$bar,prc.to,!1,!1)},resetValues:function($bar){$bar.$inputs.from.val($bar.$inputs.min.val());$bar.$inputs.to.val($bar.$inputs.max.val()).change()},updMinMax:function($bar,min,max){$bar.$inputs.min.val(min);$bar.$inputs.from.val(min);$bar.$inputs.to.val(max);$bar.$inputs.max.val(max);this.setValues($bar)},setPointerPosition:function($pointer,$bar,percentage,swapToStep,animate){var prc={from:$bar.$pointers.from.data('prc'),to:$bar.$pointers.to.data('prc')},applyStyles=animate?'animate':'css';if($pointer.data('key')=='from'){prc.from=percentage=Math.min(percentage,prc.to)}else{prc.to=percentage=Math.max(percentage,prc.from)} 1100$pointer.data('prc',percentage)[applyStyles]({left:percentage+'%'});$bar.$selectedBar[applyStyles]({left:prc.from+'%',width:(prc.to-prc.from)+'%'});this.updatePointerValue($pointer,$bar,swapToStep)},updatePointerValue:function($pointer,$bar,swapToStep){let value=this.prcToValue($pointer.data('prc'),$bar);if(swapToStep&&$bar.data('custom-step')){value=this.swapToStep(value,$bar.step,$pointer.data('key'))} 1101let realValue=this.round(this.restoreDecimals(value),$bar.stepDecimals,$pointer.data('key')=='to');$bar.values[$pointer.data('key')]=value;$bar.$inputs[$pointer.data('key')].val(realValue);$bar.$displayValues[$pointer.data('key')].text(this.formatNumber(realValue))},swapToStep:function(value,step,key){let stepDiff=value%step;if(stepDiff){value-=stepDiff;if(key=='to'||key=='max'){value+=step}} 1102return value},round:function(value,decimalsNum,up){var method=up?'ceil':'floor';return Math[method](value*Math.pow(10,decimalsNum))/Math.pow(10,decimalsNum)},valueToPrc:function(value,zeroValue,interval){return!interval?100:af.slider.withinRange((value-zeroValue)/interval*100,0,100)},prcToValue:function(percentage,$bar){return $bar.values.min+($bar.interval*percentage/100)},reduceDecimals:function(number){return number*this.precision},restoreDecimals:function(number){return number/this.precision},formatNumber:function(number){if(this.sep.thousand){number=number.toString().split('.');number[0]=number[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.sep.thousand);number=number.join(this.sep.decimal)} 1103return number},defineNumberSeparators:function(){this.sep={thousand:$('#af_tho_sep').val(),decimal:$('#af_dec_sep').val()};if(this.sep.thousand==this.sep.decimal){this.sep.decimal=this.sep.thousand=='.'?',':'.'}},withinRange:function(number,min,max){return Math.min(Math.max(number,min),max)},getDecimalsNum:function(n){var num=0;if(n%1){n=parseFloat(n).toString();if(n.indexOf('.')>-1){num=n.split('.').pop().length}else if(n.indexOf('-')>-1){num=n.split('-').pop()}} 1104return num},attachAdditionalEvents:function($bar){$bar.find('.clickable-dummy').on('click',function(e){var percentage=af.slider.valueToPrc(e.clientX,$bar.offset().left+$bar.pointerHalfWidth,$bar.width()),fromDiff=Math.abs(percentage-$bar.$pointers.from.data('prc')),toDiff=Math.abs(percentage-$bar.$pointers.to.data('prc')),closestPointerKey=fromDiff<toDiff?'from':'to';af.slider.setPointerPosition($bar.$pointers[closestPointerKey],$bar,percentage,!0,!0);af.slider.triggerChage($bar)})},renderLayout:function(){return'<div class="back-bar">\ 1105 <div class="selected-bar"></div>\ 1106 <div class="pointer from"></div>\ 1107 <div class="pointer to"></div>\ 1108 <div class="clickable-dummy"></div>\ 1109 </div>'},},});af.on('documentReady',function(){af.slider.prepareAll()});/** 1110* @author Amazzing 1111* @copyright Amazzing 1112* @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 1113*/ 1114$.extend(customThemeActions,{documentReady:function(){af.productItemSelector='.product'},updateContentAfter:function(jsonData){var maxColorBoxes=5;$('.js-product-miniature').each(function(){var $boxes=$(this).find('.variant-links').find('.color');if($boxes.length>maxColorBoxes){$boxes.eq(maxColorBoxes-1).nextAll('.color').addClass('hidden');$(this).find('.variant-links').find('.js-count').html('+'+($boxes.length-maxColorBoxes))}})},});if(typeof AdvancedEmailGuard!=='undefined'){AdvancedEmailGuard.registerFormSelectors('essenciales_registration','.essenciales-form:not(#technical-documents-form)','button[name="submitEssencialesRegistration"]');
1114AdvancedEmailGuard.registerFormSelectors('technical_documents','#technical-documents-form','button[name="submitTechnicalDocuments"]')} 1115document.addEventListener('DOMContentLoaded',function(){initTechnicalDocumentsForm()});function initTechnicalDocumentsForm(){const form=document.getElementById('technical-documents-form');if(!form)return;const addProductBtn=document.getElementById('add-product');const productsContainer=document.getElementById('products-container');if(addProductBtn){addProductBtn.addEventListener('click',function(){const currentProductCount=productsContainer.querySelectorAll('.product-group').length;const newProductGroup=createProductGroup(currentProductCount);productsContainer.appendChild(newProductGroup);updateRemoveButtons()})} 1116updateRemoveButtons();productsContainer.addEventListener('click',function(e){if(e.target.classList.contains('remove-product')){e.target.closest('.product-group').remove();updateProductNumbers();updateRemoveButtons()}})} 1117function createProductGroup(index){const div=document.createElement('div');div.className='product-group';div.setAttribute('data-index',index);if(index>0){const firstProductGroup=document.querySelector('.product-group');if(firstProductGroup){const clone=firstProductGroup.cloneNode(!0);const header=clone.querySelector('.product-group-header h5');if(header){const prefix=header.textContent.replace(/[0-9]+$/,'').trim();header.textContent=`${prefix} ${index + 1}`} 1118const inputs=clone.querySelectorAll('input');inputs.forEach(input=>{const name=input.getAttribute('name');if(name){const baseName=name.replace('[]','');input.id=`${baseName}_${index}`;input.value='';const label=clone.querySelector(`label[for^="${baseName}"]`);if(label){label.setAttribute('for',input.id)}}});return clone}} 1119div.innerHTML=` 1120 <div class="product-group-header"> 1121 <h5>Producto ${index + 1}</h5> 1122 <button type="button" class="btn btn-sm btn-danger remove-product" style="display: none;"> 1123 Eliminar 1124 </button> 1125 </div> 1126 1127 <div class="row"> 1128 <div class="col-md-12"> 1129 <div class="form-group"> 1130 <label for="productos_${index}">Producto: *</label> 1131 <input type="text" id="productos_${index}" name="productos[]" class="form-control producto-input" required> 1132 </div> 1133 </div> 1134 <div class="col-md-12"> 1135 <div class="form-group"> 1136 <label for="lotes_${index}">Lote:</label> 1137 <input type="text" id="lotes_${index}" name="lotes[]" class="form-control"> 1138 </div> 1139 </div> 1140 <div class="col-md-12"> 1141 <div class="form-group"> 1142 <label for="documentacion_solicitada_${index}">Documentación solicitada: *</label> 1143 <input type="text" id="documentacion_solicitada_${index}" name="documentacion_solicitada[]" class="form-control documentacion-input" required placeholder="Ej: Certificado de Análisis, SDS, Ficha Técnica..."> 1144 </div> 1145 </div> 1146 </div> 1147 `;return div} 1148function updateRemoveButtons(){const productGroups=document.querySelectorAll('.product-group');productGroups.forEach((group,index)=>{const removeBtn=group.querySelector('.remove-product');if(removeBtn){removeBtn.style.display=index>0?'inline-block':'none'}})} 1149function updateProductNumbers(){const productGroups=document.querySelectorAll('.product-group');productGroups.forEach((group,index)=>{const header=group.querySelector('.product-group-header h5');if(header){header.textContent=`Producto ${index + 1}`} 1150const inputs=group.querySelectorAll('input');inputs.forEach(input=>{const name=input.getAttribute('name');if(name){const baseName=name.replace('[]','');input.id=`${baseName}_${index}`;const label=group.querySelector(`label[for^="${baseName}"]`);if(label){label.setAttribute('for',input.id)}}});group.setAttribute('data-index',index)})};$(document).ready(function(){var $searchWidget=$('#search_widget');var $searchBox=$searchWidget.find('input[type=text]');var searchURL=$searchWidget.attr('data-search-controller-url');var $clearButton=$searchWidget.find('i.clear');$.widget('prestashop.psBlockSearchAutocomplete',$.ui.autocomplete,{_renderItem:function(ul,product){var image=(product.cover)?product.cover:prestashop.urls.no_picture_image;var $img=$('<img class="autocomplete-thumbnail" src="'+image.bySize.home_default.url+'">');return $("<li>").append($("<a>").append($img).append($("<span>").html(product.name).addClass("product"))).appendTo(ul)}});var isMobile=function(){return $(window).width()<768};var autocompletePosition=function(){return{my:'right top',at:'right bottom',of:isMobile()?'.header-top':'#search_widget',}}
1150;$searchBox.psBlockSearchAutocomplete({position:autocompletePosition(),source:function(query,response){$.post(searchURL,{s:query.term,resultsPerPage:10},null,'json').then(function(resp){if(!$(".modal.search_results_modal").hasClass("in")){if(!$(".modal.search_results_modal .modal-body .ui-autocomplete.searchbar-autocomplete").length){$(".ui-autocomplete.searchbar-autocomplete").appendTo(".modal.search_results_modal .modal-body")} 1151if($(window).outerWidth()>=992){$(".modal.search_results_modal").modal({"focus":!1})}else{$(".modal.search_results_modal").modal({"backdrop":!1,"focus":!1})}} 1152response(resp.products)}).fail(response)},select:function(event,ui){var url=ui.item.url;window.location.href=url},}).psBlockSearchAutocomplete("widget").addClass('searchbar-autocomplete').appendTo(".modal.search_results_modal .modal-body");soyModalSetEvents();var responsive_trigger=!1;if($(window).outerWidth()<992){responsive_trigger=!0} 1153$(window).resize(function(){$searchBox.psBlockSearchAutocomplete({position:autocompletePosition(),});$searchBox.keyup();if($(window).outerWidth()<992&&!responsive_trigger){responsive_trigger=!0;if($(".modal.search_results_modal").hasClass("in")){$(".modal.search_results_modal").modal("hide")}} 1154if($(window).outerWidth()>=992&&responsive_trigger){responsive_trigger=!1;if($(".modal.search_results_modal").hasClass("in")){$(".modal.search_results_modal").modal("hide")}}});$clearButton.click(function(){$searchBox.val("");$clearButton.hide()});$searchBox.keyup(function(){$clearButton.toggle($searchBox.val()!==""&&isMobile())})});function soyModalSetEvents(){$(document).on('show.bs.modal','.modal.search_results_modal',function(){if($(window).outerWidth()>=992){var search_top=$(".header-top-middle #search_widget").offset().top;var search_left=$(".header-top-middle #search_widget").offset().left;$(".header-top-middle #search_widget").appendTo("#search_widget_modal");$("#search_widget_modal").css({"top":search_top,"left":search_left});$("#search_widget_modal #search_widget input[type=text]").get(0).focus()}});$(document).on('hide.bs.modal','.modal.search_results_modal',function(){if($(window).outerWidth()<992){$("#search_widget_modal #search_widget").appendTo("#_mobile_search_block")}else{$("#search_widget_modal #search_widget").appendTo("#_desktop_search_block")}});$(document).on('hidden.bs.modal','.modal.search_results_modal',function(){$(".modal.search_results_modal").modal("dispose");soyModalSetEvents()})};/** 1155 * 2007-2020 PrestaShop and Contributors 1156 * 1157 * NOTICE OF LICENSE 1158 * 1159 * This source file is subject to the Academic Free License 3.0 (AFL-3.0) 1160 * that is bundled with this package in the file LICENSE.txt. 1161 * It is also available through the world-wide-web at this URL: 1162 * https://opensource.org/licenses/AFL-3.0 1163 * If you did not receive a copy of the license and are unable to 1164 * obtain it through the world-wide-web, please send an email 1165 * to [email protected] so we can send you a copy immediately. 1166 * 1167 * @author PrestaShop SA <[email protected]> 1168 * @copyright 2007-2020 PrestaShop SA and Contributors 1169 * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) 1170 * International Registered Trademark & Property of PrestaShop SA 1171 */ 1172$(document).ready(function(){prestashop.blockcart=prestashop.blockcart||{};var showModal=prestashop.blockcart.showModal||function(modal){var $body=$('body');$body.append(modal);$body.one('click','#blockcart-modal',function(event){if(event.target.id==='blockcart-modal'){$(event.target).remove()}})};prestashop.on('updateCart',function(event){var refreshURL=$('.blockcart').data('refresh-url');var requestData={};if(event&&event.reason&&typeof event.resp!=='undefined'&&!event.resp.hasError){requestData={id_customization:event.reason.idCustomization,id_product_attribute:event.reason.idProductAttribute,id_product:event.reason.idProduct,action:event.reason.linkAction}} 1173if(event&&event.resp&&event.resp.hasError){prestashop.emit('showErrorNextToAddtoCartButton',{errorMessage:event.resp.errors.join('<br/>')})} 1174$.post(refreshURL,requestData).then(function(resp){var html=$('<div />').append($.parseHTML(resp.preview));$('.blockcart').replaceWith($(resp.preview).find('.blockcart'));if(resp.modal){showModal(resp.modal)}}).fail(function(resp){prestashop.emit('handleError',{eventType:'updateShoppingCart',resp:resp})})})});/** 1175 * 2017 IQIT-COMMERCE.COM 1176 * 1177 * NOTICE OF LICENSE 1178 * 1179 * This file is licenced under the Software License Agreement.
1180 * With the purchase or the installation of the software in your application 1181 * you accept the licence agreement 1182 * 1183 * @author IQIT-COMMERCE.COM <[email protected]> 1184 * @copyright 2017 IQIT-COMMERCE.COM 1185 * @license Commercial license (You can not resell or redistribute this software) 1186 * 1187 */ 1188$(document).ready(function(){$iqitFreeDelivery=$('.iqitfreedeliverycount-detach').first();$('#header .cart-prices').append($iqitFreeDelivery.clone());$(document).on('show.bs.modal','#blockcart-modal',function(e){$('#blockcart-modal .cart-content').last().append($iqitFreeDelivery);$iqitFreeDelivery.removeClass('hidden-detach')});prestashop.on('updateCart',function(event){$.ajax({type:'POST',headers:{"cache-control":"no-cache"},url:prestashop.urls.base_url+'modules/iqitfreedeliverycount/iqitfreedeliverycount-ajax.php'+'?rand='+new Date().getTime(),async:!0,cache:!1,data:'recalculate='+iqitfdc_from,success:function(jsonData){if(jsonData==0) 1189$('.iqitfreedeliverycount').addClass('iqitfreedeliverycount-hidden');else{$('.iqitfreedeliverycount').removeClass('iqitfreedeliverycount-hidden');$('.ifdc-remaining-price').text(jsonData)}}})})})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.