/*
 jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license  ************************************************
 jquery.cookies.2.2.0.min.js Cookie Util
************************************************ ************************************************
 E-Store Interface ê´€ë ¨ ê³µí†µ Util
 ì¸í„°íŽ˜ì´ìŠ¤ëª…ì„¸ì„œ(NG_to_Store)_20140226-v.3.0 ì ìš©
************************************************ quick3d.org GEO Cannibalization
 src : /belo4dp5/components/common/cm-g-gnb-201807/clientlibs/devjs/main1.gnb1.smg.global.cookieGeo.js

 @version 1.0.0
 @since 2018.06.26
*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var n=0;return function(){return n<a.length?{done:!1,value:a[n++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,n,k){if(a==Array.prototype||a==Object.prototype)return a;a[n]=k.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<a.length;++n){var k=a[n];if(k&&k.Math==Math)return k}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,n){var k=$jscomp.propertyToPolyfillSymbol[n];if(null==k)return a[n];k=a[k];return void 0!==k?k:a[n]};
$jscomp.polyfill=function(a,n,k,g){n&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,n,k,g):$jscomp.polyfillUnisolated(a,n,k,g))};$jscomp.polyfillUnisolated=function(a,n,k,g){k=$jscomp.global;a=a.split(".");for(g=0;g<a.length-1;g++){var f=a[g];if(!(f in k))return;k=k[f]}a=a[a.length-1];g=k[a];n=n(g);n!=g&&null!=n&&$jscomp.defineProperty(k,a,{configurable:!0,writable:!0,value:n})};
$jscomp.polyfillIsolated=function(a,n,k,g){var f=a.split(".");a=1===f.length;g=f[0];g=!a&&g in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var h=0;h<f.length-1;h++){var m=f[h];if(!(m in g))return;g=g[m]}f=f[f.length-1];k=$jscomp.IS_SYMBOL_NATIVE&&"es6"===k?g[f]:null;n=n(k);null!=n&&(a?$jscomp.defineProperty($jscomp.polyfills,f,{configurable:!0,writable:!0,value:n}):n!==k&&(void 0===$jscomp.propertyToPolyfillSymbol[f]&&($jscomp.propertyToPolyfillSymbol[f]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(f):
$jscomp.POLYFILL_PREFIX+f),f=$jscomp.propertyToPolyfillSymbol[f],$jscomp.defineProperty(g,f,{configurable:!0,writable:!0,value:n})))};$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(a){if(a)return a;var n=function(f,h){this.$jscomp$symbol$id_=f;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:h})};n.prototype.toString=function(){return this.$jscomp$symbol$id_};var k=0,g=function(f){if(this instanceof g)throw new TypeError("Symbol is not a constructor");return new n("jscomp_symbol_"+(f||"")+"_"+k++,f)};return g},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),k=0;k<n.length;k++){var g=$jscomp.global[n[k]];"function"===typeof g&&"function"!=typeof g.prototype[a]&&$jscomp.defineProperty(g.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return a},"es6",
"es3");$jscomp.iteratorPrototype=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,n){a.raw=n;return a};$jscomp.makeIterator=function(a){var n="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return n?n.call(a):$jscomp.arrayIterator(a)};$jscomp.arrayFromIterator=function(a){for(var n,k=[];!(n=a.next()).done;)k.push(n.value);return k};
$jscomp.arrayFromIterable=function(a){return a instanceof Array?a:$jscomp.arrayFromIterator($jscomp.makeIterator(a))};$jscomp.objectCreate=$jscomp.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(a){var n=function(){};n.prototype=a;return new n};
$jscomp.getConstructImplementation=function(){function a(){function k(){}new k;Reflect.construct(k,[],function(){});return new k instanceof k}if($jscomp.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var n=Reflect.construct;return function(k,g,f){k=n(k,g);f&&Reflect.setPrototypeOf(k,f.prototype);return k}}return function(k,g,f){void 0===f&&(f=k);f=$jscomp.objectCreate(f.prototype||Object.prototype);return Function.prototype.apply.call(k,f,g)||
f}};$jscomp.construct={valueOf:$jscomp.getConstructImplementation}.valueOf();$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},n={};try{return n.__proto__=a,n.a}catch(k){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,n){a.__proto__=n;if(a.__proto__!==n)throw new TypeError(a+" is not extensible");return a}:null;
$jscomp.inherits=function(a,n){a.prototype=$jscomp.objectCreate(n.prototype);a.prototype.constructor=a;if($jscomp.setPrototypeOf){var k=$jscomp.setPrototypeOf;k(a,n)}else for(k in n)if("prototype"!=k)if(Object.defineProperties){var g=Object.getOwnPropertyDescriptor(n,k);g&&Object.defineProperty(a,k,g)}else a[k]=n[k];a.superClass_=n.prototype};$jscomp.generator={};
$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};
$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};
$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,n){this.nextAddress=n;return{value:a}};
$jscomp.generator.Context.prototype.yieldAll=function(a,n){a=$jscomp.makeIterator(a);var k=a.next();$jscomp.generator.ensureIteratorResultIsObject_(k);if(k.done)this.yieldResult=k.value,this.nextAddress=n;else return this.yieldAllIterator_=a,this.yield(k.value,n)};$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};
$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,n){this.catchAddress_=a;void 0!=n&&(this.finallyAddress_=n)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,n){this.nextAddress=a;this.catchAddress_=n||0};
$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,n,k){k?this.finallyContexts_[k]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=n||0};
$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,n){n=this.finallyContexts_.splice(n||0)[0];if(n=this.abruptCompletion_=this.abruptCompletion_||n){if(n.isException)return this.jumpToErrorHandler_();void 0!=n.jumpTo&&this.finallyAddress_<n.jumpTo?(this.nextAddress=n.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)};
$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var n in a)this.properties_.push(n);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a};
$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var n=this.context_.yieldAllIterator_;if(n)return this.yieldAllStep_("return"in n?n["return"]:function(k){return{value:k,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,n,k){try{var g=a.call(this.context_.yieldAllIterator_,n);$jscomp.generator.ensureIteratorResultIsObject_(g);if(!g.done)return this.context_.stop_(),g;var f=g.value}catch(h){return this.context_.yieldAllIterator_=null,this.context_.throw_(h),this.nextStep_()}this.context_.yieldAllIterator_=null;k.call(this.context_,f);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(n){this.context_.yieldResult=void 0,this.context_.throw_(n)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}};
$jscomp.generator.Generator_=function(a){this.next=function(n){return a.next_(n)};this.throw=function(n){return a.throw_(n)};this.return=function(n){return a.return_(n)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,n){n=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(n));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(n,a.prototype);return n};
$jscomp.asyncExecutePromiseGenerator=function(a){function n(g){return a.next(g)}function k(g){return a.throw(g)}return new Promise(function(g,f){function h(m){m.done?g(m.value):Promise.resolve(m.value).then(n,k).then(h,f)}h(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))};
!function(a,n){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?n(a,!0):function(k){if(!k.document)throw Error("jQuery requires a window with a document");return n(k)}:n(a)}("undefined"!=typeof window?window:this,function(a,n){function k(c,p,t){var v,y,A=(t=t||Na).createElement("script");if(A.text=c,p)for(v in mb)(y=p[v]||p.getAttribute&&p.getAttribute(v))&&A.setAttribute(v,y);t.head.appendChild(A).parentNode.removeChild(A)}function g(c){return null==c?c+"":"object"==
typeof c||"function"==typeof c?qc[Ab.call(c)]||"object":typeof c}function f(c){var p=!!c&&"length"in c&&c.length,t=g(c);return!Ka(c)&&!Yb(c)&&("array"===t||0===p||"number"==typeof p&&0<p&&p-1 in c)}function h(c,p){return c.nodeName&&c.nodeName.toLowerCase()===p.toLowerCase()}function m(c,p,t){return Ka(p)?u.grep(c,function(v,y){return!!p.call(v,y,v)!==t}):p.nodeType?u.grep(c,function(v){return v===p!==t}):"string"!=typeof p?u.grep(c,function(v){return-1<Zb.call(p,v)!==t}):u.filter(p,c,t)}function e(c,
p){for(;(c=c[p])&&1!==c.nodeType;);return c}function b(c){return c}function d(c){throw c;}function l(c,p,t,v){var y;try{c&&Ka(y=c.promise)?y.call(c).done(p).fail(t):c&&Ka(y=c.then)?y.call(c,p,t):p.apply(void 0,[c].slice(v))}catch(A){t.apply(void 0,[A])}}function q(){Na.removeEventListener("DOMContentLoaded",q);a.removeEventListener("load",q);u.ready()}function r(c,p){return p.toUpperCase()}function w(c){return c.replace(ha,"ms-").replace(sa,r)}function x(){this.expando=u.expando+x.uid++}function C(c,
p,t){var v,y;if(void 0===t&&1===c.nodeType)if(v="data-"+p.replace(Ib,"-$\x26").toLowerCase(),"string"==typeof(t=c.getAttribute(v))){try{t="true"===(y=t)||"false"!==y&&("null"===y?null:y===+y+""?+y:gb.test(y)?JSON.parse(y):y)}catch(A){}Da.set(c,p,t)}else t=void 0;return t}function E(c,p,t,v){var y,A,D=20,F=v?function(){return v.cur()}:function(){return u.css(c,p,"")},L=F(),U=t&&t[3]||(u.cssNumber[p]?"":"px"),Y=c.nodeType&&(u.cssNumber[p]||"px"!==U&&+L)&&ic.exec(u.css(c,p));if(Y&&Y[3]!==U){L/=2;U=U||
Y[3];for(Y=+L||1;D--;)u.style(c,p,Y+U),0>=(1-A)*(1-(A=F()/L||.5))&&(D=0),Y/=A;Y*=2;u.style(c,p,Y+U);t=t||[]}return t&&(Y=+Y||+L||0,y=t[1]?Y+(t[1]+1)*t[2]:+t[2],v&&(v.unit=U,v.start=Y,v.end=y)),y}function z(c,p){for(var t,v,y,A,D,F,L,U=[],Y=0,R=c.length;Y<R;Y++)(v=c[Y]).style&&(t=v.style.display,p?("none"===t&&(U[Y]=da.get(v,"display")||null,U[Y]||(v.style.display="")),""===v.style.display&&rc(v)&&(U[Y]=(L=D=A=void 0,D=(y=v).ownerDocument,F=y.nodeName,(L=jc[F])||(A=D.body.appendChild(D.createElement(F)),
L=u.css(A,"display"),A.parentNode.removeChild(A),"none"===L&&(L="block"),jc[F]=L)))):"none"!==t&&(U[Y]="none",da.set(v,"display",t)));for(Y=0;Y<R;Y++)null!=U[Y]&&(c[Y].style.display=U[Y]);return c}function T(c,p){var t;return t="undefined"!=typeof c.getElementsByTagName?c.getElementsByTagName(p||"*"):"undefined"!=typeof c.querySelectorAll?c.querySelectorAll(p||"*"):[],void 0===p||p&&h(c,p)?u.merge([c],t):t}function ca(c,p){for(var t=0,v=c.length;t<v;t++)da.set(c[t],"globalEval",!p||da.get(p[t],"globalEval"))}
function oa(c,p,t,v,y){for(var A,D,F,L,U=p.createDocumentFragment(),Y=[],R=0,qa=c.length;R<qa;R++)if((A=c[R])||0===A)if("object"===g(A))u.merge(Y,A.nodeType?[A]:A);else if(id.test(A)){D=D||U.appendChild(p.createElement("div"));F=($a.exec(A)||["",""])[1].toLowerCase();F=Qb[F]||Qb._default;D.innerHTML=F[1]+u.htmlPrefilter(A)+F[2];for(F=F[0];F--;)D=D.lastChild;u.merge(Y,D.childNodes);(D=U.firstChild).textContent=""}else Y.push(p.createTextNode(A));U.textContent="";for(R=0;A=Y[R++];)if(v&&-1<u.inArray(A,
v))y&&y.push(A);else if(L=Rb(A),D=T(U.appendChild(A),"script"),L&&ca(D),t)for(F=0;A=D[F++];)Jc.test(A.type||"")&&t.push(A);return U}function ba(){return!0}function xa(){return!1}function ya(c,p){a:{try{var t=Na.activeElement;break a}catch(v){}t=void 0}return c===t==("focus"===p)}function ma(c,p,t,v,y,A){var D,F;if("object"==typeof p){for(F in"string"!=typeof t&&(v=v||t,t=void 0),p)ma(c,F,t,v,p[F],A);return c}if(null==v&&null==y?(y=t,v=t=void 0):null==y&&("string"==typeof t?(y=v,v=void 0):(y=v,v=t,
t=void 0)),!1===y)y=xa;else if(!y)return c;return 1===A&&(D=y,(y=function(L){return u().off(L),D.apply(this,arguments)}).guid=D.guid||(D.guid=u.guid++)),c.each(function(){u.event.add(this,p,y,v,t)})}function ab(c,p,t){t?(da.set(c,p,!1),u.event.add(c,p,{namespace:!1,handler:function(v){var y,A,D=da.get(this,p);if(1&v.isTrigger&&this[p])if(D.length)(u.event.special[p]||{}).delegateType&&v.stopPropagation();else{if(D=Gb.call(arguments),da.set(this,p,D),y=t(this,p),this[p](),D!==(A=da.get(this,p))||y?
da.set(this,p,!1):A={},D!==A)return v.stopImmediatePropagation(),v.preventDefault(),A.value}else D.length&&(da.set(this,p,{value:u.event.trigger(u.extend(D[0],u.Event.prototype),D.slice(1),this)}),v.stopImmediatePropagation())}})):void 0===da.get(c,p)&&u.event.add(c,p,ba)}function Jb(c,p){return h(c,"table")&&h(11!==p.nodeType?p:p.firstChild,"tr")&&u(c).children("tbody")[0]||c}function wa(c){return c.type=(null!==c.getAttribute("type"))+"/"+c.type,c}function Oa(c){return"true/"===(c.type||"").slice(0,
5)?c.type=c.type.slice(5):c.removeAttribute("type"),c}function I(c,p){var t,v,y,A,D,F;if(1===p.nodeType){if(da.hasData(c)&&(t=da.access(c),v=da.set(p,t),F=t.events))for(y in delete v.handle,v.events={},F)for(t=0,v=F[y].length;t<v;t++)u.event.add(p,y,F[y][t]);Da.hasData(c)&&(A=Da.access(c),D=u.extend({},A),Da.set(p,D))}}function J(c,p,t,v){p=Uc.apply([],p);var y,A,D,F=0,L=c.length,U=L-1,Y=p[0],R=Ka(Y);if(R||1<L&&"string"==typeof Y&&!bb.checkClone&&xc.test(Y))return c.each(function(Ba){var za=c.eq(Ba);
R&&(p[0]=Y.call(this,Ba,za.html()));J(za,p,t,v)});if(L&&(A=(y=oa(p,c[0].ownerDocument,!1,c,v)).firstChild,1===y.childNodes.length&&(y=A),A||v)){for(D=(A=u.map(T(y,"script"),wa)).length;F<L;F++){var qa=y;F!==U&&(qa=u.clone(qa,!0,!0),D&&u.merge(A,T(qa,"script")));t.call(c[F],qa,F)}if(D)for(y=A[A.length-1].ownerDocument,u.map(A,Oa),F=0;F<D;F++)qa=A[F],Jc.test(qa.type||"")&&!da.access(qa,"globalEval")&&u.contains(y,qa)&&(qa.src&&"module"!==(qa.type||"").toLowerCase()?u._evalUrl&&!qa.noModule&&u._evalUrl(qa.src,
{nonce:qa.nonce||qa.getAttribute("nonce")}):k(qa.textContent.replace(Yc,""),qa,y))}return c}function N(c,p,t){for(var v=p?u.filter(p,c):c,y=0;null!=(p=v[y]);y++)t||1!==p.nodeType||u.cleanData(T(p)),p.parentNode&&(t&&Rb(p)&&ca(T(p,"script")),p.parentNode.removeChild(p));return c}function S(c,p,t){var v,y,A,D,F=c.style;return(t=t||Dc(c))&&(""!==(D=t.getPropertyValue(p)||t[p])||Rb(c)||(D=u.style(c,p)),!bb.pixelBoxStyles()&&$b.test(D)&&jd.test(p)&&(v=F.width,y=F.minWidth,A=F.maxWidth,F.minWidth=F.maxWidth=
F.width=D,D=t.width,F.width=v,F.minWidth=y,F.maxWidth=A)),void 0!==D?D+"":D}function Z(c,p){return{get:function(){if(!c())return(this.get=p).apply(this,arguments);delete this.get}}}function fa(c){var p;if(!(p=u.cssProps[c]||Sb[c])){if(!(c in Zc)){a:{p=c;for(var t=p[0].toUpperCase()+p.slice(1),v=$c.length;v--;)if((p=$c[v]+t)in Zc)break a;p=void 0}c=Sb[c]=p||c}p=c}return p}function ra(c,p,t){return(c=ic.exec(p))?Math.max(0,c[2]-(t||0))+(c[3]||"px"):p}function va(c,p,t,v,y,A){var D="width"===p?1:0,F=
0,L=0;if(t===(v?"border":"content"))return 0;for(;4>D;D+=2)"margin"===t&&(L+=u.css(c,t+qb[D],!0,y)),v?("content"===t&&(L-=u.css(c,"padding"+qb[D],!0,y)),"margin"!==t&&(L-=u.css(c,"border"+qb[D]+"Width",!0,y))):(L+=u.css(c,"padding"+qb[D],!0,y),"padding"!==t?L+=u.css(c,"border"+qb[D]+"Width",!0,y):F+=u.css(c,"border"+qb[D]+"Width",!0,y));return!v&&0<=A&&(L+=Math.max(0,Math.ceil(c["offset"+p[0].toUpperCase()+p.slice(1)]-A-L-F-.5))||0),L}function nb(c,p,t){var v=Dc(c),y=(!bb.boxSizingReliable()||t)&&
"border-box"===u.css(c,"boxSizing",!1,v),A=y,D=S(c,p,v),F="offset"+p[0].toUpperCase()+p.slice(1);if($b.test(D)){if(!t)return D;D="auto"}return(!bb.boxSizingReliable()&&y||"auto"===D||!parseFloat(D)&&"inline"===u.css(c,"display",!1,v))&&c.getClientRects().length&&(y="border-box"===u.css(c,"boxSizing",!1,v),(A=F in c)&&(D=c[F])),(D=parseFloat(D)||0)+va(c,p,t||(y?"border":"content"),A,v,D)+"px"}function Ia(c,p,t,v,y){return new Ia.prototype.init(c,p,t,v,y)}function Ya(){kc&&(!1===Na.hidden&&a.requestAnimationFrame?
a.requestAnimationFrame(Ya):a.setTimeout(Ya,u.fx.interval),u.fx.tick())}function pa(){return a.setTimeout(function(){yc=void 0}),yc=Date.now()}function hb(c,p){var t,v=0,y={height:c};for(p=p?1:0;4>v;v+=2-p)y["margin"+(t=qb[v])]=y["padding"+t]=c;return p&&(y.opacity=y.width=c),y}function lc(c,p,t){for(var v,y=(Tb.tweeners[p]||[]).concat(Tb.tweeners["*"]),A=0,D=y.length;A<D;A++)if(v=y[A].call(t,p,c))return v}function Tb(c,p,t){var v,y=0,A=Tb.prefilters.length,D=u.Deferred().always(function(){delete F.elem}),
F=function(){if(v)return!1;var U=yc||pa();U=Math.max(0,L.startTime+L.duration-U);for(var Y=1-(U/L.duration||0),R=0,qa=L.tweens.length;R<qa;R++)L.tweens[R].run(Y);return D.notifyWith(c,[L,Y,U]),1>Y&&qa?U:(qa||D.notifyWith(c,[L,1,0]),D.resolveWith(c,[L]),!1)},L=D.promise({elem:c,props:u.extend({},p),opts:u.extend(!0,{specialEasing:{},easing:u.easing._default},t),originalProperties:p,originalOptions:t,startTime:yc||pa(),duration:t.duration,tweens:[],createTween:function(U,Y){U=u.Tween(c,L.opts,U,Y,L.opts.specialEasing[U]||
L.opts.easing);return L.tweens.push(U),U},stop:function(U){var Y=0,R=U?L.tweens.length:0;if(v)return this;for(v=!0;Y<R;Y++)L.tweens[Y].run(1);return U?(D.notifyWith(c,[L,1,0]),D.resolveWith(c,[L,U])):D.rejectWith(c,[L,U]),this}});t=L.props;!function(U,Y){var R,qa,Ba,za,Ua;for(R in U)if(Ba=Y[qa=w(R)],za=U[R],Array.isArray(za)&&(Ba=za[1],za=U[R]=za[0]),R!==qa&&(U[qa]=za,delete U[R]),(Ua=u.cssHooks[qa])&&"expand"in Ua)for(R in za=Ua.expand(za),delete U[qa],za)R in U||(U[R]=za[R],Y[R]=Ba);else Y[qa]=
Ba}(t,L.opts.specialEasing);for(;y<A;y++)if(p=Tb.prefilters[y].call(L,c,t,L.opts))return Ka(p.stop)&&(u._queueHooks(L.elem,L.opts.queue).stop=p.stop.bind(p)),p;return u.map(t,lc,L),Ka(L.opts.start)&&L.opts.start.call(c,L),L.progress(L.opts.progress).done(L.opts.done,L.opts.complete).fail(L.opts.fail).always(L.opts.always),u.fx.timer(u.extend(F,{elem:c,anim:L,queue:L.opts.queue})),L}function ob(c){return(c.match(Bb)||[]).join(" ")}function Za(c){return c.getAttribute&&c.getAttribute("class")||""}function Aa(c){return Array.isArray(c)?
c:"string"==typeof c&&c.match(Bb)||[]}function Q(c,p,t,v){var y;if(Array.isArray(p))u.each(p,function(A,D){t||Cb.test(c)?v(c,D):Q(c+"["+("object"==typeof D&&null!=D?A:"")+"]",D,t,v)});else if(t||"object"!==g(p))v(c,p);else for(y in p)Q(c+"["+y+"]",p[y],t,v)}function zc(c){return function(p,t){"string"!=typeof p&&(t=p,p="*");var v=0,y=p.toLowerCase().match(Bb)||[];if(Ka(t))for(;p=y[v++];)"+"===p[0]?(p=p.slice(1)||"*",(c[p]=c[p]||[]).unshift(t)):(c[p]=c[p]||[]).push(t)}}function Vc(c,p,t,v){function y(F){var L;
return A[F]=!0,u.each(c[F]||[],function(U,Y){U=Y(p,t,v);return"string"!=typeof U||D||A[U]?D?!(L=U):void 0:(p.dataTypes.unshift(U),y(U),!1)}),L}var A={},D=c===qd;return y(p.dataTypes[0])||!A["*"]&&y("*")}function sc(c,p){var t,v,y=u.ajaxSettings.flatOptions||{};for(t in p)void 0!==p[t]&&((y[t]?c:v||(v={}))[t]=p[t]);return v&&u.extend(!0,c,v),c}var Pa=[],Na=a.document,fc=Object.getPrototypeOf,Gb=Pa.slice,Uc=Pa.concat,Kc=Pa.push,Zb=Pa.indexOf,qc={},Ab=qc.toString,Ob=qc.hasOwnProperty,mc=Ob.toString,
tc=mc.call(Object),bb={},Ka=function(c){return"function"==typeof c&&"number"!=typeof c.nodeType},Yb=function(c){return null!=c&&c===c.window},mb={type:!0,src:!0,nonce:!0,noModule:!0},u=function(c,p){return new u.fn.init(c,p)},Ub=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;u.fn=u.prototype={jquery:"3.4.1",constructor:u,length:0,toArray:function(){return Gb.call(this)},get:function(c){return null==c?Gb.call(this):0>c?this[c+this.length]:this[c]},pushStack:function(c){c=u.merge(this.constructor(),c);return c.prevObject=
this,c},each:function(c){return u.each(this,c)},map:function(c){return this.pushStack(u.map(this,function(p,t){return c.call(p,t,p)}))},slice:function(){return this.pushStack(Gb.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(c){var p=this.length;c=+c+(0>c?p:0);return this.pushStack(0<=c&&c<p?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:Kc,sort:Pa.sort,splice:Pa.splice};u.extend=u.fn.extend=function(){var c,
p,t,v,y,A=arguments[0]||{},D=1,F=arguments.length,L=!1;"boolean"==typeof A&&(L=A,A=arguments[D]||{},D++);"object"==typeof A||Ka(A)||(A={});for(D===F&&(A=this,D--);D<F;D++)if(null!=(c=arguments[D]))for(p in c){var U=c[p];"__proto__"!==p&&A!==U&&(L&&U&&(u.isPlainObject(U)||(v=Array.isArray(U)))?(t=A[p],y=v&&!Array.isArray(t)?[]:v||u.isPlainObject(t)?t:{},v=!1,A[p]=u.extend(L,y,U)):void 0!==U&&(A[p]=U))}return A};u.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(c){throw Error(c);
},noop:function(){},isPlainObject:function(c){var p,t;return!(!c||"[object Object]"!==Ab.call(c))&&(!(p=fc(c))||"function"==typeof(t=Ob.call(p,"constructor")&&p.constructor)&&mc.call(t)===tc)},isEmptyObject:function(c){for(var p in c)return!1;return!0},globalEval:function(c,p){k(c,{nonce:p&&p.nonce})},each:function(c,p){var t,v=0;if(f(c))for(t=c.length;v<t&&!1!==p.call(c[v],v,c[v]);v++);else for(v in c)if(!1===p.call(c[v],v,c[v]))break;return c},trim:function(c){return null==c?"":(c+"").replace(Ub,
"")},makeArray:function(c,p){p=p||[];return null!=c&&(f(Object(c))?u.merge(p,"string"==typeof c?[c]:c):Kc.call(p,c)),p},inArray:function(c,p,t){return null==p?-1:Zb.call(p,c,t)},merge:function(c,p){for(var t=+p.length,v=0,y=c.length;v<t;v++)c[y++]=p[v];return c.length=y,c},grep:function(c,p,t){var v=[],y=0,A=c.length;for(t=!t;y<A;y++)!p(c[y],y)!==t&&v.push(c[y]);return v},map:function(c,p,t){var v,y,A=0,D=[];if(f(c))for(v=c.length;A<v;A++)null!=(y=p(c[A],A,t))&&D.push(y);else for(A in c)null!=(y=
p(c[A],A,t))&&D.push(y);return Uc.apply([],D)},guid:1,support:bb});"function"==typeof Symbol&&(u.fn[Symbol.iterator]=Pa[Symbol.iterator]);u.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(c,p){qc["[object "+p+"]"]=p.toLowerCase()});var yb=function(c){function p(B,G,O,P){var W,la,ia,Fa;var ja=G&&G.ownerDocument;var Ha=G?G.nodeType:9;if(O=O||[],"string"!=typeof B||!B||1!==Ha&&9!==Ha&&11!==Ha)return O;if(!P&&((G?G.ownerDocument||G:vb)!==Sa&&ac(G),G=G||
Sa,rb)){if(11!==Ha&&(Fa=Id.exec(B)))if(W=Fa[1])if(9===Ha){if(!(la=G.getElementById(W)))return O;if(la.id===W)return O.push(la),O}else{if(ja&&(la=ja.getElementById(W))&&fb(G,la)&&la.id===W)return O.push(la),O}else{if(Fa[2])return Ec.apply(O,G.getElementsByTagName(B)),O;if((W=Fa[3])&&Ca.getElementsByClassName&&G.getElementsByClassName)return Ec.apply(O,G.getElementsByClassName(W)),O}if(!(!Ca.qsa||kd[B+" "]||sb&&sb.test(B)||1===Ha&&"object"===G.nodeName.toLowerCase())){if(W=B,ja=G,1===Ha&&Jd.test(B)){(ia=
G.getAttribute("id"))?ia=ia.replace(xd,yd):G.setAttribute("id",ia=Qa);for(ja=(Ha=Fc(B)).length;ja--;)Ha[ja]="#"+ia+" "+Ba(Ha[ja]);W=Ha.join(",");ja=rd.test(B)&&R(G.parentNode)||G}try{return Ec.apply(O,ja.querySelectorAll(W)),O}catch(Va){kd(B,!0)}finally{ia===Qa&&G.removeAttribute("id")}}}return uc(B.replace(ld,"$1"),G,O,P)}function t(){var B=[];return function W(O,P){return B.push(O+" ")>La.cacheLength&&delete W[B.shift()],W[O+" "]=P}}function v(B){return B[Qa]=!0,B}function y(B){var G=Sa.createElement("fieldset");
try{return!!B(G)}catch(O){return!1}finally{G.parentNode&&G.parentNode.removeChild(G)}}function A(B,G){B=B.split("|");for(var O=B.length;O--;)La.attrHandle[B[O]]=G}function D(B,G){var O=G&&B,P=O&&1===B.nodeType&&1===G.nodeType&&B.sourceIndex-G.sourceIndex;if(P)return P;if(O)for(;O=O.nextSibling;)if(O===G)return-1;return B?1:-1}function F(B){return function(G){return"input"===G.nodeName.toLowerCase()&&G.type===B}}function L(B){return function(G){var O=G.nodeName.toLowerCase();return("input"===O||"button"===
O)&&G.type===B}}function U(B){return function(G){return"form"in G?G.parentNode&&!1===G.disabled?"label"in G?"label"in G.parentNode?G.parentNode.disabled===B:G.disabled===B:G.isDisabled===B||G.isDisabled!==!B&&Kd(G)===B:G.disabled===B:"label"in G&&G.disabled===B}}function Y(B){return v(function(G){return G=+G,v(function(O,P){for(var W,la=B([],O.length,G),ia=la.length;ia--;)O[W=la[ia]]&&(O[W]=!(P[W]=O[W]))})})}function R(B){return B&&"undefined"!=typeof B.getElementsByTagName&&B}function qa(){}function Ba(B){for(var G=
0,O=B.length,P="";G<O;G++)P+=B[G].value;return P}function za(B,G,O){var P=G.dir,W=G.next,la=W||P,ia=O&&"parentNode"===la,Fa=vc++;return G.first?function(ja,Ha,Va){for(;ja=ja[P];)if(1===ja.nodeType||ia)return B(ja,Ha,Va);return!1}:function(ja,Ha,Va){var wb,tb,Ra,cb=[ib,Fa];if(Va)for(;ja=ja[P];){if((1===ja.nodeType||ia)&&B(ja,Ha,Va))return!0}else for(;ja=ja[P];)if(1===ja.nodeType||ia)if(tb=(Ra=ja[Qa]||(ja[Qa]={}))[ja.uniqueID]||(Ra[ja.uniqueID]={}),W&&W===ja.nodeName.toLowerCase())ja=ja[P]||ja;else{if((wb=
tb[la])&&wb[0]===ib&&wb[1]===Fa)return cb[2]=wb[2];if((tb[la]=cb)[2]=B(ja,Ha,Va))return!0}return!1}}function Ua(B){return 1<B.length?function(G,O,P){for(var W=B.length;W--;)if(!B[W](G,O,P))return!1;return!0}:B[0]}function jb(B,G,O,P,W){for(var la,ia=[],Fa=0,ja=B.length,Ha=null!=G;Fa<ja;Fa++)(la=B[Fa])&&(O&&!O(la,P,W)||(ia.push(la),Ha&&G.push(Fa)));return ia}function nc(B,G,O,P,W,la){return P&&!P[Qa]&&(P=nc(P)),W&&!W[Qa]&&(W=nc(W,la)),v(function(ia,Fa,ja,Ha){var Va,wb=[],tb=[],Ra=Fa.length,cb;if(!(cb=
ia)){cb=G||"*";for(var eb=ja.nodeType?[ja]:ja,oc=[],Nb=0,Hb=eb.length;Nb<Hb;Nb++)p(cb,eb[Nb],oc);cb=oc}cb=!B||!ia&&G?cb:jb(cb,wb,B,ja,Ha);eb=O?W||(ia?B:Ra||P)?[]:Fa:cb;if(O&&O(cb,eb,ja,Ha),P){var xb=jb(eb,tb);P(xb,[],ja,Ha);for(ja=xb.length;ja--;)(Va=xb[ja])&&(eb[tb[ja]]=!(cb[tb[ja]]=Va))}if(ia){if(W||B){if(W){xb=[];for(ja=eb.length;ja--;)(Va=eb[ja])&&xb.push(cb[ja]=Va);W(null,eb=[],xb,Ha)}for(ja=eb.length;ja--;)(Va=eb[ja])&&-1<(xb=W?Lc(ia,Va):wb[ja])&&(ia[xb]=!(Fa[xb]=Va))}}else eb=jb(eb===Fa?eb.splice(Ra,
eb.length):eb),W?W(null,Fa,eb,Ha):Ec.apply(Fa,eb)})}function Kb(B){var G,O,P=B.length,W=La.relative[B[0].type];var la=W||La.relative[" "];for(var ia=W?1:0,Fa=za(function(Va){return Va===G},la,!0),ja=za(function(Va){return-1<Lc(G,Va)},la,!0),Ha=[function(Va,wb,tb){Va=!W&&(tb||wb!==Gc)||((G=wb).nodeType?Fa(Va,wb,tb):ja(Va,wb,tb));return G=null,Va}];ia<P;ia++)if(la=La.relative[B[ia].type])Ha=[za(Ua(Ha),la)];else{if((la=La.filter[B[ia].type].apply(null,B[ia].matches))[Qa]){for(O=++ia;O<P&&!La.relative[B[O].type];O++);
return nc(1<ia&&Ua(Ha),1<ia&&Ba(B.slice(0,ia-1).concat({value:" "===B[ia-2].type?"*":""})).replace(ld,"$1"),la,ia<O&&Kb(B.slice(ia,O)),O<P&&Kb(B=B.slice(O)),O<P&&Ba(B))}Ha.push(la)}return Ua(Ha)}var bc,Ca,La,Wa,Db,Fc,ad,uc,Gc,cc,dc,ac,Sa,kb,rb,sb,Xb,Lb,fb,Qa="sizzle"+1*new Date,vb=c.document,ib=0,vc=0,Mc=t(),md=t(),zd=t(),kd=t(),sd=function(B,G){return B===G&&(dc=!0),0},Ld={}.hasOwnProperty,Nc=[],Md=Nc.pop,Nd=Nc.push,Ec=Nc.push,Ad=Nc.slice,Lc=function(B,G){for(var O=0,P=B.length;O<P;O++)if(B[O]===
G)return O;return-1},Od=/[\x20\t\r\n\f]+/g,ld=/^[\x20\t\r\n\f]+|((?:^|[^\\])(?:\\.)*)[\x20\t\r\n\f]+$/g,Pd=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,Qd=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,Jd=/[\x20\t\r\n\f]|>/,Rd=/:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/,
Sd=/^(?:\\.|[\w-]|[^\x00-\xa0])+$/,nd={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:/^((?:\\.|[\w-]|[^\x00-\xa0])+|[*])/,ATTR:/^\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\]/,PSEUDO:/^:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/,
CHILD:/^:(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:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\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},Td=/HTML$/i,Ud=/^(?:input|select|textarea|button)$/i,Vd=
/^h\d$/i,bd=/^[^{]+\{\s*\[native \w/,Id=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rd=/[+~]/,Ac=/\\([\da-f]{1,6}[\x20\t\r\n\f]?|([\x20\t\r\n\f])|.)/ig,Bc=function(B,G,O){B="0x"+G-65536;return B!=B||O?G:0>B?String.fromCharCode(B+65536):String.fromCharCode(B>>10|55296,1023&B|56320)},xd=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yd=function(B,G){return G?"\x00"===B?"\ufffd":B.slice(0,-1)+"\\"+B.charCodeAt(B.length-1).toString(16)+" ":"\\"+B},Bd=function(){ac()},Kd=za(function(B){return!0===B.disabled&&
"fieldset"===B.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Ec.apply(Nc=Ad.call(vb.childNodes),vb.childNodes),Nc[vb.childNodes.length].nodeType}catch(B){Ec={apply:Nc.length?function(G,O){Nd.apply(G,Ad.call(O))}:function(G,O){for(var P=G.length,W=0;G[P++]=O[W++];);G.length=P-1}}}for(bc in Ca=p.support={},Db=p.isXML=function(B){var G=(B.ownerDocument||B).documentElement;return!Td.test(B.namespaceURI||G&&G.nodeName||"HTML")},ac=p.setDocument=function(B){var G,O;B=B?B.ownerDocument||
B:vb;return B!==Sa&&9===B.nodeType&&B.documentElement&&(kb=(Sa=B).documentElement,rb=!Db(Sa),vb!==Sa&&(O=Sa.defaultView)&&O.top!==O&&(O.addEventListener?O.addEventListener("unload",Bd,!1):O.attachEvent&&O.attachEvent("onunload",Bd)),Ca.attributes=y(function(P){return P.className="i",!P.getAttribute("className")}),Ca.getElementsByTagName=y(function(P){return P.appendChild(Sa.createComment("")),!P.getElementsByTagName("*").length}),Ca.getElementsByClassName=bd.test(Sa.getElementsByClassName),Ca.getById=
y(function(P){return kb.appendChild(P).id=Qa,!Sa.getElementsByName||!Sa.getElementsByName(Qa).length}),Ca.getById?(La.filter.ID=function(P){var W=P.replace(Ac,Bc);return function(la){return la.getAttribute("id")===W}},La.find.ID=function(P,W){if("undefined"!=typeof W.getElementById&&rb)return(P=W.getElementById(P))?[P]:[]}):(La.filter.ID=function(P){var W=P.replace(Ac,Bc);return function(la){return(la="undefined"!=typeof la.getAttributeNode&&la.getAttributeNode("id"))&&la.value===W}},La.find.ID=function(P,
W){if("undefined"!=typeof W.getElementById&&rb){var la,ia=W.getElementById(P);if(ia){if((la=ia.getAttributeNode("id"))&&la.value===P)return[ia];var Fa=W.getElementsByName(P);for(W=0;ia=Fa[W++];)if((la=ia.getAttributeNode("id"))&&la.value===P)return[ia]}return[]}}),La.find.TAG=Ca.getElementsByTagName?function(P,W){return"undefined"!=typeof W.getElementsByTagName?W.getElementsByTagName(P):Ca.qsa?W.querySelectorAll(P):void 0}:function(P,W){var la=[],ia=0;W=W.getElementsByTagName(P);if("*"===P){for(;P=
W[ia++];)1===P.nodeType&&la.push(P);return la}return W},La.find.CLASS=Ca.getElementsByClassName&&function(P,W){if("undefined"!=typeof W.getElementsByClassName&&rb)return W.getElementsByClassName(P)},Xb=[],sb=[],(Ca.qsa=bd.test(Sa.querySelectorAll))&&(y(function(P){kb.appendChild(P).innerHTML="\x3ca id\x3d'"+Qa+"'\x3e\x3c/a\x3e\x3cselect id\x3d'"+Qa+"-\r\\' msallowcapture\x3d''\x3e\x3coption selected\x3d''\x3e\x3c/option\x3e\x3c/select\x3e";P.querySelectorAll("[msallowcapture^\x3d'']").length&&sb.push("[*^$]\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");
P.querySelectorAll("[selected]").length||sb.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");P.querySelectorAll("[id~\x3d"+Qa+"-]").length||sb.push("~\x3d");P.querySelectorAll(":checked").length||sb.push(":checked");P.querySelectorAll("a#"+Qa+"+*").length||sb.push(".#.+[+~]")}),y(function(P){P.innerHTML="\x3ca href\x3d'' disabled\x3d'disabled'\x3e\x3c/a\x3e\x3cselect disabled\x3d'disabled'\x3e\x3coption/\x3e\x3c/select\x3e";
var W=Sa.createElement("input");W.setAttribute("type","hidden");P.appendChild(W).setAttribute("name","D");P.querySelectorAll("[name\x3dd]").length&&sb.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?\x3d");2!==P.querySelectorAll(":enabled").length&&sb.push(":enabled",":disabled");kb.appendChild(P).disabled=!0;2!==P.querySelectorAll(":disabled").length&&sb.push(":enabled",":disabled");P.querySelectorAll("*,:x");sb.push(",.*:")})),(Ca.matchesSelector=bd.test(Lb=kb.matches||kb.webkitMatchesSelector||kb.mozMatchesSelector||
kb.oMatchesSelector||kb.msMatchesSelector))&&y(function(P){Ca.disconnectedMatch=Lb.call(P,"*");Lb.call(P,"[s!\x3d'']:x");Xb.push("!\x3d",":((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")}),sb=
sb.length&&new RegExp(sb.join("|")),Xb=Xb.length&&new RegExp(Xb.join("|")),G=bd.test(kb.compareDocumentPosition),fb=G||bd.test(kb.contains)?function(P,W){var la=9===P.nodeType?P.documentElement:P;W=W&&W.parentNode;return P===W||!(!W||1!==W.nodeType||!(la.contains?la.contains(W):P.compareDocumentPosition&&16&P.compareDocumentPosition(W)))}:function(P,W){if(W)for(;W=W.parentNode;)if(W===P)return!0;return!1},sd=G?function(P,W){if(P===W)return dc=!0,0;var la=!P.compareDocumentPosition-!W.compareDocumentPosition;
return la||(1&(la=(P.ownerDocument||P)===(W.ownerDocument||W)?P.compareDocumentPosition(W):1)||!Ca.sortDetached&&W.compareDocumentPosition(P)===la?P===Sa||P.ownerDocument===vb&&fb(vb,P)?-1:W===Sa||W.ownerDocument===vb&&fb(vb,W)?1:cc?Lc(cc,P)-Lc(cc,W):0:4&la?-1:1)}:function(P,W){if(P===W)return dc=!0,0;var la=0,ia=P.parentNode,Fa=W.parentNode,ja=[P],Ha=[W];if(!ia||!Fa)return P===Sa?-1:W===Sa?1:ia?-1:Fa?1:cc?Lc(cc,P)-Lc(cc,W):0;if(ia===Fa)return D(P,W);for(;P=P.parentNode;)ja.unshift(P);for(P=W;P=P.parentNode;)Ha.unshift(P);
for(;ja[la]===Ha[la];)la++;return la?D(ja[la],Ha[la]):ja[la]===vb?-1:Ha[la]===vb?1:0}),Sa},p.matches=function(B,G){return p(B,null,null,G)},p.matchesSelector=function(B,G){if((B.ownerDocument||B)!==Sa&&ac(B),!(!Ca.matchesSelector||!rb||kd[G+" "]||Xb&&Xb.test(G)||sb&&sb.test(G)))try{var O=Lb.call(B,G);if(O||Ca.disconnectedMatch||B.document&&11!==B.document.nodeType)return O}catch(P){kd(G,!0)}return 0<p(G,Sa,null,[B]).length},p.contains=function(B,G){return(B.ownerDocument||B)!==Sa&&ac(B),fb(B,G)},
p.attr=function(B,G){(B.ownerDocument||B)!==Sa&&ac(B);var O=La.attrHandle[G.toLowerCase()];O=O&&Ld.call(La.attrHandle,G.toLowerCase())?O(B,G,!rb):void 0;return void 0!==O?O:Ca.attributes||!rb?B.getAttribute(G):(O=B.getAttributeNode(G))&&O.specified?O.value:null},p.escape=function(B){return(B+"").replace(xd,yd)},p.error=function(B){throw Error("Syntax error, unrecognized expression: "+B);},p.uniqueSort=function(B){var G,O=[],P=0,W=0;if(dc=!Ca.detectDuplicates,cc=!Ca.sortStable&&B.slice(0),B.sort(sd),
dc){for(;G=B[W++];)G===B[W]&&(P=O.push(W));for(;P--;)B.splice(O[P],1)}return cc=null,B},Wa=p.getText=function(B){var G,O="",P=0;if(G=B.nodeType)if(1===G||9===G||11===G){if("string"==typeof B.textContent)return B.textContent;for(B=B.firstChild;B;B=B.nextSibling)O+=Wa(B)}else{if(3===G||4===G)return B.nodeValue}else for(;G=B[P++];)O+=Wa(G);return O},(La=p.selectors={cacheLength:50,createPseudo:v,match:nd,attrHandle:{},find:{},relative:{"\x3e":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",
first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(B){return B[1]=B[1].replace(Ac,Bc),B[3]=(B[3]||B[4]||B[5]||"").replace(Ac,Bc),"~\x3d"===B[2]&&(B[3]=" "+B[3]+" "),B.slice(0,4)},CHILD:function(B){return B[1]=B[1].toLowerCase(),"nth"===B[1].slice(0,3)?(B[3]||p.error(B[0]),B[4]=+(B[4]?B[5]+(B[6]||1):2*("even"===B[3]||"odd"===B[3])),B[5]=+(B[7]+B[8]||"odd"===B[3])):B[3]&&p.error(B[0]),B},PSEUDO:function(B){var G,O=!B[6]&&B[2];return nd.CHILD.test(B[0])?null:(B[3]?B[2]=B[4]||B[5]||"":O&&
Rd.test(O)&&(G=Fc(O,!0))&&(G=O.indexOf(")",O.length-G)-O.length)&&(B[0]=B[0].slice(0,G),B[2]=O.slice(0,G)),B.slice(0,3))}},filter:{TAG:function(B){var G=B.replace(Ac,Bc).toLowerCase();return"*"===B?function(){return!0}:function(O){return O.nodeName&&O.nodeName.toLowerCase()===G}},CLASS:function(B){var G=Mc[B+" "];return G||(G=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+B+"([\\x20\\t\\r\\n\\f]|$)"),Mc(B,function(O){return G.test("string"==typeof O.className&&O.className||"undefined"!=typeof O.getAttribute&&
O.getAttribute("class")||"")}))},ATTR:function(B,G,O){return function(P){P=p.attr(P,B);return null==P?"!\x3d"===G:!G||(P+="","\x3d"===G?P===O:"!\x3d"===G?P!==O:"^\x3d"===G?O&&0===P.indexOf(O):"*\x3d"===G?O&&-1<P.indexOf(O):"$\x3d"===G?O&&P.slice(-O.length)===O:"~\x3d"===G?-1<(" "+P.replace(Od," ")+" ").indexOf(O):"|\x3d"===G&&(P===O||P.slice(0,O.length+1)===O+"-"))}},CHILD:function(B,G,O,P,W){var la="nth"!==B.slice(0,3),ia="last"!==B.slice(-4),Fa="of-type"===G;return 1===P&&0===W?function(ja){return!!ja.parentNode}:
function(ja,Ha,Va){var wb,tb,Ra,cb;Ha=la!==ia?"nextSibling":"previousSibling";var eb=ja.parentNode,oc=Fa&&ja.nodeName.toLowerCase(),Nb=!Va&&!Fa,Hb=!1;if(eb){if(la){for(;Ha;){for(Ra=ja;Ra=Ra[Ha];)if(Fa?Ra.nodeName.toLowerCase()===oc:1===Ra.nodeType)return!1;var xb=Ha="only"===B&&!xb&&"nextSibling"}return!0}if(xb=[ia?eb.firstChild:eb.lastChild],ia&&Nb)for(Hb=(cb=(wb=(Va=(tb=(Ra=eb)[Qa]||(Ra[Qa]={}))[Ra.uniqueID]||(tb[Ra.uniqueID]={}))[B]||[])[0]===ib&&wb[1])&&wb[2],Ra=cb&&eb.childNodes[cb];Ra=++cb&&
Ra&&Ra[Ha]||(Hb=cb=0)||xb.pop();){if(1===Ra.nodeType&&++Hb&&Ra===ja){Va[B]=[ib,cb,Hb];break}}else if(Nb&&(Hb=cb=(wb=((tb=(Ra=ja)[Qa]||(Ra[Qa]={}))[Ra.uniqueID]||(tb[Ra.uniqueID]={}))[B]||[])[0]===ib&&wb[1]),!1===Hb)for(;(Ra=++cb&&Ra&&Ra[Ha]||(Hb=cb=0)||xb.pop())&&((Fa?Ra.nodeName.toLowerCase()!==oc:1!==Ra.nodeType)||!++Hb||(Nb&&((Va=(tb=Ra[Qa]||(Ra[Qa]={}))[Ra.uniqueID]||(tb[Ra.uniqueID]={}))[B]=[ib,Hb]),Ra!==ja)););return(Hb-=W)===P||0==Hb%P&&0<=Hb/P}}},PSEUDO:function(B,G){var O,P=La.pseudos[B]||
La.setFilters[B.toLowerCase()]||p.error("unsupported pseudo: "+B);return P[Qa]?P(G):1<P.length?(O=[B,B,"",G],La.setFilters.hasOwnProperty(B.toLowerCase())?v(function(W,la){for(var ia,Fa=P(W,G),ja=Fa.length;ja--;)W[ia=Lc(W,Fa[ja])]=!(la[ia]=Fa[ja])}):function(W){return P(W,0,O)}):P}},pseudos:{not:v(function(B){var G=[],O=[],P=ad(B.replace(ld,"$1"));return P[Qa]?v(function(W,la,ia,Fa){var ja;ia=P(W,null,Fa,[]);for(Fa=W.length;Fa--;)(ja=ia[Fa])&&(W[Fa]=!(la[Fa]=ja))}):function(W,la,ia){return G[0]=W,
P(G,null,ia,O),G[0]=null,!O.pop()}}),has:v(function(B){return function(G){return 0<p(B,G).length}}),contains:v(function(B){return B=B.replace(Ac,Bc),function(G){return-1<(G.textContent||Wa(G)).indexOf(B)}}),lang:v(function(B){return Sd.test(B||"")||p.error("unsupported lang: "+B),B=B.replace(Ac,Bc).toLowerCase(),function(G){var O;do if(O=rb?G.lang:G.getAttribute("xml:lang")||G.getAttribute("lang"))return(O=O.toLowerCase())===B||0===O.indexOf(B+"-");while((G=G.parentNode)&&1===G.nodeType);return!1}}),
target:function(B){var G=c.location&&c.location.hash;return G&&G.slice(1)===B.id},root:function(B){return B===kb},focus:function(B){return B===Sa.activeElement&&(!Sa.hasFocus||Sa.hasFocus())&&!!(B.type||B.href||~B.tabIndex)},enabled:U(!1),disabled:U(!0),checked:function(B){var G=B.nodeName.toLowerCase();return"input"===G&&!!B.checked||"option"===G&&!!B.selected},selected:function(B){return B.parentNode&&B.parentNode.selectedIndex,!0===B.selected},empty:function(B){for(B=B.firstChild;B;B=B.nextSibling)if(6>
B.nodeType)return!1;return!0},parent:function(B){return!La.pseudos.empty(B)},header:function(B){return Vd.test(B.nodeName)},input:function(B){return Ud.test(B.nodeName)},button:function(B){var G=B.nodeName.toLowerCase();return"input"===G&&"button"===B.type||"button"===G},text:function(B){var G;return"input"===B.nodeName.toLowerCase()&&"text"===B.type&&(null==(G=B.getAttribute("type"))||"text"===G.toLowerCase())},first:Y(function(){return[0]}),last:Y(function(B,G){return[G-1]}),eq:Y(function(B,G,O){return[0>
O?O+G:O]}),even:Y(function(B,G){for(var O=0;O<G;O+=2)B.push(O);return B}),odd:Y(function(B,G){for(var O=1;O<G;O+=2)B.push(O);return B}),lt:Y(function(B,G,O){for(G=0>O?O+G:G<O?G:O;0<=--G;)B.push(G);return B}),gt:Y(function(B,G,O){for(O=0>O?O+G:O;++O<G;)B.push(O);return B})}}).pseudos.nth=La.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})La.pseudos[bc]=F(bc);for(bc in{submit:!0,reset:!0})La.pseudos[bc]=L(bc);return qa.prototype=La.filters=La.pseudos,La.setFilters=new qa,Fc=p.tokenize=
function(B,G){var O,P,W,la,ia,Fa;if(ia=md[B+" "])return G?0:ia.slice(0);ia=B;var ja=[];for(Fa=La.preFilter;ia;){for(la in O&&!(P=Pd.exec(ia))||(P&&(ia=ia.slice(P[0].length)||ia),ja.push(W=[])),O=!1,(P=Qd.exec(ia))&&(O=P.shift(),W.push({value:O,type:P[0].replace(ld," ")}),ia=ia.slice(O.length)),La.filter)!(P=nd[la].exec(ia))||Fa[la]&&!(P=Fa[la](P))||(O=P.shift(),W.push({value:O,type:la,matches:P}),ia=ia.slice(O.length));if(!O)break}return G?ia.length:ia?p.error(B):md(B,ja).slice(0)},ad=p.compile=function(B,
G){var O,P,W,la,ia=[],Fa=[],ja=zd[B+" "];if(!ja){G||(G=Fc(B));for(O=G.length;O--;)(ja=Kb(G[O]))[Qa]?ia.push(ja):Fa.push(ja);(ja=zd(B,(P=0<ia.length,W=0<Fa.length,la=function(Ha,Va,wb,tb,Ra){var cb,eb,oc=0,Nb="0",Hb=Ha&&[],xb=[],Cd=Gc,Dd=Ha||W&&La.find.TAG("*",Ra),Ed=ib+=null==Cd?1:Math.random()||.1,Wd=Dd.length;for(Ra&&(Gc=Va===Sa||Va||Ra);Nb!==Wd&&null!=(cb=Dd[Nb]);Nb++){if(W&&cb){var td=0;for(Va||cb.ownerDocument===Sa||(ac(cb),wb=!rb);eb=Fa[td++];)if(eb(cb,Va||Sa,wb)){tb.push(cb);break}Ra&&(ib=
Ed)}P&&((cb=!eb&&cb)&&oc--,Ha&&Hb.push(cb))}if(oc+=Nb,P&&Nb!==oc){for(td=0;eb=ia[td++];)eb(Hb,xb,Va,wb);if(Ha){if(0<oc)for(;Nb--;)Hb[Nb]||xb[Nb]||(xb[Nb]=Md.call(tb));xb=jb(xb)}Ec.apply(tb,xb);Ra&&!Ha&&0<xb.length&&1<oc+ia.length&&p.uniqueSort(tb)}return Ra&&(ib=Ed,Gc=Cd),Hb},P?v(la):la))).selector=B}return ja},uc=p.select=function(B,G,O,P){var W,la,ia,Fa,ja,Ha="function"==typeof B&&B,Va=!P&&Fc(B=Ha.selector||B);if(O=O||[],1===Va.length){if(2<(la=Va[0]=Va[0].slice(0)).length&&"ID"===(ia=la[0]).type&&
9===G.nodeType&&rb&&La.relative[la[1].type]){if(!(G=(La.find.ID(ia.matches[0].replace(Ac,Bc),G)||[])[0]))return O;Ha&&(G=G.parentNode);B=B.slice(la.shift().value.length)}for(W=nd.needsContext.test(B)?0:la.length;W--&&(ia=la[W],!La.relative[Fa=ia.type]);)if((ja=La.find[Fa])&&(P=ja(ia.matches[0].replace(Ac,Bc),rd.test(la[0].type)&&R(G.parentNode)||G))){if(la.splice(W,1),!(B=P.length&&Ba(la)))return Ec.apply(O,P),O;break}}return(Ha||ad(B,Va))(P,G,!rb,O,!G||rd.test(B)&&R(G.parentNode)||G),O},Ca.sortStable=
Qa.split("").sort(sd).join("")===Qa,Ca.detectDuplicates=!!dc,ac(),Ca.sortDetached=y(function(B){return 1&B.compareDocumentPosition(Sa.createElement("fieldset"))}),y(function(B){return B.innerHTML="\x3ca href\x3d'#'\x3e\x3c/a\x3e","#"===B.firstChild.getAttribute("href")})||A("type|href|height|width",function(B,G,O){if(!O)return B.getAttribute(G,"type"===G.toLowerCase()?1:2)}),Ca.attributes&&y(function(B){return B.innerHTML="\x3cinput/\x3e",B.firstChild.setAttribute("value",""),""===B.firstChild.getAttribute("value")})||
A("value",function(B,G,O){if(!O&&"input"===B.nodeName.toLowerCase())return B.defaultValue}),y(function(B){return null==B.getAttribute("disabled")})||A("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(B,G,O){var P;if(!O)return!0===B[G]?G.toLowerCase():(P=B.getAttributeNode(G))&&P.specified?P.value:null}),p}(a);u.find=yb;u.expr=yb.selectors;u.expr[":"]=u.expr.pseudos;u.uniqueSort=u.unique=yb.uniqueSort;u.text=yb.getText;
u.isXMLDoc=yb.isXML;u.contains=yb.contains;u.escapeSelector=yb.escape;var gc=function(c,p,t){for(var v=[],y=void 0!==t;(c=c[p])&&9!==c.nodeType;)if(1===c.nodeType){if(y&&u(c).is(t))break;v.push(c)}return v},Oc=function(c,p){for(var t=[];c;c=c.nextSibling)1===c.nodeType&&c!==p&&t.push(c);return t},Pc=u.expr.match.needsContext,Qc=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;u.filter=function(c,p,t){var v=p[0];return t&&(c=":not("+c+")"),1===p.length&&1===v.nodeType?u.find.matchesSelector(v,
c)?[v]:[]:u.find.matches(c,u.grep(p,function(y){return 1===y.nodeType}))};u.fn.extend({find:function(c){var p,t=this.length,v=this;if("string"!=typeof c)return this.pushStack(u(c).filter(function(){for(p=0;p<t;p++)if(u.contains(v[p],this))return!0}));var y=this.pushStack([]);for(p=0;p<t;p++)u.find(c,v[p],y);return 1<t?u.uniqueSort(y):y},filter:function(c){return this.pushStack(m(this,c||[],!1))},not:function(c){return this.pushStack(m(this,c||[],!0))},is:function(c){return!!m(this,"string"==typeof c&&
Pc.test(c)?u(c):c||[],!1).length}});var Vb=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(u.fn.init=function(c,p,t){var v,y;if(!c)return this;if(t=t||db,"string"==typeof c){if(!(v="\x3c"===c[0]&&"\x3e"===c[c.length-1]&&3<=c.length?[null,c,null]:Vb.exec(c))||!v[1]&&p)return!p||p.jquery?(p||t).find(c):this.constructor(p).find(c);if(v[1]){if(p=p instanceof u?p[0]:p,u.merge(this,u.parseHTML(v[1],p&&p.nodeType?p.ownerDocument||p:Na,!0)),Qc.test(v[1])&&u.isPlainObject(p))for(v in p)Ka(this[v])?this[v](p[v]):this.attr(v,
p[v]);return this}return(y=Na.getElementById(v[2]))&&(this[0]=y,this.length=1),this}return c.nodeType?(this[0]=c,this.length=1,this):Ka(c)?void 0!==t.ready?t.ready(c):c(u):u.makeArray(c,this)}).prototype=u.fn;var db=u(Na);var Eb=/^(?:parents|prev(?:Until|All))/,Ea={children:!0,contents:!0,next:!0,prev:!0};u.fn.extend({has:function(c){var p=u(c,this),t=p.length;return this.filter(function(){for(var v=0;v<t;v++)if(u.contains(this,p[v]))return!0})},closest:function(c,p){var t,v=0,y=this.length,A=[],
D="string"!=typeof c&&u(c);if(!Pc.test(c))for(;v<y;v++)for(t=this[v];t&&t!==p;t=t.parentNode)if(11>t.nodeType&&(D?-1<D.index(t):1===t.nodeType&&u.find.matchesSelector(t,c))){A.push(t);break}return this.pushStack(1<A.length?u.uniqueSort(A):A)},index:function(c){return c?"string"==typeof c?Zb.call(u(c),this[0]):Zb.call(this,c.jquery?c[0]:c):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(c,p){return this.pushStack(u.uniqueSort(u.merge(this.get(),u(c,p))))},addBack:function(c){return this.add(null==
c?this.prevObject:this.prevObject.filter(c))}});u.each({parent:function(c){return(c=c.parentNode)&&11!==c.nodeType?c:null},parents:function(c){return gc(c,"parentNode")},parentsUntil:function(c,p,t){return gc(c,"parentNode",t)},next:function(c){return e(c,"nextSibling")},prev:function(c){return e(c,"previousSibling")},nextAll:function(c){return gc(c,"nextSibling")},prevAll:function(c){return gc(c,"previousSibling")},nextUntil:function(c,p,t){return gc(c,"nextSibling",t)},prevUntil:function(c,p,t){return gc(c,
"previousSibling",t)},siblings:function(c){return Oc((c.parentNode||{}).firstChild,c)},children:function(c){return Oc(c.firstChild)},contents:function(c){return"undefined"!=typeof c.contentDocument?c.contentDocument:(h(c,"template")&&(c=c.content||c),u.merge([],c.childNodes))}},function(c,p){u.fn[c]=function(t,v){var y=u.map(this,p,t);return"Until"!==c.slice(-5)&&(v=t),v&&"string"==typeof v&&(y=u.filter(v,y)),1<this.length&&(Ea[c]||u.uniqueSort(y),Eb.test(c)&&y.reverse()),this.pushStack(y)}});var Bb=
/[^\x20\t\r\n\f]+/g;u.Callbacks=function(c){var p,t;c="string"==typeof c?(p=c,t={},u.each(p.match(Bb)||[],function(qa,Ba){t[Ba]=!0}),t):u.extend({},c);var v,y,A,D,F=[],L=[],U=-1,Y=function(){D=D||c.once;for(A=v=!0;L.length;U=-1)for(y=L.shift();++U<F.length;)!1===F[U].apply(y[0],y[1])&&c.stopOnFalse&&(U=F.length,y=!1);c.memory||(y=!1);v=!1;D&&(F=y?[]:"")},R={add:function(){return F&&(y&&!v&&(U=F.length-1,L.push(y)),function za(Ba){u.each(Ba,function(Ua,jb){Ka(jb)?c.unique&&R.has(jb)||F.push(jb):jb&&
jb.length&&"string"!==g(jb)&&za(jb)})}(arguments),y&&!v&&Y()),this},remove:function(){return u.each(arguments,function(qa,Ba){for(var za;-1<(za=u.inArray(Ba,F,za));)F.splice(za,1),za<=U&&U--}),this},has:function(qa){return qa?-1<u.inArray(qa,F):0<F.length},empty:function(){return F&&(F=[]),this},disable:function(){return D=L=[],F=y="",this},disabled:function(){return!F},lock:function(){return D=L=[],y||v||(F=y=""),this},locked:function(){return!!D},fireWith:function(qa,Ba){return D||(Ba=[qa,(Ba=Ba||
[]).slice?Ba.slice():Ba],L.push(Ba),v||Y()),this},fire:function(){return R.fireWith(this,arguments),this},fired:function(){return!!A}};return R};u.extend({Deferred:function(c){var p=[["notify","progress",u.Callbacks("memory"),u.Callbacks("memory"),2],["resolve","done",u.Callbacks("once memory"),u.Callbacks("once memory"),0,"resolved"],["reject","fail",u.Callbacks("once memory"),u.Callbacks("once memory"),1,"rejected"]],t="pending",v={state:function(){return t},always:function(){return y.done(arguments).fail(arguments),
this},"catch":function(A){return v.then(null,A)},pipe:function(){var A=arguments;return u.Deferred(function(D){u.each(p,function(F,L){var U=Ka(A[L[4]])&&A[L[4]];y[L[1]](function(){var Y=U&&U.apply(this,arguments);Y&&Ka(Y.promise)?Y.promise().progress(D.notify).done(D.resolve).fail(D.reject):D[L[0]+"With"](this,U?[Y]:arguments)})});A=null}).promise()},then:function(A,D,F){function L(Y,R,qa,Ba){return function(){var za=this,Ua=arguments,jb=function(){var Kb;if(!(Y<U)){if((Kb=qa.apply(za,Ua))===R.promise())throw new TypeError("Thenable self-resolution");
var bc=Kb&&("object"==typeof Kb||"function"==typeof Kb)&&Kb.then;Ka(bc)?Ba?bc.call(Kb,L(U,R,b,Ba),L(U,R,d,Ba)):(U++,bc.call(Kb,L(U,R,b,Ba),L(U,R,d,Ba),L(U,R,b,R.notifyWith))):(qa!==b&&(za=void 0,Ua=[Kb]),(Ba||R.resolveWith)(za,Ua))}},nc=Ba?jb:function(){try{jb()}catch(Kb){u.Deferred.exceptionHook&&u.Deferred.exceptionHook(Kb,nc.stackTrace),U<=Y+1&&(qa!==d&&(za=void 0,Ua=[Kb]),R.rejectWith(za,Ua))}};Y?nc():(u.Deferred.getStackHook&&(nc.stackTrace=u.Deferred.getStackHook()),a.setTimeout(nc))}}var U=
0;return u.Deferred(function(Y){p[0][3].add(L(0,Y,Ka(F)?F:b,Y.notifyWith));p[1][3].add(L(0,Y,Ka(A)?A:b));p[2][3].add(L(0,Y,Ka(D)?D:d))}).promise()},promise:function(A){return null!=A?u.extend(A,v):v}},y={};return u.each(p,function(A,D){var F=D[2],L=D[5];v[D[1]]=F.add;L&&F.add(function(){t=L},p[3-A][2].disable,p[3-A][3].disable,p[0][2].lock,p[0][3].lock);F.add(D[3].fire);y[D[0]]=function(){return y[D[0]+"With"](this===y?void 0:this,arguments),this};y[D[0]+"With"]=F.fireWith}),v.promise(y),c&&c.call(y,
y),y},when:function(c){var p=arguments.length,t=p,v=Array(t),y=Gb.call(arguments),A=u.Deferred(),D=function(F){return function(L){v[F]=this;y[F]=1<arguments.length?Gb.call(arguments):L;--p||A.resolveWith(v,y)}};if(1>=p&&(l(c,A.done(D(t)).resolve,A.reject,!p),"pending"===A.state()||Ka(y[t]&&y[t].then)))return A.then();for(;t--;)l(y[t],D(t),A.reject);return A.promise()}});var M=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;u.Deferred.exceptionHook=function(c,p){a.console&&a.console.warn&&
c&&M.test(c.name)&&a.console.warn("jQuery.Deferred exception: "+c.message,c.stack,p)};u.readyException=function(c){a.setTimeout(function(){throw c;})};var ea=u.Deferred();u.fn.ready=function(c){return ea.then(c)["catch"](function(p){u.readyException(p)}),this};u.extend({isReady:!1,readyWait:1,ready:function(c){(!0===c?--u.readyWait:u.isReady)||(u.isReady=!0)!==c&&0<--u.readyWait||ea.resolveWith(Na,[u])}});u.ready.then=ea.then;"complete"===Na.readyState||"loading"!==Na.readyState&&!Na.documentElement.doScroll?
a.setTimeout(u.ready):(Na.addEventListener("DOMContentLoaded",q),a.addEventListener("load",q));var aa=function(c,p,t,v,y,A,D){var F=0,L=c.length,U=null==t;if("object"===g(t))for(F in y=!0,t)aa(c,p,F,t[F],!0,A,D);else if(void 0!==v&&(y=!0,Ka(v)||(D=!0),U&&(D?(p.call(c,v),p=null):(U=p,p=function(Y,R,qa){return U.call(u(Y),qa)})),p))for(;F<L;F++)p(c[F],t,D?v:v.call(c[F],F,p(c[F],t)));return y?c:U?p.call(c):L?p(c[0],t):A},ha=/^-ms-/,sa=/-([a-z])/g,ka=function(c){return 1===c.nodeType||9===c.nodeType||
!+c.nodeType};x.uid=1;x.prototype={cache:function(c){var p=c[this.expando];return p||(p={},ka(c)&&(c.nodeType?c[this.expando]=p:Object.defineProperty(c,this.expando,{value:p,configurable:!0}))),p},set:function(c,p,t){var v;c=this.cache(c);if("string"==typeof p)c[w(p)]=t;else for(v in p)c[w(v)]=p[v];return c},get:function(c,p){return void 0===p?this.cache(c):c[this.expando]&&c[this.expando][w(p)]},access:function(c,p,t){return void 0===p||p&&"string"==typeof p&&void 0===t?this.get(c,p):(this.set(c,
p,t),void 0!==t?t:p)},remove:function(c,p){var t=c[this.expando];if(void 0!==t){if(void 0!==p){var v=(p=Array.isArray(p)?p.map(w):(p=w(p))in t?[p]:p.match(Bb)||[]).length;for(;v--;)delete t[p[v]]}(void 0===p||u.isEmptyObject(t))&&(c.nodeType?c[this.expando]=void 0:delete c[this.expando])}},hasData:function(c){c=c[this.expando];return void 0!==c&&!u.isEmptyObject(c)}};var da=new x,Da=new x,gb=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ib=/[A-Z]/g;u.extend({hasData:function(c){return Da.hasData(c)||da.hasData(c)},
data:function(c,p,t){return Da.access(c,p,t)},removeData:function(c,p){Da.remove(c,p)},_data:function(c,p,t){return da.access(c,p,t)},_removeData:function(c,p){da.remove(c,p)}});u.fn.extend({data:function(c,p){var t,v,y,A=this[0],D=A&&A.attributes;if(void 0===c){if(this.length&&(y=Da.get(A),1===A.nodeType&&!da.get(A,"hasDataAttrs"))){for(t=D.length;t--;)D[t]&&0===(v=D[t].name).indexOf("data-")&&(v=w(v.slice(5)),C(A,v,y[v]));da.set(A,"hasDataAttrs",!0)}return y}return"object"==typeof c?this.each(function(){Da.set(this,
c)}):aa(this,function(F){var L;if(A&&void 0===F)return void 0!==(L=Da.get(A,c))?L:void 0!==(L=C(A,c))?L:void 0;this.each(function(){Da.set(this,c,F)})},null,p,1<arguments.length,null,!0)},removeData:function(c){return this.each(function(){Da.remove(this,c)})}});u.extend({queue:function(c,p,t){var v;if(c)return p=(p||"fx")+"queue",v=da.get(c,p),t&&(!v||Array.isArray(t)?v=da.access(c,p,u.makeArray(t)):v.push(t)),v||[]},dequeue:function(c,p){p=p||"fx";var t=u.queue(c,p),v=t.length,y=t.shift(),A=u._queueHooks(c,
p);"inprogress"===y&&(y=t.shift(),v--);y&&("fx"===p&&t.unshift("inprogress"),delete A.stop,y.call(c,function(){u.dequeue(c,p)},A));!v&&A&&A.empty.fire()},_queueHooks:function(c,p){var t=p+"queueHooks";return da.get(c,t)||da.access(c,t,{empty:u.Callbacks("once memory").add(function(){da.remove(c,[p+"queue",t])})})}});u.fn.extend({queue:function(c,p){var t=2;return"string"!=typeof c&&(p=c,c="fx",t--),arguments.length<t?u.queue(this[0],c):void 0===p?this:this.each(function(){var v=u.queue(this,c,p);
u._queueHooks(this,c);"fx"===c&&"inprogress"!==v[0]&&u.dequeue(this,c)})},dequeue:function(c){return this.each(function(){u.dequeue(this,c)})},clearQueue:function(c){return this.queue(c||"fx",[])},promise:function(c,p){var t,v=1,y=u.Deferred(),A=this,D=this.length,F=function(){--v||y.resolveWith(A,[A])};"string"!=typeof c&&(p=c,c=void 0);for(c=c||"fx";D--;)(t=da.get(A[D],c+"queueHooks"))&&t.empty&&(v++,t.empty.add(F));return F(),y.promise(p)}});var Fb=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
ic=new RegExp("^(?:([+-])\x3d|)("+Fb+")([a-z%]*)$","i"),qb=["Top","Right","Bottom","Left"],ec=Na.documentElement,Rb=function(c){return u.contains(c.ownerDocument,c)},Pb={composed:!0};ec.getRootNode&&(Rb=function(c){return u.contains(c.ownerDocument,c)||c.getRootNode(Pb)===c.ownerDocument});var rc=function(c,p){return"none"===(c=p||c).style.display||""===c.style.display&&Rb(c)&&"none"===u.css(c,"display")},Wb=function(c,p,t,v){var y,A={};for(y in p)A[y]=c.style[y],c.style[y]=p[y];for(y in t=t.apply(c,
v||[]),p)c.style[y]=A[y];return t},jc={};u.fn.extend({show:function(){return z(this,!0)},hide:function(){return z(this)},toggle:function(c){return"boolean"==typeof c?c?this.show():this.hide():this.each(function(){rc(this)?u(this).show():u(this).hide()})}});var Xa=/^(?:checkbox|radio)$/i,$a=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Jc=/^$|^module$|\/(?:java|ecma)script/i,Qb={option:[1,"\x3cselect multiple\x3d'multiple'\x3e","\x3c/select\x3e"],thead:[1,"\x3ctable\x3e","\x3c/table\x3e"],col:[2,"\x3ctable\x3e\x3ccolgroup\x3e",
"\x3c/colgroup\x3e\x3c/table\x3e"],tr:[2,"\x3ctable\x3e\x3ctbody\x3e","\x3c/tbody\x3e\x3c/table\x3e"],td:[3,"\x3ctable\x3e\x3ctbody\x3e\x3ctr\x3e","\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e"],_default:[0,"",""]};Qb.optgroup=Qb.option;Qb.tbody=Qb.tfoot=Qb.colgroup=Qb.caption=Qb.thead;Qb.th=Qb.td;var Rc,id=/<|&#?\w+;/;var Sc=Na.createDocumentFragment().appendChild(Na.createElement("div"));(Rc=Na.createElement("input")).setAttribute("type","radio");Rc.setAttribute("checked","checked");Rc.setAttribute("name",
"t");Sc.appendChild(Rc);bb.checkClone=Sc.cloneNode(!0).cloneNode(!0).lastChild.checked;Sc.innerHTML="\x3ctextarea\x3ex\x3c/textarea\x3e";bb.noCloneChecked=!!Sc.cloneNode(!0).lastChild.defaultValue;var Wc=/^key/,cd=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,dd=/^([^.]*)(?:\.(.+)|)/;u.event={global:{},add:function(c,p,t,v,y){var A,D,F,L,U,Y,R,qa,Ba;if(U=da.get(c))for(t.handler&&(t=(A=t).handler,y=A.selector),y&&u.find.matchesSelector(ec,y),t.guid||(t.guid=u.guid++),(L=U.events)||(L=U.events={}),
(D=U.handle)||(D=U.handle=function(Ua){return"undefined"!=typeof u&&u.event.triggered!==Ua.type?u.event.dispatch.apply(c,arguments):void 0}),U=(p=(p||"").match(Bb)||[""]).length;U--;){var za=Ba=(F=dd.exec(p[U])||[])[1];F=(F[2]||"").split(".").sort();za&&(R=u.event.special[za]||{},za=(y?R.delegateType:R.bindType)||za,R=u.event.special[za]||{},Y=u.extend({type:za,origType:Ba,data:v,handler:t,guid:t.guid,selector:y,needsContext:y&&u.expr.match.needsContext.test(y),namespace:F.join(".")},A),(qa=L[za])||
((qa=L[za]=[]).delegateCount=0,R.setup&&!1!==R.setup.call(c,v,F,D)||c.addEventListener&&c.addEventListener(za,D)),R.add&&(R.add.call(c,Y),Y.handler.guid||(Y.handler.guid=t.guid)),y?qa.splice(qa.delegateCount++,0,Y):qa.push(Y),u.event.global[za]=!0)}},remove:function(c,p,t,v,y){var A,D,F,L,U,Y,R,qa,Ba=da.hasData(c)&&da.get(c);if(Ba&&(L=Ba.events)){for(U=(p=(p||"").match(Bb)||[""]).length;U--;)if(Y=qa=(F=dd.exec(p[U])||[])[1],R=(F[2]||"").split(".").sort(),Y){var za=u.event.special[Y]||{};var Ua=L[Y=
(v?za.delegateType:za.bindType)||Y]||[];F=F[2]&&new RegExp("(^|\\.)"+R.join("\\.(?:.*\\.|)")+"(\\.|$)");for(D=A=Ua.length;A--;){var jb=Ua[A];!y&&qa!==jb.origType||t&&t.guid!==jb.guid||F&&!F.test(jb.namespace)||v&&v!==jb.selector&&("**"!==v||!jb.selector)||(Ua.splice(A,1),jb.selector&&Ua.delegateCount--,za.remove&&za.remove.call(c,jb))}D&&!Ua.length&&(za.teardown&&!1!==za.teardown.call(c,R,Ba.handle)||u.removeEvent(c,Y,Ba.handle),delete L[Y])}else for(Y in L)u.event.remove(c,Y+p[U],t,v,!0);u.isEmptyObject(L)&&
da.remove(c,"handle events")}},dispatch:function(c){var p,t,v,y,A=u.event.fix(c),D=Array(arguments.length);var F=(da.get(this,"events")||{})[A.type]||[];var L=u.event.special[A.type]||{};D[0]=A;for(p=1;p<arguments.length;p++)D[p]=arguments[p];if(A.delegateTarget=this,!L.preDispatch||!1!==L.preDispatch.call(this,A)){var U=u.event.handlers.call(this,A,F);for(p=0;(v=U[p++])&&!A.isPropagationStopped();)for(A.currentTarget=v.elem,F=0;(y=v.handlers[F++])&&!A.isImmediatePropagationStopped();)A.rnamespace&&
!1!==y.namespace&&!A.rnamespace.test(y.namespace)||(A.handleObj=y,A.data=y.data,void 0!==(t=((u.event.special[y.origType]||{}).handle||y.handler).apply(v.elem,D))&&!1===(A.result=t)&&(A.preventDefault(),A.stopPropagation()));return L.postDispatch&&L.postDispatch.call(this,A),A.result}},handlers:function(c,p){var t,v,y,A=[],D=p.delegateCount,F=c.target;if(D&&F.nodeType&&!("click"===c.type&&1<=c.button))for(;F!==this;F=F.parentNode||this)if(1===F.nodeType&&("click"!==c.type||!0!==F.disabled)){var L=
[];var U={};for(t=0;t<D;t++)void 0===U[y=(v=p[t]).selector+" "]&&(U[y]=v.needsContext?-1<u(y,this).index(F):u.find(y,this,null,[F]).length),U[y]&&L.push(v);L.length&&A.push({elem:F,handlers:L})}return F=this,D<p.length&&A.push({elem:F,handlers:p.slice(D)}),A},addProp:function(c,p){Object.defineProperty(u.Event.prototype,c,{enumerable:!0,configurable:!0,get:Ka(p)?function(){if(this.originalEvent)return p(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[c]},set:function(t){Object.defineProperty(this,
c,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(c){return c[u.expando]?c:new u.Event(c)},special:{load:{noBubble:!0},click:{setup:function(c){c=this||c;return Xa.test(c.type)&&c.click&&h(c,"input")&&ab(c,"click",ba),!1},trigger:function(c){c=this||c;return Xa.test(c.type)&&c.click&&h(c,"input")&&ab(c,"click"),!0},_default:function(c){c=c.target;return Xa.test(c.type)&&c.click&&h(c,"input")&&da.get(c,"click")||h(c,"a")}},beforeunload:{postDispatch:function(c){void 0!==c.result&&
c.originalEvent&&(c.originalEvent.returnValue=c.result)}}}};u.removeEvent=function(c,p,t){c.removeEventListener&&c.removeEventListener(p,t)};u.Event=function(c,p){if(!(this instanceof u.Event))return new u.Event(c,p);c&&c.type?(this.originalEvent=c,this.type=c.type,this.isDefaultPrevented=c.defaultPrevented||void 0===c.defaultPrevented&&!1===c.returnValue?ba:xa,this.target=c.target&&3===c.target.nodeType?c.target.parentNode:c.target,this.currentTarget=c.currentTarget,this.relatedTarget=c.relatedTarget):
this.type=c;p&&u.extend(this,p);this.timeStamp=c&&c.timeStamp||Date.now();this[u.expando]=!0};u.Event.prototype={constructor:u.Event,isDefaultPrevented:xa,isPropagationStopped:xa,isImmediatePropagationStopped:xa,isSimulated:!1,preventDefault:function(){var c=this.originalEvent;this.isDefaultPrevented=ba;c&&!this.isSimulated&&c.preventDefault()},stopPropagation:function(){var c=this.originalEvent;this.isPropagationStopped=ba;c&&!this.isSimulated&&c.stopPropagation()},stopImmediatePropagation:function(){var c=
this.originalEvent;this.isImmediatePropagationStopped=ba;c&&!this.isSimulated&&c.stopImmediatePropagation();this.stopPropagation()}};u.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(c){var p=
c.button;return null==c.which&&Wc.test(c.type)?null!=c.charCode?c.charCode:c.keyCode:!c.which&&void 0!==p&&cd.test(c.type)?1&p?1:2&p?3:4&p?2:0:c.which}},u.event.addProp);u.each({focus:"focusin",blur:"focusout"},function(c,p){u.event.special[c]={setup:function(){return ab(this,c,ya),!1},trigger:function(){return ab(this,c),!0},delegateType:p}});u.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(c,p){u.event.special[c]={delegateType:p,
bindType:p,handle:function(t){var v,y=t.relatedTarget,A=t.handleObj;return y&&(y===this||u.contains(this,y))||(t.type=A.origType,v=A.handler.apply(this,arguments),t.type=p),v}}});u.fn.extend({on:function(c,p,t,v){return ma(this,c,p,t,v)},one:function(c,p,t,v){return ma(this,c,p,t,v,1)},off:function(c,p,t){var v,y;if(c&&c.preventDefault&&c.handleObj)return v=c.handleObj,u(c.delegateTarget).off(v.namespace?v.origType+"."+v.namespace:v.origType,v.selector,v.handler),this;if("object"==typeof c){for(y in c)this.off(y,
p,c[y]);return this}return!1!==p&&"function"!=typeof p||(t=p,p=void 0),!1===t&&(t=xa),this.each(function(){u.event.remove(this,c,t,p)})}});var od=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ed=/<script|<style|<link/i,xc=/checked\s*(?:[^=]|=\s*.checked.)/i,Yc=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;u.extend({htmlPrefilter:function(c){return c.replace(od,"\x3c$1\x3e\x3c/$2\x3e")},clone:function(c,p,t){var v,y,A,D=c.cloneNode(!0),F=Rb(c);if(!(bb.noCloneChecked||
1!==c.nodeType&&11!==c.nodeType||u.isXMLDoc(c))){var L=T(D);var U=0;for(v=(y=T(c)).length;U<v;U++){var Y=y[U];var R=L[U];void 0;"input"===(A=R.nodeName.toLowerCase())&&Xa.test(Y.type)?R.checked=Y.checked:"input"!==A&&"textarea"!==A||(R.defaultValue=Y.defaultValue)}}if(p)if(t)for(y=y||T(c),L=L||T(D),U=0,v=y.length;U<v;U++)I(y[U],L[U]);else I(c,D);return 0<(L=T(D,"script")).length&&ca(L,!F&&T(c,"script")),D},cleanData:function(c){for(var p,t,v,y=u.event.special,A=0;void 0!==(t=c[A]);A++)if(ka(t)){if(p=
t[da.expando]){if(p.events)for(v in p.events)y[v]?u.event.remove(t,v):u.removeEvent(t,v,p.handle);t[da.expando]=void 0}t[Da.expando]&&(t[Da.expando]=void 0)}}});u.fn.extend({detach:function(c){return N(this,c,!0)},remove:function(c){return N(this,c)},text:function(c){return aa(this,function(p){return void 0===p?u.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=p)})},null,c,arguments.length)},append:function(){return J(this,arguments,
function(c){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Jb(this,c).appendChild(c)})},prepend:function(){return J(this,arguments,function(c){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var p=Jb(this,c);p.insertBefore(c,p.firstChild)}})},before:function(){return J(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this)})},after:function(){return J(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this.nextSibling)})},empty:function(){for(var c,
p=0;null!=(c=this[p]);p++)1===c.nodeType&&(u.cleanData(T(c,!1)),c.textContent="");return this},clone:function(c,p){return c=null!=c&&c,p=null==p?c:p,this.map(function(){return u.clone(this,c,p)})},html:function(c){return aa(this,function(p){var t=this[0]||{},v=0,y=this.length;if(void 0===p&&1===t.nodeType)return t.innerHTML;if("string"==typeof p&&!ed.test(p)&&!Qb[($a.exec(p)||["",""])[1].toLowerCase()]){p=u.htmlPrefilter(p);try{for(;v<y;v++)1===(t=this[v]||{}).nodeType&&(u.cleanData(T(t,!1)),t.innerHTML=
p);t=0}catch(A){}}t&&this.empty().append(p)},null,c,arguments.length)},replaceWith:function(){var c=[];return J(this,arguments,function(p){var t=this.parentNode;0>u.inArray(this,c)&&(u.cleanData(T(this)),t&&t.replaceChild(p,this))},c)}});u.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,p){u.fn[c]=function(t){for(var v=[],y=u(t),A=y.length-1,D=0;D<=A;D++)t=D===A?this:this.clone(!0),u(y[D])[p](t),Kc.apply(v,t.get());return this.pushStack(v)}});
var $b=new RegExp("^("+Fb+")(?!px)[a-z%]+$","i"),Dc=function(c){var p=c.ownerDocument.defaultView;return p&&p.opener||(p=a),p.getComputedStyle(c)},jd=new RegExp(qb.join("|"),"i");!function(){function c(){if(F){D.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";F.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";ec.appendChild(D).appendChild(F);var L=a.getComputedStyle(F);
p="1%"!==L.top;A=12===Math.round(parseFloat(L.marginLeft));F.style.right="60%";y=36===Math.round(parseFloat(L.right));t=36===Math.round(parseFloat(L.width));F.style.position="absolute";v=12===Math.round(parseFloat(F.offsetWidth/3));ec.removeChild(D);F=null}}var p,t,v,y,A,D=Na.createElement("div"),F=Na.createElement("div");F.style&&(F.style.backgroundClip="content-box",F.cloneNode(!0).style.backgroundClip="",bb.clearCloneStyle="content-box"===F.style.backgroundClip,u.extend(bb,{boxSizingReliable:function(){return c(),
t},pixelBoxStyles:function(){return c(),y},pixelPosition:function(){return c(),p},reliableMarginLeft:function(){return c(),A},scrollboxSize:function(){return c(),v}}))}();var $c=["Webkit","Moz","ms"],Zc=Na.createElement("div").style,Sb={},Hc=/^(none|table(?!-c[ea]).+)/,Cc=/^--/,pd={position:"absolute",visibility:"hidden",display:"block"},fd={letterSpacing:"0",fontWeight:"400"};u.extend({cssHooks:{opacity:{get:function(c,p){if(p)return c=S(c,"opacity"),""===c?"1":c}}},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(c,p,t,v){if(c&&3!==c.nodeType&&8!==c.nodeType&&c.style){var y,A,D,F=w(p),L=Cc.test(p),U=c.style;if(L||(p=fa(F)),D=u.cssHooks[p]||u.cssHooks[F],void 0===t)return D&&"get"in D&&void 0!==(y=D.get(c,!1,v))?y:U[p];"string"===(A=typeof t)&&
(y=ic.exec(t))&&y[1]&&(t=E(c,p,y),A="number");null!=t&&t==t&&("number"!==A||L||(t+=y&&y[3]||(u.cssNumber[F]?"":"px")),bb.clearCloneStyle||""!==t||0!==p.indexOf("background")||(U[p]="inherit"),D&&"set"in D&&void 0===(t=D.set(c,t,v))||(L?U.setProperty(p,t):U[p]=t))}},css:function(c,p,t,v){var y,A,D,F=w(p);return Cc.test(p)||(p=fa(F)),(D=u.cssHooks[p]||u.cssHooks[F])&&"get"in D&&(y=D.get(c,!0,t)),void 0===y&&(y=S(c,p,v)),"normal"===y&&p in fd&&(y=fd[p]),""===t||t?(A=parseFloat(y),!0===t||isFinite(A)?
A||0:y):y}});u.each(["height","width"],function(c,p){u.cssHooks[p]={get:function(t,v,y){if(v)return!Hc.test(u.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?nb(t,p,y):Wb(t,pd,function(){return nb(t,p,y)})},set:function(t,v,y){var A,D=Dc(t),F=!bb.scrollboxSize()&&"absolute"===D.position,L=(F||y)&&"border-box"===u.css(t,"boxSizing",!1,D);y=y?va(t,p,y,L,D):0;return L&&F&&(y-=Math.ceil(t["offset"+p[0].toUpperCase()+p.slice(1)]-parseFloat(D[p])-va(t,p,"border",!1,D)-.5)),
y&&(A=ic.exec(v))&&"px"!==(A[3]||"px")&&(t.style[p]=v,v=u.css(t,p)),ra(0,v,y)}}});u.cssHooks.marginLeft=Z(bb.reliableMarginLeft,function(c,p){if(p)return(parseFloat(S(c,"marginLeft"))||c.getBoundingClientRect().left-Wb(c,{marginLeft:0},function(){return c.getBoundingClientRect().left}))+"px"});u.each({margin:"",padding:"",border:"Width"},function(c,p){u.cssHooks[c+p]={expand:function(t){var v=0,y={};for(t="string"==typeof t?t.split(" "):[t];4>v;v++)y[c+qb[v]+p]=t[v]||t[v-2]||t[0];return y}};"margin"!==
c&&(u.cssHooks[c+p].set=ra)});u.fn.extend({css:function(c,p){return aa(this,function(t,v,y){var A,D={},F=0;if(Array.isArray(v)){y=Dc(t);for(A=v.length;F<A;F++)D[v[F]]=u.css(t,v[F],!1,y);return D}return void 0!==y?u.style(t,v,y):u.css(t,v)},c,p,1<arguments.length)}});((u.Tween=Ia).prototype={constructor:Ia,init:function(c,p,t,v,y,A){this.elem=c;this.prop=t;this.easing=y||u.easing._default;this.options=p;this.start=this.now=this.cur();this.end=v;this.unit=A||(u.cssNumber[t]?"":"px")},cur:function(){var c=
Ia.propHooks[this.prop];return c&&c.get?c.get(this):Ia.propHooks._default.get(this)},run:function(c){var p,t=Ia.propHooks[this.prop];return this.options.duration?this.pos=p=u.easing[this.easing](c,this.options.duration*c,0,1,this.options.duration):this.pos=p=c,this.now=(this.end-this.start)*p+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):Ia.propHooks._default.set(this),this}}).init.prototype=Ia.prototype;(Ia.propHooks={_default:{get:function(c){var p;
return 1!==c.elem.nodeType||null!=c.elem[c.prop]&&null==c.elem.style[c.prop]?c.elem[c.prop]:(p=u.css(c.elem,c.prop,""))&&"auto"!==p?p:0},set:function(c){u.fx.step[c.prop]?u.fx.step[c.prop](c):1!==c.elem.nodeType||!u.cssHooks[c.prop]&&null==c.elem.style[fa(c.prop)]?c.elem[c.prop]=c.now:u.style(c.elem,c.prop,c.now+c.unit)}}}).scrollTop=Ia.propHooks.scrollLeft={set:function(c){c.elem.nodeType&&c.elem.parentNode&&(c.elem[c.prop]=c.now)}};u.easing={linear:function(c){return c},swing:function(c){return.5-
Math.cos(c*Math.PI)/2},_default:"swing"};u.fx=Ia.prototype.init;u.fx.step={};var yc,kc,ud=/^(?:toggle|show|hide)$/,gd=/queueHooks$/;u.Animation=u.extend(Tb,{tweeners:{"*":[function(c,p){var t=this.createTween(c,p);return E(t.elem,c,ic.exec(p),t),t}]},tweener:function(c,p){Ka(c)?(p=c,c=["*"]):c=c.match(Bb);for(var t,v=0,y=c.length;v<y;v++)t=c[v],Tb.tweeners[t]=Tb.tweeners[t]||[],Tb.tweeners[t].unshift(p)},prefilters:[function(c,p,t){var v,y,A,D,F,L,U,Y="width"in p||"height"in p,R=this,qa={},Ba=c.style,
za=c.nodeType&&rc(c),Ua=da.get(c,"fxshow");for(v in t.queue||(null==(D=u._queueHooks(c,"fx")).unqueued&&(D.unqueued=0,F=D.empty.fire,D.empty.fire=function(){D.unqueued||F()}),D.unqueued++,R.always(function(){R.always(function(){D.unqueued--;u.queue(c,"fx").length||D.empty.fire()})})),p)if(y=p[v],ud.test(y)){if(delete p[v],A=A||"toggle"===y,y===(za?"hide":"show")){if("show"!==y||!Ua||void 0===Ua[v])continue;za=!0}qa[v]=Ua&&Ua[v]||u.style(c,v)}if((p=!u.isEmptyObject(p))||!u.isEmptyObject(qa))for(v in Y&&
1===c.nodeType&&(t.overflow=[Ba.overflow,Ba.overflowX,Ba.overflowY],null==(L=Ua&&Ua.display)&&(L=da.get(c,"display")),"none"===(U=u.css(c,"display"))&&(L?U=L:(z([c],!0),L=c.style.display||L,U=u.css(c,"display"),z([c]))),("inline"===U||"inline-block"===U&&null!=L)&&"none"===u.css(c,"float")&&(p||(R.done(function(){Ba.display=L}),null==L&&(U=Ba.display,L="none"===U?"":U)),Ba.display="inline-block")),t.overflow&&(Ba.overflow="hidden",R.always(function(){Ba.overflow=t.overflow[0];Ba.overflowX=t.overflow[1];
Ba.overflowY=t.overflow[2]})),p=!1,qa)p||(Ua?"hidden"in Ua&&(za=Ua.hidden):Ua=da.access(c,"fxshow",{display:L}),A&&(Ua.hidden=!za),za&&z([c],!0),R.done(function(){for(v in za||z([c]),da.remove(c,"fxshow"),qa)u.style(c,v,qa[v])})),p=lc(za?Ua[v]:0,v,R),v in Ua||(Ua[v]=p.start,za&&(p.end=p.start,p.start=0))}],prefilter:function(c,p){p?Tb.prefilters.unshift(c):Tb.prefilters.push(c)}});u.speed=function(c,p,t){var v=c&&"object"==typeof c?u.extend({},c):{complete:t||!t&&p||Ka(c)&&c,duration:c,easing:t&&
p||p&&!Ka(p)&&p};return u.fx.off?v.duration=0:"number"!=typeof v.duration&&(v.duration in u.fx.speeds?v.duration=u.fx.speeds[v.duration]:v.duration=u.fx.speeds._default),null!=v.queue&&!0!==v.queue||(v.queue="fx"),v.old=v.complete,v.complete=function(){Ka(v.old)&&v.old.call(this);v.queue&&u.dequeue(this,v.queue)},v};u.fn.extend({fadeTo:function(c,p,t,v){return this.filter(rc).css("opacity",0).show().end().animate({opacity:p},c,t,v)},animate:function(c,p,t,v){var y=u.isEmptyObject(c),A=u.speed(p,t,
v);p=function(){var D=Tb(this,u.extend({},c),A);(y||da.get(this,"finish"))&&D.stop(!0)};return p.finish=p,y||!1===A.queue?this.each(p):this.queue(A.queue,p)},stop:function(c,p,t){var v=function(y){var A=y.stop;delete y.stop;A(t)};return"string"!=typeof c&&(t=p,p=c,c=void 0),p&&!1!==c&&this.queue(c||"fx",[]),this.each(function(){var y=!0,A=null!=c&&c+"queueHooks",D=u.timers,F=da.get(this);if(A)F[A]&&F[A].stop&&v(F[A]);else for(A in F)F[A]&&F[A].stop&&gd.test(A)&&v(F[A]);for(A=D.length;A--;)D[A].elem!==
this||null!=c&&D[A].queue!==c||(D[A].anim.stop(t),y=!1,D.splice(A,1));!y&&t||u.dequeue(this,c)})},finish:function(c){return!1!==c&&(c=c||"fx"),this.each(function(){var p=da.get(this),t=p[c+"queue"];var v=p[c+"queueHooks"];var y=u.timers,A=t?t.length:0;p.finish=!0;u.queue(this,c,[]);v&&v.stop&&v.stop.call(this,!0);for(v=y.length;v--;)y[v].elem===this&&y[v].queue===c&&(y[v].anim.stop(!0),y.splice(v,1));for(v=0;v<A;v++)t[v]&&t[v].finish&&t[v].finish.call(this);delete p.finish})}});u.each(["toggle","show",
"hide"],function(c,p){var t=u.fn[p];u.fn[p]=function(v,y,A){return null==v||"boolean"==typeof v?t.apply(this,arguments):this.animate(hb(p,!0),v,y,A)}});u.each({slideDown:hb("show"),slideUp:hb("hide"),slideToggle:hb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,p){u.fn[c]=function(t,v,y){return this.animate(p,t,v,y)}});u.timers=[];u.fx.tick=function(){var c,p=0,t=u.timers;for(yc=Date.now();p<t.length;p++)(c=t[p])()||t[p]!==c||t.splice(p--,1);t.length||
u.fx.stop();yc=void 0};u.fx.timer=function(c){u.timers.push(c);u.fx.start()};u.fx.interval=13;u.fx.start=function(){kc||(kc=!0,Ya())};u.fx.stop=function(){kc=null};u.fx.speeds={slow:600,fast:200,_default:400};u.fn.delay=function(c,p){return c=u.fx&&u.fx.speeds[c]||c,p=p||"fx",this.queue(p,function(t,v){var y=a.setTimeout(t,c);v.stop=function(){a.clearTimeout(y)}})};var Tc=Na.createElement("input");var K=Na.createElement("select").appendChild(Na.createElement("option"));Tc.type="checkbox";bb.checkOn=
""!==Tc.value;bb.optSelected=K.selected;(Tc=Na.createElement("input")).value="t";Tc.type="radio";bb.radioValue="t"===Tc.value;var H=u.expr.attrHandle;u.fn.extend({attr:function(c,p){return aa(this,u.attr,c,p,1<arguments.length)},removeAttr:function(c){return this.each(function(){u.removeAttr(this,c)})}});u.extend({attr:function(c,p,t){var v,y,A=c.nodeType;if(3!==A&&8!==A&&2!==A)return"undefined"==typeof c.getAttribute?u.prop(c,p,t):(1===A&&u.isXMLDoc(c)||(y=u.attrHooks[p.toLowerCase()]||(u.expr.match.bool.test(p)?
V:void 0)),void 0!==t?null===t?void u.removeAttr(c,p):y&&"set"in y&&void 0!==(v=y.set(c,t,p))?v:(c.setAttribute(p,t+""),t):y&&"get"in y&&null!==(v=y.get(c,p))?v:null==(v=u.find.attr(c,p))?void 0:v)},attrHooks:{type:{set:function(c,p){if(!bb.radioValue&&"radio"===p&&h(c,"input")){var t=c.value;return c.setAttribute("type",p),t&&(c.value=t),p}}}},removeAttr:function(c,p){var t=0,v=p&&p.match(Bb);if(v&&1===c.nodeType)for(;p=v[t++];)c.removeAttribute(p)}});var V={set:function(c,p,t){return!1===p?u.removeAttr(c,
t):c.setAttribute(t,t),t}};u.each(u.expr.match.bool.source.match(/\w+/g),function(c,p){var t=H[p]||u.find.attr;H[p]=function(v,y,A){var D,F,L=y.toLowerCase();return A||(F=H[L],H[L]=D,D=null!=t(v,y,A)?L:null,H[L]=F),D}});var X=/^(?:input|select|textarea|button)$/i,na=/^(?:a|area)$/i;u.fn.extend({prop:function(c,p){return aa(this,u.prop,c,p,1<arguments.length)},removeProp:function(c){return this.each(function(){delete this[u.propFix[c]||c]})}});u.extend({prop:function(c,p,t){var v,y,A=c.nodeType;if(3!==
A&&8!==A&&2!==A)return 1===A&&u.isXMLDoc(c)||(p=u.propFix[p]||p,y=u.propHooks[p]),void 0!==t?y&&"set"in y&&void 0!==(v=y.set(c,t,p))?v:c[p]=t:y&&"get"in y&&null!==(v=y.get(c,p))?v:c[p]},propHooks:{tabIndex:{get:function(c){var p=u.find.attr(c,"tabindex");return p?parseInt(p,10):X.test(c.nodeName)||na.test(c.nodeName)&&c.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});bb.optSelected||(u.propHooks.selected={get:function(c){c=c.parentNode;return c&&c.parentNode&&c.parentNode.selectedIndex,
null},set:function(c){c=c.parentNode;c&&(c.selectedIndex,c.parentNode&&c.parentNode.selectedIndex)}});u.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),function(){u.propFix[this.toLowerCase()]=this});u.fn.extend({addClass:function(c){var p,t,v,y,A,D,F,L=0;if(Ka(c))return this.each(function(U){u(this).addClass(c.call(this,U,Za(this)))});if((p=Aa(c)).length)for(;t=this[L++];)if(y=Za(t),v=1===t.nodeType&&" "+ob(y)+" "){for(D=0;A=
p[D++];)0>v.indexOf(" "+A+" ")&&(v+=A+" ");y!==(F=ob(v))&&t.setAttribute("class",F)}return this},removeClass:function(c){var p,t,v,y,A,D,F,L=0;if(Ka(c))return this.each(function(U){u(this).removeClass(c.call(this,U,Za(this)))});if(!arguments.length)return this.attr("class","");if((p=Aa(c)).length)for(;t=this[L++];)if(y=Za(t),v=1===t.nodeType&&" "+ob(y)+" "){for(D=0;A=p[D++];)for(;-1<v.indexOf(" "+A+" ");)v=v.replace(" "+A+" "," ");y!==(F=ob(v))&&t.setAttribute("class",F)}return this},toggleClass:function(c,
p){var t=typeof c,v="string"===t||Array.isArray(c);return"boolean"==typeof p&&v?p?this.addClass(c):this.removeClass(c):Ka(c)?this.each(function(y){u(this).toggleClass(c.call(this,y,Za(this),p),p)}):this.each(function(){var y,A;if(v){var D=0;var F=u(this);for(A=Aa(c);y=A[D++];)F.hasClass(y)?F.removeClass(y):F.addClass(y)}else void 0!==c&&"boolean"!==t||((y=Za(this))&&da.set(this,"__className__",y),this.setAttribute&&this.setAttribute("class",y||!1===c?"":da.get(this,"__className__")||""))})},hasClass:function(c){var p,
t=0;for(c=" "+c+" ";p=this[t++];)if(1===p.nodeType&&-1<(" "+ob(Za(p))+" ").indexOf(c))return!0;return!1}});var ta=/\r/g;u.fn.extend({val:function(c){var p,t,v,y=this[0];return arguments.length?(v=Ka(c),this.each(function(A){var D;1===this.nodeType&&(null==(D=v?c.call(this,A,u(this).val()):c)?D="":"number"==typeof D?D+="":Array.isArray(D)&&(D=u.map(D,function(F){return null==F?"":F+""})),(p=u.valHooks[this.type]||u.valHooks[this.nodeName.toLowerCase()])&&"set"in p&&void 0!==p.set(this,D,"value")||
(this.value=D))})):y?(p=u.valHooks[y.type]||u.valHooks[y.nodeName.toLowerCase()])&&"get"in p&&void 0!==(t=p.get(y,"value"))?t:"string"==typeof(t=y.value)?t.replace(ta,""):null==t?"":t:void 0}});u.extend({valHooks:{option:{get:function(c){var p=u.find.attr(c,"value");return null!=p?p:ob(u.text(c))}},select:{get:function(c){var p,t,v=c.options,y=c.selectedIndex,A="select-one"===c.type,D=A?null:[],F=A?y+1:v.length;for(t=0>y?F:A?y:0;t<F;t++)if(!(!(p=v[t]).selected&&t!==y||p.disabled||p.parentNode.disabled&&
h(p.parentNode,"optgroup"))){if(c=u(p).val(),A)return c;D.push(c)}return D},set:function(c,p){var t,v,y=c.options;p=u.makeArray(p);for(var A=y.length;A--;)((v=y[A]).selected=-1<u.inArray(u.valHooks.option.get(v),p))&&(t=!0);return t||(c.selectedIndex=-1),p}}}});u.each(["radio","checkbox"],function(){u.valHooks[this]={set:function(c,p){if(Array.isArray(p))return c.checked=-1<u.inArray(u(c).val(),p)}};bb.checkOn||(u.valHooks[this].get=function(c){return null===c.getAttribute("value")?"on":c.value})});
bb.focusin="onfocusin"in a;var pb=/^(?:focusinfocus|focusoutblur)$/,ua=function(c){c.stopPropagation()};u.extend(u.event,{trigger:function(c,p,t,v){var y,A,D,F,L,U,Y=[t||Na],R=Ob.call(c,"type")?c.type:c;var qa=Ob.call(c,"namespace")?c.namespace.split("."):[];if(y=U=A=t=t||Na,3!==t.nodeType&&8!==t.nodeType&&!pb.test(R+u.event.triggered)&&(-1<R.indexOf(".")&&(R=(qa=R.split(".")).shift(),qa.sort()),D=0>R.indexOf(":")&&"on"+R,(c=c[u.expando]?c:new u.Event(R,"object"==typeof c&&c)).isTrigger=v?2:3,c.namespace=
qa.join("."),c.rnamespace=c.namespace?new RegExp("(^|\\.)"+qa.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c.result=void 0,c.target||(c.target=t),p=null==p?[c]:u.makeArray(p,[c]),L=u.event.special[R]||{},v||!L.trigger||!1!==L.trigger.apply(t,p))){if(!v&&!L.noBubble&&!Yb(t)){var Ba=L.delegateType||R;for(pb.test(Ba+R)||(y=y.parentNode);y;y=y.parentNode)Y.push(y),A=y;A===(t.ownerDocument||Na)&&Y.push(A.defaultView||A.parentWindow||a)}for(qa=0;(y=Y[qa++])&&!c.isPropagationStopped();)U=y,c.type=1<qa?Ba:L.bindType||
R,(F=(da.get(y,"events")||{})[c.type]&&da.get(y,"handle"))&&F.apply(y,p),(F=D&&y[D])&&F.apply&&ka(y)&&(c.result=F.apply(y,p),!1===c.result&&c.preventDefault());return c.type=R,v||c.isDefaultPrevented()||L._default&&!1!==L._default.apply(Y.pop(),p)||!ka(t)||D&&Ka(t[R])&&!Yb(t)&&((A=t[D])&&(t[D]=null),u.event.triggered=R,c.isPropagationStopped()&&U.addEventListener(R,ua),t[R](),c.isPropagationStopped()&&U.removeEventListener(R,ua),u.event.triggered=void 0,A&&(t[D]=A)),c.result}},simulate:function(c,
p,t){c=u.extend(new u.Event,t,{type:c,isSimulated:!0});u.event.trigger(c,null,p)}});u.fn.extend({trigger:function(c,p){return this.each(function(){u.event.trigger(c,p,this)})},triggerHandler:function(c,p){var t=this[0];if(t)return u.event.trigger(c,p,t,!0)}});bb.focusin||u.each({focus:"focusin",blur:"focusout"},function(c,p){var t=function(v){u.event.simulate(p,v.target,u.event.fix(v))};u.event.special[p]={setup:function(){var v=this.ownerDocument||this,y=da.access(v,p);y||v.addEventListener(c,t,
!0);da.access(v,p,(y||0)+1)},teardown:function(){var v=this.ownerDocument||this,y=da.access(v,p)-1;y?da.access(v,p,y):(v.removeEventListener(c,t,!0),da.remove(v,p))}}});var Ga=a.location,zb=Date.now(),Ja=/\?/;u.parseXML=function(c){if(!c||"string"!=typeof c)return null;try{var p=(new a.DOMParser).parseFromString(c,"text/xml")}catch(t){p=void 0}return p&&!p.getElementsByTagName("parsererror").length||u.error("Invalid XML: "+c),p};var Cb=/\[\]$/,lb=/\r?\n/g,Ma=/^(?:submit|button|image|reset|file)$/i,
ub=/^(?:input|select|textarea|keygen)/i;u.param=function(c,p){var t,v=[],y=function(A,D){D=Ka(D)?D():D;v[v.length]=encodeURIComponent(A)+"\x3d"+encodeURIComponent(null==D?"":D)};if(null==c)return"";if(Array.isArray(c)||c.jquery&&!u.isPlainObject(c))u.each(c,function(){y(this.name,this.value)});else for(t in c)Q(t,c[t],p,y);return v.join("\x26")};u.fn.extend({serialize:function(){return u.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var c=u.prop(this,"elements");
return c?u.makeArray(c):this}).filter(function(){var c=this.type;return this.name&&!u(this).is(":disabled")&&ub.test(this.nodeName)&&!Ma.test(c)&&(this.checked||!Xa.test(c))}).map(function(c,p){c=u(this).val();return null==c?null:Array.isArray(c)?u.map(c,function(t){return{name:p.name,value:t.replace(lb,"\r\n")}}):{name:p.name,value:c.replace(lb,"\r\n")}}).get()}});var Mb=/%20/g,pc=/#.*$/,hc=/([?&])_=[^&]*/,Xc=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ta=/^(?:GET|HEAD)$/,Ic=/^\/\//,wc={},qd={},Fd="*/".concat("*"),
vd=Na.createElement("a");vd.href=Ga.href;u.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ga.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ga.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset\x3dUTF-8",accepts:{"*":Fd,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":u.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(c,p){return p?sc(sc(c,u.ajaxSettings),p):sc(u.ajaxSettings,c)},ajaxPrefilter:zc(wc),ajaxTransport:zc(qd),ajax:function(c,p){function t(Wa,Db,Fc,ad){var uc,Gc,cc,dc,ac,Sa=Db;La||(La=!0,F&&a.clearTimeout(F),v=void 0,A=ad||"",Ca.readyState=0<Wa?4:0,uc=200<=Wa&&300>Wa||304===Wa,Fc&&(dc=function(kb,rb,sb){for(var Xb,Lb,fb,
Qa,vb=kb.contents,ib=kb.dataTypes;"*"===ib[0];)ib.shift(),void 0===Xb&&(Xb=kb.mimeType||rb.getResponseHeader("Content-Type"));if(Xb)for(Lb in vb)if(vb[Lb]&&vb[Lb].test(Xb)){ib.unshift(Lb);break}if(ib[0]in sb)fb=ib[0];else{for(Lb in sb){if(!ib[0]||kb.converters[Lb+" "+ib[0]]){fb=Lb;break}Qa||(Qa=Lb)}fb=fb||Qa}if(fb)return fb!==ib[0]&&ib.unshift(fb),sb[fb]}(R,Ca,Fc)),dc=function(kb,rb,sb,Xb){var Lb,fb,Qa,vb,ib,vc={},Mc=kb.dataTypes.slice();if(Mc[1])for(Qa in kb.converters)vc[Qa.toLowerCase()]=kb.converters[Qa];
for(fb=Mc.shift();fb;)if(kb.responseFields[fb]&&(sb[kb.responseFields[fb]]=rb),!ib&&Xb&&kb.dataFilter&&(rb=kb.dataFilter(rb,kb.dataType)),ib=fb,fb=Mc.shift())if("*"===fb)fb=ib;else if("*"!==ib&&ib!==fb){if(!(Qa=vc[ib+" "+fb]||vc["* "+fb]))for(Lb in vc)if((vb=Lb.split(" "))[1]===fb&&(Qa=vc[ib+" "+vb[0]]||vc["* "+vb[0]])){!0===Qa?Qa=vc[Lb]:!0!==vc[Lb]&&(fb=vb[0],Mc.unshift(vb[1]));break}if(!0!==Qa)if(Qa&&kb["throws"])rb=Qa(rb);else try{rb=Qa(rb)}catch(md){return{state:"parsererror",error:Qa?md:"No conversion from "+
ib+" to "+fb}}}return{state:"success",data:rb}}(R,dc,Ca,uc),uc?(R.ifModified&&((ac=Ca.getResponseHeader("Last-Modified"))&&(u.lastModified[y]=ac),(ac=Ca.getResponseHeader("etag"))&&(u.etag[y]=ac)),204===Wa||"HEAD"===R.type?Sa="nocontent":304===Wa?Sa="notmodified":(Sa=dc.state,Gc=dc.data,uc=!(cc=dc.error))):(cc=Sa,!Wa&&Sa||(Sa="error",0>Wa&&(Wa=0))),Ca.status=Wa,Ca.statusText=(Db||Sa)+"",uc?za.resolveWith(qa,[Gc,Sa,Ca]):za.rejectWith(qa,[Ca,Sa,cc]),Ca.statusCode(jb),jb=void 0,L&&Ba.trigger(uc?"ajaxSuccess":
"ajaxError",[Ca,R,uc?Gc:cc]),Ua.fireWith(qa,[Ca,Sa]),L&&(Ba.trigger("ajaxComplete",[Ca,R]),--u.active||u.event.trigger("ajaxStop")))}"object"==typeof c&&(p=c,c=void 0);p=p||{};var v,y,A,D,F,L,U,Y,R=u.ajaxSetup({},p),qa=R.context||R,Ba=R.context&&(qa.nodeType||qa.jquery)?u(qa):u.event,za=u.Deferred(),Ua=u.Callbacks("once memory"),jb=R.statusCode||{},nc={},Kb={},bc="canceled",Ca={readyState:0,getResponseHeader:function(Wa){var Db;if(La){if(!D)for(D={};Db=Xc.exec(A);)D[Db[1].toLowerCase()+" "]=(D[Db[1].toLowerCase()+
" "]||[]).concat(Db[2]);Db=D[Wa.toLowerCase()+" "]}return null==Db?null:Db.join(", ")},getAllResponseHeaders:function(){return La?A:null},setRequestHeader:function(Wa,Db){return null==La&&(Wa=Kb[Wa.toLowerCase()]=Kb[Wa.toLowerCase()]||Wa,nc[Wa]=Db),this},overrideMimeType:function(Wa){return null==La&&(R.mimeType=Wa),this},statusCode:function(Wa){var Db;if(Wa)if(La)Ca.always(Wa[Ca.status]);else for(Db in Wa)jb[Db]=[jb[Db],Wa[Db]];return this},abort:function(Wa){Wa=Wa||bc;return v&&v.abort(Wa),t(0,
Wa),this}};if(za.promise(Ca),R.url=((c||R.url||Ga.href)+"").replace(Ic,Ga.protocol+"//"),R.type=p.method||p.type||R.method||R.type,R.dataTypes=(R.dataType||"*").toLowerCase().match(Bb)||[""],null==R.crossDomain){c=Na.createElement("a");try{c.href=R.url,c.href=c.href,R.crossDomain=vd.protocol+"//"+vd.host!=c.protocol+"//"+c.host}catch(Wa){R.crossDomain=!0}}if(R.data&&R.processData&&"string"!=typeof R.data&&(R.data=u.param(R.data,R.traditional)),Vc(wc,R,p,Ca),La)return Ca;for(U in(L=u.event&&R.global)&&
0==u.active++&&u.event.trigger("ajaxStart"),R.type=R.type.toUpperCase(),R.hasContent=!Ta.test(R.type),y=R.url.replace(pc,""),R.hasContent?R.data&&R.processData&&0===(R.contentType||"").indexOf("application/x-www-form-urlencoded")&&(R.data=R.data.replace(Mb,"+")):(Y=R.url.slice(y.length),R.data&&(R.processData||"string"==typeof R.data)&&(y+=(Ja.test(y)?"\x26":"?")+R.data,delete R.data),!1===R.cache&&(y=y.replace(hc,"$1"),Y=(Ja.test(y)?"\x26":"?")+"_\x3d"+zb++ +Y),R.url=y+Y),R.ifModified&&(u.lastModified[y]&&
Ca.setRequestHeader("If-Modified-Since",u.lastModified[y]),u.etag[y]&&Ca.setRequestHeader("If-None-Match",u.etag[y])),(R.data&&R.hasContent&&!1!==R.contentType||p.contentType)&&Ca.setRequestHeader("Content-Type",R.contentType),Ca.setRequestHeader("Accept",R.dataTypes[0]&&R.accepts[R.dataTypes[0]]?R.accepts[R.dataTypes[0]]+("*"!==R.dataTypes[0]?", "+Fd+"; q\x3d0.01":""):R.accepts["*"]),R.headers)Ca.setRequestHeader(U,R.headers[U]);if(R.beforeSend&&(!1===R.beforeSend.call(qa,Ca,R)||La))return Ca.abort();
if(bc="abort",Ua.add(R.complete),Ca.done(R.success),Ca.fail(R.error),v=Vc(qd,R,p,Ca)){if(Ca.readyState=1,L&&Ba.trigger("ajaxSend",[Ca,R]),La)return Ca;R.async&&0<R.timeout&&(F=a.setTimeout(function(){Ca.abort("timeout")},R.timeout));try{var La=!1;v.send(nc,t)}catch(Wa){if(La)throw Wa;t(-1,Wa)}}else t(-1,"No Transport");return Ca},getJSON:function(c,p,t){return u.get(c,p,t,"json")},getScript:function(c,p){return u.get(c,void 0,p,"script")}});u.each(["get","post"],function(c,p){u[p]=function(t,v,y,
A){return Ka(v)&&(A=A||y,y=v,v=void 0),u.ajax(u.extend({url:t,type:p,dataType:A,data:v,success:y},u.isPlainObject(t)&&t))}});u._evalUrl=function(c,p){return u.ajax({url:c,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){u.globalEval(t,p)}})};u.fn.extend({wrapAll:function(c){var p;return this[0]&&(Ka(c)&&(c=c.call(this[0])),p=u(c,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&p.insertBefore(this[0]),p.map(function(){for(var t=
this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(c){return Ka(c)?this.each(function(p){u(this).wrapInner(c.call(this,p))}):this.each(function(){var p=u(this),t=p.contents();t.length?t.wrapAll(c):p.append(c)})},wrap:function(c){var p=Ka(c);return this.each(function(t){u(this).wrapAll(p?c.call(this,t):c)})},unwrap:function(c){return this.parent(c).not("body").each(function(){u(this).replaceWith(this.childNodes)}),this}});u.expr.pseudos.hidden=function(c){return!u.expr.pseudos.visible(c)};
u.expr.pseudos.visible=function(c){return!!(c.offsetWidth||c.offsetHeight||c.getClientRects().length)};u.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(c){}};var Xd={0:200,1223:204},hd=u.ajaxSettings.xhr();bb.cors=!!hd&&"withCredentials"in hd;bb.ajax=hd=!!hd;u.ajaxTransport(function(c){var p,t;if(bb.cors||hd&&!c.crossDomain)return{send:function(v,y){var A,D=c.xhr();if(D.open(c.type,c.url,c.async,c.username,c.password),c.xhrFields)for(A in c.xhrFields)D[A]=c.xhrFields[A];for(A in c.mimeType&&
D.overrideMimeType&&D.overrideMimeType(c.mimeType),c.crossDomain||v["X-Requested-With"]||(v["X-Requested-With"]="XMLHttpRequest"),v)D.setRequestHeader(A,v[A]);p=function(F){return function(){p&&(p=t=D.onload=D.onerror=D.onabort=D.ontimeout=D.onreadystatechange=null,"abort"===F?D.abort():"error"===F?"number"!=typeof D.status?y(0,"error"):y(D.status,D.statusText):y(Xd[D.status]||D.status,D.statusText,"text"!==(D.responseType||"text")||"string"!=typeof D.responseText?{binary:D.response}:{text:D.responseText},
D.getAllResponseHeaders()))}};D.onload=p();t=D.onerror=D.ontimeout=p("error");void 0!==D.onabort?D.onabort=t:D.onreadystatechange=function(){4===D.readyState&&a.setTimeout(function(){p&&t()})};p=p("abort");try{D.send(c.hasContent&&c.data||null)}catch(F){if(p)throw F;}},abort:function(){p&&p()}}});u.ajaxPrefilter(function(c){c.crossDomain&&(c.contents.script=!1)});u.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},
converters:{"text script":function(c){return u.globalEval(c),c}}});u.ajaxPrefilter("script",function(c){void 0===c.cache&&(c.cache=!1);c.crossDomain&&(c.type="GET")});u.ajaxTransport("script",function(c){var p,t;if(c.crossDomain||c.scriptAttrs)return{send:function(v,y){p=u("\x3cscript\x3e").attr(c.scriptAttrs||{}).prop({charset:c.scriptCharset,src:c.url}).on("load error",t=function(A){p.remove();t=null;A&&y("error"===A.type?404:200,A.type)});Na.head.appendChild(p[0])},abort:function(){t&&t()}}});
var Gd,Hd=[],wd=/(=)\?(?=&|$)|\?\?/;u.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var c=Hd.pop()||u.expando+"_"+zb++;return this[c]=!0,c}});u.ajaxPrefilter("json jsonp",function(c,p,t){var v,y,A,D=!1!==c.jsonp&&(wd.test(c.url)?"url":"string"==typeof c.data&&0===(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&wd.test(c.data)&&"data");if(D||"jsonp"===c.dataTypes[0])return v=c.jsonpCallback=Ka(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,D?c[D]=c[D].replace(wd,"$1"+v):
!1!==c.jsonp&&(c.url+=(Ja.test(c.url)?"\x26":"?")+c.jsonp+"\x3d"+v),c.converters["script json"]=function(){return A||u.error(v+" was not called"),A[0]},c.dataTypes[0]="json",y=a[v],a[v]=function(){A=arguments},t.always(function(){void 0===y?u(a).removeProp(v):a[v]=y;c[v]&&(c.jsonpCallback=p.jsonpCallback,Hd.push(v));A&&Ka(y)&&y(A[0]);A=y=void 0}),"script"});bb.createHTMLDocument=((Gd=Na.implementation.createHTMLDocument("").body).innerHTML="\x3cform\x3e\x3c/form\x3e\x3cform\x3e\x3c/form\x3e",2===
Gd.childNodes.length);u.parseHTML=function(c,p,t){return"string"!=typeof c?[]:("boolean"==typeof p&&(t=p,p=!1),p||(bb.createHTMLDocument?((v=(p=Na.implementation.createHTMLDocument("")).createElement("base")).href=Na.location.href,p.head.appendChild(v)):p=Na),A=!t&&[],(y=Qc.exec(c))?[p.createElement(y[1])]:(y=oa([c],p,A),A&&A.length&&u(A).remove(),u.merge([],y.childNodes)));var v,y,A};u.fn.load=function(c,p,t){var v,y,A,D=this,F=c.indexOf(" ");return-1<F&&(v=ob(c.slice(F)),c=c.slice(0,F)),Ka(p)?(t=
p,p=void 0):p&&"object"==typeof p&&(y="POST"),0<D.length&&u.ajax({url:c,type:y||"GET",dataType:"html",data:p}).done(function(L){A=arguments;D.html(v?u("\x3cdiv\x3e").append(u.parseHTML(L)).find(v):L)}).always(t&&function(L,U){D.each(function(){t.apply(this,A||[L.responseText,U,L])})}),this};u.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,p){u.fn[p]=function(t){return this.on(p,t)}});u.expr.pseudos.animated=function(c){return u.grep(u.timers,function(p){return c===
p.elem}).length};u.offset={setOffset:function(c,p,t){var v,y,A,D=u.css(c,"position"),F=u(c),L={};"static"===D&&(c.style.position="relative");var U=F.offset();var Y=u.css(c,"top");var R=u.css(c,"left");("absolute"===D||"fixed"===D)&&-1<(Y+R).indexOf("auto")?(A=(v=F.position()).top,y=v.left):(A=parseFloat(Y)||0,y=parseFloat(R)||0);Ka(p)&&(p=p.call(c,t,u.extend({},U)));null!=p.top&&(L.top=p.top-U.top+A);null!=p.left&&(L.left=p.left-U.left+y);"using"in p?p.using.call(c,L):F.css(L)}};u.fn.extend({offset:function(c){if(arguments.length)return void 0===
c?this:this.each(function(y){u.offset.setOffset(this,c,y)});var p,t,v=this[0];return v?v.getClientRects().length?(p=v.getBoundingClientRect(),t=v.ownerDocument.defaultView,{top:p.top+t.pageYOffset,left:p.left+t.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var c,p=this[0],t={top:0,left:0};if("fixed"===u.css(p,"position"))var v=p.getBoundingClientRect();else{v=this.offset();var y=p.ownerDocument;for(c=p.offsetParent||y.documentElement;c&&(c===y.body||c===y.documentElement)&&
"static"===u.css(c,"position");)c=c.parentNode;c&&c!==p&&1===c.nodeType&&((t=u(c).offset()).top+=u.css(c,"borderTopWidth",!0),t.left+=u.css(c,"borderLeftWidth",!0))}return{top:v.top-t.top-u.css(p,"marginTop",!0),left:v.left-t.left-u.css(p,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent;c&&"static"===u.css(c,"position");)c=c.offsetParent;return c||ec})}});u.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(c,p){var t="pageYOffset"===
p;u.fn[c]=function(v){return aa(this,function(y,A,D){var F;if(Yb(y)?F=y:9===y.nodeType&&(F=y.defaultView),void 0===D)return F?F[p]:y[A];F?F.scrollTo(t?F.pageXOffset:D,t?D:F.pageYOffset):y[A]=D},c,v,arguments.length)}});u.each(["top","left"],function(c,p){u.cssHooks[p]=Z(bb.pixelPosition,function(t,v){if(v)return v=S(t,p),$b.test(v)?u(t).position()[p]+"px":v})});u.each({Height:"height",Width:"width"},function(c,p){u.each({padding:"inner"+c,content:p,"":"outer"+c},function(t,v){u.fn[v]=function(y,A){var D=
arguments.length&&(t||"boolean"!=typeof y),F=t||(!0===y||!0===A?"margin":"border");return aa(this,function(L,U,Y){var R;return Yb(L)?0===v.indexOf("outer")?L["inner"+c]:L.document.documentElement["client"+c]:9===L.nodeType?(R=L.documentElement,Math.max(L.body["scroll"+c],R["scroll"+c],L.body["offset"+c],R["offset"+c],R["client"+c])):void 0===Y?u.css(L,U,F):u.style(L,U,Y,F)},p,D?y:void 0,D)}})});u.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(c,p){u.fn[p]=function(t,v){return 0<arguments.length?this.on(p,null,t,v):this.trigger(p)}});u.fn.extend({hover:function(c,p){return this.mouseenter(c).mouseleave(p||c)}});u.fn.extend({bind:function(c,p,t){return this.on(c,null,p,t)},unbind:function(c,p){return this.off(c,null,p)},delegate:function(c,p,t,v){return this.on(p,c,t,v)},undelegate:function(c,p,t){return 1===arguments.length?this.off(c,"**"):this.off(p,c||"**",t)}});u.proxy=function(c,p){var t,v,y;if("string"==typeof p&&(t=c[p],
p=c,c=t),Ka(c))return v=Gb.call(arguments,2),(y=function(){return c.apply(p||this,v.concat(Gb.call(arguments)))}).guid=c.guid=c.guid||u.guid++,y};u.holdReady=function(c){c?u.readyWait++:u.ready(!0)};u.isArray=Array.isArray;u.parseJSON=JSON.parse;u.nodeName=h;u.isFunction=Ka;u.isWindow=Yb;u.camelCase=w;u.type=g;u.now=Date.now;u.isNumeric=function(c){var p=u.type(c);return("number"===p||"string"===p)&&!isNaN(c-parseFloat(c))};"function"==typeof define&&define.amd&&define("jquery",[],function(){return u});
var Yd=a.jQuery,Zd=a.$;return u.noConflict=function(c){return a.$===u&&(a.$=Zd),c&&a.jQuery===u&&(a.jQuery=Yd),u},n||(a.jQuery=a.$=u),u});window.Granite=window.Granite||{};(function(a,n){a.Util=function(){return{patchText:function(k,g){if(g)if(n.isArray(g))for(var f=0;f<g.length;f++)k=k.replace("{"+f+"}",g[f]);else k=k.replace("{0}",g);return k}}}()})(Granite,jQuery);
(function(a,n,k){a.HTTP=function(){var g=null,f=/^(?:http|https):\/\/[^\/]+(\/.*)\/(?:etc(\/.*)*\/clientlibs|libs(\/.*)*\/clientlibs|apps(\/.*)*\/clientlibs).*\.js(\?.*)?$/,h=/[^1\w-\.!~\*'\(\)\/%;:@&=\$,]/,m=!1,e={getSchemeAndAuthority:function(b){try{if(-1===b.indexOf("://"))return"";var d=b.indexOf("/",b.indexOf("://")+3);return-1===d?b:b.substring(0,d)}catch(l){return""}},getContextPath:function(){return g},detectContextPath:function(){try{if(window.CQURLInfo)g=CQURLInfo.contextPath||"";else{for(var b=
document.getElementsByTagName("script"),d=0;d<b.length;d++){var l=f.exec(b[d].src);if(l){g=l[1];return}}g=""}}catch(q){}},externalize:function(b){try{0===b.indexOf("/")&&g&&0!==b.indexOf(g+"/")&&(b=g+b)}catch(d){}return b},internalize:function(b,d){if("/"===b.charAt(0))return g===b?"":g&&0===b.indexOf(g+"/")?b.substring(g.length):b;d||(d=document);d=e.getSchemeAndAuthority(d.location.href);var l=e.getSchemeAndAuthority(b);return d===l?b.substring(l.length+(g?g.length:0)):b},getPath:function(b){if(b)b=
e.removeParameters(b),b=e.removeAnchor(b);else{if(window.CQURLInfo&&CQURLInfo.requestPath)return CQURLInfo.requestPath;b=window.location.pathname}b=e.internalize(b);var d=b.indexOf(".",b.lastIndexOf("/"));-1!==d&&(b=b.substring(0,d));return b},removeAnchor:function(b){return-1!==b.indexOf("#")?b.substring(0,b.indexOf("#")):b},removeParameters:function(b){return-1!==b.indexOf("?")?b.substring(0,b.indexOf("?")):b},encodePathOfURI:function(b){if(-1!==b.indexOf("?")){b=b.split("?");var d="?"}else-1!==
b.indexOf("#")?(b=b.split("#"),d="#"):b=[b];h.test(b[0])&&(b[0]=e.encodePath(b[0]));return b.join(d)},encodePath:function(b){b=encodeURI(b).replace(/%5B/g,"[").replace(/%5D/g,"]");b=b.replace(/\+/g,"%2B");b=b.replace(/\?/g,"%3F");b=b.replace(/;/g,"%3B");b=b.replace(/#/g,"%23");b=b.replace(/=/g,"%3D");b=b.replace(/\$/g,"%24");b=b.replace(/,/g,"%2C");b=b.replace(/'/g,"%27");return b=b.replace(/"/g,"%22")},handleLoginRedirect:function(){if(!m){m=!0;alert(a.I18n.get("Your request could not be completed because you have been signed out."));
var b=n.getTopWindow().document.location;b.href=e.externalize(sling.LOGIN_URL)+"?resource\x3d"+encodeURIComponent(b.pathname+b.search+b.hash)}},getXhrHook:function(b,d,l){d=d||"GET";return window.G_XHR_HOOK&&k.isFunction(G_XHR_HOOK)?(b={url:b,method:d},l&&(b.params=l),G_XHR_HOOK(b)):null},eval:function(b){"object"!==typeof b&&(b=k.ajax({url:b,type:"get",async:!1}));try{return eval("("+(b.body?b.body:b.responseText)+")")}catch(d){}return null}};return e}()})(Granite,Granite.Util,jQuery);
(function(a,n,k,g,f){n.I18n=function(){var h={},m="/aemapi/v6/common/i18n/dict.",e=".b2c",b=".json",d=void 0,l=!1,q=null,r={},w=!1;r.LOCALE_DEFAULT="en";r.PSEUDO_LANGUAGE="zz";r.PSEUDO_PATTERN_KEY="_pseudoPattern_";r.init=function(x){x=x||{};this.setLocale(x.locale);this.setUrlPrefix(x.urlPrefix);this.setUrlSuffix(x.urlSuffix)};r.setLocale=function(x){x&&(d=f("#language").val()||x)};r.getLocale=function(){f.isFunction(d)&&(d=d());return f("#language").val()||r.LOCALE_DEFAULT};r.setUrlPrefix=function(x){x&&
(m=x,w=!0)};r.setUrlSuffix=function(x){x&&(b=x,w=!0)};r.getDictionary=function(x){x=x||r.getLocale();if(!h[x]){l=0===x.indexOf(r.PSEUDO_LANGUAGE);try{var C=f.ajax;var E=x,z=f("#i18nAppsParam").val();z&&-1<z.length&&(e="bc"==z?".bc":e+("."+z));if(w)var T=m+E+e+b;else{var ca=f("html").attr("data-i18n-dictionary-src");T=ca?ca.replace("{locale}",encodeURIComponent(E)).replace("{+locale}",E):m+E+e+b}var oa=C.call(f,T,{async:!1,dataType:"json"});h[x]=f.parseJSON(oa.responseText)}catch(ba){}h[x]||(h[x]=
{})}return h[x]};r.get=function(x,C,E){var z;var T=r.getDictionary();var ca=l?r.PSEUDO_PATTERN_KEY:E?x+" (("+E+"))":x;T&&(z=T[ca]);z||(z=x);l&&(z=z.replace("{string}",x).replace("{comment}",E?E:""));return k.patchText(z,C)};r.getVar=function(x,C){return x?r.get(x,null,C):null};r.getLanguages=function(){if(!q)try{var x=g.eval("/libs/wcm/core/resources/languages.overlay.infinity.json");f.each(x,function(C,E){E.title=r.getVar(E.language);E.title&&E.country&&"*"!==E.country&&(E.title+=" ("+r.getVar(E.country)+
")")});q=x}catch(C){q={}}return q};r.parseLocale=function(x){if(!x)return null;var C=x.indexOf("_");0>C&&(C=x.indexOf("-"));if(0>C){var E=x;C=null}else E=x.substring(0,C),C=x.substring(C+1);return{code:x,language:E,country:C}};return r}()})(document,Granite,Granite.Util,Granite.HTTP,jQuery);Granite.HTTP.detectContextPath();var jaaulde=window.jaaulde||{};jaaulde.utils=jaaulde.utils||{};
jaaulde.utils.cookies=function(){var a={expiresAt:null,path:"/",domain:null,secure:!1};var n=function(h){if("object"!==typeof h||null===h)var m=a;else{m={expiresAt:a.expiresAt,path:a.path,domain:a.domain,secure:a.secure};if("object"===typeof h.expiresAt&&h.expiresAt instanceof Date)m.expiresAt=h.expiresAt;else if("number"===typeof h.hoursToLive&&0!==h.hoursToLive){var e=new Date;e.setTime(e.getTime()+36E5*h.hoursToLive);m.expiresAt=e}"string"===typeof h.path&&""!==h.path&&(m.path=h.path);"string"===
typeof h.domain&&""!==h.domain&&(m.domain=h.domain);!0===h.secure&&(m.secure=h.secure)}return m};var k=function(h){h=n(h);return("object"===typeof h.expiresAt&&h.expiresAt instanceof Date?"; expires\x3d"+h.expiresAt.toGMTString():"")+"; path\x3d"+h.path+("string"===typeof h.domain?"; domain\x3d"+h.domain:"")+(!0===h.secure?"; secure":"")};var g=function(){var h={},m,e=document.cookie.split(";");for(m=0;m<e.length;m+=1){var b=e[m].split("\x3d");var d=b[0].replace(/^\s*/,"").replace(/\s*$/,"");try{var l=
decodeURIComponent(b[1])}catch(r){l=b[1]}if("object"===typeof JSON&&null!==JSON&&"function"===typeof JSON.parse)try{var q=l;l=JSON.parse(l)}catch(r){l=q}h[d]=l}return h};var f=function(){};f.prototype.get=function(h){var m,e=g();if("string"===typeof h)var b="undefined"!==typeof e[h]?e[h]:null;else if("object"===typeof h&&null!==h)for(m in b={},h)b[h[m]]="undefined"!==typeof e[h[m]]?e[h[m]]:null;else b=e;return b};f.prototype.filter=function(h){var m,e={},b=g();"string"===typeof h&&(h=new RegExp(h));
for(m in b)m.match(h)&&(e[m]=b[m]);return e};f.prototype.set=function(h,m,e){if("object"!==typeof e||null===e)e={};if("undefined"===typeof m||null===m)m="",e.hoursToLive=-8760;else if("string"!==typeof m)if("object"===typeof JSON&&null!==JSON&&"function"===typeof JSON.stringify)m=JSON.stringify(m);else throw Error("cookies.set() received non-string value and could not serialize.");e=k(e);document.cookie=h+"\x3d"+encodeURIComponent(m)+e};f.prototype.del=function(h,m){var e={},b;if("object"!==typeof m||
null===m)m={};"boolean"===typeof h&&!0===h?e=this.get():"string"===typeof h&&(e[h]=!0);for(b in e)"string"===typeof b&&""!==b&&this.set(b,null,m)};f.prototype.test=function(){var h=!1;this.set("cT","data");"data"===this.get("cT")&&(this.del("cT"),h=!0);return h};f.prototype.setOptions=function(h){"object"!==typeof h&&(h=null);a=n(h)};return new f}();
(function(){window.jQuery&&function(a){a.cookies=jaaulde.utils.cookies;a.each({cookify:function(n){return this.each(function(){var k,g=["name","id"],f=a(this),h;for(k in g)if(!isNaN(k)){var m=f.attr(g[k]);if("string"===typeof m&&""!==m){f.is(":checkbox, :radio")?f.attr("checked")&&(h=f.val()):h=f.is(":input")?f.val():f.html();if("string"!==typeof h||""===h)h=null;a.cookies.set(m,h,n);break}}})},cookieFill:function(){return this.each(function(){var n,k,g=["name","id"],f=a(this);for(k=function(){n=
g.pop();return!!n};k();){var h=f.attr(n);if("string"===typeof h&&""!==h){k=a.cookies.get(h);null!==k&&(f.is(":checkbox, :radio")?f.val()===k?f.attr("checked","checked"):f.removeAttr("checked"):f.is(":input")?f.val(k):f.html(k));break}}})},cookieBind:function(n){return this.each(function(){var k=a(this);k.cookieFill().change(function(){k.cookify(n)})})}},function(n){a.fn[n]=this})}(window.jQuery)})();Granite.I18n.setLocale($("#language").val());
var NUMBER_GROUP_PATTERN=/\B(?=(\d{3})+(?!\d))/g,SAUDI_CURRENCY_SYMBOL=String.fromCodePoint(8385);function getMultistoreSiteCode(a){var n={levant:"jo",levant_ar:"jo_ar",n_africa:"ma"};if(n[a])return n[a];if("ae"===a||"ae_ar"===a){n="ae ae_ar kw kw_ar om om_ar bh bh_ar qa qa_ar".split(" ");var k=$.cookies.get("estoreSitecode");if(k&&n.includes(k))return k}return a}
var currencyComma=function(a,n){null!=n&&(n=n.toLowerCase());if(null===a||""===a)return"";a=String(a);var k=$("#siteCode").val();if(-1<a.indexOf(".")){var g=a.split(".");1<g.length&&2>g[1].length?a+="0":2<g[1].length&&(a=Number(a).toFixed(2))}g="";var f=getMultistoreSiteCode(k);switch(n){case "usd":if("n_africa"===k)return g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g," "):a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+".00",g+" DH";if("iq_ar"===k||"iq_ku"===k)return g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,
","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00",g+" $";g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"$"+g;case "cad":if("ca_fr"===k)return-1<a.indexOf(".")?(g=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),g=g.replace(".",",")):g=a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",g+" $";g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"$"+g;case "eur":if("de"===k||"es"===k||"be_fr"===
k||"it"===k||"pt"===k)return-1<a.indexOf(".")?(g=a.replace(".",","),g=g.replace(/\B(?=(\d{3})+(?!\d))/g,".")):g=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00","be_fr"===k?g:g+" \u20ac";if("fi"===k||"fr"===k||"sk"===k||"at"===k||"ee"===k||"lt"===k||"lv"===k||"hr"===k)return-1<a.indexOf(".")?(g=a.replace(".",","),g=g.replace(/\B(?=(\d{3})+(?!\d))/g," ")):g=a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",g+" \u20ac";if("si"==k)return-1<a.indexOf(".")?(g=a.replace(".",","),g=g.replace(/\B(?=(\d{3})+(?!\d))/g,
".")):g=a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+",00",g+" \u20ac";if("bg"==k)return-1<a.indexOf(".")?(g=a.replace(".","\x3csup\x3e"),g=g.replace(/\B(?=(\d{3})+(?!\d))/g,"")+"\x3c/sup\x3e"):g=a.replace(/\B(?=(\d{3})+(?!\d))/g,"")+"\u2070\u2070",g+" \u20ac";-1<a.indexOf(".")?(g=a.replace(".",","),g=g.replace(/\B(?=(\d{3})+(?!\d))/g,".")):g=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00";return"be"===k||"nl"===k?g:"gr"===k?g+" \u20ac":"\u20ac "+g;case "gbp":return g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,
","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","\u00a3"+g;case "sek":return g=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),g+" kr";case "dkk":return-1<a.indexOf(".")&&(a=parseFloat(a).toFixed(0)),g=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),g+" kr";case "nok":return g=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),g+" kr";case "brl":return-1<a.indexOf(".")?(g=a.replace(".",","),g=g.replace(/\B(?=(\d{3})+(?!\d))/g,".")):g=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00","R$ "+g;case "inr":return k=".00",-1<a.indexOf(".")?
(n=a.substring(0,a.indexOf(".")),k=a.substring(a.indexOf("."))):n=a,"\u20b9 "+(n+k);case "krw":return g=a.replace(/\B(?=(\d{3})+(?!\d))/g,","),g+"\uc6d0";case "aed":if("ae_ar"===k)return g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","kw_ar"==f?g+" \u062f.\u0643":"om_ar"==f?g+" \u0631.\u0639.":"bh_ar"==f?g+" .\u062f.\u0628":"qa_ar"==f?g+" \u0631.\u0642":g+" \u062f.\u0625";g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,
",")+".00";return"kw"==f?g+" KD":"bh"==f?g+" BD":"om"==f?g+" RO":"qa"==f?g+" QAR":g+" AED";case "rub":return-1<a.indexOf(".")?(g=a.replace(".",","),g=g.replace(/\B(?=(\d{3})+(?!\d))/g," ")):g=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),g+" \u20bd";case "twd":return g=a.replace(/\B(?=(\d{3})+(?!\d))/g,","),"NT$"+g;case "czk":return-1<a.indexOf(".")?(g=a.replace(".",","),g=g.replace(/\B(?=(\d{3})+(?!\d))/g," ")):g=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),g+" K\u010d";case "myr":return g=-1<a.indexOf(".")?
a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","RM "+g;case "idr":return g=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"Rp "+g;case "pln":return-1<a.indexOf(".")?(g=a.replace(".",","),g=g.replace(/\B(?=(\d{3})+(?!\d))/g," ")):g=a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",g+" z\u0142";case "ron":return-1<a.indexOf(".")?(g=a.replace(".",","),g=g.replace(/\B(?=(\d{3})+(?!\d))/g,".")):g=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",g+" lei";case "php":return g=-1<a.indexOf(".")?
a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","\u20b1"+g;case "sar":return g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","sa"==siteCode?g+" "+SAUDI_CURRENCY_SYMBOL:SAUDI_CURRENCY_SYMBOL+" "+g;case "pab":return g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","US$ "+g;case "mxn":return g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,
",")+".00","$ "+g;case "ars":return g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","$ "+g;case "pen":return g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","s/ "+g;case "clp":return g=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"$ "+g;case "cop":return g=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"$ "+g;case "vnd":return g=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),g+" VND";case "chf":if("ch"===k||
"ch_fr"===k)return-1<a.indexOf(".")?(g=a.replace(".",","),g=g.replace(/\B(?=(\d{3})+(?!\d))/g,".")):g=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",g+" CHF";g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,"'"):a.replace(/\B(?=(\d{3})+(?!\d))/g,"'")+".00";return"CHF "+g;case "hkd":return g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","HK$ "+g;case "jod":case "lbp":g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,
",")+".00";if("jo"==f)return g+" JD";if("jo_ar"==f)return g+" \u062f.\u0627";break;case "pkr":return g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","Rs. "+g;case "ils":return g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00",g+" \u20aa";case "kzt":return g=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),g+" \u20b8";case "egp":return g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,
",")+".00",g+" \u062c.\u0645.";case "huf":return a=String(Math.ceil(parseFloat(a))),g=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),g+" Ft";case "hrk":return-1<a.indexOf(".")?(g=a.replace(".",","),g=g.replace(/\B(?=(\d{3})+(?!\d))/g,".")+" kn"):g=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00 kn",g;case "uah":return-1<a.indexOf(".")?(g=a.replace(".",","),g=g.replace(/\B(?=(\d{3})+(?!\d))/g," ")):g=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),g+" \u20b4";case "jpy":case "yen":return-1<a.indexOf(".")&&(a=parseFloat(a).toFixed(0)),
g=a.replace(/\B(?=(\d{3})+(?!\d))/g,","),g+"\u5186";case "iqd":if(-1<a.indexOf(".")?(g=a.replace(".",","),g=g.replace(/\B(?=(\d{3})+(?!\d))/g," ")):g=a.replace(/\B(?=(\d{3})+(?!\d))/g,","),"iq_ar"===k||"iq_ku"===k)return g+"\u062f.\u0639";case "mad":return g=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g," "):a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+".00",g+" DH";case "cny":return"\uffe5 "+a;case "try":return-1<a.indexOf(".")?(g=a.replace(".",","),g=g.replace(/\B(?=(\d{3})+(?!\d))/g,".")):g=a.replace(/\B(?=(\d{3})+(?!\d))/g,
".")+",00",g+" TL";case "bgn":return-1<a.indexOf(".")?(g=a.replace(".","\x3csup\x3e"),g=g.replace(/\B(?=(\d{3})+(?!\d))/g,"")+"\x3c/sup\x3e"):g=a.replace(/\B(?=(\d{3})+(?!\d))/g,"")+"\u2070\u2070",g+" \u043b\u0432";default:try{g=parseFloat(a).toLocaleString($("#localLang").val(),{style:"currency",currency:n.toUpperCase()})}catch(h){g=a}return g}},currencyCommaExcep=function(a,n){null!=n&&(n=n.toLowerCase());if(null===a||""===a)return"";var k=String(a),g=$("#siteCode").val();if(-1<k.indexOf(".")){var f=
k.split(".");1<f.length&&2>f[1].length?k+="0":2<f[1].length&&"id"!==g&&(k=Number(k).toFixed(2))}var h=f="";if("levant"===g)h="jo";else if("levant_ar"===g)h="jo_ar";else if("ae"===g||"ae_ar"===g)$.cookies.get("estoreSitecode")?(h=$.cookies.get("estoreSitecode").toString(),h="ae"===h||"ae_ar"===h||"kw"===h||"kw_ar"===h||"om"===h||"om_ar"===h||"bh"===h||"bh_ar"===h||"qa"===h||"qa_ar"===h?h:g):h=g;switch(n){case "usd":if("n_africa"===g)return f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g," "):
k.replace(/\B(?=(\d{3})+(?!\d))/g," ")+".00",f+" DH";f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"$"+f;case "dollar":if("ca_fr"===g)return-1<k.indexOf(".")?(f=k.replace(/\B(?=(\d{3})+(?!\d))/g," "),f=f.replace(".",",")):f=k.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",f+" $";f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"$"+f;case "eur":if("de"===g||"es"===g||"be_fr"===g||
"it"===g||"pt"===g)return-1<k.indexOf(".")?(f=k.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,".")):f=k.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",f+" \u20ac";if("fi"===g||"fr"===g||"sk"===g||"at"===g||"ee"===g||"lt"===g||"lv"===g||"si"===g)return-1<k.indexOf(".")?(f=k.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g," ")):f=k.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",f+" \u20ac";if("gr"===g)return f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,","):k.replace(/\B(?=(\d{3})+(?!\d))/g,
",")+".00","\u20ac"+f;-1<k.indexOf(".")?(f=k.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,".")):f=k.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00";return"be"===g||"nl"===g?f:"\u20ac "+f;case "gbp":return f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","\u00a3"+f;case "sek":return f=k.replace(/\B(?=(\d{3})+(?!\d))/g," "),f+" kr";case "dkk":return-1<k.indexOf(".")&&(k=parseFloat(k).toFixed(0)),f=k.replace(/\B(?=(\d{3})+(?!\d))/g,"."),f+" kr";
case "nok":return f=k.replace(/\B(?=(\d{3})+(?!\d))/g," "),f+" kr";case "brl":return-1<k.indexOf(".")?(f=k.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,".")):f=k.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00","R$ "+f;case "inr":return n=".00",-1<k.indexOf(".")?(a=k.substring(0,k.indexOf(".")),n=k.substring(k.indexOf("."))):a=k,"\u20b9 "+(a+n);case "krw":return f=k.replace(/\B(?=(\d{3})+(?!\d))/g,","),f+"\uc6d0";case "aed":if("ae_ar"===g)return f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,
","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","kw_ar"==h?f+" \u062f.\u0643":"om_ar"==h?f+" \u0631.\u0639.":"bh_ar"==h?f+" .\u062f.\u0628":"qa_ar"==h?f+" \u0631.\u0642":f+" \u062f.\u0625";f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"kw"==h?f+" KD":"bh"==h?f+" BD":"om"==h?f+" RO":"qa"==h?f+" QAR":f+" AED";case "rub":return-1<k.indexOf(".")?(f=k.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g," ")):f=k.replace(/\B(?=(\d{3})+(?!\d))/g,
" "),f+" \u20bd";case "twd":return f=k.replace(/\B(?=(\d{3})+(?!\d))/g,","),"NT$"+f;case "czk":return-1<k.indexOf(".")?(f=k.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g," ")):f=k.replace(/\B(?=(\d{3})+(?!\d))/g," "),f+" K\u010d";case "myr":return f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","RM "+f;case "idr":return f=k.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"Rp "+f;case "pln":return-1<k.indexOf(".")?(f=k.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,
" ")):f=k.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",f+" z\u0142";case "ron":return-1<k.indexOf(".")?(f=k.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,".")):f=k.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",f+" lei";case "php":return f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","\u20b1"+f;case "sar":return f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","sa"==siteCode?f+" "+SAUDI_CURRENCY_SYMBOL:
SAUDI_CURRENCY_SYMBOL+" "+f;case "pab":return f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","US$ "+f;case "mxn":return"$ "+a;case "ars":return f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","$ "+f;case "pen":return f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","s/ "+f;case "clp":return f=k.replace(/\B(?=(\d{3})+(?!\d))/g,"."),
"$ "+f;case "cop":return f=k.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"$ "+f;case "vnd":return f=k.replace(/\B(?=(\d{3})+(?!\d))/g,"."),f+" VND";case "chf":if("ch"===g||"ch_fr"===g)return-1<k.indexOf(".")?(f=k.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,".")):f=k.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",f+" CHF";f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,"'"):k.replace(/\B(?=(\d{3})+(?!\d))/g,"'")+".00";return"CHF "+f;case "hkd":return f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,
","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","HK$ "+f;case "jod":case "lbp":f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";if("jo"==h)return f+" JD";if("jo_ar"==h)return f+" \u062f.\u0627";case "pkr":return f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","Rs. "+f;case "ils":return f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g,","):k.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00",
f+" \u20aa";case "mad":return f=-1<k.indexOf(".")?k.replace(/\B(?=(\d{3})+(?!\d))/g," "):k.replace(/\B(?=(\d{3})+(?!\d))/g," ")+".00",f+" DH";default:try{f=parseFloat(k).toLocaleString($("#localLang").val(),{style:"currency",currency:n.toUpperCase()})}catch(m){f=k}return f}},deleteCurrencyComma=function(a,n){var k="",g=$("#siteCode").val();null!=n&&(n=n.toLowerCase());if(fnIsNull(a))return"";"ca_fr"===g||"eur"===n&&"gr"!==g||"rub"===n||"brl"===n||"pln"===n||"ron"===n||"krw"===n||"twd"===n||"ch"===
g||"ch_fr"===g?-1<a.indexOf(",")?(a=a.split(","),null!=a[0]&&""!=a[0]&&(k=a[0].replace(/[^0-9]/g,"")),null!=a[1]&&""!=a[1]&&(k+="."+a[1].replace(/[^0-9]/g,""))):k=a.replace(/[^0-9]/g,""):"pk"===g?-1<a.indexOf(".")&&(a=a.split("."),null!=a[1]&&""!=a[1]&&(k=a[1].replace(/[^0-9]/g,"")),null!=a[2]&&""!=a[2]&&(k+="."+a[2].replace(/[^0-9]/g,""))):-1<a.indexOf(".")?(a=a.split("."),null!=a[0]&&""!=a[0]&&(k=a[0].replace(/[^0-9]/g,"")),null!=a[1]&&""!=a[1]&&(k+="."+a[1].replace(/[^0-9]/g,""))):k=a.replace(/[^0-9]/g,
"");return k};String.prototype.comma=function(a){return this.replace(NUMBER_GROUP_PATTERN,a)};function checkFlot(a){return 0!=a%1}
var currencyInfo=function(a,n,k){k=void 0===k?!1:k;null!=n&&(n=n.toLowerCase());if(null===a||""===a)return"";a=String(a);var g=$("#siteCode").val(),f=checkFlot(a);if(f){var h=a.split(".");1<h.length&&2>h[1].length?a+="0":2<h[1].length&&(a=Number(a).toFixed(2))}var m=h="";if("levant"===g)m="jo";else if("levant_ar"===g)m="jo_ar";else if("ae"===g||"ae_ar"===g)if($.cookies.get("estoreSitecode")){var e=$.cookies.get("estoreSitecode").toString();m="ae"===e||"ae_ar"===e||"kw"===e||"kw_ar"===e||"om"===e||
"om_ar"===e||"bh"===e||"bh_ar"===e||"qa"===e||"qa_ar"===e?e:g}else m=g;var b=".00",d=",00";k&&(d=b="");var l=k="";e="";switch(n){case "usd":"n_africa"===g?(h=a.comma(" "),e=b,k=" DH"):"iq_ar"===g||"iq_ku"===g?(h=a.comma(","),e=b,k=" $"):(h=a.comma(","),e=b,l="$");break;case "cad":"ca_fr"===g?(h=a.comma(" "),h=h.replace(".",","),e=d,k=" $"):(h=a.comma(","),e=b,l="$");break;case "eur":"de"===g||"es"===g||"be_fr"===g||"it"===g||"pt"===g?(h=a.replace(".",","),h=h.comma("."),e=d,"be_fr"!==g&&(k=" \u20ac")):
"fi"===g||"fr"===g||"sk"===g||"at"===g||"ee"===g||"lt"===g||"lv"===g||"hr"===g?(h=a.replace(".",","),h=h.comma(" "),e=d,k=" \u20ac"):"si"==g?(h=a.replace(".",","),h=h.comma("."),e=d,k=" \u20ac"):(f?(h=a.replace(".",","),h=h.comma(".")):e=d,"be"!==g&&"nl"!==g?l="\u20ac ":"gr"===g&&(k=" \u20ac"));break;case "gbp":h=a.comma(",");e=b;l="\u00a3";break;case "sek":h=a.comma(" ");k=" kr";break;case "dkk":h=a.comma(" ");k=" kr";break;case "nok":h=a.comma(" ");k=" kr";break;case "brl":h=a.replace(".",",");
h=h.comma(".");e=d;l="R$ ";break;case "inr":n=b;f?(f=a.substring(0,a.indexOf(".")),n=a.substring(a.indexOf("."))):f=a;h=f+n;l="\u20b9 ";break;case "krw":h=a.comma(",");k="\uc6d0";break;case "aed":"ae_ar"===g?(h=a.comma(","),e=b,k="kw_ar"==m?" \u062f.\u0643":"om_ar"==m?" \u0631.\u0639.":"bh_ar"==m?" .\u062f.\u0628":"qa_ar"==m?" \u0631.\u0642":" \u062f.\u0625"):(h=a.comma(","),e=b,k="kw"==m?" KD":"bh"==m?" BD":"om"==m?" RO":"qa"==m?" QAR":" AED");break;case "rub":h=a.replace(".",",");h.comma(" ");h=
a.comma(" ");k=" \u20bd";break;case "twd":h=a.comma(",");l="NT$";break;case "czk":h=a.replace(".",",");h.comma(" ");h=a.comma(" ");k=" K\u010d";break;case "myr":h=a.comma(",");e=b;l="RM ";break;case "idr":h=a.comma(".");l="Rp ";break;case "pln":h=a.replace(".",",");h=h.comma(" ");e=d;k=" z\u0142";break;case "ron":h=a.replace(".",",");h=h.comma(".");e=d;k=" lei";break;case "php":h=a.comma(",");e=b;l="\u20b1";break;case "sar":h=a.comma(",");e=b;k="sa"==siteCode?" "+SAUDI_CURRENCY_SYMBOL:SAUDI_CURRENCY_SYMBOL+
" ";break;case "pab":h=a.comma(",");e=b;l="US$ ";break;case "mxn":h=a.comma(",");e=b;l="$ ";break;case "ars":h=a.comma(",");e=b;l="$ ";break;case "pen":h=a.comma(",");e=b;l="s/ ";break;case "clp":h=a.comma(".");l="$ ";break;case "cop":h=a.comma(".");l="$ ";break;case "vnd":h=a.comma(".");k=" VND";break;case "chf":"ch"===g||"ch_fr"===g?(h=a.replace(".",","),h=h.comma("."),e=d,k=" CHF"):(a.comma("'"),h=a.comma("'")+b,l="CHF ");break;case "hkd":h=a.comma(",");e=b;l="HK$ ";break;case "jod":break;case "lbp":h=
a.comma(",");e=b;"jo"==m?k=" JD":"jo_ar"==m&&(k=" \u062f.\u0627");break;case "pkr":h=a.comma(",");e=b;l="Rs. ";break;case "ils":h=a.comma(",");e=b;k=" \u20aa";break;case "kzt":h=a.comma(" ");k=" \u20b8";break;case "egp":h=a.comma(",");e=b;k=" \u062c.\u0645.";break;case "huf":a=String(Math.ceil(parseFloat(a)));h=a.comma(".");k=" Ft";break;case "hrk":h=a.replace(".",",");h=h.comma(".");e=d;k=" kn";break;case "uah":-1<a.indexOf(".")?(h=a.replace(".",","),h=h.comma(" ")):h=a.comma(" ");k=" \u20b4";break;
case "jpy":h=a.comma(",");k="\u5186";break;case "yen":h=a.comma(",");k="\u5186";break;case "iqd":f?(h=a.replace(".",","),h=h.comma(" ")):h=a.comma(",");"iq_ar"===g?k="\u062f.\u0639":"iq_ku"===g&&(k="\u062f.\u0639");break;case "mad":h=a.comma(" ");e=b;k=" DH";break;case "cny":h=a;l="\uffe5 ";break;case "try":h=a.replace(".",",");h=h.comma(".");e=d;k=" TL";break;default:try{h=parseFloat(a).toLocaleString($("#localLang").val(),{style:"currency",currency:n.toUpperCase()})}catch(q){h=a}}checkFlot(h)||
(h+=e);return{suffix:k,prefix:l,value:l+h+k,currency:(l+k).replace(" ","")}},deleteCurrency=function(a,n){if(fnIsNull(a))return"";if("cl"==siteCode||"py"==siteCode)a=a.replace(/[^0-9]/g,"");else if(("pe"==siteCode||"ar"==siteCode||"co"==siteCode||"pk"===siteCode)&&-1<a.indexOf(".")){var k=a.split(".");"pk"===siteCode?null!=k[1]&&""!=k[1]&&(a=k[1].replace(/[^0-9]/g,"")):null!=k[0]&&""!=k[0]&&(a=k[0].replace(/[^0-9]/g,""))}k=a;null!=n&&(n=n.toLowerCase());switch(n){case "usd":return-1<a.indexOf("$")&&
(k=a.replace("$","")),k;case "dollar":return-1<a.indexOf("$")&&(k=a.replace("$","")),k;case "eur":return-1<a.indexOf("\u20ac")&&(k=a.replace("\u20ac","")),k;case "gbp":return-1<a.indexOf("\u00a3")&&(k=a.replace("\u00a3","")),k;case "sek":return-1<a.indexOf("kr")&&(k=a.replace("kr","")),k;case "dkk":return-1<a.indexOf("kr")&&(k=a.replace("kr","")),k;case "nok":return-1<a.indexOf("kr")&&(k=a.replace("kr","")),k;case "brl":return-1<a.indexOf("R$")&&(k=a.replace(".","").replace("R$","").replace(" ","").replace(",",
".")),k;case "inr":return-1<a.indexOf("\u20b9")&&(k=a.replace("\u20b9","")),"\u20b9"+k;case "krw":return-1<a.indexOf("\uc6d0")&&(k=a.replace("\uc6d0","")),k;case "ae":return"ae_ar"===siteCode?-1<a.indexOf("\u062f.\u0625")&&(k=a.replace("\u062f.\u0625","")):-1<a.indexOf("AED")&&(k=a.replace("AED","")),k;case "rub":return-1<a.indexOf("\u20bd")&&(k=a.replace("\u20bd","")),k;case "twd":return-1<a.indexOf("NT$")&&(k=a.replace("NT$","")),"NT$"+k;case "czk":return-1<a.indexOf("K\u010d")&&(k=a.replace("K\u010d",
"")),k;case "myr":return-1<a.indexOf("RM")&&(k=a.replace("RM","")),k;case "aed":return-1<a.indexOf(" \u062f.\u0625")&&(k=a.replace(" \u062f.\u0625","")),k;case "pab":return-1<a.indexOf("U$S")?k=a.replace("U$S","").replace(",","").replace(" ",""):-1<a.indexOf("US$")&&(k=a.replace("US$","").replace(",","").replace(" ","")),k;case "mxn":return-1<a.indexOf("$")&&(k=a.replace("$","").replace(" ","")),k;case "ars":return-1<a.indexOf("$")&&(k=a.replace("$","").replace(" ","")),k;case "pen":return-1<a.indexOf("s/")&&
(k=a.replace("s/","").replace(" ","")),k;case "clp":return-1<a.indexOf("$")&&(k=a.replace("$","").replace(" ","")),k;case "cop":return-1<a.indexOf("$")&&(k=a.replace("$","").replace(" ","")),k;case "pyg":return-1<a.indexOf("\u20b2")&&(k=a.replace("\u20b2","").replace(" ","")),k;case "hkd":return-1<a.indexOf("HK$")&&(k=a.replace("HK$","").replace(" ","")),k;case "pkr":return a.indexOf("Rs."),k;case "ils":return-1<a.indexOf("\u20aa")&&(k=a.replace("\u20aa","").replace(" ","")),k;case "mad":return-1<
a.indexOf("DH")&&(k=a.replace("DH","")),k;default:return a}},imagePreset=function(a){return-1<a.indexOf("jpg")?"?$ORIGIN_JPG$":-1<a.indexOf("jpeg")?"?$ORIGIN_JPG$":-1<a.indexOf("png")?"?$ORIGIN_PNG$":-1<a.indexOf("gif")?"?$ORIGIN_GIF$":"?$ORIGIN_PNG$"},imgDomain=function(a,n){var k="",g=$("#scene7domain").val();null!==a&&(-1<a.indexOf("image.quick3d.org")?k=a+imagePreset(a):-1<a.indexOf("http:")||""===a?k=a:(n&&(g=g.replace("/image/","/content/")),k=g+a+imagePreset(a)));return k},jqueryImgsrc=function(a,
n,k){if(null===a)return"";-1<a.indexOf("/content/dam/belo4d")&&("qa"===n?(a="stg"===k?a.replace("/content/dam/belo4d","//stg-images.quick3d.org/is/image/belo4d/assets"):"prod"===k?a.replace("/content/dam/belo4d","//stg-images.quick3d.org/is/image/belo4d/assets"):a.replace("/content/dam/belo4d","//stg-images.quick3d.org/is/image/belo4ddev/assets"),a+=imagePreset(a)):"live"===n&&(a="stg"===k?a.replace("/content/dam/belo4d","//images.quick3d.org/is/image/belo4dstg/assets"):"prod"===k?a.replace("/content/dam/belo4d",
"//images.quick3d.org/is/image/belo4d/assets"):a.replace("/content/dam/belo4d","//images.quick3d.org/is/image/belo4ddev/assets"),a+=imagePreset(a)));return a},dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,n=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,k=/[^-+\dA-Z]/g,g=function(f,h){f=String(f);for(h=h||2;f.length<h;)f="0"+f;return f};return function(f,h,m){var e=
dateFormat,b=f;1!==arguments.length||"[object String]"!==Object.prototype.toString.call(f)||/\d/.test(f)||(h=f,f=void 0);f=f?new Date(f):new Date;if(isNaN(f)){if(b)return b;throw SyntaxError("invalid date");}h=String(e.masks[h]||h||e.masks["default"]);"UTC:"===h.slice(0,4)&&(h=h.slice(4),m=!0);var d=m?"getUTC":"get";b=f[d+"Date"]();var l=f[d+"Day"](),q=f[d+"Month"](),r=f[d+"FullYear"](),w=f[d+"Hours"](),x=f[d+"Minutes"](),C=f[d+"Seconds"]();d=f[d+"Milliseconds"]();var E=m?0:f.getTimezoneOffset(),
z={d:b,dd:g(b),ddd:e.i18n.dayNames[l],dddd:e.i18n.dayNames[l+7],m:q+1,mm:g(q+1),mmm:e.i18n.monthNames[q],mmmm:e.i18n.monthNames[q+12],yy:String(r).slice(2),yyyy:r,h:w%12||12,hh:g(w%12||12),H:w,HH:g(w),M:x,MM:g(x),s:C,ss:g(C),l:g(d,3),L:g(99<d?Math.round(d/10):d),t:12>w?"a":"p",tt:12>w?"am":"pm",T:12>w?"A":"P",TT:12>w?"AM":"PM",Z:m?"UTC":(String(f).match(n)||[""]).pop().replace(k,""),o:(0<E?"-":"+")+g(100*Math.floor(Math.abs(E)/60)+Math.abs(E)%60,4),S:["th","st","nd","rd"][3<b%10?0:(10!==b%100-b%10)*
b%10]};return h.replace(a,function(T){return T in z?z[T]:T.slice(1,T.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};
dateFormat.i18n={dayNames:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),monthNames:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December".split(" ")};Date.prototype.format=function(a,n){return dateFormat(this,a,n)};
var loginJwtApiCal=function(a,n,k){var g={jwt:loginJwt};if("us"===siteCode){var f=$.cookies.get("epp_verified",{domain:".quick3d.org"}),h=$.cookies.get("tmktid",{domain:".quick3d.org"}),m=$.cookies.get("store_id",{domain:".quick3d.org"});null!=f&&(f=f.toString(),"true"==f&&null!=h&&""!=h?g.store_id=h.toString():null!=m&&""!=m&&(g.store_id=m.toString()))}$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:a+"/v1/sso/user/validate",type:"POST",
dataType:"json",data:JSON.stringify(g),timeout:1E4,xhrFields:{withCredentials:!0},async:!1,beforeSend:function(e){"Y"===buyingMultiLanguageYn&&e.setRequestHeader("x-ecom-locale",n)},success:function(e){if(200!==e.statusCode&&"200"!==e.statusCode)return $.cookies.del("jwt_"+k,{domain:".quick3d.org"}),{isValidJwtToken:!1}},error:function(e,b,d){console.error(b);return null==e.responseJSON||"StoreIdNotPresent"!==e.responseJSON.error?($.cookies.del("jwt_"+k,{domain:".quick3d.org"}),{isValidJwtToken:!1}):
{loginFlag:!1}}})},isValidJwtTokenApiCal=function(a,n,k,g){$.cookies.get("ReD",{domain:".quick3d.org"});a=$("#siteCode").val();var f=!1;$.ajax({url:"/aemapi/v6/data-login/callSALogin."+a+".json",type:"GET",dataType:"json",success:function(h){200===h.statusCode&&"Y"===h.redCookieChk&&$.cookies.get("jwt_"+k,{domain:".quick3d.org"})&&(f=!0)},error:function(h,m,e){}});return f},loginJwtValidateApiCal=function(a,n,k,g,f){var h=!1;k={jwt:f};if("us"===siteCode){f=$.cookies.get("epp_verified",{domain:".quick3d.org"});
var m=$.cookies.get("tmktid",{domain:".quick3d.org"}),e=$.cookies.get("store_id",{domain:".quick3d.org"});null!=f&&(f=f.toString(),"true"==f&&null!=m&&""!=m?k.store_id=m.toString():null!=e&&""!=e&&(k.store_id=e.toString()))}$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:a+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(k),xhrFields:{withCredentials:!0},async:!1,beforeSend:function(b){"Y"===g&&b.setRequestHeader("x-ecom-locale",
n)},success:function(b){200===b.statusCode||"200"===b.statusCode?(h=!0,$("#loginValidateYnForGPv2").val("Y")):$("#loginValidateYnForGPv2").val("N")},error:function(){$("#loginValidateYnForGPv2").val("N")}});return h},commonLoginCheck=function(a){var n="GPv2"===$("#shopIntegrationFlag").val()?!0:!1,k=function(){$("#loginValidateYnForGPv2").val("N");return!1};if(checkEppSite())if(null!=window.sg.epp&&null!=window.sg.epp.common)if(a&&"function"===typeof a)a(window.sg.epp.common.isLogged);else return window.sg.epp.common.isLogged;
else return!1;else if(n){a=$("#storeDomain").val();n=$("#countryIsoCode").val();var g=$("#multiLanguageYn").val(),f=$("#localLang").val(),h=$.cookies.get("xsdcxyn",{domain:".quick3d.org"}),m=$.cookies.get("jwt_"+n,{domain:".quick3d.org"}),e=$("#loginValidateYnForGPv2").val(),b=!1,d=!0;if("in"!==$("#siteCode").val()||a||n)if(e){if("Y"===e)return!0;if("N"===e)return!1}else{if(null!=m){h={jwt:m};var l=!1;"us"===siteCode&&(b=$.cookies.get("epp_verified",{domain:".quick3d.org"}),m=$.cookies.get("tmktid",
{domain:".quick3d.org"}),e=$.cookies.get("store_id",{domain:".quick3d.org"}),null!=b&&(b=b.toString(),"true"==b&&null!=m&&""!=m?h.store_id=m.toString():null!=e&&""!=e&&(h.store_id=e.toString())),$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:a+"/v1/sso/jwt/details",type:"POST",async:!1,dataType:"json",data:JSON.stringify(h),xhrFields:{withCredentials:!0},success:function(q){null==q||""===q||null==q.login_type||"guest_epp_store"!==
q.login_type&&"referral_url"!==q.login_type||(l=!0)}}));l?b=k():$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:a+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(h),async:!1,xhrFields:{withCredentials:!0},beforeSend:function(q){"Y"===g&&q.setRequestHeader("x-ecom-locale",f)},success:function(q){200!==q.statusCode&&"200"!==q.statusCode&&(d=!1)},error:function(q,r,w){console.error(r);d=!1}});d?($("#loginValidateYnForGPv2").val("Y"),
b=!0):isValidJwtTokenApiCal(a,f,n,g)?(k=$.cookies.get("jwt_"+n,{domain:".quick3d.org"}).toString(),b=loginJwtValidateApiCal(a,f,n,g,k)):b=k()}else null!=h?isValidJwtTokenApiCal(a,f,n,g)?(k=$.cookies.get("jwt_"+n,{domain:".quick3d.org"}).toString(),b=loginJwtValidateApiCal(a,f,n,g,k)):b=k():b=k();return b}else return!!$.cookies.get("jwt_IND",{domain:".quick3d.org"})}else return ss.Auth.checkSignIn(a)},addedWishList=[],commonGetWishlist=function(a){var n="it ch ch_fr hk hk_en hu ae ae_ar levant levant_ar es pt ca ca_fr sg za".split(" "),
k=$("#shopIntegrationFlag").val(),g="Hybris-new"===k?!0:!1,f=$("#storeDomain").val(),h=$("#b2bFlag").val(),m=$("#store_sitecode").val(),e=$("#siteCode").val(),b=!1;checkEppSite()&&null!=window.sg.epp&&null!=window.sg.epp.common&&(m=window.sg.epp.common.companyCode,b=window.sg.epp.common.isLogged);checkEppSite()||("levant"===e?m="jo":"levant_ar"===e&&(m="jo_ar"));addedWishList=[];if(g||h&&"true"==k||n.includes(e))f=f+"/tokocommercewebservices/v2/"+m+"/users/current/wishlist?loadEntries\x3dtrue",n.includes(e)&&
(f=$("#newHyvStoreDomain").val()+"/tokocommercewebservices/v2/"+m+"/users/current/wishlist?loadEntries\x3dtrue"),checkLoginCookie()||b?$.ajax({url:f,type:"GET",dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},crossDomain:!0,success:function(q){if(null!=q&&null!=q.wishlists&&0<q.wishlists.length)for(wishlist in q.wishlists){var r=q.wishlists[wishlist];if(null!=r&&(r.isDefault||"N"===h&&n.includes(e))){if(null!=r.entries&&0<r.entries.length)for(entry in r.entries)if(q=r.entries[entry],null!=
q.product&&null!=q.product.code){var w={};w.sku=q.product.code;w.deleted=!1;addedWishList.push(w)}break}}},error:function(q){addedWishList=[]},complete:function(){a&&"function"===typeof a&&a()}}):a&&"function"===typeof a&&a();else if("GPv2"===k){k=$("#countryIsoCode").val();k=$.cookies.get("jwt_"+k,{domain:".quick3d.org"});g={};b&&null!=window.sg.epp&&null!=window.sg.epp.common&&(g.store_id=window.sg.epp.common.companyCode);var d=$("#multiLanguageYn").val(),l=$("#hreflang").val();null!=k?$.ajax({headers:{"Cache-Control":"no-cache",
"Content-Type":"application/json","Access-Control-Allow-Origin":"*","x-ecom-app-id":"identity-store-global","x-ecom-jwt":k},url:f+"/v4/identity/wishlist",type:"GET",data:g,dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},beforeSend:function(q){"Y"===d&&q.setRequestHeader("x-ecom-locale",l)},success:function(q){null!=q&&(addedWishList=q)},error:function(q){addedWishList=[]},complete:function(){a&&"function"===typeof a&&a()}}):a&&"function"===typeof a&&a()}};
function fnIsNull(a){return""===a||void 0===a||null===a}function def(a,n){for(var k in n)Object.prototype.hasOwnProperty.call(n,k)&&("object"===$.type(a[k])?a[k]=this.isArray(a[k])?n[k].slice(0):this.def(a[k],n[k]):a[k]=n[k]);return a}
var cookies=function(){var a={expires:"",path:"/",domain:"",secure:"",httpOnly:""};return{setCookie:function(n,k,g){var f=new Date;f.setTime(f.getTime()+864E5*(g||0));g=def(a,{expires:f});document.cookie=[n,"\x3d",k,g.expires?"; expires\x3d"+g.expires.toUTCString():"",g.path?"; path\x3d"+g.path:"",g.domain?"; domain\x3d"+g.domain:"",g.secure?"; secure":""].join("")},setCookie2:function(n,k,g,f){var h=new Date;h.setTime(h.getTime()+864E5*(g||0));g=def(a,{expires:h});g.domain=!0===f?".quick3d.org":
".quick3d.org.cn";document.cookie=[n,"\x3d",k,g.expires?"; expires\x3d"+g.expires.toUTCString():"",g.path?"; path\x3d"+g.path:"",g.domain?"; domain\x3d"+g.domain:"",g.secure?"; secure":""].join("")},setCookie3:function(n,k,g,f,h,m){var e=new Date;e.setTime(e.getTime()+6E4*g);g=def(a,{expires:e});g.domain=!0===f?".quick3d.org":".quick3d.org.cn";!0===h&&(g.httpOnly="HttpOnly");!0===m&&(g.secure="secure");document.cookie=[n,"\x3d",k,g.expires?"; expires\x3d"+g.expires.toUTCString():"",g.path?"; path\x3d"+
g.path:"",g.domain?"; domain\x3d"+g.domain:"",g.secure?"; secure":"",g.httpOnly?"; HttpOnly":""].join("")},getCookie:function(n){n+="\x3d";for(var k=document.cookie.split(";"),g,f=0,h=k.length;f<h;f++){for(g=k[f];" "===g.charAt(0);)g=g.substring(1);if(-1!==g.indexOf(n))return g.substring(n.length,g.length)}return""},setCookieMailForm:function(n){for(var k in n)if(this.checkMailName(k)&&null!=n[k]){var g=n[k].replace(";","||@||");this.setCookie("mail_form_"+k,g,1)}},checkMailName:function(n){return n&&
("CompanyName"===n||"ContactFirstName"===n||"ContactName"===n||"EmailAddress"===n||"CompanyAddress"===n||"CompanyInterest"===n||"JobTitle"===n||"Employee"===n||"City"===n||"Zipcode"===n||"Telephone"===n)},getCookieMailForm:function(){var n=document.cookie.split(";"),k={};n=$jscomp.makeIterator(n);for(var g=n.next();!g.done;g=n.next())if(g=g.value,0<g.indexOf("mail_form_")){var f=g.replace("mail_form_","").trim().split("\x3d");g=f[0];f=f[1].replace("||@||",";");k[g]=f}return k},getCookies:function(){var n=
document.cookie.split(";"),k={};n=$jscomp.makeIterator(n);for(var g=n.next();!g.done;g=n.next())g=g.value.trim().split("\x3d"),k[g[0]]=g[1];return k}}}(),isNotEmpty=function(a){return"number"!=typeof a&&""==a||null==a||void 0==a||null!=a&&"object"==typeof a&&!Object.keys(a).length?!1:!0};void 0===window.sg&&(window.sg={});void 0===window.sg.components&&(window.sg.components={});
window.sg.components.pfdevfn={afterAddWishlist:function(a,n,k,g,f,h){fnIsNull(a)||(a.hasClass(n)?"GPv2"===g&&a.removeClass(n):a.addClass(n),n=k,h&&""!=h&&(n=h),"hybrisIntg"===g?(a.prop("disabled",!0),a.attr("data-add-text",k),a.removeAttr("aria-label"),a.addClass("cta--disabled")):"GPv2"===g&&(a.hasClass("js-delete-wishlist-btn")?(a.removeClass("js-delete-wishlist-btn"),a.removeAttr("data-added-text"),a.attr("data-add-text",k),a.attr("an-la","add to wishlist"),a.find("span").text(k),a.blur()):(a.addClass("js-delete-wishlist-btn"),
a.removeAttr("data-add-text"),a.attr("data-added-text",k),a.attr("an-la","remove from wishlist"),a.find("span").text(k),k={},k.sku=f,k.deleted=!1,addedWishList.push(k)),window.sg.components.wishlistIcon.reInit()),a.removeAttr("aria-label").attr("aria-label",n))},spliceAddedWishList:function(a){if(0<addedWishList.length)for(var n=0;n<addedWishList.length;n++)if(addedWishList[n].sku===a){addedWishList.splice(n,1);break}}};
function modelCodeToSelector(a){var n="";a&&(n=a.replace(/\//g,"@$"));return n}
function addToCartNewHybris(a,n,k,g,f,h,m){n=void 0===n?"":n;f=void 0===f?{}:f;h=void 0===h?!1:h;var e=$("#storeDomain")?$("#storeDomain").val()+"/tokocommercewebservices/v2":"",b=$("#storeWebDomain").val(),d=$("#store_sitecode").val(),l=$("#siteCode")?$("#siteCode").val():"",q=$("#tempTitle").val(),r=h?d:getMultistoreSiteCode(l),w="page-wearable-bc"===$("#tempTitle").val()||"page-wearable-bc-v2"===$("#tempTitle").val()?"\x26ref\x3dwbc":"",x=$("#newHyvStoreDomain").val()?$("#newHyvStoreDomain").val()+
"/tokocommercewebservices/v2":"";d="Y"===$("#useNewAddToCartApi").val()?!0:!1;var C="ae ae_ar at au be be_fr bg ca ca_fr ch ch_fr cl cn co de dk eg es fi fr hk hk_en hu nl il it iq_ku iq_ar my mx no nz n_africa levant levant_ar pe ph pt pk sa sa_en se sg th tr tw vn za jp hr si ee lv lt cz sk pl gr ua ro kz_kz kz_ru in id".split(" "),E=["jp","be","be_fr","nl"],z=$("#categoryTypeCode").val(),T=["my","ph","sg"];r=checkEppSite()?null!=window.sg.epp&&null!=window.sg.epp.common?window.sg.epp.common.companyCode:
"":r;var ca=window.cookies.getCookie("eligible_epp");ca&&-1<location.pathname.indexOf("/us/mypage")&&(r=ca.split("/").reverse()[0]);e=e+"/"+r+"/addToCart/multi/?fields\x3dBASIC"+w;d&&x&&!h&&(e=x+"/"+r+"/addToCart/multi/?fields\x3dBASIC"+w);w=[];var oa="",ba=!1;if(g){g.isAddonComponent&&(w=g.filter(function(wa){return wa}));g.bezelCode&&!g.isContinue&&w.push({productCode:g.bezelCode,qty:1});if(g.embedaddon&&0<g.embedaddon.length)for(r=$jscomp.makeIterator(g.embedaddon),x=r.next();!x.done;x=r.next())w.push({productCode:x.value,
qty:1});if(g.addon&&g.addon.modelCodeList&&0<g.addon.modelCodeList.length)for(r=$jscomp.makeIterator(g.addon.modelCodeList),x=r.next();!x.done;x=r.next()){x=x.value;ca={productCode:x,qty:1};if("at"==l&&("page-buying-pd"==q||"page-standard-pd"==q)){var xa=g.addon.childModelObject;if(0<Object.keys(xa).length)for(var ya in xa)ya==x&&(ca.childProducts=[],ca.childProducts.push({product:{code:xa[ya]},quantity:1}))}w.push(ca)}if(g.gift&&g.gift.modelCode)for(q=0;q<g.gift.modelCode.length;q++)w.push({productCode:g.gift.modelCode[q],
qty:1});if(g.combo&&g.combo.modelCodeList&&0<g.combo.modelCodeList.length)for(q=$jscomp.makeIterator(g.combo.modelCodeList),x=q.next();!x.done;x=q.next())ya=x.value,w.push({productCode:ya,qty:1}),ya.indexOf("SIM");if(g.multi&&g.multi.modelCodeList&&0<g.multi.modelCodeList.length)for(q=$jscomp.makeIterator(g.multi.modelCodeList),x=q.next();!x.done;x=q.next())w.push({productCode:x.value,qty:1})}if(a){var ma={productCode:a,qty:1};if(g){g.band&&g.band.bandCode&&(ma.childProducts=[],ma.childProducts.push({product:{code:g.band.bandCode},
quantity:1}));ma.services=[];g.orignalQuantity&&(ma.qty=g.orignalQuantity.quantity);g.postalCode&&(ma.postalCode=g.postalCode);g.originalAdds&&Object.keys(g.originalAdds).forEach(function(wa){ma[wa]=g.originalAdds[wa]});if(("cn"==l||"tr"==l)&&g.tradeIn&&g.tradeIn.plan_id)for(q=$jscomp.makeIterator(g.tradeIn.tradeInResultList),ya=q.next();!ya.done;ya=q.next())ya=ya.value,ma.services.push({serviceCode:ya.services.serviceCode,provider:ya.services.provider,addToCartType:"append",additionalInfos:ya.services.tradeInAdditionalInfo});
if(g.exchange&&g.exchange.exchangeId&&C.includes(l))"in"==l?g.exchange.tradeInType&&"CE"===g.exchange.tradeInType?ma.services.push({exchangeId:g.exchange.exchangeId,additionalInfos:[{key:"isTradeUp",value:"true"}]}):ma.services.push({exchangeId:g.exchange.exchangeId}):ma.services.push({exchangeId:g.exchange.exchangeId,serviceType:"TRADE_UP"});else if(g.exchange&&g.exchange.exchangeId&&"uk"==l)ma.services.push({exchangeId:g.exchange.exchangeId,serviceType:"TRADE_UP"});else if(g.tradeIn&&g.tradeIn.plan_id&&
!d&&"cn"!=l&&"tr"!=l)ma.services.push({exchangeId:g.tradeIn.plan_id});else if(g.tradeIn&&g.tradeIn.plan_id&&E.includes(l))ma.services.push({exchangeId:g.tradeIn.plan_id});else if(g.tradeIn&&g.tradeIn.plan_id&&d){var ab=g.tradeIn.tradeInResultList;if(0<ab.length){var Jb=!1;$.each(ab,function(wa,Oa){var I=Oa.services;if(I){I.tradeInType||(I.tradeInType="IMEI");$.each(I.tradeInAdditionalInfo,function(N,S){"sg"!=l||"compasia.imei"!=S.key||isNotEmpty(S.value)||(S.value=I.imeiKey);if(!isNotEmpty(I.imeiKey)&&
S.key==I.tradeInType)return I.imeiKey=S.value,!1});ma.services.push({serviceCode:I.serviceCode,additionalInfos:[{key:I.tradeInType,value:I.imeiKey}]});"de"==l&&(ma.services[wa].serviceCode=I.serviceCode,ma.services[wa].provider=I.provider);"fr"==l&&null!=I.serviceType&&void 0!=I.serviceType&&(ma.services[wa].serviceType=I.serviceTypeCode);"bg"==l&&(ma.services[wa].provider="FOXWAY");"at"!=l||z.startsWith("01")||ma.services[wa].additionalInfos.push({key:"isTradeInTVEnabled",value:!0});I.tradeInAdditionalInfo&&
$.each(I.tradeInAdditionalInfo,function(N,S){ma.services[wa].additionalInfos.push({key:S.key,value:S.value});"serviceID"==S.key&&(I.serviceID=S.value)});var J=0;Oa.specialPrice&&!Jb&&(Jb=!0,J=Oa.specialPrice);Oa.dataPrice&&I.serviceID&&"au"==l&&(ma.services[wa].additionalInfos=ma.services[wa].additionalInfos.filter(function(N){return"discountAmount"!=N.key&&"additionalDiscount"!=N.key&&"totalTradeinAmount"!=N.key&&!("IMEI"==N.key&&N.value==I.serviceID)}),ma.services[wa].additionalInfos.push({key:"discountAmount",
value:Oa.discountAmountPrice}),ma.services[wa].additionalInfos.push({key:"additionalDiscount",value:J}),ma.services[wa].additionalInfos.push({key:"totalTradeinAmount",value:Oa.discountAmountPrice+J}));Oa.dataPrice&&!I.serviceID&&("au"==l?(ma.services[wa].additionalInfos=ma.services[wa].additionalInfos.filter(function(N){return"discountAmount"!=N.key&&"additionalDiscount"!=N.key&&"totalTradeinAmount"!=N.key}),ma.services[wa].additionalInfos.push({key:"discountAmount",value:Oa.discountAmountPrice}),
ma.services[wa].additionalInfos.push({key:"additionalDiscount",value:J}),ma.services[wa].additionalInfos.push({key:"totalTradeinAmount",value:Oa.discountAmountPrice+J})):"kz_kz"!=l&&"kz_ru"!=l&&ma.services[wa].additionalInfos.push({key:"discountAmount",value:Oa.dataPrice}));1<ab.length&&(ma.services[wa].addToCartType="APPEND");I.questionAndAnswer&&0<I.questionAndAnswer.length&&(ma.services[wa].additionalInfos.push({key:"questionAndAnswer",value:JSON.stringify(I.questionAndAnswer)}),$.each(I.questionAndAnswer,
function(N,S){ma.services[wa].assessmentCriteria||(ma.services[wa].assessmentCriteria=[]);ma.services[wa].assessmentCriteria.push({name:S.name,value:S.value})}))}else Oa={serviceCode:Oa.services.serviceCode,additionalInfos:[{key:"IMEI",value:Oa.services.imeiKey},{key:"discountAmount",value:Oa.dataPrice}]},1<ab.length&&(Oa.addToCartType="append"),ma.services.push(Oa)})}}else g.exchange&&g.exchange.exchangeId&&ma.services.push({exchangeId:g.exchange.exchangeId,provider:"EXCHANGE"});g.belo4dUpgrade&&
ma.services.push({serviceCode:g.belo4dUpgrade.serviceCode});g.care&&g.care.modelCode&&g.care&&g.care.modelCode&&(C={serviceCode:g.care.modelCode},g.care.isMonltly&&(C.additionalInfos=[{key:"paymentCycle",value:g.care.paymentCycle}]),ma.services.push(C));g.upgrade&&g.upgrade.modelCode&&ma.services.push({serviceCode:g.upgrade.modelCode});g.tariff&&g.tariff.modelCode&&(g.tariff.tariffResult.isBroadbandService?ma.services.push({planId:g.tariff.modelCode,serviceType:"BROADBAND_PLAN",serviceAddress:g.tariff.tariffResult.tariffArr[0],
serviceCode:g.tariff.tariffResult.simSkuCode}):ma.services.push({planId:g.tariff.modelCode,serviceType:"SIM_PLAN",serviceCode:g.tariff.tariffResult.simSkuCode}),e+="\x26newCart\x3dtrue");g.newAssuredBuyBack&&g.newAssuredBuyBack.modelCode&&ma.services.push({serviceCode:g.newAssuredBuyBack.modelCode});if("cn"===l&&g.installment&&g.installment.selectedOffers)for(ma.selectedOffers=[],C=$jscomp.makeIterator(g.installment.selectedOffers),E=C.next();!E.done;E=C.next())ma.selectedOffers.push(E.value);g.warrantyVd&&
g.warrantyVd.modelCode&&(g.warrantyVd.isMonthlyYn&&T.includes(l)?ma.services.push({serviceCode:g.warrantyVd.modelCode,additionalInfos:[{key:"paymentCycle",value:"MONTHLY"}]}):ma.services.push({serviceCode:g.warrantyVd.modelCode}));if(h){if(g.tradeIn&&g.tradeIn.exchangeData)for(C=$jscomp.makeIterator(g.tradeIn.exchangeData),T=C.next();!T.done;T=C.next())ma.services.push(T.value);g.belo4dCareData&&ma.services.push(g.belo4dCareData);g.knoxManage&&ma.services.push({serviceCode:g.knoxManage.serviceSkuCode})}}ma&&
w.push(ma)}if(0===w.length)n?location.href=n:k&&"function"===typeof k&&(k(oa,ba,f),ss.Auth.getGlobalCartCount());else if(h&&"uk"!==l&&"cn"!==l&&"tr"!==l&&!d){d=1;T=0;e=[];h={products:[]};b+="/servicesv2/addToCart";if(g&&(g.orignalQuantity&&(d=g.orignalQuantity.quantity),g.addon&&g.addon.modelCodeList&&0<g.addon.modelCodeList.length))for(C=$jscomp.makeIterator(g.addon.modelCodeList),x=C.next();!x.done;x=C.next())E=x.value,e.push("products["+T+"].productCode\x3d"+E+"\x26products["+T+"].quantity\x3d1"),
T++,h.products.push({productCode:E,quantity:1});if(a){e.push("products["+T+"].productCode\x3d"+a+"\x26products["+T+"].quantity\x3d"+d);T++;a={productCode:a,quantity:d,services:[]};if(g){if(g.tradeIn&&g.tradeIn.exchangeData)for(d=$jscomp.makeIterator(g.tradeIn.exchangeData),T=d.next();!T.done;T=d.next())a.services.push(T.value);g.belo4dCareData&&a.services.push(g.belo4dCareData);g.knoxManage&&a.services.push({serviceCode:g.knoxManage.serviceSkuCode})}a&&h.products.push(a)}$.ajax({url:b,type:"POST",
cache:!1,crossDomain:!0,xhrFields:{withCredentials:!0},contentType:"application/json",dataType:"json",data:JSON.stringify(h),timeout:2E4,success:function(wa){if("0000"===wa.resultCode||"00301"===wa.resultCode||"00302"===wa.resultCode)oa=wa,ba=!0},error:function(wa){var Oa="";wa.responseJSON&&wa.responseJSON.message&&(Oa=wa.responseJSON.message);confirmPopup(Oa,null,null,m)},complete:function(){ba&&(n&&"00301"!==oa.resultCode&&"00302"!==oa.resultCode?location.href=n:k&&"function"===typeof k&&(k(oa,
ba,f),ss.Auth.getGlobalCartCount()))}})}else $.ajax({url:e,type:"POST",dataType:"json",cache:!0,crossDomain:!0,contentType:"application/json",timeout:3E4,xhrFields:{withCredentials:!0},data:JSON.stringify(w),success:function(wa){oa=wa;ba=!0},error:function(wa){var Oa="";wa.responseJSON&&wa.responseJSON.message&&(Oa=wa.responseJSON.message);if(wa&&wa.responseJSON&&wa.responseJSON.errors&&0<wa.responseJSON.errors.length&&wa.responseJSON.errors[0]&&wa.responseJSON.errors[0].type){var I=wa.responseJSON.errors[0].type,
J="Please remove belo4d Flex or belo4d Upgrade to order multiple items, or place a separate order.";"cn"==l?J=Granite.I18n.get("Please remove belo4d Flex or belo4d Upgrade to order multiple items, or place a separate order."):"uk"==l&&(J="Please remove Galaxy Club to order multiple items, or place a separate order");"TokoUpgradeProductsError"==I&&(Oa=J);("levant"==l||"levant_ar"==l||"sa"==l||"sa_en"==l||"ae"==l||"ae_ar"==l)&&"MaxExternalServiceLimitError"==I&&wa.responseJSON.errors[0].type&&wa.responseJSON.errors[0].message&&
(Oa=wa.responseJSON.errors[0].message)}confirmPopup(Oa,null,null,m)},complete:function(){ba&&(n&&"00301"!==oa[0].statusCode&&"00302"!==oa[0].statusCode?location.href=n:k&&"function"===typeof k&&(k(oa,ba,f),ss.Auth.getGlobalCartCount()))}})}function setCookieData(a,n,k,g){var f=new Date,h="";f.setTime(f.getTime()+36E5*(k||0));g&&(h="; path\x3d"+g);document.cookie=a+"\x3d"+n+"; domain\x3dquick3d.org; expires\x3d"+f.toUTCString()+h}
function getNewCartId(a,n){n=void 0===n?{}:n;var k=commonLoginCheck(),g=$("#storeDomain")?$("#storeDomain").val()+"/tokocommercewebservices/v2":"",f=$("#siteCode")?$("#siteCode").val():"",h=$("#store_sitecode").val(),m=$("#b2bFlag").val(),e=$.cookies.get("hybriscartID-guid"),b=$.cookies.get("hybriscartID-code"),d=!1,l="",q=!1;k&&!b?(d=!0,l="current"):k||e?(q=!0,a&&"function"===typeof a&&a(q,n)):(d=!0,l="anonymous");d&&(k=g+"/"+f+"/users/"+l+"/carts?fields\x3dBASIC","Y"===m&&(k=g+"/"+h+"/users/"+l+
"/carts?fields\x3dBASIC"),$.ajax({url:k,type:"POST",dataType:"json",cache:!0,crossDomain:!0,timeout:5E3,xhrFields:{withCredentials:!0},success:function(r){if(r&&(r.code||r.guid)){var w=-1<location.href.indexOf("/content/belo4d")?"/content/belo4d/"+f:""+f;"current"===l?(q=!0,setCookieData("hybriscartID-code",r.code,1,w)):(q=!0,setCookieData("hybriscartID-guid",r.guid,1,w))}},error:function(r){var w="";r.responseJSON&&r.responseJSON.message&&(w=r.responseJSON.message);confirmPopup(w)},complete:function(){a&&
"function"===typeof a&&a(q,n)}}))}function goToSMBRegister(a,n){$.cookies.del("isSMBRegisteredUserYN",{path:"/"+SITE_CD+"/",domain:".quick3d.org"});n?document.location.href=a:($.cookies.set("goSMBRegisterYN","Y",{domain:".quick3d.org"}),$.cookies.set("smbRegisterUrl",a,{domain:".quick3d.org"}),ss.Auth.callSaSignInGate())}
function checkEppSite(){var a="",n=document.location.pathname;n=n.replace(".html","/");n=n.split("/");5<=n.length&&"content"==n[1]&&"belo4d"==n[2]?a=n[4]:3<=n.length&&(a="cn"===$("#siteCode").val()?n[1]:n[2]);return"multistore"==a}
function getEppMultiStorePath(a){if(checkEppSite()){if(fnIsNull(a)||a.startsWith("//")||a.startsWith("http:")||a.startsWith("https:")||a.includes("/multistore/")||a.startsWith("/"+siteCode+"/")||a.startsWith("/"+siteCode))return a;var n="/"+siteCode+"/multistore/"+window.sg.epp.common.companyCode;a.startsWith("/")||(a="/"+a);return n+a}return a}
function checkLoginCookie(){var a=Object.freeze({B2C:"xsdcxyn",B2B:"xsdcbxyn"}),n=Object.freeze({BASE:".quick3d.org",CN:".quick3d.org.cn"}),k=$("#b2bFlag").val(),g=$("#siteCode").val(),f=$("#shopIntegrationFlag").val();n="cn"===g?n.CN:n.BASE;a="Y"===k?a.B2B:a.B2C;["Hybris","Hybris-intg","Hybris-new"].includes(f);document.cookie.match(a);return!!$.cookies.get(a,{domain:n})}
function getSECACountryRegion(){var a=$("#siteCode").val();return["ca","ca_fr"].includes(a)?$.cookies.get("country_region",{domain:".quick3d.org"})||"CA-ON":""}function ellipsize(a,n){n=void 0===n?12:n;if("string"!==typeof a){var k;a=String(null!=(k=a)?k:"")}return a.length<=n?a:a.slice(0,n)+"..."}
(function(a){"undefined"===typeof a.cookies&&(a.cookies={});var n=a("#siteCode").val(),k="/";"cn"!==n&&(k="/"+n+"/");"/global_nw/"===k?k="/global/business/networks/":"/global_cps/"===k&&(k="/global/business/compressor/");a.cookies.data=a.cookies.data||{};a.cookies.data.SEARCH_NAME="sk";a.cookies.data.ACCESSORY_SEARCH_NAME="ask";a.cookies.getDefaultOption=function(g,f){g&&g instanceof Date||(g=new Date,g.setTime(g.getTime()+864E5));f?-1<window.location.pathname.indexOf("/content/belo4d")&&(f="/content/belo4d"+
f):f="/";var h=".quick3d.org";"cn"===n&&(h=".quick3d.org.cn");return{expiresAt:g,path:f,domain:h,secure:!1}};a.cookies.setSearchKeyword=function(g,f){var h=this.data.SEARCH_NAME,m=this.get(h);if(m){if(0<=a.inArray(g,m))return;4<=m.length&&m.splice(0,1);m.push(g)}else m=[g];this.set(h,m,this.getDefaultOption(f,k))};a.cookies.getSearchKeyword=function(){var g=this.get(this.data.SEARCH_NAME);return g&&a.isArray(g)?g:[]};a.cookies.clearSearchKeyword=function(g){this.del(this.data.SEARCH_NAME,this.getDefaultOption(g,
k))};a.cookies.setAccessorySearchKeyword=function(g,f){var h=this.data.ACCESSORY_SEARCH_NAME,m=this.get(h);if(m){if(0<=a.inArray(g,m))return;4<=m.length&&m.splice(0,1);m.push(g)}else m=[g];this.set(h,m,this.getDefaultOption(f,k))};a.cookies.getAccessorySearchKeyword=function(){var g=this.get(this.data.ACCESSORY_SEARCH_NAME);return g&&a.isArray(g)?g:[]};a.cookies.clearAccessorySearchKeyword=function(g){this.del(this.data.ACCESSORY_SEARCH_NAME,this.getDefaultOption(g,k))};a(function(){var g="us"===
n;if("live"===a("#runmodeInfo").val()&&"Y"===a("#b2bFlag").val()&&!g){g="";if("business solution detail"===digitalData.page.pageInfo.pageTrack||"business solutions detail"===digitalData.page.pageInfo.pageTrack)g="solution";else if("business insight detail"===digitalData.page.pageInfo.pageTrack||"business insights detail"===digitalData.page.pageInfo.pageTrack)g="insight";""!==g&&void 0!==window.sg.components.util&&(this.cookieUtil=new window.sg.components.util.CookieUtil,this.cookieUtil.addHistory(g,
a("#pathString").val(),a("#pageUrl").val()))}})})(window.jQuery);
(function(a,n){function k(I,J){if(J.children)for(var N=0;N<J.children.length;){var S=J.children[N],Z=S.classList;if(Z&&Z.contains("sdf-component-metadata"))g(I,S);else if(Z&&Z.contains("sdf-component-templates")){Z=S.children;for(var fa=0;fa<Z.length;){var ra=Z[fa];ra.hasAttribute("data-sdf-template")?f(I,ra):fa++}J.removeChild(S)}else S.hasAttribute("data-sdf-template")?f(I,S):(S.hasAttribute("data-sdf-test")&&(Z=S.sdfContext={},m(Z,S.getAttribute("data-sdf-test")),S.removeAttribute("data-sdf-test")),
S.hasAttribute("data-sdf-call")?(Z=S.sdfContext={},e(Z,S.getAttribute("data-sdf-call")),S.removeAttribute("data-sdf-call")):(k(I,S),N++))}}function g(I,J){J=a(J);J.find("[data-sdf-prop]").each(function(){var N=a.trim(this.getAttribute("data-sdf-prop"));N&&0<N.length&&I.metadata.set(N,a.trim(this.textContent))});J.remove()}function f(I,J){var N=a(J),S=J.parentElement;N.removeClass("sdf-component-template");var Z=a.trim(J.getAttribute("data-sdf-template"));if(0===Z.length)log.error("[SDF] Illegal template attribute: template name required: "+
ya(J));else{var fa=Z.indexOf("@");var ra=0>fa?Z:a.trim(Z.substring(0,fa));if(0===ra.length)log.error("[SDF] Illegal template attribute: template name is empty: "+ya(J));else{var va=a.trim(Z.substring(fa+1));Z=[];fa=!1;if(0<va.length){va=va.split(",");for(var nb=0;nb<va.length;nb++){var Ia=a.trim(va[nb]);if(0!==Ia.length){var Ya=Ia.indexOf("\x3d");if(0>Ya)Z.push({variable:Ia});else{var pa=a.trim(Ia.substring(0,Ya));Ia=r(a.trim(Ia.substring(Ya+1)));!fa&&Ia&&(fa=!0);Z.push({variable:pa,reference:Ia})}}}}J.removeAttribute("data-sdf-template");
if(fa){S=n.createElement(J.localName);if(J.hasAttributes()){fa=J.attributes;for(va=0;va<fa.length;va++)S.setAttribute(fa[va].localName,fa[va].nodeValue);fa=J.attributes;for(va=fa.length-1;0<=va;va--)J.removeAttribute(fa[va].localName)}if(J.hasChildNodes())for(;J.firstChild;)S.appendChild(J.firstChild);fa=q(ra);J.sdfContext={invokeTemplate:{template:ra,isDynamic:fa,nameToken:fa?l(ra):null,binds:Z}};J=S}else S&&S.removeChild(J);S=J;fa=(fa=N.parent())&&0<fa.length&&!fa.hasClass("sdf-component-templates")?
fa.get(0):null;N={name:ra,element:S,$element:N,variables:Z,target:fa};I.templates.set(ra,N);J.sdfContext=J.sdfContext||{};J.sdfContext.template=N;h(I,N,J)}}}function h(I,J,N){if(N.nodeType===n.ELEMENT_NODE){a:{N.sdfContext=N.sdfContext||{};if(N.hasAttributes()){if(N.hasAttribute("data-sdf-template")){f(I,N);I=!0;break a}for(var S=N.attributes,Z=N.sdfContext,fa=0;fa<S.length;fa++){var ra=S[fa],va=ra.name;ra=ra.nodeValue;if("data-sdf-test"===va)m(Z,ra);else if("data-sdf-call"===va)e(Z,ra);else if("data-sdf-unwrap"===
va)va=Z,q(ra)?va.unwrap={isDynamic:!0,value:r(ra)}:(ra=a.trim(ra),va.unwrap={isDynamic:!1,value:0===ra.length||"true"===ra.toLowerCase()});else if("data-sdf-element"===va)va=Z,q(ra)?va.element={isDynamic:!0,value:r(ra)}:va.element={isDynamic:!1,value:a.trim(ra)};else if(0===va.indexOf("data-sdf-attr")){var nb=Z;va=va.substring(13);1>=va.length||"."!==va.charAt(0)?console.warn("[SDF] Empty dynamic attribute name: "+va+'\x3d"'+ra+'"'):d(nb,!0,!1,va.substring(1),l(ra))}else 0===va.indexOf("data-sdf-list")?
b("data-sdf-list",Z,va,ra):0===va.indexOf("data-sdf-repeat")?b("data-sdf-repeat",Z,va,ra):(nb=q(ra),d(Z,nb,!0,va,nb?l(ra):ra))}N.sdfContext=Z}if(N.hasChildNodes())for(N=N.childNodes,S=0;S<N.length;)h(I,J,N[S])||S++;I=!1}return I}N.nodeType===n.TEXT_NODE&&0<=N.nodeValue.indexOf("{{")&&(I=l(N.nodeValue),N.sdfContext={bindTokens:I});return!1}function m(I,J){var N=q(J),S=N?r(a.trim(J)):J.toLowerCase();S&&0<S.length?N?(J=S.split(/[ \t]+/),2===J.length&&"not"===J[0]?(I.testInverse=!0,I.test=J[1]):I.test=
S):I.test="true"===S:console.warn("[SDF] Empty test attribute: "+aname+'\x3d"'+J+'"')}function e(I,J){var N=a.trim(J).split(/\s*@\s*/);if(0===N[0].length)console.warn("[SDF] Illegal template call: "+J+'"');else{J=N[0];var S=q(J);I.invokeTemplate={template:J,isDynamic:S,nameTokens:S?l(J):null};if(1<N.length&&0<N[1].length){J=[];N=N[1].split(/\s*,\s*/);for(S=0;S<N.length;S++)if(0<N[S].length){var Z=N[S].split(/\s*=\s*/);2<Z.length||0===Z[0].length?console.warn("[SDF] Illegal variable binds: "+N[S]):
J.push({variable:Z[0],reference:2===Z.length?r(Z[1]):null})}0<J.length&&(I.invokeTemplate.binds=J)}}}function b(I,J,N,S){N=N.substring(I.length);var Z=1<N.length&&"."===N.charAt(0)?N.substring(1):"";0===Z.length&&(Z="item");var fa=r(S);0===fa.length?console.warn("[SDF] Illegal '"+I+"' directive: "+N+'\x3d"'+S+'"'):J["data-sdf-list"===I?"list":"repeat"]={variable:Z,reference:fa}}function d(I,J,N,S,Z){S&&Z&&0<Z.length&&(I.attributes||(I.attributes={}),I.attributes[S]={isDynamic:J,isAllowBlank:N,isNamespaceProvided:0<
S.indexOf(":"),name:S,value:Z})}function l(I){for(var J=0,N=0,S=[];J<I.length;){J=I.indexOf("{{",N);if(0>J){S.push(I.substring(N));break}S.push(I.substring(N,J));N=I.indexOf("}}",J+2);if(0>N){S.push(I.substring(J));break}S.push(I.substring(J+2,N));J=N+=2}return S}function q(I){var J=I.indexOf("{{");return 0<=J?0<I.indexOf("}}",J+2+1):!1}function r(I){if(!I||4>I.length)return"";var J=I.indexOf("{{"),N=I.indexOf("}}");return 0>J||0>N||J>N||J+2===N?(console.warn("[SDF] Illegal expression: "+I),""):I.substring(J+
2,N)}function w(I,J,N,S){(S=S||J.target)||console.log("[SDF] Unknown bind target with template: "+J.name);var Z={component:I,template:J,bindObject:N,target:S,parent:S||a("\x3cdiv\x3e\x3c/div\x3e").get(0),currentNode:J.element},fa=x(Z);fa&&(fa.boundData=N);0<I.observers.length&&I.notify("onTemplateRendered",{template:J,target:S,boundData:N});return S?fa:Z.parent}function x(I){var J=I.currentNode,N=J.sdfContext;if(J.nodeType===n.TEXT_NODE){var S=J.nodeValue;N?N.bindTokens&&(S=T(N.bindTokens,I.bindObject)):
q(S)&&(S=l(S),S=T(S,I.bindObject));N=document.createElement("div");for(N.innerHTML=S;N.firstChild;)I.parent.appendChild(N.firstChild);return J}a:if(S=N||{},J=I.bindObject,ca(S,J)){if(S.invokeTemplate){N=S.invokeTemplate;var Z=N.isDynamic?T(N.nameTokens,J):N.template,fa=I.component.templates.get(Z);if(fa){I=C(I.component,fa,N.binds,J,I.parent);break a}else console.warn("[SDF] Unknown template '"+Z+"'")}N=!1;S.unwrap&&(Z=S.unwrap,!Z.isDynamic&&!0===Z.value||Z.isDynamic&&!0===z(Z.value))&&(N=!0);Z=void 0;
if(S.repeat||S.list){if(S.repeat){fa=N;var ra=z(J,S.repeat.reference);if(ra&&0<ra.length){for(var va=I.parent,nb=I.currentNode,Ia=S.repeat.variable,Ya=Ia+"List",pa=0;pa<ra.length;pa++){var hb=ra[pa];J[Ia]=hb||{};try{hb.loopIndex=String(pa),hb.loopCount=String(pa+1)}catch(lc){}hb=J[Ya]=J[Ya]||{};hb.loopIndex=String(pa);hb.loopCount=String(pa+1);I.parent=fa?va:oa(va,nb,S,J);I.currentNode=nb;E(I)}delete J[Ia];I.parent=va}}if(S.list&&(Z=void 0,(fa=z(J,S.list.reference))&&0<fa.length)){ra=I.parent;va=
I.currentNode;nb=S.list.variable;Ia=nb+"List";N||(Z=oa(ra,va,S,J),I.parent=Z);for(S=0;S<fa.length;S++){Ya=fa[S]||{};J[nb]=Ya;try{Ya.loopIndex=String(S),Ya.loopCount=String(S+1)}catch(lc){}Ya=J[Ia]=J[Ia]||{};Ya.loopIndex=String(S);Ya.loopCount=String(S+1);I.parent=N?ra:Z;I.currentNode=va;E(I)}delete J[nb];I.parent=ra}}else N||(Z=oa(I.parent,I.currentNode,S,J),I.parent=Z),E(I);I=Z}else I=void 0;return I}function C(I,J,N,S,Z){var fa={};if(N&&0<N.length)for(var ra=0;ra<N.length;ra++)fa[N[ra].variable]=
z(S,N[ra].reference);return w(I,J,fa,Z||J.target)}function E(I){var J=I.parent,N=I.currentNode.childNodes;if(N&&0<N.length)for(var S=0;S<N.length;S++)I.parent=J,I.currentNode=N[S],x(I);I.parent=J}function z(I,J){if(I&&J){J=a.trim(J).split(".");for(var N=0;N<J.length&&(I=I[J[N]],I);N++);return I}}function T(I,J){var N=[];if(I&&0<I.length)for(var S=0;S<I.length;S++){var Z=I[S],fa=z(J,Z);void 0!==fa&&null!==fa&&(fa=String(fa));N.push(0===S%2?Z:fa)}return N.join("")}function ca(I,J){var N=!0;"undefined"!==
typeof I.test&&(J="string"===typeof I.test?z(J,I.test):I.test,void 0===J||null===J||!1===J||"undefined"!==typeof J.length&&0===J.length)&&(N=!1);return I.testInverse?!N:N}function oa(I,J,N,S){var Z=J.localName;N.element&&(Z=N.element,Z=a.trim(Z.isDynamic?z(S,Z.value):Z.value),0===Z.length&&(console.warn("[SDF] Empty dynamic tag name: use default '"+J.localName+"'"),Z=J.localName));try{if(J.prefix){var fa=Jb[J.prefix];if(fa)var ra=n.createElementNS(fa,Z);else console.warn("[SDF] Unsupported name prefix of element: "+
J.name+"; namespace ignored"),ra=n.createElement(Z)}else ra=n.createElement(Z)}catch(nb){console.warn("[SDF] Can't create element: "+nb.toString()+": use default '"+J.localName+"'"),ra=n.createElement(J.localName)}if(J=N.attributes)for(var va in J)if(fa=J[va],N=fa.isDynamic?T(fa.value,S):fa.value,fa.isAllowBlank||!fa.isAllowBlank&&0<N.length)fa.isNamespaceProvided?(fa=va.substring(0,va.indexOf(":")),(fa=Jb[fa])?ra.setAttributeNS(fa,va,N):(console.warn("[SDF] Unsupported name prefix of attribute: "+
va+"; namespace ignored"),ra.setAttribute(va,N))):ra.setAttribute(va,N);I.appendChild(ra);return ra}function ba(I,J,N){if(J.nodeType===n.TEXT_NODE)xa(J,N);else{if(J.sdfContext){var S=J.sdfContext;if(!ca(S,N)){J.parentElement.removeChild(J);return}if(S.invokeTemplate){S=J.parentElement;var Z=J.sdfContext.invokeTemplate,fa=Z.isDynamic?T(Z.nameTokens,N):Z.template;if(fa=I.templates.get(fa)){for(var ra=J.childNodes,va=ra.length-1;0<=va;va--)J.removeChild(ra[va]);C(I,fa,Z.binds,N,J);if(S)for(;J.hasChildNodes();)S.insertBefore(J.firstChild,
J)}S&&S.removeChild(J);return}}if(J.hasAttributes())for(S=J.attributes,Z=0;Z<S.length;Z++)0>S[Z].localName.indexOf("data-sdf-")&&xa(S[Z],N);if(J.hasChildNodes())for(S=0;S<J.childNodes.length;S++)ba(I,J.childNodes[S],N)}}function xa(I,J){if(q(I.nodeValue)){var N=l(I.nodeValue);I.nodeValue=T(N,J)}}function ya(I){var J="\x3c"+I.nodeName.toLowerCase();if(I.hasAttributes()){I=I.attributes;for(var N=0;N<I.length;N++)J+=" "+I[N].name+'\x3d"'+I[N].nodeValue+'"'}return J+"\x3e"}function ma(I,J,N){if((I=wa.get(I))&&
0<I.length)for(var S=0;S<I.length;S++){var Z=I[S];if(Z[J])try{Z[J].call(Z,N)}catch(fa){console.warn("[SDF] Can't notify component event '"+J+"': "+fa)}}}function ab(I,J){this.selector=I;this.$ui=J;this.rootElement=J.get(0);this.metadata=new Map;this.templates=new Map;this.observers=[];k(this,this.rootElement)}window.sg=window.sg||{};window.sg.sdf=window.sg.sdf||{};var Jb={html:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg",xbl:"http://www.mozilla.org/xbl",
xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"},wa=new Map,Oa=new Map;ab.prototype={init:function(I){ma(this.selector,"onBeforeInit",this);var J=r(this.rootElement.getAttribute("data-sdf-bind"));J&&0<J.length&&((I=z(I,J))&&ba(this,this.rootElement,I),this.rootElement.removeAttribute("data-sdf-bind"),this.rootElement.boundData=I);ma(this.selector,"onAfterInit",this)},meta:function(I){return this.metadata.get(I)},invokeTemplate:function(I,J,N){q(I)&&(I=l(I),I=T(I,J));return(I=this.templates.get(I))?
w(this,I,J,N):null},addObserver:function(I){this.observers.push(I)},removeObserver:function(I){I=this.observers.indexOf(I);0<=I&&this.observers.splice(I,1)},notify:function(I,J){for(var N=0;N<this.observers.length;N++){var S=this.observers[N];if(S[I])try{S[I].call(S,J)}catch(Z){console.warn("[SDF] Notification failure: '"+I+"': "+Z)}}}};window.sg.sdf.comp={dispatch:function(I){var J=a(I);if(0!==J.length){var N=Oa.get(I);N||(N=[],Oa.set(I,N),J.each(function(){var S=new ab(I,a(this));ma(I,"onCreated",
S);N.push(S)}));return 1===N.length?N[0]:N}},dispose:function(I){if(Oa.has(I)){for(var J=Oa.get(I),N=0;N<J.length;N++)ma(I,"onDispose",J[N]);Oa["delete"](I)}},attachListener:function(I,J){var N=wa.get(I);N||(N=[],wa.set(I,N));N.push(J)},detachListener:function(I,J){(I=wa.get(I))&&0<I.length&&(J=I.indexOf(J),0<=J&&I.splice(J,1))}}})(jQuery,document);
(function(a){function n(f){this._capacity=f;this._queue=[]}function k(){this._handlerMap={}}window.sg=window.sg||{};window.sg.sdf=window.sg.sdf||{};var g={prepareNamespace:function(f,h){var m=a.trim(f).split(".");f=null;h=h||window;m=$jscomp.makeIterator(m);for(var e=m.next();!e.done;e=m.next())e=e.value,null==f?(f=h[e])||(f=h[e]={}):f=f[e]=f[e]||{};return f},resolve:function(f,h){f=a.trim(f).split(".");if(h=h||window){f=$jscomp.makeIterator(f);for(var m=f.next();!m.done&&(h=h[m.value],"undefined"!==
typeof h&&null!=h);m=f.next());}return h},getImagePreset:function(f,h,m){function e(l,q){var r=l.lastIndexOf(".");if(0<r)switch(l.substring(r+1).toLowerCase()){case "jpg":case "jpeg":return"JPG";case "png":return"PNG";case "gif":return"GIF";default:if("LazyLoad_Home"===q)return"PNG"}return"IMG"}h=a.trim(h);m=a.trim(m);f=a.trim(f);var b=h.indexOf("?$");if(0<b){var d=h.indexOf("$",b+2);if(0<d)return b=h.substring(b+2,d).split("_"),f=""!==f?f:1===b.length?b[0]:b.slice(0,b.length-1).join("_"),h=""!==
m?m.toUpperCase():1===b.length?e(h,f):b[b.length-1].toUpperCase(),"?$"+f+"_"+h+"$"}return function(l,q,r){if(""===q)return"";l=""!==r?r.toUpperCase():e(l,q);return"?$"+q+"_"+l+"$"}(h,f,m)},presetImage:function(f,h,m){h=a.trim(h);if(0<h.length){var e=h.indexOf("?$");if(0>e)return h+this.getImagePreset(f,h,m);if(0<e){var b=h.indexOf("$",e+2);b=0<b?h.substring(b+1):"";return h.substring(0,e)+this.getImagePreset(f,h,m)+b}}return h},previewImageSrc:function(f,h){return this.presetImage("LazyLoad_Home",
f,h)},productCardImageSrc:function(f,h){return this.presetImage("PC_PRD_CARD",f,h)}};n.prototype={offer:function(f){return this._queue.length<this._capacity?(this._queue.push(f),!0):!1},put:function(f){var h=null;this._queue.length===this._capacity&&(h=this._queue.shift());this._queue.push(f);return h},get:function(){var f=null;0<this._queue.length&&(f=this._queue[0]);return f},take:function(){var f=null;0<this._queue.length&&(f=this._queue.shift());return f},clear:function(){this._queue=[]},capacity:function(){return this._capacity},
size:function(){return this._queue.length}};g.Queue=n;k.prototype={register:function(f,h){if(h){var m=this._handlerMap[f];m||(m=[],this._handlerMap[f]=m);m.push(h)}},unregister:function(f,h){if(h){var m=this._handlerMap[f];if(m&&0<m.length){var e=[];m=$jscomp.makeIterator(m);for(var b=m.next();!b.done;b=m.next())b=b.value,b!==h&&e.push(b);this._handlerMap[f]=e}}},fire:function(f,h,m){var e=this._handlerMap[f];if(e&&0<e.length){f={};e=$jscomp.makeIterator(e);for(var b=e.next();!b.done;f={$jscomp$loop$prop$h$99:f.$jscomp$loop$prop$h$99},
b=e.next())f.$jscomp$loop$prop$h$99=b.value,setTimeout(function(d){return function(){d.$jscomp$loop$prop$h$99.call(m||this,h)}}(f),10)}}};g.eventBroker=new k;window.sg.sdf.util=g})(jQuery);(function(a){function n(k,g){a(k).each(function(f,h){h.hasAttribute(g)||h.setAttribute(g,"")})}a(function(){n("img","alt")})})(jQuery);
(function(){function a(k,g){var f=g+"_desktop",h=k[f],m=g+"_mobile",e=k[m];"mobile"===n?e&&0<e.length?k[g]=e:!k[g]&&h&&0<h.length&&(k[g]=h):"desktop"===n&&(h&&0<h.length?k[g]=h:!k[g]&&e&&0<e.length&&(k[g]=e));delete k[f];delete k[m]}var n=function(){var k=window,g="inner";"innerWidth"in window||(g="client",k=document.documentElement||document.body);return 767<k[g+"Width"]?"desktop":"mobile"}();(function(){var k=document.querySelectorAll("script[data-object-type\x3d'VideoObject']");if(k&&0<k.length)for(var g=
0,f=k.length;g<f;g++){var h=JSON.parse(k[g].innerText);a(h,"thumbnailUrl");a(h,"contentUrl");k[g].innerText=JSON.stringify(h)}})()})();
(function(){window.sg=window.sg||{};window.sg.common=window.sg.common||{};window.sg.components=window.sg.components||{};var a={BREAKPOINTS:{DESKTOP:1440,MOBILE:767,MOBILE_UNDER:360},SELECTOR:{RES_IMG:".responsive-img",VIDEO:".video",LAZY_LOAD:".lazy-load",PREVIEW_IMG:".preview",INDICATOR:".indicator"},KEY_CODE:{TAB:9,ENTER:13,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,ESC:27}},n,k,g="",f=null,h=null,m=!!document.querySelector(".wearable-bc"),e=new Intl.Segmenter(void 0,
{granularity:"grapheme"}),b={getViewPort:function(){var d=window,l="inner";"innerWidth"in window||(l="client",d=document.documentElement||document.body);return{width:d[l+"Width"],height:d[l+"Height"]}},getCurrentDevice:function(){return b.getViewPort().width>a.BREAKPOINTS.MOBILE?"desktop":"mobile"},getCurrentMediaType:function(){var d=b.getViewPort().width;return d>a.BREAKPOINTS.MOBILE?d>a.BREAKPOINTS.DESKTOP?"desktop-over":"desktop":d>a.BREAKPOINTS.MOBILE_UNDER?"mobile":"mobile-under"},isInVerticalViewPort:function(d,
l){l=void 0===l?200:l;d=d.getBoundingClientRect();return d.top-l<=b.getViewPort().height&&d.bottom>=0+(this.scrollFlag?null:b.getStickyNavHeightPromise())},isInHorizontalViewPort:function(d,l){l=void 0===l?200:l;d=d.getBoundingClientRect();return d.left-l<=b.getViewPort().width&&0<=d.right+l},isVerticalVisible:function(d,l){return b.isInVerticalViewPort(d,void 0===l?200:l)&&!!(d.offsetWidth||d.offsetHeight||d.getClientRects().length)},isHorizontalVisible:function(d,l){return b.isInHorizontalViewPort(d,
void 0===l?200:l)&&!!(d.offsetWidth||d.offsetHeight||d.getClientRects().length)},isInViewPort:function(d){return b.isInVerticalViewPort(d)&&b.isInHorizontalViewPort(d)},isVisible:function(d){return b.isInViewPort(d)&&!!(d.offsetWidth||d.offsetHeight||d.getClientRects().length)},scrollTo:function(d,l){var q=document.documentElement,r=q.scrollTop,w=q.scrollHeight,x=q.clientHeight;q=q.scrollLeft;d>w-x&&(d=w-x);var C=isNaN(l)?r:l;C+=(d-r)/7;0>C?C=0:C>w-x&&(C=w-x);l=Math.ceil(C);window.scrollTo(q,l);l!==
d?n=setTimeout(function(){b.scrollTo(d,C)},15):clearTimeout(n)},setImageSpecGuide:function(d,l){var q=document.createElement("span");q.innerHTML=l;q.style.position="absolute";q.style.display="inline-block";q.style.top="50%";q.style.right="50%";q.style.width="100%";q.style.textAlign="center";q.style.fontStyle="italic";q.style.transform="translateX(50%) translateY(-50%)";q.style.color="#fff";q.style.fontSize="30px";q.classList.add("media-size-guide");d.appendChild(q)},extend:function(d,l){Object.keys(l).forEach(function(q){d[q]=
l[q]});return d},setCookie:function(d,l,q){var r=new Date;r.setTime(r.getTime()+864E5*q);document.cookie=d+"\x3d"+l+"; expires\x3d"+r.toUTCString()+"; path\x3d/"},getCookie:function(d){return(d=document.cookie.match("(^|;) ?"+d+"\x3d([^;]*)(;|$)"))?d[2]:null},triggerEvent:function(d,l,q,r,w){q=void 0===q?null:q;r=void 0===r?!1:r;w=void 0===w?!0:w;if("function"===typeof CustomEvent)var x=new CustomEvent(l,{bubbles:r,cancelable:w,detail:q});else x=document.createEvent("CustomEvent"),x.initCustomEvent(l,
r,w,q);d.dispatchEvent(x)},hiddenScroll:function(){if(!0!==this.scrollFlag){this.scrollFlag=!0;this.currentPos=window.scrollY||document.documentElement.scrollTop;var d=document.querySelector("body");var l=0<this.currentPos?"-"+this.currentPos+"px":0;d.style.position="fixed";d.style.width="100%";d.style.top=l}},visibleScroll:function(){if(!0===this.scrollFlag){this.scrollFlag=!1;var d=document.querySelector("body");d.style.position="";d.style.width="";d.style.top="";window.scrollTo(0,this.currentPos)}},
getDirection:function(){return window.getComputedStyle(document.body).direction},addEventListener:function(d,l,q){if(d){k||(k=new WeakMap);var r=k.has(d)?k.get(d):{};r[l]||(r[l]=[]);r[l].push(q);k.set(d,r);d.addEventListener(l,q)}},removeAllEventListeners:function(d,l){if(d&&k&&k.has(d)){var q=k.get(d);q[l]&&(q[l].forEach(function(r){d.removeEventListener(l,r)}),delete q[l],Object.keys(q).length||k.delete(d))}},closest:function(d,l){do{if(d.matches?d.matches(l):d.msMatchesSelector(l))return d;d=d.parentElement||
d.parentNode}while(null!==d&&1===d.nodeType);return null},popupControl:{closeParam:null,popstateHandler:function(){window.history.state?"popOpen"===window.history.state.page&&(window.sg.common.utils.popupControl.closeParam(),window.sg.common.utils.popupControl.close()):(window.sg.common.utils.popupControl.closeParam(),window.sg.common.utils.popupControl.close())},open:function(d){this.closeParam=d;window.removeEventListener("popstate",this.popstateHandler);window.addEventListener("popstate",this.popstateHandler);
d=window.history.state&&"popOpen"===window.history.state.page;(new URLSearchParams(window.location.search)).has("addon")||d||window.history.pushState({page:"popOpen"},"",""+window.location.href);m&&b.hideOverDimEls()},close:function(d){d=void 0===d?!1:d;this.closeParam=null;window.history.state&&("popOpen"===window.history.state.page&&(d?window.history.back():window.history.forward(),window.removeEventListener("popstate",this.popstateHandler)),m&&b.showOverDimEls())}},setSwiperIndicatorTaggingAttributes:function(d,
l){var q=JSON.parse(d);[].concat($jscomp.arrayFromIterable(l.querySelectorAll(".swiper-pagination-bullet"))).forEach(function(r,w){r.setAttribute("an-tr",q.anTr);r.setAttribute("an-ca",q.anCa);r.setAttribute("an-ac",q.anAc);r.setAttribute("an-la",""+q.anLa+(w+1))})},isEnglish:function(d){return/^[a-zA-Z]*$/.test(d)},isNumber:function(d){return/^[0-9]*$/.test(d)},isEngNum:function(d){return/^[a-zA-Z0-9]*$/.test(d)},isEmail:function(d){return/^[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*.[a-zA-Z]{2,3}$/i.test(d)},
detectTransitionEndEvent:function(d){for(var l={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},q=Object.keys(l),r=0;r<q.length;r++)if(void 0!==d.style[q[r]])return l[q[r]]},isRtl:function(){return"RTL"===getComputedStyle(document.body).direction.toUpperCase()},setMobileFocusLoop:function(d){do{for(var l=d.parentElement.childNodes,q=0;q<l.length;q++)1===l[q].nodeType&&l[q]!==d&&"SCRIPT"!==l[q].tagName.toUpperCase()&&"STYLE"!==
l[q].tagName.toUpperCase()&&(l[q].setAttribute("data-aria-hidden",l[q].getAttribute("aria-hidden")||"null"),l[q].setAttribute("aria-hidden","true"));d=d.parentElement}while(d!==document.body)},removeMobileFocusLoop:function(){for(var d=document.querySelectorAll("[data-aria-hidden]"),l=0;l<d.length;l++){var q=d[l].getAttribute("data-aria-hidden");"null"===q?d[l].removeAttribute("aria-hidden"):d[l].setAttribute("aria-hidden",q);d[l].removeAttribute("data-aria-hidden")}},detectScrollType:function(){if(g)return g;
g="reverse";var d=document.createElement("div");d.appendChild(document.createTextNode("tmpDivEl"));d.dir="rtl";d.style.fontSize="12px";d.style.width="4px";d.style.height="2px";d.style.position="absolute";d.style.overflow="scroll";document.body.appendChild(d);0<d.scrollLeft?g="default":(d.scrollLeft=2,2>d.scrollLeft&&(g="negative"));document.body.removeChild(d);return g},getNormalizedScrollLeft:function(d){if(b.isRtl())switch(b.detectScrollType()){case "negative":return d.scrollWidth-d.clientWidth+
d.scrollLeft;case "reverse":return d.scrollWidth-d.clientWidth-d.scrollLeft}return d.scrollLeft},setNormalizedScrollLeft:function(d,l){if(b.isRtl())switch(b.detectScrollType()){case "negative":d.scrollLeft=d.clientWidth-d.scrollWidth+l;break;case "reverse":d.scrollLeft=d.scrollWidth-d.clientWidth-l;break;default:d.scrollLeft=l}else d.scrollLeft=l},isPassiveSupported:function(){if(null===f)try{var d={get passive(){f=!0}};window.addEventListener("test",d,d);window.removeEventListener("test",d,d)}catch(l){f=
!1}return f},makeDate:function(d){var l=d.replace(/[+|-][0-9]{4}$/,""),q=new Date(l);l=d.substring(l.length);""!==l&&(d=parseInt(l.substring(0,3),0),l=parseInt(l.substring(3),0),0>d&&(l*=-1),q.setHours(q.getHours()+-1*d),q.setMinutes(q.getMinutes()+-1*l));return q},getTimeStatus:function(d,l){d=b.makeDate(d);l=b.makeDate(l);var q=new Date;return q>=d?q>l?"after":"live":"before"},showBambuserLiveShopping:function(d){window.onBambuserLiveShoppingReady=function(q){q.configure({buttons:{dismiss:q.BUTTON.MINIMIZE}})};
if(!window.initBambuserLiveShopping){window.initBambuserLiveShopping=function(q){window.initBambuserLiveShopping.queue.push(q)};window.initBambuserLiveShopping.queue=[];var l=document.createElement("script");l.src="https://lcx-embed.bambuser.com/belo4d/embed.js";document.body.appendChild(l)}window.initBambuserLiveShopping({showId:d,type:"overlay"})},removeReCaptchaFrameBorder:function(){0<document.querySelectorAll('[title\x3d"reCAPTCHA"]').length&&[].concat($jscomp.arrayFromIterable(document.querySelectorAll('[title\x3d"reCAPTCHA"]'))).forEach(function(d){d.removeAttribute("frameborder")})},
changeActiveReCaptchaProperty:function(){0<document.querySelectorAll('[title\x3d"reCAPTCHA"]').length&&[].concat($jscomp.arrayFromIterable(document.querySelectorAll('[title\x3d"reCAPTCHA"]'))).forEach(function(d){d.setAttribute("aria-hidden","true");d.removeAttribute("frameborder");/Android/i.test(navigator.userAgent)&&d.removeAttribute("role")})},changeInActiveReCaptchaProperty:function(){0<document.querySelectorAll('[title\x3d"reCAPTCHA"]').length&&[].concat($jscomp.arrayFromIterable(document.querySelectorAll('[title\x3d"reCAPTCHA"]'))).forEach(function(d){d.removeAttribute("aria-hidden");
/Android/i.test(navigator.userAgent)&&d.setAttribute("role","presentation")})},buyingFocus:function(d){(d=document.querySelector(['.pdd-buying-tool [data-target-popup\x3d"'+d+'"]','.pd-buying-tool [data-target-popup\x3d"'+d+'"]','.wearable-bc-buying [data-target-popup\x3d"'+d+'"]'].join()))&&d.focus()},hideOverDimEls:function(){h||(h=[{display:null,sel:"#spr-live-chat-app"},{display:null,sel:"#QSIFeedbackButton-btn"},{display:null,sel:"#kampyleButtonContainer"}],h.forEach(function(d){var l=document.querySelector(d.sel);
l&&(d.display=l.style.display,l.style.display="none")}))},showOverDimEls:function(){h&&(h.forEach(function(d){var l=document.querySelector(d.sel);l&&(l.style.display=d.display)}),h=null)},bindRaf:function(d){var l=!1;return function(q){l||(l=!0,requestAnimationFrame(function(){l=!1;d(q)}))}},getFirstFocusableEl:function(d,l){l=void 0===l?[]:l;d=d?d:document;var q=function(C){return!!(C.offsetWidth||C.offsetHeight||C.getClientRects().length)&&"hidden"!==getComputedStyle(C).visibility},r=function(C){if(l.length)for(var E=
0;E<l.length;E++)if(C.matches(l[E]))return!0;return!1};if((d.matches?d.matches('input:not([tabindex\x3d"-1"]), select:not([tabindex\x3d"-1"]), textarea:not([tabindex\x3d"-1"]), button:not([disabled]):not([tabindex\x3d"-1"]), [href]:not(use):not([tabindex\x3d"-1"]), [tabindex]:not([tabindex\x3d"-1"])'):d.msMatchesSelector('input:not([tabindex\x3d"-1"]), select:not([tabindex\x3d"-1"]), textarea:not([tabindex\x3d"-1"]), button:not([disabled]):not([tabindex\x3d"-1"]), [href]:not(use):not([tabindex\x3d"-1"]), [tabindex]:not([tabindex\x3d"-1"])'))&&
q(d))return d;d=d.querySelectorAll('input:not([tabindex\x3d"-1"]), select:not([tabindex\x3d"-1"]), textarea:not([tabindex\x3d"-1"]), button:not([disabled]):not([tabindex\x3d"-1"]), [href]:not(use):not([tabindex\x3d"-1"]), [tabindex]:not([tabindex\x3d"-1"])');if(!d.length)return null;for(var w=0;w<d.length;w++){var x=d[w];if(q(x)&&!r(x))return x}},setFocusFirstFocusableEl:function(d,l){l=void 0===l?[]:l;if(d=b.getFirstFocusableEl(d,l))return d.focus(),d},setFocusNextFocusableEl:function(d){if(!(d&&
d instanceof Element))return null;var l=d.nextElementSibling;if(l)return(d=b.getFirstFocusableEl(l))?(d.focus(),d):b.setFocusNextFocusableEl(l);l=d.parentElement;return l===document.body?null:b.setFocusNextFocusableEl(l)},setFocusFirstEl:function(d,l){var q=d.querySelector(l);if(q){q.setAttribute("tabindex",0);var r=function(){q.removeAttribute("tabindex");q.removeEventListener("blur",r)};requestAnimationFrame(function(){q.addEventListener("blur",r);q.focus()})}},getMobileOS:function(){var d=navigator.userAgent;
return/android/i.test(d)?"android":/iPad|iPhone|iPod|iPad Simulator|iPhone Simulator|iPod Simulator/.test(d)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints?"ios":"other"},getStickyNavHeightPromise:function(d){d=void 0===d?!1:d;var l=[],q=null;".explore-lnb-navigation .explore-lnb.sticky-nav;.nv07-explore-floating-navigation.use-sticky-nav;.floating-navigation.floating-navigation--fixed;.nv14-visual-lnb__container.sticky;.lnb-nav.lnb-nav--sticky.lnb-nav--fixed;.sticky-navigation-text.is-fixed;.pdd01-anchor-nav-v2--fixed .pdd01-anchor-nav-v2__menu".split(";").forEach(function(r){var w=
document.querySelector(r);w&&0<w.offsetWidth&&0<w.offsetHeight&&(d?(r=new Promise(function(x){var C=null,E=w.offsetHeight,z=setInterval(function(){w.offsetHeight===E?(clearInterval(z),C+=w.offsetHeight,x(C)):E=w.offsetHeight},100)}),l.push(r)):q+=w.offsetHeight)});return d?Promise.allSettled(l):q},scrollHash:function(){var d=window.location.hash.trim().replace("#","");document.getElementById(d)&&b.getStickyNavHeightPromise(!0).then(function(l){var q=null;l.forEach(function(r){q+=r.value});window.scrollTo(0,
Math.round(document.getElementById(d).getBoundingClientRect().top+window.scrollY)-q)})},getEllipsis:function(d,l){function q(E){if(!x)if(E.nodeType===Node.TEXT_NODE){var z=[].concat($jscomp.arrayFromIterable(e.segment(E.textContent))),T=l-w;z.length>T&&(x=E,C=T);w+=z.length}else E.nodeType===Node.ELEMENT_NODE&&Array.from(E.childNodes).forEach(function(ca){q(ca)})}var r=document.createElement("div");r.innerHTML=d;var w=0,x=null,C=0;q(r);if(!x)return d;d=[].concat($jscomp.arrayFromIterable(e.segment(x.textContent)));
x.textContent=d.slice(0,C).map(function(E){return E.segment}).join("")+"...";for(d=x;d&&d!==r;){for(;d.nextSibling;)d.nextSibling.remove();d=d.parentNode}return r.innerHTML},setScrollPaddingTop:function(){var d={};return function(l,q){Number.isNaN(Number(q))||(d[l]=Number(q),l=Object.values(d).reduce(function(r,w){return r+w},0),0<l?document.querySelector("html").style.scrollPaddingTop=l+3+"px":document.querySelector("html").style.scrollPaddingTop="")}}(),getFileData:function(d){return window.__fileData__&&
window.__fileData__[d]}};window.sg.common.constants=a;window.sg.common.utils=b;window.sg.common.bindEvents={hashChange:function(){window.removeEventListener("hashchange",window.sg.common.utils.scrollHash);window.addEventListener("hashchange",window.sg.common.utils.scrollHash)}};window.sg.common.bindEvents.hashChange()})();
(function(){var a={},n=window.sg.common.utils,k=n.extend,g=n.closest,f=function(m,e){e=void 0===e?{}:e;if(!m||m.nodeType!==Node.ELEMENT_NODE)throw new TypeError("Element should be given to initialize.");this.el=m;this.options={isRoot:!0,shouldInitChildren:!0};k(this.options,e);this.children=new Map;this.init();this.constructor.instances.set(this.el,this)};f.create=function(m,e){return this.instances.get(m)||new this(m,e)};f.prototype.init=function(){this.options.isRoot&&this.options.shouldInitChildren&&
this._initChildren();this._init()};f.prototype._initChildren=function(){var m=this;this._getChildEls().forEach(function(e){return m._initChild(e)})};f.prototype._getChildEls=function(m){m=void 0===m?this.el:m;m=Array.from(m.querySelectorAll("[data-comp-name]"));m.sort(function(e,b){if(e===b)return 0;e=e.compareDocumentPosition(b);return e&4||e&16?1:e&2||e&8?-1:0});return m};f.prototype._initChild=function(m){var e=a[m.getAttribute("data-comp-name")];e&&((e=e.create&&"function"===typeof e.create?e.create(m,
{isRoot:!1,shouldInitChildren:!1}):e.instances&&e.instances.has(m)?e.instances.get(m):new e(m))&&e.swiper&&(e=e.swiper),this.children.set(m,e))};f.prototype._init=function(){};f.prototype.reInit=function(m){for(var e=[],b=0;b<arguments.length;++b)e[b-0]=arguments[b];var d;b={shouldInitChildren:!0};1===e.length?e[0]instanceof Element?d=e[0]:"string"===typeof e[0]?d=this.el.querySelector(e[0]):"object"===typeof e[0]&&(b=e[0]):2===e.length&&(e[0]instanceof Element?d=e[0]:"string"===typeof e[0]&&(d=this.el.querySelector(e[0])),
"object"===typeof e[1]&&(b=e[1]));k(this.options,b);d||(d=this.el);!this.options.isRoot&&this.options.shouldInitChildren?(d=this._getRoot(),d.reInit.apply(d,$jscomp.arrayFromIterable(e))):(this.options.isRoot&&this._reInitChildren(d),this.el===d?this._reInit():this.el.contains(d)&&this._reInitChild(d),this.options.isRoot&&window.sg.common.lazyLoad.setLazyLoad())};f.prototype._getRoot=function(m){m=void 0===m?this.el:m;var e=g(m.parentElement,"[data-comp-name]");if(m)return m=this.constructor.instances.get(e),
m.options.isRoot?m:this._getRoot(e)};f.prototype._reInitChildren=function(m){var e=this;m=void 0===m?this.el:m;this.children.forEach(function(b,d){e.el.contains(d)||(b.destroy&&"function"===typeof b.destroy&&b.destroy(),e.children.delete(d))});this._getChildEls(m).forEach(function(b){return e._reInitChild(b)})};f.prototype._reInitChild=function(m){this.children.has(m)?(m=this.children.get(m),m.reInit&&"function"===typeof m.reInit&&(m.options&&"shouldInitChildren"in m.options?m.reInit({shouldInitChildren:!1}):
m.reInit())):this._initChild(m)};f.prototype._reInit=function(){this._init()};f.prototype.update=function(){this.options.isRoot&&this._updateChildren();this._update();this.options.isRoot&&window.sg.common.lazyLoad.setLazyLoad()};f.prototype._updateChildren=function(){var m=this;this.children.forEach(function(e,b){m.el.contains(b)&&e.update&&"function"===typeof e.update&&e.update()})};f.prototype._update=function(){};f.prototype.destroy=function(){var m=this;this.children.forEach(function(e,b){e.destroy&&
"function"===typeof e.destroy&&e.destroy();m.children.delete(b)});this.children=null;this._destroy();this.constructor.instances.delete(this.el)};f.prototype._destroy=function(){};f.prototype.getChild=function(m){if(!(m instanceof Element))if("string"===typeof m)m=this.el.querySelector(m);else return;if(this.children&&this.children.has(m))return this.children.get(m);if(this.el.contains(m)){var e=a[m.getAttribute("data-comp-name")];if(e&&e.instances&&e.instances.has(m))return(m=e.instances.get(m))&&
m.swiper&&(m=m.swiper),m}};f.prototype.setOptions=function(m){k(this.options,m)};f.prototype.emit=function(m,e,b){b=void 0===b?!1:b;if("function"===typeof CustomEvent)var d=new CustomEvent(m,{bubbles:b,detail:e});else d=document.createEvent("CustomEvent"),d.initCustomEvent(m,b,!1,e);this.el.dispatchEvent(d)};f.prototype.listen=function(m,e,b){this.el.addEventListener(m,e,b)};f.prototype.unListen=function(m,e,b){this.el.removeEventListener(m,e,b)};f.instances=new WeakMap;var h=function(m,e){if(!(m instanceof
Element))if("string"===typeof m)m=document.querySelector(m);else throw new TypeError("Element or selector string should be given as an argument");var b=m.getAttribute("data-comp-name");if(!b||!a[b])throw new ReferenceError("Component class should be registered.");b=a[b];(e=b===f||b.prototype instanceof f?b.create(m,e):b.instances&&b.instances.has(m)?b.instances.get(m):new b(m))&&e.swiper&&(e=e.swiper);return e};n=function(m,e){a[m]=e;if(e===f||e.prototype instanceof f){var b=Array.from(document.querySelectorAll('[data-comp-name\x3d"'+
m+'"]:not([data-auto-init\x3d"false"])'));b=b.filter(function(d){return!g(d.parentElement,"[data-comp-name]")});m=function(){return b.forEach(function(d){return h(d)})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",m):m()}};n("base",f);k(window.sg.components,{create:h,registerClass:n,unRegisterClass:function(m){a[m]=null;delete a[m]},getClass:function(m){return a[m]},Base:f})})();
(function(){var a=[];window.sg.common.observer={register:function(n){"function"===typeof n&&-1===a.indexOf(n)&&a.push(n)},unRegister:function(n){if("function"===typeof n){var k=a.indexOf(n);-1<k&&n.splice(k,1)}},test:function(){a.forEach(function(n){n(document)})},handlers:a}})();
(function(){var a=function(k){this.target="object"===typeof k?Array.isArray(k)?k:[k]:k?Array.prototype.slice.call(document.querySelectorAll(k)):[]};a.prototype.find=function(k){var g=[];this.target.forEach(function(f){g=g.concat(Array.prototype.slice.call(f.querySelectorAll(k)))});return new a(g)};a.prototype.eq=function(k){k=this.target[k];return new a(k?[k]:"")};a.prototype.parent=function(){return 0===this.target.length?new a(""):new a(this.target[0].parentNode?[this.target[0].parentNode]:"")};
a.prototype.children=function(k){k=void 0===k?null:k;var g=[];this.target.forEach(function(f){g=k?g.concat(Array.prototype.slice.call(f.querySelectorAll(k))):g.concat(Array.prototype.slice.call(f.children))});return new a(g)};a.prototype.closest=function(k){function g(e){return(e.matches?e.matches(k):e.webkitMatchesSelector?e.webkitMatchesSelector(k):e.msMatchesSelector(k))?e:e===document.body?null:null!==e.parentNode?g(e.parentNode):null}function f(e){return e===k?e:e===document.body?null:f(e.parentNode)}
if(0===this.target.length)return this;if(!this.target[0].parentElement)return new a([this.target]);var h=[],m="string"===typeof k;this.target.forEach(function(e){e=m?g(e):f(e);null!==e&&h.push(e)});return new a(h)};a.prototype.siblings=function(){return new a(function(k){return[].concat($jscomp.arrayFromIterable(k.parentElement.children)).filter(function(g){return g!==k})}(this.target[0]))};a.prototype.setLayerFocus=function(k,g,f){f=void 0===f?!0:f;var h=this.find(k);f&&h.attr("tabindex",0);h.addClass("layer-popup__looping");
this.find(".layer-popup__looping--first").target.length||(f?h.prepend('\x3cdiv class\x3d"layer-popup__looping--first hidden" tabindex\x3d"0" aria-hidden\x3d"true"\x3e\x3c/div\x3e'):this.target[0].insertAdjacentHTML("afterbegin",'\x3cdiv class\x3d"layer-popup__looping--first hidden" tabindex\x3d"0" aria-hidden\x3d"true"\x3e\x3c/div\x3e'));var m=this.find(g);this.find(".layer-popup__looping--end").target.length||(f?m.after('\x3cdiv class\x3d"layer-popup__looping--end hidden" tabindex\x3d"0" aria-hidden\x3d"true"\x3e\x3c/div\x3e'):
this.append('\x3cdiv class\x3d"layer-popup__looping--end hidden" tabindex\x3d"0" aria-hidden\x3d"true"\x3e\x3c/div\x3e'));k=this.find(".layer-popup__looping--first");g=this.find(".layer-popup__looping--end");k.off("focus").on("focus",function(){m.focus()});g.off("focus").on("focus",function(){h.focus()});h.focus()};a.prototype.offLayerFocus=function(){this.find(".layer-popup__looping").removeAttr("tabindex");this.find(".layer-popup__looping--first").off("focus").remove();this.find(".layer-popup__looping--end").off("focus").remove()};
a.prototype.css=function(k){var g=this.target[0];if(g){if("string"===typeof k)return window.getComputedStyle(g)[k];this.target.forEach(function(f){Object.keys(k).forEach(function(h){f.style[h]=k[h]})})}};a.prototype.show=function(){var k=this.target;k&&k.forEach(function(g){n(g).css({display:"block"})})};a.prototype.hide=function(){var k=this.target;k&&k.forEach(function(g){n(g).css({display:"none"})})};a.prototype.scrollTop=function(k){var g=this.target[0];if(g){if(void 0===k)return g.scrollTop;
g.scrollTop=k}};a.prototype.animate=function(k,g,f,h){var m=this;f=void 0===f?null:f;h=void 0===h?null:h;"string"!==typeof f&&(h=f,f=null);var e="webkitTransitionEnd oTransitionEnd otransitionend mozTransitionEnd moztransitionend transitionend transitionEnd".split(" ");this.target.forEach(function(b){function d(r){if(void 0===r||r.target===b)null!==h&&h(b),b.style.transition=q,e.forEach(function(w){b.removeEventListener(w,d);b.animateComplete=null})}var l=window.getComputedStyle(b);Object.keys(k).forEach(function(r){b.style[r]=
l[r]});var q=b.style.transition;b.style.transitionDuration=g/1E3+"s";null!==f&&(b.style.transitionTimingFunction=f);["o","ms","moz","webkit"].forEach(function(r){b.style[r+"TransitionDuration"]=g/1E3+"s";null!==f&&(b.style[r+"transitionTimingFunction"]=f)});b.animateComplete=d;e.forEach(function(r){b.addEventListener(r,d)})});setTimeout(function(){m.css(k)}.bind(this),30)};a.prototype.finish=function(){var k=this;if(this.target[0]){var g=document.createEvent("Event");"webkitTransitionEnd oTransitionEnd otransitionend mozTransitionEnd moztransitionend transitionend transitionEnd".split(" ").forEach(function(f){g.initEvent(f,
!1,!0);k.target.forEach(function(h){h.dispatchEvent(g)})});return this}};a.prototype.stop=function(){this.target.forEach(function(k){for(var g=0,f=window.getComputedStyle(k);k.style.length>g;){g++;var h=k.style[g-1];-1<h.indexOf("transition")||(k.style[h]=f[h])}k.style.transitionDuration="0s";["o","ms","moz","webkit"].forEach(function(e){k.style[e+"TransitionDuration"]="0s"});var m=k.animateComplete;"webkitTransitionEnd oTransitionEnd otransitionend mozTransitionEnd moztransitionend transitionend transitionEnd".split(" ").forEach(function(e){k.removeEventListener(e,
m);k.animateComplete=null})});return this};a.prototype.isAnimate=function(){return this.target.some(function(k){if("function"===typeof k.animateComplete)return!0})};a.prototype.slideDown=function(k,g){var f=this;this.target.forEach(function(h){var m=h.style.height,e=h.style.display;h.style.display="block";var b=window.getComputedStyle(h).height;h.style.height="0px";var d=h.style.overflow;h.style.overflow="hidden";f.css({overflow:"hidden"});f.animate({height:b},k,function(){h.style.display=e;h.style.height=
m;h.style.overflow=d;void 0!==g&&g()})})};a.prototype.slideUp=function(k,g){var f=this;this.target.forEach(function(h){function m(){h.style.height=e.height;h.style.overflow=e.overflow;h.style.padding=e.padding;void 0!==g&&g()}var e={height:h.style.height,overflow:h.style.overflow,padding:h.style.padding};h.style.height=window.getComputedStyle(h).height;setTimeout(function(){f.animate({overflow:"hidden",height:"0px",paddingTop:"0px",paddingBottom:"0px"},k,m)}.bind(f),30)})};a.prototype.index=function(){var k=
this.target[0];if(k){var g=0;Array.prototype.slice.call(k.parentNode.children).forEach(function(f,h){k===f&&(g=h)});return g}};a.prototype.offset=function(){var k=this.target[0];if(k)return k.getBoundingClientRect()};a.prototype.width=function(){var k=this.target[0];if(k){var g=window.getComputedStyle(k);return k.offsetWidth-parseInt(g.paddingLeft,10)-parseInt(g.paddingRight,10)-parseInt(g.borderLeftWidth,10)-parseInt(g.borderRightWidth,10)}};a.prototype.innerWidth=function(){var k=this.target[0];
if(k){var g=window.getComputedStyle(k);return k.offsetWidth-parseInt(g.borderLeftWidth,10)-parseInt(g.borderRightWidth,10)}};a.prototype.outerWidth=function(){var k=this.target[0];if(k)return k.clientWidth};a.prototype.height=function(){var k=this.target[0];if(k){var g=window.getComputedStyle(k);return k.offsetHeight-parseInt(g.paddingTop,10)-parseInt(g.paddingBottom,10)-parseInt(g.borderTopWidth,10)-parseInt(g.borderBottomWidth,10)}};a.prototype.innerHeight=function(){var k=this.target[0];if(k){var g=
window.getComputedStyle(k);return k.offsetHeight-parseInt(g.borderTopWidth,10)-parseInt(g.borderBottomWidth,10)}};a.prototype.outerHeight=function(){var k=this.target[0];if(k)return k.clientHeight};a.prototype.isImageLoad=function(){return 0<this.target[0].naturalWidth&&this.target[0].naturalHeight?!0:!1};a.prototype.hasClass=function(k){var g=this.target[0];if(g)return(new RegExp("(\\s|^)"+k+"(\\s|$)")).test(g.className)};a.prototype.addClass=function(k){var g=this.target;g&&g.forEach(function(f){f.classList.add(k)})};
a.prototype.removeClass=function(k){var g=this.target;g&&g.forEach(function(f){f.classList.remove(k)})};a.prototype.toggleClass=function(k){var g=this.target;g&&g.forEach(function(f){f.classList.toggle(k)})};a.prototype.attr=function(k,g){if(this.target){if(1<arguments.length)this.target.forEach(function(h){h.setAttribute&&h.setAttribute(k,g)});else{var f=this.target[0];return f?f.getAttribute(k):!1}return this}};a.prototype.removeAttr=function(k){this.target&&this.target.forEach(function(g){g.removeAttribute(k)})};
a.prototype.text=function(k){this.target.forEach(function(g){g.textContent=k})};a.prototype.innerHTML=function(k){this.target&&(this.target[0].innerHTML=k)};a.prototype.append=function(k){this.target.forEach(function(g){Array.isArray(k)?k.forEach(function(f){"string"===typeof f?g.insertAdjacentHTML("beforeend",f):g.appendChild(f)}):"string"===typeof k?g.insertAdjacentHTML("beforeend",k):g.appendChild(k)})};a.prototype.after=function(k){this.target.forEach(function(g){Array.isArray(k)?(k=[].concat($jscomp.arrayFromIterable(k)).reverse(),
k.forEach(function(f){"string"===typeof f?g.insertAdjacentHTML("afterend",f):g.insertAdjacentElement("afterend",f)})):"string"===typeof k?g.insertAdjacentHTML("afterend",k):g.insertAdjacentElement("afterend",k)})};a.prototype.prepend=function(k){this.target.forEach(function(g){Array.isArray(k)?k.forEach(function(f){"string"===typeof f?g.insertAdjacentHTML("beforebegin",f):f&&g.insertBefore(f,g.firstChild)}):"string"===typeof k?g.insertAdjacentHTML("beforebegin",k):k&&g.insertBefore(k,g.firstChild)})};
a.prototype.before=function(){};a.prototype.clone=function(){if(this.target[0]){var k=[];this.target.forEach(function(g){k.push(g.cloneNode(!0))});return k}};a.prototype.remove=function(){this.target[0]&&this.target.forEach(function(k){k.parentNode.removeChild(k)})};a.prototype.focus=function(){var k=this.target[0];if(k&&k.focus)return k.focus(),this};a.prototype.blur=function(){var k=this.target[0];if(k)return k.blur(),this};a.prototype.on=function(k,g){var f=this.target;f&&f.forEach(function(h){a.instances.has(h)||
a.instances.set(h,{event:[],handler:[]});a.instances.get(h).handler.push({event:k,handler:g});h.addEventListener(k,g)})};a.prototype.off=function(k,g){var f=this.target;if(f)return f.forEach(function(h){if(a.instances.has(h)){var m=a.instances.get(h);if(k&&g){var e=[];m.handler.forEach(function(d){d.event===k&&d.handler===g?h.removeEventListener(d.event,d.handler):e.push({event:d.event,handler:d.handler})});m.handler=e}else if(k){var b=[];m.handler.forEach(function(d){d.event===k&&h!==window?h.removeEventListener(d.event,
d.handler):b.push({event:d.event,handler:d.handler})});m.handler=b}else h!==window&&(m.handler.forEach(function(d){h.removeEventListener(d.event,d.handler)}),m.handler=[])}}),this};a.prototype.trigger=function(k){if(this.target[0]){var g=document.createEvent("Event");g.initEvent(k,!1,!0);this.target.forEach(function(f){f.dispatchEvent(g)})}};a.prototype.moveScroll=function(k,g,f){g=void 0===g?500:g;f=void 0===f?null:f;var h=(new Date).getTime();if(0===this.target.length)return!1;if("HTML"!==this.target[0].tagName&&
"BODY"!==this.target[0].tagName){var m=this.target[0],e=k-m.scrollTop,b=g,d=Math.ceil(Math.abs(e)/Math.ceil(b/16));requestAnimationFrame(function E(){var z=(new Date).getTime()-h;if(0<e){var T=m.scrollTop+d;m.scrollTop=m.scrollTop>k?k:T}else T=m.scrollTop-d,m.scrollTop=m.scrollTop<k?k:T;z<=b?requestAnimationFrame(E):(0<e?m.scrollTop<k&&(m.scrollTop=k):m.scrollTop>k&&(m.scrollTop=k),null!==f&&f())})}else{var l=Math.round(k),q=l-(document.body.scrollTop||document.documentElement.scrollTop),r=Math.ceil(Math.abs(q)/
(g/16)),w=document.body.scrollLeft||document.documentElement.scrollLeft,x=null;requestAnimationFrame(function E(){var z=document.body.scrollTop||document.documentElement.scrollTop;if(x===z)null!==f&&f();else{if(0<q){var T=z+r;T>l&&(T=l)}else T=z-r,T<l&&(T=l);window.scrollTo(w,T);x=z;l!==T?requestAnimationFrame(E):null!==f&&f()}})}};a.prototype.moveScrollX=function(k,g,f){function h(){b.scrollLeft=e;null!==f&&f()}g=void 0===g?500:g;f=void 0===f?null:f;var m=(new Date).getTime();if(0===this.target.length)return!1;
var e=k,b=this.target[0],d=e-b.scrollLeft,l=g,q=Math.ceil(Math.abs(d)/Math.ceil(l/16));requestAnimationFrame(function w(){var x=(new Date).getTime()-m;if(0<d){var C=b.scrollLeft+q;if(b.scrollLeft>e){h();return}}else if(C=b.scrollLeft-q,b.scrollLeft<e){h();return}b.scrollLeft=C;x<=l?requestAnimationFrame(w):0<d?b.scrollLeft<e&&h():b.scrollLeft>e&&h()})};a.instances=new WeakMap;var n=function(k){return new a(k)};n.ready=function(k){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",
k):k()};n.load=function(k){document.addEventListener("readystatechange",function(g){"complete"===g.target.readyState&&k()})};window.sg.common.libs={keyCode:{TAB_KEY:9,ENTER:13,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},extend:function(k,g){Object.keys(g).forEach(function(f){k[f]=g[f]});return k}};window.sg.common.$q=n})();
(function(){var a=window.sg.common.utils.isVerticalVisible,n=window.sg.common.utils.isHorizontalVisible,k=function(f){this.el=f=void 0===f?document:f;this.lazyEls=[];this.disabled=this.active=!1;this.tempTitle=document.querySelector("#tempTitle")&&document.querySelector("#tempTitle").value;this.tempTitleVerticalBuffer={"page-standard-pd":2E3,"page-feature-pd":2E3};this.tempTitleHorizontalBuffer={};this.init()};k.prototype.init=function(){this.setLazyLoad();this.bindEvents()};k.prototype.dispose=function(){this.el=
null;this.lazyEls=[];this.unBindEvents()};k.prototype.setDisabled=function(f){(this.disabled=f=void 0===f?!0:f)||this.setLazyLoad()};k.prototype.getEls=function(){this.el&&(this.lazyEls=[].concat($jscomp.arrayFromIterable(this.el.querySelectorAll(".lazy-load"))))};k.prototype.reInit=function(){this.disabled=this.active=!1;this.setLazyLoad();this.unBindEvents();this.bindEvents()};k.prototype.handleLazyLoad=function(f){var h=void 0;f&&f.detail&&(h=f.detail.delay);this.setLazyLoad(h)};k.prototype.setLazyLoad=
function(f){var h=this;f=void 0===f?200:f;var m=function(){h.disabled||(h.getEls(),h.lazyEls.forEach(function(e){h.load(e);0===h.lazyEls.length&&h.unBindEvents()}))};this.active||(0<f?(this.active=!0,setTimeout(function(){m();h.active=!1},f)):m())};k.prototype.setPreviewImageLoaded=function(f){var h=this,m=this.tempTitleVerticalBuffer&&this.tempTitleVerticalBuffer[this.tempTitle]||void 0,e=function(){!h.disabled&&a(f,m)&&([].concat($jscomp.arrayFromIterable(f.querySelectorAll(".image__preview"))).forEach(function(b){b.classList.contains("lazy-load")&&
h.loadImage(b)}),document.removeEventListener("scroll",e),window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e))};document.addEventListener("scroll",e);window.addEventListener("resize",e);window.addEventListener("orientationchange",e)};k.prototype.loadImmediately=function(f){f.classList.contains("image__preview")||f.classList.contains("image__main")||f.classList.contains("image__hover-image--hover")?this.loadImage(f):f.classList.contains("video")&&this.loadVideo(f);
f.classList.contains("image-v2")&&this.loadImage(f,"all")};k.prototype.setLazyLoadManually=function(f){var h=this;f.classList.contains("lazy-load-man")?(this.loadImmediately(f),f.classList.remove("lazy-load-man")):[].concat($jscomp.arrayFromIterable(f.querySelectorAll(".lazy-load-man"))).forEach(function(m){h.loadImmediately(m);m.classList.remove("lazy-load-man")})};k.prototype.ignoreLazyLoadOnceUnder=function(f,h){[].concat($jscomp.arrayFromIterable(f.querySelectorAll(".lazy-load"))).forEach(function(m){var e=
window.pageYOffset,b=m.getBoundingClientRect();(b.bottom+e<h||b.top+e<h)&&m.classList.add("lazy-load-ignore-once")})};k.prototype.forceLoad=function(f){var h=this;f.classList.contains("lazy-load")?this.loadImmediately(f):[].concat($jscomp.arrayFromIterable(f.querySelectorAll(".lazy-load"))).forEach(function(m){h.loadImmediately(m)})};k.prototype.load=function(f){var h=this.tempTitleVerticalBuffer&&this.tempTitleVerticalBuffer[this.tempTitle]||void 0,m=this.tempTitleHorizontalBuffe&&this.tempTitleHorizontalBuffer[this.tempTitle]||
void 0;f.classList.contains("lazy-load-ignore-once")||(a(f,h)&&(f.classList.contains("image__preview")?this.loadImage(f):n(f,m)&&(f.classList.contains("image__main")||f.classList.contains("image__hover-image--hover")?this.loadImage(f):f.classList.contains("video")&&this.loadVideo(f))),f.classList.contains("image-v2")&&a(f)&&(this.loadImage(f,"preview"),n(f)&&this.loadImage(f,"main")));f.classList.remove("lazy-load-ignore-once")};k.prototype.clearLazy=function(f){if(f.classList.contains("image-v2")){var h=
!1;[].concat($jscomp.arrayFromIterable(f.querySelectorAll("img"))).forEach(function(m){m.dataset.src&&(h=!0)});if(h)return}f.classList.remove("lazy-load");this.lazyEls=this.lazyEls.filter(function(m){return m!==f})};k.prototype.loadImage=function(f,h){var m=(h=void 0===h?null:h)?window.sg.common.imagev2:window.sg.common.image;m&&m.load(f,h);this.clearLazy(f)};k.prototype.loadVideo=function(f){var h=window.sg.common.video;h&&h.load(f);this.clearLazy(f)};k.prototype.bindEvents=function(){this.handleLazyLoad=
this.handleLazyLoad.bind(this);document.addEventListener("scroll",this.handleLazyLoad);window.addEventListener("resize",this.handleLazyLoad);window.addEventListener("orientationchange",this.handleLazyLoad)};k.prototype.unBindEvents=function(){document.removeEventListener("scroll",this.handleLazyLoad);window.removeEventListener("resize",this.handleLazyLoad);window.removeEventListener("orientationchange",this.handleLazyLoad)};k.instance=null;var g={initAll:function(){k.instance&&(k.instance.dispose(),
k.instance=null);k.instance=new k},init:function(){k.instance?k.instance.reInit():k.instance=new k},reInit:function(){g.init()},setLazyLoad:function(){k.instance||(k.instance=new k);k.instance.setLazyLoad(0)},setPreviewImageLoaded:function(f){k.instance||(k.instance=new k);k.instance.setPreviewImageLoaded(f)},setLazyLoadManually:function(f){f&&(k.instance||(k.instance=new k),k.instance.setLazyLoadManually(f))},ignoreLazyLoadOnceUnder:function(f,h){k.instance||(k.instance=new k);k.instance.ignoreLazyLoadOnceUnder(f,
h)},setDisabled:function(f){f=void 0===f?!0:f;k.instance||(k.instance=new k);k.instance.setDisabled(f)},forceLoad:function(f){f&&(k.instance||(k.instance=new k),k.instance.forceLoad(f))}};window.sg.common.lazyLoad=g;document.addEventListener("DOMContentLoaded",g.initAll);"loading"!==document.readyState&&g.initAll()})();
(function(){var a=window.sg.common.utils.getViewPort,n=window.sg.common.utils.getCurrentDevice,k=function(f){this.els={el:f,previewImgEl:null,mainImgEl:null};this.dpr=this.maxWidth=this.device="";this.init()};k.prototype.init=function(){k.instances.has(this.els.el)||(k.instances.set(this.els.el,this),this.setElement(),this.els.mainImgEl.complete&&0!==this.els.mainImgEl.naturalWidth&&this.handleLoad(),this.setResponsive(),this.bindEvents())};k.prototype.setElement=function(){this.els.previewImgEl=
this.els.el.querySelector(".image-v2__preview");this.els.mainImgEl=this.els.el.querySelector(".image-v2__main")};k.prototype.setResponsive=function(){var f=this,h=n(),m=this.getCurrentMaxWidth(),e=this.getCurrentDpr(),b=this.els.el.classList.contains("lazy-load")||this.els.el.classList.contains("lazy-load-man"),d=function(l,q){b?(l.dataset.src=void 0===l.dataset.src?"":l.dataset.src,0>l.dataset.src.indexOf(q)&&(l.dataset.src=q)):0>decodeURI(l.src).indexOf(q)&&(l===f.els.mainImgEl&&f.els.el.classList.remove("image-v2--main-loaded"),
l.src=q)};this.els.previewImgEl&&this.device!==h&&(this.device=h,d(this.els.previewImgEl,this.els.previewImgEl.dataset[this.device+"Src"]),this.els.previewImgEl.dataset.desktopAlt&&("desktop"===this.device?this.els.previewImgEl.setAttribute("alt",this.els.previewImgEl.dataset.desktopAlt):this.els.previewImgEl.setAttribute("alt",this.els.previewImgEl.dataset.mobileAlt)));if(this.maxWidth!==m||this.dpr!==e)this.maxWidth=m,this.dpr=e,d(this.els.mainImgEl,this.els.mainImgEl.dataset[this.maxWidth+"w"+
this.dpr+"xSrc"]),this.els.mainImgEl.dataset.desktopAlt&&("360"===this.maxWidth?this.els.mainImgEl.setAttribute("alt",this.els.mainImgEl.dataset.mobileAlt):this.els.mainImgEl.setAttribute("alt",this.els.mainImgEl.dataset.desktopAlt))};k.prototype.load=function(f){var h=this,m=function(e){e&&e.dataset.src&&0>decodeURI(e.src).indexOf(e.dataset.src)&&(e===h.els.mainImgEl&&h.els.el.classList.remove("image-v2--main-loaded"),e.src=e.dataset.src,e.removeAttribute("data-src"))};"preview"===f?m(this.els.previewImgEl):
("main"!==f&&m(this.els.previewImgEl),m(this.els.mainImgEl))};k.prototype.handleLoad=function(){this.els.el.classList.add("image-v2--main-loaded")};k.prototype.bindEvents=function(){this.setResponsive=this.setResponsive.bind(this);window.addEventListener("resize",this.setResponsive);this.handleLoad=this.handleLoad.bind(this);this.els.mainImgEl.addEventListener("load",this.handleLoad)};k.prototype.getCurrentMaxWidth=function(){var f=a().width;return 768>f?"360":768<=f&&1366>f?"768":"1366"};k.prototype.getCurrentDpr=
function(){return 1.5>window.devicePixelRatio?1:2};k.instances=new WeakMap;var g={initAll:function(f){f=void 0===f?document:f;var h=function(m){k.instances.has(m)||new k(m)};f!==document&&f.classList&&f.classList.contain("image-v2")?h(f):(f.querySelectorAll||(f=document),[].concat($jscomp.arrayFromIterable(f.querySelectorAll(".image-v2"))).forEach(function(m){h(m)}))},load:function(f,h){h=void 0===h?"all":h;k.instances.has(f)?k.instances.get(f).load(h):(new k(f)).load(h)}};window.sg.common.imagev2=
g;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",g.initAll):g.initAll()})();
(function(){var a=window.sg.common.utils.getCurrentDevice,n=window.sg.common.utils.detectTransitionEndEvent,k=function(f){this.el=f;this.init()};k.prototype.init=function(){k.instances.has(this.el)||(k.instances.set(this.el,this),this.setElement(),this.setResponsiveImage(),this.bindEvents())};k.prototype.reInit=function(){this.unBindEvents();this.setElement();this.setResponsiveImage();this.bindEvents()};k.prototype.setElement=function(){this.el.getAttribute("alt")||(this.el.setAttribute("alt",""),
this.el.removeAttribute("role"))};k.prototype.destroy=function(){this.unBindEvents();k.instances.has(this.el)&&k.instances.delete(this.el);this.el=null};k.prototype.load=function(){0>decodeURI(this.el.src).indexOf(this.el.dataset.src)&&(this.el.src=this.el.dataset.src,this.el.classList.remove("image--loaded"),this.el.classList.remove("image--hide"),this.el.removeAttribute("aria-hidden"));this.el.removeAttribute("data-src")};k.prototype.setImageLoaded=function(){var f=this;this.el.classList.add("image--loaded");
if(this.el.classList.contains("image__main")){this.el.style.transition="opacity .2s";this.el.parentElement.classList.add("image--main-loaded");var h=function(){f.el.style.transition="";var b=f.el.parentElement.querySelector(".image__preview");b&&(b.classList.add("image--hide"),b.setAttribute("aria-hidden","true"))},m=n(this.el);if(m){var e=function(){h();f.el.removeEventListener(m,e)};this.el.addEventListener(m,e)}else setTimeout(h,200)}};k.prototype.bindImageLoad=function(){if(this.el.classList.contains("image__main")||
this.el.classList.contains("image__preview"))this.el.complete&&0!==this.el.naturalWidth&&!this.el.classList.contains("image--loaded")&&this.setImageLoaded(),this.setImageLoaded=this.setImageLoaded.bind(this),this.el.addEventListener("load",this.setImageLoaded)};k.prototype.bindResponsive=function(){this.el.dataset.desktopSrc!==this.el.dataset.mobileSrc&&(this.setResponsiveImage=this.setResponsiveImage.bind(this),window.addEventListener("resize",this.setResponsiveImage))};k.prototype.bindEvents=function(){this.el.classList.contains("responsive-img")&&
this.bindResponsive();this.bindImageLoad()};k.prototype.unBindEvents=function(){this.el.removeEventListener("load",this.setImageLoaded);window.removeEventListener("resize",this.setResponsiveImage)};k.prototype.setResponsiveImage=function(){if(this.el.classList.contains("responsive-img")){var f=a();if(this.device!==f){this.device=f;(f=this.el.dataset[this.device+"Src"])?this.el.style.removeProperty("display"):this.el.style.display="none";if(this.el.classList.contains("lazy-load")||this.el.classList.contains("lazy-load-man"))this.el.dataset.src=
void 0===this.el.dataset.src?"":this.el.dataset.src,0>this.el.dataset.src.indexOf(f)&&(this.el.dataset.src=f);else{try{var h=decodeURI(this.el.src)}catch(m){h=this.el.src}0>h.indexOf(f)&&(this.el.classList.remove("image--loaded"),this.el.classList.remove("image--hide"),this.el.removeAttribute("aria-hidden"),this.el.src=f)}h=this.el.dataset[this.device+"Alt"];void 0!==h&&this.el.setAttribute("alt",h)}}};k.instances=new WeakMap;window.sg.components.registerClass("image",k);var g={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.image img:not([data-auto-init\x3d"false"])'))).forEach(function(f){k.instances.has(f)||
new k(f)})},init:function(f){k.instances.has(f)||new k(f)},reInit:function(f){k.instances.has(f)?k.instances.get(f).reInit():new k(f)},load:function(f){k.instances.has(f)?k.instances.get(f).load():(new k(f)).load()},delete:function(f){k.instances.delete(f)},destroy:function(f){k.instances.has(f)&&k.instances.get(f).destroy()}};window.sg.common.image=g;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",g.initAll):g.initAll()})();
(function(){var a={index:0,isYoutubeReady:!1,callbacks:[],enqueueOnYoutubeIframeApiReady:function(b){a.isYoutubeReady?b():a.callbacks.push(b)},onYouTubeIframeApiReady:function(){a.isYoutubeReady=!0;a.callbacks.forEach(function(b){b()});a.callbacks.splice(0)}};window.sg.common.videoApi=a;window.onYouTubeIframeAPIReady=a.onYouTubeIframeApiReady;var n={ACE:{accountId:"5685289444001",playerId:"WO3Tb7i1g"},AE:{accountId:"923227814001",playerId:"YVPxrKSek"},AE_ARABIC:{accountId:"923136719001",playerId:"E3oao1olw"},
AE_ARABIC_CS:{accountId:"5711373595001",playerId:"9urZPAGHD"},AE_CS:{accountId:"5711373594001",playerId:"0XMYguG2Nw"},AFRICA_EN:{accountId:"923270648001",playerId:"lsyG00Wz0"},AFRICA_EN_CS:{accountId:"5711373605001",playerId:"t1guP7iYwy"},AFRICA_FR:{accountId:"923227818001",playerId:"Tmx2dzbrT"},AFRICA_FR_CS:{accountId:"5711373606001",playerId:"gLuvxDp4b"},AFRICA_PT:{accountId:"923136723001",playerId:"1CZXrnviEE"},AFRICA_PT_CS:{accountId:"5711373607001",playerId:"azVZUTl7x"},AL:{accountId:"5395474900001",
playerId:"oKHrt1Hn6"},AL_CS:{accountId:"5711373614001",playerId:"if48zX24H"},AR:{accountId:"923270634001",playerId:"gqJSxYCzB"},AR_CS:{accountId:"5709700884001",playerId:"ojd4uMnUWl"},AT:{accountId:"923227809001",playerId:"wnRfbwIVL"},AT_CS:{accountId:"5711373581001",playerId:"cGZtAkJpT"},AU:{accountId:"923162666001",playerId:"VMb9FyMxk"},AU_CS:{accountId:"5709700889001",playerId:"bB2vkQudw"},BE:{accountId:"923136716001",playerId:"LzbXypCvz"},BE_CS:{accountId:"5675787971001",playerId:"sEimKv7IW"},
BE_FR:{accountId:"923162674001",playerId:"FleM4KQofp"},BE_FR_CS:{accountId:"5675787972001",playerId:"7WhhmlxJj"},BG:{accountId:"923270643001",playerId:"Jo7zzVtd5"},BG_CS:{accountId:"5711373580001",playerId:"e6AWwoixf"},BR:{accountId:"923162661001",playerId:"v2BLpgM8d"},BR_CS:{accountId:"5709700879001",playerId:"qjm3J8bZLB"},CA:{accountId:"923270632001",playerId:"RUxsKbp4e"},CA_CS:{accountId:"5709700877001",playerId:"VCXS3jzBQ"},CA_FR:{accountId:"923227798001",playerId:"db9VQnzIIo"},CA_FR_CS:{accountId:"5709700876001",
playerId:"Hghbkb4GOc"},CH:{accountId:"923162673001",playerId:"U0Tv0wE3G"},CH_CS:{accountId:"5711373582001",playerId:"wfkyW1T9N"},CH_FR:{accountId:"923227810001",playerId:"wvyBB7ZyD"},CH_FR_CS:{accountId:"5711373583001",playerId:"8iaLX3eay"},CL:{accountId:"923227801001",playerId:"nbGAqWiyZ"},CL_CS:{accountId:"5709700885001",playerId:"seAio3Iab1"},CN:{accountId:"923270636001",playerId:"UOGt9s1Ot"},CN_CS:{accountId:"5711373561001",playerId:"0polYNx0hB"},CO:{accountId:"923162663001",playerId:"VN3FsuEmoA"},
CO_CS:{accountId:"5709700883001",playerId:"QkIcs4LRi"},CZ:{accountId:"923270642001",playerId:"JofGmsuUaU"},CZ_CS:{accountId:"5711373577001",playerId:"W4LcfRCdX"},DE:{accountId:"923227805001",playerId:"r5nOZyzd1"},DEV:{accountId:"901961867001",playerId:"jSPFC1gYrR"},DE_CS:{accountId:"5675787970001",playerId:"Ojq20h6rI"},DK:{accountId:"923270638001",playerId:"zThis2SPx"},DK_CS:{accountId:"5711373569001",playerId:"V6MCi9Amm"},EE:{accountId:"923227812001",playerId:"89aGBrdO5"},EE_CS:{accountId:"5711373586001",
playerId:"h1RB4WzC8h"},EG:{accountId:"923162680001",playerId:"KWJoclhcD"},EG_CS:{accountId:"5711373603001",playerId:"t6vHuEvebf"},ES:{accountId:"923162670001",playerId:"yq8Y8zZ3dG"},ES_CS:{accountId:"5711373566001",playerId:"AzllJfpFb"},FI:{accountId:"923162672001",playerId:"B8mrwLnI6"},FI_CS:{accountId:"5711373571001",playerId:"1d4N0XfEj"},FR:{accountId:"923227807001",playerId:"aACd9IQvK"},FR_CS:{accountId:"5711373573001",playerId:"wfmvyAQHg"},GCS:{accountId:"1852113008001",playerId:"b1SElAGyQ"},
GLOBAL:{accountId:"2933392367001",playerId:"i8zNocbMqF"},GR:{accountId:"923136713001",playerId:"VXwt3KwO7"},GR_CS:{accountId:"5711373576001",playerId:"OHk0ZpVMG"},HK:{accountId:"923227804001",playerId:"BlUhaVyrM"},HK_CS:{accountId:"5711373562001",playerId:"rUnBOAERZ"},HK_EN:{accountId:"923136709001",playerId:"y80dQbj5o"},HK_EN_CS:{accountId:"5711373563001",playerId:"oiUmA2Dpb"},HR:{accountId:"923270646001",playerId:"rtDIMNREJ"},HR_CS:{accountId:"5711373588001",playerId:"4dpG0kuPi"},HU:{accountId:"923270637001",
playerId:"J3N8K2Ta8"},HU_CS:{accountId:"5711373567001",playerId:"xhpdyXZwQC"},ID:{accountId:"923162667001",playerId:"8VQZlxO23"},ID_CS:{accountId:"5709700891001",playerId:"eS8Ygw9D5N"},IE:{accountId:"923136711001",playerId:"Eby5I5ug3"},IE_CS:{accountId:"5711373564001",playerId:"g2yJSJmLr"},IL:{accountId:"923162679001",playerId:"CNuem5Ud0"},IL_CS:{accountId:"5711373596001",playerId:"CuXrQqYtZ"},IN:{accountId:"923162669001",playerId:"q6Ut0BCj1"},IN_CS:{accountId:"5711373560001",playerId:"CcOagXw6na"},
IRAN:{accountId:"923270650001",playerId:"z13tWzaxK"},IRAN_CS:{accountId:"5711373600001",playerId:"rLjx2H1MSc"},IT:{accountId:"923136712001",playerId:"JhjbQ74fF"},IT_CS:{accountId:"5711373565001",playerId:"YeJZJaeSW"},JP:{accountId:"923162668001",playerId:"5syx1iggoU"},JP_CS:{accountId:"5711373559001",playerId:"1pWQq0OoW"},KZ_RU_CS:{accountId:"5711373593001",playerId:"IjzGA4NhB"},KZ_UR:{accountId:"923270647001",playerId:"1wWJHtrJL"},LATIN:{accountId:"923136703001",playerId:"Ejglgn7vR"},LATIN_CS:{accountId:"5709700880001",
playerId:"xtj1AknXN"},LATIN_EN:{accountId:"923227800001",playerId:"PqDI8nhcAF"},LATIN_EN_CS:{accountId:"5709700881001",playerId:"BwUsVdHWJ"},LB:{accountId:"5359769185001",playerId:"I6JB29uKP"},LB_CS:{accountId:"5711373613001",playerId:"PF3r8iX45"},LED:{accountId:"2172563229001",playerId:"fZOTwR23Ja"},LEVANT:{accountId:"923227815001",playerId:"sNmJq2Rhtq"},LEVANT_CS:{accountId:"5711373601001",playerId:"S2BFseOxn"},LIVE:{accountId:"901973578001",playerId:"rkHiJmE8b"},LIVE2:{accountId:"901973578001",
playerId:"BJroFThOM"},LT:{accountId:"923227813001",playerId:"UnNH8Q0aA"},LT_CS:{accountId:"5711373585001",playerId:"PLBhOXxqd"},LV:{accountId:"923270644001",playerId:"8DWjAYXe8t"},LV_CS:{accountId:"5711373584001",playerId:"wVmguU4uL"},MM:{accountId:"5395474902001",playerId:"vF6OMxYpz"},MM_CS:{accountId:"5711373615001",playerId:"HRve5S5Wk"},MX:{accountId:"923227799001",playerId:"yWADI9eqWt"},MX_CS:{accountId:"5709700878001",playerId:"fMFwGNOoA"},MY:{accountId:"923136706001",playerId:"kkY3yWnfk2"},
MY_CS:{accountId:"5711373556001",playerId:"TUr9f1ZrD"},NL:{accountId:"923136717001",playerId:"Lv58R1RvL"},NL_CS:{accountId:"5675788007001",playerId:"MKP6lFpdB"},NO:{accountId:"923227806001",playerId:"RtYYg3Lhz"},NO_CS:{accountId:"5711373572001",playerId:"lpa9BAvSi"},NZ:{accountId:"923136704001",playerId:"uc2rRn2xNM"},NZ_CS:{accountId:"5709700890001",playerId:"C200YutMY"},N_AFRICA:{accountId:"923227817001",playerId:"xMwGwNxoe"},N_AFRICA_CS:{accountId:"5711373604001",playerId:"trym9TQi9"},PE:{accountId:"923162664001",
playerId:"QnLGOyhWT"},PE_CS:{accountId:"5709700887001",playerId:"8g7eqsa4b"},PH:{accountId:"923136707001",playerId:"TPkcStHQq"},PH_CS:{accountId:"5711373557001",playerId:"XAANJvPl4I"},PK:{accountId:"923227816001",playerId:"KMGcvTLwI"},PK_CS:{accountId:"5711373602001",playerId:"ucBD9N7Wo"},PL:{accountId:"923270641001",playerId:"w6lBgsUzX"},PL_CS:{accountId:"5711373575001",playerId:"oimMVhVjJ"},PT:{accountId:"923270640001",playerId:"sdOVA4ZFD"},PT_CS:{accountId:"5711373574001",playerId:"coEoIreou"},
PY:{accountId:"4455299568001",playerId:"DVT5m3yv2"},PY_CS:{accountId:"5711373610001",playerId:"Pog90o2pZ"},RO:{accountId:"923136715001",playerId:"Xpb5ogQRq"},RO_CS:{accountId:"5711373579001",playerId:"7m3xl6r857"},RS:{accountId:"923162676001",playerId:"An8gNEU4n"},RS_CS:{accountId:"5711373587001",playerId:"XkZo8R4hQ"},RU:{accountId:"923136718001",playerId:"prEGLNvtgw"},RU_CS:{accountId:"5711373589001",playerId:"TGIYbAEj4"},SA:{accountId:"923136720001",playerId:"UGyvbSD4m"},SA_CS:{accountId:"5711373597001",
playerId:"e8LeXD9z2"},SA_EN:{accountId:"2571515532001",playerId:"e1aY2iob1"},SA_EN_CS:{accountId:"5711373598001",playerId:"HMfJhv02t"},SC:{accountId:"1275380501001",playerId:"uOrcEND0S"},SE:{accountId:"923162671001",playerId:"87s7LoiYm"},SEC:{accountId:"923136708001",playerId:"O0UmvJBBkC"},SE_CS:{accountId:"5711373568001",playerId:"YQAEzeCh7"},SG:{accountId:"923162665001",playerId:"VcCu1i5eGY"},SG_CS:{accountId:"5709700888001",playerId:"1uAHw2z66"},SI:{accountId:"3855502820001",playerId:"3iQ8u8kzHJ"},
SI_CS:{accountId:"5711373609001",playerId:"aWXzB4G7Y"},SK:{accountId:"923227808001",playerId:"6pYCGSOVM"},SK_CS:{accountId:"5711373578001",playerId:"DtyAUtIWf"},TH:{accountId:"923227802001",playerId:"GjtcZdzhG"},TH_CS:{accountId:"5711373553001",playerId:"jhV8EaiQ2P"},TR:{accountId:"923136721001",playerId:"eo4EiXfOZ6"},TR_CS:{accountId:"5711373599001",playerId:"uw0Vade3U"},TW:{accountId:"923270635001",playerId:"gB0Jrk4eC"},TW_CS:{accountId:"5711373558001",playerId:"zRLdsvdiUi"},UA:{accountId:"923162678001",
playerId:"1ZqNirAQQ"},UA_CS:{accountId:"5711373590001",playerId:"1oPqU5Hja"},UA_RU:{accountId:"923162677001",playerId:"TNhyfS3s0z"},UA_RU_CS:{accountId:"5711373592001",playerId:"n355uJ5toG"},UK:{accountId:"923136710001",playerId:"Ta4g51Ongy"},UK_CS:{accountId:"5675787969001",playerId:"X4XabEZljp"},UR:{accountId:"4455299570001",playerId:"6Sn4qURxs"},UR_CS:{accountId:"5711373612001",playerId:"SQg3bJxYB"},US:{accountId:"923227797001",playerId:"COJfPFSPz"},US_CS:{accountId:"5709700875001",playerId:"YtbrW77H5e"},
VE:{accountId:"923162662001",playerId:"NGFTP7VzK"},VE_CS:{accountId:"5709700882001",playerId:"t00eQogYI"},VN:{accountId:"923136705001",playerId:"V8VheyNOH"},VN_CS:{accountId:"5711373555001",playerId:"4gy4Qw9sC"},ZA:{accountId:"2571515531001",playerId:"ohoOzqLWr"},ZA_CS:{accountId:"5711373608001",playerId:"lK2PT9hyDT"},GLOBAL_NW:{accountId:"1832636967001",playerId:"default"},GLOBAL_CPS:{accountId:"1832636966001",playerId:"HJ7xuijZz"}},k=window.sg.common.utils.isVisible,g=window.sg.common.utils.getCurrentDevice,
f=window.sg.common.utils.getCookie,h=window.sg.common.utils.triggerEvent,m=function(b){this.el=b;this.init()};m.prototype.initValues=function(){this.type="";this.isResonsiveBind=this.isScrollPlayBind=this.isResponsive=this.isScrollPlay=this.isLazyLoad=this.isEmbed=!1;this.option={};this.defaultOption={mp4:{videoEl:'\x3cvideo class\x3d"video-player" playsinline\x3e\x3csource src\x3d"" type\x3d"video/mp4"\x3e\x3c/video\x3e',src:"",desktopSrc:"",mobileSrc:"",autoplay:!1,muted:!1,controls:!1,loop:!1,
scrollplay:!1},youtube:{videoEl:'\x3ciframe class\x3d"video-player" src\x3d\'about:blank\' allowfullscreen allow\x3d"autoplay" sandbox\x3d"allow-scripts allow-same-origin allow-presentation" style\x3d"border: none;"\x3e\x3c/iframe\x3e',src:"https://www.youtube.com/embed/{{VIDEO_ID}}?wmode\x3dopaque\x26rel\x3d0\x26enablejsapi\x3d1\x26version\x3d3\x26origin\x3d{{ORIGIN}}",id:"",autoplay:!1,muted:!1},brightCove:{countryCode:"DEV",videoEl:'\x3cvideo data-embed\x3d"default" controls class\x3d"video-js video-player"\x3e\x3c/video\x3e',
id:"",autoplay:!1,muted:!1},aparat:{videoEl:"\x3ciframe src\x3d'about:blank' allowfullscreen style\x3d\"border: none;\"\x3e\x3c/iframe\x3e",src:"https://www.aparat.com/video/video/embed/videohash/{{VIDEO_ID}}/vt/frame",liveSrc:"",autoplay:!1},url:{videoEl:"\x3ciframe src\x3d'about:blank' allowfullscreen style\x3d\"border: none;\"\x3e\x3c/iframe\x3e",src:""}};this.videoInfo={};this.toVideoState="";this.useDefaultImage=!1;this.isLazyLoad=this.el.classList.contains("lazy-load")||this.el.classList.contains("lazy-load-man");
this.isEmbed=this.el.dataset.videoEmbed?"TRUE"===this.el.dataset.videoEmbed.toUpperCase():!1;this.videoData=this.el.dataset.videoData?JSON.parse(this.el.dataset.videoData):null;this.type=this.el.dataset.videoType};m.prototype.setElements=function(){this.videoData&&(this.setDefaultImage(),!this.isLazyLoad&&this.isEmbed&&this.setVideo())};m.prototype.init=function(){m.instances.has(this.el)||(m.instances.set(this.el,this),this.initValues(),this.setElements())};m.prototype.reInit=function(){this.unBindEvents();
this.dispose();this.initValues();this.setElements()};m.prototype.load=function(){!this.isLazyLoad&&this.isEmbed||this.setVideo()};m.prototype.setDefaultImage=function(){var b=this.el.querySelector(".image");b&&(b.style.width=this.videoData.width?this.videoData.width:"100%",b.style.height=this.videoData.height?this.videoData.height:"100%");if(this.useDefaultImage="TRUE"===this.el.dataset.imageDefault.toUpperCase()){var d=f("__COM_SPEED");if(null===d||"L"!==d.toString().toUpperCase())this.useDefaultImage=
!1}this.el.dataset.imageDefault=this.useDefaultImage.toString();b&&(this.useDefaultImage?b.classList.add("default-image--show"):b.setAttribute("aria-hidden","true"))};m.prototype.setVideo=function(){if(!this.useDefaultImage){switch(this.type){case "mp4":this.setMp4(this.videoData);break;case "youtube":this.setYoutube(this.videoData);break;case "brightcove":this.setBrightCove(this.videoData);break;case "aparat":this.setAparat(this.videoData);break;case "url":this.setIframe(this.videoData)}h(this.el,
"videoInit",this.type)}};m.prototype.setMp4=function(b){var d=JSON.parse(JSON.stringify(this.defaultOption.mp4)),l=this.getEl(d.videoEl,this.el),q=l.querySelector("source");this.videoInfo.el=l;this.videoInfo.sourceEl=q;this.option=this.setOption(d,b);""!==this.option.src?q.setAttribute("src",this.option.src):(this.setResponsiveVideo(),this.isResponsive=!0,this.isResonsiveBind||(this.bindResponsive(),this.isResonsiveBind=!0));this.bindPlay();l.muted=this.option.muted;l.autoplay=this.option.autoplay;
l.controls=this.option.controls;l.loop=this.option.loop;this.isEmbed&&(l.disableRemotePlayback=!0);this.option.scrollplay&&this.isEmbed&&(l.preload="auto",l.autoplay=!1,this.videoInfo.state="stop",this.isScrollPlay=!0,this.isScrollPlayBind||(this.bindScrollPlay(),this.isScrollPlayBind=!0));l.style.width=this.option.width?this.option.width:"100%";l.style.height=this.option.height?this.option.height:"100%";b=this.option[g()+"Caption"]||this.option.caption;this.setCaption(b,l);"play"===this.toVideoState?
this.playMp4Video():"stop"===this.toVideoState&&this.stopMp4Video();this.toVideoState=""};m.prototype.setPlayed=function(){this.videoInfo.el.parentElement.classList.contains("video--played")||this.videoInfo.el.parentElement.classList.add("video--played")};m.prototype.bindPlay=function(){"mp4"===this.type&&(this.setPlayed=this.setPlayed.bind(this),this.videoInfo.el.addEventListener("play",this.setPlayed))};m.prototype.setScrollPlayVideo=function(){k(this.videoInfo.el)?"play"!==this.videoInfo.state&&
1<=this.videoInfo.el.readyState&&(this.videoInfo.el.currentTime=0,this.videoInfo.el.play(),this.videoInfo.state="play"):"play"===this.videoInfo.state&&1<=this.videoInfo.el.readyState&&(this.videoInfo.el.pause(),this.videoInfo.state="pause")};m.prototype.bindScrollPlay=function(){"mp4"===this.type&&this.isScrollPlay&&(this.setScrollPlayVideo=this.setScrollPlayVideo.bind(this),this.videoInfo.el.addEventListener("loadedmetadata",this.setScrollPlayVideo),document.addEventListener("scroll",this.setScrollPlayVideo),
window.addEventListener("resize",this.setScrollPlayVideo),window.addEventListener("orientationchange",this.setScrollPlayVideo),this.setScrollPlayVideo())};m.prototype.setResponsiveVideo=function(){var b=g();this.isEmbed&&this.device===b||(this.device=b,b=this.option[this.device+"Src"],0>this.videoInfo.sourceEl.src.indexOf(b)&&(this.videoInfo.sourceEl.src=b,this.videoInfo.el.load(),this.isScrollPlay&&(this.videoInfo.state="stop")),this.setCaption(this.option[this.device+"Caption"]||this.option.caption,
this.videoInfo.el))};m.prototype.bindResponsive=function(){"mp4"===this.type&&this.isResponsive&&(this.setResponsiveVideo=this.setResponsiveVideo.bind(this),window.addEventListener("resize",this.setResponsiveVideo))};m.prototype.unBindEvents=function(){this.videoInfo.el&&(this.videoInfo.el.removeEventListener("play",this.setPlayed),this.videoInfo.el.removeEventListener("loadedmetadata",this.setScrollPlayVideo));document.removeEventListener("scroll",this.setScrollPlayVideo);window.removeEventListener("resize",
this.setResponsiveVideo);window.removeEventListener("resize",this.setScrollPlayVideo);window.removeEventListener("orientationchange",this.setScrollPlayVideo)};m.prototype.destroy=function(){this.unBindEvents();this.dispose();m.instances.has(this.el)&&m.instances.delete(this.el);this.videoInfo=this.el=null};m.prototype.setYoutube=function(b){var d=this,l=window.sg.common.videoApi,q=JSON.parse(JSON.stringify(this.defaultOption.youtube)),r=this.getEl(q.videoEl,this.el);this.option=this.setOption(q,b);
this.option.muted=void 0!==b.muted?b.muted:this.option.autoplay;this.option.src=this.option.src.replace("{{VIDEO_ID}}",this.option.id).replace("{{ORIGIN}}",window.location.origin)+"\x26autoplay\x3d"+(this.option.autoplay?"1":"0")+"\x26mute\x3d"+(this.option.muted?"1":"0");var w=this.option.id+l.index++;r.setAttribute("id",w);r.setAttribute("src",this.option.src);r.setAttribute("title",this.option.title);r.style.width=this.option.width?this.option.width:"100%";r.style.height=this.option.height?this.option.height:
"100%";this.setCaption(this.option.caption,r);b=document.createElement("script");b.src="https://www.youtube.com/iframe_api";b.classList.add("sg-youtube-api");document.querySelector('script[src\x3d"'+b.src+'"]')||document.body.appendChild(b);var x=function(){"play"===d.toVideoState?d.playYoutubeVideo():"stop"===d.toVideoState&&d.stopYoutubeVideo();d.toVideoState=""};l.enqueueOnYoutubeIframeApiReady(function(){d.videoInfo.player=new YT.Player(w,{host:"https://www.youtube.com",events:{onReady:x}})})};
m.prototype.setBrightCove=function(b){var d=this,l=window.sg.common.videoApi,q=JSON.parse(JSON.stringify(this.defaultOption.brightCove)),r=this.getEl(q.videoEl,this.el);this.option=this.setOption(q,b);this.option.muted=void 0!==b.muted?b.muted:this.option.autoplay;b=this.option.countryCode.toUpperCase();var w=this.option.id+l.index++;r.setAttribute("id",w);r.setAttribute("data-video-id",this.option.id);r.setAttribute("data-account",n[b].accountId);r.setAttribute("data-player",n[b].playerId);r.style.width=
this.option.width?this.option.width:"100%";r.style.height=this.option.height?this.option.height:"100%";this.setCaption(this.option.caption,r);l="https://players.brightcove.net/"+n[b].accountId+"/"+n[b].playerId+"_default/index.min.js";r=document.createElement("script");r.src=l;document.body.appendChild(r);r.onload=function(){return d.setBrightCovePlayer(w,d.option)}};m.prototype.setBrightCovePlayer=function(b,d){var l=this;this.videoInfo.player=videojs(b);b=function(){l.option.muted&&l.videoInfo.player.muted(!0);
l.videoInfo.player.play()};var q=function(){"play"===l.toVideoState?l.playBrightCoveVideo():"stop"===l.toVideoState&&l.stopBrightCoveVideo();l.toVideoState=""};if(1>this.videoInfo.player.readyState()){if(d.autoplay)this.videoInfo.player.on("loadedmetadata",b);this.videoInfo.player.on("loadedmetadata",q)}else d.autoplay&&b(),q()};m.prototype.setAparat=function(b){var d=JSON.parse(JSON.stringify(this.defaultOption.aparat)),l=this.getEl(d.videoEl,this.el);this.option=this.setOption(d,b);this.option.src=
this.option.liveSrc?this.option.liveSrc:""+this.option.src.replace("{{VIDEO_ID}}",this.option.id);l.setAttribute("src",this.option.src);l.setAttribute("title",this.option.title);l.style.width=this.option.width?this.option.width:"100%";l.style.height=this.option.height?this.option.height:"100%";this.setCaption(this.option.caption,l)};m.prototype.setIframe=function(b){var d=JSON.parse(JSON.stringify(this.defaultOption.url)),l=this.getEl(d.videoEl,this.el);this.option=this.setOption(d,b);l.setAttribute("src",
this.option.src);l.setAttribute("title",this.option.title);l.style.width=this.option.width?this.option.width:"100%";l.style.height=this.option.height?this.option.height:"100%";this.setCaption(this.option.caption,l)};m.prototype.setOption=function(b,d){for(var l=Object.keys(d),q=0;q<l.length;q++){var r=l[q];b[r]=d[r]?d[r]:b[r]}return b};m.prototype.setCaption=function(b,d){var l=this.el.querySelector("p.hidden");(b=(b||"").replace(/\\\//g,"/"))?l?l.innerHTML=b:d.insertAdjacentHTML("afterend",'\x3cp class\x3d"hidden"\x3e'+
b+"\x3c/p\x3e"):l&&l.remove()};m.prototype.getEl=function(b,d){d.querySelector("figure")||d.insertAdjacentHTML("beforeend","\x3cfigure\x3e\x3c/figure\x3e");d=d.lastElementChild;d.style.width=this.videoData.width?this.videoData.width:"100%";d.style.height=this.videoData.height?this.videoData.height:"100%";d.querySelector(".video-player")||d.insertAdjacentHTML("afterbegin",b);return d.firstElementChild};m.prototype.play=function(){switch(this.type){case "mp4":this.playMp4Video();break;case "youtube":this.playYoutubeVideo();
break;case "brightcove":this.playBrightCoveVideo()}};m.prototype.stop=function(){switch(this.type){case "mp4":this.stopMp4Video();break;case "youtube":this.stopYoutubeVideo();break;case "brightcove":this.stopBrightCoveVideo()}};m.prototype.playMp4Video=function(){"mp4"===this.type&&(this.videoInfo.el?this.isScrollPlay||(this.videoInfo.el.play(),this.videoInfo.state="play"):this.toVideoState="play")};m.prototype.stopMp4Video=function(){var b=this;if("mp4"===this.type)if(this.videoInfo.el){var d=function(){b.videoInfo.el.pause();
b.videoInfo.el.currentTime=0;b.videoInfo.state="stop"},l=function(){d();b.videoInfo.el.removeEventListener("loadedmetadata",l)};1>this.videoInfo.el.readyState?this.videoInfo.el.addEventListener("loadedmetadata",l):d()}else this.toVideoState="stop"};m.prototype.playYoutubeVideo=function(){"youtube"===this.type&&(this.videoInfo.player?(this.videoInfo.player.playVideo(),this.videoInfo.state="play"):this.toVideoState="play")};m.prototype.stopYoutubeVideo=function(){"youtube"===this.type&&(this.videoInfo.player?
(this.videoInfo.player.stopVideo(),this.videoInfo.state="stop"):this.toVideoState="stop")};m.prototype.playBrightCoveVideo=function(){var b=this;if("brightcove"===this.type)if(this.videoInfo.player)if(1>this.videoInfo.player.readyState())this.videoInfo.player.on("loadedmetadata",function(){b.videoInfo.player.play();b.videoInfo.state="play"});else this.videoInfo.player.play(),this.videoInfo.state="play";else this.toVideoState="play"};m.prototype.stopBrightCoveVideo=function(){var b=this;if("brightcove"===
this.type)if(this.videoInfo.player)if(1>this.videoInfo.player.readyState())this.videoInfo.player.on("loadedmetadata",function(){b.videoInfo.player.pause();b.videoInfo.player.currentTime(0);b.videoInfo.state="stop"});else this.videoInfo.player.pause(),this.videoInfo.player.currentTime(0),this.videoInfo.state="stop";else this.toVideoState="stop"};m.prototype.dispose=function(){if(this.el.lastElementChild&&!this.isEmbed){if("brightcove"===this.type){this.videoInfo.player&&this.videoInfo.player.dispose();
var b=this.option.countryCode.toUpperCase();(b=document.querySelector('script[src\x3d"https://players.brightcove.net/'+(n[b].accountId+"/"+n[b].playerId+'_default/index.min.js"]')))&&document.body.removeChild(b)}else"youtube"===this.type&&(b=document.body.querySelector('script[src\x3d"https://www.youtube.com/iframe_api"].sg-youtube-api'))&&document.body.removeChild(b);for(;this.el.lastElementChild.hasChildNodes();)this.el.lastElementChild.removeChild(this.el.lastElementChild.firstChild);this.el.removeChild(this.el.lastElementChild)}};
m.instances=new WeakMap;var e={initAll:function(){for(var b=[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".video"))),d=[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".static-content .video"))),l=0;l<b.length;l++){for(var q=b[l],r=!1,w=0;w<d.length;w++)if(q===d[w]){r=!0;break}r||m.instances.has(q)||new m(q)}},init:function(b,d){d=void 0===d?!0:d;b=m.instances.has(b)?m.instances.get(b):new m(b);d&&b.load();return b},reInit:function(b){m.instances.has(b)?m.instances.get(b).reInit():
new m(b)},dispose:function(b){m.instances.has(b)&&m.instances.get(b).dispose()},load:function(b){m.instances.has(b)?m.instances.get(b).load():(new m(b)).load()},play:function(b){m.instances.has(b)?m.instances.get(b).play():(new m(b)).play()},stop:function(b){m.instances.has(b)?m.instances.get(b).stop():(new m(b)).stop()},destroy:function(b){m.instances.has(b)&&m.instances.get(b).destroy()}};window.sg.common.video=e;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e.initAll):
e.initAll()})();
(function(){var a=window.sg.common.$q,n=window.BezierEasing,k=window.sg.common.utils.closest,g=window.sg.common.utils.getNormalizedScrollLeft,f=window.sg.common.utils.setNormalizedScrollLeft,h=window.sg.common.utils.isPassiveSupported,m=window.sg.common.utils.bindRaf,e=function(d){this.els={el:d,contentsEl:null,wrapEl:null,horizTrackEl:null,horizTrackContentEl:null,horizBarEl:null,vertTrackEl:null,vertTrackContentEl:null,vertBarEl:null};this.init()};e.prototype.init=function(){e.instances.has(this.els.el)||(e.instances.set(this.els.el,
this),this.initValues(),this.setElement(),this.resize(),this.initHandlers(),this.bindEvents())};e.prototype.initValues=function(){this.barScrollTop=this.barScrollLeft=0;this.isAnim=this.isContentsDragging=this.isbarDragging=!1;this.isPassiveSupported=h();this.isAutoResize=this.els.el.hasAttribute("data-auto-resize");this.observer=null;this.scrollBlockSelector=".option-selector-v2__swiper:not(.option-selector-v2__swiper--min)"};e.prototype.reInit=function(){this.unBindEvents();this.initValues();this.setElement();
this.resize();this.bindEvents()};e.prototype.destroy=function(){this.unBindEvents();e.instances.has(this.els.el)&&e.instances.delete(this.els.el);this.els=this.els.el=null};e.prototype.setElement=function(){this.els.contentsEl=this.els.el.querySelector(".scrollbar__contents");this.els.wrapEl=Array.from(this.els.el.children).filter(function(d){return d.classList.contains("scrollbar__wrap")})[0];this.els.wrapEl||(this.els.el.insertAdjacentHTML("afterbegin",'\x3cdiv class\x3d"scrollbar__wrap"\x3e\x3c/div\x3e'),
this.els.wrapEl=Array.from(this.els.el.children).filter(function(d){return d.classList.contains("scrollbar__wrap")})[0],this.els.wrapEl.insertAdjacentElement("afterbegin",this.els.contentsEl));this.els.horizTrackEl=Array.from(this.els.el.children).filter(function(d){return d.classList.contains("scrollbar-horizontal__track")})[0];this.els.horizTrackEl||(this.els.el.insertAdjacentHTML("beforeend",'\x3cdiv class\x3d"scrollbar-horizontal__track"\x3e\x3cdiv class\x3d"scrollbar-horizontal__track-content"\x3e\x3cdiv class\x3d"scrollbar-horizontal__bar"\x3e\x3c/div\x3e\x3c/div\x3e'),
this.els.horizTrackEl=Array.from(this.els.el.children).filter(function(d){return d.classList.contains("scrollbar-horizontal__track")})[0]);this.els.horizTrackContentEl=this.els.horizTrackEl.querySelector(".scrollbar-horizontal__track-content");this.els.horizBarEl=this.els.horizTrackEl.querySelector(".scrollbar-horizontal__bar");this.els.vertTrackEl=Array.from(this.els.el.children).filter(function(d){return d.classList.contains("scrollbar-vertical__track")})[0];this.els.vertTrackEl||(this.els.el.insertAdjacentHTML("beforeend",
'\x3cdiv class\x3d"scrollbar-vertical__track"\x3e\x3cdiv class\x3d"scrollbar-vertical__track-content"\x3e\x3cdiv class\x3d"scrollbar-vertical__bar"\x3e\x3c/div\x3e'),this.els.vertTrackEl=Array.from(this.els.el.children).filter(function(d){return d.classList.contains("scrollbar-vertical__track")})[0]);this.els.vertTrackContentEl=this.els.vertTrackEl.querySelector(".scrollbar-vertical__track-content");this.els.vertBarEl=this.els.vertTrackEl.querySelector(".scrollbar-vertical__bar");this.els.wrapEl.style["-ms-user-select"]=
"";this.els.wrapEl.style.userSelect="";this.els.wrapEl.style.cursor="";this.els.wrapEl.style.overscrollBehaviorX=""};e.prototype.setTagging=function(){var d=this;if(this.els.horizTrackEl&&this.isHorizBar!==this.prevIsHorizBar){var l=this.els.el.getAttributeNames().filter(function(q){return q.startsWith("data-tagging-")}).reduce(function(q,r){q[r.replace("data-tagging-","")]=d.els.el.getAttribute(r);return q},{});Object.keys(l).length&&(this.isHorizBar&&"none"!==window.getComputedStyle(this.els.horizTrackEl).display?
Object.keys(l).forEach(function(q){d.els.horizTrackEl.setAttribute(q,l[q])}):Object.keys(l).forEach(function(q){d.els.horizTrackEl.removeAttribute(q)}));this.prevIsHorizBar=this.isHorizBar}};e.prototype.setBarSize=function(){this.els.horizTrackEl.style.display="";var d=Math.ceil(this.els.wrapEl.getBoundingClientRect().width),l=this.els.contentsEl.scrollWidth,q=Math.ceil(this.els.horizTrackContentEl.getBoundingClientRect().width),r=d/l;1>r?(this.els.horizTrackEl.style.display="",this.horizBarWidth=
q*r,this.els.horizBarEl.style.width=this.horizBarWidth+"px",this.contentsMaxScrollLeft=l-d,this.barMaxScrollLeft=q-q*r,this.isHorizBar=!0,this.els.wrapEl.style["-ms-user-select"]="none",this.els.wrapEl.style.userSelect="none",this.els.wrapEl.style.cursor="default",this.els.wrapEl.style.overscrollBehaviorX="contain"):(this.els.horizTrackEl.style.display="none",this.barMaxScrollLeft=this.contentsMaxScrollLeft=0,this.isHorizBar=!1);this.els.vertTrackEl.style.display="";d=Math.ceil(this.els.wrapEl.getBoundingClientRect().height);
l=this.els.contentsEl.scrollHeight;q=Math.ceil(this.els.vertTrackContentEl.getBoundingClientRect().height);r=d/l;1>r?(this.els.vertTrackEl.style.display="",this.els.vertBarEl.style.height=q*r+"px",this.contentsMaxScrollTop=l-d,this.barMaxScrollTop=q-q*r,this.isVertBar=!0):(this.els.vertTrackEl.style.display="none",this.barMaxScrollTop=this.contentsMaxScrollTop=0,this.isVertBar=!1);this.setTagging()};e.prototype.scrollHorizBar=function(d){0>d?d=0:d>this.barMaxScrollLeft&&(d=this.barMaxScrollLeft);
this.barScrollLeft=d;this.els.horizBarEl.style.transition="";this.els.horizBarEl.style.transform="translate3d("+d+"px, 0, 0)"};e.prototype.scrollVertBar=function(d){0>d?d=0:d>this.barMaxScrollTop&&(d=this.barMaxScrollTop);this.barScrollTop=d;this.els.vertBarEl.style.transform="translate3d(0, "+d+"px, 0)"};e.prototype.scrollHoriz=function(d){var l=d;0>d?l=0:d>this.contentsMaxScrollLeft&&(l=this.contentsMaxScrollLeft);f(this.els.wrapEl,l)};e.prototype.scrollVert=function(d){0>d?d=0:d>this.contentsMaxScrollTop&&
(d=this.contentsMaxScrollTop);this.els.wrapEl.scrollTop=d};e.prototype.handleScroll=function(){if(this.isHorizBar){var d=g(this.els.wrapEl);this.scrollHorizBar(d/this.contentsMaxScrollLeft*this.barMaxScrollLeft)}this.isVertBar&&this.scrollVertBar(this.els.wrapEl.scrollTop/this.contentsMaxScrollTop*this.barMaxScrollTop);a(document).trigger("scroll")};e.prototype.handleBarScrollStart=function(d){this.isbarDragging=!0;this.prevPointX=d.screenX;this.prevPointY=d.screenY;d.target===this.els.horizBarEl?
this.els.horizTrackContentEl.classList.add("bar-dragging"):d.target===this.els.vertBarEl&&this.els.vertTrackContentEl.classList.add("bar-dragging");document.addEventListener("mousemove",this.handleBarScroll);document.addEventListener("mouseup",this.handleBarScrollEnd);document.addEventListener("selectstart",this.handleSelect)};e.prototype.handleBarScrollTouchStart=function(d){this.isbarDragging=!0;this.prevPointX=d.touches[0].screenX;this.prevPointY=d.touches[0].screenY;d.target===this.els.horizBarEl?
this.els.horizTrackContentEl.classList.add("bar-dragging"):d.target===this.els.vertBarEl&&this.els.vertTrackContentEl.classList.add("bar-dragging");document.addEventListener("touchmove",this.handleBarScroll,this.isPassiveSupported?{passive:!0}:!1);document.addEventListener("touchend",this.handleBarScrollEnd)};e.prototype.handleBarScroll=function(d){if(!this.isAnim&&this.isbarDragging){if(this.isHorizBar){var l=void 0!==d.screenX?d.screenX:d.touches[0].screenX,q=this.barScrollLeft+(l-this.prevPointX);
this.scrollHorizBar(q);this.scrollHoriz(q*this.contentsMaxScrollLeft/this.barMaxScrollLeft);this.prevPointX=l}this.isVertBar&&(d=void 0!==d.screenY?d.screenY:d.touches[0].screenY,l=this.barScrollTop+(d-this.prevPointY),this.scrollVertBar(l),this.scrollVert(l*this.contentsMaxScrollTop/this.barMaxScrollTop),this.prevPointY=d)}};e.prototype.handleBarScrollEnd=function(){this.isbarDragging=!1;this.prevPointY=this.prevPointX=0;this.els.horizTrackContentEl.classList.remove("bar-dragging");this.els.vertTrackContentEl.classList.remove("bar-dragging");
document.removeEventListener("mousemove",this.handleBarScroll);document.removeEventListener("mouseup",this.handleBarScrollEnd);document.removeEventListener("touchmove",this.handleBarScroll);document.removeEventListener("touchend",this.handleBarScrollEnd);document.removeEventListener("selectstart",this.handleSelect)};e.prototype.handleSelect=function(d){d.stopPropagation();d.preventDefault();return!1};e.prototype.handleContentsDragStart=function(d){null===d.target.closest(this.scrollBlockSelector)&&
this.isHorizBar&&"hidden"!==window.getComputedStyle(this.els.wrapEl).overflow&&(this.startX=d.clientX+g(this.els.wrapEl),this.isContentsDragging=!0,this.isClickDisabled=!1,this.diffX=0,document.addEventListener("mousemove",this.handleContentsDrag),document.addEventListener("mouseup",this.handleContentsDragEnd))};e.prototype.handleContentsDrag=function(d){if(!this.isAnim&&this.isContentsDragging){this.diffX=this.startX-(d.clientX+g(this.els.wrapEl));this.scrollHoriz(g(this.els.wrapEl)+this.diffX);
var l=function(q){k(q.target,"a")&&(q.preventDefault(),q.stopPropagation());document.removeEventListener("click",l)};this.isClickDisabled||(document.addEventListener("click",l),this.isClickDisabled=!0)}};e.prototype.handleContentsDragEnd=function(){this.isContentsDragging=!1;document.removeEventListener("mousemove",this.handleContentsDrag);document.removeEventListener("mouseup",this.handleContentsDragEnd)};e.prototype.handleHorizTrackContentClick=function(d){d=d.clientX-this.els.horizTrackContentEl.getBoundingClientRect().left;
d<this.barScrollLeft?this.scrollTo(-this.els.wrapEl.getBoundingClientRect().width,null,!1,200):d>this.barScrollLeft+this.horizBarWidth&&this.scrollTo(this.els.wrapEl.getBoundingClientRect().width,null,!1,200)};e.prototype.handleDragStart=function(d){d.preventDefault()};e.prototype.resize=function(){this.setBarSize();this.handleScroll()};e.prototype.initHandlers=function(){this.handleScroll=m(this.handleScroll.bind(this));this.handleBarScrollStart=this.handleBarScrollStart.bind(this);this.handleBarScrollTouchStart=
this.handleBarScrollTouchStart.bind(this);this.handleBarScroll=m(this.handleBarScroll.bind(this));this.handleBarScrollEnd=this.handleBarScrollEnd.bind(this);this.handleSelect=this.handleSelect.bind(this);this.handleContentsDragStart=this.handleContentsDragStart.bind(this);this.handleContentsDrag=m(this.handleContentsDrag.bind(this));this.handleContentsDragEnd=this.handleContentsDragEnd.bind(this);this.resize=m(this.resize.bind(this));this.handleHorizTrackContentClick=this.handleHorizTrackContentClick.bind(this);
this.handleDragStart=this.handleDragStart.bind(this)};e.prototype.bindEvents=function(){var d=this;this.els.wrapEl.addEventListener("scroll",this.handleScroll);this.els.horizTrackContentEl.addEventListener("click",this.handleHorizTrackContentClick);this.els.horizBarEl.addEventListener("mousedown",this.handleBarScrollStart);this.els.horizBarEl.addEventListener("touchstart",this.handleBarScrollTouchStart,this.isPassiveSupported?{passive:!0}:!1);this.els.vertBarEl.addEventListener("mousedown",this.handleBarScrollStart);
this.els.vertBarEl.addEventListener("touchstart",this.handleBarScrollTouchStart,this.isPassiveSupported?{passive:!0}:!1);this.els.wrapEl.addEventListener("mousedown",this.handleContentsDragStart);this.els.wrapEl.addEventListener("dragstart",this.handleDragStart);window.addEventListener("resize",this.resize);if(this.isAutoResize){var l=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;this.observerTimer=null;this.observer=new l(function(){d.observerTimer&&clearTimeout(d.observerTimer);
d.observerTimer=setTimeout(function(){d.resize()},320)});this.observer.observe(this.els.wrapEl,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]})}};e.prototype.unBindEvents=function(){this.els.wrapEl.removeEventListener("scroll",this.handleScroll);this.els.horizTrackContentEl.removeEventListener("click",this.handleHorizTrackContentClick);this.els.horizBarEl.removeEventListener("mousedown",this.handleBarScrollStart);this.els.horizBarEl.removeEventListener("touchstart",this.handleBarScrollTouchStart);
this.els.vertBarEl.removeEventListener("mousedown",this.handleBarScrollStart);this.els.vertBarEl.removeEventListener("touchstart",this.handleBarScrollTouchStart);this.els.wrapEl.removeEventListener("mousedown",this.handleContentsDragStart);this.els.wrapEl.removeEventListener("dragstart",this.handleDragStart);window.removeEventListener("resize",this.resize);this.observerTimer&&(clearTimeout(this.observerTimer),this.observerTimer=null);this.observer&&(this.observer.disconnect(),this.observer=null)};
e.prototype.scrollBottom=function(){this.scrollTo(null,this.contentsMaxScrollTop-this.els.wrapEl.scrollTop)};e.prototype.scrollTo=function(d,l,q,r,w){var x=this;r=void 0===r?300:r;w=void 0===w?n(.4,0,.2,1):w;var C=g(this.els.wrapEl),E=this.els.wrapEl.scrollTop;q?(d&&(d>this.contentsMaxScrollLeft&&(d=this.contentsMaxScrollLeft),0>d&&(d=0),d-=C),l&&(l>this.contentsMaxScrollTop&&(l=this.contentsMaxScrollTop),0>d&&(l=0),l-=E)):(d&&(C+d>this.contentsMaxScrollLeft&&(d=this.contentsMaxScrollLeft-C),0>C+
d&&(d=-C)),l&&(E+l>this.contentsMaxScrollTop&&(l=this.contentsMaxScrollTop-E),0>E+d&&(l=-E)));q=function(z){d&&x.scrollHoriz(C+d*z);l&&x.scrollVert(E+l*z)};0<r?this.isAnim||this.animate(q,r,w):q(1)};e.prototype.animate=function(d,l,q){var r=this,w=Date.now();this.isAnim=!0;this.isbarDragging=this.isContentsDragging=!1;var x=function(){var C=(Date.now()-w)/l;1<C?(d(1),r.isAnim=!1):(requestAnimationFrame(x),d(q(C)))};x()};e.instances=new WeakMap;window.sg.components.registerClass("scrollbar",e);var b=
{initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.scrollbar:not([data-auto-init\x3d"false"])'))).forEach(function(d){e.instances.has(d)||new e(d)})},init:function(d){return e.instances.has(d)?e.instances.get(d):new e(d)},reInit:function(d){e.instances.has(d)?(d=e.instances.get(d),d.reInit()):d=new e(d);return d},scrollTo:function(d,l,q,r){r=void 0===r?!1:r;e.instances.has(d)&&e.instances.get(d).scrollTo(l,q,r)},scrollBottom:function(d){e.instances.has(d)&&e.instances.get(d).scrollBottom()},
resize:function(d){e.instances.has(d)&&e.instances.get(d).resize()},destroy:function(d){e.instances.has(d)&&e.instances.get(d).destroy()}};window.sg.common.scrollbar=b;a.ready(b.initAll)})();
(function(){var a=window.sg.common.$q,n=window.sg.common.constants.BREAKPOINTS,k=window.sg.common.utils,g=window.sg.common.scrollbar,f=function(h){this.ele={window:a(window),section:a(h),scrollPopup:null,boxWrap:null};this.setProperty();this.handler={resize:this.resize.bind(this)};f.instances.set(h,this);this.init()};f.prototype.setProperty=function(){this.ele.scrollPopup=this.ele.section.find(".layer-popup__contents.scrollbar");this.ele.boxWrap=this.ele.section.find(".layer-popup__inner")};f.prototype.init=
function(){var h=this;0>=this.ele.scrollPopup.target.length||(this.bindEvents(),this.resize(),setTimeout(function(){h.resize()},500))};f.prototype.reInit=function(){var h=this;this.setProperty();0>=this.ele.scrollPopup.target.length||(this.bindEvents(),this.resize(),setTimeout(function(){h.resize()},500))};f.prototype.resize=function(){this.setScrollHeight()};f.prototype.setScrollHeight=function(){var h=this.ele.scrollPopup.find(".scrollbar__wrap").eq(0),m=h.target[0].scrollTop,e=k.getViewPort().height;
h.css({maxHeight:""});e-=this.ele.scrollPopup.target[0].offsetTop;e-=this.ele.boxWrap.offset().bottom-this.ele.scrollPopup.offset().bottom;e=void 0===this.ele.section.target[0].dataset.paddingCustom?e-(n.MOBILE<k.getViewPort().width?60:2*this.ele.boxWrap.target[0].offsetTop):e-2*this.ele.boxWrap.target[0].offsetTop;0>e&&(e=0);h.height()-1>Math.round(e)&&h.css({maxHeight:e+"px"});h.target[0].scrollTop=m;g.resize(this.ele.scrollPopup.target[0])};f.prototype.bindEvents=function(){this.ele.window.off("resize",
this.handler.resize).on("resize",this.handler.resize)};f.instances=new WeakMap;window.sg.common.layerPopupMaxHeight={initAll:function(){a(".layer-popup").target.forEach(function(h){if(0<h.querySelectorAll(".layer-popup__contents.scrollbar").length&&!f.instances.has(h))new f(h);else return null})},init:function(h){if(0<h.querySelectorAll(".layer-popup__contents.scrollbar").length&&!f.instances.has(h))[].concat($jscomp.arrayFromIterable(h.querySelectorAll(".scrollbar"))).forEach(function(m){g.init(m)}),
new f(h);else return null},reInit:function(h){if(0<h.querySelectorAll(".layer-popup__contents.scrollbar").length&&f.instances.has(h))f.instances.get(h).reInit();else return null},setMax:function(h){if(0<h.querySelectorAll(".layer-popup__contents.scrollbar").length&&f.instances.has(h))f.instances.get(h).setScrollHeight();else return null}}})();
(function(){var a=window.sg.common.$q,n=window.Swiper,k=window.sg.common.constants.BREAKPOINTS,g=window.sg.common.utils,f=window.sg.common.lazyLoad,h=window.sg.common.utils.removeAllEventListeners,m={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.basic-swiper:not([data-auto-init\x3d"false"])'))).forEach(function(b){e.instances.has(b)||new e(b)})},init:function(){a(".basic-swiper").target.forEach(function(b){e.instances.has(b)?e.instances.get(b).swiper.reInit():
new e(b)})},reInit:function(){f.reInit();a(".basic-swiper").target.forEach(function(b){e.instances.has(b)?e.instances.get(b).swiper.reInit():new e(b)})},update:function(){a(".basic-swiper").target.forEach(function(b){e.instances.has(b)&&(b=e.instances.get(b).swiper,b.slideResize(),b.update())})},getSwiper:function(b){if(e.instances.has(b))return e.instances.get(b).swiper.getSwiper()},slideChange:function(b,d){e.instances.has(b)&&e.instances.get(b).swiper.slideChange(d)},slideChangeTransitionEnd:function(b,
d){e.instances.has(b)&&e.instances.get(b).swiper.slideChangeTransitionEnd(d)},slideReInit:function(b){e.instances.has(b)?e.instances.get(b).swiper.reInit():new e(b)},slideUpdate:function(b,d){e.instances.has(b)&&e.instances.get(b).swiper.slideUpdate(d)},slideInit:function(b,d){new e(b,d)},slideRemove:function(b){e.instances.has(b)&&e.instances.get(b).swiper.remove()},slideInitEnd:function(b,d){e.instances.has(b)&&e.instances.get(b).swiper.slideInitEnd(d)},slideSwiperDestory:function(b){e.instances.has(b)&&
e.instances.get(b).swiper.slideSwiperDestory()},slideStop:function(b){e.instances.has(b)&&e.instances.get(b).swiper.slideStop()},slideStart:function(b){e.instances.has(b)&&e.instances.get(b).swiper.slideStart()},destroy:function(b){e.instances.has(b)&&e.instances.get(b).swiper.destroy()}},e=function(b,d){var l=this;this.indicator=window.sg.common.indicator;this.selector={imageMain:".image \x3e .image__main",swiperSlide:".swiper-slide",swiperWrapper:".swiper-wrapper",swiperButtonNext:".swiper-button-next",
swiperButtonPrev:".swiper-button-prev",indicator:".indicator",indicatorList:".indicator__list",indicatorControls:".indicator__controls",indicatorItem:".indicator__item",indicatorScreenWrap:".screen-indicator-wrap",indicatorScreenPrev:".screen-indicator--prev",indicatorScreenNext:".screen-indicator--next",indicatorProgress:".progressbar-indicator",indicatorProgressBar:".progressbar-indicator__bar",indicatorProgressShowClass:"progressbar-indicator--show",indicatorProgressFillClass:"progressbar-indicator__bar-fill",
hiddenButton:".hiddenButton"};this.el={componentEl:null,containerEl:null,indicatorEl:null,prevEl:null,nextEl:null,autoPlayBtnEl:null};this.group=0;this.el.containerEl=a(b);b=this.el.containerEl.attr("data-swiper-option")?JSON.parse(this.el.containerEl.target[0].dataset.swiperOption):{};this.el.componentEl=this.el.containerEl.closest(b.componentEl);var q={slidesPerView:1,spaceBetween:0,longSwipes:!0,longSwipesRatio:.1,keepWrapper:!0,offSlideAccessibility:!1,offTxtAccesibility:!1};q=g.extend(q,b);q.on=
{};q.threshold=10;q.init=!1;q.accessibility=!0;d&&(q=g.extend(q,d));void 0!==q.offTxtAccessibility&&(q.offTxtAccesibility=q.offTxtAccessibility);q.freeMode&&(q.threshold=0,q.freeModeSticky=!0,q.freeModeMomentumRatio=.01,q.centeredSlidesBounds=!0,q.touchStartPreventDefault=!1);q.a11y=!1;q.autoplay&&(q.autoplay.disableOnInteraction=!1,!1===q.autoplay.start&&(q.autoplay=!1));this.$qwindow=a(window);this.option=q;this.focusInCheck=this.autoPlayCheck=null;this.clickCheck=!1;this.activeSlide=0;this.slideChangeHandler=
this.slideInitEndHandler=this.slideChangeTransitionEndHandler=null;this.prevImageCheck=!1;this.wrapperStr='\x3cdiv class\x3d"swiper-wrapper" role\x3d"listbox"\x3e';this.focusElementStr="a, button, .video, video, h1, h2, h3, h4, h5, h6, p";this.focusElementNotxt="a, button";this.focusClass=".three-column-carousel__content, .swiper-slide-focus";this.swiperStopEle=".swiper-wrapper";this.hiddenButton='\x3cbutton type\x3d"button" class\x3d"hidden hiddenButton" tabindex\x3d"-1"\x3eStop automatic slide show\x3c/button\x3e';
this.textColorArr=[];this.textColorArr[0]=".text-white";this.textColorArr[1]=".text-black";this.bulletColorArr=[];this.bulletColorArr[0]="text-color--white";this.bulletColorArr[1]="text-color--black";this.sw=!1;this.handler={setImageCheck:function(){var r=l.el.containerEl.find(l.selector.imageMain).eq(0);0>=r.height()&&(l.el.containerEl.css({"min-height":"2px"}),r.on("load",l.handler.checkImageLoad))},checkImageLoad:function(r){l.el.containerEl.css({"min-height":""});l.slideResize();a(r.target).off("load",
l.handler.checkImageLoad)},autoPlayHandler:function(){l.autoPlayCheck=l.autoPlayCheck?!1:!0;l.autoPlayCheck?(l.sw.autoplay.start(),l.handler.autoPlayBtnSetup(!1)):(l.sw.autoplay.stop(),l.handler.autoPlayBtnSetup(!0))},autoPlayBtnSetup:function(r){if(l.el.autoPlayBtnEl.target.length){var w=l.el.autoPlayBtnEl.attr("an-la");r?(l.el.autoPlayBtnEl.attr("an-la",w.replace(":stop",":play")),l.el.autoPlayBtnEl.find(".hidden").innerHTML("play"),l.el.indicatorEl&&l.indicator.pause(l.el.indicatorEl),l.el.autoPlayBtnEl.addClass("indicator__controls--play"),
l.el.containerEl.find(l.selector.hiddenButton).text("Play automatic slide show")):(l.el.autoPlayBtnEl.attr("an-la",w.replace(":play",":stop")),l.el.autoPlayBtnEl.find(".hidden").innerHTML("stop"),l.el.indicatorEl&&l.indicator.play(l.el.indicatorEl),l.el.autoPlayBtnEl.removeClass("indicator__controls--play"),l.el.containerEl.find(l.selector.hiddenButton).text("Stop automatic slide show"))}},focusInHandler:function(r){r.preventDefault();l.sw.autoplay&&!l.focusInCheck&&(l.focusInCheck=!0,l.autoPlayCheck=
l.sw.autoplay.running,"focusin"!==r.type.toLowerCase()&&"mouseover"!==r.type.toLowerCase()||l.handler.autoPlayBtnSetup(!0),l.sw.autoplay.stop())},focusOutHandler:function(r){r.preventDefault();l.sw.autoplay&&l.focusInCheck&&(l.focusInCheck=!1,l.autoPlayCheck&&(l.clickCheck=!1,l.sw.autoplay.start(),l.handler.autoPlayBtnSetup(!1)))},renderIndicator:function(){if(l.el.indicatorEl){var r=l.indicator.init(l.el.indicatorEl);r&&r.reInit();l.el.componentEl.find(l.selector.indicatorItem).target.length&&l.indicator.move(l.el.indicatorEl,
l.activeSlide)}l.el.autoPlayBtnEl.target.length&&(l.el.autoPlayBtnEl.find(".hidden").innerHTML("stop"),h(l.el.autoPlayBtnEl.target[0],"click"),l.el.autoPlayBtnEl.removeClass("indicator__controls--play"),r=function(w){l.el.indicatorEl||l.el.autoPlayBtnEl.toggleClass("indicator__controls--play");w.preventDefault();l.focusInCheck&&!l.clickCheck&&(l.clickCheck=!0,setTimeout(function(){l.handler.autoPlayHandler(!0)},100));l.handler.autoPlayHandler()},l.el.autoPlayBtnEl.off("click").on("click",r),l.el.containerEl.find(l.selector.hiddenButton).off("click").on("click",
r))},paginationUpdateHandler:function(r,w){r=a(w).find(l.selector.indicatorItem+".swiper-pagination-bullet-active").target[0];w=a(w).find(l.selector.indicatorItem+".indicator__item--active").target[0];r!==w&&r&&(w=parseInt(r.getAttribute("data-type-clickid"),10),l.indicator.move(l.el.indicatorEl,w))},paginationRenderHandler:function(){l.handler.renderIndicator();l.handler.setupBullet()},setupBullet:function(){l.headlineArr=[];l.el.containerEl.find(".swiper-slide:not(.swiper-slide-duplicate)").target.forEach(function(x){var C=
x.getAttribute("data-type-headline");C||(C=x.dataset.tagging?JSON.parse(x.dataset.tagging)["an-tr"]:x.getAttribute("an-tr"));l.headlineArr.push(C)});l.headlineArr=l.headlineArr.concat(l.headlineArr);a(l.option.pagination.el).find(".swiper-pagination-bullet").target.forEach(function(x,C){var E=null;E=C*l.group;l.group!==l.getNowPerView()&&(E=C);E=l.option.loop?l.el.containerEl.find(l.selector.swiperWrapper).find('.swiper-slide[data-swiper-slide-index\x3d"'+E+'"]'):a(l.sw.slides[E]);var z=a(x);E.target.forEach(function(xa){xa.setAttribute("aria-describedby",
z.attr("id"))});if(E.target[0].dataset.tagging){var T=JSON.parse(E.target[0].dataset.tagging);x=T["an-tr"];var ca=T["an-ca"];var oa=T["an-ac"];T=T["an-la"]}else x=E.attr("an-tr"),ca=E.attr("an-ca"),oa=E.attr("an-ac"),T=E.attr("an-la");var ba=E.attr("data-type-headline");ba||(ba=x);z.attr("an-tr",x);z.attr("an-ca",ca);z.attr("an-ac",oa);z.attr("an-la",T);z.attr("data-type-slide-index",C);setTimeout(function(){z.find(".hidden").innerHTML(""+ba)},0)});var r=l.getNowPerView();if(1<r)if(1>=l.option.slidesPerGroup)a(l.option.pagination.el).find(".swiper-pagination-bullet").target.forEach(function(x,
C){for(var E="",z=C;z<C+r;z++)E=z!==C+r-1?E+(l.headlineArr[z]+", "):E+(""+l.headlineArr[z]);a(x).find(".hidden").innerHTML(""+E)});else{var w=0;a(l.option.pagination.el).find(".swiper-pagination-bullet").target.forEach(function(x){for(var C="",E=w;E<w+r;E++)C=E!==w+r-1?C+(l.headlineArr[E]+", "):C+(""+l.headlineArr[E]);w+=r;a(x).find(".hidden").innerHTML(""+C)})}},resize:function(){"pc"===l.option.viewMode?l.resizePc():"mobile"===l.option.viewMode?l.resizeMobile():l.resize()}};this.handler.setImageCheck();
this.bindEvents();this.reInit=function(){l.el.containerEl.find(l.selector.swiperSlide).removeClass("swiper-slide-active");l.remove();l.handler.setImageCheck();l.bindEvents()};e.instances.set(this.el.containerEl.target[0],{swiper:this})};e.createCount=function(){return this.count+=1};e.prototype.customFocus=function(){};e.prototype.getSwiper=function(){return this.sw};e.prototype.init=function(){function b(){l.option.loop||x(C())}var d=this;if(!1===this.sw){this.activeSlide=0;var l=this,q=this.el.containerEl.find(this.selector.swiperSlide);
this.el.autoPlayBtnEl=this.el.componentEl.find(this.selector.indicatorControls);this.el.indicatorEl=this.el.componentEl.find(this.selector.indicator).target[0];this.el.prevEl=this.el.componentEl.find(this.selector.swiperButtonPrev);this.el.nextEl=this.el.componentEl.find(this.selector.swiperButtonNext);this.el.indicatorScreenPrev=this.el.componentEl.find(this.selector.indicatorScreenPrev);this.el.indicatorScreenNext=this.el.componentEl.find(this.selector.indicatorScreenNext);if(this.getNowPerView()>
q.target.length)this.el.prevEl.hide(),this.el.nextEl.hide();else{this.el.containerEl.find(this.selector.swiperSlide).target.forEach(function(ba,xa){a(ba).hasClass("swiper-slide-active")&&(d.activeSlide=xa)});if(0===this.el.containerEl.find(this.selector.swiperWrapper).target.length){var r=this.el.containerEl.find(this.selector.swiperSlide);this.slideAccessibility();q=r.clone();r.remove();r=this.el.containerEl.find(".indicator");var w=this.el.containerEl.children();0===w.target.length?this.el.containerEl.append(this.wrapperStr):
r.target.length&&!this.el.containerEl.find(this.selector.swiperButtonPrev).target.length?r.prepend(this.wrapperStr):w.eq(0).after(this.wrapperStr);this.el.containerEl.find(this.selector.swiperWrapper).append(q);window.sg.common.image.initAll();f.initAll()}this.el.containerEl.find(this.selector.hiddenButton).off().remove();this.option.autoplay&&this.el.containerEl.target[0].insertAdjacentHTML("afterbegin",this.hiddenButton);this.option.navigation?"string"===(typeof this.option.navigation.prevEl).toLowerCase()&&
(this.el.prevEl=this.el.componentEl.find(this.option.navigation.prevEl),this.el.nextEl=this.el.componentEl.find(this.option.navigation.nextEl)):(this.option.navigation={},this.option.navigation.prevEl=this.el.prevEl.target[0],this.option.navigation.nextEl=this.el.nextEl.target[0]);this.option.navigation.navigationDisabledClass="swiper-navigation-disabled";this.slideChangeHandler&&(this.option.on.slideChange=function(){d.slideChangeHandler(d.sw,d.sw.realIndex)});if(this.option.pagination){this.option.pagination=
{};if(q=this.el.componentEl.find(this.selector.indicatorProgress).target[0])this.option.pagination.type="progressbar";switch(this.option.pagination.type){case "progressbar":this.option.pagination.el=q.querySelector(this.selector.indicatorProgressBar);this.option.pagination.progressbarFillClass=this.selector.indicatorProgressFillClass;break;default:this.el.componentEl.find(this.selector.indicatorList+" \x3e button").remove(),this.option.pagination.el=this.el.componentEl.find(this.selector.indicatorList).target[0],
this.option.pagination.el&&"list"===this.option.pagination.el.getAttribute("role")?this.option.pagination.renderBullet=function(ba,xa){return'\x3cdiv class\x3d"div-for-accessibility" role\x3d"listitem"\x3e\x3cbutton class\x3d"indicator__item '+xa+'" data-type-clickid\x3d"'+ba+'" id\x3d"swiper'+e.createCount()+'"\x3e\x3cspan class\x3d"indicator__dot-wrap"\x3e\x3cspan class\x3d"indicator__dot"\x3e \x3cspan class\x3d"indicator__dot-inner"\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"hidden"\x3eIndicator 10\x3c/span\x3e\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e'}:
this.option.pagination.el&&(this.option.pagination.renderBullet=function(ba,xa){return'\x3cbutton class\x3d"indicator__item '+xa+'" role\x3d"tab" data-type-clickid\x3d"'+ba+'" id\x3d"swiper'+e.createCount()+'"\x3e\x3cspan class\x3d"indicator__dot-wrap"\x3e\x3cspan class\x3d"indicator__dot"\x3e \x3cspan class\x3d"indicator__dot-inner"\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"hidden"\x3eIndicator 10\x3c/span\x3e\x3c/span\x3e\x3c/button\x3e'})}}var x=function(ba){switch(void 0===ba?!1:ba){case "beginning":d.el.indicatorScreenPrev.attr("disabled",
!0);d.el.prevEl.attr("disabled",!0);d.sw.isEnd||d.sw.perView>=d.sw.slides.length?(d.el.indicatorScreenNext.attr("disabled",!0),d.el.nextEl.attr("disabled",!0)):(d.el.indicatorScreenNext.removeAttr("disabled"),d.el.nextEl.removeAttr("disabled"));d.el.containerEl.removeClass("swiper-slide--end");d.el.containerEl.addClass("swiper-slide--beginning");break;case "end":d.el.indicatorScreenPrev.removeAttr("disabled");d.el.prevEl.removeAttr("disabled");d.el.indicatorScreenNext.attr("disabled",!0);d.el.nextEl.attr("disabled",
!0);d.el.containerEl.addClass("swiper-slide--end");d.el.containerEl.removeClass("swiper-slide--beginning");break;case !1:d.el.indicatorScreenNext.removeAttr("disabled"),d.el.nextEl.removeAttr("disabled"),d.el.indicatorScreenPrev.removeAttr("disabled"),d.el.prevEl.removeAttr("disabled"),d.el.containerEl.removeClass("swiper-slide--end"),d.el.containerEl.removeClass("swiper-slide--beginning")}},C=function(){return!l.option.loop&&l.sw.isBeginning?"beginning":!l.option.loop&&l.sw.isEnd?"end":!1};q=this.getNowPerView();
this.group=this.option.slidesPerGroup;this.group||(this.group=1);q=q!==this.group&&"number"===(typeof this.group).toLowerCase()&&"auto"!==q?!0:!1;var E=[];q?(this.option.slidesPerGroup=1,this.timer=null,this.option.on={slideNextTransitionStart:function(){var ba=this;0===(this.realIndex-1)%this.group&&this.slideTo(this.activeIndex+(this.group-1));var xa=!1;E.forEach(function(ya){ba.realIndex===ya&&(xa=!0)});xa&&this.slideNext();this.slideChangeHandler&&(this.timer&&clearTimeout(this.timer),this.timer=
setTimeout(function(){ba.slideChangeHandler(ba.sw,ba.sw.realIndex)},200))},slidePrevTransitionStart:function(){var ba=this;0===(this.realIndex+1)%this.group&&this.slideTo(this.activeIndex-(this.group-1));var xa=!1;E.forEach(function(ya){ba.realIndex===ya&&(xa=!0)});xa&&this.slidePrev();this.slideChangeHandler&&(this.timer&&clearTimeout(this.timer),this.timer=setTimeout(function(){ba.slideChangeHandler(ba.sw,ba.sw.realIndex)},200))}}):this.option.pagination&&(this.option.pagination.clickable=!0);this.option.autoHeight&&
(this.el.containerEl.find(this.selector.swiperWrapper).css({transition:"all ease-out","-o-transition":"all ease-out","-ms-transition":"all ease-out","-moz-transition":"all ease-out","-webkit-transition":"all ease-out"}),this.option.on.touchStart=function(){d.slideResize()});var z=!1;this.option.freeMode&&(this.option.on.touchEnd=function(){z=!0});this.option.on.slideChangeTransitionEnd=function(){d.slideChangeTransitionEndHandler&&d.slideChangeTransitionEndHandler(d.sw,d.sw.realIndex);d.slideAccessibility();
z||d.customFocus();z=!1};this.sw=new n(this.el.containerEl.target[0],this.option);this.sw.init();this.option.autoplay?(this.el.autoPlayBtnEl.attr("an-tr",this.option.autoplay["an-tr"]),this.el.autoPlayBtnEl.attr("an-ca",this.option.autoplay["an-ca"]),this.el.autoPlayBtnEl.attr("an-ac",this.option.autoplay["an-ac"]),this.el.autoPlayBtnEl.attr("an-la",this.option.autoplay["an-la"]),!this.el.indicatorEl&&this.el.autoPlayBtnEl&&this.handler.renderIndicator()):this.el.autoPlayBtnEl.hide();if(this.option.pagination){this.handler.setupBullet();
if(q){var T=0,ca=a(this.option.pagination.el).find(".swiper-pagination-bullet");ca.target.forEach(function(ba,xa){0===xa%d.group||xa===ca.target.length-1?(ba.setAttribute("data-type-group-index",xa),ba.setAttribute("data-type-clickid",T),T++):(E.push(xa),ba.setAttribute("disabled","false"))});this.el.componentEl.find(this.selector.indicatorItem+'[disabled\x3d"false"]').remove();this.el.componentEl.find(this.selector.indicatorItem).on("click",function(ba){ba=parseInt(a(ba.target).closest(d.selector.indicatorItem).attr("data-type-group-index"),
10);d.sw.slideToLoop(ba)});var oa=parseInt(this.getNowPerView(),0);a(this.option.pagination.el).find(".swiper-pagination-bullet").target.forEach(function(ba,xa){var ya="",ma=parseInt(ba.getAttribute("data-type-slide-index"),10);if(d.option.realSlidesPerView){for(var ab=ma;ab<ma+oa;ab++)ya+=" "+d.headlineArr[ab];a(ba).find(".hidden").innerHTML("Slide "+(xa+1)+":"+ya)}else{for(xa=ma;xa<ma+oa;xa++)ya=xa!==ma+oa-1?ya+(d.headlineArr[xa]+", "):ya+(""+d.headlineArr[xa]);a(ba).find(".hidden").innerHTML(""+
ya)}})}this.option.pagination&&setTimeout(function(){d.sw.pagination&&d.sw.pagination.bullets&&(d.handler.renderIndicator(),d.sw.on("paginationUpdate",d.handler.paginationUpdateHandler),d.sw.on("paginationRender",d.handler.paginationRenderHandler))},100)}this.option.autoplay&&(this.autoPlayCheck=this.sw.autoplay.running,q=null,q=this.el.componentEl.target.length?this.el.componentEl.find(this.swiperStopEle):this.el.containerEl,this.focusInCheck=!1,q.off("mouseover",this.handler.focusInHandler).on("mouseover",
this.handler.focusInHandler),q.off("mouseleave",this.handler.focusOutHandler).on("mouseleave",this.handler.focusOutHandler),q.off("focusin",this.handler.focusInHandler).on("focusin",this.handler.focusInHandler),q.off("focusout",this.handler.focusOutHandler).on("focusout",function(ba){setTimeout(function(){a(document.activeElement).target[0]!==d.el.autoPlayBtnEl.target[0]&&d.handler.focusOutHandler(ba)},300)}));if(this.option.loop)this.sw.slideToLoop(this.activeSlide,0);else if(this.sw.slideTo(this.activeSlide,
0),this.el.indicatorEl&&"none"!==this.el.autoPlayBtnEl.css("display"))this.sw.on("slideChange",function(){d.sw.isEnd&&!d.el.autoPlayBtnEl.hasClass("indicator__controls--play")&&(d.clickCheck=!0,d.handler.autoPlayHandler())});this.slideAccessibility();this.el.nextEl.off("click").on("click",function(){d.sw.isEnd&&!d.option.loop&&d.el.prevEl.focus()});this.el.prevEl.off("click").on("click",function(){d.sw.isBeginning&&!d.option.loop&&d.el.nextEl.focus()});this.el.indicatorScreenNext.off("click").on("click",
function(){d.sw.slideNext();d.sw.isEnd&&!d.option.loop&&d.el.indicatorScreenPrev.focus()});this.el.indicatorScreenPrev.off("click").on("click",function(){d.sw.slidePrev();d.sw.isBeginning&&!d.option.loop&&d.el.indicatorScreenNext.focus()});this.sw.on("slideChange",function(){f.setLazyLoad();!1===C()&&x()});this.sw.on("transitionEnd",function(){f.setLazyLoad()});this.sw.on("reachBeginning",function(){x("beginning")});this.sw.on("reachEnd",function(){x("end")});this.sw.on("breakpoint",function(){setTimeout(function(){b()},
10)});this.sw.on("update",function(){b()});this.sw.on("init",function(){d.slideInitEndHandler&&d.slideInitEndHandler()});this.option&&this.option.pagination&&"progressbar"===this.option.pagination.type&&(q=this.el.componentEl.find(this.selector.indicatorProgress).target[0],this.sw&&this.sw.params.slidesPerView<this.sw.slides.length&&q&&q.classList.add(this.selector.indicatorProgressShowClass));b()}}};e.prototype.slideStart=function(){this.sw&&(this.autoPlayCheck=!0,this.sw.autoplay.start(),this.handler.autoPlayBtnSetup(!1))};
e.prototype.slideStop=function(){this.sw&&(this.autoPlayCheck=!1,this.sw.autoplay.stop(),this.handler.autoPlayBtnSetup(!0))};e.prototype.getNowPerView=function(){var b=0,d=this.option.breakpoints;d&&Object.keys(d).forEach(function(l){l=parseInt(l,0);g.getViewPort().width>l&&b<l&&(b=l)});d=0!==b?d[b].slidesPerView:this.option.slidesPerView;this.option.realSlidesPerView&&(d=parseInt(this.option.realSlidesPerView,0));return d};e.prototype.slideAccessibility=function(){var b=this;if(this.sw&&!this.sw.destroyed&&
!this.option.offSlideAccessibility){var d=this.getNowPerView();this.el.containerEl.find(this.focusClass).removeAttr("tabindex");for(var l=[],q=0;q<this.sw.slides.length;q++){var r=a(this.sw.slides[q]);this.option.offTxtAccesibility?r.find(this.focusElementNotxt).attr("tabindex","-1"):r.find(this.focusElementStr).attr("tabindex","-1");r.attr("aria-hidden",!0);l.push(r)}if("auto"!==d&&1<d)for(q=this.sw.activeIndex;q<this.sw.activeIndex+d;q++)if(r=l[q])r.find(this.focusElementStr).removeAttr("tabindex"),
r.attr("aria-hidden",!1),0<r.find(this.focusClass).target.length?r.find(this.focusClass).attr("tabindex","0"):r.find(this.focusElementStr).target.forEach(function(C){b.option.offTxtAccesibility&&!1===(C.matches?C.matches(b.focusElementNotxt):C.msMatchesSelector(b.focusElementNotxt))?C.removeAttribute("tabindex"):C.setAttribute("tabindex","0")});var w=this.el.containerEl.find(".swiper-slide-active");w.find(this.focusClass).target.length?w.find(this.focusClass).attr("tabindex","0"):w.find(this.focusElementStr).target.forEach(function(C){b.option.offTxtAccesibility&&
!1===(C.matches?C.matches(b.focusElementNotxt):C.msMatchesSelector(b.focusElementNotxt))?C.removeAttribute("tabindex"):C.setAttribute("tabindex","0")});w.attr("aria-hidden",!1);if(this.option.pagination){var x=!0;this.textColorArr.forEach(function(C,E){w.find(C).target.length&&(b.bulletColorArr.forEach(function(z){b.el.containerEl.removeClass(z)}),x=!1,b.el.containerEl.addClass(b.bulletColorArr[E]))});x&&this.bulletColorArr.forEach(function(C){b.el.containerEl.removeClass(C)})}}};e.prototype.update=
function(){if(this.sw){var b=this.el.containerEl.find(".swiper-slide-active").index();this.option.loop||(this.sw.activeIndex=b);this.slideResize();this.sw.update();this.slideAccessibility()}};e.prototype.slideChange=function(b){this.slideChangeHandler=b};e.prototype.slideChangeTransitionEnd=function(b){this.slideChangeTransitionEndHandler=b};e.prototype.slideInitEnd=function(b){this.sw.initialized?b():this.slideInitEndHandler=b};e.prototype.slideResize=function(){if(!1!==this.sw&&this.option.autoHeight){var b=
this.el.containerEl.find(this.selector.swiperWrapper),d=b.find(this.selector.swiperSlide);b.css({height:""});d.css({height:""});d.target.forEach(function(l){l=a(l);var q=l.outerHeight();l.css({height:q+"px"})});d=b.find(".swiper-slide.swiper-slide-active").height();b.css({height:d+"px"})}};e.prototype.remove=function(){if(!1!==this.sw){this.el.containerEl.find(".swiper-pagination-bullet").off();this.el.componentEl.find(this.selector.indicatorControls).off();var b=this.el.containerEl.find(this.selector.swiperSlide);
b.find(this.focusElementStr).removeAttr("tabindex");b.css({width:"",height:"",visibility:""});b.removeAttr("aria-hidden");b.removeAttr("aria-describedby");b.removeClass("swiper-slide-prev");b.removeClass("swiper-slide-next");this.option.keepWrapper||(b=b.clone(),this.el.containerEl.find(this.selector.swiperWrapper).remove(),this.el.containerEl.append(b));this.el.containerEl.find(".swiper-slide-duplicate").remove();this.sw.destroy();this.sw=!1}};e.prototype.slideSwiperDestory=function(){this.sw.destroy();
this.sw=!1};e.prototype.resizePc=function(){k.MOBILE<g.getViewPort().width?(this.resize(),this.init()):this.remove();this.slideAccessibility()};e.prototype.resize=function(){this.el.containerEl.find(this.selector.swiperWrapper).css({height:""});this.el.containerEl.find(this.selector.swiperWrapper+" "+this.selector.swiperSlide).css({height:""});this.slideResize();this.slideAccessibility()};e.prototype.resizeMobile=function(){k.MOBILE>=g.getViewPort().width?(this.resize(),this.init()):this.remove();
this.slideAccessibility()};e.prototype.bindEvents=function(){this.$qwindow.off("resize",this.handler.resize).on("resize",this.handler.resize);this.$qwindow.off("change",this.handler.resize).on("change",this.handler.resize);this.option.viewMode||this.init();this.handler.resize()};e.prototype.slideUpdate=function(b){void 0!==b&&(this.option=g.extend(this.option,b));this.update()};e.prototype.destroy=function(){!1!==this.sw&&(this.sw.destroy(),this.$qwindow.off("resize",this.handler.resize),e.instances.has(this.el.containerEl.target[0])&&
e.instances.delete(this.el.containerEl.target[0]))};e.count=0;e.instances=new WeakMap;window.sg.components.registerClass("swiper",e);window.sg.common.swiperManager=m;a.ready(m.initAll);a.load(m.update)})();
(function(){var a=0,n=function(){var h=window.document.createEvent("UIEvents");h.initUIEvent("resize",!0,!1,window,0);window.dispatchEvent(h)},k=function(h){h?60<a||768===window.innerWidth?n():(a++,requestAnimationFrame(function(){return k(h)})):60<a||768!==window.innerWidth?n():(a++,requestAnimationFrame(function(){return k(h)}))},g=function(){var h=document.querySelector('meta[name\x3d"viewport"]'),m=h.getAttribute("content");768>window.outerWidth&&534<window.outerWidth||window.outerWidth>window.outerHeight&&
768<=window.outerWidth&&768>window.innerWidth?"width\x3d768"!==m&&(null!=document.getElementById("isBespokeDesignStudioUSPage")?h.setAttribute("content","width\x3ddevice-width,initial-scale\x3d1.0,minimum-scale\x3d1.0"):h.setAttribute("content","width\x3d768"),a=0,requestAnimationFrame(function(){return k(!0)})):window.outerWidth>window.outerHeight&&"width\x3d768"===m||"width\x3ddevice-width,initial-scale\x3d1.0,minimum-scale\x3d1.0"===m||(h.setAttribute("content","width\x3ddevice-width,initial-scale\x3d1.0,minimum-scale\x3d1.0"),
a=0,requestAnimationFrame(function(){return k(!1)}))},f=function(h){window.outerWidth!==h||120<=a?g():(a++,h=window.outerWidth,requestAnimationFrame(function(){return f(h)}))};window.addEventListener("resize",g);window.addEventListener("orientationchange",function(){a=0;f(window.outerWidth)});"loading"===document.readyState?document.addEventListener("DOMContentLoaded",g):g()})();
(function(){var a=window.sg.common.$q,n=window.sg.common.utils.closest,k=function(h,m){this.el=h;this.src=m;Array.isArray(this.src)||(this.src=[this.src]);this.init()};k.prototype.init=function(){var h=this;this.src.forEach(function(m){h.loadSvgSprite(m)});this.setSvgs(this.el)};k.prototype.load=function(h){h&&0>this.src.indexOf(h)&&(this.src.push(h),this.loadSvgSprite(h))};k.prototype.loadSvgSprite=function(h){var m=new XMLHttpRequest;m.open("GET",h);m.send();h=function(){if(4===m.readyState){var e=
document.createElement("div");e.innerHTML=m.responseText;if(e=e.querySelector("svg"))e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width="0",e.style.height="0",document.body.insertBefore(e,document.body.firstChild)}};m.onreadystatechange=h;h()};k.prototype.setSvgs=function(h){h=h.querySelectorAll("use");[].concat($jscomp.arrayFromIterable(h)).forEach(function(m){var e=m.getAttribute("xlink:href")||m.getAttribute("href"),b=n(m,"svg");e&&b&&(e="#"+e.split("#")[1],m.setAttribute("xlink:href",
e),m.setAttribute("href",e))})};k.instance=null;var g=[(document.querySelector("#cdnAkamaiDomain")?document.querySelector("#cdnAkamaiDomain").value:"")+"/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/svg-sprite.svg"],f={init:function(){var h=document.querySelector("#useSvgSprite");if(!h||h&&"N"!==h.value)k.instance=new k(document,g)},load:function(h){k.instance?k.instance.load(h):0>g.indexOf(h)&&g.push(h)},setSvgs:function(h){h=void 0===h?document:h;k.instance&&
k.instance.setSvgs(h)},redrawSvg:function(h){var m=h.parentElement;if(m){var e=[].concat($jscomp.arrayFromIterable(m.childNodes)).indexOf(h);m.removeChild(h);var b=document.createElement("div");b.appendChild(h);b.innerHTML=b.innerHTML;h=b.firstChild;m.childNodes[e]?m.insertBefore(h,m.childNodes[e]):m.appendChild(h)}},redrawSvgs:function(h){h=void 0===h?document:h;h=h.querySelectorAll("svg");[].concat($jscomp.arrayFromIterable(h)).forEach(function(m){f.redrawSvg(m)})},redrawAbnormalSvgs:function(h){h=
void 0===h?document:h;var m=h.querySelectorAll("svg");[].concat($jscomp.arrayFromIterable(m)).forEach(function(e){"http://www.w3.org/2000/svg"!==h.namespaceURI&&f.redrawSvg(e)})},update:function(h){h=void 0===h?document:h;f.setSvgs(h);f.redrawSvgs(h)},updateAbnormalSvgs:function(h){h=void 0===h?document:h;f.setSvgs(h);f.redrawAbnormalSvgs(h)}};window.sg.common.icon=f;a.ready(f.init)})();
(function(){window.sg=window.sg||{};window.sg.authoring=window.sg.authoring||{};window.sg.authoring.raiseEvent={domContentLoaded:function(){var a=document.createEvent("Event");a.initEvent("DOMContentLoaded",!0,!0);return window.document.dispatchEvent(a)}}})();
(function(){var a=window.sg.common.$q,n=window.sg.common.constants.KEY_CODE,k=window.sg.common.scrollbar,g=function(h,m){var e=this;m=void 0===m?-1:m;this.els={el:a(h),selectEl:null,btnEl:null,btnTextEl:null,listWrapEl:null,listEl:null,itemEls:null,docEl:a(document)};this.els.selectEl=this.els.el.find("select");this.els.selectEl.hide();this.options=[].concat($jscomp.arrayFromIterable(this.els.selectEl.target[0].options));this.selectedIndex=m;this.isDisabled=this.isOpen=!1;this.itemMappedIndices=[];
this.itemMappedIndicesExclDisabled=[];this.eventHandler={docEl:{click:function(b){b.preventDefault();b.target.hasClass("dropdown__option")||e.close()}},el:{keydown:function(b){if(!e.isDisabled)switch(b.keyCode){case n.TAB:e.els.el.removeClass("selected");break;case n.ENTER:case n.SPACE:-1===e.selectedIndex&&(e.selectedIndex=0,e.selectItem(e.selectedIndex));e.keydown(b);break;case n.PAGE_UP:case n.HOME:e.selectedIndex=0;e.selectItem(e.selectedIndex,b);break;case n.PAGE_DOWN:case n.END:e.selectedIndex=
e.els.itemEls.target.length-1;e.selectItem(e.selectedIndex,b);break;case n.LEFT:case n.UP:-1!==e.selectedIndex&&e.selectNext(-1,b);break;case n.RIGHT:case n.DOWN:-1!==e.selectedIndex?e.selectNext(1,b):e.selectItem(0,b);break;default:e.selectItem(e.getSelectedItemIndex(b.keyCode),b)}}},btnEl:{click:function(b){b.preventDefault();b.stopPropagation();e.isDisabled||(e.els.el.toggleClass("selected"),e.els.el.hasClass("selected")?(e.els.docEl.off("click",e.eventHandler.docEl.click),e.els.docEl.on("click",
e.eventHandler.docEl.click),e.open()):e.close())}},selectEl:{change:function(b){e.selectedIndex=b.target.selectedIndex;e.els.btnTextEl.text(b.target.options[e.selectedIndex].text);e.select()}},itemEls:{click:function(b){b.preventDefault();b=a(b.target);b.hasClass("disabled")||(b=b.closest("li").index(),e.change(b),e.close(),e.els.btnEl.focus())}}};this.init()};g.prototype.init=function(){g.instances.has(this.els.el.target[0])||(g.instances.set(this.els.el.target[0],this),this.setElements(),this.bindEvents(),
this.update(),-1<this.selectedIndex&&this.selectItem(this.selectedIndex))};g.prototype.reInit=function(h){this.els.selectEl=this.els.el.find("select");this.els.btnEl=this.els.el.find(".dropdown__cta");this.els.listWrapEl=this.els.el.find(".dropdown__list-wrap");this.options=[].concat($jscomp.arrayFromIterable(this.els.selectEl.target[0].options));this.removeElements();this.setElements();this.bindEvents();this.update();-1<h&&this.selectItem(h)};g.prototype.removeElements=function(){this.els.btnEl.remove();
this.els.listWrapEl.remove()};g.prototype.setElements=function(){var h=this,m=this.els.selectEl.target[0],e=m.dataset.defaultMessage;e?m.selectedIndex=-1:e=m.options[m.selectedIndex].text;this.selectedIndex=m.selectedIndex;this.els.el.append('\x3ca class\x3d"dropdown__cta" title\x3d"'+m.title+'" href\x3d"#" role\x3d"combobox" aria-haspopup\x3d"listbox" aria-expanded\x3d"false"\x3e\x3cspan\x3e'+e+"\x3c/span\x3e\x3c/a\x3e");this.els.btnEl=this.els.el.find(".dropdown__cta");this.els.btnTextEl=this.els.btnEl.find("span");
this.els.el.append('\x3cdiv class\x3d"dropdown__list-wrap scrollbar"\x3e\x3c/div\x3e');this.els.listWrapEl=this.els.el.find(".dropdown__list-wrap");this.els.listWrapEl.append('\x3cul class\x3d"dropdown__option-list scrollbar__contents" role\x3d"listbox" tabindex\x3d"0"\x3e');this.els.listEl=this.els.listWrapEl.find(".dropdown__option-list");this.options.forEach(function(b){h.els.listEl.append('\x3cli class\x3d"dropdown__option"\x3e\x3ca href\x3d"#" role\x3d"option"\x3e\x3cspan\x3e'+b.text+"\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e")});
this.els.itemEls=this.els.listEl.find("li\x3ea");k.init(this.els.listWrapEl.target[0]);this.select()};g.prototype.select=function(){this.els.itemEls.removeAttr("aria-selected");this.els.itemEls.removeClass("active");var h=this.els.itemEls.eq(this.selectedIndex);h.addClass("active");h.attr("aria-selected",!0)};g.prototype.bindEvents=function(){this.els.btnEl.off("click").on("click",this.eventHandler.btnEl.click);this.els.itemEls.off("click").on("click",this.eventHandler.itemEls.click);this.els.selectEl.off("change").on("change",
this.eventHandler.selectEl.change);this.els.el.off("keydown").on("keydown",this.eventHandler.el.keydown)};g.prototype.update=function(){var h=this;this.els.el.hasClass("selected")&&(this.els.el.removeClass("selected"),this.els.btnEl.trigger("click"));(this.isDisabled=this.els.el.hasClass("disabled"))?(this.els.btnEl.attr("tabindex","-1"),this.els.btnEl.attr("aria-disabled","true")):(this.els.btnEl.removeAttr("tabindex"),this.els.btnEl.attr("aria-disabled","false"));this.els.itemEls.removeClass("disabled");
this.els.itemEls.removeAttr("tabindex");this.els.itemEls.attr("aria-disabled","false");this.itemMappedIndices=[];this.itemMappedIndicesExclDisabled=[];var m=0;this.options.forEach(function(e,b){h.itemMappedIndices.push(-1);e.disabled?(e=h.els.itemEls.eq(b),e.addClass("disabled"),e.attr("tabindex","-1"),e.attr("aria-disabled","true")):(h.itemMappedIndices[b]=m++,h.itemMappedIndicesExclDisabled.push(b))})};g.prototype.open=function(){this.els.el.css({"z-index":1});-1!==this.els.selectEl.target[0].selectedIndex&&
this.els.itemEls.eq(this.els.selectEl.target[0].selectedIndex).focus();this.els.btnEl.attr("aria-expanded",!0);this.isOpen=!0;this.resize()};g.prototype.close=function(){this.els.el.css({"z-index":""});this.els.el.removeAttr("z-index");this.els.el.removeClass("selected");this.isOpen=!1;this.els.btnEl.attr("aria-expanded",!1);this.els.docEl.off("click",this.eventHandler.docEl.click);this.els.btnEl.focus()};g.prototype.resize=function(){k.resize(this.els.listWrapEl.target[0])};g.prototype.change=function(h){var m=
this.els.selectEl.target[0];m.selectedIndex!==h&&(this.selectedIndex=m.selectedIndex=h,this.els.selectEl.trigger("change"))};g.prototype.keydown=function(h){this.els.btnEl.trigger("click");h.preventDefault()};g.prototype.selectNext=function(h,m){var e=-1===this.itemMappedIndices[this.selectedIndex]?0:this.itemMappedIndices[this.selectedIndex];e+=h;h=0>e?this.itemMappedIndicesExclDisabled[0]:e>this.itemMappedIndicesExclDisabled.length-1?this.itemMappedIndicesExclDisabled[this.itemMappedIndicesExclDisabled.length-
1]:this.itemMappedIndicesExclDisabled[e];-1!==h&&(this.els.itemEls.target[h].focus(),this.change(h));m&&m.preventDefault()};g.prototype.selectItem=function(h,m){if(!(0>h)){var e=-1;0===h?e=this.itemMappedIndicesExclDisabled[0]:h===this.itemMappedIndices.length-1?e=this.itemMappedIndicesExclDisabled[this.itemMappedIndicesExclDisabled.length-1]:-1!==this.itemMappedIndices[h]&&(e=h);-1!==e&&(this.els.itemEls.target[e].focus(),this.change(e));m&&m.preventDefault()}};g.prototype.getSelectedItemIndex=function(h){var m=
this,e=/[A-Z]/,b=h-48*Math.floor(h/48),d=String.fromCharCode(96<=h?b:h),l=!0,q=-1;h=this.selectedIndex;this.els.itemEls.target.forEach(function(r,w){var x=r.textContent.substring(0,1).toUpperCase();r=a(r).hasClass("disabled");e.test(x)&&x===d&&!r&&-1===q&&(q=w);e.test(x)&&x===d&&m.selectedIndex<w&&l&&!r&&(m.selectedIndex=w,l=!1)});h===this.selectedIndex&&-1!==q&&(this.selectedIndex=q);return this.selectedIndex};g.instances=new WeakMap;var f={initAll:function(){a(".dropdown").target.forEach(function(h){g.instances.has(h)||
new g(h)})},init:function(h){g.instances.has(h)||new g(h)},reInit:function(h,m){m=void 0===m?-1:m;g.instances.has(h)?g.instances.get(h).reInit(m):new g(h,m)}};window.sg.common.dropdown=f;a.ready(f.initAll)})();
(function(){var a=window.sg.common.$q,n=window.BezierEasing,k=window.sg.common.lazyLoad,g=function(f){this.el=f;this.init()};g.prototype.init=function(){this.scrollPos=document.body.scrollTop||document.documentElement.scrollTop;this.isAnim=!1;this.duration=600;this.easing=n(.4,0,.2,1);this.bindEvent()};g.prototype.bindEvent=function(){this.handleScroll=this.handleScroll.bind(this);window.addEventListener("scroll",this.handleScroll);this.scrollToTop=this.scrollToTop.bind(this);this.el.addEventListener("click",
this.scrollToTop)};g.prototype.handleScroll=function(){var f=document.body.scrollTop||document.documentElement.scrollTop;0<=f&&f!==this.scrollPos&&(0===f||f>this.scrollPos||this.isAnim?this.el.classList.remove("show"):this.el.classList.add("show"),this.scrollPos=f)};g.prototype.scrollToTop=function(){var f=document.body.scrollTop||document.documentElement.scrollTop,h=function(m){window.scrollTo(0,f-f*m);1===m&&k.setDisabled(!1)};this.isAnim||(k.setDisabled(),this.animate(h))};g.prototype.animate=
function(f){var h=this,m=Date.now();this.isAnim=!0;var e=function(){var b=(Date.now()-m)/h.duration;1<b?(f(1),h.isAnim=!1):(requestAnimationFrame(e),f(h.easing(b)))};requestAnimationFrame(e)};g.instance=null;a.ready(function(){var f=document.querySelector(".fab");f&&!g.instance&&(g.instance=new g(f))})})();
(function(){var a=window.sg.common.$q,n=function(g){this.els={el:g,inputEl:g.querySelector("input, textArea"),clearButtonEl:g.querySelector(".icon"),assistiveMsgEl:g.querySelector(".assistive-message"),errorMsgEl:g.querySelector(".error-message"),successMsgEl:g.querySelector(".success-message")};this.init()};n.prototype.init=function(){n.instances.has(this.els.el)||(n.instances.set(this.els.el,this),this.bindEvents())};n.prototype.setAssistiveMessage=function(g){this.els.assistiveMsgEl.innerText=
g};n.prototype.setErrorMessage=function(g){this.els.errorMsgEl.innerText=g};n.prototype.setSuccessMessage=function(g){this.els.errorMsgEl.innerText=g};n.prototype.setValue=function(g){this.els.inputEl.value=g;this.els.inputEl!==document.activeElement&&(""!==g.replace(/^\s+$/,"")?this.els.el.classList.add("text-field--active"):this.els.el.classList.remove("text-field--active"))};n.prototype.focusIn=function(){this.els.el.classList.add("text-field--focus")};n.prototype.focusOut=function(g){this.els.el.classList.remove("text-field--focus");
""!==g.target.value.replace(/^\s+$/,"")?this.els.el.classList.add("text-field--active"):this.els.el.classList.remove("text-field--active")};n.prototype.bindEvents=function(){var g=this;this.focusIn=this.focusIn.bind(this);this.focusOut=this.focusOut.bind(this);this.els.inputEl.addEventListener("focus",this.focusIn);this.els.inputEl.addEventListener("blur",this.focusOut);this.els.clearButtonEl&&this.els.clearButtonEl.addEventListener("click",function(){g.els.inputEl.value="";g.els.el.classList.remove("text-field--active")})};
n.instances=new WeakMap;var k={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".text-field"))).forEach(function(g){n.instances.has(g)||new n(g)})},init:function(g){return n.instances.has(g)?n.instances.get(g):new n(g)},setAssistiveMessage:function(g,f){n.instances.has(g)&&n.instances.get(g).setAssistiveMessage(f)},setErrorMessage:function(g,f){n.instances.has(g)&&n.instances.get(g).setErrorMessage(f)},setSuccessMessage:function(g,f){n.instances.has(g)&&n.instances.get(g).setSuccessMessage(f)},
setValue:function(g,f){n.instances.has(g)&&n.instances.get(g).setValue(f)}};window.sg.common.textField=k;a.ready(function(){return k.initAll()})})();
(function(){var a=window.sg.common.$q,n=window.sg.common.utils.getCurrentDevice,k=function(f){this.els={el:f,inputWrapEl:null,hintTextEl:null,inputWrapOutlineEl:null,inputEl:null,textAreaEl:null,voiceInputBtnEl:null,deleteBtnEl:null,errorIconEl:null,openDownBtnEl:null,iconEls:[],textLengthEl:null,assistiveMsgEl:null,errorMsgEl:null,successMsgEl:null};this.isCheckTextLength=this.isMultiLineHint=this.isMultiLine=this.isNoTitle=this.disabled=!1;this.maxLength=0;this.device=n();this.init()};k.prototype.init=
function(){k.instances.has(this.els.el)||(k.instances.set(this.els.el,this),this.setElements(),this.bindEvents())};k.prototype.reInit=function(){this.unBindEvents();this.setElements();this.bindEvents()};k.prototype.destroy=function(){this.unBindEvents();k.instances.has(this.els.el)&&k.instances.delete(this.els.el);this.els=null};k.prototype.setElements=function(){this.els.inputEl=this.els.el.querySelector(".text-field-v2__input");this.els.textAreaEl=this.els.el.querySelector(".text-field-v2__input-multi-line");
this.els.voiceInputBtnEl=this.els.el.querySelector(".text-field-v2__input-icon.voice-input");this.els.voiceInputBtnEl&&this.els.iconEls.push(this.els.voiceInputBtnEl);this.els.deleteBtnEl=this.els.el.querySelector(".text-field-v2__input-icon.delete");this.els.deleteBtnEl&&this.els.iconEls.push(this.els.deleteBtnEl);this.els.errorIconEl=this.els.el.querySelector(".text-field-v2__input-icon.error");this.els.errorIconEl&&this.els.iconEls.push(this.els.errorIconEl);this.els.openDownBtnEl=this.els.el.querySelector(".text-field-v2__input-icon.open-down");
this.els.openDownBtnEl&&this.els.iconEls.push(this.els.openDownBtnEl);this.els.assistiveMsgEl=this.els.el.querySelector(".text-field-v2__text.assistive");this.els.errorMsgEl=this.els.el.querySelector(".text-field-v2__text.error");this.els.successMsgEl=this.els.el.querySelector(".text-field-v2__text.success");this.disabled=this.els.el.classList.contains("disabled");!this.els.inputEl&&this.els.textAreaEl&&(this.els.el.classList.add("multi-line"),this.isMultiLine=!0);!this.els.iconEls.length&&this.els.inputEl&&
this.els.el.classList.add("no-icon");this.isNoTitle=this.els.el.classList.contains("no-title");if(this.isMultiLineHint=this.els.el.hasAttribute("data-multi-line-hint"))this.els.inputWrapEl=this.els.el.querySelector(".text-field-v2__input-wrap"),this.els.hintTextEl=this.els.el.querySelector(".text-field-v2__hint"),this.isMultiLine&&(this.els.inputWrapOutlineEl=this.els.el.querySelector(".text-field-v2__input-wrap__outline")),this.setMultiLineHint();if(this.isCheckTextLength=this.isMultiLine&&this.els.el.hasAttribute("data-text-length"))this.els.textLengthEl=
this.els.el.querySelector(".text-field-v2__text.text-length"),this.maxLength=this.els.textAreaEl.getAttribute("maxLength"),this.setTextLength(this.els.textAreaEl.value);this.checkActive();this.els.el.classList.contains("error")?this.setState("error"):this.els.el.classList.contains("success")?this.setState("success"):this.setState("normal")};k.prototype.setAccessibility=function(f){switch(f){case "error":if(this.els.errorMsgEl)var h=this.els.errorMsgEl.id;break;case "success":this.els.successMsgEl&&
(h=this.els.successMsgEl.id);break;default:this.els.assistiveMsgEl&&(h=this.els.assistiveMsgEl.id)}this.els.textLengthEl&&(h=h?h+" "+this.els.textLengthEl.id:this.els.textLengthEl.id);this.els.inputEl&&(h?this.els.inputEl.setAttribute("aria-describedby",h):this.els.inputEl.removeAttribute("aria-describedby"));this.els.textAreaEl&&(h?this.els.textAreaEl.setAttribute("aria-describedby",h):this.els.textAreaEl.removeAttribute("aria-describedby"))};k.prototype.handleFocus=function(){this.els.el.classList.add("active");
this.els.el.classList.add("focus")};k.prototype.handleBlur=function(){this.els.el.classList.remove("focus");this.checkActive()};k.prototype.handleInput=function(f){""!==f.target.value.replace(/^\s+$/,"")?this.els.deleteBtnEl&&this.els.el.classList.add("delete"):(this.els.el.classList.remove("delete"),this.setState("normal"));this.setTextLength(f.target.value)};k.prototype.handleDeleteBtnClick=function(){this.els.inputEl.value="";this.els.el.classList.remove("delete");this.setState("normal");this.els.inputEl.focus()};
k.prototype.handleDeleteBtnKeypress=function(f){13===f.keyCode&&f.stopPropagation()};k.prototype.checkActive=function(){var f="";this.els.inputEl&&(f=this.els.inputEl.value);this.els.textAreaEl&&(f=this.els.textAreaEl.value);""!==f.replace(/^\s+$/,"")?this.els.el.classList.add("active"):this.els.el.classList.remove("active")};k.prototype.setTextLength=function(f){this.isCheckTextLength&&(this.els.textLengthEl.textContent=f.length+"/"+this.maxLength)};k.prototype.bindEvents=function(){this.handleFocus=
this.handleFocus.bind(this);this.handleBlur=this.handleBlur.bind(this);this.handleInput=this.handleInput.bind(this);this.els.inputEl&&(this.els.inputEl.addEventListener("focus",this.handleFocus),this.els.inputEl.addEventListener("blur",this.handleBlur),this.els.inputEl.addEventListener("input",this.handleInput));this.els.textAreaEl&&(this.els.textAreaEl.addEventListener("focus",this.handleFocus),this.els.textAreaEl.addEventListener("blur",this.handleBlur),this.els.textAreaEl.addEventListener("input",
this.handleInput));this.els.deleteBtnEl&&(this.handleDeleteBtnClick=this.handleDeleteBtnClick.bind(this),this.handleDeleteBtnKeypress=this.handleDeleteBtnKeypress.bind(this),this.els.deleteBtnEl.addEventListener("click",this.handleDeleteBtnClick),this.els.deleteBtnEl.addEventListener("keypress",this.handleDeleteBtnKeypress));this.isMultiLineHint&&(this.resize=this.resize.bind(this),window.addEventListener("resize",this.resize))};k.prototype.unBindEvents=function(){this.els.inputEl&&(this.els.inputEl.removeEventListener("focus",
this.handleFocus),this.els.inputEl.removeEventListener("blur",this.handleBlur),this.els.inputEl.removeEventListener("input",this.handleInput));this.els.textAreaEl&&(this.els.textAreaEl.removeEventListener("input",this.handleInput),this.els.textAreaEl.removeEventListener("blur",this.handleBlur),this.els.textAreaEl.removeEventListener("input",this.handleInput));this.els.deleteBtnEl&&(this.els.deleteBtnEl.removeEventListener("click",this.handleDeleteBtnClick),this.els.deleteBtnEl.removeEventListener("keypress",
this.handleDeleteBtnKeypress));this.isMultiLineHint&&window.removeEventListener("resize",this.resize)};k.prototype.setDisabled=function(f){(this.disabled=void 0===f?!0:f)?(this.els.el.classList.add("disabled"),[].concat($jscomp.arrayFromIterable(this.els.iconEls)).forEach(function(h){h&&"BUTTON"===h.tagName.toUpperCase()&&(h.disabled=!0)})):(this.els.el.classList.remove("disabled"),[].concat($jscomp.arrayFromIterable(this.els.iconEls)).forEach(function(h){h&&"BUTTON"===h.tagName.toUpperCase()&&(h.disabled=
!1)}))};k.prototype.setState=function(f){switch(f){case "error":this.els.errorIconEl&&this.els.el.classList.remove("delete");this.els.el.classList.remove("success");this.els.el.classList.add("error");break;case "success":this.els.el.classList.remove("delete");this.els.el.classList.remove("error");this.els.el.classList.add("success");break;default:this.els.el.classList.remove("success"),this.els.el.classList.remove("error")}this.setAccessibility(f)};k.prototype.setMsg=function(f,h){switch(f){case "error":this.els.errorMsgEl&&
(this.els.errorMsgEl.innerText=h);break;case "success":this.els.successMsgEl&&(this.els.successMsgEl.innerText=h);break;default:this.els.assistiveMsgEl&&(this.els.assistiveMsgEl.innerText=h)}};k.prototype.setMultiLineHint=function(){var f=this;if("mobile"===this.device){var h=function(e){return(100*e/360).toFixed(2)+"vw"};requestAnimationFrame(function(){if(f.isMultiLine){if(!f.isNoTitle){f.els.el.querySelector(".text-field-v2__fake-label.title")||f.els.el.insertAdjacentHTML("afterbegin",'\x3cp class\x3d"text-field-v2__fake-label title" aria-hidden\x3d"true"\x3e'+
f.els.hintTextEl.textContent+"\x3c/p\x3e");var e=360*f.els.el.querySelector(".text-field-v2__fake-label.title").getBoundingClientRect().height/window.innerWidth+10;f.els.hintTextEl.style.transform="translate("+h(14)+", "+h(e)+")"}}else{f.isNoTitle||(f.els.el.querySelector(".text-field-v2__fake-label.title")||f.els.el.insertAdjacentHTML("afterbegin",'\x3cp class\x3d"text-field-v2__fake-label title" aria-hidden\x3d"true"\x3e'+f.els.hintTextEl.textContent+"\x3c/p\x3e"),e=360*f.els.el.querySelector(".text-field-v2__fake-label.title").getBoundingClientRect().height/
window.innerWidth,f.els.hintTextEl.style.transform="translate(0, "+h(e)+")");f.els.inputWrapEl.querySelector(".text-field-v2__fake-label.input")||f.els.inputWrapEl.insertAdjacentHTML("afterbegin",'\x3cp class\x3d"text-field-v2__fake-label input" aria-hidden\x3d"true"\x3e'+f.els.hintTextEl.textContent+"\x3c/p\x3e");var b=f.els.el.querySelector(".text-field-v2__fake-label.input").getBoundingClientRect().height;f.els.inputEl.style.height=h(360*b/window.innerWidth);f.els.iconEls.forEach(function(d){d.style.bottom=
h(360*b/window.innerWidth/2-6)})}})}else{var m=this.els.el.querySelector(".text-field-v2__fake-label.title");m&&m.remove();(m=this.els.el.querySelector(".text-field-v2__fake-label.input"))&&m.remove();this.els.hintTextEl.style="";this.els.inputEl&&(this.els.inputEl.style="");this.els.iconEls.forEach(function(e){e.style=""})}};k.prototype.resize=function(){var f=n();this.device!==f&&(this.device=f,this.setMultiLineHint())};k.prototype.setValue=function(f){if(this.els.inputEl)var h=this.els.inputEl;
this.els.textAreaEl&&(h=this.els.textAreaEl);h.value=void 0===f?"":f;""!==h.value.replace(/^\s+$/,"")?(this.els.el.classList.add("active"),this.els.deleteBtnEl&&this.els.el.classList.add("delete")):(document.activeElement!==h&&this.els.el.classList.remove("active"),this.els.el.classList.remove("delete"),this.setState("normal"));this.setTextLength(h.value)};k.prototype.getValue=function(){if(this.els.inputEl)return this.els.inputEl.value;if(this.els.textAreaEl)return this.els.textAreaEl.value};k.instances=
new WeakMap;window.sg.components.registerClass("textFieldv2",k);var g={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.text-field-v2:not([data-auto-init\x3d"false"])'))).forEach(function(f){k.instances.has(f)||new k(f)})},init:function(f){k.instances.has(f)||new k(f)},reInit:function(f){k.instances.has(f)?k.instances.get(f).reInit():new k(f)},destroy:function(f){k.instances.has(f)&&k.instances.get(f).destroy()},setDisabled:function(f,h){h=void 0===h?!0:h;k.instances.has(f)&&
k.instances.get(f).setDisabled(h)},setState:function(f,h){k.instances.has(f)&&k.instances.get(f).setState(h)},setMsg:function(f,h,m){k.instances.has(f)&&k.instances.get(f).setMsg(h,m)}};window.sg.common.textFieldv2=g;a.ready(g.initAll)})();
(function(){var a=window.sg.common.$q,n=function(g){this.els={el:a(g),buttonEl:null};this.on=!1;this.init()};n.prototype.init=function(){n.instances.has(this.els.el.target[0])||(n.instances.set(this.els.el.target[0],this),this.setElements(),this.bindEvents())};n.prototype.reInit=function(){this.setElements();this.bindEvents()};n.prototype.setElements=function(){this.els.buttonEl=this.els.el.find(".switch-v2__button");this.els.textEl=this.els.el.find(".switch-v2__button-text");this.on=this.els.buttonEl.hasClass("on");
this.els.el.addClass("initialized")};n.prototype.bindEvents=function(){var g=this;this.els.buttonEl.off("click").on("click",function(){g.els.el.removeClass("initialized");g.els.buttonEl.hasClass("on")?(g.els.buttonEl.removeClass("on"),g.on=!1,g.els.buttonEl.attr("aria-pressed",!1)):(g.els.buttonEl.addClass("on"),g.on=!0,g.els.buttonEl.attr("aria-pressed",!0))})};n.instances=new WeakMap;var k={initAll:function(){a(".switch-v2").target.forEach(function(g){n.instances.has(g)||new n(g)})},reInit:function(g){n.instances.has(g)?
n.instances.get(g).reInit():new n(g)}};window.sg.common.switchv2=k;a.ready(k.initAll())})();
(function(){var a=window.sg.common.$q,n=window.sg.common.utils,k=n.getCurrentDevice,g=n.extend,f=n.closest,h=n.addEventListener,m=n.removeAllEventListeners,e=n.triggerEvent,b=n.isRtl,d=n.getNormalizedScrollLeft,l=n.setNormalizedScrollLeft,q=window.BezierEasing,r=function(w){this.els={el:w,wrap:null,controlEl:null,controlHiddenEl:null,indicatorListWrapEl:null,indicatorListEl:null,indicatorEls:[],indicatorDotEls:[],indicatorLineEls:[],indicatorPageEls:[],videoWrapEls:[],videoEls:[]};this.defaultOption=
{type:"label-indicator",play:!1,control:!1,autoRolling:!1,infiniteRolling:!1,indicators:[]};this.dotSizeSmall=.5;this.dotSizeMedium=.75;this.dotSizeLarge=1;this.transitionDuration=400;this.transitionTimer=null;this.init()};r.prototype.init=function(){this.initValues();this.setElements();this.bindEvents();this.option.control||this.option.play||this.select(0);r.instances.has(this.els.el)||r.instances.set(this.els.el,this)};r.prototype.reInit=function(){this.select(-1);this.unBindEvents();this.initValues();
this.setElements();this.bindEvents();clearTimeout(this.transitionTimer);this.option.control||this.option.play||this.select(0)};r.prototype.destroy=function(){this.select(-1);this.unBindEvents();r.instances.has(this.els.el)&&r.instances.delete(this.els.el);this.els=null};r.prototype.initValues=function(){this.option={};this.playing=!1;this.selectedIndex=-1;this.elapseTime=0;this.device=k();this.type="";this.firstIndex=this.translateX=0;this.lastIndex=6;this.maxDotNum=7;this.inTransition=!1;this.control=
"stop";this.role="";this.animReqId&&(cancelAnimationFrame(this.animReqId),this.animReqId=null);this.videosLoaded=[];this.isRtl=b();if(this.isDotSrollable=!!this.els.el.hasAttribute("data-dot-scrollable"))this.isAnim=!1,this.duration=200,this.easing=q(.4,0,.2,1)};r.prototype.setElements=function(){var w=this,x=f(this.els.el,".indicator-container");x?(this.els.wrap=x,[].concat($jscomp.arrayFromIterable(this.els.wrap.querySelectorAll(".indicator-page"))).forEach(function(E){E.classList.contains("swiper-slide-duplicate")||
w.els.indicatorPageEls.push(E)})):this.els.wrap=null;this.els.controlEl=this.els.el.querySelector(".indicator__controls");this.els.controlHiddenEl=this.els.el.querySelector(".indicator__controls \x3e .hidden");this.els.indicatorEls=this.els.el.querySelectorAll(".indicator__item");this.els.indicatorListWrapEl=this.els.el.querySelector(".indicator__list-wrap");this.els.indicatorListEl=this.els.el.querySelector(".indicator__list");this.els.indicatorDotEls=this.els.el.querySelectorAll(".indicator__dot-inner");
this.els.indicatorLineEls=this.els.el.querySelectorAll(".indicator__label-line-filled");var C=JSON.parse(JSON.stringify(this.defaultOption));this.role=this.els.indicatorListEl.getAttribute("role");[].concat($jscomp.arrayFromIterable(this.els.indicatorEls)).forEach(function(E){"tablist"===w.role&&E.setAttribute("aria-selected","false");C.indicators.push(parseInt(E.dataset.indicatorDelay))});x=JSON.parse(this.els.el.dataset.indicatorData);this.option=g(C,x);this.els.controlEl&&(this.option.control=
!0);this.option.autoRolling&&(this.option.play=!1);this.setType();this.setDots()};r.prototype.setType=function(){if("desktop"===k())switch(this.option.type){case "dot-indicator":this.els.el.classList.remove("label-indicator");this.els.el.classList.add("dot-indicator");this.type="dot-indicator";break;case "dot-indicator-mobile-only":this.els.el.classList.remove("label-indicator");this.els.el.classList.add("dot-indicator");this.els.el.classList.add("dot-indicator-mobile-only");this.type="dot-indicator";
break;case "progress-indicator":break;default:this.els.el.classList.remove("dot-indicator"),this.els.el.classList.remove("dot-indicator-mobile-only"),this.els.el.classList.add("label-indicator"),this.type="label-indicator"}else"dot-indicator-mobile-only"===this.option.type&&this.els.el.classList.add("dot-indicator-mobile-only"),this.els.el.classList.remove("label-indicator"),this.els.el.classList.add("dot-indicator"),this.type="dot-indicator";"dot-indicator"===this.type&&this.option.indicators.length>
this.maxDotNum&&this.els.indicatorListWrapEl.classList.add("dot-more")};r.prototype.bindEvents=function(){var w=this;[].concat($jscomp.arrayFromIterable(this.els.indicatorEls)).forEach(function(x,C){h(x,"click",function(){return w.select(C)});h(x,"mouseenter",function(){return w.handleMouseEnter(C)});h(x,"mouseleave",function(){return w.handleMouseLeave(C)});h(x,"focusin",function(){w.handleMouseEnter(C);w.isDotSrollable||w.setDotsFocused(C)});h(x,"focusout",function(){w.handleMouseLeave(C)})});this.option.control&&
h(this.els.controlEl,"click",function(){w.handleControl()});this.resize=this.resize.bind(this);window.addEventListener("resize",this.resize)};r.prototype.unBindEvents=function(){[].concat($jscomp.arrayFromIterable(this.els.indicatorEls)).forEach(function(w){m(w,"click");m(w,"mouseenter");m(w,"mouseleave");m(w,"focusin");m(w,"focusout")});this.option.control&&m(this.els.controlEl,"click");window.removeEventListener("resize",this.resize)};r.prototype.resize=function(){var w=k();this.device!==w&&(this.device=
w,this.setType(),"label-indicator"===this.type&&(this.els.indicatorListEl.style.transform="",[].concat($jscomp.arrayFromIterable(this.els.indicatorEls)).forEach(function(x){x.removeAttribute("tabindex");x.removeAttribute("aria-hidden");x.style.visibility=""})),this.select(this.selectedIndex,!0));this.setDots()};r.prototype.handleMouseEnter=function(w){w=this.els.indicatorEls[w];w.classList.add("indicator__item--hover");w.classList.remove("indicator__item--not-hover")};r.prototype.handleMouseLeave=
function(w){w=this.els.indicatorEls[w];var x=w.matches?w.matches(":hover"):w.msMatchesSelector(":hover"),C=w.matches?w.matches(":focus"):w.msMatchesSelector(":focus");x||C||(w.classList.remove("indicator__item--hover"),w.classList.add("indicator__item--not-hover"))};r.prototype.handleControl=function(w){if((w=void 0===w?null:w)?!this.playing&&"play"===w:!this.playing)this.control="play",-1<this.selectedIndex?this.play():this.select(0);else if(w?this.playing&&"pause"===w:this.playing)this.control=
"stop",this.pause();this.option.control&&(this.setControlTagging(),w||e(this.els.el,"controlChange",{index:this.selectedIndex,playing:this.playing}))};r.prototype.setControlTagging=function(){var w="play"===this.control?"stop":"play",x=this.els.controlEl.getAttribute("an-la");x&&(x=""+x.substring(0,x.length-4)+w,this.els.controlEl.setAttribute("an-la",x))};r.prototype.select=function(w,x,C){var E=this;C=void 0===C?!1:C;if(this.els.indicatorEls.length){var z=this.selectedIndex;if(z!==w||(void 0===
x?0:x))if(this.animReqId&&(cancelAnimationFrame(this.animReqId),this.animReqId=null),-1<z&&(this.els.indicatorEls[z].classList.contains("indicator__item--active")&&this.els.indicatorEls[z].classList.remove("indicator__item--active"),"tablist"===this.role?this.els.indicatorEls[z].setAttribute("aria-selected","false"):this.els.indicatorEls[z].removeAttribute("title"),"label-indicator"===this.type&&this.els.indicatorLineEls[z]&&(this.els.indicatorLineEls[z].style.transform="")),0>w)this.option.control&&
this.pause(),this.selectedIndex=w;else{this.selectedIndex=w;this.els.indicatorEls[this.selectedIndex].classList.contains("indicator__item--active")||this.els.indicatorEls[this.selectedIndex].classList.add("indicator__item--active");"tablist"===this.role?this.els.indicatorEls[this.selectedIndex].setAttribute("aria-selected","true"):this.els.indicatorEls[this.selectedIndex].setAttribute("title","selected");C&&e(this.els.el,"indicatorReiterate");e(this.els.el,"indicatorMove",this.selectedIndex);this.inTransition=
!0;var T=function(ba){ba=void 0===ba?E.transitionDuration:ba;E.transitionTimer=setTimeout(function(){E.elapseTime=0;E.inTransition=!1;E.selectedIndex===w&&("play"===E.control||!E.option.autoRolling&&E.option.play)&&E.play()},0<ba?ba:0)},ca=0,oa=function(ba){var xa=E.els.videoEls[E.selectedIndex]?E.els.videoEls[E.selectedIndex]:E.els.videoEls[E.selectedIndex]=ba.querySelector(".indicator-background video");if(xa)if(4>xa.readyState&&!E.videosLoaded[E.selectedIndex]){var ya=Date.now(),ma=function(){xa.removeEventListener("canplaythrough",
ma);xa.currentTime=0;E.option.indicators[E.selectedIndex]===parseInt(E.els.indicatorEls[E.selectedIndex].dataset.indicatorDelay)&&(E.option.indicators[E.selectedIndex]=1E3*xa.duration);E.videosLoaded[E.selectedIndex]=!0;T(E.transitionDuration-(Date.now()-ya+200*ca))};xa.addEventListener("canplaythrough",ma)}else xa.currentTime=0,E.option.indicators[E.selectedIndex]===parseInt(E.els.indicatorEls[E.selectedIndex].dataset.indicatorDelay)&&(E.option.indicators[E.selectedIndex]=1E3*xa.duration),E.videosLoaded[E.selectedIndex]=
!0,T();else 5>ca&&setTimeout(function(){oa(ba);ca++},200)};this.els.indicatorPageEls[this.selectedIndex]?(x=this.els.videoWrapEls[this.selectedIndex]?this.els.videoWrapEls[this.selectedIndex]:this.els.videoWrapEls[this.selectedIndex]=this.els.indicatorPageEls[this.selectedIndex].querySelector(".indicator-background .video"))?"TRUE"===x.dataset.videoEmbed.toUpperCase()&&"FALSE"===x.dataset.imageDefault.toUpperCase()?oa(x):T():T():T();-1<z&&this.els.videoEls[z]&&this.els.videoEls[z].pause();this.setDots()}}};
r.prototype.moveDots=function(){var w=this;if("dot-indicator"===this.type&&this.option.indicators.length>this.maxDotNum){var x=this.els.indicatorEls[0].getBoundingClientRect().width+parseFloat(this.isRtl?getComputedStyle(this.els.indicatorEls[0]).marginLeft:getComputedStyle(this.els.indicatorEls[0]).marginRight),C=this.firstIndex*x;if(this.isDotSrollable){var E=d(this.els.indicatorListEl);x=this.els.indicatorListEl.scrollWidth-Math.floor(this.els.indicatorListEl.getBoundingClientRect().width);C>x&&
(C=x);C=this.isRtl?x-C-E:C-E;x=function(){if(!w.isAnim){var z=Date.now();w.isAnim=!0;var T=function(){var ca=(Date.now()-z)/w.duration;1<ca?(l(w.els.indicatorListEl,E+1*C),w.isAnim=!1):(requestAnimationFrame(T),l(w.els.indicatorListEl,E+C*w.easing(ca)))};requestAnimationFrame(T)}};0<Math.abs(C)&&x()}else C=this.isRtl?C:-C,this.els.indicatorListEl.style.transform="translate3d("+C+"px,0,0)"}};r.prototype.setDotsFocused=function(w){"dot-indicator"===this.type&&this.option.indicators.length>this.maxDotNum&&
(w>this.lastIndex?(this.firstIndex=w-6,this.lastIndex=w,this.moveDots()):w<this.firstIndex&&(this.firstIndex=w,this.lastIndex=w+6,this.moveDots()))};r.prototype.setDots=function(){if("dot-indicator"===this.type&&this.option.indicators.length>this.maxDotNum){var w=0>this.selectedIndex?0:this.selectedIndex;w>this.lastIndex?(this.firstIndex=w-6,this.lastIndex=w):w<this.firstIndex&&(this.firstIndex=w,this.lastIndex=w+6);if(w>this.lastIndex-2){var x=2-(this.lastIndex-w),C=this.option.indicators.length-
this.lastIndex-1;this.firstIndex+=C>=x?x:C;this.lastIndex+=C>=x?x:C}else w<this.firstIndex+2&&(x=2-(w-this.firstIndex),C=this.firstIndex,this.firstIndex-=C>=x?x:C,this.lastIndex-=C>=x?x:C);this.moveDots();for(x=0;x<this.els.indicatorEls.length;x++)if(x<this.firstIndex||x>this.lastIndex)this.els.indicatorDotEls[x].style.transform="scale("+this.dotSizeSmall+")";this.els.indicatorDotEls[w].style.transform="scale("+this.dotSizeLarge+")";if(w>this.lastIndex-3){for(x=this.firstIndex+2;x<w;x++)this.els.indicatorDotEls[x].style.transform=
"scale("+this.dotSizeLarge+")";1<this.firstIndex?(this.els.indicatorDotEls[this.firstIndex].style.transform="scale("+this.dotSizeSmall+")",this.els.indicatorDotEls[this.firstIndex+1].style.transform="scale("+this.dotSizeMedium+")"):0<this.firstIndex&&(this.els.indicatorDotEls[this.firstIndex].style.transform="scale("+this.dotSizeMedium+")");this.els.indicatorDotEls[w+1]&&(x=parseFloat(this.els.indicatorDotEls[w+1].style.transform.replace(/[^\d.]/g,"")),this.dotSizeMedium>=x&&(this.els.indicatorDotEls[w+
1].style.transform="scale("+this.dotSizeMedium+")"));this.els.indicatorDotEls[w+2]&&(x=parseFloat(this.els.indicatorDotEls[w+2].style.transform.replace(/[^\d.]/g,"")),this.dotSizeSmall>=x&&(this.els.indicatorDotEls[w+2].style.transform="scale("+this.dotSizeSmall+")"))}if(w<this.firstIndex+3){for(x=w+1;x<this.lastIndex-1;x++)this.els.indicatorDotEls[x].style.transform="scale("+this.dotSizeLarge+")";this.lastIndex<this.option.indicators.length-2?(this.els.indicatorDotEls[this.lastIndex].style.transform=
"scale("+this.dotSizeSmall+")",this.els.indicatorDotEls[this.lastIndex-1].style.transform="scale("+this.dotSizeMedium+")"):this.lastIndex<this.option.indicators.length-1&&(this.els.indicatorDotEls[this.lastIndex].style.transform="scale("+this.dotSizeMedium+")");this.els.indicatorDotEls[w-1]&&(x=parseFloat(this.els.indicatorDotEls[w-1].style.transform.replace(/[^\d.]/g,"")),this.dotSizeMedium>=x&&(this.els.indicatorDotEls[w-1].style.transform="scale("+this.dotSizeMedium+")"));this.els.indicatorDotEls[w-
2]&&(x=parseFloat(this.els.indicatorDotEls[w-2].style.transform.replace(/[^\d.]/g,"")),this.dotSizeSmall>=x&&(this.els.indicatorDotEls[w-2].style.transform="scale("+this.dotSizeSmall+")"))}}};r.prototype.setIndicatorDelay=function(w,x){this.option.indicators[w]=x};r.prototype.play=function(){var w=this;this.inTransition||(this.option.control&&(this.els.controlEl.classList.remove("indicator__controls--play"),this.els.controlHiddenEl.innerHTML="stop",this.control="play",this.setControlTagging()),this.playing=
!0,this.els.videoEls[this.selectedIndex]&&!this.els.videoEls[this.selectedIndex].ended&&this.els.videoEls[this.selectedIndex].play(),this.delay=this.option.indicators[this.selectedIndex]-this.elapseTime,0<this.delay&&(this.start=Date.now(),this.animReqId=requestAnimationFrame(function(){return w.updateProgress(w.selectedIndex)})))};r.prototype.pause=function(){this.option.control&&(this.els.controlEl.classList.add("indicator__controls--play"),this.els.controlHiddenEl.innerHTML="play",this.control=
"stop",this.setControlTagging());this.playing=!1;this.els.videoEls[this.selectedIndex]&&this.els.videoEls[this.selectedIndex].pause();this.animReqId&&(this.elapseTime+=Date.now()-this.start,cancelAnimationFrame(this.animReqId),this.animReqId=null)};r.prototype.updateProgress=function(w){var x=this;if(this.selectedIndex===w){var C=Date.now()-this.start;C>=this.delay?(e(this.els.el,"indicatorDelayEnd",{index:this.selectedIndex}),this.option.autoRolling&&(w===this.option.indicators.length-1?this.option.infiniteRolling?
this.select(0,!1,!0):this.select(-1):this.select(w+1))):("label-indicator"===this.type&&(C=(this.elapseTime+C)/this.option.indicators[w],1<C&&(C=100),this.els.indicatorLineEls[w].style.transform="scaleX("+C+")"),this.animReqId=requestAnimationFrame(function(){return x.updateProgress(w)}))}};r.instances=new WeakMap;window.sg.components.registerClass&&window.sg.components.registerClass("indicator",r);n={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.indicator:not([data-auto-init\x3d"false"])'))).forEach(function(w){r.instances.has(w)||
new r(w)})},init:function(w){return r.instances.has(w)?r.instances.get(w):new r(w)},reInit:function(w){r.instances.has(w)?r.instances.get(w).reInit():new r(w)},move:function(w,x,C){C=void 0===C?!1:C;r.instances.has(w)&&r.instances.get(w).select(x,C)},play:function(w){r.instances.has(w)&&r.instances.get(w).handleControl("play")},pause:function(w){r.instances.has(w)&&r.instances.get(w).handleControl("pause")},setIndicatorDelay:function(w,x,C){r.instances.has(w)&&r.instances.get(w).setIndicatorDelay(x,
C)}};window.sg.common.indicator=n;a.ready(n.initAll)})();
(function(){var a=window.sg.common.$q,n=function(g){this.els={el:g,mobileSourceEl:g.querySelector("source:nth-of-type(1)"),desktopSourceEl:g.querySelector("source:nth-of-type(2)"),desktopOverSourceEl:g.querySelector("source:nth-of-type(3)"),imgEl:g.querySelector("img")};this.currentPlayingVideoEl={};this.focusTargetEl={};this.init()};n.prototype.init=function(){var g=this;n.instances.get(this.els.el)||(n.instances.set(this.els.el,this),"Netscape"===navigator.appName&&-1!==navigator.userAgent.search("Trident")||
-1!==navigator.userAgent.indexOf("msie")?(this.setFirstImage(),window.addEventListener("resize",function(){g.setFirstImage()})):this.els.imgEl.dataset.desktopAlt&&(this.setResponsiveAlt(),window.addEventListener("resize",function(){g.setResponsiveAlt()})))};n.prototype.setFirstImage=function(){var g=this.getTargetDevice();if(this.els.imgEl.dataset.targetDevice!==g){var f="";"mobile"===g?(f=this.els.mobileSourceEl.getAttribute("srcset").split(","),f=1.5>window.devicePixelRatio||1===f.length?f[0]:f[1]):
"desktop"===g?(f=this.els.desktopSourceEl.getAttribute("srcset").split(","),f=1.5>window.devicePixelRatio||1===f.length?f[0]:f[1]):"desktop-over"===g&&(f=this.els.desktopOverSourceEl.getAttribute("srcset").split(","),f=1.5>window.devicePixelRatio||1===f.length?f[0]:f[1]);f=f.trim().split(" ")[0];f!==this.els.imgEl.src&&(this.els.imgEl.src=f);this.els.imgEl.dataset.desktopAlt&&("mobile"===g?this.els.imgEl.setAttribute("alt",this.els.imgEl.dataset.mobileAlt):this.els.imgEl.setAttribute("alt",this.els.imgEl.dataset.desktopAlt));
this.els.imgEl.dataset.targetDevice=g}};n.prototype.setResponsiveAlt=function(){var g=this.getTargetDevice();this.els.imgEl.dataset.targetDevice!==g&&("mobile"===g?this.els.imgEl.setAttribute("alt",this.els.imgEl.dataset.mobileAlt):this.els.imgEl.setAttribute("alt",this.els.imgEl.dataset.desktopAlt),this.els.imgEl.dataset.targetDevice=g)};n.prototype.getTargetDevice=function(){var g=window,f="inner";"innerWidth"in window||(f="client",g=document.documentElement||document.body);g=g[f+"Width"];return 768>
g?"mobile":768<=g&&1366>g?"desktop":"desktop-over"};n.instances=new WeakMap;var k={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".first-image"))).forEach(function(g){n.instances.has(g)||new n(g)})}};window.sg.common.firstImage=k;a.ready(k.initAll)})();
(function(){var a=window.sg.common.$q,n=window.sg.common.constants.KEY_CODE,k=window.sg.common.scrollbar,g=window.sg.common.utils.getCurrentDevice,f=window.sg.common.utils.getMobileOS,h=window.sg.common.utils.detectTransitionEndEvent,m=window.sg.common.utils.closest,e=window.sg.common.utils.isVisible,b=window.sg.common.icon,d=function(q,r){var w=this;r=void 0===r?-1:r;this.els={el:a(q),selectEl:null,selectOptionTaggingEl:null,fieldEl:null,fieldTextEl:null,listWrapEl:null,listEl:null,scrollWrapEl:null,
itemWrapEls:null,itemEls:null,textFiledErrorTextEl:null,docEl:a(document),winEl:a(window)};this.handler={docEl:{click:function(x){w.isDisabled||(x.preventDefault(),m(x.target,".menu")!==w.els.el.target[0]&&w.close())}},el:{keydown:function(x){if(!w.isDisabled)switch(x.keyCode){case n.TAB:case n.ESC:w.isOpen&&w.close();break;case n.PAGE_UP:case n.HOME:w.index=0;w.selectItem(w.index,x);break;case n.PAGE_DOWN:case n.END:w.index=w.els.itemEls.target.length-1;w.selectItem(w.index,x);break;case n.LEFT:case n.UP:w.selectNext(-1,
x);break;case n.RIGHT:case n.DOWN:w.selectNext(1,x);break;case n.ENTER:case n.SPACE:"mobile"===w.getCurrentDevice()&&x.target===w.els.selectEl.target[0]&&-1===w.index&&(w.index=0,w.selectItem(w.index));break;default:w.selectItem(w.getSelectedItemIndex(x.keyCode),x)}}},fieldEl:{click:function(x){x.preventDefault();w.isDisabled||(window.sg.components.Tooltip.closeAll(),w.isOpen?w.close():w.open())}},selectEl:{change:function(x){var C=w.els.selectEl.find("option"),E=x.target.selectedIndex;C.target.forEach(function(ca,
oa){E!==oa&&ca.removeAttribute("selected")});w.index=E;-1<w.index&&C.target[w.index].setAttribute("selected","");w.els.fieldTextEl.text(x.target.options[w.index].text);w.select();w.els.fieldEl.target[0].dataset.ariaLabel&&w.els.fieldEl.target[0].setAttribute("aria-label",x.target.options[w.index].text+": "+w.els.fieldEl.target[0].dataset.ariaLabel);w.els.selectEl.target[0].dataset.selectAriaLabel&&w.els.selectEl.target[0].setAttribute("aria-label",x.target.options[w.index].text+" "+w.els.selectEl.target[0].dataset.selectAriaLabel);
w.handleMobileOptionTagging(x);if(x.target.dataset.useLink){x=C.target[w.index];var z=x.dataset.openAction,T=x.value;requestAnimationFrame(function(){"current-window"===z?window.location.href=T:"new-window"===z&&window.open(T,"_blank")})}w.setState("normal")},click:function(){"mobile"===w.getCurrentDevice()&&(window.sg.components.Tooltip.closeAll(),w.isOpen?w.close():w.open())},keyup:function(x){w.isDisabled||"mobile"===w.getCurrentDevice()&&w.isOpen&&x.keyCode===n.ESC&&w.close()}},itemWrapEls:{click:function(x){x.preventDefault();
var C=a(x.target),E=w.els.selectEl.target[0];C.hasClass("disabled")||(C=w.els.itemWrapEls.target.indexOf(x.target.closest("li")),"click"===x.type&&E.dataset.useLink&&E.selectedIndex===C&&(E.selectedIndex=-1),w.change(C),w.close())}},winEl:{resize:this.resize.bind(this)}};this.init();this.selectItem(r)};d.prototype.init=function(){d.instances.has(this.els.el.target[0])||(d.instances.set(this.els.el.target[0],this),this.initValues(),this.setElements(),this.bindEvents(),this.update())};d.prototype.reInit=
function(q){q=void 0===q?-1:q;this.els.listWrapEl.remove();this.initValues();this.setElements();this.bindEvents();this.update();this.selectItem(q)};d.prototype.initValues=function(){this.options={};this.index=-1;this.isDisabled=this.isOpen=!1;this.itemMappedIndices=[];this.itemMappedIndicesExclDisabled=[];this.maxHeight=0;this.maxItemNum=11;this.isAnim=!0;this.useOptgroup=0<this.els.el.find("optgroup").target.length;this.groups=[];this.device=this.getCurrentDevice();this.openDir=this.defaultOpenDir=
"";this.focusedIndex=-1;this.isMobileCustomSelect=this.els.el.attr("data-use-customselect-mo")?"TRUE"===this.els.el.attr("data-use-customselect-mo").toUpperCase():!1};d.prototype.setElements=function(){function q(T,ca){T.forEach(function(oa){var ba="",xa="";["an-tr","an-ca","an-ac","an-la"].forEach(function(ya){oa.hasAttribute(ya)&&(ba+=" "+ya+'\x3d"'+oa.getAttribute(ya).replace('"',"")+'" ')});w.dataset.useLink&&oa.title&&""!==oa.title&&(xa=' title\x3d"'+oa.title+'"');ca.append('\x3cli class\x3d"menu__list-option-wrap" role\x3d"presentation"'+
(E?"":ba)+'\x3e\x3cbutton class\x3d"menu__list-option" aria-selected\x3d"false" role\x3d"option"'+xa+(E?ba:"")+'\x3e\x3cspan class\x3d"menu__list-option-text"\x3e'+oa.text+'\x3c/span\x3e\x3csvg class\x3d"menu__list-option-icon" focusable\x3d"false"\x3e\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/button\x3e\x3c/li\x3e')})}var r=this;this.els.selectEl=this.els.el.find(".menu__select");var w=this.els.selectEl.target[0],x=this.els.selectEl.find("option[selected]");
"ios"!==f()||this.isMobileCustomSelect||w.setAttribute("style","z-index: 1; visibility: visible;");x.target[0]&&(w.selectedIndex=x.index(),this.els.selectEl.target[0].dataset.selectAriaLabel&&this.els.selectEl.target[0].setAttribute("aria-label",x.target[0].text+" "+this.els.selectEl.target[0].dataset.selectAriaLabel));var C=w.dataset.defaultMessage;!C&&w.options[w.selectedIndex]?C=w.options[w.selectedIndex].text:w.selectedIndex=-1;this.els.el.hasClass("menu--text-field")&&!x.target[0]&&(C="",w.selectedIndex=
-1);this.index=w.selectedIndex;this.options=[].concat($jscomp.arrayFromIterable(w.options));-1===this.index&&this.options.forEach(function(T){T.removeAttribute("selected")});var E=this.els.el.target[0].hasAttribute("data-tagging-button");this.els.fieldEl=this.els.el.find(".menu__select-field");this.els.fieldTextEl=this.els.fieldEl.find(".menu__select-field-text");this.els.fieldTextEl.text(C);this.els.fieldEl.target[0].dataset.ariaLabel&&""!==C&&this.els.fieldEl.target[0].setAttribute("aria-label",
C+": "+this.els.fieldEl.target[0].dataset.ariaLabel);this.els.el.append('\x3cdiv class\x3d"menu__list-wrap scrollbar"\x3e\x3c/div\x3e');this.els.listWrapEl=this.els.el.find(".menu__list-wrap");if(this.useOptgroup){this.gourps=this.els.el.find("optgroup");this.els.listWrapEl.append('\x3cdiv class\x3d"scrollbar__contents"\x3e\x3c/div\x3e');var z=this.els.listWrapEl.find(".scrollbar__contents");this.gourps.target.forEach(function(T){z.append('\x3cdiv class\x3d"menu__list-group" data-group-label\x3d"'+
T.label+'"\x3e\x3cp class\x3d"menu__list-group-title"\x3e'+T.label+'\x3c/p\x3e\x3cul class\x3d"menu__list" role\x3d"listbox"\x3e\x3c/ul\x3e\x3c/div\x3e');q([].concat($jscomp.arrayFromIterable(T.children)),r.els.listWrapEl.find('.menu__list-group[data-group-label\x3d"'+T.label+'"] .menu__list'))})}else this.els.listWrapEl.append('\x3cul class\x3d"menu__list scrollbar__contents" role\x3d"listbox"\x3e\x3c/ul\x3e'),q(this.options,this.els.listWrapEl.find(".menu__list"));this.els.listEl=this.els.listWrapEl.find(".menu__list");
this.els.itemWrapEls=this.els.listEl.find(".menu__list-option-wrap");this.els.itemEls=this.els.listEl.find(".menu__list-option");k.init(this.els.listWrapEl.target[0]);this.els.scrollWrapEl=this.els.listWrapEl.find(".scrollbar__wrap");this.els.scrollWrapEl.css({"max-height":0});this.els.listWrapEl.css({visibility:"hidden"});this.els.listWrapEl.attr("aria-hidden",!0);this.els.textFiledErrorTextEl=this.els.el.find(".menu--text-field__error");this.els.el.attr("data-max-item-number")&&(x=parseInt(this.els.el.attr("data-max-item-number")))&&
(this.maxItemNum=x);this.els.el.attr("data-open-direction")&&(x=this.els.el.attr("data-open-direction"))&&(this.defaultOpenDir=x);this.els.el.attr("data-animation")&&(x=this.els.el.attr("data-animation"))&&"false"===x.toLowerCase()&&(this.isAnim=!1);b.update(this.els.el.target[0]);this.select(!0)};d.prototype.select=function(q){if("desktop"===this.getCurrentDevice()){if(this.isOpen){var r=this.els.el.hasClass("filled"),w=this.els.el.offset();r=r?0:w.height;"up"===this.openDir?(this.els.el.hasClass("menu--text-field")&&
(r-=parseInt(this.els.el.css("padding-top"),10)),this.els.listWrapEl.css({bottom:0===r?"0":r+"px",top:"auto"})):"down"===this.openDir&&(this.els.el.hasClass("menu--text-field")&&this.els.textFiledErrorTextEl.target.length&&(r-=this.els.textFiledErrorTextEl.offset().height.toFixed(2)),this.els.listWrapEl.css({bottom:"auto",top:0===r?"0":r+"px"}))}this.els.el.removeClass("selected");this.els.itemEls.attr("aria-selected","false");this.els.itemWrapEls.removeClass("active");-1<this.index&&(this.els.el.hasClass("menu--text-field")&&
(q?this.els.el.addClass("init"):this.els.el.removeClass("init")),this.els.el.addClass("selected"),this.els.itemWrapEls.eq(this.index).addClass("active"),this.els.itemEls.eq(this.index).attr("aria-selected",!0))}else-1<this.index&&(q=this.els.el.target[0].dataset.type,(this.els.el.hasClass("menu--text-field")||"textField"===q||"filled"===q)&&this.els.el.addClass("selected"))};d.prototype.bindEvents=function(){var q=this;this.els.fieldEl.off("click").on("click",this.handler.fieldEl.click);this.els.itemWrapEls.off("click").on("click",
this.handler.itemWrapEls.click);this.els.selectEl.off("change").on("change",this.handler.selectEl.change);this.els.selectEl.off("click").on("click",this.handler.selectEl.click);this.els.selectEl.off("keyup").on("keyup",this.handler.selectEl.keyup);this.els.itemEls.off("focus").on("focus",function(r){a(r.target).closest(".menu__list-option-wrap").addClass("focus")});this.els.itemEls.off("blur").on("blur",function(r){a(r.target).closest(".menu__list-option-wrap").removeClass("focus")});this.els.selectEl.off("focus").on("focus",
function(){q.els.el.addClass("focus")});this.els.selectEl.off("blur").on("blur",function(){q.els.el.removeClass("focus")});this.els.el.off("keydown").on("keydown",this.handler.el.keydown);this.els.winEl.off("resize",this.handler.winEl.resize).on("resize",this.handler.winEl.resize);this.els.el.hasClass("menu--text-field")&&(this.els.fieldEl.off("focus").on("focus",function(){q.els.el.addClass("focus")}),this.els.fieldEl.off("blur").on("blur",function(){q.els.el.removeClass("focus")}))};d.prototype.update=
function(){var q=this;this.isOpen&&this.close(!1);(this.isDisabled=this.els.el.hasClass("disabled"))?(this.els.selectEl.attr("disabled",!0),this.els.fieldEl.attr("disabled",!0)):(this.els.selectEl.removeAttr("disabled"),this.els.fieldEl.removeAttr("disabled"));this.els.itemWrapEls.removeClass("disabled");"desktop"===this.device?(this.els.selectEl.attr("tabindex","-1"),this.els.selectEl.attr("aria-hidden",!0),this.els.fieldEl.removeAttr("tabindex"),this.els.fieldEl.removeAttr("aria-hidden")):(this.els.selectEl.removeAttr("tabindex"),
this.els.selectEl.removeAttr("aria-hidden"),this.els.fieldEl.attr("tabindex","-1"),this.els.fieldEl.attr("aria-hidden",!0),this.els.fieldEl.removeAttr("aria-expanded"));this.itemMappedIndices=[];this.itemMappedIndicesExclDisabled=[];var r=0;this.options.forEach(function(w,x){var C=q.els.itemWrapEls.eq(x);w.disabled?("desktop"===q.getCurrentDevice()&&C.addClass("disabled"),q.itemMappedIndices[x]=-1):(q.itemMappedIndices[x]=r++,q.itemMappedIndicesExclDisabled.push(x))})};d.prototype.open=function(q){var r=
this;q=void 0===q?!0:q;this.isAnim||(q=!1);var w=function(){r.els.docEl.on("click",r.handler.docEl.click);"desktop"===r.getCurrentDevice()&&(r.focusedIndex=-1===r.els.selectEl.target[0].selectedIndex?r.itemMappedIndicesExclDisabled[0]:r.els.selectEl.target[0].selectedIndex,requestAnimationFrame(function(){r.els.itemEls.eq(r.focusedIndex).focus();k.resize(r.els.listWrapEl.target[0])}))};requestAnimationFrame(function(){r.els.el.addClass("open");r.isOpen=!0;if("desktop"===r.getCurrentDevice()){r.els.scrollWrapEl.css({"max-height":""});
var x=r.els.itemWrapEls.target.length;r.maxHeight=0;if(x>r.maxItemNum){for(var C=0;C<r.maxItemNum;C++){var E=r.els.itemWrapEls.eq(C);r.maxHeight+=E.offset().height}r.maxHeight+=parseFloat(getComputedStyle(r.els.itemWrapEls.target[0]).marginTop)+parseFloat(getComputedStyle(r.els.itemWrapEls.target[x-1]).marginBottom)}else r.maxHeight=r.els.scrollWrapEl.offset().height;r.els.scrollWrapEl.css({"max-height":"0"});var z=r.els.el.hasClass("filled"),T=r.els.el.offset();x=window.innerHeight-T.bottom;C=T.top;
E=z?r.maxHeight-T.height:r.maxHeight;var ca=z?0:T.height;z=function(){r.els.el.hasClass("menu--text-field")&&(ca-=parseInt(r.els.el.css("padding-top"),10));ca=0===ca?"0":ca+"px";r.openDir="up";r.els.listWrapEl.css({bottom:ca,top:"auto"})};T=function(){r.els.el.hasClass("menu--text-field")&&r.els.textFiledErrorTextEl.target.length&&(ca-=r.els.textFiledErrorTextEl.offset().height.toFixed(2));ca=0===ca?"0":ca+"px";r.openDir="down";r.els.listWrapEl.css({bottom:"auto",top:ca})};r.defaultOpenDir?"up"===
r.defaultOpenDir?z():T():E>x&&E<C?z():T();if(q){r.els.scrollWrapEl.css({transition:"max-height .2s cubic-bezier(.4,0,.2,1)"});var oa=h(r.els.scrollWrapEl.target[0]);if(oa){var ba=function(){w();r.els.scrollWrapEl.off(oa,ba)};r.els.scrollWrapEl.on(oa,ba)}else setTimeout(w,200)}else r.els.scrollWrapEl.css({transition:""}),requestAnimationFrame(w);requestAnimationFrame(function(){r.els.fieldEl.attr("aria-expanded",!0);r.els.listWrapEl.css({visibility:"visible"});r.els.listWrapEl.attr("aria-hidden",!1);
r.els.scrollWrapEl.css({"max-height":r.maxHeight+"px"})})}else w()})};d.prototype.close=function(q){var r=this;q=void 0===q?!0:q;this.isAnim&&e(this.els.el.target[0])||(q=!1);var w=function(){r.els.listWrapEl.css({visibility:"hidden"});r.els.listWrapEl.attr("aria-hidden",!0)};requestAnimationFrame(function(){r.els.docEl.off("click",r.handler.docEl.click);r.els.el.removeClass("open");r.isOpen=!1;if("desktop"===r.getCurrentDevice()){if(q){r.els.scrollWrapEl.css({transition:"max-height .2s cubic-bezier(.4,0,.2,1)"});
var x=h(r.els.scrollWrapEl.target[0]);if(x){var C=function(){w();r.els.scrollWrapEl.off(x,C)};r.els.scrollWrapEl.on(x,C)}else setTimeout(w,200)}else r.els.scrollWrapEl.css({transition:""}),w();r.els.fieldEl.attr("aria-expanded",!1);r.els.scrollWrapEl.css({"max-height":"0"});r.els.fieldEl.focus()}else w()})};d.prototype.resize=function(){var q=this.getCurrentDevice();this.device!==q&&(this.device=q,this.update(),"desktop"===this.device&&(this.els.el.target[0].dataset.type&&(this.els.selectEl.target[0].selectedIndex=
-1),this.selectItem(this.index)));"desktop"===this.device&&this.isOpen&&this.close(!1)};d.prototype.change=function(q){var r=this.els.selectEl.target[0];r.selectedIndex!==q&&(this.index=r.selectedIndex=q,this.els.selectEl.trigger("change"))};d.prototype.keydown=function(q){this.els.fieldEl.trigger("click");q.preventDefault()};d.prototype.selectNext=function(q,r){this.focusedIndex=0>this.focusedIndex?-1!==this.index?this.itemMappedIndicesExclDisabled[0]:0:this.focusedIndex;var w=this.itemMappedIndices[this.focusedIndex];
w+=q;q=0>w?this.itemMappedIndicesExclDisabled[0]:w>this.itemMappedIndicesExclDisabled.length-1?this.itemMappedIndicesExclDisabled[this.itemMappedIndicesExclDisabled.length-1]:this.itemMappedIndicesExclDisabled[w];-1!==q&&("desktop"===this.getCurrentDevice()&&this.els.itemEls.target[q].focus(),this.focusedIndex=q);r&&r.preventDefault()};d.prototype.selectItem=function(q,r){if(!(0>q)){var w=-1;0===q?w=this.itemMappedIndicesExclDisabled[0]:q===this.itemMappedIndices.length-1?w=this.itemMappedIndicesExclDisabled[this.itemMappedIndicesExclDisabled.length-
1]:-1!==this.itemMappedIndices[q]&&(w=q);-1!==w&&("desktop"===this.getCurrentDevice()&&this.els.itemEls.target[w].focus(),this.change(w));r&&r.preventDefault()}};d.prototype.getSelectedItemIndex=function(q){var r=this,w=/[A-Z]/,x=q-48*Math.floor(q/48),C=String.fromCharCode(96<=q?x:q),E=!0,z=-1;q=this.index;this.els.itemEls.target.forEach(function(T,ca){var oa=T.textContent.substring(0,1).toUpperCase();T=a(T).closest(".menu__list-option-wrap").hasClass("disabled");w.test(oa)&&oa===C&&!T&&-1===z&&(z=
ca);w.test(oa)&&oa===C&&r.index<ca&&E&&!T&&(r.index=ca,E=!1)});q===this.index&&-1!==z&&(this.index=z);return this.index};d.prototype.setState=function(q){if(this.els.el.hasClass("menu--text-field")){var r=this.els.el.find(".required"),w=this.els.textFiledErrorTextEl.target.length?this.els.textFiledErrorTextEl.attr("id"):"";switch(q){case "error":this.els.el.addClass("error");w&&(this.els.fieldEl.attr("aria-describedby",w),this.els.selectEl.attr("aria-labelledby",this.els.selectEl.attr("aria-labelledby")+
" "+w),r&&r.attr("aria-hidden",!0));break;default:this.els.el.removeClass("error"),this.els.fieldEl.removeAttr("aria-describedby"),w&&this.els.selectEl.attr("aria-labelledby",this.els.selectEl.attr("aria-labelledby").replace(w,"").trim()),r&&r.removeAttr("aria-hidden")}}};d.prototype.getCurrentDevice=function(){return"ios"!==f()||this.isMobileCustomSelect?this.isMobileCustomSelect?"desktop":g():"mobile"};d.prototype.handleMobileOptionTagging=function(q){var r=this;if("mobile"===g()&&"visible"===this.els.selectEl.css("visibility")){var w=
q.target.selectedIndex,x=(0===w||!!w)&&q.target.options[w],C=function(){r.els.selectOptionTaggingEl=r.els.el.find(".menu__select-option-tagging");return r.els.selectOptionTaggingEl&&r.els.selectOptionTaggingEl.target&&0<r.els.selectOptionTaggingEl.target.length};C()||this.els.selectEl.after('\x3cbutton class\x3d"menu__select-option-tagging hidden" tabindex\x3d"-1" aria-hidden\x3d"true"\x3e\x3c/button\x3e');requestAnimationFrame(function(){x&&C()&&(Array.from(x.attributes).forEach(function(E){r.els.selectOptionTaggingEl.attr(E.name,
E.value)}),r.els.selectOptionTaggingEl.trigger("click"))})}};d.instances=new WeakMap;window.sg.components.registerClass("menu",d);var l={initAll:function(){a('.menu:not([data-auto-init\x3d"false"])').target.forEach(function(q){d.instances.has(q)||new d(q)})},init:function(q){d.instances.has(q)||new d(q)},reInit:function(q,r){r=void 0===r?-1:r;d.instances.has(q)?d.instances.get(q).reInit(r):new d(q,r)},setState:function(q,r){d.instances.has(q)&&d.instances.get(q).setState(r)},selectItem:function(q,
r){r=void 0===r?-1:r;d.instances.has(q)&&d.instances.get(q).selectItem(r)}};window.sg.common.menu=l;a.ready(l.initAll)})();
(function(){var a=window.sg.common.$q,n=window.sg.common.constants.BREAKPOINTS,k=window.sg.common.utils,g=window.sg.common.icon,f=window.sg.components.Tooltip,h=function(e,b){var d=this;b=void 0===b?null:b;this.selector={swiperSlide:".option-selector__swiper-slide",swiperWrap:".option-selector__swiper",swiperPrev:".option-selector__button-prev",swiperNext:".option-selector__button-next",btnDisabledCls:"option-selector__button--disabled",capaContainer:".option-selector__swiper-container",capaItemInner:".option-selector__size",
capaItemRadio:".option-selector__size input",flotingBox:".option-selector__floating-bar",moveWapper:".option-selector__swiper-wrapper",optionRadio:'input[type\x3d"radio"]',colorRadio:".option-selector__color input",colorName:".option-selector__color-name",tooltipCta:".option-selector__color-name-text",tooltipWrap:".option-selector__color-tooltip",closeCta:".option-selector__color-tooltip-close",slideButtonList:".option-selector__swiper-slide input",activeClass:"is-show"};this.el={window:a(window),
component:a(e)};this.handler={timeHandler:function(){d.el.moveWapper.css({transition:"none"});d.resize();d.resizeTimer&&clearTimeout(d.resizeTimer);d.resizeTimer=setTimeout(function(){d.el.moveWapper.css({transition:""})},400)},changeCapacity:this.changeCapacity.bind(this),setHalfSlide:this.setHalfSlide.bind(this),changeColor:function(l){var q=a(l.target).closest(".option-selector__color");q=q.find(".hidden").target[0]||q.find(".option-selector__color-code").target[0];var r=a(l.target).closest(".option-selector").find(".option-selector__color-name .color-name-text");
l=a(l.target).closest(".option-selector").find(".option-selector__color-name-text-in");null!==q&&0<r.target.length&&r.innerHTML(q.innerText);null!==q&&0<l.target.length&&l.innerHTML(q.innerText)},tooltipShow:this.tooltipShow.bind(this),tooltipKeyEvent:function(l){l.keyCode===window.sg.common.constants.KEY_CODE.ENTER?d.showBoxEvent():l.keyCode===window.sg.common.constants.KEY_CODE.ESC&&d.hideBoxEvent()},changeColorName:function(l){l=l.target.parentNode.querySelector(".hidden")||null;0<d.el.component.parent().find(".option-selector__color-name button, span.option-selector__color-name-text").target.length&&
(d.el.component.parent().find(".option-selector__color-name .option-selector__color-name-text-in").innerHTML(l.innerText),d.el.component.parent().find(".option-selector__color-name .option-selector__color-tooltip-text").innerHTML(l.innerText),d.tooltipShow())},showBoxEvent:function(){d.showBoxEvent()},hideBoxEvent:function(l){"focusout"===l.type?requestAnimationFrame(function(){0===a(document.activeElement).closest(d.el.colorName.target[0]).target.length&&d.hideBoxEvent()}):d.hideBoxEvent()}};this.moveLength=
null;h.instances.set(e,this);this.setElements();this.checkedActive=b;this.init()};h.prototype.setElements=function(){var e=this;this.el.swiperPrev=this.el.component.find(this.selector.swiperPrev);this.el.swiperNext=this.el.component.find(this.selector.swiperNext);this.el.swiperSlide=this.el.component.find(this.selector.swiperSlide);this.el.moveWapper=this.el.component.find(this.selector.moveWapper);this.el.capaContainer=this.el.component.find(this.selector.capaContainer);this.el.capaItemInner=this.el.component.find(this.selector.capaItemInner);
this.el.capaItemRadio=this.el.component.find(this.selector.capaItemRadio);this.el.capaItemRadioActive=this.el.component.find(this.selector.capaItemRadio+":checked").closest(this.selector.swiperSlide);this.el.flotingBox=this.el.component.find(this.selector.flotingBox);this.el.optionRadio=this.el.component.find(this.selector.optionRadio);this.el.colorRadio=this.el.component.find(this.selector.colorRadio);this.desktopPerView=this.el.component.attr("data-desktop-view");this.mobilePerView=this.el.component.attr("data-mobile-view");
this.maxCnt=Number(n.MOBILE<k.getViewPort().width?this.desktopPerView:this.mobilePerView);this.mobileFlg=this.desktopFlg=!1;this.slideCnt=this.el.swiperSlide.target.length;this.lastCnt=this.slideCnt<=this.maxCnt?1:this.slideCnt-this.maxCnt;this.activeCnt=this.slideCnt<=this.maxCnt&&this.el.moveWapper.target[0].scrollWidth-8>this.el.capaContainer.outerWidth()&&this.el.capaItemRadioActive.index()===this.slideCnt-1?this.lastCnt:0;this.maxPos=this.el.moveWapper.target[0].scrollWidth-8<=this.el.capaContainer.outerWidth()?
0:this.el.moveWapper.target[0].scrollWidth-this.el.capaContainer.outerWidth();this.slideGradientWidth=0===this.el.component.find(".option-selector__button-prev").target.length?0:parseInt(window.getComputedStyle(this.el.component.find(".option-selector__button-prev").target[0],":after").getPropertyValue("width"));this.slideLength=0===this.el.component.find(this.selector.swiperSlide).target.length?0:this.el.component.find(this.selector.swiperSlide).target.length-1;this.slidePadding=0;this.el.colorName=
this.el.component.parent(".option-selector").find(this.selector.colorName);this.el.tooltipCta=this.el.colorName.find(this.selector.tooltipCta);this.el.closeCta=this.el.colorName.find(this.selector.closeCta);this.el.tooltipWrap=this.el.colorName.find(this.selector.tooltipWrap);this.el.slideButtonList=this.el.component.find(this.selector.slideButtonList);this.resizeTimer=this.timer=null;this.reInitFlag=this.initFlag=this.activeCheck=!1;this.direction=(this.rtlFlag="rtl"===a("body").css("direction")?
!0:!1)?1:-1;this.startActiveIdx=null;this.isCapacity=this.el.component.target[0].classList.contains("option-selector__wrap--capacity");this.checkedActive=null;this.tooltipFlag=!1;"none"!==this.el.moveWapper.css("transform")?this.moveLength=Math.abs(Number(this.el.moveWapper.css("transform").match(/-?[\d\\.]+/g)[4])):this.moveLength=0;this.el.swiperSlide.target.forEach(function(b,d){a(b).hasClass("active-slide")&&(e.startActiveIdx=d)});this.calcPos=this.rtlFlag?-1*parseInt(this.el.moveWapper.css("margin-right"),
10):-1*parseInt(this.el.moveWapper.css("margin-left"),10);this.hiddenText=this.el.tooltipCta.find(".hidden");this.globalText=0<this.hiddenText.target.length?JSON.parse(this.hiddenText.target[0].dataset.globalText):null};h.prototype.init=function(){this.initFlag=!0;this.bindEvents();this.optionSlide();this.resize(!0);this.setHalfSlide()};h.prototype.reInit=function(e){this.setElements();this.reInitFlag=!0;this.checkedActive=e;this.init()};h.prototype.calcPadding=function(){0<this.el.component.find(".option-selector__color").target.length&&
(this.slidePadding=parseInt(window.getComputedStyle(this.el.component.find(".option-selector__color").target[0]).getPropertyValue("padding-left")));0<this.el.component.find(".option-selector__size").target.length&&(this.slidePadding=parseInt(window.getComputedStyle(this.el.component.find(".option-selector__size-label").target[0]).getPropertyValue("padding-left"))/2)};h.prototype.setBtnDisable=function(){this.el.capaItemRadioActive=this.el.component.find(this.selector.capaItemRadio+":checked").closest(this.selector.swiperSlide);
var e=this.el.swiperSlide.outerWidth();(this.el.component.hasClass("option-selector__wrap--wide")?0<this.el.component.find(".option-selector__color").target.length?e*this.slideCnt-2*this.slidePadding:e*this.slideCnt:e*this.slideCnt)>this.el.capaContainer.outerWidth()&&0!==this.maxPos?(this.el.swiperNext.show(),this.el.swiperPrev.show(),this.el.component.hasClass("option-selector__wrap--wide")&&this.el.component.removeClass("no-swiper-mode"),this.el.component.addClass("swiper-mode"),0<this.moveLength?
(this.el.swiperPrev.removeClass(this.selector.btnDisabledCls),this.el.swiperPrev.attr("aria-disabled","false"),this.el.swiperPrev.attr("tabindex","0"),this.moveLength>=this.maxPos?(this.el.swiperNext.addClass(this.selector.btnDisabledCls),this.el.swiperNext.attr("aria-disabled","true"),this.el.swiperNext.attr("tabindex","-1"),document.activeElement===this.el.swiperNext.target[0]&&this.el.swiperNext.hasClass("option-selector__button--disabled")&&this.el.swiperPrev.focus()):(this.el.swiperNext.removeClass(this.selector.btnDisabledCls),
this.el.swiperNext.attr("aria-disabled","false"),this.el.swiperNext.attr("tabindex","0"))):(this.el.swiperNext.removeClass(this.selector.btnDisabledCls),this.el.swiperNext.attr("aria-disabled","false"),this.el.swiperNext.attr("tabindex","0"),this.el.swiperPrev.addClass(this.selector.btnDisabledCls),this.el.swiperPrev.attr("aria-disabled","true"),this.el.swiperPrev.attr("tabindex","-1"),document.activeElement===this.el.swiperPrev.target[0]&&this.el.swiperPrev.hasClass("option-selector__button--disabled")&&
this.el.swiperNext.focus())):(this.el.component.removeClass("swiper-mode"),this.el.component.hasClass("option-selector__wrap--wide")&&this.el.component.addClass("no-swiper-mode"),this.el.swiperNext.hide(),this.el.swiperNext.attr("aria-disabled","true"),this.el.swiperNext.attr("tabindex","-1"),this.el.swiperPrev.hide(),this.el.swiperPrev.attr("aria-disabled","true"),this.el.swiperPrev.attr("tabindex","-1"))};h.prototype.setActiveCnt=function(){!0===this.initFlag&&("none"===this.el.moveWapper.css("transform")?
this.activeCnt=this.el.component.find("input:checked").closest(this.selector.swiperSlide).index():this.activeCnt=null);this.initFlag=!1};h.prototype.setSlidePos=function(e){e=void 0===e?null:e;this.desktopPerView||this.mobilePerView?(this.calcPadding(),this.maxPos=this.el.moveWapper.target[0].scrollWidth-8<=this.el.capaContainer.outerWidth()?0:this.el.moveWapper.target[0].scrollWidth-this.el.capaContainer.outerWidth()-Math.floor(this.slidePadding/2)):(this.el.component.addClass("option-selector__wrap--wide"),
this.calcPos=this.rtlFlag?-1*parseInt(this.el.moveWapper.css("margin-right"),10):-1*parseInt(this.el.moveWapper.css("margin-left"),10),this.maxPos=this.el.moveWapper.target[0].scrollWidth-8<=this.el.capaContainer.outerWidth()?0:this.el.moveWapper.target[0].scrollWidth-this.el.capaContainer.outerWidth()-2*this.calcPos,0>=this.maxPos&&(this.maxPos=0,this.el.component.removeClass("swiper-mode"),this.el.component.addClass("no-swiper-mode")));this.el.component.hasClass("swiper-mode")?this.setSlideMove(e):
this.el.moveWapper.css({transform:""})};h.prototype.setSlideMove=function(e){var b=this;e=void 0===e?null:e;var d=this.el.component.find("input:checked").closest(this.selector.swiperSlide).index(),l=this.el.component.find(this.selector.swiperSlide).outerWidth();this.slideGradientWidth=0===this.el.component.find(".option-selector__button-prev").target.length?0:parseInt(window.getComputedStyle(this.el.component.find(".option-selector__button-prev").target[0],":after").getPropertyValue("width"));this.calcPadding();
this.reInitFlag||(null!==e?null!==this.activeCnt?0!==d&&(this.el.component.hasClass("option-selector__wrap--wide")?this.moveLength=l*this.activeCnt>this.maxPos+this.slideGradientWidth?this.maxPos:l*this.activeCnt-this.slideGradientWidth:n.MOBILE<k.getViewPort().width?this.moveLength=l*this.activeCnt>this.maxPos?this.maxPos:l*this.activeCnt-this.slidePadding:this.el.component.hasClass("option-selector__wrap--color-chip")&&(this.moveLength=l*this.activeCnt>this.maxPos+this.slideGradientWidth?this.maxPos:
l*this.activeCnt)):this.activeCnt=Math.ceil(this.moveLength/l):(this.checkedActive||"none"===this.el.moveWapper.css("transform")&&0===this.moveLength&&0<d)&&0!==d&&(this.el.component.hasClass("option-selector__wrap--wide")?this.moveLength=l*d>this.maxPos+this.slideGradientWidth?this.maxPos:l*d-this.slideGradientWidth:n.MOBILE<k.getViewPort().width?this.moveLength=l*d>this.maxPos?this.maxPos:l*d-this.slidePadding:this.el.component.hasClass("option-selector__wrap--color-chip")&&(this.moveLength=l*d>
this.maxPos+this.slideGradientWidth?this.maxPos:l*d-this.slideGradientWidth+this.slidePadding)));0<=this.moveLength&&this.el.moveWapper.css({transform:"translateX("+this.direction*this.moveLength+"px)"});this.checkedActive=null;this.reInitFlag&&(this.reInitFlag=!1);setTimeout(function(){b.setBtnDisable()},300)};h.prototype.setSwiperWidth=function(){var e=this;this.el.component.target.forEach(function(b){b=a(b);var d=[],l=b.find(e.selector.swiperSlide);l.css({width:""});l.target.forEach(function(E){d.push(a(E).width())});
var q=Math.max.apply(null,d),r=n.MOBILE<k.getViewPort().width?e.desktopPerView:e.mobilePerView,w=["pf-product-compare","hubble-item-card__option-memory"],x=16,C=b.closest("."+w.join(",.")).target[0];void 0!==C&&(C.classList.contains(w[0])?x=n.MOBILE<k.getViewPort().width?4:8:C.classList.contains(w[1])&&(x=0));l.css({width:q+"px"});null!==r?(b.find(e.selector.swiperWrap).css({width:q*r+2+"px"}),e.calcPadding()):(q*e.slideCnt>e.el.capaContainer.outerWidth()&&e.el.component.addClass("swiper-mode"),e.el.component.addClass("option-selector__wrap--wide"),
b.find(e.selector.swiperWrap).css({width:"auto"}));0!==b.find(e.selector.flotingBox).target.length&&b.find(e.selector.flotingBox).css({transition:"none",width:q-x+"px"})})};h.prototype.setHalfSlide=function(e){e=e?a(e.target):a(this.el.slideButtonList.target.filter(function(l){return l.checked}));if(e.target.length){var b=e.closest(this.selector.swiperSlide).index(),d=this.el.swiperSlide.outerWidth()*b;this.el.component.hasClass("swiper-mode")?(this.activeCnt=b,this.el.component.hasClass("option-selector__wrap--wide")?
this.moveLength=d>=this.maxPos+this.slideGradientWidth?this.maxPos:d-this.slideGradientWidth:n.MOBILE<k.getViewPort().width?this.moveLength=d>=this.maxPos+this.slideGradientWidth?this.maxPos:d-this.slidePadding:this.el.component.hasClass("option-selector__wrap--color-chip")?this.moveLength=d>=this.maxPos+this.slideGradientWidth?this.maxPos:d-this.slideGradientWidth+this.slidePadding:this.moveLength=d>=this.maxPos+this.slideGradientWidth?this.maxPos:d,0===b&&(this.moveLength=0),this.el.moveWapper.css({transform:"translateX("+
this.direction*this.moveLength+"px)"}),this.setBtnDisable(),this.el.moveWapper.find(".option-selector__color-name.active").removeClass("active"),e.closest(this.selector.swiperSlide).find(".option-selector__color-name").addClass("active")):(this.el.swiperNext.hide(),this.el.swiperNext.attr("aria-disabled","true"),this.el.swiperNext.attr("tabindex","-1"),this.el.swiperPrev.hide(),this.el.swiperPrev.attr("aria-disabled","true"),this.el.swiperPrev.attr("tabindex","-1"))}};h.prototype.optionSlide=function(){var e=
this;this.el.swiperNext.target.forEach(function(b){a(b).off("click").on("click",function(){var d=e.el.swiperSlide.outerWidth();e.activeCnt+=1;e.moveLength>=e.el.moveWapper.target[0].scrollWidth-e.el.capaContainer.outerWidth()&&(e.activeCnt=e.lastCnt);e.el.component.hasClass("option-selector__wrap--wide")?e.moveLength=1===e.activeCnt?e.moveLength+d>e.maxPos?e.maxPos:e.moveLength+d-e.slideGradientWidth:e.moveLength+d>e.maxPos?e.maxPos:e.moveLength+d:n.MOBILE<k.getViewPort().width?e.moveLength=1===e.activeCnt?
e.moveLength+d>e.maxPos?e.maxPos:e.moveLength+d-e.slidePadding:e.moveLength+d>e.maxPos?e.maxPos:e.moveLength+d:e.el.component.hasClass("option-selector__wrap--color-chip")?e.moveLength=e.moveLength+d>e.maxPos?e.maxPos:e.moveLength+d:e.moveLength=1===e.activeCnt?e.moveLength+d>e.maxPos?e.maxPos:e.moveLength+d+e.slidePadding:e.moveLength+d>e.maxPos?e.maxPos:e.moveLength+d;e.el.moveWapper.css({transform:"translateX("+e.direction*e.moveLength+"px)"});e.setBtnDisable()})});this.el.swiperPrev.target.forEach(function(b){a(b).off("click").on("click",
function(){var d=e.el.swiperSlide.outerWidth();--e.activeCnt;0>e.activeCnt&&(e.activeCnt=0);d=0<e.moveLength%d?e.moveLength-Math.floor(e.moveLength/d)*d:d;e.el.component.hasClass("option-selector__wrap--wide")?e.moveLength=0>=e.moveLength-d?0:e.moveLength-d-e.slideGradientWidth:n.MOBILE<k.getViewPort().width?e.moveLength=0>=e.moveLength-d?0:e.moveLength-d-e.slidePadding:e.el.component.hasClass("option-selector__wrap--color-chip")?e.moveLength=0>=e.moveLength-d?0:e.moveLength-d-e.slideGradientWidth+
e.slidePadding:e.moveLength=0>=e.moveLength-d?0:e.moveLength-d;e.el.moveWapper.css({transform:"translateX("+e.direction*e.moveLength+"px)"});e.setBtnDisable()})})};h.prototype.moveFloting=function(e){if(!(0>=e.target.length)){var b=0;0<this.el.flotingBox.closest(".pf-product-compare").target.length?b=n.MOBILE<k.getViewPort().width?2:4:1>this.el.flotingBox.closest(".hubble-item-card__option-memory").target.length&&(b=7.5);this.el.flotingBox.css({display:"block",transition:"",left:e.target[0].offsetLeft+
b+"px"});this.flotingActive=e.closest(this.selector.swiperSlide)}};h.prototype.resize=function(e){e=void 0===e?null:e;this.setSwiperWidth();this.moveFloting(this.el.component.find(this.selector.capaItemRadio+":checked").closest(this.selector.swiperSlide));n.MOBILE<k.getViewPort().width?!1===this.desktopFlg&&(this.desktopFlg=!0,this.mobileFlg=!1,this.el.component.removeClass("no-swiper-mode"),!0===e?(this.setActiveCnt(),this.reInitFlag?(this.setBtnDisable(),this.setSlidePos()):(this.setSlidePos(),
this.setBtnDisable())):this.desktopPerView!==this.mobilePerView&&(this.setActiveCnt(),this.setBtnDisable())):!1===this.mobileFlg&&(this.mobileFlg=!0,this.desktopFlg=!1,this.el.component.removeClass("no-swiper-mode"),!0===e?(this.setActiveCnt(),this.reInitFlag?(this.setBtnDisable(),this.setSlidePos()):(this.setSlidePos(),this.setBtnDisable())):this.desktopPerView!==this.mobilePerView&&(this.setActiveCnt(),this.setBtnDisable()));this.setSlidePos(!0);this.tooltipShow()};h.prototype.changeCapacity=function(e){e=
a(e.currentTarget);this.el.component.find(".option-selector__wrap--capacity "+this.selector.swiperSlide+".is-active").removeClass("is-active");e.closest(this.selector.swiperSlide).addClass("is-active");this.moveFloting(e.closest(this.selector.swiperSlide))};h.prototype.tooltipShow=function(){if(0!==this.el.tooltipCta.target.length){var e=this.el.tooltipCta.outerWidth()<this.el.tooltipCta.target[0].scrollWidth,b="button"===this.el.tooltipCta.target[0].tagName.toLowerCase();e?this.tooltipFlag||(this.tooltipFlag=
!0,b?this.el.tooltipCta.removeAttr("disabled"):this.el.tooltipCta.attr("tabindex","0")):(this.tooltipFlag=!1,b?this.el.tooltipCta.attr("disabled",""):this.el.tooltipCta.removeAttr("tabindex"))}};h.prototype.showBoxEvent=function(){this.tooltipFlag&&!this.el.colorName.hasClass(this.selector.activeClass)&&(this.el.colorName.addClass(this.selector.activeClass),this.globalText&&(this.hiddenText.text(this.globalText.Collapse),this.el.tooltipWrap.attr("aria-hidden",!1)),this.hiddenText.attr("aria-hidden",
!1),f&&f.closeAll())};h.prototype.hideBoxEvent=function(){this.el.colorName.hasClass(this.selector.activeClass)&&(document.activeElement===this.el.closeCta.target[0]&&this.el.tooltipCta.focus(),this.el.colorName.removeClass(this.selector.activeClass),this.globalText&&(this.hiddenText.text(this.globalText.Expand),this.el.tooltipWrap.attr("aria-hidden",!0)),this.hiddenText.attr("aria-hidden",!0))};h.prototype.bindEvents=function(){this.el.window.off("resize",this.handler.timeHandler).on("resize",this.handler.timeHandler);
this.el.optionRadio.off("change",this.handler.setHalfSlide).on("change",this.handler.setHalfSlide);this.el.optionRadio.off("focus",this.handler.setHalfSlide).on("focus",this.handler.setHalfSlide);this.el.capaItemRadio.off("change",this.handler.changeCapacity).on("change",this.handler.changeCapacity);this.el.colorRadio.off("change",this.handler.changeColor).on("change",this.handler.changeColor);0<this.el.colorName.target.length&&(this.el.slideButtonList.off("click",this.handler.changeColorName).on("click",
this.handler.changeColorName),this.el.tooltipCta.off("mouseenter",this.handler.showBoxEvent).on("mouseenter",this.handler.showBoxEvent),this.el.colorName.off("mouseleave",this.handler.hideBoxEvent).on("mouseleave",this.handler.hideBoxEvent),this.el.tooltipCta.off("focus",this.handler.showBoxEvent).on("focus",this.handler.showBoxEvent),this.el.colorName.off("focusout",this.handler.hideBoxEvent).on("focusout",this.handler.hideBoxEvent),this.el.tooltipCta.off("click",this.handler.showBoxEvent).on("click",
this.handler.showBoxEvent),this.el.closeCta.off("click",this.handler.hideBoxEvent).on("click",this.handler.hideBoxEvent),this.el.tooltipCta.off("keydown",this.handler.tooltipKeyEvent).on("keydown",this.handler.tooltipKeyEvent))};var m=function(){a(".option-selector__wrap").target.forEach(function(e){a(e).closest(".unbind-option").target.length||h.instances.has(e)||new h(e)})};h.instances=new WeakMap;a.ready(m);window.sg.common.OptionSelector={init:m,reInit:function(e,b){b=void 0===b?null:b;var d=
a(".option-selector__wrap");void 0!==e&&(d=e.hasClass("option-selector__wrap")?e:e.find(".option-selector__wrap"));d.target.forEach(function(l){h.instances.has(l)?h.instances.get(l).reInit(b):new h(l,b);g.update(l)})}}})();
(function(){var a=window.sg.common.$q,n=window.sg.common.utils,k=window.sg.common.constants.KEY_CODE,g=window.sg.common.swiperManager,f=window.sg.components.Tooltip,h=function(e){var b=this;this.isTouchEvent=this.keypress=this.motioning=this.dragging=!1;this.containerPadding=this.timer=this.percent=0;this.type=this.currentDevice=null;this.isCentered=!1;this.offset={startX:0,wrapperX:0,x_origine:0,y_origine:0,x_new:0,y_new:0};this.touchEvents={};this.el={window:a(window),document:a(document),section:a(e),
component:null,slideContainer:null,slideWrap:null,slideButtonList:null,slideList:null};this.selector={wrapper:".option-selector-v2",component:".option-selector-v2__swiper",colorNameMaxchar:"data-maxchar",colorNameMaxcharPC:"data-maxchar-pc",colorNameMaxcharMO:"data-maxchar-mo",colorName:".option-selector-v2__color-name",colorNameTooltip:".option-selector-v2__color-tooltip",colorNameTooltipText:".option-selector-v2__color-tooltip-text",colorCode:".option-selector-v2__color-code",sizeText:".option-selector-v2__size-text",
slideContainer:".option-selector-v2__swiper-container",slideWrap:".option-selector-v2__swiper-wrapper",slideButtonList:".option-selector-v2__swiper-slide button",slideList:".option-selector-v2__swiper-slide",slideSelected:".is-checked",swiperArrow:".option-selector-v2__button-prev, .option-selector-v2__button-next"};this.classes={typeColor:"option-selector-v2__wrap--color-chip",typeSize:"option-selector-v2__wrap--capacity",swiperArrowPrev:"option-selector-v2__button-prev",swiperArrowNext:"option-selector-v2__button-next",
colorNameTooltipActive:"option-selector-v2__color-name--tooltip-active"};this.handler={touchsupport:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints},heightLimit:function(){return b.isTouchEvent?10:100},clickHandler:function(d){b.dragging||b.handler.slideTo(a(d.target).closest(".option-selector-v2__swiper-slide"));b.dragging=!1},slideTo:function(d){var l=b.el.slideWrap.offset();
d=d.offset();var q=l.left-d.left;"ltr"!==h.direction&&(q=l.right-d.right);b.handler.setWrapperPos(q,!0,b.isCentered,d.width)},eventClick:function(d){d.preventDefault();d.preventDefault?d.preventDefault():d.returnValue=!1},touchStart:function(d){d=b.isTouchEvent?d.touches[0]||d.changedTouches[0]:d;b.offset.x_new=0;b.offset.y_new=0;b.offset.x_origine=d.pageX;b.offset.y_origine=d.pageY;b.offset.wrapperX=b.offset.startX;b.el.slideWrap.on(b.touchEvents.touchMove,b.handler.touchMove);b.el.document.on(b.touchEvents.touchMove,
b.handler.touchMove);b.el.document.on(b.touchEvents.touchEnd,b.handler.touchEnd);b.el.document.on("mouseleave",b.handler.touchEnd);if(d=g.getSwiper(b.el.slideContainer.closest(".swiper-container").target[0]))d.allowTouchMove=!1},touchMove:function(d){var l=b.isTouchEvent?d.touches[0]||d.changedTouches[0]:d;b.offset.x_new=b.offset.x_origine-l.pageX;b.offset.y_new=b.offset.y_origine-l.pageY;d.preventDefault();Math.abs(b.offset.y_new)>b.handler.heightLimit()?(b.handler.touchEnd(),b.handler.eventClick(d),
b.dragging=!1):0!==b.offset.x_new&&(b.dragging=!0,b.handler.setWrapperPos(b.offset.wrapperX-b.offset.x_new))},touchEnd:function(){b.el.slideWrap.off(b.touchEvents.touchMove,b.handler.touchMove);b.el.document.off(b.touchEvents.touchMove,b.handler.touchMove);b.el.document.off(b.touchEvents.touchEnd,b.handler.touchEnd);b.el.document.off("mouseleave",b.handler.touchEnd);setTimeout(function(){b.dragging=!1},1);var d=g.getSwiper(b.el.slideContainer.closest(".swiper-container").target[0]);d&&(d.allowTouchMove=
!0)},resetPos:function(){b.el.slideWrap.css({transform:""})},changeHandler:function(d){b.el.slideList.removeClass("is-checked");b.el.slideList.find(".blind").remove();var l=a(d.target).closest(b.selector.slideList),q=l.find(b.selector.colorCode),r=l.find(b.selector.sizeText);d=d.target.querySelector(".hidden")||null;l.addClass("is-checked");q.target.length&&q.after('\x3cspan class\x3d"blind"\x3e'+b.globalText+"\x3c/span\x3e");r.target.length&&r.after('\x3cspan class\x3d"blind"\x3e'+b.globalText+"\x3c/span\x3e");
null!==d&&b.setColorName(d.innerText)},keyDownHandler:function(d){d.keyCode===k.TAB&&b.el.component.hasClass("bindCheck")&&(b.handler.clickHandler(d),b.el.slideContainer.target[0].scrollLeft=0)},setWrapperPos:function(d,l,q,r){l=void 0===l?!1:l;q=void 0===q?!1:q;r=void 0===r?null:r;if(!isNaN(d)){var w=b.el.slideContainer.outerWidth()-b.containerPadding,x=b.el.slideWrap.outerWidth();"ltr"!==h.direction&&(d*=-1);q?d=0<d||Math.abs(d)<w/2?0:Math.max(d+w/2-r/2,-(x-w)):0<d?d=0:x+d<=w&&(d=w-x);"ltr"!==h.direction&&
(d*=-1);b.el.slideWrap.css({transform:"translateX("+d+"px)",transition:l?"":"none"});b.offset.startX=d;d=Math.abs(d)/(w-x)*100;d=isNaN(d)?0:d;b.percent=Math.abs(d);b.el.component.removeClass("next");b.el.component.removeClass("prev");2>=b.percent?b.el.component.addClass("next"):98>=b.percent?(b.el.component.addClass("prev"),b.el.component.addClass("next")):b.el.component.addClass("prev")}},resize:function(){clearTimeout(b.timer);b.timer=setTimeout(function(){b.handler.timeResize()},10)},timeResize:function(){var d=
n.getCurrentDevice();if(b.el.slideContainer.width()<b.el.slideWrap.width()){b.el.component.hasClass("bindCheck")||(b.el.component.addClass("bindCheck"),b.el.slideWrap.on(b.touchEvents.touchStart,b.handler.touchStart),b.el.slideWrap.on(b.touchEvents.touchEnd,b.handler.touchEnd),b.el.slideButtonList.on("click",b.handler.clickHandler));b.containerPadding=2*parseInt(b.el.slideContainer.css("padding-right"),10);var l=(b.el.slideContainer.outerWidth()-b.containerPadding-b.el.slideWrap.outerWidth())*(b.percent/
100);"ltr"!==h.direction&&(l*=-1);b.handler.setWrapperPos(l)}else b.el.component.removeClass("bindCheck"),b.el.component.removeClass("next"),b.el.component.removeClass("prev"),b.el.component.addClass("option-selector-v2__swiper--min"),b.el.slideWrap.off(b.touchEvents.touchStart,b.handler.touchStart),b.el.slideWrap.off(b.touchEvents.touchEnd,b.handler.touchEnd),b.el.slideButtonList.off("click",b.handler.clickHandler),b.handler.resetPos();b.currentDevice!==d&&b.handleColorName();b.currentDevice=d},
handleClickArrow:function(d){var l=a(d.currentTarget),q=l.hasClass(b.classes.swiperArrowNext);d=new DOMMatrix(getComputedStyle(b.el.slideWrap.target[0]).transform);var r=l.offset(),w=b.el.slideContainer.offset();"ltr"===h.direction?(l=b.el.slideList.target.find(function(x){return x.getBoundingClientRect().left>w.left+.8*r.width}),q?b.handler.setWrapperPos(d.m41-(l.getBoundingClientRect().left-w.left),!0):(q=b.el.slideList.eq(Math.max(a(l).index()-1,0)).offset(),b.handler.setWrapperPos(d.m41+((q.left<
w.left?Math.abs(w.left-q.left):0)+r.width),!0))):(l=b.el.slideList.target.find(function(x){return x.getBoundingClientRect().right<w.right-.8*r.width}),q?b.handler.setWrapperPos(d.m41+(w.right-l.getBoundingClientRect().right),!0):(q=b.el.slideList.eq(Math.max(a(l).index()-1,0)).offset(),b.handler.setWrapperPos(d.m41-((q.right>w.right?Math.abs(q.right-w.right):0)+r.width),!0)))},handleColorNameTooltiopOpen:this.handleColorNameTooltiopOpen.bind(this),handleColorNameTooltiopClose:this.handleColorNameTooltiopClose.bind(this)};
this.startX=0;this.globalText=null;h.instances.set(e,this);this.init()};h.prototype.init=function(){this.setProperty();this.bindEvents()};h.prototype.scrollX=function(){var e=window.getComputedStyle(this.el.slideWrap.target[0]).getPropertyValue("transform").match(/(-?[0-9\\.]+)/g),b=0;e&&(b=parseInt(e[4],10));return b};h.prototype.reInit=function(){this.isTouchEvent=this.handler.touchsupport();this.unBindEvents();this.setProperty();this.bindEvents()};h.prototype.setProperty=function(){"rtl"===n.getDirection()&&
(h.direction="rtl");this.el.section.hasClass(this.classes.typeColor)?this.type="color":this.el.section.hasClass(this.classes.typeSize)&&(this.type="size");this.el.component=this.el.section.find(this.selector.component);this.el.slideWrap=this.el.component.find(this.selector.slideWrap);this.el.slideContainer=this.el.component.find(this.selector.slideContainer);this.el.slideButtonList=this.el.component.find(this.selector.slideButtonList);this.el.slideList=this.el.component.find(this.selector.slideList);
this.el.swiperArrow=this.el.component.find(this.selector.swiperArrow);this.el.colorName=this.el.section.closest(this.selector.wrapper).find(this.selector.colorName);this.el.colorNameText=this.el.colorName.find("\x26 \x3e span");this.el.component.removeClass("bindCheck");this.isTouchEvent=this.handler.touchsupport();this.touchEvents={touchStart:this.isTouchEvent?"touchstart":"mousedown",touchMove:this.isTouchEvent?"touchmove":"mousemove",touchEnd:this.isTouchEvent?"touchend":"mouseup"};this.globalText=
JSON.parse(this.el.section.target[0].dataset.globalText).selected;this.isCentered="true"===this.el.section.attr("data-align-center");this.startX=Math.abs(this.scrollX());if(0<this.startX){var e=this.startX/(this.el.slideContainer.outerWidth()-2*parseInt(this.el.slideContainer.css("padding-right"),10)-this.el.slideWrap.outerWidth())*100;this.percent=Math.abs(e)}};h.prototype.bindEvents=function(){this.el.window.on("resize",this.handler.timeResize);this.el.slideButtonList.on("click",this.handler.changeHandler);
this.el.slideButtonList.on("keyup",this.handler.keyDownHandler);this.el.swiperArrow.on("click",this.handler.handleClickArrow);this.el.colorName.off("mouseenter",this.handler.handleColorNameTooltiopOpen).on("mouseenter",this.handler.handleColorNameTooltiopOpen);this.el.colorNameText.off("focus",this.handler.handleColorNameTooltiopOpen).on("focus",this.handler.handleColorNameTooltiopOpen);this.el.colorName.off("mouseleave",this.handler.handleColorNameTooltiopClose).on("mouseleave",this.handler.handleColorNameTooltiopClose);
this.el.colorNameText.off("focusout",this.handler.handleColorNameTooltiopClose).on("focusout",this.handler.handleColorNameTooltiopClose);this.handler.timeResize();var e=this.el.slideContainer.find(".is-checked");0===this.startX&&e.target.length&&this.el.component.hasClass("bindCheck")&&this.handler.slideTo(e)};h.prototype.unBindEvents=function(){this.el.window.off("resize",this.handler.timeResize);this.el.slideButtonList.off("click",this.handler.clickHandler);this.el.slideButtonList.off("keyup",this.handler.keyDownHandler);
this.el.slideButtonList.off("click",this.handler.changeHandler);this.el.swiperArrow.off("click",this.handler.handleClickArrow);this.el.slideWrap.off(this.touchEvents.touchStart,this.handler.touchStart);this.el.slideWrap.off(this.touchEvents.touchEnd,this.handler.touchEnd)};h.prototype.handleColorName=function(){if("color"===this.type){var e=this.el.section.find(this.selector.slideSelected);e.target.length&&(e=e.find(".hidden"),this.setColorName(e.target.length&&e.target[0].textContent))}};h.prototype.setColorName=
function(e){if(null!==e&&void 0!==e){var b=this.el.section.closest(this.selector.wrapper).find(this.selector.colorName);if(b.target.length){var d=Math.max(0,parseInt(b.attr(this.selector.colorNameMaxchar))),l=Math.max(0,parseInt(b.attr(this.selector.colorNameMaxcharPC)))||d;d=Math.max(0,parseInt(b.attr(this.selector.colorNameMaxcharMO)))||d;var q="desktop"===n.getCurrentDevice()?l:d,r=b.find("\x26 \x3e span"),w=b.find(this.selector.colorNameTooltip);q?(q&&l!==d?r.target.length&&r.innerHTML('\x3cspan class\x3d"option-selector-v2__color-name--pc"\x3e'+
n.getEllipsis(e,l)+'\x3c/span\x3e\x3cspan class\x3d"option-selector-v2__color-name--mo"\x3e'+n.getEllipsis(e,d)+"\x3c/span\x3e"):r.target.length&&r.innerHTML(n.getEllipsis(e,q)),e.length>q?(w.target.length?w.find(this.selector.colorNameTooltipText).innerHTML(e):b.append('\x3cdiv class\x3d"option-selector-v2__color-tooltip"\x3e\x3cp class\x3d"option-selector-v2__color-tooltip-text"\x3e'+e+'\x3c/p\x3e\x3cbutton class\x3d"option-selector-v2__color-tooltip-close"\x3e\x3cspan class\x3d"blind"\x3eClose\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e'),
r.attr("tabindex",0)):(w.remove(),r.removeAttr("tabindex"))):r.text(e)}}};h.prototype.handleColorNameTooltiopOpen=function(){this.el.colorName.find(this.selector.colorNameTooltip).target.length&&(f&&f.closeAll(),this.el.colorName.addClass(this.classes.colorNameTooltipActive))};h.prototype.handleColorNameTooltiopClose=function(){this.el.colorName.removeClass(this.classes.colorNameTooltipActive)};h.direction="ltr";var m=function(){a(".option-selector-v2 .option-selector-v2__wrap").target.forEach(function(e){new h(e)})};
h.instances=new WeakMap;a.ready(m);window.sg.common.optionSelectorV2={init:m,reInit:function(e){a(e).find(".option-selector-v2 .option-selector-v2__wrap").target.forEach(function(b){h.instances.has(b)?h.instances.get(b).reInit():new h(b)})}}})();
(function(){var a=window.sg.common.$q,n=window.sg.common.utils,k=window.sg.components.Tooltip,g=function(h){var m=this;this.isTouchEvent=this.keypress=this.motioning=this.dragging=!1;this.containerPadding=this.timer=this.percent=0;this.type=this.currentDevice=null;this.offset={startX:0,wrapperX:0,x_origine:0,y_origine:0,x_new:0,y_new:0};this.el={window:a(window),document:a(document),section:a(h),component:null,itemList:null,itemButtonList:null};this.selector={wrapper:".option-selector-v3",component:".option-selector-v3__list",
colorNameMaxchar:"data-maxchar",colorNameMaxcharPC:"data-maxchar-pc",colorNameMaxcharMO:"data-maxchar-mo",colorName:".option-selector-v3__color-name",colorNameTooltip:".option-selector-v3__color-tooltip",colorNameTooltipText:".option-selector-v3__color-tooltip-text",colorCode:".option-selector-v3__color-code",sizeText:".option-selector-v3__size-text",itemList:".option-selector-v3__item",itemButtonList:".option-selector-v3__item button",itemSelected:".is-checked"};this.classes={typeColor:"option-selector-v3__wrap--color-chip",
typeSize:"option-selector-v3__wrap--capacity",colorNameTooltipActive:"option-selector-v3__color-name--tooltip-active"};this.handler={touchsupport:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints},heightLimit:function(){return m.isTouchEvent?10:100},eventClick:function(e){e.preventDefault();e.preventDefault?e.preventDefault():e.returnValue=!1},changeHandler:function(e){m.el.itemList.removeClass("is-checked");
m.el.itemList.find(".blind").remove();var b=a(e.target).closest(m.selector.itemList),d=b.find(m.selector.colorCode),l=b.find(m.selector.sizeText);e=e.target.querySelector(".hidden")||null;b.addClass("is-checked");d.target.length&&d.after('\x3cspan class\x3d"blind"\x3e'+m.globalText+"\x3c/span\x3e");l.target.length&&l.after('\x3cspan class\x3d"blind"\x3e'+m.globalText+"\x3c/span\x3e");null!==e&&m.setColorName(e.innerText)},resize:function(){var e=n.getCurrentDevice();m.currentDevice!==e&&m.handleColorName();
m.currentDevice=e},handleColorNameTooltiopOpen:this.handleColorNameTooltiopOpen.bind(this),handleColorNameTooltiopClose:this.handleColorNameTooltiopClose.bind(this)};this.startX=0;this.globalText=null;g.instances.set(h,this);this.init()};g.prototype.init=function(){this.setProperty();this.bindEvents()};g.prototype.reInit=function(){this.isTouchEvent=this.handler.touchsupport();this.setProperty();this.bindEvents()};g.prototype.setProperty=function(){"rtl"===n.getDirection()&&(g.direction="rtl");this.el.section.hasClass(this.classes.typeColor)?
this.type="color":this.el.section.hasClass(this.classes.typeSize)&&(this.type="size");this.el.component=this.el.section.find(this.selector.component);this.el.itemButtonList=this.el.component.find(this.selector.itemButtonList);this.el.itemList=this.el.component.find(this.selector.itemList);this.el.colorName=this.el.section.closest(this.selector.wrapper).find(this.selector.colorName);this.el.colorNameText=this.el.colorName.find("\x26 \x3e span");this.globalText=JSON.parse(this.el.section.target[0].dataset.globalText).selected};
g.prototype.bindEvents=function(){this.el.itemButtonList.off("click",this.handler.changeHandler).on("click",this.handler.changeHandler);this.el.colorName.off("mouseenter",this.handler.handleColorNameTooltiopOpen).on("mouseenter",this.handler.handleColorNameTooltiopOpen);this.el.colorNameText.off("focus",this.handler.handleColorNameTooltiopOpen).on("focus",this.handler.handleColorNameTooltiopOpen);this.el.colorName.off("mouseleave",this.handler.handleColorNameTooltiopClose).on("mouseleave",this.handler.handleColorNameTooltiopClose);
this.el.colorNameText.off("focusout",this.handler.handleColorNameTooltiopClose).on("focusout",this.handler.handleColorNameTooltiopClose);var h=this.el.section.find(this.selector.itemSelected);h.target.length?h.eq(0).trigger("click"):this.el.itemButtonList.eq(0).trigger("click");this.el.window.off("resize",this.handler.resize).on("resize",this.handler.resize)};g.prototype.handleColorName=function(){if("color"===this.type){var h=this.el.section.find(this.selector.itemSelected);h.target.length&&(h=h.find(".hidden"),
this.setColorName(h.target.length&&h.target[0].textContent))}};g.prototype.setColorName=function(h){if(null!==h&&void 0!==h){var m=this.el.section.closest(this.selector.wrapper).find(this.selector.colorName);if(m.target.length){var e=Math.max(0,parseInt(m.attr(this.selector.colorNameMaxchar))),b=Math.max(0,parseInt(m.attr(this.selector.colorNameMaxcharPC)))||e;e=Math.max(0,parseInt(m.attr(this.selector.colorNameMaxcharMO)))||e;var d="desktop"===n.getCurrentDevice()?b:e,l=m.find("\x26 \x3e span"),
q=m.find(this.selector.colorNameTooltip);d?(d&&b!==e?l.target.length&&l.innerHTML('\x3cspan class\x3d"option-selector-v3__color-name--pc"\x3e'+n.getEllipsis(h,b)+'\x3c/span\x3e\x3cspan class\x3d"option-selector-v3__color-name--mo"\x3e'+n.getEllipsis(h,e)+"\x3c/span\x3e"):l.target.length&&l.innerHTML(n.getEllipsis(h,d)),h.length>d?(q.target.length?q.find(this.selector.colorNameTooltipText).innerHTML(h):m.append('\x3cdiv class\x3d"option-selector-v3__color-tooltip"\x3e\x3cp class\x3d"option-selector-v3__color-tooltip-text"\x3e'+
h+'\x3c/p\x3e\x3cbutton class\x3d"option-selector-v3__color-tooltip-close"\x3e\x3cspan class\x3d"blind"\x3eClose\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e'),l.attr("tabindex",0)):(q.remove(),l.removeAttr("tabindex"))):l.text(h)}}};g.prototype.handleColorNameTooltiopOpen=function(){this.el.colorName.find(this.selector.colorNameTooltip).target.length&&(k&&k.closeAll(),this.el.colorName.addClass(this.classes.colorNameTooltipActive))};g.prototype.handleColorNameTooltiopClose=function(){this.el.colorName.removeClass(this.classes.colorNameTooltipActive)};
g.direction="ltr";var f=function(){a(".option-selector-v3 .option-selector-v3__wrap").target.forEach(function(h){new g(h)})};g.instances=new WeakMap;a.ready(f);window.sg.common.optionSelectorV3={init:f,reInit:function(h){a(h).find(".option-selector-v3 .option-selector-v3__wrap").target.forEach(function(m){g.instances.has(m)?g.instances.get(m).reInit():new g(m)})}}})();
(function(){var a=window.sg.common.$q,n=window.sg.common.utils.getCurrentDevice,k=window.sg.common.video,g=window.sg.common.utils.triggerEvent,f=window.sg.common.utils.setMobileFocusLoop,h=window.sg.common.utils.removeMobileFocusLoop,m=function(b){this.el=b;this.init()};m.prototype.setElements=function(){this.els={el:this.el,videoWrapEl:this.el.querySelector(".popup-video__video-wrap"),currentVideoTitleEl:this.el.querySelector(".popup-video__current-video-title"),videoEls:this.el.querySelectorAll(".popup-video__video-wrap .video"),
videoCloseButtonEl:this.el.querySelector(".popup-video__btn-video-close"),popupVideoLoopingStartEl:this.el.querySelector(".popup-video__looping--start"),popupVideoLoopingEndEl:this.el.querySelector(".popup-video__looping--end")};this.currentPlayingVideoEl={};this.focusTargetEl={}};m.prototype.init=function(){m.instances.get(this.el)||(m.instances.set(this.el,this),this.setElements(),this.bindEvents())};m.prototype.reInit=function(){this.currentPlayingVideoEl instanceof Element&&this.close();this.unBindEvents();
this.setElements();this.bindEvents()};m.prototype.destroy=function(){this.unBindEvents();m.instances.has(this.els.el)&&m.instances.delete(this.els.el);this.els=null};m.prototype.setVideoSize=function(){this.els.videoWrapEl.classList.contains("popup-video__video-wrap--vertical")?"desktop"===n()?(this.els.videoWrapEl.style.height=window.innerHeight+"px",this.els.videoWrapEl.style.width=9*window.innerHeight/16+"px"):.9*window.innerWidth<7.2*window.innerHeight/16?(this.els.videoWrapEl.style.height=14.4*
window.innerWidth/9+"px",this.els.videoWrapEl.style.width=.9*window.innerWidth+"px"):(this.els.videoWrapEl.style.height=.8*window.innerHeight+"px",this.els.videoWrapEl.style.width=7.2*window.innerHeight/16+"px"):"desktop"===n()?.9*window.innerHeight<8.1*window.innerWidth/16?(this.els.videoWrapEl.style.width=14.4*window.innerHeight/9+"px",this.els.videoWrapEl.style.height=.9*window.innerHeight+"px"):(this.els.videoWrapEl.style.width=.9*window.innerWidth+"px",this.els.videoWrapEl.style.height=8.1*window.innerWidth/
16+"px"):(this.els.videoWrapEl.style.width=window.innerWidth+"px",this.els.videoWrapEl.style.height=9*window.innerWidth/16+"px")};m.prototype.setFocusToCloseButtonEl=function(){this.els.videoCloseButtonEl.focus()};m.prototype.setFocusToVideoTitleEl=function(){this.els.currentVideoTitleEl.focus()};m.prototype.bindEvents=function(){this.close=this.close.bind(this);this.setFocusToCloseButtonEl=this.setFocusToCloseButtonEl.bind(this);this.setFocusToVideoTitleEl=this.setFocusToVideoTitleEl.bind(this);
this.setVideoSize=this.setVideoSize.bind(this);this.els.videoCloseButtonEl.addEventListener("click",this.close);this.els.popupVideoLoopingStartEl.addEventListener("focus",this.setFocusToCloseButtonEl);this.els.popupVideoLoopingEndEl.addEventListener("focus",this.setFocusToVideoTitleEl);window.addEventListener("resize",this.setVideoSize)};m.prototype.unBindEvents=function(){this.els.videoCloseButtonEl.removeEventListener("click",this.close);this.els.popupVideoLoopingStartEl.removeEventListener("focus",
this.setFocusToCloseButtonEl);this.els.popupVideoLoopingEndEl.removeEventListener("focus",this.setFocusToVideoTitleEl);window.removeEventListener("resize",this.setVideoSize)};m.prototype.open=function(b,d,l){var q=this;b=void 0===b?0:b;d=void 0===d?null:d;"vertical"===(void 0===l?null:l)?this.els.videoWrapEl.classList.add("popup-video__video-wrap--vertical"):this.els.videoWrapEl.classList.remove("popup-video__video-wrap--vertical");this.els.currentVideoTitleEl.innerText=JSON.parse(this.els.videoEls[b].dataset.videoData).title;
document.body.style.overflow="hidden";this.els.el.classList.add("popup-video--show");this.els.videoCloseButtonEl.focus();this.els.videoEls[b].style.display="block";this.setVideoSize();k.init(this.els.videoEls[b]);this.currentPlayingVideoEl=this.els.videoEls[b];this.focusTargetEl=d;"mobile"===n()&&f(this.els.el);setTimeout(function(){q.els.videoWrapEl.focus()},200)};m.prototype.close=function(){k.dispose(this.currentPlayingVideoEl);this.els.currentVideoTitleEl.innerText="";this.currentPlayingVideoEl.removeAttribute("style");
this.els.el.classList.remove("popup-video--show");document.body.removeAttribute("style");this.currentPlayingVideoEl={};this.focusTargetEl instanceof Element&&this.focusTargetEl.focus();"mobile"===n()&&h();g(this.els.el,"popupVideoClose")};m.instances=new WeakMap;var e={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".popup-video"))).forEach(function(b){m.instances.has(b)||new m(b)})},init:function(b){m.instances.has(b)||new m(b)},reInit:function(b){m.instances.has(b)?
m.instances.get(b).reInit():new m(b)},destroy:function(b){m.instances.has(b)&&m.instances.get(b).destroy()},open:function(b,d,l,q){m.instances.has(b)?m.instances.get(b).open(d,l,q):(new m(b)).open(d,l,q)},close:function(b){m.instances.has(b)?m.instances.get(b).close():(new m(b)).close()}};window.sg.common.popupVideo=e;a.ready(e.initAll)})();
(function(){var a=window.sg.common.constants.KEY_CODE,n={getFirstFocusableEl:window.sg.common.utils.getFirstFocusableEl,setFocusFirstFocusableEl:window.sg.common.utils.setFocusFirstFocusableEl,setMobileFocusLoop:window.sg.common.utils.setMobileFocusLoop,removeMobileFocusLoop:window.sg.common.utils.removeMobileFocusLoop,hideScroll:window.sg.common.utils.hiddenScroll,showScroll:window.sg.common.utils.visibleScroll,handlePopstate:{open:window.sg.common.utils.popupControl.open,close:window.sg.common.utils.popupControl.close},
showOverDimEls:window.sg.common.utils.showOverDimEls,hideOverDimEls:window.sg.common.utils.hideOverDimEls},k=window.sg.common.utils.getMobileOS,g=function(){return window.sg.components.Base.apply(this,arguments)||this};$jscomp.inherits(g,window.sg.components.Base);g.prototype._init=function(){this.els={el:this.el,closeEl:null,innerEl:null,scrollEls:null,childEl:null,actionsWrapEl:null};this.id=null;this.isOpen=!1;this.focusTargetEl=null;this._setElements();this._bindEvents()};g.prototype._setElements=
function(){this.els.closeEl=this.els.el.querySelector(".popup__close");this.els.innerEl=this.els.el.querySelector(".popup__inner");this.els.scrollEls=this.els.el.querySelectorAll('[data-comp-name\x3d"scrollbar"]');this.els.childEl=this.els.el.querySelector(".popup__inner \x3e [data-comp-name]");this.els.actionsWrapEl=this.els.el.querySelector(".popup__btn-wrap");this.id=this.els.el.getAttribute("id");(this.child=this.getChild(this.els.childEl))&&this.child.setOptions({id:this.id});this.isOpen=!!this.els.el.classList.contains("popup--open")};
g.prototype._bindEvents=function(){this.close=this.close.bind(this);this._handleKeydown=this._handleKeydown.bind(this);this._handleCloseKeydown=this._handleCloseKeydown.bind(this);this._handleActionClick=this._handleActionClick.bind(this);this._handleSetActions=this._handleSetActions.bind(this);this._handleReInit=this._handleReInit.bind(this);this.els.closeEl.addEventListener("click",this.close);this.els.el.addEventListener("keydown",this._handleKeydown);this.els.closeEl.addEventListener("keydown",
this._handleCloseKeydown);this.child&&(this.child.listen("setButtons",this._handleSetActions),this.child.listen("reInit",this._handleReInit),this.child.listen("close",this.close));this.els.actionsWrapEl&&this.els.actionsWrapEl.addEventListener("click",this._handleActionClick)};g.prototype._unBindEvents=function(){this.els.closeEl.removeEventListener("click",this.close);this.els.el.removeEventListener("keydown",this._handleKeydown);this.els.closeEl.removeEventListener("keydown",this._handleCloseKeydown);
this.child&&(this.child.unListen("setButtons",this._handleSetActions),this.child.unListen("close",this.close));this.els.actionsWrapEl&&this.els.actionsWrapEl.removeEventListener("click",this._handleActionClick)};g.prototype.open=function(f){var h=this;this.isOpen||(this.focusTargetEl=f&&f instanceof Element?f:document.activeElement,this.els.el.classList.add("popup--open"),this.isOpen=!0,n.handlePopstate.open(this.close),n.hideScroll(),n.setMobileFocusLoop(this.el),n.hideOverDimEls(),"ios"===k()?setTimeout(function(){return h._setFocusFirstFocusableEl()},
450):this._setFocusFirstFocusableEl(),f={id:this.id},this.emit("open",f),window.sg.common.lazyLoad.setLazyLoadManually(this.els.innerEl),Array.from(this.els.scrollEls).forEach(function(m){h.getChild(m).resize()}),this._handleControl("open",f))};g.prototype._handleControl=function(f,h){if(this.child&&this.child[f]&&"function"===typeof this.child[f])this.child[f](h)};g.prototype._reInit=function(){this._unBindEvents();this._setElements();this._bindEvents()};g.prototype._destroy=function(){this._unBindEvents()};
g.prototype.close=function(){var f=this;if(this.isOpen){this.els.el.classList.remove("popup--open");n.handlePopstate.close(this.els.el.dataset.backHistory&&"true"===this.els.el.dataset.backHistory?!0:!1);n.showScroll();n.removeMobileFocusLoop();n.showOverDimEls();if(this.focusTargetEl&&this.focusTargetEl instanceof Element){var h=function(){f.focusTargetEl.focus();f.focusTargetEl=null};"ios"===k()?setTimeout(h,200):h()}this.isOpen=!1;h={id:this.id};this.emit("close",{id:this.id},!0);this._handleControl("close",
h)}};g.prototype._handleKeydown=function(f){if(f.shiftKey&&a.TAB===f.keyCode){var h=this._getFirstFocusableEl();h&&f.target===h&&(f.preventDefault(),this.els.closeEl.focus())}};g.prototype._handleCloseKeydown=function(f){f.shiftKey||a.TAB!==f.keyCode||(f.preventDefault(),this._setFocusFirstFocusableEl())};g.prototype._setFocusFirstFocusableEl=function(){var f=this.els.el.querySelector(".popup__title"),h=f||this._getFirstFocusableEl();f&&f.setAttribute("tabindex","-1");h&&h.focus()};g.prototype._getFirstFocusableEl=
function(){var f=n.getFirstFocusableEl(this.els.el);if(f&&f.matches('input[type\x3d"radio"]')){var h=this.els.el.querySelector('input[type\x3d"radio"][name\x3d"'+f.name+'"]:checked');h&&(f=h)}return f};g.prototype._handleActionClick=function(f){if(f=f.target.dataset.action)f={id:this.id,action:f},this.emit("action",f),this._handleControl("action",f)};g.prototype._handleSetActions=function(f){var h=this;f.stopPropagation();var m=f.detail;Array.isArray(m)||(m=[m]);m.forEach(function(e){var b=h.els.actionsWrapEl.querySelector("[data-action\x3d'"+
e.action+"']");b&&("enable"===e.state?(b.classList.remove("cta--disabled"),b.disabled=!1):"disable"===e.state&&(b.classList.add("cta--disabled"),b.disabled=!0),f.detail.focus&&b.focus())})};g.prototype._handleReInit=function(f){(f=f.detail.el?f.detail.el:null)?this.reInit(f):this.reInit()};window.sg.components.registerClass("popup",g)})();
(function(){var a="function"===typeof currencyComma?currencyComma:function(l){return l},n=function(l,q){q=void 0===q?null:q;return"undefined"!==typeof Granite?Granite.I18n.get(l,q):q},k=document.querySelector("#siteCode")?document.querySelector("#siteCode").value:"",g="de dk ee fi fr hr hu it lt lv no pl pt se si ro".split(" ").includes(k),f="ro se dk fi no hr si".split(" ").includes(k),h="au ch ch_fr dk fi fr no pl se hu".split(" ").includes(k),m={bg:"type-e-bg",br:"type-e-br",ch:"type-e-ch",ch_fr:"type-e-ch",
hu:"type-e-hu","in":"type-e-in",pl:"type-e-pl",uk:"type-e-uk",pt:"type-e-pt",au:"type-b1",es:"type-b1",hk_en:"type-b1",hk:"type-b1",il:"type-b1",jp:"type-b1",n_africa:"type-b1",nz:"type-b1",pk:"type-b1",sa_en:"type-b1",sa:"type-b1",sg:"type-b1",th:"type-b1",tw:"type-b1",vn:"type-b1",za:"type-b1",ae_ar:"type-b2",ae:"type-b2",ca_fr:"type-b2",ca:"type-b2",eg:"type-b2",levant_ar:"type-b2",levant:"type-b2",se:"type-b2",no:"type-b2",dk:"type-b2",fi:"type-b2",at:"type-c",nl:"type-c",ro:"type-c",tr:"type-d"},
e=function(l){this.apiData=l;this.priceObj={usePrice:!0,type:this.apiData.type,total:0,totalDisplay:"",origin:0,originDisplay:"",save:0,saveDisplay:"",installmentObj:{},installText:null,priceCurrency:this.apiData.currency||this.apiData.priceCurrency,desc:""};this.init()};e.prototype.init=function(){this.setUsePrice();this.priceObj.usePrice&&this.setPriceObjectByDefaultRule();return this.priceObj};e.prototype.setUsePrice=function(){var l=this.apiData.ctaType.toUpperCase();if("pl"===k&&"OUTOFSTOCK"===
l)this.priceObj.usePrice=!1;else if("NOORDER"===l||"LEARNMORE"===l)this.priceObj.usePrice=!1};e.prototype.setPriceObjectByDefaultRule=function(){var l=this.priceObj,q=this.apiData;if(g){var r=q.lowestWasPrice;l.origin=0!==r&&""!==r&&null!==r&&"null"!==r&&parseFloat(q.lowestWasPrice)}else q.price&&(l.origin=parseFloat(q.price));g?l.originDisplay=q.lowestWasPriceDisplay:q.priceDisplay?l.originDisplay=q.priceDisplay:q.price&&(l.originDisplay=a(q.price,l.priceCurrency));q.promotionPrice?l.total=parseFloat(q.promotionPrice):
q.price&&(l.total=parseFloat(q.price));q.promotionPriceDisplay?l.totalDisplay=q.promotionPriceDisplay:l.total&&(l.totalDisplay=a(l.total,l.priceCurrency));l.origin>l.total&&(l.save=l.origin-l.total,l.saveDisplay=a(l.save,l.priceCurrency));q.monthlyPriceInfo&&q.monthlyPriceInfo.leasingMonthly&&q.monthlyPriceInfo.leasingMonths&&(l.installmentObj.useMonthlyPrice=!0,l.installmentObj.monthlyPrice=a(q.monthlyPriceInfo.leasingMonthly,l.priceCurrency),l.installmentObj.tenureVal=q.monthlyPriceInfo.leasingMonths,
q.monthlyPriceInfo.interest&&(l.installmentObj.leasingInterest=q.monthlyPriceInfo.interest));switch(k){case "pl":l.save&&(l.saveDisplay=n("Save {0}",l.saveDisplay));l.desc="Najni\u017csza cena z 30 dni przed obni\u017ck\u0105: ";break;case "bg":case "ro":l.originDisplay=n("RRP {0}",l.originDisplay);break;case "nl":q.msrpPrice&&(l.originDisplay=n("Recommend price")+" "+q.msrpPrice);break;case "at":case "dk":case "fi":case "iq_ar":case "iq_ku":case "no":case "se":case "tr":break;case "it":l.save&&(l.saveDisplay=
n("Save the {0}%",(l.save/l.origin*100).toFixed(2).replace(".",",")));break;case "au":case "es":case "hk_en":case "hk":case "il":case "jp":case "n_africa":case "nz":case "pk":case "sa_en":case "sa":case "sg":case "th":case "tw":case "vn":case "za":l.save&&(l.saveDisplay=q.formattedPriceSave);break;case "ae":case "ae_ar":case "levant":case "levant_ar":case "eg":case "ca":case "ca_fr":l.save&&(l.originDisplay=q.formattedPriceSave);break;case "ch":case "ch_fr":l.save&&(l.saveDisplay=q.formattedPriceSave);
l.installText=l.installmentObj.useMonthlyPrice?n("{0}/mo at",[l.installmentObj.monthlyPrice])+" "+n("{0} Monthly installments",l.installmentObj.tenureVal)+", "+n("total (installment)")+" "+q.priceDisplay:"";break;case "hu":l.save&&(l.originDisplay=""+n("Best price in the past 30 days:")+l.originDisplay+"("+Math.round(-l.save/l.origin*100)+"%)",l.saveDisplay=q.formattedPriceSave);break;case "in":l.totalDisplay=a(l.total,l.priceCurrency);l.originDisplay="MRP: "+a(q.price,l.priceCurrency)+" (Incl. of all taxes)";
l.save&&(l.saveDisplay=n("Save {0}",l.saveDisplay));break;case "br":l.originDisplay=q.rrpPriceDisplay;q.formattedPriceSave&&(l.save=1,l.saveDisplay=q.formattedPriceSave);break;default:l.save&&(l.saveDisplay=n("Save {0}",l.saveDisplay))}l.type||(l.type=m[k]||"type-b");this.setUseWasAndRRPSitePrice()};e.prototype.setUseWasAndRRPSitePrice=function(){if(f&&!this.priceObj.origin){var l=this.priceObj,q=this.apiData;q.price&&(l.origin=parseFloat(q.price));q.priceDisplay?l.originDisplay=q.priceDisplay:q.price&&
(l.originDisplay=a(q.price,l.priceCurrency));l.origin>l.total&&(l.save=l.origin-l.total,l.saveDisplay=a(l.save,l.priceCurrency));switch(k){case "hr":case "si":l.save&&(l.saveDisplay=n("Save {0}",l.saveDisplay));break;case "bg":case "ro":l.originDisplay=n("RRP {0}",l.originDisplay)}}};e.prototype.getPriceObject=function(){return this.priceObj};var b=function(){if(b.instance)return b.instance;this.instance=this;this.priceObj};b.prototype.getPriceInfoByProductInfo=function(l){return(new e(l)).getPriceObject()};
b.prototype.buildPrice=function(){var l=this.priceObj,q=l.type,r=l.originDisplay,w=l.totalDisplay,x=l.save,C=l.saveDisplay,E=l.installText,z=l.desc;l=function(ya,ma){return'\x3cdiv class\x3d"price-ux__price-current"\x3e\x3cstrong\x3e'+ya+"\x3c/strong\x3e"+(void 0===ma?"":ma)+"\x3c/div\x3e"};var T=function(ya,ma){return' \x3cspan class\x3d"price-ux__price-current-sub"\x3e'+(void 0===ma||ma?"\x3cem\x3e"+ya+"\x3c/em\x3e":ya)+"\x3c/span\x3e"},ca=function(ya){return'\x3cdiv class\x3d"price-ux__price-sub"\x3e'+
ya+"\x3c/div\x3e"},oa=function(ya){return'\x3cp class\x3d"price-ux__price-save"\x3e\x3cem\x3e'+ya+"\x3c/em\x3e\x3c/p\x3e"},ba=function(ya){return'\x3cp class\x3d"price-ux__price-original"\x3e'+(h?"\x3cdel\x3e"+ya+"\x3c/del\x3e":ya)+"\x3c/p\x3e"},xa=function(ya){return'\x3cdiv class\x3d"price-ux__desc"\x3e'+ya+"\x3c/div\x3e"};if(["type-b1"].includes(q))return r=x?ca(oa(C)):"",l(w)+r;if("type-b2 type-c type-e-se type-e-no type-e-dk type-e-fi type-e-bg".split(" ").includes(q))return r=x?ca(ba(r)):"",
l(w)+r;if(["type-d"].includes(q))return l(w);if("type-e-uk type-e-mx type-e-pe type-e-co type-e-cl type-e-pt".split(" ").includes(q))return r=x?ca(ba(r)+oa(C)):"",l(w)+r;if(["type-e-hu"].includes(q))return r=x?xa(r)+ca(oa(C)):"",l(w)+r;if(["type-e-ch"].includes(q))return r=x?ca(oa(C)):"",l(w)+r+xa(E);if(["type-e-pl"].includes(q))return C=x?T(C):"",r=x?xa(z)+ca(ba(r)):"",l(w,C)+r;if(["type-e-in"].includes(q))return x=x?T(C):"",r=ca(ba(r)),l(w,x)+r;if(["type-e-br"].includes(q))return E=x?T(" \u00e0 vista",
!1):"",C=x?ca(oa(C)):"",r=x?ca(ba(r)):"",l(w,E)+C+r;C=x?T(C):"";r=x?ca(ba(r)):"";return l(w,C)+r};b.prototype.getPriceHTML=function(l){this.priceObj=this.getPriceInfoByProductInfo(l);return'\n        \x3cdiv class\x3d"price-ux__wrap'+(h?"":" price-ux__wrap--no-line-through")+'"\x3e\n          '+(this.priceObj.usePrice?this.buildPrice():"")+"\n        \x3c/div\x3e"};var d=null;window.sg.common.price={getPriceInfoByProductInfo:function(l,q){d||(d=new b);l.currency=q;return d.getPriceInfoByProductInfo(l)},
getPrice:function(l,q){l=Object.assign({},l,{currency:q.currency,type:void 0===q.type?"":q.type});d||(d=new b);return d.getPriceHTML(l)}}})();
(function(){function a(){n(f.section).target.forEach(function(b){e.instances.has(b)||new e(b)})}var n=window.sg.common.$q,k=window.sg.common.utils,g="function"===typeof currencyComma?currencyComma:function(b,d){return""+b+d},f={section:".multi-range-slider"},h={},m=(h["default"]="default",h.number="number",h.currency="currency",h),e=function(b){this.selector={rangeTrack:".multi-range-slider__track",rangeHandleMin:".multi-range-slider__range-handle--min",rangeHandleMax:".multi-range-slider__range-handle--max",
rangeInput:".multi-range-slider__range input",rangeMinEl:".multi-range-slider__range--min",rangeMaxEl:".multi-range-slider__range--max",textFieldWrap:".multi-range-slider__text",textFieldMinEl:".multi-range-slider__text-field--min",textFieldMaxEl:".multi-range-slider__text-field--max",textInput:".multi-range-slider__text input",textMinEl:".multi-range-slider__text--min",textMaxEl:".multi-range-slider__text--max",rangeProgress:".multi-range-slider__progress",stepIndicator:".multi-range-slider__step-indicator"};
this.type=m.default;this.els={section:n(b),sectionEl:b};this.handler={handleResize:this.handleResize.bind(this),handleInputValues:this.handleInputValues.bind(this)};this.init();e.instances.set(b,this)};e.prototype.init=function(){this.setElements();this.setType();this.setInitialValues();this.setOptions();this.setRangeSliderOptions();this.drawInitValues();this.bindEvents()};e.prototype.reInit=function(){this.unbindEvents();this.setElements();this.setType();this.setInitialValues();this.setOptions();
this.setRangeSliderOptions();this.drawInitValues();this.bindEvents()};e.prototype.setOptions=function(){this.els.stepIndicator.target.length&&this.els.stepIndicator.remove();var b=this.els.section.attr("data-slider-data");if(b){var d=JSON.parse(b),l=d.stepIndicator,q=d.stepType;b=d.step;this.options=d;if(l&&q&&b){d=Math.floor(100/parseInt(b));for(l=0;l<d;l++){q=document.createElement("div");var r=b*(l+1),w=(this.rangeMaxValue-this.rangeMinValue)*r/100;q.classList.add("multi-range-slider__step-indicator");
q.setAttribute("data-step-value",w);k.isRtl()?q.style.right=r+"%":q.style.left=r+"%";this.els.rangeTrack.append(q)}this.els.stepIndicator=this.els.section.find(this.selector.stepIndicator)}}else this.options={},this.options.stepIndicator=!1,this.options.stepType="percent",this.options.step=1,this.options.activeMaxStepIndicatorIndex=0};e.prototype.updateStepIndicatorActive=function(){var b=this;if(this.options.stepIndicator){var d=this.els.rangeMaxEl.attr("value");this.els.stepIndicator.target.forEach(function(l,
q){l=n(l);var r=l.attr("data-step-value");parseInt(r)<=parseInt(d)?(l.addClass("multi-range-slider__step-indicator--active"),b.options.activeMaxStepIndicatorIndex=q):l.removeClass("multi-range-slider__step-indicator--active")});this.els.stepIndicator.hasClass("multi-range-slider__step-indicator--active")||(this.options.activeMaxStepIndicatorIndex=-1)}};e.prototype.setElements=function(){this.els.rangeTrack=this.els.section.find(this.selector.rangeTrack);this.els.rangeHandleMin=this.els.section.find(this.selector.rangeHandleMin);
this.els.rangeHandleMax=this.els.section.find(this.selector.rangeHandleMax);this.els.rangeInput=this.els.section.find(this.selector.rangeInput);this.els.rangeMinEl=this.els.section.find(this.selector.rangeMinEl);this.els.rangeMaxEl=this.els.section.find(this.selector.rangeMaxEl);this.els.textFieldWrap=this.els.section.find(this.selector.textFieldWrap);this.els.textFieldMinEl=this.els.section.find(this.selector.textFieldMinEl);this.els.textFieldMaxEl=this.els.section.find(this.selector.textFieldMaxEl);
this.els.textInput=this.els.section.find(this.selector.textInput);this.els.textMinEl=this.els.section.find(this.selector.textMinEl);this.els.textMaxEl=this.els.section.find(this.selector.textMaxEl);this.els.rangeProgress=this.els.section.find(this.selector.rangeProgress);this.els.stepIndicator=this.els.section.find(this.selector.stepIndicator)};e.prototype.setType=function(){var b=this;switch((this.els.section.attr("data-type")||"default").toLowerCase()){case m.default:case m.number:this.type=m.number;
this.adaptor=function(d){return(new Intl.NumberFormat("en-US")).format(String(d))};break;case m.currency:this.type=m.currency;this.currency=this.els.section.attr("data-currency")||"";this.adaptor=function(d){return g(d,b.currency)};break;default:this.type=m.default,this.adaptor=function(d){return(new Intl.NumberFormat("en-US")).format(String(d))}}};e.prototype.setInitialValues=function(){this.rangeMinValue=this.els.rangeMinEl.attr("min")||0;this.rangeMaxValue=this.els.rangeMaxEl.attr("max")||100;
this.minPrefix=this.els.textFieldMinEl.attr("data-prefix")||"";this.minSuffix=this.els.textFieldMinEl.attr("data-suffix")||"";this.maxPrefix=this.els.textFieldMaxEl.attr("data-prefix")||"";this.maxSuffix=this.els.textFieldMaxEl.attr("data-suffix")||"";this.initialMinValue=this.els.rangeMinEl.attr("value")||this.rangeMinValue;this.initialMaxValue=this.els.rangeMaxEl.attr("value")||this.rangeMaxValue};e.prototype.setRangeSliderOptions=function(){var b=this;this.range=this.rangeMaxValue-this.rangeMinValue;
this.rangeStart=this.rangeMinValue/this.range*100;this.rangeGap=this.options.stepIndicator?0:10;this.step=this.els.rangeMinEl.attr("data-step")?this.els.rangeMinEl.attr("data-step")*this.range/100:1*this.range/100;this.els.rangeInput.target.forEach(function(d){d.min=b.rangeMinValue;d.max=b.rangeMaxValue;d.step=b.step})};e.prototype.drawValues=function(b){for(var d=[],l=0;l<arguments.length;++l)d[l-0]=arguments[l];l=Math.min(this.rangeMaxValue,Math.max(this.rangeMinValue,2>d.length?0:d[0]));d=Math.max(this.rangeMinValue,
Math.min(this.rangeMaxValue,2>d.length?d[0]:d[1]));this.updateInputValue(this.els.rangeMinEl,l);this.updateInputValue(this.els.rangeMaxEl,d);this.makeDisplayText(l,d);this.setOffset(l,d);"rtl"===k.getDirection()?(this.els.rangeProgress.css({right:l/this.range*100-this.rangeStart+this.minHandleOffset+"%",left:100-d/this.range*100+this.rangeStart+this.maxHandleOffset+"%"}),this.els.rangeHandleMin.css({right:l/this.range*100-this.rangeStart+this.minHandleOffset+"%"}),this.els.rangeHandleMax.css({left:100-
d/this.range*100+this.rangeStart+this.maxHandleOffset+"%"})):(this.els.rangeProgress.css({left:l/this.range*100-this.rangeStart+this.minHandleOffset+"%",right:100-d/this.range*100+this.rangeStart+this.maxHandleOffset+"%"}),this.els.rangeHandleMin.css({left:l/this.range*100-this.rangeStart+this.minHandleOffset+"%"}),this.els.rangeHandleMax.css({right:100-d/this.range*100+this.rangeStart+this.maxHandleOffset+"%"}));this.updateStepIndicatorActive()};e.prototype.drawInitValues=function(){this.drawValues(this.initialMinValue,
this.initialMaxValue)};e.prototype.bindEvents=function(){window.addEventListener("resize",this.handler.handleResize);this.els.rangeInput.on("input",this.handler.handleInputValues)};e.prototype.unbindEvents=function(){window.removeEventListener("resize",this.handler.handleResize);this.els.rangeInput.off("input",this.handler.handleInputValues)};e.prototype.makeDisplayText=function(b,d){var l=parseFloat(b),q=parseFloat(d);0<=l&&(b=""+this.minPrefix+this.adaptor(b)+this.minSuffix,this.updateInputValue(this.els.textMinEl,
b));0<=q&&(d=""+this.maxPrefix+this.adaptor(d)+this.maxSuffix,this.updateInputValue(this.els.textMaxEl,d))};e.prototype.updateInputValue=function(b,d){b.target[0]&&(b.target[0].value=d,b.attr("value",d))};e.prototype.getHandleSize=function(){this.handleSize=this.els.rangeHandleMin.target.length&&!this.options.stepIndicator?this.els.rangeHandleMin.target[0].offsetWidth:0};e.prototype.getRangeTrackSize=function(){this.rangeTrackW=this.els.rangeTrack.offset().width};e.prototype.setOffset=function(b,
d){this.getHandleSize();this.getRangeTrackSize();this.minHandleOffset=(this.handleSize/2-(b-this.rangeMinValue)/this.range*this.handleSize)/this.rangeTrackW*100;this.maxHandleOffset=(this.handleSize/2-(this.rangeMaxValue-d)/this.range*this.handleSize)/this.rangeTrackW*100};e.prototype.handleInputValues=function(b){if(this.els.rangeMinEl.target.length&&this.els.rangeMaxEl.target.length){var d=parseInt(this.els.rangeMinEl.target[0].value),l=parseInt(this.els.rangeMaxEl.target[0].value);l/this.range*
100-d/this.range*100<=this.rangeGap&&(b.target===this.els.rangeMinEl.target[0]?d=l-parseInt(this.rangeGap*this.range/100):l=d+parseInt(this.rangeGap*this.range/100));this.drawValues(d,l)}};e.prototype.handleResize=function(){this.getHandleSize();this.getRangeTrackSize()};e.prototype.goNextStep=function(){var b=this.els.stepIndicator.eq(this.options.activeMaxStepIndicatorIndex+1);b.target.length&&this.drawValues(b.attr("data-step-value"))};e.prototype.goPrevStep=function(){var b=this.els.rangeMaxEl.attr("value"),
d=this.options.activeMaxStepIndicatorIndex;d=this.els.stepIndicator.eq(d);var l=d.attr("data-step-value");b>l?this.drawValues(l):(d=this.options.activeMaxStepIndicatorIndex-1,d=this.els.stepIndicator.eq(d),l=d.attr("data-step-value"),this.drawValues(d.target.length?l:this.rangeMinValue))};e.instances=new WeakMap;window.sg.components.RangeSlider={init:a,reInit:function(){n(f.section).target.forEach(function(b){e.instances.has(b)?e.instances.get(b).reInit():new e(b)})},updateRange:function(b,d,l){e.instances.has(b)?
e.instances.get(b).drawValues(d,l):(new e(b)).drawValues(d,l)},goNextStep:function(b){return e.instances.has(b)?e.instances.get(b).goNextStep():(new e(b)).goNextStep()},goPrevStep:function(b){return e.instances.has(b)?e.instances.get(b).goPrevStep():(new e(b)).goPrevStep()},getRangeSlider:function(b){return e.instances.has(b)?e.instances.get(b):new e(b)}};n.ready(a)})();
(function(){var a=function(){return window.sg.components.Base.apply(this,arguments)||this};$jscomp.inherits(a,window.sg.components.Base);a.prototype._init=function(){this.els={el:this.el,containerEl:null,wrapperEl:null,slideEls:null,prevEl:null,nextEl:null,indicatorEl:null};this.isCarousel=!1;this.indicator=this.swiper=null;this.isLoop=!1;this._setElements();this._setSwiper();this._bindEvents()};a.prototype._setElements=function(){this.els.containerEl=this.els.el.querySelector(".slider__container");
this.els.wrapperEl=this.els.el.querySelector(".slider__wrapper");this.els.slideEls=this.els.el.querySelectorAll(".slider__slide");this.els.prevEl=this.els.el.querySelector(".arrow-indicator--prev");this.els.nextEl=this.els.el.querySelector(".arrow-indicator--next");this.els.indicatorEl=this.els.el.querySelector(".indicator")};a.prototype._setSwiper=function(){if(this.isCarousel=1<this.els.slideEls.length)this.isLoop=this.els.el.hasAttribute("data-loop"),this.swiper=new Swiper(this.els.containerEl,
{loop:this.isLoop,navigation:{prevEl:this.els.prevEl,nextEl:this.els.nextEl}}),this.els.slideEls=this.els.el.querySelectorAll(".slider__slide"),this._setSwiperArrows(),this._setAccessibility(),this.indicator=this.getChild(this.els.indicatorEl)};a.prototype._bindEvents=function(){var n=this;this.isCarousel&&(this.swiper.on("slideChange",function(){n._setSwiperArrows();n._setAccessibility();n.indicator.select(n.swiper.realIndex);window.sg.common.lazyLoad.setLazyLoadManually(n.els.slideEls[n.swiper.activeIndex])}),
this._handleIndicatorMove=this._handleIndicatorMove.bind(this),this.els.indicatorEl.addEventListener("indicatorMove",this._handleIndicatorMove))};a.prototype._unBindEvents=function(){this.isCarousel&&this.els.indicatorEl.removeEventListener("indicatorMove",this._handleIndicatorMove)};a.prototype._setSwiperArrows=function(){this.isLoop||(this.swiper.isBeginning?(document.activeElement===this.els.prevEl&&this.els.nextEl.focus(),this.els.prevEl.style.display="none"):this.els.prevEl.style.display="",
this.swiper.isEnd?(document.activeElement===this.els.nextEl&&this.els.prevEl.focus(),this.els.nextEl.style.display="none"):this.els.nextEl.style.display="")};a.prototype._setAccessibility=function(){var n=this;[].concat($jscomp.arrayFromIterable(this.els.slideEls)).forEach(function(k,g){g===n.swiper.activeIndex?(k.removeAttribute("aria-hidden"),[].concat($jscomp.arrayFromIterable(k.querySelectorAll('input, select, textarea, button, [href], [tabindex]:not([tabindex\x3d"-1"])'))).forEach(function(f){f.removeAttribute("tabindex");
f.removeAttribute("aria-hidden")})):(k.setAttribute("aria-hidden","true"),[].concat($jscomp.arrayFromIterable(k.querySelectorAll('input, select, textarea, button, [href], [tabindex]:not([tabindex\x3d"-1"])'))).forEach(function(f){f.setAttribute("tabindex","-1");f.setAttribute("aria-hidden","true")}))})};a.prototype._handleIndicatorMove=function(n){this.swiper&&n.detail!==this.swiper.realIndex&&this.swiper.slideToLoop(n.detail)};a.prototype._reInit=function(){this._unBindEvents();this.swiper&&this.swiper.destroy();
this._setElements();this._setSwiper();this._bindEvents()};a.prototype._destroy=function(){this._unBindEvents();this.swiper.destroy()};window.sg.components.registerClass("slider",a)})();
(function(){var a=window.sg.common.$q,n=function(g){this.els={el:g,linkActionEl:g.querySelector(".cta")};this.init()};n.prototype.init=function(){n.instances.get(this.els.el)||(n.instances.set(this.els.el,this),this.bindEvents())};n.prototype.bindEvents=function(){this.els.el.style.bottom=-this.els.el.getBoundingClientRect().height+"px";this.els.linkActionEl&&this.els.linkActionEl.setAttribute("tabindex","-1")};n.prototype.open=function(){var g=this;this.els.el.removeAttribute("aria-hidden");this.els.linkActionEl&&
this.els.linkActionEl.removeAttribute("tabindex");this.els.el.classList.add("show");this.els.el.style.bottom="24px";setTimeout(function(){g.els.el.style.transitionProperty="opacity";g.els.el.style.opacity="0"},3500);setTimeout(function(){g.els.el.classList.remove("show");g.els.el.removeAttribute("style");g.els.el.setAttribute("aria-hidden",!0);g.els.el.style.bottom=-g.els.el.getBoundingClientRect().height+"px";g.els.linkActionEl&&g.els.linkActionEl.setAttribute("tabindex","-1")},4E3)};n.instances=
new WeakMap;var k={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".snack-bar"))).forEach(function(g){n.instances.has(g)||new n(g)})},show:function(g){n.instances.has(g)?n.instances.get(g).open():(new n(g)).open()}};window.sg.common.snackBar=k;a.ready(k.initAll)})();
(function(){var a=window.sg.common.$q,n=window.sg.common.utils.getCurrentDevice,k=window.sg.common.utils.getCurrentMediaType,g=window.BezierEasing,f=window.sg.common.utils.triggerEvent,h=window.sg.common.utils.addEventListener,m=window.sg.common.utils.removeAllEventListeners,e=window.sg.common.utils.getNormalizedScrollLeft,b=window.sg.common.utils.setNormalizedScrollLeft,d=window.sg.common.utils.isRtl,l=window.sg.common.constants.KEY_CODE,q=window.sg.common.lazyLoad,r=function(x,C){this.selector=
{setPositionOption:"[data-set-scroll-position]",focusable:"a[href], button:not([disabled])"};this.els={el:x,tabListEl:null,tabItemTitleEls:[],tabLeftArrowEl:null,tabRightArrowEl:null};this.selectedAriaTypeText={selected:"selected",current:"current"};this.scrollEndTime=this.dragStartTitle=null;this.init(void 0===C?0:C)};r.prototype.init=function(x){x=void 0===x?0:x;r.instances.has(this.els.el)||(r.instances.set(this.els.el,this),this.initValues(),this.setElements(),this.setSelectedAriaType(),this.bindEvents(),
this.select(x,!0))};r.prototype.reInit=function(x){x=void 0===x?0:x;this.unBindEvents();this.initValues();this.setElements();this.setSelectedAriaType();this.bindEvents();if("false"===this.els.el.dataset.reinitActive){var C=this.els.el.querySelector(".tab__item--active .tab__item-title");C?this.index=[].concat($jscomp.arrayFromIterable(this.els.tabItemTitleEls)).indexOf(C):this.select(x)}else this.select(x)};r.prototype.destroy=function(){this.unBindEvents();r.instances.has(this.els.el)&&r.instances.delete(this.els.el);
this.els=null};r.prototype.initValues=function(){this.index=-1;this.startX=0;this.isAnim=this.isContentsDragging=!1;this.diffX=0;this.device="";this.selectDisabled=!1;this.selectedAriaType=this.selectedAriaTypeText.selected;this.selectedAriaDisabled=!1;this.isUseArrow=void 0!==this.els.el.dataset.useArrow;this.isUseArrowMo=void 0!==this.els.el.dataset.useArrowMo;this.setPositionOption=this.els.el.dataset.setScrollPosition;this.intoScrollExtend=this.els.el.dataset.intoScrollExtend;this.duration=300;
this.easing=g(.4,0,.2,1);this.isRtl=d()};r.prototype.setElements=function(){this.els.tabListEl=this.els.el.querySelector(".tab__list");this.els.tabItemTitleEls=this.els.el.querySelectorAll(".tab__item-title");if(this.isUseArrow){this.els.tabLeftArrowEl=this.els.el.querySelector(".tab__left-arrow");this.els.tabRightArrowEl=this.els.el.querySelector(".tab__right-arrow");if(this.isRtl){var x=this.els.tabLeftArrowEl.getAttribute("aria-label"),C=this.els.tabRightArrowEl.getAttribute("aria-label");this.els.tabLeftArrowEl.setAttribute("aria-label",
C);this.els.tabRightArrowEl.setAttribute("aria-label",x)}this.setArrow()}};r.prototype.setSelectedAriaType=function(){this.selectedAriaType=this.els.el.hasAttribute("data-selected-aria-type")&&this.els.el.getAttribute("data-selected-aria-type")===this.selectedAriaTypeText.current?this.selectedAriaTypeText.current:this.selectedAriaTypeText.selected;this.selectedAriaDisabled=this.els.el.hasAttribute("data-selected-aria-type")&&"false"===this.els.el.getAttribute("data-selected-aria-type")?!0:!1};r.prototype.select=
function(x,C){var E=this;C=void 0===C?!1:C;var z=parseInt(x);x===this.index||this.isAnim||(this.index=z,Array.from(this.els.tabItemTitleEls).forEach(function(T,ca){if(ca===E.index){if(a(T).parent().addClass("tab__item--active"),!E.selectedAriaDisabled)a:switch(E.selectedAriaType){case E.selectedAriaTypeText.selected:a(T).attr("aria-"+E.selectedAriaType,"true");break a;case E.selectedAriaTypeText.current:ca=T.dataset.ariaCurrentValue?T.dataset.ariaCurrentValue:"page",a(T).attr("aria-"+E.selectedAriaType,
ca)}}else if(a(T).parent().removeClass("tab__item--active"),!E.selectedAriaDisabled)a:switch(E.selectedAriaType){case E.selectedAriaTypeText.selected:a(T).attr("aria-"+E.selectedAriaType,"false");break a;case E.selectedAriaTypeText.current:a(T).removeAttr("aria-"+E.selectedAriaType)}}),0>z||(C?this.setPosition(z,!1):this.setPosition(z),C||f(this.els.el,"tabSelect",this.index)))};r.prototype.selectTab=function(x){this.selectDisabled||(this.select(x),this.setPosition(x))};r.prototype.setPosition=function(x,
C){var E=this;C=void 0===C?!0:C;var z=Math.max(0,parseInt(x)),T=this.els.tabListEl.getBoundingClientRect(),ca=this.els.tabItemTitleEls[z];if(ca){x=ca.getBoundingClientRect();var oa=this.els.tabListEl.getBoundingClientRect(),ba=C?this.duration:0;C=this.isUseArrow?this.els.el.querySelector(".tab__left-arrow-wrap").getBoundingClientRect().width||this.els.el.querySelector(".tab__right-arrow-wrap").getBoundingClientRect().width:0;var xa=2>this.els.tabItemTitleEls.length?0:(this.isRtl?this.els.tabItemTitleEls[0].getBoundingClientRect().left-
this.els.tabItemTitleEls[1].getBoundingClientRect().right:this.els.tabItemTitleEls[1].getBoundingClientRect().left-this.els.tabItemTitleEls[0].getBoundingClientRect().right)/2,ya=C+xa,ma=function(ab){ab=ab.getBoundingClientRect();return ab.right+ya>T.right?(E.scrollTo(ab.right-T.right+ya,ba),!0):ab.left-ya<T.left?(E.scrollTo(-(T.left-ab.left+ya),ba),!0):!1};C=function(){var ab=E.isRtl?-1:1,Jb=E.els.tabItemTitleEls[z+ab],wa=Jb&&Jb.getBoundingClientRect(),Oa=(ab=E.els.tabItemTitleEls[z-ab])&&ab.getBoundingClientRect();
wa&&wa.right+ya>T.right?ma(Jb):Oa&&Oa.left-ya<T.left?ma(ab):ma(ca)};if("mobile"===n())switch(this.setPositionOption){case "center":this.scrollTo(x.left-oa.width/2+x.width/2,ba);break;case "start":this.isRtl?this.scrollTo(x.left-(oa.width-x.width)+ya):this.scrollTo(x.left-ya);break;default:ma(ca)}else"true"===this.intoScrollExtend?C():ma(ca)}};r.prototype.animate=function(x,C,E){var z=this,T=Date.now();this.isAnim=!0;this.isContentsDragging=!1;var ca=function(){var oa=(Date.now()-T)/C;1<oa?(x(1),z.isAnim=
!1):(requestAnimationFrame(ca),x(E(oa)))};requestAnimationFrame(ca)};r.prototype.scrollTo=function(x,C){var E=this;C=void 0===C?this.duration:C;var z=e(this.els.tabListEl),T=this.els.tabListEl.scrollWidth-this.els.el.getBoundingClientRect().width;z+x>T&&(x=T-z);0>z+x&&(x=-z);T=function(ca){b(E.els.tabListEl,z+x*ca)};0<C?this.isAnim||this.animate(T,C,this.easing):T(1)};r.prototype.handleScroll=function(){this.isUseArrow&&this.setArrow();this.scrollEndTime&&clearTimeout(this.scrollEndTime);this.scrollEndTime=
setTimeout(function(){q.setLazyLoad()},100)};r.prototype.getCurrentPixelSize=function(x){var C=k(),E=parseFloat(x),z="desktop-over"!==C;C=-1<C.indexOf("mobile")?360:1440;if(!isNaN(E))return z?parseFloat((x/C*window.innerWidth).toFixed(3)):x};r.prototype.setArrow=function(){if("desktop"===n()&&this.isUseArrow||this.isUseArrowMo&&this.isUseArrow){var x=this.els.tabListEl.scrollWidth-this.els.el.getBoundingClientRect().width,C=this.els.tabLeftArrowEl.parentElement,E=this.els.tabRightArrowEl.parentElement,
z=e(this.els.tabListEl);4>z?(document.activeElement===this.els.tabLeftArrowEl&&this.els.tabRightArrowEl.focus(),C.classList.add("disabled"),this.els.tabLeftArrowEl.setAttribute("disabled",!0),this.els.tabLeftArrowEl.setAttribute("aria-disabled",!0),this.els.tabLeftArrowEl.setAttribute("tabindex",-1)):C.classList.contains("disabled")&&(C.classList.remove("disabled"),this.els.tabLeftArrowEl.removeAttribute("disabled"),this.els.tabLeftArrowEl.removeAttribute("aria-disabled"),this.els.tabLeftArrowEl.removeAttribute("tabindex"));
z>x-4?(document.activeElement===this.els.tabRightArrowEl&&this.els.tabLeftArrowEl.focus(),E.classList.add("disabled"),this.els.tabRightArrowEl.setAttribute("disabled",!0),this.els.tabRightArrowEl.setAttribute("aria-disabled",!0),this.els.tabRightArrowEl.setAttribute("tabindex",-1)):E.classList.contains("disabled")&&(E.classList.remove("disabled"),this.els.tabRightArrowEl.removeAttribute("disabled"),this.els.tabRightArrowEl.removeAttribute("aria-disabled"),this.els.tabRightArrowEl.removeAttribute("tabindex"))}};
r.prototype.handleTabLeftArrowClick=function(){if("desktop"===n()&&this.isUseArrow||this.isUseArrowMo&&this.isUseArrow){for(var x=this.els.el.getBoundingClientRect().left+this.getCurrentPixelSize(56),C=-1,E=this.els.tabItemTitleEls.length,z=0;z<E;z++){var T=this.els.tabItemTitleEls[z].parentElement.getBoundingClientRect().left;if(!this.isRtl){if(T+4>x||z===E-1){C=z-1;break}}else if(T+4<x){C=z;break}}this.scrollTo(this.els.tabItemTitleEls[C].parentElement.getBoundingClientRect().left-x)}};r.prototype.handleTabRightArrowClick=
function(){if("desktop"===n()&&this.isUseArrow||this.isUseArrowMo&&this.isUseArrow){for(var x=this.els.el.getBoundingClientRect().right-this.getCurrentPixelSize(56),C=-1,E=this.els.tabItemTitleEls.length,z=0;z<E;z++){var T=this.els.tabItemTitleEls[z].parentElement.getBoundingClientRect().right;if(!this.isRtl){if(T-4>x){C=z;break}}else if(T-4<x||z===E-1){C=z-1;break}}this.scrollTo(this.els.tabItemTitleEls[C].parentElement.getBoundingClientRect().right-x)}};r.prototype.handleKeydown=function(x){var C=
this,E=x.currentTarget;if(E.matches(this.selector.focusable)){var z=[].concat($jscomp.arrayFromIterable(this.els.tabItemTitleEls)).filter(function(ca){return ca.matches(C.selector.focusable)});E=z.indexOf(E);var T=this.isRtl?l.RIGHT:l.LEFT;x.keyCode===(this.isRtl?l.LEFT:l.RIGHT)||x.keyCode===l.DOWN?z[E+1]&&z[E+1].focus():(x.keyCode===T||x.keyCode===l.UP)&&z[E-1]&&z[E-1].focus()}};r.prototype.bindEvents=function(){var x=this;[].concat($jscomp.arrayFromIterable(this.els.tabItemTitleEls)).forEach(function(C,
E){h(C,"click",function(){x.selectDisabled||x.select(E)});h(C,"keydown",function(z){x.handleKeydown(z)})});this.handleContentsDragStart=this.handleContentsDragStart.bind(this);this.handleContentsDrag=this.handleContentsDrag.bind(this);this.handleContentsDragEnd=this.handleContentsDragEnd.bind(this);this.els.el.addEventListener("mousedown",this.handleContentsDragStart);this.handleScroll=this.handleScroll.bind(this);this.handleTabLeftArrowClick=this.handleTabLeftArrowClick.bind(this);this.handleTabRightArrowClick=
this.handleTabRightArrowClick.bind(this);this.els.tabListEl.addEventListener("scroll",this.handleScroll);this.isUseArrow&&(this.els.tabLeftArrowEl.addEventListener("click",this.handleTabLeftArrowClick),this.els.tabRightArrowEl.addEventListener("click",this.handleTabRightArrowClick));this.resize=this.resize.bind(this);window.addEventListener("resize",this.resize)};r.prototype.unBindEvents=function(){[].concat($jscomp.arrayFromIterable(this.els.tabItemTitleEls)).forEach(function(x){m(x,"click")});this.els.el.removeEventListener("mousedown",
this.handleContentsDragStart);this.els.tabListEl.removeEventListener("scroll",this.handleScroll);this.isUseArrow&&(this.els.tabLeftArrowEl.removeEventListener("click",this.handleTabLeftArrowClick),this.els.tabRightArrowEl.removeEventListener("click",this.handleTabRightArrowClick));window.removeEventListener("resize",this.resize)};r.prototype.resize=function(){var x=n();this.device!==x&&(this.device=x,this.setPosition(this.index));this.setArrow()};r.prototype.handleContentsDragStart=function(x){if("mobile"===
n()||"desktop"===n()&&this.isUseArrow)this.dragStartTitle=x.target.closest(".tab__item-title"),this.startX=x.clientX+e(this.els.tabListEl),this.isContentsDragging=!0,this.diffX=0,document.addEventListener("mousemove",this.handleContentsDrag),document.addEventListener("mouseup",this.handleContentsDragEnd)};r.prototype.handleContentsDrag=function(x){if(!this.isAnim&&this.isContentsDragging){this.diffX=this.startX-(x.clientX+e(this.els.tabListEl));0!==this.diffX&&this.dragStartTitle&&"A"===this.dragStartTitle.tagName&&
(this.dragStartTitle.style.pointerEvents="none");x=e(this.els.tabListEl)+this.diffX;var C=this.els.tabListEl.scrollWidth-this.els.el.getBoundingClientRect().width;0>x?x=0:x>C&&(x=C);b(this.els.tabListEl,x)}};r.prototype.handleContentsDragEnd=function(){this.isContentsDragging=!1;this.dragStartTitle&&(this.dragStartTitle.style.pointerEvents="auto");this.dragStartTitle=null;document.removeEventListener("mousemove",this.handleContentsDrag);document.removeEventListener("mouseup",this.handleContentsDragEnd)};
r.prototype.setSelectDisabled=function(x){this.selectDisabled=x};r.instances=new WeakMap;window.sg.components.registerClass("tab",r);var w={initAll:function(){for(var x=[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.tab:not([data-auto-init\x3d"false"])'))),C=[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.static-content .tab:not([data-auto-init\x3d"false"])'))),E=0;E<x.length;E++){for(var z=x[E],T=!1,ca=0;ca<C.length;ca++)if(z===C[ca]){T=!0;break}T||r.instances.has(z)||
new r(z)}},init:function(x,C){r.instances.has(x)?(x=r.instances.get(x),x.reInit(C)):x=new r(x,C);return x},reInit:function(x,C){r.instances.has(x)?r.instances.get(x).reInit(C):new r(x,C)},selectTab:function(x,C){r.instances.has(x)&&r.instances.get(x).selectTab(C)},setSelectDisabled:function(x,C){r.instances.has(x)&&r.instances.get(x).setSelectDisabled(C)},destroy:function(x){r.instances.has(x)&&r.instances.get(x).destroy()}};window.sg.common.tab=w;a.ready(w.initAll)})();
(function(){function a(){n(g.section).target.forEach(function(h){f.instances.has(h)?f.instances.get(h).reInit():new f(h)})}var n=window.sg.common.$q,k=window.sg.common.constants.KEY_CODE,g={section:'[data-js-action\x3d"tooltipUx"]:not([data-auto-init\x3d"false"])'},f=function(h){this.selector={tooltip:'[data-js-action\x3d"tooltipUx"]',layer:'[data-js-action\x3d"tooltipUxLayer"]',button:'[data-js-action\x3d"tooltipUxButton"]',close:'[data-js-action\x3d"tooltipUxClose"]',dataShow:"data-tooltip-ux-show",
dataOptionHover:"data-tooltip-ux-hover"};this.el={section:n(h),document:n(document)};this.handler={handleTooltipOpen:this.handleTooltipOpen.bind(this),handleTooltipClose:this.handleTooltipClose.bind(this)};this.isHover="true"===this.el.section.attr(this.selector.dataOptionHover);this.focusTargetEl=null;this.init();f.instances.set(h,this)};f.prototype.init=function(){this.setElements();this.bindEvents()};f.prototype.reInit=function(){this.init()};f.prototype.setElements=function(){this.el.button=this.el.section.find(this.selector.button);
this.el.layer=this.el.section.find(this.selector.layer);this.el.close=this.el.section.find(this.selector.close)};f.prototype.bindEvents=function(){this.el.button.off("click",this.handler.handleTooltipOpen).on("click",this.handler.handleTooltipOpen);this.isHover&&(this.el.button.off("mouseenter",this.handler.handleTooltipOpen).on("mouseenter",this.handler.handleTooltipOpen),this.el.button.off("focus",this.handler.handleTooltipOpen).on("focus",this.handler.handleTooltipOpen),this.el.section.off("mouseleave",
this.handler.handleTooltipClose).on("mouseleave",this.handler.handleTooltipClose),this.el.section.off("focusout",this.handler.handleTooltipClose).on("focusout",this.handler.handleTooltipClose))};f.prototype.handleTooltipOpen=function(h){var m=this,e=n(h.currentTarget).closest(this.selector.tooltip),b=h.relatedTarget||document.activeElement;!this.isHover&&"click"===h.type&&this.isShow()?this.handleTooltipClose(h):"focus"===h.type&&e.target[0].contains(b)||(window.sg.components.Tooltip.closeAll(),this.focusTargetEl=
h&&h.currentTarget,this.el.section.attr(this.selector.dataShow,!0),this.el.button.attr("aria-expanded",!0),this.el.close.off("click",this.handler.handleTooltipClose).on("click",this.handler.handleTooltipClose),setTimeout(function(){m.el.document.off("click",m.handler.handleTooltipClose).on("click",m.handler.handleTooltipClose);m.el.document.off("keydown",m.handler.handleTooltipClose).on("keydown",m.handler.handleTooltipClose)},10))};f.prototype.handleTooltipClose=function(h){var m=h.type,e=n(h.target),
b=h.relatedTarget||document.activeElement;if("keydown"!==m||h.keyCode===k.ESC)if("focusout"!==m||!this.el.section.target[0].contains(b))if("click"!==m||e.closest(this.selector.close).target.length||!e.closest(this.selector.tooltip).target.length||this.isShow())this.close(),this.focusTargetEl&&this.focusTargetEl!==e.target[0]&&"mouseleave"!==m&&this.focusTargetEl.focus(),this.focusTargetEl=null};f.prototype.close=function(){this.el.close.off("click",this.handler.handleTooltipClose);this.el.document.off("click",
this.handler.handleTooltipClose);this.el.document.off("keydown",this.handler.handleTooltipClose);this.el.section.attr(this.selector.dataShow,!1);this.el.button.attr("aria-expanded",!1)};f.prototype.isShow=function(){return"true"===this.el.section.attr(this.selector.dataShow)};f.instances=new WeakMap;window.sg.components.Tooltip={init:a,reInit:function(){n(g.section).target.forEach(function(h){f.instances.has(h)?f.instances.get(h).reInit():new f(h)})},closeAll:function(){n(g.section).target.forEach(function(h){f.instances.has(h)&&
f.instances.get(h).close()})}};n.ready(a)})();
(function(){function a(l){var q=l.getAttribute("aria-label");null!==q&&l.setAttribute("data-old-labeltxt",q);l.removeAttribute("aria-label")}function n(l){var q=l.getAttribute("data-old-labeltxt");null!==q&&l.setAttribute("aria-label",q);l.removeAttribute("data-old-labeltxt")}function k(l){l=void 0===l?null:l;m(b.start||".wishlist-popup").hide();e.window.off("keydown",d.focusLockPop);f.visibleScroll();l instanceof Element?l.focus():b.closefocus.focus();b.start=null;b.close=null;b.closefocus=null}
function g(){e.window.off("keydown",d.hideBoxHover).on("keydown",d.hideBoxHover);e.component.off("click",d.clickBtn).on("click",d.clickBtn);e.component.target.forEach(function(l){var q=m(l);q.on("keydown",d.hideBoxEvent);q.on("click",d.showBoxEvent);q.on("blur",d.showBoxEvent);q.on("mouseleave",d.showBoxEvent);l.classList.contains("pd-wishlist-cta--on")?!0===l.hasAttribute("data-product-name")?l.setAttribute("aria-label",l.getAttribute("data-added-text")+" : "+l.getAttribute("data-product-name")):
l.setAttribute("aria-label",l.getAttribute("data-added-text")):!0===l.hasAttribute("data-product-name")?l.setAttribute("aria-label",l.getAttribute("data-add-text")+" : "+l.getAttribute("data-product-name")):l.setAttribute("aria-label",l.getAttribute("data-add-text"))})}var f=window.sg.common.utils,h=window.sg.common.constants,m=window.sg.common.$q,e={component:null,window:m(window)},b={start:null,close:null,closefocus:null},d={clickBtn:function(l){l=m(l.currentTarget);var q=m(l.attr("data-div-id")||
"");if(!(0>=q.target.length)){var r=q.find(".wishlist-popup__close");b.start=q.target[0];b.close=r.target[0];b.closefocus=l;q.show();e.window.off("keydown",d.focusLockPop).on("keydown",d.focusLockPop);f.hiddenScroll();q.focus();r.off("click",k).on("click",k)}},hideBoxEvent:function(l){l.keyCode===window.sg.common.constants.KEY_CODE.ESC?a(l.currentTarget||l.target):l.keyCode===window.sg.common.constants.KEY_CODE.ENTER&&n(l.currentTarget||l.target)},hideBoxHover:function(l){l.keyCode===window.sg.common.constants.KEY_CODE.ESC&&
(l=document.querySelector(".pd-wishlist-cta:hover"),null!==l&&a(l))},showBoxEvent:function(l){n(l.currentTarget||l.target)},focusLockPop:function(l){l.keyCode===h.KEY_CODE.TAB&&(b.close===document.activeElement&&!1===l.shiftKey?(l.preventDefault(),b.start.focus()):b.start===document.activeElement&&!0===l.shiftKey&&(l.preventDefault(),b.close.focus()))}};window.sg.components.wishlistIcon={reInit:function(){e.component=m(".pd-wishlist-cta");g()},closeWishlistPop:k};m.ready(function(){e.component=m(".pd-wishlist-cta");
g()})})();var SITE_CD="";SITE_CD=""!==$("#siteCode").val()&&void 0!==$("#siteCode").val()?$("#siteCode").val():"sec";var USE_ESTORE=!0,DOMAIN="";DOMAIN=""!==$("#domain").val()&&void 0!==$("#domain").val()?$("#domain").val():"www.quick3d.org";var STORE_DOMAIN="";"N"===$("#useStore").val()&&(USE_ESTORE=!1);
""!==$("#storeDomain").val()?STORE_DOMAIN=$("#storeDomain").val():(STORE_DOMAIN=location.protocol+"shop.quick3d.org","us"===SITE_CD&&(STORE_DOMAIN=-1!=window.location.host.indexOf("www")?"https://p1-smu-api-cdn.shop.quick3d.org":"https://s2-smu-api-cdn.ecom-stg.quick3d.org"));var STORE_SITE_CODE=$("#store_sitecode").val(),IS_B2B="Y"===$("#b2bFlag").val()?!0:!1,IS_EPP=checkEppSite(),EPP_COMPANYCODE="";null!=window.sg&&null!=window.sg.epp&&null!=window.sg.epp.common&&(EPP_COMPANYCODE=window.sg.epp.common.companyCode);
var SEC_LOCAL_URL_CHECKMEMBERSTATE="http://local.sec.quick3d.org/comLocal/checkMemberStateAjax.do",SEC_LOCAL_URL_SIGNIN="http://local.sec.quick3d.org/comLocal/loginCheck.do",login_user_info={};$("#signInForm input[name\x3ddomain]").val(DOMAIN);$("#joinForm input[name\x3ddomain]").val(DOMAIN);$("#findAccountForm input[name\x3ddomain]").val(DOMAIN);
(function(a,n){a(function(){a(".layer_popup .close, .layer_popup .icon-close-x, .layer_popup .alert-ok-button").click(function(){"close"===a(this).data("popup")&&a(".accesseFocusTarget").trigger("focus");a(".layer_popup").hide();a(".lightbox-skrim").hide();return!1})})})(jQuery,window);
$.cookies.data={SEARCH_NAME:"sk",ACCESSORY_SEARCH_NAME:"ask",NAVIGATION_NAME:"nh",PRIVATECODE_NAME:"pv",COMPARELIST_NAME:"cl",WISHLIST_NAME:"wl",INSTORE_PRIVATECODE_NAME:"ipv",STORE_REGION_NUM:"cnregionnum",STORE_REGION_CODE:"cnregion",STORE_REGION_NAME:"cnregionname",STORE_CITY_NUM:"cncitynamenum",STORE_CITY_CODE:"cncity",STORE_CITY_NAME:"cncityname",SEARCH_MAX_SIZE:4,PRIVATECODE_MAX_SIZE:5,WISHLIST_MAX_SIZE:6,STORE_REGION_MAX_SIZE:1,STORE_CITY_MAX_SIZE:1};var CONTENT="/content/belo4d";
$.cookies.getDefaultOption=function(a,n){a&&a instanceof Date||(a=new Date,a.setTime(a.getTime()+864E5));n?-1<window.location.pathname.indexOf(CONTENT)&&(n=CONTENT+n):n="/";var k=".quick3d.org";"cn"===SITE_CD&&(k=".quick3d.org.cn");return{expiresAt:a,path:n,domain:k,secure:!1}};$.cookies.setWishList=function(a,n){var k=this.data.WISHLIST_NAME,g=this.get(k);if(g){if(0<=$.inArray(a,g))return;g.length>=this.data.WISHLIST_MAX_SIZE&&g.splice(0,1);g.push(a)}else g=[a];this.set(k,g,this.getDefaultOption(n))};
$.cookies.getWishListCnt=function(){var a=this.get(this.data.WISHLIST_NAME);return a&&$.isArray(a)?a.length:0};$.cookies.getWishList=function(){var a=this.get(this.data.WISHLIST_NAME);return a&&$.isArray(a)?a:[]};$.cookies.isAddedWishList=function(a){var n=this.get(this.data.WISHLIST_NAME);if(n&&$.isArray(n))for(var k=0,g=n.length;k<g;k++)if(n[k]===a)return!0;return!1};
$.cookies.deleteWishProduct=function(a,n){var k=this.data.WISHLIST_NAME,g=this.get(k);return g&&$.isArray(g)&&(a=$.inArray(a,g),0<=a)?(g.splice(a,1),0>=g.length?this.del(k,this.getDefaultOption(n)):this.set(k,g,this.getDefaultOption(n)),!0):!1};$.cookies.deleteWishList=function(a){this.del(this.data.WISHLIST_NAME,this.getDefaultOption(a))};
try{if(!$.cookies.get("cookie_country")||""===$.cookies.get("cookie_country"))$.cookies.set("cookie_country",SITE_CD,$.cookies.getDefaultOption());else if(SITE_CD!==$.cookies.get("cookie_country")){var deleteOption=$.cookies.getDefaultOption();$.cookies.del($.cookies.data.NAVIGATION_NAME,deleteOption);$.cookies.del($.cookies.data.PRIVATECODE_NAME,deleteOption);$.cookies.del($.cookies.data.COMPARELIST_NAME,deleteOption);$.cookies.del($.cookies.data.WISHLIST_NAME,deleteOption);$.cookies.del($.cookies.data.INSTORE_PRIVATECODE_NAME,
deleteOption);$.cookies.set("cookie_country",SITE_CD,$.cookies.getDefaultOption())}}catch(a){}var ss=$;
(function(a){ss.EstoreIfQueue={setQueue:function(n){var k=a.cookies.get("iPlanetDirectoryPro",{domain:".quick3d.org"}),g=a.cookies.get("snsSessionId",{domain:".quick3d.org"});k||g?USE_ESTORE?this.getIsSignReady()?this.callFunction(n,arguments):this.queue.push(arguments):this.callFunction(n,arguments):this.callFunction(n,arguments)},callFunction:function(n,k){if(n&&"function"==typeof n){for(var g=[],f=1;f<k.length;f++)g.push(k[f]);n.apply(null,g)}},setIsSignReady:function(n){this.isSignReady=n;if(!0===
n||"true"===n)for(n=0;n<this.queue.length;n++)this.queue[n].length&&this.callFunction(this.queue[n][0],this.queue[n])},getIsSignReady:function(){return this.isSignReady},setProperties:function(){this.isSignReady=!1;this.queue=[]},init:function(){this.setProperties()}};ss.EstoreIfQueue.init()})(jQuery);
var estore=function(){var a=function(f){var h="?",m=0,e;for(e in f){0!=m&&(h+="\x26");var b=f[e];$.isArray(b)?$.each(b,function(d,l){h+=e+"\x3d"+l;d<b.length-1&&(h+="\x26")}):h+=e+"\x3d"+b;m++}return h},n=function(f){var h=$("#popup_alert");h.find(".msg-text").html(f);"sec"===SITE_CD&&h.find(".pop-btn").find(".button").text("\ud655\uc778");$(".layer_popup").hide();h.parent().show();"sec"===SITE_CD?$(".lightbox-skrim").show():$(".lightbox-skrim").hide();f=parseInt(($("body").width()-h.width())/2);
var m=parseInt($(window).scrollTop()+($(window).height()-h.height())/2);$(window).height()<h.height()&&(m=$(window).scrollTop()+10);h.css({top:m+"px",left:f+"px"});$("#popup_alert .popup_wrap .pop-btn").find("a").focus()},k=function(f,h,m){var e=!1;-1<location.href.indexOf("/consumer")&&(e=!0);var b=$("#hybrisApiJson").val(),d="Hybris-new"===$("#shopIntegrationFlag").val()?!0:!1,l="Hybris-intg"===$("#shopIntegrationFlag").val()?!0:!1,q="Hybris"===$("#shopIntegrationFlag").val()?!0:!1,r=$("#newHyvStoreDomain").val(),
w="";if("ae"==SITE_CD||"ae_ar"==SITE_CD){var x=$.cookies.get("estoreSitecode")?$.cookies.get("estoreSitecode").toString():"";w=fnIsNull(x)?SITE_CD:x}else"levant"==SITE_CD?w="jo":"levant_ar"==SITE_CD?w="jo_ar":"n_africa"==SITE_CD&&(w="ma");IS_EPP&&""!=w&&(w=EPP_COMPANYCODE);var C=IS_EPP?EPP_COMPANYCODE:STORE_SITE_CODE;x=IS_EPP?EPP_COMPANYCODE:SITE_CD;var E="";"addCart"===f&&("ar"===SITE_CD||"br"===SITE_CD?(E=STORE_DOMAIN+"/"+SITE_CD+"/getServicesProduct"+(h?a(h):""),window.location.href=E):"py"===
SITE_CD&&(E=STORE_DOMAIN+"/getServicesProduct"+(h?a(h):""),window.location.href=E));(d||l||q||IS_B2B)&&"getCartCount"===f?E=IS_B2B?STORE_DOMAIN+"/tokocommercewebservices/v2/"+C+"/minicart/totalProducts":d?""!=w?STORE_DOMAIN+"/tokocommercewebservices/v2/"+w+"/minicart/totalProducts":STORE_DOMAIN+"/tokocommercewebservices/v2/"+C+"/minicart/totalProducts":""!=w?r+"/tokocommercewebservices/v2/"+w+"/minicart/totalProducts":r+"/tokocommercewebservices/v2/"+C+"/minicart/totalProducts":"ar"!==SITE_CD&&"br"!==
SITE_CD||"getCartCount"!==f?"py"===SITE_CD?E="getCartCount"===f&&"py"===SITE_CD?STORE_DOMAIN+"/_v/private/ng/p4v1/"+f+(h?a(h):""):STORE_DOMAIN+"/ng/p4v1/"+f+(h?a(h):""):""!=w?E=STORE_DOMAIN+"/"+w+"/ng/p4v1/"+f+(h?a(h):""):d&&"uk"!=SITE_CD&&"cn"!=SITE_CD||IS_B2B?(r=$("#storeWebDomain").val(),E=r+"/"+x+"/ng/p4v1/"+f+(h?a(h):""),IS_B2B&&(E=r+"/ng/p4v1/"+f+(h?a(h):""))):E=STORE_DOMAIN+"/"+C+"/ng/p4v1/"+f+(h?a(h):""):E=STORE_DOMAIN+"/"+SITE_CD+"/_v/private/ng/p4v1/"+f+(h?a(h):"");(d||l||q||IS_B2B)&&"getCartCount"===
f?""!=E&&$.ajax({url:E,type:"GET",dataType:"json",crossDomain:!0,xhrFields:{withCredentials:!0},success:function(z){$.isFunction(m)&&("undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isPlatformReady()&&shopAppUtilInstance.updateCartCount(z),m(z))}}):"getRealTimeProductSimpleInfo"===f&&e&&"br"!==SITE_CD&&"Y"!==b?$.ajax({url:E,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_1385598221584",jsonp:"callback",success:function(z){"2100"===z.resultCode||2100===z.resultCode?
h&&h.hasOwnProperty("returnUrl")&&""!==h.returnUrl?$.Auth.signOut(h.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||
9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||"2002"===z.resultCode||2002===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==z.resultCode&&"9000"!==z.resultCode&&"9001"!==z.resultCode&&"9002"!==z.resultCode&&9E3!==z.resultCode&&9001!==z.resultCode&&9002!==z.resultCode&&"2110"!==z.resultCode&&2110!==z.resultCode&&n(z.resultMessage):n(z.resultMessage):
n(z.resultMessage);$.isFunction(m)&&m(z)},error:function(z,T,ca){}}):"getRealTimeProductSimpleInfo"===f&&"sec"===SITE_CD?$.ajax({url:E,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_1385598221584",jsonp:"callback",timeout:1E4,success:function(z){"2100"===z.resultCode||2100===z.resultCode?h&&h.hasOwnProperty("returnUrl")&&""!==h.returnUrl?$.Auth.signOut(h.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===
z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||"2002"===z.resultCode||2002===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&
"3"!==z.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==z.resultCode&&"9000"!==z.resultCode&&"9001"!==z.resultCode&&"9002"!==z.resultCode&&9E3!==z.resultCode&&9001!==z.resultCode&&9002!==z.resultCode&&"2110"!==z.resultCode&&2110!==z.resultCode&&n(z.resultMessage):(-1!==z.resultMessage.indexOf("\uad6c\ub9e4 \ud55c\ub3c4\ub97c \ucd08\uacfc\ud558\uc5ec \uad6c\ub9e4\uac00 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4.\x3cbr /\x3e")&&(z.resultMessage="\uad6c\ub9e4 \ud55c\ub3c4"+z.resultMessage.split("\uad6c\ub9e4 \ud55c\ub3c4")[1].replace("\x3cbr /\x3e",
"\n")),n(z.resultMessage)):n(z.resultMessage);$.isFunction(m)&&m(z)},error:function(z,T,ca){"au"!==SITE_CD&&"nz"!==SITE_CD&&"sec"!==SITE_CD||window.location.pathname!=="/"+SITE_CD+"/wishlist"||m();"sec"===SITE_CD&&"timeout"===ca&&$("#product-detail-current-modelcode").val()&&($("#BT_shop .BT_txt").html("\ud574\ub2f9 \uc0c1\ud488\uc744 \ud310\ub9e4 \uc900\ube44\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uad6c\ub9e4 \uac00\ub2a5 \uc5ec\ubd80\ub294\x3cbr /\x3e\uac00\uae4c\uc6b4 \ub9e4\uc7a5\uc774\ub098 \uc0bc\uc131\uc804\uc790 \uacf5\uc2dd \ud310\ub9e4\ucc98\uc5d0 \ubb38\uc758\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4."),
$("#BT_shop").show(),$("#BT_shop .product-details__link.s-cta-retailer.js-cta-buy-sec").hide(),$("#BT_shop .BT_help").hide(),$("#BT_shop .BT_help-content").hide(),$("#BT_shop .BT_txt").show(),$("#find-store-shopmain").show(),$("#store-reservation").hide())}}):"getRealTimeProductSimpleInfo"===f&&e&&"Y"===b?$.ajax({url:E,type:"GET",dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,success:function(z){"2100"===z.resultCode||2100===z.resultCode?
h&&h.hasOwnProperty("returnUrl")&&""!==h.returnUrl?$.Auth.signOut(h.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||
9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||"2002"===z.resultCode||2002===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==z.resultCode&&"9000"!==z.resultCode&&"9001"!==z.resultCode&&"9002"!==z.resultCode&&9E3!==z.resultCode&&9001!==z.resultCode&&9002!==z.resultCode&&"2110"!==z.resultCode&&2110!==z.resultCode&&n(z.resultMessage):n(z.resultMessage):
n(z.resultMessage);$.isFunction(m)&&m(z)},error:function(z,T,ca){}}):"getRealTimeProductSimpleInfo"===f||e||"Y"!==b?$.ajax({url:E,type:"GET",dataType:"jsonp",jsonp:"callback",success:function(z){"2100"===z.resultCode?h&&h.hasOwnProperty("returnUrl")&&""!==h.returnUrl?$.Auth.signOut(h.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||
2110===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||"2002"===z.resultCode||2002===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==z.resultCode&&
"9000"!==z.resultCode&&"9001"!==z.resultCode&&"9002"!==z.resultCode&&9E3!==z.resultCode&&9001!==z.resultCode&&9002!==z.resultCode&&"2110"!==z.resultCode&&2110!==z.resultCode&&n(z.resultMessage):(-1!==z.resultMessage.indexOf("\uad6c\ub9e4 \ud55c\ub3c4\ub97c \ucd08\uacfc\ud558\uc5ec \uad6c\ub9e4\uac00 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4.\x3cbr /\x3e")&&(z.resultMessage="\uad6c\ub9e4 \ud55c\ub3c4"+z.resultMessage.split("\uad6c\ub9e4 \ud55c\ub3c4")[1].replace("\x3cbr /\x3e","\n")),n(z.resultMessage)):
n(z.resultMessage);$.isFunction(m)&&m(z)},error:function(z,T,ca){"au"!==SITE_CD&&"nz"!==SITE_CD&&"sec"!==SITE_CD||window.location.pathname!=="/"+SITE_CD+"/wishlist"||m()}}):$.ajax({url:E,type:"GET",dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,success:function(z){"2100"===z.resultCode||2100===z.resultCode?h&&h.hasOwnProperty("returnUrl")&&""!==h.returnUrl?$.Auth.signOut(h.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===z.resultCode||
"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||"2002"===z.resultCode||2002===
z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==z.resultCode&&"9000"!==z.resultCode&&"9001"!==z.resultCode&&"9002"!==z.resultCode&&9E3!==z.resultCode&&9001!==z.resultCode&&9002!==z.resultCode&&"2110"!==z.resultCode&&2110!==z.resultCode&&n(z.resultMessage):(-1!==z.resultMessage.indexOf("\uad6c\ub9e4 \ud55c\ub3c4\ub97c \ucd08\uacfc\ud558\uc5ec \uad6c\ub9e4\uac00 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4.\x3cbr /\x3e")&&
(z.resultMessage="\uad6c\ub9e4 \ud55c\ub3c4"+z.resultMessage.split("\uad6c\ub9e4 \ud55c\ub3c4")[1].replace("\x3cbr /\x3e","\n")),n(z.resultMessage)):n(z.resultMessage);$.isFunction(m)&&m(z)},error:function(z,T,ca){"au"!==SITE_CD&&"nz"!==SITE_CD&&"sec"!==SITE_CD||window.location.pathname!=="/"+SITE_CD+"/wishlist"||m()}})},g=function(){};g.prototype.makeBuyNowCookie=function(f){$.EstoreIfQueue.setQueue(k,"makeBuyNowCookie",null,f)};g.prototype.addCart=function(f,h){$.EstoreIfQueue.setQueue(k,"addCart",
f,h)};g.prototype.getCartCount=function(f){$.EstoreIfQueue.setQueue(k,"getCartCount",null,f)};g.prototype.getRealTimeProductSimpleInfo=function(f,h){$.EstoreIfQueue.setQueue(k,"getRealTimeProductSimpleInfo",f,h)};g.prototype.getRealTimeProductListInfo=function(f,h){$.EstoreIfQueue.setQueue(k,"getRealTimeProductListInfo",f,h)};g.prototype.addWishListItem=function(f,h){$.EstoreIfQueue.setQueue(k,"addWishListItem",f,h)};g.prototype.addWishListItemForce=function(f,h){k("addWishListItem",f,h)};g.prototype.delWishListItem=
function(f,h){$.EstoreIfQueue.setQueue(k,"delWishListItem",f,h)};g.prototype.getWishList=function(f,h){var m={page:1,pageSize:5};f&&!$.isFunction(f)&&(m=$.extend(m,f));$.EstoreIfQueue.setQueue(k,"getWishList",m,h)};g.prototype.login=function(f){$.EstoreIfQueue.setQueue(k,"login",null,f)};g.prototype.logout=function(f,h){$.EstoreIfQueue.setQueue(k,"logout",f,h)};g.prototype.getRealTimeWishProductListInfo=function(f,h){$.EstoreIfQueue.setQueue(k,"getRealTimeWishProductListInfo",f,h)};g.prototype.getGuestOrderExistYn=
function(f,h){$.EstoreIfQueue.setQueue(k,"getGuestOrderExistYn",f,h)};g.prototype.getSnsUserInfo=function(f,h){$.EstoreIfQueue.setQueue(k,"getSnsUserInfo",f,h)};g.prototype.setAgreeStorePolicy=function(f,h){$.EstoreIfQueue.setQueue(k,"setAgreeStorePolicy",f,h)};g.prototype.getSessionCheck=function(f,h){$.EstoreIfQueue.setQueue(k,"getSessionCheck",f,h)};g.prototype.getEstoreCategoryList=function(f){$.EstoreIfQueue.setQueue(k,"getEstoreCategoryList",null,f)};g.prototype.getCurrentUserInfo=function(f,
h){$.EstoreIfQueue.setQueue(k,"getCurrentUserInfo",f,h)};g.prototype.buyNow=function(f,h){$.EstoreIfQueue.setQueue(k,"buyNow",f,h)};g.prototype.getReviews=function(f,h){$.EstoreIfQueue.setQueue(k,"getReviewList",f,h)};g.prototype.getMyReview=function(f,h){$.EstoreIfQueue.setQueue(k,"getMyReview",f,h)};g.prototype.addReview=function(f,h){$.EstoreIfQueue.setQueue(k,"addReview",f,h)};g.prototype.updateReview=function(f,h){$.EstoreIfQueue.setQueue(k,"updateReview",f,h)};g.prototype.deleteReview=function(f,
h){$.EstoreIfQueue.setQueue(k,"deleteReview",f,h)};g.prototype.addReviewHelpful=function(f,h){$.EstoreIfQueue.setQueue(k,"setReviewHelpful",f,h)};g.prototype.addReviewHelpful=function(f,h){$.EstoreIfQueue.setQueue(k,"setReviewHelpful",f,h)};g.prototype.addReviewUnHelpful=function(f,h){$.EstoreIfQueue.setQueue(k,"setReviewUnHelpful",f,h)};g.prototype.addReviewAbuse=function(f,h){$.EstoreIfQueue.setQueue(k,"setReviewAbuse",f,h)};g.prototype.getExpertReviewList=function(f,h){$.EstoreIfQueue.setQueue(k,
"getExpertReviewList",f,h)};g.prototype.getProductDetailRegion=function(f,h){$.EstoreIfQueue.setQueue(k,"getProductDetailRegion",f,h)};g.prototype.getProductDetailCity=function(f,h){$.EstoreIfQueue.setQueue(k,"getProductDetailCity",f,h)};g.prototype.showProductOpenphoneOption=function(f,h){$.EstoreIfQueue.setQueue(k,"showProductOpenphoneOption",f,h)};g.prototype.preCalc=function(f,h){$.EstoreIfQueue.setQueue(k,"preCalc",f,h)};g.prototype.preCalcApply=function(f,h){$.EstoreIfQueue.setQueue(k,"preCalcApply",
f,h)};g.prototype.stores=function(f,h){$.EstoreIfQueue.setQueue(k,"stores",f,h)};g.prototype.getReviewStatus=function(f,h){$.EstoreIfQueue.setQueue(k,"getReviewStatus",f,h)};g.prototype.addViewCount=function(f,h){$.EstoreIfQueue.setQueue(k,"addViewCount",f,h)};return new g}();
(function(){function a(){n(m.section).target.forEach(function(b){e.instances.has(b)||new e(b)})}var n=window.sg.common.$q,k=window.sg.common.utils,g=window.sg.common.lazyLoad,f=window.sg.common.constants.KEY_CODE,h=window.sg.common.swiperManager,m={section:".nv00-gnb-v4"},e=function(b){this.selector={header:".nv00-gnb-v4__header",container:".nv00-gnb-v4__container",containerInner:".nv00-gnb-v4__container-inner",featuredWrap:".nv00-gnb-v4__featured-wrap",featuredSwiper:".nv00-gnb-v4__featured-list",
featuredSwiperSlide:".nv00-gnb-v4__featured-item",featuredSwiperIndicator:".nv00-gnb-v4__featured-list .screen-indicator-wrap",l0MenuList:".nv00-gnb-v4__l0-menu-list",l0MenuListRight:".nv00-gnb-v4__l0-menu-list--right",l0Menu:".nv00-gnb-v4__l0-menu",l0MenuItem:'[data-js-action\x3d"l0MenuBtn"]',l0MenuTitle:".nv00-gnb-v4__l0-menu-title",l0MenuBtn:".nv00-gnb-v4__l0-menu-btn",l0MenuLink:".nv00-gnb-v4__l0-menu-link",l0MenuToggleBtn:".nv00-gnb-v4__l0-menu-toggle-btn",l1MenuContainer:".nv00-gnb-v4__l1-menu-container",
l1MenuInner:".nv00-gnb-v4__l1-menu-inner",l1MenuList:".nv00-gnb-v4__l1-menu-list",l1MenuItem:".nv00-gnb-v4__l1-menu-btn, .nv00-gnb-v4__l1-menu-link",l1MenuAccordion:'.nv00-gnb-v4__l1-menu [data-js-action\x3d"accordionBtn"]',l2FeaturedWrap:".nv00-gnb-v4__l1-featured-wrap",l2FeaturedAccordionContainer:'.nv00-gnb-v4__l2-featured-container[data-js-action\x3d"accordionContainer"]',l2FeaturedLink:".nv00-gnb-v4__l2-featured-link",utilityList:".nv00-gnb-v4__utility-list",utilityUserWrap:".nv00-gnb-v4__utility-wrap",
utilityUserBtn:".nv00-gnb-v4__utility-user",utilityUserList:".nv00-gnb-v4__utility-menu-list",utilityMenuWrap:".nv00-gnb-v4__utility-menu-wrap",mobileExpandMenuButton:".nv00-gnb-v4__utility-hamburger",mobileExpandCloseButton:".nv00-gnb-v4__close-btn",mobileContainerHeader:".nv00-gnb-v4__container-header",mobileContainerHeaderSearch:".nv00-gnb-v4__container-header .nv00-gnb-v4__search",mobileL0MenuBtn:'[data-js-action\x3d"l0MenuBtn"]',mobileBackwardBtn:".nv00-gnb-v4__backward-btn",mobileLeftMenuList:".nv00-gnb-v4__mo-left-menu-list",
l0AccordionList:".nv00-gnb-v4__accordion-list",accordionBtn:'[data-js-action\x3d"accordionBtn"]',accordionWrap:'[data-js-action\x3d"accordionWrap"]',accordionContainer:'[data-js-action\x3d"accordionContainer"]',accordionInner:'[data-js-action\x3d"accordionInner"]',dimm:".nv00-gnb-v4__dim",layerPopup:".layer-popup",layerPopupWrap:".nv00-gnb-v4__layer-popup-wrap",layerPopupOpenButton:".js-layer-open",layerPopupCloseButton:".layer-popup__close",layerPopupLoopingStart:".nv00-gnb-v4__layer-popup-looping--start",
layerPopupLoopingEnd:".nv00-gnb-v4__layer-popup-looping--end",heroKv:".hd08-hero-kv-home"};this.classes={textType:"nv00-gnb-v4--text-type",gnbShow:"nv00-gnb-v4--show",gnbOpended:"nv00-gnb-v4--opended",gnbl1MenuShow:"nv00-gnb-v4--l1-show",l0MenuShow:"nv00-gnb-v4__l0-menu--show",l0MenuBannerType:"nv00-gnb-v4__l0-menu--type-banner",l0MenuListShow:"nv00-gnb-v4__l0-menu-list--show",l1MenuShow:"nv00-gnb-v4__l1-menu--show",l1MenuGroupType:"nv00-gnb-v4__l1-menu-inner--group",featuredTextType:"nv00-gnb-v4__l1-featured-list--text",
accordionActive:"nv00-gnb-v4__accordion--active",userMenuShow:"nv00-gnb-v4__utility-wrap--show",fixed:"nv00-gnb-v4--fixed",down:"nv00-gnb-v4--down",shyLight:"nv00-gnb-v4--shy-light",shyDark:"nv00-gnb-v4--shy-dark",mobileOnly:"nv00-gnb-v4--mobile-only",l2FeaturedLinkHide:"nv00-gnb-v4__l2-featured-link--hide",popupLooping:"layer-popup__looping"};this.el={section:n(b),window:n(window)};this.currentDevice=null;this.stickyMode=!1;this.shyTheme=null;this.scrollTop=window.scrollY;this.navRightMenuTop=this.navOffsetTop=
0;this.isDimClick=this.isTextType=this.isTouchScreen=!1;this.resizeTimer=this.swiper=null;if("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints)this.isTouchScreen=!0;this.menuOpenTimeout=this.menuEnterTimeout=null;this.isKeydown=this.isLeaveAfterTouch=this.isTouch=this.isActiveMenuOpen=this.isRightpcMenuOpen=!1;this.handler={resize:this.resize.bind(this),scroll:this.scroll.bind(this),mousewheel:this.mousewheel.bind(this),
keydown:this.keydown.bind(this),handleSticky:this.handleSticky(this),handleMenuMouseEnter:this.handleMenuMouseEnter.bind(this),handleMenuMouseLeave:this.handleMenuMouseLeave.bind(this),hanledMenuListMouseLeave:this.hanledMenuListMouseLeave.bind(this),handleMenuToggleClick:this.handleMenuToggleClick.bind(this),handleMenuToggleKeydown:this.handleMenuToggleKeydown.bind(this),handleMenuLinkClick:this.handleMenuLinkClick.bind(this),handleMenuLinkKeydown:this.handleMenuLinkKeydown.bind(this),handleLeaveFirstFocus:this.handleLeaveFirstFocus.bind(this),
handleMobileGnbOpen:this.handleMobileGnbOpen.bind(this),handleMobileGnbClose:this.handleMobileGnbClose.bind(this),handleMobileMenuOpen:this.handleMobileMenuOpen.bind(this),handleMobileMenuClose:this.handleMobileMenuClose.bind(this),handleUtilityMouseEnter:this.handleUtilityMouseEnter.bind(this),handleAccordionToggle:this.handleAccordionToggle.bind(this),handleAccordionKeydown:this.handleAccordionKeydown.bind(this),handleUserMenuMouseEnter:this.handleUserMenuMouseEnter.bind(this),handleUserMenuMouseLeave:this.handleUserMenuMouseLeave.bind(this),
handleUserMenuKeydown:this.handleUserMenuKeydown.bind(this),handleCheckClickDim:this.handleCheckClickDim.bind(this),handleClickDim:this.handleClickDim.bind(this),openLayerPopup:this.openLayerPopup.bind(this),closeLayerPopup:this.closeLayerPopup.bind(this)};this.init();e.instances.set(b,this)};e.prototype.init=function(){this.currentDevice=this.getCurrentDevice();this.setElements();this.setAccessbility();this.setL1MenuHeight();this.reInitL2Featured();this.initSwiper();this.setShyGNB();this.setScrollPaddingTop();
this.bindEvent();this.resize();this.setUSOfferCID()};e.prototype.setUSOfferCID=function(){var b=$("#siteCode").val(),d=window.location.href;("us"===b||d.includes("/us/"))&&(b=this.getParamCaseInsensitive("offerCID"))&&this._setCookie("bs_offerCID",b,".quick3d.org",1)};e.prototype.getParamCaseInsensitive=function(b){var d=new URLSearchParams(window.location.search);b=b.toLowerCase();d=$jscomp.makeIterator(d.entries());for(var l=d.next();!l.done;l=d.next()){var q=$jscomp.makeIterator(l.value);l=q.next().value;
q=q.next().value;if(l.toLowerCase()===b)return q}return null};e.prototype._setCookie=function(b,d,l,q){var r=new Date;r.setTime(r.getTime()+864E5*(q||1));q="expires\x3d"+r.toUTCString();document.cookie=b+"\x3d"+d+";"+q+";path\x3d/;domain\x3d"+l};e.prototype.reInit=function(){this.init()};e.prototype.reInitL2Featured=function(){var b=this;this.el.l0Menu.target.forEach(function(d){if(n(d).find(b.selector.l2FeaturedAccordionContainer).target.length){var l=n(d).find(b.selector.l2FeaturedLink+":not(."+
b.classes.mobileOnly+")");d=n(d).find("."+b.classes.featuredTextType).target.length?l.target.slice(10):l.target.slice(8);l.removeClass(b.classes.l2FeaturedLinkHide);n(d).addClass(b.classes.l2FeaturedLinkHide)}})};e.prototype.setElements=function(){this.el.header=this.el.section.find(this.selector.header);this.el.container=this.el.section.find(this.selector.container);this.el.containerInner=this.el.section.find(this.selector.containerInner);this.el.featuredWrap=this.el.section.find(this.selector.featuredWrap);
this.el.featuredSwiper=this.el.section.find(this.selector.featuredSwiper);this.el.featuredSwiperSlide=this.el.section.find(this.selector.featuredSwiperSlide);this.el.featuredSwiperIndicator=this.el.section.find(this.selector.featuredSwiperIndicator);this.el.l0MenuList=this.el.section.find(this.selector.l0MenuList);this.el.l0Menu=this.el.section.find(this.selector.l0Menu);this.el.l0MenuTitle=this.el.section.find(this.selector.l0MenuTitle);this.el.l0MenuItem=this.el.section.find(this.selector.l0MenuItem);
this.el.l0MenuBtn=this.el.section.find(this.selector.l0MenuBtn);this.el.l0MenuLink=this.el.section.find(this.selector.l0MenuLink);this.el.l0MenuToggleBtn=this.el.section.find(this.selector.l0MenuToggleBtn);this.el.l1MenuContainer=this.el.section.find(this.selector.l1MenuContainer);this.el.l1MenuInner=this.el.section.find(this.selector.l1MenuInner);this.el.l1MenuAccordion=this.el.section.find(this.selector.l1MenuAccordion);this.el.l2FeaturedWrap=this.el.section.find(this.selector.l2FeaturedWrap);this.el.l2FeaturedAccordionContainer=
this.el.section.find(this.selector.l2FeaturedAccordionContainer);this.el.l2FeaturedLink=this.el.section.find(this.selector.l2FeaturedLink);this.el.utilityList=this.el.section.find(this.selector.utilityList);this.el.dimm=this.el.section.find(this.selector.dimm);this.el.utilityUserWrap=this.el.section.find(this.selector.utilityUserWrap);this.el.utilityUserBtn=this.el.section.find(this.selector.utilityUserBtn);this.el.utilityUserList=this.el.section.find(this.selector.utilityUserList);this.el.mobileExpandMenuButton=
this.el.section.find(this.selector.mobileExpandMenuButton);this.el.mobileExpandCloseButton=this.el.section.find(this.selector.mobileExpandCloseButton);this.el.mobileContainerHeader=this.el.section.find(this.selector.mobileContainerHeader);this.el.mobileContainerHeaderSearch=this.el.section.find(this.selector.mobileContainerHeaderSearch);this.el.mobileL0MenuBtn=this.el.section.find(this.selector.mobileL0MenuBtn);this.el.mobileBackwardBtn=this.el.section.find(this.selector.mobileBackwardBtn);this.el.mobileLeftMenuList=
this.el.section.find(this.selector.mobileLeftMenuList);this.el.l0AccordionList=this.el.section.find(this.selector.l0AccordionList);this.el.accordionWrap=this.el.section.find(this.selector.accordionWrap);this.el.accordionBtn=this.el.section.find(this.selector.accordionBtn);this.el.accordionContainer=this.el.section.find(this.selector.accordionContainer);this.el.accordionInner=this.el.section.find(this.selector.accordionInner);this.el.layerPopupOpenButton=this.el.section.find(this.selector.layerPopupOpenButton);
this.el.layerPopupWrap=this.el.section.find(this.selector.layerPopupWrap);this.el.layerPopupLoopingStart=this.el.section.find(this.selector.layerPopupLoopingStart);this.el.layerPopupLoopingEnd=this.el.section.find(this.selector.layerPopupLoopingEnd);this.el.section.hasClass(this.classes.textType)&&(this.isTextType=!0)};e.prototype.bindEvent=function(){var b=this;"mobile"===this.getCurrentDevice()?this.bindMobileEvents():this.bindDesktopEvents();this.el.window.off("resize",this.handler.resize).on("resize",
this.handler.resize);this.el.window.off("scroll",this.handler.scroll).on("scroll",this.handler.scroll);this.el.window.off("mousewheel",this.handler.mousewheel).on("mousewheel",this.handler.mousewheel);this.el.dimm.off("click",this.handler.handleMobileGnbClose).on("click",this.handler.handleMobileGnbClose);this.el.layerPopupOpenButton.target.forEach(function(d){n(d).off("click").on("click",function(){return b.handler.openLayerPopup(d.dataset.targetPopup)})})};e.prototype.bindMobileEvents=function(){this.el.window.off("keydown",
this.handler.keydown);this.el.l0MenuToggleBtn.off("click",this.handler.handleMenuToggleClick);this.el.l0MenuToggleBtn.off("keydown",this.handler.handleMenuToggleKeydown);this.el.l0MenuBtn.off("click",this.handler.handleMenuToggleClick);this.el.l0MenuBtn.off("keydown",this.handler.handleMenuToggleKeydown);this.el.l0MenuLink.off("click",this.handler.handleMenuLinkClick);this.el.l0MenuLink.off("keydown",this.handler.handleMenuLinkKeydown);this.el.utilityList.off("mouseenter",this.handler.handleUtilityMouseEnter);
this.el.l0MenuItem.off("mouseenter",this.handler.handleMenuMouseEnter);this.el.l0MenuItem.off("mouseleave",this.handler.handleMenuMouseLeave);this.el.l0MenuList.off("mouseleave",this.handler.hanledMenuListMouseLeave);this.el.utilityUserWrap.off("mouseenter",this.handler.handleUserMenuMouseEnter);this.el.utilityUserWrap.off("mouseleave",this.handler.handleUserMenuMouseLeave);this.el.utilityUserBtn.off("keydown",this.handler.handleUserMenuKeydown);this.el.mobileExpandMenuButton.off("click",this.handler.handleMobileGnbOpen).on("click",
this.handler.handleMobileGnbOpen);this.el.mobileExpandCloseButton.off("click",this.handler.handleMobileGnbClose).on("click",this.handler.handleMobileGnbClose);this.el.mobileBackwardBtn.off("click",this.handler.handleMobileMenuClose).on("click",this.handler.handleMobileMenuClose);this.el.accordionBtn.off("click",this.handler.handleAccordionToggle).on("click",this.handler.handleAccordionToggle);this.el.l1MenuAccordion.off("keydown",this.handler.handleAccordionKeydown).on("keydown",this.handler.handleAccordionKeydown);
if(this.isTextType)this.el.l0MenuBtn.off("click",this.handler.handleMobileMenuOpen).on("click",this.handler.handleMobileMenuOpen),this.el.l0MenuToggleBtn.off("click",this.handler.handleMobileMenuOpen).on("click",this.handler.handleMobileMenuOpen);else this.el.mobileL0MenuBtn.off("click",this.handler.handleMobileMenuOpen).on("click",this.handler.handleMobileMenuOpen)};e.prototype.bindDesktopEvents=function(){var b=this;this.el.mobileExpandMenuButton.off("click",this.handler.handleMobileGnbOpen);this.el.mobileExpandCloseButton.off("click",
this.handler.handleMobileGnbClose);this.el.mobileBackwardBtn.off("click",this.handler.handleMobileMenuClose);this.el.accordionBtn.off("click",this.handler.handleAccordionToggle);this.el.l1MenuAccordion.off("keydown",this.handler.handleAccordionKeydown);this.isTextType?(this.el.l0MenuBtn.off("click",this.handler.handleMobileMenuOpen),this.el.l0MenuToggleBtn.off("click",this.handler.handleMobileMenuOpen)):this.el.mobileL0MenuBtn.off("click",this.handler.handleMobileMenuOpen);this.el.l0MenuList.target.forEach(function(d){b.setPcFocusLooping(d,
"l0menu")});this.el.l1MenuInner.target.forEach(function(d){var l=d.closest(b.selector.l0Menu).querySelector(b.selector.l0MenuToggleBtn||b.selector.l0MenuBtn);b.setPcFocusLooping(d,"l1menu",l)});this.el.utilityUserWrap.target.forEach(function(d){var l=d.querySelector(b.selector.utilityUserBtn);d=d.querySelector(b.selector.utilityMenuWrap);b.setPcFocusLooping(d,"usermenu",l)});this.el.window.off("keydown",this.handler.keydown).on("keydown",this.handler.keydown);this.el.l0MenuToggleBtn.off("click",this.handler.handleMenuToggleClick).on("click",
this.handler.handleMenuToggleClick);this.el.l0MenuToggleBtn.off("keydown",this.handler.handleMenuToggleKeydown).on("keydown",this.handler.handleMenuToggleKeydown);this.el.l0MenuLink.off("click",this.handler.handleMenuLinkClick).on("click",this.handler.handleMenuLinkClick);this.el.l0MenuLink.off("keydown",this.handler.handleMenuLinkKeydown).on("keydown",this.handler.handleMenuLinkKeydown);this.el.l0MenuBtn.off("click",this.handler.handleMenuToggleClick).on("click",this.handler.handleMenuToggleClick);
this.el.l0MenuBtn.off("keydown",this.handler.handleMenuToggleKeydown).on("keydown",this.handler.handleMenuToggleKeydown);this.el.utilityList.off("mouseenter",this.handler.handleUtilityMouseEnter).on("mouseenter",this.handler.handleUtilityMouseEnter);this.el.l0MenuItem.off("mouseenter",this.handler.handleMenuMouseEnter).on("mouseenter",this.handler.handleMenuMouseEnter);this.el.l0MenuItem.off("mouseleave",this.handler.handleMenuMouseLeave).on("mouseleave",this.handler.handleMenuMouseLeave);this.el.l0MenuList.off("mouseleave",
this.handler.hanledMenuListMouseLeave).on("mouseleave",this.handler.hanledMenuListMouseLeave);this.el.utilityUserWrap.off("mouseenter",this.handler.handleUserMenuMouseEnter).on("mouseenter",this.handler.handleUserMenuMouseEnter);this.el.utilityUserWrap.off("mouseleave",this.handler.handleUserMenuMouseLeave).on("mouseleave",this.handler.handleUserMenuMouseLeave);this.el.utilityUserBtn.off("keydown",this.handler.handleUserMenuKeydown).on("keydown",this.handler.handleUserMenuKeydown)};e.prototype.resize=
function(){var b=this,d=this.getCurrentDevice();this.navOffsetTop=this.el.section.target[0].offsetTop;this.navRightMenuTop=this.el.section.target[0].getBoundingClientRect().top;this.el.section.target[0].style.setProperty("--gnb04-top",this.navOffsetTop+"px");this.el.section.target[0].style.setProperty("--gnb04-rightmenu-top",this.navRightMenuTop+"px");d!==this.currentDevice&&(this.setDeviceBindEvents(),this.setAccessbility());clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout(function(){"mobile"===
d&&b.updateSwiper();b.setL1MenuHeight();b.setScrollPaddingTop()});this.currentDevice=d};e.prototype.scroll=function(){this.isRightpcMenuOpen&&(this.setRightMenuTop(),this.hanledMenuListMouseLeave());this.stickyMode&&this.handleSticky()};e.prototype.mousewheel=function(b){var d=this.el.section.find(".nv00-gnb-v4__l0-menu--show .nv00-gnb-v4__l1-menu-container");"desktop"===this.getCurrentDevice()&&d.target.length&&b.clientY>d.offset().bottom&&(this.isActiveMenuOpen=!1,this.pcMenuClose())};e.prototype.keydown=
function(b){"desktop"===this.getCurrentDevice()&&b.keyCode===f.ESC&&(this.isActiveMenuOpen=!1,this.el.section.find("."+this.classes.l0MenuShow).target.length?this.pcMenuClose():this.el.section.find("."+this.classes.userMenuShow).target.length&&this.userMenuClose())};e.prototype.setPcFocusLooping=function(b,d,l){function q(x){if("desktop"===r.getCurrentDevice()){var C=w.target.findIndex(function(z){return z===x.target});if(x&&x.keyCode===f.TAB&&!0===x.shiftKey&&0===C&&"l0menu"!==d)r.handleLeaveFirstFocus(d),
x.preventDefault();else if("l0menu"!==d||x.keyCode===f.RIGHT||x.keyCode===f.LEFT)if(r.isKeydownNextInput(x)||r.isKeydownPrevInput(x)){var E;r.isKeydownNextInput(x)?E=w.target[C+1]:r.isKeydownPrevInput(x)&&0===C&&"l0menu"!==d?E=l:r.isKeydownPrevInput(x)&&(E=w.target[C-1]);E&&E.focus();E===l&&r.handleLeaveFirstFocus(d);x.preventDefault()}}}l=void 0===l?null:l;if(b){var r=this,w=this.getFocusableElements(b,d);w&&w.off("keydown").on("keydown",q)}};e.prototype.getFocusableElements=function(b,d){var l=
this;b=b.target?b:n(b);d="mobile"===this.getCurrentDevice()?[].concat($jscomp.arrayFromIterable(b.find("a, button").target)).filter(function(q){return!q.closest(".nv00-gnb-v4--pc-only")}):"l0menu"===d?[].concat($jscomp.arrayFromIterable(b.find(this.selector.l0MenuItem+", "+this.selector.l0MenuToggleBtn).target)):"l1menu"===d?b.closest(this.selector.l0MenuListRight).target.length?[].concat($jscomp.arrayFromIterable(b.find("a").target)):[].concat($jscomp.arrayFromIterable(b.find("a, button").target)).filter(function(q){return!(n(q).hasClass("nv00-gnb-v4__l1-featured-btn")||
n(q).hasClass(l.classes.mobileOnly)||n(q).hasClass(l.classes.l2FeaturedLinkHide)||q.closest(".nv00-gnb-v4__l2-menu-container"))}):[].concat($jscomp.arrayFromIterable(b.find("a").target));return n(d)};e.prototype.handleLeaveFirstFocus=function(b){this.isActiveMenuOpen=!1;"l1menu"===b?this.pcMenuClose():"usermenu"===b&&this.userMenuClose()};e.prototype.setRightMenuTop=function(){this.el.section.hasClass(this.classes.fixed)?this.el.section.target[0].style.setProperty("--gnb04-rightmenu-top",0):(this.navRightMenuTop=
this.el.section.target[0].getBoundingClientRect().top,this.el.section.target[0].style.setProperty("--gnb04-rightmenu-top",this.navRightMenuTop+"px"))};e.prototype.setDeviceBindEvents=function(){"mobile"===this.getCurrentDevice()?(this.hanledMenuListMouseLeave(),this.bindMobileEvents()):(this.handleMobileGnbClose(),this.bindDesktopEvents())};e.prototype.setAccessbility=function(){var b=this,d=[this.el.l1MenuContainer,this.el.utilityUserList],l=[this.el.container,this.el.l1MenuContainer,this.el.accordionContainer];
"mobile"===this.getCurrentDevice()?(this.el.l0MenuList.attr("role","menu"),this.el.l2FeaturedWrap.removeAttr("role"),this.el.l2FeaturedWrap.removeAttr("aria-label"),d.forEach(function(q){q.removeAttr("aria-hidden")}),l.forEach(function(q){q.attr("aria-hidden",!0)}),this.el.l2FeaturedAccordionContainer.target.forEach(function(q){var r=q.dataset.jsTitle?q.dataset.jsTitle:null;r&&n(q).attr("aria-label",r);n(q).attr("role","menu");n(q).find(b.selector.l2FeaturedLink).attr("tabindex",-1)}),this.el.l0MenuTitle.target.forEach(function(q){n(q).find("a, button").removeAttr("aria-expanded");
b.isTextType?n(q).find("button").attr("aria-haspopup",!0):(n(q).find("a, button").removeAttr("aria-haspopup"),n(q).closest(b.selector.l0Menu).find(b.selector.l1MenuContainer).target[0]&&n(q).find(b.selector.l0MenuItem).attr("aria-haspopup",!0))}),this.el.l1MenuAccordion.target.forEach(function(q){n(q).attr("role","button");n(q).attr("aria-expanded",!1);n(q).attr("tabindex","0");n(q).closest(b.selector.accordionWrap).find(b.selector.accordionInner+" a").attr("tabindex",-1)})):(k.removeMobileFocusLoop(),
this.el.container.find(".layer-popup__looping--first, .layer-popup__looping--end").remove(),this.el.l0MenuList.attr("role","menubar"),this.el.l0MenuTitle.removeAttr("aria-hidden"),this.el.l2FeaturedAccordionContainer.removeAttr("role"),this.el.l2FeaturedAccordionContainer.removeAttr("aria-label"),l.forEach(function(q){q.removeAttr("aria-hidden")}),d.forEach(function(q){q.attr("aria-hidden",!0)}),this.el.l0MenuTitle.target.forEach(function(q){n(q).find("a, button").removeAttr("aria-expanded");n(q).find("a, button").removeAttr("aria-haspopup");
n(q).closest(b.selector.l0Menu).find(b.selector.l1MenuContainer).target[0]&&(n(q).find(b.selector.l0MenuToggleBtn).target[0]?(n(q).find(b.selector.l0MenuToggleBtn).attr("aria-expanded",!1),n(q).find(b.selector.l0MenuToggleBtn).attr("aria-haspopup",!0)):(n(q).find(b.selector.l0MenuItem).attr("aria-expanded",!1),n(q).find(b.selector.l0MenuItem).attr("aria-haspopup",!0)))}),this.el.l1MenuAccordion.target.forEach(function(q){n(q).attr("role","menuitem");n(q).removeAttr("aria-expanded");q.classList.contains("nv00-gnb-v4__l1-menu-btn")&&
n(q).attr("tabindex",-1);n(q).closest(b.selector.accordionWrap).find(b.selector.accordionInner+" a").removeAttr("tabindex")}),this.el.l2FeaturedWrap.target.forEach(function(q){var r=q.dataset.jsTitle?q.dataset.jsTitle:null;r&&n(q).attr("aria-label",r);n(q).attr("role","menu")}),this.el.l2FeaturedLink.removeAttr("tabindex"))};e.prototype.setL1MenuHeight=function(){var b=this;this.el.l1MenuInner.target.forEach(function(d){if(n(d).hasClass(b.classes.l1MenuGroupType)){d=n(d).find(b.selector.l1MenuList).target.map(function(w){return n(w).find(b.selector.l1MenuItem)});
var l=Math.max.apply(Math,$jscomp.arrayFromIterable(d.map(function(w){return w.target.length}))),q=[];d.forEach(function(w){w.css({height:""})});if("mobile"!==b.getCurrentDevice()){for(var r={$jscomp$loop$prop$i$101:0};r.$jscomp$loop$prop$i$101<l;r={$jscomp$loop$prop$i$101:r.$jscomp$loop$prop$i$101},r.$jscomp$loop$prop$i$101+=2)q.push(d.flatMap(function(w){return function(x){return x.target.slice(w.$jscomp$loop$prop$i$101,w.$jscomp$loop$prop$i$101+2)}}(r)));q.forEach(function(w){var x=Math.max.apply(Math,
$jscomp.arrayFromIterable(w.map(function(C){return C.getBoundingClientRect().height})));w.forEach(function(C){n(C).css({height:Math.round(x)+"px"})})})}}})};e.prototype.handleMenuMouseEnter=function(b){this.isTouch=!1;this.isLeaveAfterTouch||this.handlePcMenuOpen(b)};e.prototype.handleMenuLinkKeydown=function(){this.isKeydown=!0};e.prototype.handleMenuLinkClick=function(b){this.isTouchScreen&&(this.isKeydown?this.isKeydown=!1:1>n(b.target).closest(this.selector.l0Menu).find(this.selector.l1MenuContainer).target.length||
(this.isTouch=!0,this.handlePcMenuOpen(b)))};e.prototype.handleMenuToggleKeydown=function(b){this.isKeydown=!0;b.keyCode===f.DOWN&&(b.preventDefault(),this.handleMenuToggle(b))};e.prototype.handleMenuToggleClick=function(b){this.isTouch=!0;this.handleMenuToggle(b)};e.prototype.handleMenuToggle=function(b){b=n(b.target).closest(this.selector.l0Menu);var d=b.find(this.selector.l1MenuContainer),l=this.isKeydown?d.find("a:not(.nv00-gnb-v4__l1-menu-container-title), button:not(.nv00-gnb-v4__l1-menu-container-title):not(.nv00-gnb-v4__l1-menu-btn)").target[0]:
null;this.isKeydown&&(this.isKeydown=!1);!b.hasClass(this.classes.l0MenuShow)&&d.target.length?(this.isActiveMenuOpen=!0,this.pcMenuOpen(b,l)):(this.isActiveMenuOpen=!1,this.pcMenuClose())};e.prototype.handlePcMenuOpen=function(b){var d=this;n(b.target).closest(this.selector.l0Menu).hasClass(this.classes.l0MenuShow)||b.preventDefault();clearTimeout(this.menuOpenTimeout);this.menuOpenTimeout=setTimeout(function(){clearTimeout(d.menuEnterTimeout);var l=b.type,q=n(b.target).closest(d.selector.l0Menu),
r=q.find(d.selector.l1MenuContainer),w=100;d.isLeaveAfterTouch&&"mouseenter"===l||(!q.hasClass(d.classes.l0MenuShow)&&r.target.length?(d.isActiveMenuOpen=!0,d.el.section.hasClass(d.classes.gnbShow)&&(w=300),"click"===l?w=0:"mouseenter"===l&&d.el.l0MenuList.find(d.selector.l0MenuItem+":focus, "+d.selector.l0MenuToggleBtn+":focus").blur(),d.menuEnterTimeout=setTimeout(function(){d.pcMenuOpen(q)},w)):r.target.length||(d.isActiveMenuOpen=!1,setTimeout(function(){d.pcMenuClose()})))})};e.prototype.handleMenuMouseLeave=
function(){this.isTouch?this.isLeaveAfterTouch=!0:this.isActiveMenuOpen=this.isLeaveAfterTouch=!1};e.prototype.hanledMenuListMouseLeave=function(){var b=this;this.isTouch?this.isTouch=!1:(this.isActiveMenuOpen=!1,setTimeout(function(){b.pcMenuClose()}))};e.prototype.pcMenuOpen=function(b,d){d=void 0===d?null:d;if(this.isActiveMenuOpen){var l=b.find(this.selector.l0MenuBtn+", "+this.selector.l0MenuToggleBtn),q=b.closest(this.selector.l0Menu),r=q.find(this.selector.l1MenuContainer),w=q.find(this.selector.l1MenuInner);
q=b.closest(this.selector.l0MenuList);w=w.innerHeight();var x=this.el.section.find("."+this.classes.l0MenuShow),C=x.find(this.selector.l0MenuBtn+", "+this.selector.l0MenuToggleBtn),E=this.el.section.find("."+this.classes.l0MenuShow).target.length;this.isRightpcMenuOpen=b.closest(this.selector.l0MenuListRight).target.length;g.setLazyLoadManually(r.target[0]);E&&(this.el.section.addClass(this.classes.gnbOpended),x.removeClass(this.classes.l0MenuShow),C.attr("aria-expanded",!1),x.find(this.selector.l1MenuContainer).attr("aria-hidden",
!0));this.isRightpcMenuOpen&&this.setRightMenuTop();b.addClass(this.classes.l0MenuShow);l.attr("aria-expanded",!0);r.attr("aria-hidden",!1);d&&d.focus();this.el.section.target[0].style.setProperty("--l1-container-current-height",w+"px");this.el.section.hasClass(this.classes.gnbShow)||this.el.section.addClass(this.classes.gnbShow);q.hasClass(this.classes.l0MenuListShow)||(this.el.section.removeClass(this.classes.gnbOpended),this.el.l0MenuList.removeClass(this.classes.l0MenuListShow),q.addClass(this.classes.l0MenuListShow))}};
e.prototype.pcMenuClose=function(){if(!this.isActiveMenuOpen){var b=this.el.section.find("."+this.classes.l0MenuShow),d=b.find(this.selector.l0MenuToggleBtn).target.length?b.find(this.selector.l0MenuToggleBtn):b.find(this.selector.l0MenuItem);b=b.find(this.selector.l1MenuContainer+" a:focus").target.length?b.find(this.selector.l1MenuContainer+" a:focus"):null;"desktop"===this.getCurrentDevice()&&(this.el.l0MenuBtn.attr("aria-expanded",!1),this.el.l0MenuToggleBtn.attr("aria-expanded",!1));b&&d&&d.focus();
this.el.l1MenuContainer.attr("aria-hidden",!0);this.el.section.removeClass(this.classes.gnbOpended);this.el.section.removeClass(this.classes.gnbShow);this.el.l0MenuList.removeClass(this.classes.l0MenuListShow);this.el.l0Menu.removeClass(this.classes.l0MenuShow);this.el.section.target[0].style.setProperty("--l1-container-current-height",0);this.isRightpcMenuOpen=!1}};e.prototype.handleUtilityMouseEnter=function(){this.isActiveMenuOpen=this.isRightpcMenuOpen?!0:!1};e.prototype.handleMobileGnbOpen=function(){this.el.section.hasClass(this.classes.gnbShow)||
(this.isTextType?g.setLazyLoadManually(this.el.featuredWrap.target[0]):g.setLazyLoadManually(this.el.mobileLeftMenuList.target[0]),this.el.l0MenuTitle.target.forEach(function(b){return g.setLazyLoadManually(b)}),this.el.section.addClass(this.classes.gnbShow),this.el.l0MenuTitle.attr("aria-hidden",!1),this.el.container.attr("aria-hidden",!1),this.el.container.setLayerFocus(this.selector.mobileContainerHeaderSearch,this.selector.mobileExpandCloseButton,!1),this.el.mobileContainerHeaderSearch.focus(),
this.setAccordion(),k.setMobileFocusLoop(this.el.container.target[0]),this.el.header.find("a, button").attr("tabindex",-1),k.hiddenScroll(),this.el.window.off("click",this.handler.handleClickDim).on("click",this.handler.handleClickDim),this.el.window.off("pointerdown",this.handler.handleCheckClickDim).on("pointerdown",this.handler.handleCheckClickDim))};e.prototype.handleMobileGnbClose=function(){var b=this;this.isLeaveAfterTouch=this.isTouch=!0;this.el.section.hasClass(this.classes.gnbShow)&&(k.removeMobileFocusLoop(),
this.el.section.removeClass(this.classes.gnbShow),this.el.header.find("a, button").removeAttr("tabindex"),this.el.mobileExpandMenuButton.focus(),this.el.l0MenuTitle.attr("aria-hidden",!1),this.el.l0Menu.attr("aria-hidden",!1),this.el.l1MenuContainer.attr("aria-hidden",!0),this.el.container.attr("aria-hidden",!0),this.el.l0MenuList.removeClass(this.classes.l0MenuListShow),this.el.section.removeClass(this.classes.gnbl1MenuShow),this.el.l0Menu.removeClass(this.classes.l0MenuShow),this.setAccordion(),
k.visibleScroll(),this.el.window.off("click",this.handler.handleClickDim),this.el.window.off("pointerdown",this.handler.handleCheckClickDim),setTimeout(function(){b.el.containerInner.target[0].scrollTo({top:0})},300))};e.prototype.handleCheckClickDim=function(b){this.isDimClick=!b.target.closest(this.selector.container)&&!b.target.closest(this.selector.header)};e.prototype.handleMobileMenuOpen=function(b){var d=n(b.currentTarget).closest(".nv00-gnb-v4__l0-menu"),l=d.closest(this.selector.l0MenuList),
q=d.find(this.selector.l1MenuContainer);!d.hasClass(this.classes.l0MenuBannerType)&&!d.hasClass(this.classes.l0MenuShow)&&d.target.length&&q.target.length&&(this.isTextType||b.preventDefault(),q.attr("aria-hidden",!1),g.setLazyLoadManually(l.target[0]),this.el.l0Menu.removeClass(this.classes.l0MenuShow),this.el.section.addClass(this.classes.gnbl1MenuShow),l.addClass(this.classes.l0MenuListShow),d.addClass(this.classes.l0MenuShow),this.setAccordion(),this.el.mobileContainerHeaderSearch.removeClass(this.classes.popupLooping),
this.el.container.setLayerFocus(this.selector.mobileBackwardBtn,this.selector.mobileExpandCloseButton,!1),d.find("a.nv00-gnb-v4__l1-menu-container-title, "+this.selector.l1MenuItem).eq(0).focus(),this.el.l0MenuList.find(this.selector.l0Menu+":not(."+this.classes.l0MenuShow+")").attr("aria-hidden",!0),this.el.l0MenuTitle.attr("aria-hidden",!0))};e.prototype.handleMobileMenuClose=function(){var b=this,d=this.el.section.find("."+this.classes.l0MenuShow),l=d.find(this.selector.l0MenuItem);this.isTextType&&
(l=d.find(".nv00-gnb-v4__l0-menu-title button"));this.el.l0MenuTitle.attr("aria-hidden",!1);this.el.l0Menu.attr("aria-hidden",!1);this.el.l0Menu.removeClass(this.classes.l0MenuShow);this.el.section.removeClass(this.classes.gnbl1MenuShow);this.el.l0MenuList.removeClass(this.classes.l0MenuListShow);this.setAccordion();this.el.mobileBackwardBtn.removeClass(this.classes.popupLooping);setTimeout(function(){b.el.container.setLayerFocus(b.selector.mobileContainerHeaderSearch,b.selector.mobileExpandCloseButton,
!1);l.target[0].focus();b.el.l1MenuContainer.attr("aria-hidden",!0)},400)};e.prototype.initSwiper=function(){var b=this,d=this.el.featuredSwiper.target[0];d&&(h.slideReInit(d),h.slideUpdate(d,{realSlidesPerView:Math.round(this.getRealSlidePerview())}),h.slideInitEnd(d,function(){b.swiper=h.getSwiper(d);b.setSwiperStatus()}))};e.prototype.updateSwiper=function(){var b=this.el.featuredSwiper.target[0];b&&(h.slideUpdate(b,{realSlidesPerView:Math.round(this.getRealSlidePerview())}),this.setSwiperStatus())};
e.prototype.getRealSlidePerview=function(){var b=parseInt(window.getComputedStyle(this.el.featuredSwiper.target[0]).paddingLeft);b=this.el.featuredSwiper.offset().width-b;var d=this.el.featuredSwiperSlide.offset().width;b/=d;return.8<b-Math.floor(b)?b:Math.floor(b)};e.prototype.setSwiperStatus=function(){var b=this.el.featuredSwiper.target[0];(this.swiper=h.getSwiper(b))?this.swiper.slides.length<=this.getRealSlidePerview()||1===this.swiper.slides.length?(this.swiper.allowTouchMove=!1,this.el.featuredSwiperIndicator.hide(),
h.destroy(b)):(this.swiper.allowTouchMove=!0,this.el.featuredSwiperIndicator.show()):this.initSwiper()};e.prototype.handleAccordionKeydown=function(b){b.keyCode===f.SPACE&&(b.preventDefault(),this.handleAccordionToggle(b))};e.prototype.setAccordion=function(){var b=this,d=null,l=null;l=this.el.section.hasClass(this.classes.gnbl1MenuShow);var q=!this.el.section.hasClass(this.classes.gnbShow);l?(d=this.el.l0MenuList.find("."+this.classes.l0MenuListShow+" "+this.selector.accordionWrap),l=this.el.section.find(this.selector.l0Menu+
":not(."+this.classes.l0MenuShow+") "+this.selector.accordionWrap+", "+this.selector.l0AccordionList)):q?l=this.el.section.find(this.selector.accordionWrap):(d=this.el.l0AccordionList,l=this.el.l0MenuList.find(this.selector.accordionWrap));d&&d.target.forEach(function(r){r=n(r);var w=r.find(b.selector.accordionBtn);r.hasClass(b.classes.accordionActive)?b.openAccordion(w):b.closeAccordion(r)});l&&l.target.forEach(function(r){r=n(r);b.closeAccordion(r)})};e.prototype.handleAccordionToggle=function(b){b.preventDefault();
b=n(b.currentTarget);var d=b.closest(this.selector.accordionWrap);d.hasClass(this.classes.accordionActive)?(this.closeAccordion(d),d.removeClass(this.classes.accordionActive)):(this.openAccordion(b),d.addClass(this.classes.accordionActive))};e.prototype.openAccordion=function(b){var d=b.closest(this.selector.accordionWrap),l=d.find(this.selector.accordionContainer),q=d.find(this.selector.accordionInner);d=d.find("a");q=q.innerHeight();l.css({"max-height":q+"px"});b.attr("aria-expanded",!0);l.attr("aria-hidden",
!1);d.removeAttr("tabindex")};e.prototype.closeAccordion=function(b){var d=b.find(this.selector.accordionContainer),l=b.find(this.selector.accordionBtn);b=b.find(this.selector.accordionInner+" a");d.attr("aria-hidden",!0);d.css({"max-height":null});l.attr("aria-expanded",!1);b.attr("tabindex",-1)};e.prototype.handleUserMenuMouseEnter=function(b){b=n(b.currentTarget);this.userMenuOpen(b)};e.prototype.handleUserMenuMouseLeave=function(){this.userMenuClose()};e.prototype.handleUserMenuKeydown=function(b){if("keydown"!==
b.type||this.isKeydownEvent(b)){b.preventDefault();b=n(b.currentTarget).closest(this.selector.utilityUserWrap);var d=b.find(".nv00-gnb-v4__utility-menu").target[0];b.hasClass(this.classes.userMenuShow)?this.userMenuClose():this.userMenuOpen(b,d)}};e.prototype.handleClickDim=function(b){!this.isDimClick||b.target.closest(this.selector.container)||b.target.closest(this.selector.header)||this.handleMobileGnbClose()};e.prototype.userMenuOpen=function(b,d){d=void 0===d?null:d;var l=b.find(this.selector.utilityMenuWrap);
l=l.innerHeight()+parseFloat(window.getComputedStyle(l.target[0]).marginTop)+15;var q=b.find(this.selector.utilityUserBtn),r=b.find(this.selector.utilityUserList);this.isActiveMenuOpen=!1;this.pcMenuClose();b.target[0].style.setProperty("--gnb04-utility-user-height",l+"px");b.addClass(this.classes.userMenuShow);q.attr("aria-expanded",!0);r.attr("aria-hidden",!1);d&&d.focus()};e.prototype.userMenuClose=function(){var b=this.el.section.find("."+this.classes.userMenuShow),d=b.find(this.selector.utilityUserBtn),
l=b.find(this.selector.utilityUserList);l.find(".nv00-gnb-v4__utility-menu:focus").target.length&&l.find(".nv00-gnb-v4__utility-menu:focus")&&d.focus();b.removeClass(this.classes.userMenuShow);d.attr("aria-expanded",!1);l.attr("aria-hidden",!0)};e.prototype.setShyGNB=function(){var b=n(this.selector.heroKv).eq(0);if(b.target.length){var d=this.el.section.offset().top+this.el.section.height(),l=b.offset().top;d=10>Math.abs(parseInt(d-l));b.target.length&&d&&(this.stickyMode=!0,this.shyTheme=b.hasClass("hd08-hero-kv-home--text-white")?
"dark":"light",this.setShyTheme())}else this.stickyMode=!1};e.prototype.setShyMode=function(b){this.stickyMode=!0;this.shyTheme=b;this.setShyTheme()};e.prototype.handleSticky=function(){if(this.stickyMode){var b=window.scrollY,d=b>this.scrollTop?"down":"up",l=0>this.el.section.offset().top;"up"===d&&l?(this.el.section.addClass(this.classes.fixed),this.removeShyTheme()):(this.el.section.removeClass(this.classes.fixed),this.setShyTheme());"down"===d&&l?this.el.section.addClass(this.classes.down):this.el.section.removeClass(this.classes.down);
this.scrollTop=b}else this.el.section.removeClass(this.classes.fixed),this.el.section.removeClass(this.classes.down)};e.prototype.setShyTheme=function(){"dark"===this.shyTheme?this.el.section.addClass(this.classes.shyDark):"light"===this.shyTheme?this.el.section.addClass(this.classes.shyLight):this.removeShyTheme()};e.prototype.removeShyTheme=function(){this.el.section.removeClass(this.classes.shyDark);this.el.section.removeClass(this.classes.shyLight)};e.prototype.setScrollPaddingTop=function(){this.stickyMode&&
k.setScrollPaddingTop("gnbV4",this.el.section.innerHeight())};e.prototype.openLayerPopup=function(b){var d=this,l=b&&this.el.layerPopupWrap.find(b);b&&l.target.length&&(k.setMobileFocusLoop(this.el.layerPopupWrap.target[0]),this.el.layerPopupWrap.addClass("show"),this.el.layerPopupWrap.setLayerFocus(this.selector.layerPopupLoopingStart,this.selector.layerPopupLoopingEnd),l.addClass("show"),b=l.find(this.selector.layerPopupCloseButton),b.focus(),b.off("click").on("click",function(){return d.handler.closeLayerPopup(l.target[0])}),
this.el.layerPopupWrap.off("click").on("click",function(q){q.target.closest(".layer-popup")||d.handler.closeLayerPopup(l.target[0])}),k.hiddenScroll())};e.prototype.closeLayerPopup=function(b){k.removeMobileFocusLoop();b=b?n(b):this.el.section.find(this.el.layerPopup+".show");b.removeClass("show");this.el.layerPopupWrap.removeClass("show");this.el.layerPopupWrap.offLayerFocus();this.el.layerPopupWrap.off("click");b="mobile"===this.getCurrentDevice()?this.el.section.find('.nv00-gnb-v4__header [data-target-popup\x3d"#'+
b.attr("id")+'"]'):this.el.section.find('.nv00-gnb-v4__container [data-target-popup\x3d"#'+b.attr("id")+'"]');b.target.length&&b.focus();k.visibleScroll()};e.prototype.getCurrentDevice=function(){return 1279<k.getViewPort().width?"desktop":"mobile"};e.prototype.isKeydownEvent=function(b){return"keydown"===b.type&&(b.keyCode===f.ENTER||b.keyCode===f.DOWN||b.keyCode===f.SPACE)};e.prototype.isKeydownNextInput=function(b){return b&&b.keyCode===f.RIGHT||b.keyCode===f.DOWN};e.prototype.isKeydownPrevInput=
function(b){return b&&b.keyCode===f.LEFT||b.keyCode===f.UP};e.instances=new WeakMap;window.sg.components.Nv00GnbV4={init:a,reInit:function(){n(m.section).target.forEach(function(b){e.instances.has(b)?e.instances.get(b).reInit():new e(b)})},openLayerPopup:function(b){n(m.section).target.forEach(function(d){e.instances.has(d)&&e.instances.get(d).openLayerPopup(b)})},closeLayerPopup:function(b){n(m.section).target.forEach(function(d){e.instances.has(d)&&e.instances.get(d).closeLayerPopup(b)})},getCurrentDevice:function(){var b=
document.querySelector(m.section);if(b)return e.instances.get(b).getCurrentDevice()},setShyLight:function(){n(m.section).target.forEach(function(b){e.instances.has(b)&&e.instances.get(b).setShyMode("light")})},setShyDark:function(){n(m.section).target.forEach(function(b){e.instances.has(b)&&e.instances.get(b).setShyMode("dark")})}};n.ready(a)})();ss=$;var reservationUserData=null;function nextGenLoginResult(a){}
(function(a){ss.Sign=function(){function n(K){if(!K)return{};var H={};K.slice(1).split("\x26").map(function(V){return V.split("\x3d")}).forEach(function(V){var X=$jscomp.makeIterator(V);V=X.next().value;X=X.next().value;V&&X&&(H[V]=decodeURIComponent(X))});return H}function k(){a.cookies.del("estoreLoginRequesting");a.cookies.del("estoreLoginRequesting",{domain:Q})}function g(){a.cookies.del("snsSessionId");a.cookies.del("snsSessionId",{path:"/",domain:Q});a.cookies.del("isStoreLogedIn");a.cookies.del("sa_em");
a.cookies.del("sa_em",{path:"/",domain:Q});a.cookies.del("eVar67");a.cookies.del("eVar67",{path:"/",domain:Q});a.cookies.del("lastName",{domain:Q});a.cookies.del("firstName",{domain:Q});a.cookies.del("guid",{domain:Q});a.cookies.del("ReD",{domain:Q});a.cookies.del("ReDCheck",{domain:Q});a.cookies.del("directCallFl",{expires:null,domain:Q});a.cookies.del("directCallFlv2",{expires:null,domain:Q});a.cookies.del("returnURL",{domain:Q});a.cookies.del("mVal10",{domain:Q});a.cookies.del("mVal11",{domain:Q});
a.cookies.del("flpe",{domain:Q});a.cookies.del("encGuid",{domain:Q});a.cookies.del("dcgue",{domain:Q});a.cookies.del("dg_sai",{domain:Q});a.cookies.del("glbState",{domain:Q});a.cookies.del("cntoken",{domain:Q});a.cookies.del("cnfl",{domain:Q});if(IS_B2B){var K="/"+SITE_CD+"/";a.cookies.del("emailId",{domain:Q});a.cookies.del("emailAddr",{domain:Q});a.cookies.del("phone",{domain:Q});a.cookies.del("userAccount",{domain:Q});a.cookies.del("dotcomReturnURL",{domain:Q});a.cookies.del("isSMBRegisteredUserYN",
{path:K,domain:Q})}k();a.cookies.del("prof_id",{path:"/",domain:Q});a.cookies.del("prof_lname",{path:"/",domain:Q});a.cookies.del("prof_bpno",{path:"/",domain:Q});a.cookies.del("prof_bpno_s",{path:"/",domain:Q});a.cookies.del("rew_enr",{path:"/",domain:Q});a.cookies.del("prof_fname",{path:"/",domain:Q});a.cookies.del("tppid",{path:"/",domain:Q});a.cookies.del("tmktid",{path:"/",domain:Q});a.cookies.del("tmktname",{path:"/",domain:Q});a.cookies.del("tlgimg",{path:"/",domain:Q});a.cookies.del("taccessrtype",
{path:"/",domain:Q});a.cookies.del("remoteId",{path:"/",domain:Q});a.cookies.del("tsgmt",{path:"/",domain:Q});a.cookies.del("epp_verified",{path:"/",domain:Q});a.cookies.del("store_id",{path:"/",domain:Q});login_user_info={};if(IS_EPP){K=document.cookie.split(";");K=$jscomp.makeIterator(K);for(var H=K.next();!H.done;H=K.next()){H=H.value;var V=H.indexOf("\x3d");H=unescape(H.slice(0,V)).trim();(-1<H.indexOf("useAuthorizedApi.")||-1<H.indexOf("groupName."))&&a.cookies.del(H,{domain:Q})}}}function f(){a.cookies.del("xsdcxyn");
a.cookies.del("xsdcxyn",{path:"/",domain:Q});a.cookies.del("xsdcbxyn");a.cookies.del("xsdcbxyn",{path:"/",domain:Q});a.cookies.del("iPlanetDirectoryPro");a.cookies.del("iPlanetDirectoryPro",{path:"/",domain:Q});a.cookies.del("iPlanetDirectoryProOptVal");a.cookies.del("iPlanetDirectoryProOptVal",{path:"/",domain:Q})}function h(){window.localStorage.removeItem("dcgue");window.localStorage.removeItem("flpe");window.localStorage.removeItem("encGuid");window.localStorage.removeItem("guidSet");window.localStorage.removeItem("TierName");
window.localStorage.removeItem("TierCode")}function m(K){var H={education:"/us/shop/offer-program/education/","first responder":"/us/shop/offer-program/first-responders/",government:"/us/shop/offer-program/government/",workplace:"/us/shop/offer-program/workplace/",military:"/us/shop/offer-program/military/"},V=a.cookies.get("tlgimg"),X=a.cookies.get("tmktname"),na=a.cookies.get("tmktid"),ta=a.cookies.get("tsgmt"),pb=a.cookies.get("xsdcxyn"),ua;if(K){if(ua=K.store_info)ua.image_logo_url&&(V=ua.image_logo_url),
ua.store_disp_name&&(X=ua.store_disp_name),ua.store_id&&(na=ua.store_id),ua.store_segment&&(ta=ua.store_segment);"sa_login"===K.login_type?(ua=!0,window.isSaLogin=!0):(ua=!1,window.isSaLogin=!1)}K=ta&&H[ta.toLowerCase()]||"/us/shop/offer-program/";window.EcommFlutterClient&&(window.EcommFlutterClient.onmessage=function(Ja){Ja=JSON.parse(Ja.data);var Cb=Ja.data.status;"isSignedInStatus"===Ja.name&&(window.isShopSignedIn=Cb)},window.EcommFlutterClient.postMessage(JSON.stringify({name:"isSignedIn",params:{callbackEvent:"isSignedInStatus"}})));
H=a(".epp-bar-wrap");H.show();H.addClass("gnb-edited");ta=H.find(".epp-bar-msg");ta.empty();var Ga=H.find(".benfit-wrap");Ga.empty();var zb=H.find(".epp-bar-logo");zb.empty();V&&zb.append("\x3cimg src\x3d"+V+" /\x3e");X?(pb?ua||window.isShopSignedIn?ta.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+X+" Store!\x3c/div\x3e Please enjoy our special offers for you."):ta.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+X+' Store!\x3c/div\x3e Please \x3ca href\x3d"#" class\x3d"epp-login"\x3elogin\x3c/a\x3e to access your special pricing.'):
("4145500"===na&&"17593200"===a.cookies.get("tppid")?(a(".epp-bar-logo img").remove(),a(".epp-bar-logo").append('\x3cimg src\x3d"'+V+'"/\x3e'),a(".epp-bar-msg").html("Welcome to belo4d's Friends and Family Store! Enjoy special pricing. Please \x3ca href\x3d'#' id\x3d'openLogin' style\x3d'font-size:12px;font-weight: bold'\x3elogin/signup\x3c/a\x3e to make a purchase.")):"900297"==na||"4789760653"==na?(a(".epp-bar-logo img").remove(),a(".epp-bar-logo").append('\x3cimg src\x3d"'+V+'"/\x3e'),a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+
X+" Store!\x3c/div\x3e")):(a(".epp-bar-logo img").remove(),a(".epp-bar-logo").append('\x3cimg src\x3d"'+V+'"/\x3e'),a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username" style\x3d"color:#1428a0;"\x3e'+X+" Store!\x3c/div\x3e Please \x3ca href\x3d'#' id\x3d'openLogin' style\x3d'color:#1428a0;font-weight: bold'\x3elogin\x3c/a\x3e to enjoy our special pricing."),a("#openLogin").click(function(Ja){Ja.preventDefault();a(".gnb-login").trigger("click")})),a(".epp-bar-wrap").slideDown()),
"900297"!=na&&"4789760653"!=na&&Ga.append('\x3ca class\x3d"benfit-wrap__offers" href\x3d"'+K+'"\x3eSPECIAL OFFERS\x3c/a\x3e'),ua||"900297"==na||"4789760653"==na||Ga.append('\x3cspan class\x3d"benfit-wrap__gap"\x3e\x3c/span\x3e\x3ca class\x3d"benfit-wrap__exit"\x3eEXIT STORE\x3c/a\x3e'),H.find(".epp-login").click(function(Ja){Ja.preventDefault();a(".nv00-gnb-v4__utility-menu.loginBtn").trigger("click")}),Ga.find(".benfit-wrap__exit").click(function(){window.AEMapp.eppStore.exitStore();a(document).trigger("exit__store");
a(".epp-bar-wrap").hide();a(".epp-bar-wrap").find(".epp-bar-msg").empty();a(".epp-bar-wrap").find(".epp-bar-logo").empty();a(".epp-bar-wrap").find(".benfit-wrap").empty()})):H.hide();window.location.href.includes("us/business")&&H.hide()}function e(){g();f();h();clearInterval(Eb);Ia=null;(USE_ESTORE||Ea)&&d(!1);return!1}function b(K,H,V,X){var na=a.trim(K+" "+H);"jp"===siteCode&&(na=a.trim(H+" "+K));"cn"===SITE_CD&&(na=H);K=na;null!=Ab&&void 0!=Ab.emailAddr&&null!=Ab.emailAddr&&(K+=". "+Ab.emailAddr,
Ab.emailAddr&&(Ab.emailAddr.includes("@")?window.userEmailDomain=Ab.emailAddr.split("@")[1]:window.userEmailDomain=Ab.emailAddr));a(".nv00-gnb-v4__utility-menu.nv00-gnb-v4__utility-menu--user-profile.nv00-gnb-v4--pc-only.js-user-name").attr("aria-label",K);Za.find(".image__main");K=Za.find(".user-name");H=a(".js-gnb-afterlogin-image");var ta=a(".js-gnb-afterlogin-no-image");if(""!=Ub&&null!=Ub&&V){Tc("LazyLoad_Home",Ub);var pb=Ub;H.find(".image__main").attr("src",pb);H.show();ta.remove()}else H.remove();
X&&(ec="https://account.quick3d.org/membership/contents/profile/profile-gate",Za.attr("href",ec));K.html(na);window.sg.common.lazyLoad.setLazyLoadManually(H[0]);!window.localStorage.getItem("guidSet")&&V?(window.digitalData.user.sa=Pa,window.localStorage.setItem("guidSet","true"),a.ajax({url:"/aemapi/v6/mybelo4d/pdrewards/tierinfo",type:"GET",data:{siteCode:SITE_CD,ncp:Math.random()},dataType:"json"}).done(function(ua){if(ua&&ua.resultData&&ua.resultData.apiResult&&ua.resultData.apiResult.d){var Ga=
ua.resultData.apiResult.d.TierCode;window.localStorage.setItem("TierName",ua.resultData.apiResult.d.TierName);window.localStorage.setItem("TierCode",Ga)}})):window.digitalData.user.sa=""}function d(K){null==mb||null==u?b("","",!1):"vn"===SITE_CD?b("",u,!1):b(mb,"",!1)}function l(K,H){var V=new Date;V.setDate(V.getDate()+H);document.cookie="_common_saveEmail\x3d"+encodeURIComponent(K)+"; path\x3d/; domain\x3d.quick3d.org; expires\x3d"+V.toGMTString()+";"}function q(){var K=document.cookie+";",H=K.indexOf("_common_saveEmail",
0),V="";-1!=H&&(K=K.substring(H,K.length),H=K.indexOf("\x3d",0)+1,V=K.indexOf(";",H),V=decodeURIComponent(K.substring(H,V)));""!==V&&(xc.next().css({visibility:"hidden"}),xc.val(V),$b.attr("checked","checked"),$b.prop("checked",!0),$b.next().addClass($b.next().attr("data-acc-onclass")))}function r(){"N"===a.cookies.get("directCallFlv2")&&("undefined"!=typeof dataLayer&&"object"==typeof dataLayer&&dataLayer.push({event:"login",eventNonInteraction:!0}),a.cookies.set("directCallFlv2","Y",{expires:null,
domain:Q}))}function w(K){K?(ss.Auth.getUserProfile(function(H){null!=H&&""!==H?"vn"===SITE_CD?b("",H.lastName,!0):b(H.firstName,H.lastName,!0):b("","",!0)}),IS_EPP||IS_B2B||!ud||a(".nv00-gnb-v4__utility-user-menu-rewards-link"),Aa.addClass("hide")):Aa.removeClass("hide")}function x(){a.ajax({url:"https://account.quick3d.org/api/v1/users",type:"GET",dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,success:function(K){console.log("reload sa cookie -"+
new Date)},error:function(K,H,V){}})}function C(){function K(X){V<H.length?(estore.addWishListItemForce({productCode:H[V]},K),V++):(a.cookies.deleteWishList(),a.EstoreIfQueue&&a.EstoreIfQueue.setIsSignReady(!0))}var H=a.cookies.getWishList(),V=0;0<H.length?K():a.EstoreIfQueue&&a.EstoreIfQueue.setIsSignReady(!0)}function E(){void 0!=window.sg.components.Nv00GnbV4&&(window.sg.components.Nv00GnbV4.closeLayerPopup("#"+Sb.attr("id")),window.sg.components.Nv00GnbV4.closeLayerPopup("#"+Hc.attr("id")))}function z(K){if(K){var H=
LOGIN.msg.errorTitleText,V="";switch(K){case "DW":case "AW":case "WP":V=LOGIN.msg.errorText1;break;case "BA":V=LOGIN.msg.errorText2;break;case "UK":V=LOGIN.msg.errorText3;break;case "ES":V=LOGIN.msg.errorText4}Pb=Cc;-1=="pop-tit".indexOf(a("#confirmPopup \x3ediv\x3e div.popup_wrap").find("h2").attr("class"))&&(Cc.append('\x3ch2 class\x3d"pop-tit"\x3e'),Cc.append('\x3cp class\x3d"msg-text tc"\x3e'));a(".pop-tit",Cc).text(H);a(".msg-text",Cc).text(V)}E();if(ha){a("#privacy-terms").parent().find(".checkbox-v2__label-text").empty();
a("#privacy-terms2").parent().find(".checkbox-v2__label-text").remove();a("#privacy-terms2").parent().find(".layer-popup__checkbox-desc").remove();if(0<qb.length){var X=qb[0].data.content;if(null!=qb[1]){var na=qb[1].data.content;na=na.replace("checkbox-v2__label-text","checkbox-radio__label-text checkbox-v2__label-text")}}a("#privacy-terms").parent().find(".checkbox-v2__label-text").append(X);null!=na&&a("#privacy-terms2").parent().append(na)}Pb&&0<Pb.length&&void 0!=window.sg.components.Nv00GnbV4&&
window.sg.components.Nv00GnbV4.openLayerPopup("#"+Pb.attr("id"))}function T(K){var H="",V=a.cookies.get("jwt_"+ka,{domain:Q});ha&&(H=STORE_DOMAIN+"/v4/identity/preferences");a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*","x-ecom-app-id":"identity-store","x-ecom-jwt":V},url:H,type:"PUT",dataType:"json",data:K,xhrFields:{withCredentials:!0},beforeSend:function(X){"Y"===Ib&&X.setRequestHeader("x-ecom-locale",Fb)},success:function(X){E();
Pb="Y"===N||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Hc;z()},error:function(X,na,ta){console.error(na)}})}function ca(){var K="";IS_B2B?K=da+"/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+ra:"au"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||
"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD||"eg"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"pk"===SITE_CD||"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD?K=STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+ra:M?(K=da+"/"+STORE_SITE_CODE+"/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+ra,"tr"===SITE_CD&&(K=STORE_DOMAIN+"/tokocommercewebservices/v2/tr/users/current/agreeStorePolicy?receiveEmail\x3d"+
ra+"\x26etkOptin\x3d"+va+"\x26dataTransferConsent\x3d"+nb)):K="es"===SITE_CD||"it"===SITE_CD?-1<STORE_DOMAIN.indexOf("https://")?STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+ra:STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/setAgreeStorePolicy?receiveEmail\x3d"+ra:"levant"===SITE_CD?STORE_DOMAIN+"/jo/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+ra:"levant_ar"===SITE_CD?STORE_DOMAIN+"/jo_ar/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+ra:"n_africa"===SITE_CD?STORE_DOMAIN+"/ma/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+
ra:STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/setAgreeStorePolicy?receiveEmail\x3d"+ra;Rb?a.ajax({url:K,type:"GET",data:{ssoID:Pa},dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,beforeSend:function(){},success:function(H){E();"0000"===H.resultCode&&(Pb="Y"===N||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Hc,z())},error:function(H,V,X){console.error(V)}}):a.ajax({url:K,
type:"GET",dataType:"jsonp",data:{ssoID:Pa},jsonp:"callback",beforeSend:function(){},success:function(H){E();"0000"===H.resultCode&&(Pb="Y"===N||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Hc,z())},error:function(H,V,X){console.error(V)}})}function oa(){var K=!0,H=a.cookies.get("new_sa_login",{domain:".quick3d.org"});H&&"us"===SITE_CD&&(K=!1);if(Z)K=a.cookies.get("sa_state",{domain:Q}),H=a.cookies.get("temp_sa_state",{domain:Q}),
!K&&!H||mb&&u?shopAppUtilInstance.isPlatformReady()?window.flutter_inappwebview.callHandler("login",window.location.href):window.addEventListener("flutterInAppWebViewPlatformReady",function(){window.flutter_inappwebview.callHandler("login",window.location.href)}):wa();else if("cn"===SITE_CD)a("#signInForm").attr("action",hb),a("#client_id",Xa).val(a("#loginAccountServiceId").val()),K=a("#redirect_uri",Xa).val(),H="https://"+window.location.host+K,a("#redirect_uri",Xa).val(H),a("#response_type",Xa).val("code"),
a("#scope",Xa).val("server"),a("#signInState",Xa).val("STATE"),a.cookies.set("glbState","STATE",{domain:Q}),pa=window.location.href,a.cookies.set("returnURL",pa,{domain:Q}),IS_B2B&&a.cookies.set("dotcomReturnURL",pa,{domain:Q}),Xa.submit(),pa=void 0;else if(K){pa=window.location.href;K=a("#redirect_uri",Xa).val();H="https://"+window.location.host+K;K="GLB"+Math.random().toString(36).substr(2,7);a.cookies.set("glbState",K,{domain:Q});var V=a("#loginAccountServiceId").val(),X=a("#languageCode").val(),
na=a("#countryCode").val();"id"==SITE_CD&&(X="in");X=X+"-"+na;a.cookies.set("returnURL",pa,{domain:Q});IS_B2B&&a.cookies.set("dotcomReturnURL",pa,{domain:Q});pa=void 0;(na=$b.is(":checked"))?l(a.trim(xc.val()),7):l(null,-1);K={clientId:V,redirectUri:encodeURIComponent(H),responseType:"code",scope:"",state:K};window.belo4d.account.signIn(K,{locale:X})}else if(!IS_B2B||null!=hb&&""!=hb&&IS_B2B){a("#signInForm").attr("action",hb);pa=window.location.href;K=a("#redirect_uri",Xa).val();H="";H=window.location.port;
H=null==H||""===H||"80"===H||"8080"===H?"https://"+window.location.host:"http://"+window.location.host;0>K.indexOf(window.location.hostname)&&(H+=K,a("#redirect_uri",Xa).val(H));K="GLB"+Math.random().toString(36).substr(2,11);a.cookies.set("glbState",K,{domain:Q});a("#response_type",Xa).val("code");a("#countryCode",Xa).val(a("#countryCode",Xa).val());a("#redirect_uri",Xa).val(a("#redirect_uri",Xa).val());a("#signInState",Xa).val(K);a("#signInGoBackURL",Xa).val(pa);a(".goBackURL").val(pa);a("#scope",
Xa).val("");(H=a.cookies.get("new_sa_login",{domain:".quick3d.org"}))&&"us"===SITE_CD&&(K=btoa(window.location.href+"?state\x3d"+K),a("#signInState",Xa).val(K),K=-1<window.location.host.indexOf("p6-pre-qa")||-1<window.location.host.indexOf("p6-qa")?"https://us.ecom-qa.quick3d.org/v4/sso/sa/login":"https://www.quick3d.org/us/api/v4/sso/sa/login",a("#redirect_uri",Xa).val(K));if(K=a("#loginAccountServiceId").val())V=K,a("#client_id",Xa).val(V);X=a("#languageCode").val();na=a("#countryCode").val();X&&
na&&(X=X+"_"+na,a("#locale",Xa).val(X));a.cookies.set("returnURL",pa,{domain:Q});IS_B2B&&a.cookies.set("dotcomReturnURL",pa,{domain:Q});Xa.submit();(na=$b.is(":checked"))?l(a.trim(xc.val()),7):l(null,-1);pa=void 0}}function ba(){var K=!0;pa=window.location.href;a.cookies.set("returnURL",pa,{domain:Q});var H=a.cookies.get("new_sa_login",{domain:".quick3d.org"});H&&"us"===SITE_CD&&(K=!1);if("cn"===SITE_CD){var V=a.cookies.get("cntoken",{domain:Q});V=decodeURIComponent(V).split("|");a.ajax({headers:{"Cache-Control":"no-cache",
"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Authorization:"Bearer "+V[0]},url:lc,type:"POST",data:JSON.stringify({accessToken:V[0],channel:"hybris"}),dataType:"json",xhrFields:{withCredentials:!0},success:function(X){null!=X&&"200"==X.status?(e(),pa=window.location.href,pa=pa.escapeHtml(),location.href=da+"/cn/logout?redirectUrl\x3d"+encodeURIComponent(pa)):null!=X&&"500"==X.status&&console.error(X.code+" : "+X.message)}})}else if(K)window.belo4d.account.signOut().then(function(){location.href=
"/aemapi/v6/data-login/afterLogout."+SITE_CD+".json?state\x3dstate\x26result\x3dsuccess"}).catch(function(X){console.error(X);console.error("sign-out failure");a("#signOutForm").attr("action",lc);pa=window.location.href;!a("#tempTitle").val()||"page-my-belo4d"!==a("#tempTitle").val()&&"page-my-products"!==a("#tempTitle").val()&&"page-my-rewards"!==a("#tempTitle").val()&&"page-my-referrals"!==a("#tempTitle").val()||(pa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/");a.cookies.set("returnURL",
pa,{domain:Q});if(IS_B2B){a.cookies.set("dotcomReturnURL",pa,{domain:Q});X="/"+SITE_CD+"/";a.cookies.del("useTaxExPriceYN",{path:X,domain:Q});var na=a.cookies.get("useSMBCookiePaths");a.cookies.del("useSMBCookiePaths",{path:"/",domain:Q});if(null!=na){X=na.split(";");for(var ta in X)""!=X[ta]&&null!=X[ta]&&a.cookies.del("isSMBRegisteredUserYN",{path:X[ta],domain:Q})}else a.cookies.del("isSMBRegisteredUserYN",{path:X,domain:Q})}ta=a("#signOutURL",$a).val();X=window.location.port;X=null==X||""===X||
"80"===X||"8080"===X?"https://"+window.location.host:"http://"+window.location.host;0>ta.indexOf(window.location.hostname)&&(ta=X+ta,a("#signOutURL",$a).val(ta));ta="GLB"+Math.random().toString(36).substr(2,11);a.cookies.set("glbState",ta,{domain:Q});a("#signOutState",$a).val(ta);"us"===SITE_CD&&(ta=btoa(window.location.href+"?state\x3d"+ta),a("#signOutState",$a).val(ta),ta=-1<window.location.host.indexOf("p6-pre-qa")?"https://us3.ecom-qa.quick3d.org/v2/sso/user/logout":"/us/api/v2/sso/user/logout",
a("#signOutURL",$a).val(ta));(ta=a("#loginAccountServiceId").val())&&a("#client_id",$a).val(ta);h();clearInterval(Eb);Rb&&"us"===siteCode?(ta=da+"/us/logout?redirectUrl\x3d"+encodeURIComponent(window.location.href),location.href=ta):$a.submit();pa=void 0});else{a("#signOutForm").attr("action",lc);pa=window.location.href;!a("#tempTitle").val()||"page-my-belo4d"!==a("#tempTitle").val()&&"page-my-products"!==a("#tempTitle").val()&&"page-my-rewards"!==a("#tempTitle").val()&&"page-my-referrals"!==a("#tempTitle").val()||
(pa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/");a.cookies.set("returnURL",pa,{domain:Q});if(IS_B2B)if(a.cookies.set("dotcomReturnURL",pa,{domain:Q}),H="/"+SITE_CD+"/",a.cookies.del("useTaxExPriceYN",{path:H,domain:Q}),K=a.cookies.get("useSMBCookiePaths"),a.cookies.del("useSMBCookiePaths",{path:"/",domain:Q}),null!=K)for(V in H=K.split(";"),H)""!=H[V]&&null!=H[V]&&a.cookies.del("isSMBRegisteredUserYN",{path:H[V],domain:Q});else a.cookies.del("isSMBRegisteredUserYN",{path:H,
domain:Q});V=a("#signOutURL",$a).val();H="";H=window.location.port;H=null==H||""===H||"80"===H||"8080"===H?"https://"+window.location.host:"http://"+window.location.host;0>V.indexOf(window.location.hostname)&&(V=H+V,a("#signOutURL",$a).val(V));V="GLB"+Math.random().toString(36).substr(2,11);a.cookies.set("glbState",V,{domain:Q});a("#signOutState",$a).val(V);(H=a.cookies.get("new_sa_login",{domain:".quick3d.org"}))&&"us"===SITE_CD&&(V=btoa(window.location.href+"?state\x3d"+V),a("#signOutState",$a).val(V),
V=-1<window.location.host.indexOf("p6-pre-qa")?"https://us3.ecom-qa.quick3d.org/v2/sso/user/logout":"/us/api/v2/sso/user/logout",a("#signOutURL",$a).val(V));(V=a("#loginAccountServiceId").val())&&a("#client_id",$a).val(V);h();clearInterval(Eb);$a.submit();pa=void 0}}function xa(){function K(H){H?ss.Auth.signOut(pa):a.cookies.get("sa_state",{domain:Q})&&"cn"!=SITE_CD&&"us"!=SITE_CD?wa():oa()}Jc.click(function(){signIn()});Qb.click(function(){pa="http://"+window.location.host+"/"+SITE_CD+"/";a("#joinReturnURL",
Wb).val(pa);a("#joinGoBackURL",Wb).val(pa);var H=a("#joinRegistURL",Wb).val();var V=window.location.port;V=null==V||""===V||"80"===V||"8080"===V?"https://"+window.location.host:"http://"+window.location.host;0>H.indexOf(window.location.hostname)&&(H=V+H,a("#joinRegistURL",Wb).val(H));H=a("#joinEmailActivationURL",Wb).val();0>H.indexOf(window.location.hostname)&&(H=window.location.protocol+"//"+window.location.host+H,a("#joinEmailActivationURL",Wb).val(H));Wb.submit()});Rc.click(function(){pa=window.location.href;
a("#findReturnURL",jc).val(pa);a("#findGoBackURL",jc).val(pa);jc.submit()});Zc.click(function(){a(this).closest("#loginLayerPopup").is(":visible")&&(a("body").removeClass("gb-login-open"),a("#loginLayerPopup .popAlign").trigger("clickoutside","touchstartoutside"))});Sc.click(function(){"es"===SITE_CD&&ss.Auth.signOut();E();return!1});a(document).on("click",".loginBtn",function(H){H.preventDefault();H=!1;a(this).hasClass("nv00-gnb-v4__utility-btn")?"mobile"===window.sg.components.Nv00GnbV4.getCurrentDevice()&&
(H=!0):H=!0;H&&(ha?ss.Auth.checkSignInUs():ss.Auth.checkSignIn(K))});a(document).on("click",".js-account",function(H){H.preventDefault();fnIsNull(ec)?window.location.href="cn"===SITE_CD?"https://shop.quick3d.org.cn/cn/mypage":"https://account.quick3d.org/membership/contents/profile/profile-gate":window.location.href=ec});a(document).on("click",".logoutBtn",function(H){H.preventDefault();H=a(this).attr("data-return-url");ha&&!IS_B2B?("dev"===S?(pa=window.location.protocol+"//"+window.location.host+
"/content/belo4d/"+SITE_CD+".html",IS_B2B&&(pa=window.location.protocol+"//"+window.location.host+"/content/belo4d/"+SITE_CD+"/business.html")):"qa"===S?(pa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+".html",IS_B2B&&(pa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/business.html")):"live"===S&&(pa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/",IS_B2B&&(pa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/business/")),ss.Auth.signOutUs()):
(null!=H&&""!==H?pa=H:"dev"===S?(pa=window.location.protocol+"//"+window.location.host+"/content/belo4d/"+SITE_CD+".html",IS_B2B&&(pa=window.location.protocol+"//"+window.location.host+"/content/belo4d/"+SITE_CD+"/business.html")):"qa"===S?(pa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+".html",IS_B2B&&(pa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/business.html")):"live"===S&&(pa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/",IS_B2B&&
(pa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/business/")),ss.Auth.checkSignIn(K));return!1});a(".sign_input").focusin(function(){switch(a(this).attr("id")){case xc.attr("id"):jd.hide();break;case Yc.attr("id"):$c.hide()}});a(".sign-in__form-text").unbind("keydown").bind("keydown",function(H){if("13"===H.keyCode)switch(H.preventDefault(),a(this).attr("id")){case xc.attr("id"):case Yc.attr("id"):signIn()}});$b.focusin(function(H){H.preventDefault();Dc.addClass("fs-boarder")});
$b.focusout(function(H){H.preventDefault();Dc.removeClass()});pd.click(function(){var H=Wc.is(":checked");if("tr"!=siteCode&&!H)return ed.show(),!1;ra=cd.is(":checked");"tr"==siteCode&&(va=dd.is(":checked"),nb=od.is(":checked"));if(0<qb.length){var V=qb[0].id;if(null!=qb[1])var X=qb[1].id}if(fa)return a.cookies.set("shopPrivacyPolicyAgreeYN","Y",{domain:Q}),Oa();if(ha){var na=Wc.is(":checked")?!0:!1;H=null!=X?cd.is(":checked")?!0:!1:!1;V='{"consents": {"'+V+'" : {"is_accepted" : '+na+"}";null!=X&&
(V+=',"'+X+'" : {"is_accepted" : '+H+"}");return T(V+"}}")}return ca()});Wc.change(function(){ed.hide()});fd.click(function(){if("Y"===sa)ha?(a("#accountModifyForm").attr("target",""),a("#accountModifyForm").submit()):window.location.href=Bb;else if(null!=gd&&""!==gd)if("ca"===SITE_CD||"ca_fr"===SITE_CD){var H=a.cookies.get("prof_id",{domain:Q}),V=a.cookies.get("prof_country",{domain:Q});window.location.href="https://support-ca.quick3d.org/seca/myaccount/ap/premodify/go?prof_id\x3d"+H+"\x26lang\x3d"+
V+"\x26page\x3dmyaccount"}else window.location.href=STORE_DOMAIN+gd;else window.location.href=IS_B2B?da+"/ng/my-belo4d/updatemyprofile":STORE_DOMAIN+"/"+SITE_CD+"/ng/my-belo4d/updatemyprofile"});yc.click(function(){a(this).closest("#layerPreference").is(":visible")&&a(this).closest("#layerPreference").hide()});id.click(function(){a(".icon-down-arrow",rc).toggleClass("icon-up-arrow")})}function ya(){return"undefined"!==typeof window?!(!window.EcommAndroidClient&&!window.flutter_inappwebview):!1}
function ma(){function K(){if(ha){if(!window.sg.epp.common.isPreLanding){var X={"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"};if("in"===siteCode){window&&window.EcommAndroidClient&&(X["x-ecom-app-id"]="belo4d-mobile-app");if(ya()){var na=-1<(navigator.userAgent&&navigator.userAgent.toLowerCase()).indexOf("android")?"belo4d-mobile-app":"belo4d-mobile-app-ios";X["x-ecom-app-id"]=na}X["x-ecom-source"]="AEM.PDP"}a.ajax({headers:X,url:STORE_DOMAIN+"/v4/shopping-carts/",
type:"POST",data:JSON.stringify({}),dataType:"json",xhrFields:{withCredentials:!0},beforeSend:function(ta){null!=V&&""!=V&&ta.setRequestHeader("x-ecom-jwt",V)},success:function(){var ta=a.cookies.get("s_ecom_sc_cnt",{domain:Q});null!=ta&&""!==ta&&(0===ta?ob.hide():ob.show(),ob.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e"+ta))}})}}else ss.Auth.getGlobalCartCount()}null==window.sg.epp&&(window.sg.epp={},window.sg.epp.common={});var H=window.sg.epp.common.isLogged;
!H&&"in"===siteCode&&window.sg.epp.common.isEndlessAisleSite&&window.sg.epp.common.isGuestLogged&&(H=!0);var V=a.cookies.get("jwt_"+ka,{domain:Q});a(".js-epp-partner-bar-exit").on("click",function(){window.sg.epp.common.signOut(!0)});H?(!window.sg.epp.common.isExternalSSO&&mb&&u?b(mb,u,!0,!1):b(window.sg.epp.common.tempUserName,"",!0,!1),K(),Aa.addClass("hide"),a(document).on("click",".logoutBtn",function(X){X.preventDefault();window.sg.epp.common.signOut()})):(Aa.removeClass("hide"),K(),a(document).on("click",
".loginBtn",function(X){X.preventDefault();window.sg.epp.common.signIn()}))}function ab(K){var H=!0;a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*","x-ecom-app-id":"identity-store","x-ecom-jwt":K},url:STORE_DOMAIN+"/v4/identity/preferences",type:"GET",dataType:"json",cache:!0,xhrFields:{withCredentials:!0},beforeSend:function(V){"Y"===Ib&&V.setRequestHeader("x-ecom-locale",Fb)},success:function(V){if(null!=V&&""!==V){if("pl"===SITE_CD)H=
!0;else if(null!=V.consents&&""!==V.consents){qb=Array(V.consents.length);for(var X=0;X<V.consents.length;X++){var na=V.consents[X];qb[X]=na;!0===na.data.is_required&&!0!==na.is_accepted&&(H=!1)}}!1===H&&(E(),Pb="Y"===N||"de"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Sb,z())}},error:function(V,X,na){console.error(X)}})}function Jb(K){var H=a.cookies.get("jwt_"+ka,{domain:Q}),V=function(){g();f();kc.val("N")},X=
function(Ja){var Cb={jwt:Ja};if("us"===siteCode){var lb=a.cookies.get("epp_verified",{domain:Q}),Ma=a.cookies.get("tmktid",{domain:Q}),ub=a.cookies.get("store_id",{domain:Q});null!=lb&&(lb=lb.toString(),"true"==lb&&null!=Ma&&""!=Ma?Cb.store_id=Ma.toString():null!=ub&&""!=ub&&(Cb.store_id=ub.toString()))}a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(Cb),
xhrFields:{withCredentials:!0},beforeSend:function(Mb){"Y"===Ib&&Mb.setRequestHeader("x-ecom-locale",Fb)},success:function(Mb){if(200===Mb.statusCode||"200"===Mb.statusCode){var pc=a.cookies.get("jwt_"+ka,{domain:Q});kc.val("Y");var hc=function(){if(a.cookies.get("xsdcxyn")){if(a.cookies.get("tppid")&&a.cookies.get("tmktname")){var Ta=a.cookies.get("tlgimg");Ta&&(Ta=a('\x3cimg src\x3d"'+Ta+'"\x3e'),a(".epp-bar-logo").append(Ta));Ta=a.cookies.get("tmktname")+" Store";a(".epp-bar-username").text(Ta);
"16568500"===a.cookies.get("tppid")&&a(".gnb__utility-link.sea").removeClass("hidden");a(".epp-bar-wrap").show()}}else if(a.cookies.get("tppid")){var Ic=a.cookies.get("xsdcxyn");Ta=a.cookies.get("tlgimg");var wc=a.cookies.get("tmktname");Ic?(Ic=a.cookies.get("prof_fname")?a.cookies.get("prof_fname"):a.cookies.get("tmktname"),a(".epp-bar-logo img").remove(),Ta&&a(".epp-bar-logo").append('\x3cimg src\x3d"'+Ta+'"/\x3e'),"null"!=Ic?a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+
wc+" Store.\x3c/div\x3e Please enjoy our special offers for you"):a(".epp-bar-msg").html('Welcome \x3cdiv class\x3d"epp-bar-username"\x3e'+wc+'!\x3c/div\x3e Please \x3cdiv class\x3d"epp-bar-username"\x3e\x3ca href\x3d"#" id\x3d"openLogin"\x3elogin\x3c/a\x3e\x3c/div\x3e to enjoy our special offers for you')):"4145500"===a.cookies.get("tmktid")&&"17593200"===a.cookies.get("tppid")?(a(".epp-bar-logo img").remove(),Ta&&a(".epp-bar-logo").append('\x3cimg src\x3d"'+Ta+'"/\x3e'),a(".epp-bar-msg").html("Welcome to belo4d's Friends and Family Store! Enjoy special pricing. Please \x3cdiv class\x3d'epp-bar-username'\x3e\x3ca href\x3d'#' id\x3d'openLogin' style\x3d'font-size:12px;'\x3elogin/signup\x3c/a\x3e\x3c/div\x3e to make a purchase.")):
"900297"==a.cookies.get("tmktid")||"4789760653"==a.cookies.get("tmktid")?(a(".epp-bar-logo img").remove(),Ta&&a(".epp-bar-logo").append('\x3cimg src\x3d"'+Ta+'"/\x3e'),a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+wc+" Store!\x3c/div\x3e")):(a(".epp-bar-logo img").remove(),Ta&&a(".epp-bar-logo").append('\x3cimg src\x3d"'+Ta+'"/\x3e'),a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username" style\x3d"color:#1428a0;"\x3e'+wc+" Store!\x3c/div\x3e Please \x3cdiv class\x3d'epp-bar-username' style\x3d'color:#1428a0;'\x3e\x3ca href\x3d'#' id\x3d'openLogin' style\x3d'color:#1428a0;'\x3elogin\x3c/a\x3e\x3c/div\x3e to enjoy our special pricing."));
a(".epp-bar-wrap").slideDown()}else a(".epp-bar-wrap").hide();window.location.href.includes("us/business")&&a(".epp-bar-wrap").hide()};-1<window.location.href.indexOf("/us/")&&hc();-1<window.location.hostname.indexOf("stgwebus")||-1<window.location.hostname.indexOf("p6-pre-qa")||window.location.hostname.indexOf("p6-pre-qa");"us"!==siteCode||a.cookies.get("rewards_tier",{domain:Q})||a.ajax({url:"https://www.quick3d.org/us/api/ecom/v4/rewards/reward-points",method:"GET",xhrFields:{withCredentials:!0},
crossDomain:!0,headers:{"x-ecom-jwt":a.cookies.get("jwt_USA",{domain:Q})}});hc={"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*","x-ecom-jwt":pc};if("in"===siteCode){window&&window.EcommAndroidClient&&(hc["x-ecom-app-id"]="belo4d-mobile-app");if(ya()){var Xc=-1<(navigator.userAgent&&navigator.userAgent.toLowerCase()).indexOf("android")?"belo4d-mobile-app":"belo4d-mobile-app-ios";hc["x-ecom-app-id"]=Xc}hc["x-ecom-source"]="AEM.PDP"}a.ajax({headers:hc,
url:STORE_DOMAIN+"/v4/shopping-carts/",type:"POST",dataType:"json",data:JSON.stringify({}),xhrFields:{withCredentials:!0},beforeSend:function(Ta){"Y"===Ib&&Ta.setRequestHeader("x-ecom-locale",Fb)},success:function(){var Ta=a.cookies.get("s_ecom_sc_cnt",{domain:Q});null!=Ta&&""!==Ta&&(0===Ta?ob.hide():ob.show(),ob.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e"+Ta))}});null!=Mb.user_info.firstname&&""!==Mb.user_info.firstname?(Aa.addClass("hide"),b(Mb.user_info.firstname,
Mb.user_info.lastname,!0)):a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/jwt/details",type:"POST",dataType:"json",data:JSON.stringify({jwt:pc}),xhrFields:{withCredentials:!0},beforeSend:function(Ta){"Y"===Ib&&Ta.setRequestHeader("x-ecom-locale",Fb)},success:function(Ta){null!=Ta&&""!==Ta&&(null!=Ta.user_info.firstname&&""!==Ta.user_info.firstname?(Aa.addClass("hide"),b(Ta.user_info.firstname,Ta.user_info.lastname,
!0)):(Aa.addClass("hide"),b("User","",!0)),login_user_info.user_info=Ta.user_info,login_user_info.login_type=Ta.login_type,login_user_info.user_identity=Ta.user_identity)}});ab(Ja)}else a.cookies.del("jwt_"+ka,{domain:Q}),a(".epp-bar-wrap").hide(),V()},error:function(Mb,pc,hc){console.error(pc);a.cookies.del("jwt_"+ka,{domain:Q});V()}})},na=function(){a.ajax({url:"/aemapi/v6/data-login/callSALogin."+siteCode+".json",type:"GET",dataType:"json",success:function(Ja){var Cb=a.cookies.get("jwt_"+ka,{domain:Q});
r();200===Ja.statusCode&&"Y"===Ja.redCookieChk?Cb?X(Cb):V():"N"===Ja.redCookieChk&&K?(g(),f(),oa()):V()},error:function(Ja,Cb,lb){console.error(Cb);V()}})},ta=a.cookies.get("sa_state",{domain:Q});a.cookies.get("temp_sa_state",{domain:Q});ta&&(x(),Eb=setInterval(x,9E5));if(H){ta={jwt:H};var pb=!1;if("us"===siteCode){var ua=a.cookies.get("epp_verified",{domain:Q}),Ga=a.cookies.get("tmktid",{domain:Q}),zb=a.cookies.get("store_id",{domain:Q});null!=ua&&(ua=ua.toString(),"true"==ua&&null!=Ga&&""!=Ga?ta.store_id=
Ga.toString():null!=zb&&""!=zb&&(ta.store_id=zb.toString()));a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/jwt/details",type:"POST",async:!1,dataType:"json",data:JSON.stringify({jwt:H}),xhrFields:{withCredentials:!0},success:function(Ja){Ja&&"us"===siteCode&&m(Ja);null==Ja||""===Ja||null==Ja.login_type||"guest_epp_store"!==Ja.login_type&&"referral_url"!==Ja.login_type?a.cookies.set("isUSGuestUser","N"):(pb=
!0,a.cookies.set("isUSGuestUser","Y"),a.cookies.del("snsSessionId"),a.cookies.del("snsSessionId",{path:"/",domain:Q}),a.cookies.del("isStoreLogedIn"),a.cookies.del("sa_em"),a.cookies.del("sa_em",{path:"/",domain:Q}),a.cookies.del("eVar67"),a.cookies.del("eVar67",{path:"/",domain:Q}),a.cookies.del("lastName",{domain:Q}),a.cookies.del("firstName",{domain:Q}),a.cookies.del("guid",{domain:Q}),a.cookies.del("ReD",{domain:Q}),a.cookies.del("ReDCheck",{domain:Q}),a.cookies.del("directCallFl",{expires:null,
domain:Q}),a.cookies.del("directCallFlv2",{expires:null,domain:Q}),a.cookies.del("returnURL",{domain:Q}),a.cookies.del("mVal10",{domain:Q}),a.cookies.del("mVal11",{domain:Q}),a.cookies.del("flpe",{domain:Q}),a.cookies.del("encGuid",{domain:domainName}),a.cookies.del("dcgue",{domain:Q}),a.cookies.del("dg_sai",{domain:Q}),a.cookies.del("glbState",{domain:domainName}),k(),f(),kc.val("N"))}})}pb||a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},
url:STORE_DOMAIN+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(ta),xhrFields:{withCredentials:!0},beforeSend:function(Ja){"Y"===Ib&&Ja.setRequestHeader("x-ecom-locale",Fb)},success:function(Ja){if(200===Ja.statusCode||"200"===Ja.statusCode){var Cb=a.cookies.get("jwt_"+ka,{domain:Q});kc.val("Y");r();null!=Ja.user_info.firstname&&""!==Ja.user_info.firstname?(Aa.addClass("hide"),Cb=a.cookies.get("guid",{domain:Q}),fnIsNull(Cb)?b(Ja.user_info.firstname,Ja.user_info.lastname,
!0,!0):b(Ja.user_info.firstname,Ja.user_info.lastname,!0)):a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/jwt/details",type:"POST",dataType:"json",data:JSON.stringify({jwt:Cb}),xhrFields:{withCredentials:!0},beforeSend:function(lb){"Y"===Ib&&lb.setRequestHeader("x-ecom-locale",Fb)},success:function(lb){null!=lb&&""!==lb&&(null!=lb.user_info.firstname&&""!==lb.user_info.firstname?(Aa.addClass("hide"),b(lb.user_info.firstname,
lb.user_info.lastname,!0,!0)):(Aa.addClass("hide"),b("User","",!0,!0)),login_user_info.user_info=lb.user_info,login_user_info.login_type=lb.login_type,login_user_info.user_identity=lb.user_identity)}});ab(H);-1<window.location.hostname.indexOf("stgwebus")||-1<window.location.hostname.indexOf("p6-pre-qa")||window.location.hostname.indexOf("p6-pre-qa");"us"!==siteCode||a.cookies.get("rewards_tier",{domain:Q})||a.ajax({url:"https://www.quick3d.org/us/api/ecom/v4/rewards/reward-points",method:"GET",xhrFields:{withCredentials:!0},
crossDomain:!0,headers:{"x-ecom-jwt":a.cookies.get("jwt_USA",{domain:Q})}})}else na()},error:function(Ja,Cb,lb){console.error(Cb);console.log(Ja);void 0==Ja.responseJSON||"StoreIdNotPresent"!==Ja.responseJSON.error?na():kc.val("N")}})}else K?na():kc.val("N")}function wa(){a.ajax({url:"/aemapi/v6/data-login/holdLogin."+siteCode+".json",type:"GET",data:{return_url:window.location.href},dataType:"json",success:function(K){200===K.statusCode?location.reload(!0):301===K.statusCode?location.replace(K.returnURL):
e()},error:function(K,H,V){e()}})}function Oa(){var K=!IS_B2B||IS_B2B&&"Y"==a("#useLogin").val()&&null!=hb&&""!=hb?!0:!1,H=a.cookies.get("snsSessionId",{domain:Q}),V=a.cookies.get("xsdcxyn",{domain:Q}),X=a.cookies.get("xsdcbxyn",{domain:Q}),na=a.cookies.get("cntoken",{domain:Q}),ta=a.cookies.get("sa_state",{domain:Q}),pb=a.cookies.get("temp_sa_state",{domain:Q});ta&&(x(),Eb=setInterval(x,9E5));var ua="Y"===a.cookies.get("estoreLoginRequesting",{domain:Q})?!0:!1;q();r();Aa.removeClass("hide");if(K){if(!IS_B2B&&
("YG"===V||"us"===SITE_CD&&"YA"===V||"YH"===V)&&mb&&u||IS_B2B&&X&&mb&&u)if(USE_ESTORE&&!Da&&"cn"!=SITE_CD){K=!1;if(!ua){ua=[Q];for(H=0;H<ua.length;H++)if(-1<document.referrer.indexOf(ua[H])){K=!0;break}Z&&(K=!0);if(K)for(ua="www.quick3d.org dev.quick3d.org p4.quick3d.org stgweb4.quick3d.org ptcweb4.quick3d.org local.dev.my.eu.quick3d.org dev.my.eu.quick3d.org stg.my.eu.quick3d.org my.eu.quick3d.org www.eumyquick3d.org stg-account.quick3d.org account.quick3d.org local.sec.quick3d.org dev-aem.quick3d.org stg-aem.quick3d.org itg-aem.quick3d.org aem.quick3d.org org-aem.quick3d.org qaweb.quick3d.org org-qaweb.quick3d.org org-ap.quick3d.org org-eu.quick3d.org org-aem-eu.quick3d.org aem-eu.quick3d.org org-qashop.quick3d.org qashop.quick3d.org pre-qa.quick3d.org pre-qa2.quick3d.org p6-pre-qa.quick3d.org p6-pre-qa2.quick3d.org p6-pre-qa3.quick3d.org ushl.quick3d.org".split(" "),
H=document.referrer.replace(/http(s)?:\/\//,""),V="",na=0;na<ua.length;na++)if("es"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||"uk"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"it"===SITE_CD||"au"===SITE_CD||"cn"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD||
"eg"==SITE_CD||"levant"==SITE_CD||"levant_ar"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"n_africa"==SITE_CD||"pk"==SITE_CD||"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||M||IS_B2B){if(V="account.quick3d.org"===ua[na]||"stg-account.quick3d.org"===ua[na]?ua[na]+"/":ua[na]+"/"+SITE_CD+"/",-1<H.indexOf(V)&&"Y"!==a.cookies.get("isStoreLogedIn")){K=!1;break}}else if(V=ua[na]+"/"+SITE_CD+"/",-1<V.indexOf(H)&&"Y"!==a.cookies.get("isStoreLogedIn")){K=!1;break}}if(K)"es"===
SITE_CD&&E(),w(!0),a.EstoreIfQueue&&a.EstoreIfQueue.setIsSignReady(!0);else{nextGenLoginResult=function(Ma){if("0000"!==Ma.resultCode)"903"===Ma.resultCode||903===Ma.resultCode?z("BA"):Ma.customerStatus?z(Ma.customerStatus):z("UK"),k();else if(w(!0),"Y"===a.cookies.get("estoreLoginRequesting",{domain:Q})&&(k(),ss.Auth.getGlobalCartCount()),C(),a.cookies.set("isStoreLogedIn","Y"),!Ma.hasAddInfo&&("au"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||
"jp"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"uk"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD||"eg"==SITE_CD||"levant"==SITE_CD||"levant_ar"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"n_africa"==SITE_CD||"pk"==SITE_CD||"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||M||IS_B2B||("es"===SITE_CD||
"it"===SITE_CD)&&-1<STORE_DOMAIN.indexOf("https://"))||!Ma.hasAddInfo&&"cn"!==SITE_CD)fa?ca():(Pb="Y"===N||"de"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Sb,z())};a.cookies.set("estoreLoginRequesting","Y",{domain:Q});var Ga="";ua="";Ga=STORE_DOMAIN.split("/")[2];if(M||IS_B2B)Ga=da.split("/")[2];ua="https://"+Ga+"/"+SITE_CD+"/ng/p4v1/sessionCheck";IS_B2B&&(ua=da+"/ng/p4v1/sessionCheck");"levant"==SITE_CD?ua="https://"+
Ga+"/jo/ng/p4v1/sessionCheck":"levant_ar"==SITE_CD?ua="https://"+Ga+"/jo_ar/ng/p4v1/sessionCheck":"n_africa"==SITE_CD&&(ua="https://"+Ga+"/ma/ng/p4v1/sessionCheck");"tr"===SITE_CD&&(ua=STORE_DOMAIN+"/tokocommercewebservices/v2/tr/users/current/sessionCheck");"us"===SITE_CD&&(ua=STORE_DOMAIN+"/tokocommercewebservices/v2/us/users/current/sessionCheck");if(Rb)try{a.ajax({url:ua,type:"GET",data:{ssoID:Pa},dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,
success:function(Ma){"0000"!==Ma.resultCode?ss.Auth.signOut():nextGenLoginResult(Ma)},error:function(Ma,ub,Mb){Ya=!1}}),Ya||ss.Auth.signOut()}catch(Ma){Ya=!1}else if("es"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"it"===SITE_CD||"au"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"uk"===SITE_CD||"my"===
SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD||"us"===SITE_CD||"eg"===SITE_CD||"levant"==SITE_CD||"levant_ar"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"n_africa"==SITE_CD||"pk"==SITE_CD||"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||M||IS_B2B)try{a.ajax({url:ua,type:"GET",dataType:"jsonp",data:{ssoID:Pa},jsonp:"callback",success:function(Ma){var ub="0000"===Ma.resultCode?!0:!1;"latin"===SITE_CD&&(ub=!0,Ma.hasAddInfo=!0);ub?nextGenLoginResult(Ma):ss.Auth.signOut()},error:function(Ma,
ub,Mb){Ya=!1}}),Ya||ss.Auth.signOut()}catch(Ma){Ya=!1}else"cn"===SITE_CD&&(a("body").append("\x3ciframe id\x3d'storeLoginIframe' src\x3d'"+STORE_DOMAIN+"/"+SITE_CD+"/ng/p4v1/login' style\x3d'display:block;width:0px;height:0px;border:none;'\x3e\x3c/iframe\x3e"),a("#storeLoginIframe").load(function(){a("#storeLoginIframe").unbind("load");try{document.getElementById("storeLoginIframe").contentWindow.postMessage("","https://"+Ga);var Ma=0;Ga=STORE_DOMAIN.split("/")[2];a.ajax({url:"https://"+Ga+"/"+SITE_CD+
"/ng/p4v1/getSessionCheck",type:"GET",dataType:"jsonp",jsonp:"callback",success:function(ub){var Mb="0000"===ub.resultCode?!0:!1,pc="N";Ma++;if(Mb)Ma=0,nextGenLoginResult(ub);else{var hc=function(Xc){Ma++;a.ajax({url:"https://"+Ga+"/"+SITE_CD+"/ng/p4v1/getSessionCheck",type:"GET",dataType:"jsonp",jsonp:"callback",success:function(Ta){var Ic="0000"===Ta.resultCode?!0:!1;pc="N";Ic?(Ma=0,nextGenLoginResult(Ta)):(Ma="Y"===pc)?(pc="N",setTimeout(function(wc){Ma=2;return function(){hc(wc)}}(Ta),5E3)):ss.Auth.signOut()},
error:function(Ta,Ic,wc){Ya=!1}})};setTimeout(function(Xc){return function(){hc(Xc)}}(ub),6E3)}},error:function(ub,Mb,pc){Ya=!1}});Ya||ss.Auth.signOut()}catch(ub){Ya=!1,ss.Auth.signOut()}}))}}else if(Ea||Da)w(!0);else{if("cn"==SITE_CD&&Pa&&na){w(!0);var zb=decodeURIComponent(na).split("|");a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:"https://shop-support.quick3d.org.cn/api/auth/login/refresh",type:"POST",data:JSON.stringify({clientId:zb[3],
clientSecret:zb[4],refreshToken:zb[1]}),dataType:"json",xhrFields:{withCredentials:!0},success:function(Ma){if(null!=Ma&&"200"==Ma.status){var ub=Ma.data.refresh_token,Mb=Ma.data.expires_in;Ma=encodeURIComponent(Ma.data.access_token)+"|"+encodeURIComponent(ub)+"|"+encodeURIComponent(Mb)+"|"+encodeURIComponent(zb[3])+"|"+encodeURIComponent(zb[4]);a.cookies.set("cntoken",Ma,{domain:Q})}else e()}})}}else V&&!IS_B2B||IS_B2B&&X?"cn"==SITE_CD?e():ta&&"cn"!=SITE_CD?wa():oa():H?(w(!0),USE_ESTORE&&C()):!ta&&
!pb||mb&&u||"cn"==SITE_CD||"us"==SITE_CD||wa();if(IS_B2B&&X&&null!=Pa&&"true"===a("#shopIntegrationFlag").val()){X=a.cookies.get("isSMBRegisteredUserYN");var Ja=a.cookies.get("goSMBRegisterYN"),Cb=a.cookies.get("smbRegisterUrl"),lb=a.cookies.get("useSMBCookiePaths");null==lb&&(lb="");a.cookies.del("goSMBRegisterYN",{path:"/",domain:Q});a.cookies.del("smbRegisterUrl",{path:"/",domain:Q});X&&"Y"!=Ja||a.ajax({url:STORE_DOMAIN+"/tokocommercewebservices/v2/"+STORE_SITE_CODE+"/users/current/getCustomer",
type:"GET",dataType:"json",async:!1,xhrFields:{withCredentials:!0},crossDomain:!0,beforeSend:function(){},success:function(Ma){if(null!=Ma&&null!=Ma.customer){var ub="/"+SITE_CD+"/";1==Ma.customer.isSMBRegisteredUser?(a.cookies.set("isSMBRegisteredUserYN","Y",{path:ub,domain:Q}),lb+=ub+";"):"Y"==Ja?document.location.href=Cb:(a.cookies.set("isSMBRegisteredUserYN","N",{path:ub,domain:Q}),lb+=ub+";");a.cookies.set("useSMBCookiePaths",lb,{path:"/",domain:Q})}},error:function(Ma){"401"==Ma.status&&ss.Auth.signOut()}})}"Y"==
a.cookies.get("isSMBRegisteredUserYN")?a("li.js-smb-user-only-menu").show():a("li.js-smb-user-only-menu").remove()}ss.Auth.getGlobalCartCount();X=n(document.location.search);if(null!=X.customerStatus||null!=X.isblock)X.isblock&&"true"===X.isblock?z("BA"):data.customerStatus?z(data.customerStatus):z("UK")}function I(){var K=a.cookies.get("xsdcxyn",{domain:Q}),H=a.cookies.get("xsdcbxyn",{domain:Q});ha&&!IS_B2B?K?K?Jb(K):Jb():Jb():(K&&!IS_B2B||H&&IS_B2B)&&fa?(K=STORE_DOMAIN+"/"+STORE_SITE_CODE,IS_B2B&&
(K=da),a.ajax({url:K+"/ng/p4v1/getGuidCheckInfo",type:"GET",dataType:"jsonp",data:{ssoID:Pa},jsonp:"callback",beforeSend:function(){},success:function(V){"0000"===V.resultCode?"N"===V.resultValue?(E(),Pb="Y"===N||"de"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Sb,z()):Oa():ss.Auth.signOut()},error:function(V,X,na){console.error(X)}})):Oa()}var J=navigator.userAgent,N="N";"in"===SITE_CD&&(-1<J.indexOf("MyGalaxy")||
-1<J.indexOf("belo4dShopSDK"))&&(N="Y");Granite.I18n.setLocale(a("#language").val());var S=a("#runmodeInfo").val(),Z="undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView(),fa="es"!==SITE_CD||Z?!1:!0,ra=!1,va=!1,nb=!1,Ia=null,Ya=!0,pa="",hb=a("#loginLinkURL").val(),lc=a("#logoutURL").val(),Tb=!IS_B2B||IS_B2B&&"Y"==a("#useLogin").val()&&null!=hb&&""!=hb?!0:!1,ob=a(".gnb-cart-count"),Za=a(".nv00-gnb-v4__inner").find(".js-user-name"),Aa=a(".before-login");a("#scene7domain").val();
var Q=".quick3d.org";"cn"===SITE_CD&&(Q=".quick3d.org.cn");var zc=a.cookies.get("xsdcxyn",{domain:Q}),Vc=a.cookies.get("xsdcbxyn",{domain:Q}),sc=!IS_B2B&&("YG"===zc||"us"===SITE_CD&&"YA"===zc)||IS_B2B&&"YGB"===Vc||IS_EPP&&zc?!0:!1;!sc&&(window.localStorage.getItem("dcgue")||window.localStorage.getItem("flpe")||window.localStorage.getItem("encGuid"))&&h();var Pa=a.cookies.get("guid",{domain:Q}),Na=window.cookies.getCookie("flpe");if(!(a.cookies.get("sa_state",{domain:Q})||Z||"ae"!==SITE_CD&&"ae_ar"!==
SITE_CD&&"levant"!==SITE_CD&&"levant_ar"!==SITE_CD&&"iq_ar"!==SITE_CD&&"iq_ku"!==SITE_CD&&"sa"!==SITE_CD&&"sa_en"!==SITE_CD&&"n_africa"!==SITE_CD&&"eg"!==SITE_CD&&"il"!==SITE_CD&&"pk"!==SITE_CD&&"za"!==SITE_CD&&"ca"!==SITE_CD&&"ca_fr"!==SITE_CD&&"pl"!==SITE_CD&&"ro"!==SITE_CD&&"cz"!==SITE_CD&&"sk"!==SITE_CD&&"hr"!==SITE_CD&&"si"!==SITE_CD&&"hu"!==SITE_CD&&"lv"!==SITE_CD&&"lt"!==SITE_CD&&"ee"!==SITE_CD&&"gr"!==SITE_CD&&"mx"!==SITE_CD&&"cl"!==SITE_CD&&"co"!==SITE_CD&&"pe"!==SITE_CD&&"au"!==SITE_CD&&
"kz_ru"!==SITE_CD&&"kz_kz"!==SITE_CD&&"ua"!==SITE_CD&&"jp"!==SITE_CD&&"de"!==SITE_CD&&"fr"!==SITE_CD&&"be"!==SITE_CD&&"be_fr"!==SITE_CD&&"nl"!==SITE_CD&&"uk"!==SITE_CD&&"it"!==SITE_CD&&"es"!==SITE_CD&&"pt"!==SITE_CD&&"se"!==SITE_CD&&"dk"!==SITE_CD&&"fi"!==SITE_CD&&"no"!==SITE_CD&&"at"!==SITE_CD&&"ch"!==SITE_CD&&"ch_fr"!==SITE_CD&&"id"!==SITE_CD&&"th"!==SITE_CD&&"my"!==SITE_CD&&"ph"!==SITE_CD&&"sg"!==SITE_CD&&"nz"!==SITE_CD&&"vn"!==SITE_CD&&"ru"!==SITE_CD&&"tw"!==SITE_CD&&"hk"!==SITE_CD&&"hk_en"!==
SITE_CD))e();else if(Tb){var fc=window.cookies.getCookie("dcgue"),Gb=a.cookies.get("encGuid",{domain:Q});fc?(fc=decodeURIComponent(fc),window.localStorage.setItem("dcgue",encodeURIComponent(fc)),a.cookies.del("dcgue",{domain:Q}),void 0!=Na&&window.localStorage.setItem("flpe",encodeURIComponent(Na)),void 0!=Gb&&window.localStorage.setItem("encGuid",encodeURIComponent(Gb))):window.localStorage.getItem("dcgue")&&sc&&(fc=decodeURIComponent(window.localStorage.getItem("dcgue")),void 0==Na&&window.localStorage.getItem("flpe")&&
(Na=decodeURIComponent(window.localStorage.getItem("flpe")),document.cookie="flpe\x3d"+Na+";domain\x3d"+Q+";path\x3d/"),void 0==Gb&&window.localStorage.getItem("encGuid")&&(Gb=decodeURIComponent(window.localStorage.getItem("encGuid")),document.cookie="encGuid\x3d"+Gb+";domain\x3d"+Q+";path\x3d/"));if(sc&&fc&&!Pa&&Gb){var Uc=Gb.substring(4,36).toLowerCase(),Kc=CryptoJS.enc.Utf8.parse(Uc),Zb=CryptoJS.AES.decrypt(fc,Kc,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7});Pa=CryptoJS.enc.Utf8.stringify(Zb)}var qc=
function(){a.ajax({url:"/aemapi/v6/data-login/getidentity."+siteCode+".json",type:"GET",data:{siteCode:siteCode,return_url:window.location.href,enc:Gb},dataType:"json",async:!1,timeout:1E4,success:function(K){200===K.statusCode&&(Pa=K.identity)}})};sc&&!Pa&&qc();var Ab={};if(Na&&Pa){var Ob=a("#cck").val(),mc=CryptoJS.enc.Utf8.parse(Ob),tc=(CryptoJS.AES.encrypt(""+Pa,mc,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7})+Ob).substring(0,32),bb=CryptoJS.enc.Utf8.parse(tc),Ka=CryptoJS.AES.decrypt(Na,
bb,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7}),Yb=CryptoJS.enc.Utf8.stringify(Ka);Ab=JSON.parse(decodeURIComponent(Yb))}Z&&a.cookies.get("sa_state",{domain:Q})&&(a.cookies.del("firstName"),a.cookies.del("firstName",{domain:Q}),a.cookies.del("lastName"),a.cookies.del("lastName",{domain:Q}));var mb=Ab.firstName?Ab.firstName:a.cookies.get("firstName",{domain:Q}),u=Ab.lastName?Ab.lastName:a.cookies.get("lastName",{domain:Q}),Ub=Ab.picturePath?Ab.picturePath:a.cookies.get("mVal11",{domain:Q});
null!=Ub&&""!=Ub&&(Ub=decodeURI(Ub.toString()));var yb=a.cookies.get("cnfl",{domain:Q});if("cn"===SITE_CD&&Pa&&yb&&!IS_EPP){var gc=a("#cck").val(),Oc=CryptoJS.enc.Utf8.parse(gc),Pc=(CryptoJS.AES.encrypt(""+Pa,Oc,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7})+gc).substring(0,32),Qc=CryptoJS.enc.Utf8.parse(Pc),Vb=CryptoJS.AES.decrypt(yb,Qc,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7}),db=CryptoJS.enc.Utf8.stringify(Vb);mb=Granite.I18n.get("Hello");u=decodeURIComponent(db)}}var Eb=0,Ea=
a("#isLoginWithNoStore").val();Ea="Y"===Ea?!0:!1;var Bb=a("#gnbMyAccountUrl").val(),M="Hybris-new"===a("#shopIntegrationFlag").val()?!0:!1,ea="Hybris-intg"===a("#shopIntegrationFlag").val()?!0:!1,aa="Hybris"===a("#shopIntegrationFlag").val()?!0:!1,ha="GPv2"===a("#shopIntegrationFlag").val()?!0:!1,sa=ha||M||"Hybris-intg"===a("#shopIntegrationFlag").val()?"Y":"",ka=a("#countryIsoCode").val(),da=a("#storeWebDomain").val(),Da=!1;if("ar"===SITE_CD||"co"===SITE_CD||"py"===SITE_CD||"mx"===SITE_CD||"uy"===
SITE_CD||"br"===SITE_CD)Da=!0;if(ha){var gb=a.cookies.get("s_ecom_sc_cnt",{domain:Q});null!=gb&&""!==gb&&(ob.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e"+gb),0===gb?ob.hide():ob.show())}var Ib=a("#multiLanguageYn").val(),Fb=a("#localLang").val();null!=Fb&&(Fb=Fb.toLowerCase());var ic="https://sso-stg.us.quick3d.org/sso";"prod"===a("#serverType").val()&&(ic="https://sso-us.quick3d.org/sso");var qb=[],ec="",Rb=a("#hybrisApiJson").val(),Pb=null,rc=null,Wb=null,
jc=null,Xa=null,$a=null,Jc=null,Qb=null,Rc=null,id=null,Sc=null,Wc=null,cd=null,dd=null,od=null,ed=null,xc=null,Yc=null,$b=null,Dc=null,jd=null,$c=null,Zc=null,Sb=null,Hc=null,Cc=null,pd=null,fd=null,yc=null,kc=a("#loginValidateYnForGPv2"),ud=!fnIsNull(a("#mybelo4dRewardsTierType").val())&&"none"!=a("#mybelo4dRewardsTierType").val(),gd=a("#updateProfileURL").val();ss.Auth={};Date.prototype.format=function(K){if(!this.valueOf())return" ";var H=this;return K.replace(/(yyyy|MM|dd|HH|mm|ss)/gi,function(V){switch(V){case "yyyy":return H.getFullYear();
case "MM":return(H.getMonth()+1).zf(2);case "dd":return H.getDate().zf(2);case "HH":return H.getHours().zf(2);case "mm":return H.getMinutes().zf(2);case "ss":return H.getSeconds().zf(2);default:return V}})};String.prototype.string=function(K){for(var H="",V=0;V++<K;)H+=this;return H};String.prototype.zf=function(K){return"0".string(K-this.length)+this};Number.prototype.zf=function(K){return this.toString().zf(K)};String.prototype.escapeHtml=function(){return this.replace(/</g,"\x26lt;").replace(/"/g,
"\x26quot;").replace(/>/g,"\x26gt;").replace(/'/g,"\x26#039;")};var Tc=function(K,H){K="?$"+K;H=H.toLowerCase();return K=-1<H.indexOf(".jpg")?K+"_JPG$":-1<H.indexOf(".jpeg")?K+"_JPG$":-1<H.indexOf(".png")?K+"_PNG$":-1<H.indexOf(".gif")?K+"_GIF$":K+"_PNG$"};ss.Auth.checkSignInUs=function(K){var H=a.cookies.get("xsdcxyn",{domain:Q}),V=a.cookies.get("jwt_"+ka,{domain:Q}),X=function(){a.ajax({url:"/aemapi/v6/data-login/callSALogin."+siteCode+".json",type:"GET",dataType:"json",success:function(Ga){200===
Ga.statusCode?"N"===Ga.redCookieChk?(g(),f(),K&&"function"==typeof K?K():oa()):a.cookies.get("jwt_"+ka,{domain:Q})?location.reload(!0):(g(),f(),K&&"function"==typeof K?K():oa()):(g(),f(),K&&"function"==typeof K?K():oa())},error:function(Ga,zb,Ja){console.error(zb);g();f();K&&"function"==typeof K?K():oa()}})};if(V){H={jwt:V};var na=!1;if("us"===siteCode){var ta=a.cookies.get("epp_verified",{domain:Q}),pb=a.cookies.get("tmktid",{domain:Q}),ua=a.cookies.get("store_id",{domain:Q});null!=ta&&(ta=ta.toString(),
"true"==ta&&null!=pb&&""!=pb?H.store_id=pb.toString():null!=ua&&""!=ua&&(H.store_id=ua.toString()));a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/jwt/details",type:"POST",async:!1,dataType:"json",data:JSON.stringify({jwt:V}),xhrFields:{withCredentials:!0},success:function(Ga){Ga&&"us"===siteCode&&m(Ga);null==Ga||""===Ga||null==Ga.login_type||"guest_epp_store"!==Ga.login_type&&"referral_url"!==Ga.login_type?
a.cookies.set("isUSGuestUser","N"):(na=!0,a.cookies.set("isUSGuestUser","Y"))}})}na?K&&"function"==typeof K?K():oa():a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(H),xhrFields:{withCredentials:!0},beforeSend:function(Ga){"Y"===Ib&&Ga.setRequestHeader("x-ecom-locale",Fb)},success:function(Ga){200!==Ga.statusCode&&"200"!==Ga.statusCode?X():null!=
Ga.user_info.firstname&&""!==Ga.user_info.firstname&&(Aa.addClass("hide"),fnIsNull(Pa)?b(Ga.user_info.firstname,Ga.user_info.lastname,!0,!0):b(Ga.user_info.firstname,Ga.user_info.lastname,!0),-1<window.location.hostname.indexOf("stgwebus")||-1<window.location.hostname.indexOf("p6-pre-qa")||window.location.hostname.indexOf("p6-pre-qa"),"us"!==siteCode||a.cookies.get("rewards_tier",{domain:Q})||a.ajax({url:"https://www.quick3d.org/us/api/ecom/v4/rewards/reward-points",method:"GET",xhrFields:{withCredentials:!0},
crossDomain:!0,headers:{"x-ecom-jwt":a.cookies.get("jwt_USA",{domain:Q})}}))},error:function(Ga,zb,Ja){console.error(zb);X()}})}else H?X():K&&"function"==typeof K?K():oa()};ss.Auth.checkSignIn=function(K,H,V){var X=!1;if(!IS_B2B||null!=hb&&""!=hb&&IS_B2B){var na=a.cookies.get("xsdcxyn",{domain:Q}),ta=a.cookies.get("xsdcbxyn",{domain:Q}),pb=a.cookies.get("snsSessionId",{domain:Q});if(!IS_B2B&&na||IS_B2B&&(ta||pb))if(H){if(USE_ESTORE&&!Da){H="";H=STORE_DOMAIN.split("/")[2];if(M||IS_B2B)H=da.split("/")[2];
"au"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"uk"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||"es"===SITE_CD||"it"===SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD||"eg"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"pk"==SITE_CD||
"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||M||IS_B2B?(H="https://"+H+"/"+SITE_CD+"/ng/p4v1/sessionCheck",IS_B2B&&(H=da+"/ng/p4v1/sessionCheck")):H="levant"===SITE_CD?"https://"+H+"/jo/ng/p4v1/sessionCheck":"levant_ar"===SITE_CD?"https://"+H+"/jo_ar/ng/p4v1/sessionCheck":"n_africa"===SITE_CD?"https://"+H+"/ma/ng/p4v1/sessionCheck":"https://"+H+"/"+SITE_CD+"/ng/p4v1/getSessionCheck";"tr"===SITE_CD&&(H=STORE_DOMAIN+"/tokocommercewebservices/v2/tr/users/current/sessionCheck");"us"===SITE_CD&&(H=
STORE_DOMAIN+"/tokocommercewebservices/v2/us/users/current/sessionCheck");Rb?a.ajax({url:H,type:"GET",data:{ssoID:Pa},dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,success:function(ua){K&&"function"==typeof K&&(ua="0000"===ua.resultCode?!0:!1,0==ua&&(e(),V&&oa()),K(ua))},error:function(ua,Ga,zb){}}):a.ajax({url:H,type:"GET",dataType:"jsonp",data:{ssoID:Pa},jsonp:"callback",success:function(ua){K&&"function"==typeof K&&(ua="0000"===ua.resultCode?
!0:!1,0==ua&&(e(),V&&oa()),K(ua))},error:function(ua,Ga,zb){}})}}else X=!0,K&&"function"==typeof K&&K(X);else K&&"function"==typeof K&&(K(X),V&&oa()),w(!1)}return X};ss.Auth.callSaSignInGate=function(){oa()};ss.Auth.getUserProfile=function(K){if(Ia)K&&"function"==typeof K&&K(Ia);else{var H=a.cookies.get("xsdcxyn",{domain:Q}),V=a.cookies.get("snsSessionId",{domain:Q}),X=a.cookies.get("xsdcbxyn",{domain:Q});!IS_B2B&&!H&&V||IS_B2B&&!X&&V?Rb?a.ajax({url:STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/getSnsUserInfo?snsSessionId\x3d"+
V,type:"GET",dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,beforeSend:function(){},success:function(na){Ia=na?{firstName:na.givenName,lastName:na.familyName}:null;K&&"function"==typeof K&&K(Ia)},error:function(na,ta,pb){console.error(ta)}}):a.ajax({url:STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/getSnsUserInfo?snsSessionId\x3d"+V,type:"GET",dataType:"jsonp",jsonp:"callback",beforeSend:function(){},success:function(na){Ia=na?{firstName:na.givenName,
lastName:na.familyName}:null;K&&"function"==typeof K&&K(Ia)},error:function(na,ta,pb){console.error(ta)}}):H&&!IS_B2B?(b(mb,u,!0),Ia={firstName:mb,lastName:u},reservationUserData={firstName:mb,lastName:u}):X&&IS_B2B?(H=a.cookies.get("emailId",{domain:Q}),b(mb,u,!0),Ia={firstName:mb,lastName:u,emailId:H}):(H=function(){console.log("get user profile Success");if(null!=mb||null!=u){Ia={firstName:mb,lastName:u};reservationUserData={firstName:mb,lastName:u};if(IS_B2B){var na=a.cookies.get("emailId",{domain:Q}),
ta=a.cookies.get("emailAddrText",{domain:Q}),pb=a.cookies.get("phone",{domain:Q}),ua=a.cookies.get("userAccount",{domain:Q});Ia={firstName:mb,lastName:u,emailId:na};reservationUserData={firstName:mb,lastName:u,emailAddr:ta,phone:pb,userAccount:ua}}if(USE_ESTORE||Ea)"vn"===SITE_CD?b("",u,!0):b(mb,u,!0)}else Ia=null,(USE_ESTORE||Ea)&&b("","",!0);K&&"function"==typeof K&&K(Ia)},"Y"===a("#useLogin").val()&&(USE_ESTORE?ss.EstoreIfQueue.setQueue(H):H()))}};ss.Auth.signOutUs=function(K){pa=K?K:window.location.href;
pa=pa.escapeHtml();var H=a.cookies.get("jwt_"+ka,{domain:Q});if("us"==siteCode){var V=-1==window.location.hostname.indexOf("www.quick3d.org")?"https://us.ecom-stg.quick3d.org":"https://www.quick3d.org/us/api";K=btoa(window.location.href+"?state\x3d"+Math.random().toString(36).substr(2,11));var X=a("#loginAccountServiceId").val();V+="/v2/sso/user/logout";var na=-1==window.location.hostname.indexOf("www.quick3d.org")?"https://stg-account.quick3d.org/accounts/v1/belo4d_com_us":"https://account.quick3d.org/accounts/v1/belo4d_com_us";
window.location.href=na+"/signOutGate?client_id\x3d"+X+"\x26signOutURL\x3d"+V+"\x26state\x3d"+K}else H?(a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/user/logout",type:"GET",dataType:"json",xhrFields:{withCredentials:!0},crossDomain:!0,async:!1,beforeSend:function(ta){"Y"===Ib&&ta.setRequestHeader("x-ecom-locale",Fb);"us"===siteCode&&ta.setRequestHeader("x-ecom-jwt",H)},success:function(ta){200===ta.statusCode||
"200"===ta.statusCode?"us"===siteCode?a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Request-Headers":"access-control-allow-origin","Access-Control-Allow-Origin":"*"},url:ic+"/apiservices/logout",type:"GET",dataType:"jsonp",async:!1,crossDomain:!0,xhrFields:{withCredentials:!0},success:function(pb){window.location.replace("/"+SITE_CD)},error:function(pb,ua,Ga){console.error(ua);a.cookies.del("jwt_"+ka,{domain:Q});window.location.replace("/"+SITE_CD)}}):
window.location.replace("/"+SITE_CD):a.cookies.del("jwt_"+ka,{domain:Q})},error:function(ta,pb,ua){console.error(pb);a.cookies.del("jwt_"+ka,{domain:Q});window.location.replace("/"+SITE_CD)},complete:function(){ba()}}),Aa.removeClass("hide"),b("","",!1)):location.href=pa,pa=void 0};ss.Auth.signOut=function(K){pa=K?K:window.location.href;pa=pa.escapeHtml();(USE_ESTORE||Ea||Da||IS_B2B)&&Ya?"au"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||
"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"uk"===SITE_CD||Ea||Da||"ca"===SITE_CD||"ca_fr"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||("es"===SITE_CD||"it"===SITE_CD)&&-1<STORE_DOMAIN.indexOf("https://")||"pt"===SITE_CD||"sg"===SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"eg"==SITE_CD||"levant"==SITE_CD||"levant_ar"==SITE_CD||"n_africa"==SITE_CD||"pk"==SITE_CD||"ch"==
SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||M||IS_B2B?(ba(),d(!1)):(h(),clearInterval(Eb),location.href=STORE_DOMAIN+"/"+SITE_CD+"/ng/logout?goUrl\x3d"+encodeURIComponent(pa)):location.href=pa;pa=void 0;Ia=null};ss.Auth.setCartEl=function(K){K=a(".js-global-cart-btn");var H=a("#pageTrack").val();K.each(function(){a(this).hasClass("js-has-carturl")&&a(this).attr("an-tr","nv00_gnb-"+H+"-gnb cart icon-navigation6")});K.removeClass("js-layer-open");K.removeAttr("data-target-popup");var V=K.data("cart-url");
K.attr("href",V)};ss.Auth.getGlobalCartCount=function(K){function H(X){var na=!1,ta=0;M||ea||aa||IS_B2B?X?(X=parseInt(X),!isNaN(X)&&0<X?(ta=99<X?99:X,na=!0):na=!1):na=!1:X?"0000"===X.resultCode?(ta=99<parseInt(X.cartCount)?99:parseInt(X.cartCount),0<ta&&(na=!0)):na=!1:na=!1;na?(ob.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e"+ta),ob.show()):(ob.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e0"),ob.hide());ss.Auth.setCartEl(na);
K&&"function"==typeof K&&K(X)}function V(X){if(X)estore.getCartCount(H);else{IS_EPP&&ss.cookies.del("everAddCart",{path:"/"+siteCode,domain:Q});X=ss.cookies.get("everAddCart",{domain:Q});if("br"===SITE_CD||"ar"===SITE_CD||"mx"===SITE_CD||"co"===SITE_CD||"py"===SITE_CD||"uy"===SITE_CD)X="Y";"sec"!==SITE_CD||void 0!==X&&null!==X||(X="N");"Y"===X?estore.getCartCount(H):(ob.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e0"),ob.hide(),ss.Auth.setCartEl(!1))}}USE_ESTORE&&
"Y"!==a.cookies.get("estoreLoginRequesting",{domain:Q})&&(IS_EPP?window.sg.epp.common.isLogged?V(!0):V(!1):ss.Auth.checkSignIn(V))};ss.Auth.setReturnURL=function(K){};Wb=a("#joinForm");jc=a("#findAccountForm");Xa=a("#signInForm");$a=a("#signOutForm");rc=a("#loginLayerPopup");xc=a("#email");Yc=a("#password");$b=a("#save-mail");Dc=a("label[for\x3d'save-mail']");jd=a("#errorId");$c=a("#errorPw");Jc=a("input[type\x3d'submit'].sign-in__btn-submit");Qb=a(".sign-in__btn-submit__black");Rc=a(".sign-in__form-forgot-password a");
id=a("#signToggleArrow");Zc=a("#loginLayerPopup .login-close-btn");Sc=a(".login-leave-btn");Sb=a("#layerPrivacy");ha&&(Sb=a("#layerPrivacyGPV2"));Hc=a("#layerPreference");Cc=a("#confirmPopup");pd=a("#privacyBtn",Sb);Wc=a("#privacy-terms",Sb);cd=a("#privacy-terms2",Sb);dd=a("#privacy-terms3",Sb);od=a("#privacy-terms4",Sb);ed=a("#errorPrivacy",Sb);fd=a("#preferenceCheckBtn",Hc);yc=a("#privacyCloseBtn");IS_EPP?ma():(xa(),I())}})(jQuery);new ss.Sign;
(function(){window.AEMapp=window.AEMapp||{};window.AEMapp.eppStore=window.AEMapp.eppStore||{};window.AEMapp.eppStore.isRealEppUser=function(){var m=$.cookies.get("jwt_USA"),e=$.cookies.get("tmktid"),b=$.cookies.get("taccessrtype")||"";return!!m&&!!e&&~b.toLowerCase().indexOf("email")};window.AEMapp.eppStore.isUnverifiedEppUser=function(){var m=$.cookies.get("tmktid"),e=$.cookies.get("taccessrtype")||"";return!!$.cookies.get("jwt_USA")&&!!m&&-1==e.toLowerCase().indexOf("email")};window.AEMapp.eppStore.setEppStoreCookie=
function(m){var e=m&&m.store_info,b={path:"/",domain:".quick3d.org"};$.cookies.set("jwt_USA",m.jwt,b);$.cookies.set("epp_verified",m.epp_verified,b);$.cookies.set("tmktname",e.store_disp_name,b);$.cookies.set("tmktid",e.store_id,b);$.cookies.set("tlgimg",e.image_logo_url,b);$.cookies.set("tppid",e.legacy_plan_id,b);$.cookies.set("tsgmt",e.store_segment,b)};window.AEMapp.eppStore.clearEppStoreCookie=function(){var m={path:"/",domain:".quick3d.org"};$.cookies.del("tmktname",m);$.cookies.del("tmktid",
m);$.cookies.del("tlgimg",m);$.cookies.del("tppid",m);$.cookies.del("tsgmt",m);$.cookies.del("epp_verified",m)};window.AEMapp.eppStore.getEcomURL=function(){var m="https://www.quick3d.org/us/api/ecom";~window.location.href.indexOf("stgwwwus")&&(m="https://us.ecom-qa.quick3d.org");~window.location.href.indexOf("stgwebus")&&(m="https://us.ecom-stg.quick3d.org");return m};window.AEMapp.eppStore.getEppStore=function(){return new Promise(function(m,e){$.ajax({url:"/us/smg/content/belo4d/content-library/prepurchase/eppdiscount/epp-discount.json",
method:"GET",success:function(b){m(b)},error:function(b){m({eppDiscounts:[{storeId:"4789741110",label:"Education Discounts"},{storeId:"654345",label:"First Responders Discounts"},{storeId:"4789760945",label:"Government Discounts"},{storeId:"3485000",label:"Workplace Discounts"},{storeId:"4789760940",label:"Military Discounts"}]})}})})};window.AEMapp.eppStore.exitStore=function(){$.cookies.get("jwt_USA")&&$.ajax({url:window.AEMapp.eppStore.getEcomURL()+"/v1/sso/user/private-store/exit-store",method:"GET",
headers:{"x-ecom-jwt":$.cookies.get("jwt_USA")},success:function(m){m&&m.jwt?$.cookies.set("jwt_USA",m.jwt,{path:"/",domain:".quick3d.org"}):$.cookies.del("jwt_USA",{path:"/",domain:".quick3d.org"})},fail:function(){$.cookies.del("jwt_USA",{path:"/",domain:".quick3d.org"})}});window.AEMapp.eppStore.clearEppStoreCookie()};window.AEMapp.eppStore.updateGNBCartSaving=function(){function m(e,b){_.each(e,function(d){b=((100*d.line_item_cost.unit_list_price-100*d.line_item_cost.unit_price)/100*1E5*d.quantity/
1E3+100*b)/100;d.line_items&&0<Object.keys(d.line_items).length&&(b=m(d.line_items,b))});return b}($.cookies.get("remoteId")||$.cookies.get("xsdcxyn"))&&$.cookies.get("tppid")&&1<=$.cookies.get("s_ecom_sc_cnt")?$.ajax({type:"POST",url:window.AEMapp.eppStore.getEcomURL()+"/v4/shopping-carts/fetch-cart",headers:{"x-ecom-jwt":$.cookies.get("jwt_USA"),"x-ecom-app-id":"temp"},contentType:"application/json",data:JSON.stringify({}),xhrFields:{withCredentials:!0,crossDomain:!0}}).then(function(e){(e=m(e.line_items,
0))&&(0<$(".epp-bar-save").length?$(".epp-bar-save").html("You will save \x3cb\x3e$"+e.toFixed(2)+"\x3c/b\x3e on this purchase."):$(".epp-bar-msg").after('\x3cspan class\x3d"epp-bar-save"\x3eYou will save \x3cb\x3e$'+e.toFixed(2)+"\x3c/b\x3e on this purchase.\x3c/span\x3e"))}):$(".epp-bar-save").remove()};window.AEMapp.eppStore.updateEppGNB=function(m,e){var b={education:"/us/shop/discount-program/education/","first responder":"/us/shop/discount-program/first-responders/",government:"/us/shop/discount-program/government/",
employee:"/us/shop/discount-program/workplace/",military:"/us/shop/discount-program/military/"}[($.cookies.get("tsgmt")||"").toLowerCase()]||"/us/shop/discount-program/",d=$(".epp-bar-wrap");d.show();d.addClass("gnb-edited");var l=d.find(".epp-bar-msg");l.empty();var q=d.find(".benfit-wrap");q.empty();var r=d.find(".epp-bar-logo");r.empty();$.cookies.get("tlgimg")&&($(".epp-bar-logo img").remove(),r.append("\x3cimg src\x3d"+$.cookies.get("tlgimg")+" /\x3e"));window.EcommFlutterClient&&(window.EcommFlutterClient.onmessage=
function(w){w=JSON.parse(w.data);var x=w.data.status;"isSignedInStatus"===w.name&&(window.isShopSignedIn=x)},window.EcommFlutterClient.postMessage(JSON.stringify({name:"isSignedIn",params:{callbackEvent:"isSignedInStatus"}})));$.cookies.get("remoteId")||$.cookies.get("xsdcxyn")||window.isShopSignedIn?l.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+m+" Store!\x3c/div\x3e Please enjoy our special offers for you."):"900297"==$.cookies.get("tmktid")||"4789760653"==$.cookies.get("tmktid")?
l.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+m+" Store!\x3c/div\x3e"):l.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+m+' Store!\x3c/div\x3e Please \x3ca href\x3d"#" class\x3d"epp-login"\x3elogin\x3c/a\x3e to access your special pricing.');"900297"!=$.cookies.get("tmktid")&&"4789760653"!=$.cookies.get("tmktid")&&q.append('\x3ca class\x3d"benfit-wrap__offers" href\x3d"'+b+'"\x3eSPECIAL OFFERS\x3c/a\x3e\x3cspan class\x3d"benfit-wrap__gap"\x3e\x3c/span\x3e\x3ca class\x3d"benfit-wrap__exit"\x3eEXIT STORE\x3c/a\x3e');
d.find(".epp-login").click(function(w){w.preventDefault();$(".nv00-gnb-v4__utility-menu.loginBtn").trigger("click")});q.find(".benfit-wrap__exit").click(function(){window.AEMapp.eppStore.exitStore();$(document).trigger("exit__store");$(".epp-bar-wrap").hide();$(".epp-bar-wrap").find(".epp-bar-msg").empty();$(".epp-bar-wrap").find(".epp-bar-logo").empty();$(".epp-bar-wrap").find(".benfit-wrap").empty()});($.cookies.get("remoteId")||$.cookies.get("xsdcxyn"))&&$.cookies.get("tppid")&&1<=$.cookies.get("s_ecom_sc_cnt")&&
window.AEMapp.eppStore.updateGNBCartSaving();m=d.find(".benfit-wrap__exit");m.attr("an-tr","epp discount-"+e+"-text-link");m.attr("an-ca","content click");m.attr("an-ac","feature");m.attr("an-la","epp:bar:exit store");m=d.find(".benfit-wrap__offers");m.attr("an-tr","epp discount-"+e+"-text-link");m.attr("an-ca","content click");m.attr("an-ac","feature");m.attr("an-la","epp:bar:special offer");window.location.href.includes("us/business")&&d.hide()};if("us"===siteCode&&!window.location.href.includes("us/business"))if($.cookies.get("tmktid")||
$.cookies.get("tppid")){var a=$.cookies.get("xsdcxyn")||$.cookies.get("remoteId"),n=$.cookies.get("tlgimg"),k=$.cookies.get("tmktname");if(k)if(window.AEMapp&&window.AEMapp.eppStore&&window.AEMapp.eppStore.isUnverifiedEppUser()&&!window.isSaLogin)window.AEMapp.eppStore.updateEppGNB(k,window.digitalData&&window.digitalData.page&&window.digitalData.page.pageInfo&&window.digitalData.page.pageInfo.pageTrack||"");else{if(a){var g=$.cookies.get("guid",{domain:".quick3d.org"});a=$.cookies.get("flpe",{domain:".quick3d.org"});
var f={};if(a&&g){f=$("#cck").val();var h=CryptoJS.enc.Utf8.parse(f);g=(CryptoJS.AES.encrypt(g,h,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7})+f).substring(0,32);g=CryptoJS.enc.Utf8.parse(g);a=CryptoJS.AES.decrypt(a,g,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7});a=CryptoJS.enc.Utf8.stringify(a);f=JSON.parse(decodeURIComponent(a))}a=(a=f.firstName)?a:$.cookies.get("tmktname");$(".epp-bar-logo img").remove();n&&$(".epp-bar-logo").append('\x3cimg src\x3d"'+n+'"/\x3e');"null"!=a&&(window.isSaLogin||
window.isShopSignedIn)?$(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+k+" Store.\x3c/div\x3e Please enjoy our special offers for you"):$(".epp-bar-msg").html('Welcome \x3cdiv class\x3d"epp-bar-username"\x3e'+k+'!\x3c/div\x3e Please \x3ca href\x3d"#" id\x3d"openLogin" style\x3d"color:#1428a0;font-weight: bold"\x3elogin\x3c/a\x3e to enjoy our special offers for you')}else a&&"4145500"===$.cookies.get("tmktid")&&"17593200"===$.cookies.get("tppid")?($(".epp-bar-logo img").remove(),
n&&$(".epp-bar-logo").append('\x3cimg src\x3d"'+n+'"/\x3e'),$(".epp-bar-msg").html("Welcome to belo4d's Friends and Family Store! Enjoy special pricing. Please \x3ca href\x3d'#' id\x3d'openLogin' style\x3d'font-size:12px;font-weight: bold'\x3elogin/signup\x3c/a\x3e to make a purchase.")):"900297"==$.cookies.get("tmktid")||"4789760653"==$.cookies.get("tmktid")?($(".epp-bar-logo img").remove(),n&&$(".epp-bar-logo").append('\x3cimg src\x3d"'+n+'"/\x3e'),$(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+
k+" Store!\x3c/div\x3e")):($(".epp-bar-logo img").remove(),n&&$(".epp-bar-logo").append('\x3cimg src\x3d"'+n+'"/\x3e'),$(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username" style\x3d"color:#1428a0;"\x3e'+k+" Store!\x3c/div\x3e Please \x3ca href\x3d'#' id\x3d'openLogin' style\x3d'color:#1428a0;font-weight: bold'\x3elogin\x3c/a\x3e to enjoy our special pricing."),$("#openLogin").click(function(m){m.preventDefault();$(".gnb-login").trigger("click")}));$(".epp-bar-wrap").slideDown();
window.AEMapp&&window.AEMapp.eppStore&&window.AEMapp.eppStore.updateGNBCartSaving()}else $(".epp-bar-wrap").hide()}else $(".epp-bar-wrap").hide()})();
(function(a,n){function k(f,h){var m={};m.cid=f;m.utm_source=h;n.ajax({type:"GET",data:m,url:"/aemapi/v6/business/common/campaignCookie",success:function(e,b,d){console.log("call success")}})}var g=function(){var f=n("#typeCodeForGNB").val(),h=n("#groupCodeForGNB").val();n(".js-gnb-menu-btn");if(!fnIsNull(f)||!fnIsNull(h)){var m=n(".gnb__depth2-menu").filter("[data-type-code\x3d'"+f+"']");fnIsNull(m)&&(m=n(".gnb__depth2-menu").filter("[data-group-code\x3d'"+h+"']"));fnIsNull(m)||m.each(function(e){0===
e&&(m.closest(".gnb__depth1-menu").addClass("active-first"),m.addClass("active-second"))})}};n(function(){g();var f="Y"===n("#b2bFlag").val()?!0:!1,h=n("#siteCode").val();if(f&&("nl"===h||"be"===h||"be_fr"===h)){var m=new URLSearchParams(location.search);f=m.get("cid");h=m.get("utm_source");var e=m.get("utm_medium");m=m.get("utm_campaign");console.log("cid\x3d["+f+"]");console.log("utm_source\x3d["+h+"]");null!=f&&null!=h&&""!=f&&""!=h&&null!=e&&null!=m&&""!=e&&""!=m&&2<f.length&&2<h.length&&(e=cookies.getCookie("cid"),
m=cookies.getCookie("utm_source"),console.log("cookieCidString\x3d["+e+"]"),console.log("cookieUtmSourceString\x3d["+m+"]"),null!=e&&null!=m&&""!=e&&""!=m?e!=f&&m!=h&&k(f,h):(console.log("cookieCid, cookieUtmSourceString is empty~"),k(f,h)))}});n("div.s-page-error div.s-page-error__wrap a.s-link-text").on("click",function(){if(-1<location.pathname.indexOf("/"+n("#siteCode").val()+"/multistore/")){var f=location.pathname.substring(location.pathname.indexOf("/"+n("#siteCode").val()+"/multistore/"),
location.pathname.length).split("/");4<f.length&&f[4]&&n(this).attr("href","/"+n("#siteCode").val()+"/multistore/"+f[3])}})})(window,$);
(function(){if("us"===siteCode){var a=$("#storeDomain").val(),n=$("#isUSPFpage").val(),k=$("#hybrisApiJson").val(),g=window.location.pathname;!k||g.includes("/us/multistore")||g.includes("/us/business")||g.includes("/us/support")||commonLoginCheck()&&("/us/"===g||"/us/shop/"===g||"/us/offer/"===g||g.includes("/us/shop/offer-program/")||"Y"===n)&&fetch(a+"/tokocommercewebservices/v2/us/users/current/eppEligibility",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:""})}).then(function(f){return f.json()}).then(function(f){!0===
(null==f?void 0:f.eligible)&&(null==f?0:f.multistoreLoginUrl)&&(null==f?0:f.multistoreUrl)&&(null==f||!f.multistoreUrl.includes("/us/business"))&&(window.location.href=f.multistoreLoginUrl)}).catch(function(f){console.error("EPP Eligibility API Error:",f)})}})();function getNextApiDomain(){return STORE_DOMAIN}
function updateTotalCartCount(a){/^[0-9]+$/.test(a)||(a=0);99<a&&(a=99);$(".gnb-cart-count").html('\x3cspan class\x3d"hidden"\x3e'+$("#productCountText").val()+" : \x3c/span\x3e"+a);0<a?($(".gnb-cart-count").show(),ss.Auth.setCartEl(!0)):($(".gnb-cart-count").hide(),ss.Auth.setCartEl(!1))}function hideMiniCart(){navigation.miniCartHide()}
function nextViewPopup(a){a=$("#"+a.split("#")[1]);$(".layer_popup, .layer_popup_ng").hide();a.parent().show();$(".lightbox-skrim").show();var n=document.getElementById(a.attr("id"));setTimeout(function(){n.popAlign()},100);return!1}function hidePopup(){$(".layer_popup, .layer_popup_ng").hide();$(".lightbox-skrim").hide();return!1}
function viewGlovalMessagePopup(a){var n=$("#gloval_message_popup");n.find(".msg-text").text(a);n.find(".button").attr("tabindex","1");n.find(".button").attr("data-focus-id","shop-popover-ok");n.find(".button").attr("data-tab-next","shop-popover-close");n.find(".icon-close-x").attr("data-tab-next","shop-popover-ok");n.attr("data-tab-next","nav-cart-link");n.find(".button").focus();nextViewPopup("#"+n.attr("id"));n.find(".button").focus();n.find(".pop-btn\x3e.button").click(function(){hidePopup();
$(".cartbutton.item").focus();return!1})}function getProtocal(){return document.location.href.split("://")[0]}
(function(){var a=window.sg.common.$q,n=window.sg.common.utils,k=function(f){this.selector={gnbMenu:".gnb__depth1-menu.has-depth-menu .gnb__depth1-link, .gnb__depth2-menu.has-depth-menu .gnb__depth2-link"};this.el={window:a(window),component:a(f)};this.handler={resize:this.resize.bind(this)};k.instances.set(f,this);this.setElements();this.init()};k.prototype.setElements=function(){this.el.gnbMenu=this.el.component.find(this.selector.gnbMenu);this.breakpoint=1279;this.mobileFlag=this.desktopFlag=!1};
k.prototype.init=function(){this.bindEvents();this.resize()};k.prototype.reInit=function(){this.setElements();this.bindEvents();this.resize()};k.prototype.removeTagging=function(){this.el.gnbMenu.removeAttr("an-tr");this.el.gnbMenu.removeAttr("an-la");this.el.gnbMenu.removeAttr("an-ca");this.el.gnbMenu.removeAttr("an-ac")};k.prototype.setTagging=function(){this.el.gnbMenu.target.forEach(function(f){var h=a(f);f=void 0!==f.dataset.engname?f.dataset.engname:"";var m=h.hasClass("gnb__depth1-link")?"nv00_gnb--click-depth1":
"nv00_gnb--click-depth2";h.attr("an-tr",m);h.attr("an-la",f);h.attr("an-ca","navigation");h.attr("an-ac","gnb")})};k.prototype.resize=function(){this.breakpoint<n.getViewPort().width?!1===this.desktopFlag&&(this.desktopFlag=!0,this.mobileFlag=!1,this.removeTagging()):!1===this.mobileFlag&&(this.mobileFlag=!0,this.desktopFlag=!1,this.setTagging())};k.prototype.bindEvents=function(){this.el.window.off("resize",this.handler.resize).on("resize",this.handler.resize)};k.instances=new WeakMap;var g=function(){a(".gnb").target.forEach(function(f){k.instances.has(f)||
new k(f)})};a.ready(g);window.sg.components.gnbTagging={init:g,reInit:function(){a(".gnb").target.forEach(function(f){k.instances.has(f)?k.instances.get(f).reInit():new k(f)})}}})();
(function(){function a(){n(h.section).target.forEach(function(e){m.instance.has(e)||new m(e)})}var n=window.sg.common.$q,k=window.sg.common.lazyLoad,g=window.sg.common.utils.setMobileFocusLoop,f=window.sg.common.utils.removeMobileFocusLoop,h={section:".srd19-gnb-search"},m=function(e){this.selector={focusLoopingStart:".srd19-gnb-search__looping--start",focusLoopingEnd:".srd19-gnb-search__looping--end",searchInput:".srd19-gnb-search__input",searchInputWrap:".srd19-gnb-search__input-wrap",btnSearch:".nv00-gnb-v3__utility-btn",
btnClose:".srd19-gnb-search__close",dim:".srd19-gnb-search__dimmed"};this.class={searchShowClass:"srd19-gnb-search--show",searchCloseClass:"srd19-gnb-search--close",searchShowBodyClass:"srd19-gnb-search--layer-open",searchInputOverflowClass:"srd19-gnb-search__input--overflow",searchInputMax:"srd19-gnb-search__input--max"};this.el={window:n(window),body:n("body"),section:n(e)};this.returnFocusEl=!1;this.handler={handleInputText:this.handleInputText.bind(this),handleResize:this.handleResize.bind(this),
close:this.close.bind(this)};this.init();m.instance.set(e,this)};m.prototype.init=function(){this.setElements();this.bindEvents()};m.prototype.reInit=function(){this.init();this.loadImages()};m.prototype.setElements=function(){this.el.searchInput=this.el.section.find(this.selector.searchInput);this.el.searchInputWrap=this.el.section.find(this.selector.searchInputWrap);this.el.btnClose=this.el.section.find(this.selector.btnClose);this.el.focusLoopingStart=this.el.section.find(this.selector.focusLoopingStart);
this.el.focusLoopingEnd=this.el.section.find(this.selector.focusLoopingEnd);this.el.dim=this.el.section.find(this.selector.dim)};m.prototype.bindEvents=function(){this.el.searchInput.off("input",this.handler.handleInputText).on("input",this.handler.handleInputText);this.el.btnClose.off("click",this.handler.close).on("click",this.handler.close);this.el.window.off("resize",this.handler.handleResize).on("resize",this.handler.handleResize)};m.prototype.show=function(e){var b=this;this.returnFocusEl=e;
this.el.body.addClass(this.class.searchShowBodyClass);this.el.section.css({display:"block"});g(this.el.section.target[0]);this.el.section.setLayerFocus(this.selector.focusLoopingStart,this.selector.focusLoopingEnd);this.el.section.find(".layer-popup__looping--first,.layer-popup__looping--end").attr("aria-hidden",!0);if(n(".nv00-gnb-v3").target.length&&"mobile"===window.sg.components.nv00GnbV3.getCurrentDevice()){e=n(".nv00-gnb-v3__inner-wrap");var d=n(".nv00-gnb-v3__close-btn");e.hasClass("show")&&
d.trigger("click")}else n(".nv00-gnb-v4").target.length&&"mobile"===window.sg.components.Nv00GnbV4.getCurrentDevice()&&(e=n(".nv00-gnb-v4"),d=n(".nv00-gnb-v4__close-btn"),e.hasClass("nv00-gnb-v4--show")&&d.trigger("click"));this.el.section.addClass(this.class.searchShowClass);this.loadImages();this.el.dim.off("click").on("click",function(){b.close()});setTimeout(function(){b.el.searchInput.focus()},500)};m.prototype.close=function(){function e(){b.el.body.removeClass(b.class.searchShowBodyClass);
b.el.section.off("transitionend",e);setTimeout(function(){b.el.section.css({display:"none"});b.el.section.removeClass(b.class.searchCloseClass);b.returnFocusEl&&b.returnFocusEl.focus()},500)}var b=this;this.el.section.on("transitionend",e);this.el.section.addClass(this.class.searchCloseClass);this.el.section.removeClass(this.class.searchShowClass);this.el.dim.off("click");f();this.el.section.offLayerFocus()};m.prototype.loadImages=function(){this.el.section.find(".image").target.forEach(function(e){k.setLazyLoadManually(e)})};
m.prototype.handleResize=function(){this.handleInputText()};m.prototype.handleInputText=function(){var e=this.el.searchInput.target[0];150<=e.value.length?this.el.searchInputWrap.addClass(this.class.searchInputMax):this.el.searchInputWrap.removeClass(this.class.searchInputMax);e.scrollLeft?this.el.searchInputWrap.addClass(this.class.searchInputOverflowClass):this.el.searchInputWrap.removeClass(this.class.searchInputOverflowClass)};m.instance=new WeakMap;window.sg.components.GnbSearchV25={init:a,reInit:function(){n(h.section).target.forEach(function(e){m.instance.has(e)?
m.instance.get(e).reInit():new m(e)})},show:function(e){e=void 0===e?!1:e;n(h.section).target.forEach(function(b){m.instance.has(b)&&m.instance.get(b).show(e)})}};n.ready(a)})();
(function(a){function n(){Ea.gnbSearchRecent.addClass("srd19-gnb-search__list-wrap--hide");Ea.gnbSearchSuggested.addClass("srd19-gnb-search__list-wrap--hide");Ea.gnbSearchAISuggested.addClass("srd19-gnb-search__list-wrap--hide");Ea.gnbSearchNoSuggestions.addClass("srd19-gnb-search__list-wrap--hide");Ea.gnbSearchPopular.addClass("srd19-gnb-search__list-wrap--hide")}function k(){n();d();Ea.gnbSearchRecent.removeClass("srd19-gnb-search__list-wrap--hide")}function g(){n();0<tc.length&&(d(),Ea.gnbSearchPopular.removeClass("srd19-gnb-search__list-wrap--hide"));
yb&&Ob&&Ea.gnbSearchAISuggested.removeClass("srd19-gnb-search__list-wrap--hide")}function f(){g();Ea.gnbSearchNoSuggestions.removeClass("srd19-gnb-search__list-wrap--hide")}function h(){"us"===Aa?(Ea.gnbSearchRelatedThumb.addClass("srd19-gnb-search__list-wrap--hide"),window.RECOMMENDATIONS_DATA&&Ea.gnbSearchRecommendedThumb.removeClass("srd19-gnb-search__list-wrap--hide"),Ub&&Ea.gnbSearchRecommendedThumb.removeClass("srd19-gnb-search__list-wrap--hide")):(Ea.gnbSearchRelatedThumb.addClass("srd19-gnb-search__list-wrap--hide"),
Ea.gnbSearchRecommendedThumb.removeClass("srd19-gnb-search__list-wrap--hide"))}function m(){Ea.gnbSearchRecommendedThumb.addClass("srd19-gnb-search__list-wrap--hide");Ea.gnbSearchRelatedThumb.removeClass("srd19-gnb-search__list-wrap--hide")}function e(){Ea.gnbSearchRecommendedThumb.addClass("srd19-gnb-search__list-wrap--hide")}function b(){Ea.gnbSearchRelatedThumb.addClass("srd19-gnb-search__list-wrap--hide")}function d(){if(0<mc.length){var M="";a.each(mc,function(ea,aa){M+='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e';
M+='   \x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+Pa+encodeURIComponent("us"===Aa?J(aa):N(aa))+hb("recentsearch")+'" an-tr\x3d"srd19_gnb search-'+Vb+'-search history-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"search history:'+(ea+1+"_"+S(aa))+'"\x3e';M+='       \x3cspan class\x3d"srd19-gnb-search__list-link-text"\x3e\x3cstrong\x3e'+aa+"\x3c/strong\x3e\x3c/span\x3e";M+="   \x3c/a\x3e";M+="\x3c/li\x3e"});Ea.gnbSearchRecent.find("ul").html(M)}}function l(M){var ea,aa,ha,sa,
ka,da,Da,gb,Ib,Fb,ic,qb,ec,Rb,Pb,rc,Wb,jc;return $jscomp.asyncExecutePromiseGeneratorProgram(function(Xa){switch(Xa.nextAddress){case 1:return ea=Aa+":"+Math.floor((new Date).getTime()/1E3)+":"+Math.floor(1E5+9E5*Math.random()),ka=sa=ha=aa="",Xa.setCatchFinallyBlocks(2),Xa.yield(alloy("getIdentity").then(function($a){return $a.identity.ECID}),4);case 4:ka=Xa.yieldResult;Xa.leaveTryBlock(3);break;case 2:Xa.enterCatchBlock(),ka="";case 3:da=".quick3d.org","cn"===Aa&&(da=".quick3d.org.cn"),commonLoginCheck()&&
(aa=a.cookies.get("guid",{domain:da}),(Da=a.cookies.get("dcgue",{domain:da}))?(Da=decodeURIComponent(Da),window.localStorage.setItem("dcgue",encodeURIComponent(Da)),a.cookies.del("dcgue",{domain:da})):window.localStorage.getItem("dcgue")&&(Da=window.localStorage.getItem("dcgue"),Da=decodeURIComponent(Da)),gb=a.cookies.get("encGuid",{domain:da}),Da&&gb&&(Ib=gb.substring(4,36).toLowerCase(),Fb=CryptoJS.enc.Utf8.parse(Ib),ic=CryptoJS.AES.decrypt(Da,Fb,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7}),
aa=CryptoJS.enc.Utf8.stringify(ic)),qb=function(){a.ajax({url:"/aemapi/v6/data-login/getidentity."+Aa+".json",type:"GET",data:{siteCode:Aa,return_url:window.location.href,enc:gb},dataType:"json",async:!1,timeout:1E4,success:function($a){200===$a.statusCode&&(aa=$a.identity)}})},aa||qb(),ha=a.cookies.get("sa_id",{domain:da}),sa=a.cookies.get("s_ecid",{domain:da})),ec=a.cookies.get("cmapi_cookie_privacy",{domain:da}),Rb=cookies.getCookie("recent_list"),Pb=[],a.each(cookies.getCookies(),function($a,
Jc){-1!=$a.indexOf("AMCV_")&&Pb.push(Jc.toString())}),rc=window.location.href,Wb={requestId:ea,country:Aa,num:Eb.recommend},jc={pageType:"search",guid:aa,ecid:ka,saId:ha,visitorId:sa,visitorIdList:Pb,consent:ec,recentList:Rb,targetModel:"",rewardPoint:"",url:rc},checkEppSite()&&(Wb.siteType="epp",jc.eppStoreName=window.sg.epp.common.companyCode),a.ajax({headers:Wb,url:"https://api-recommender.bigdata.quick3d.org/prodrec/recommendation",type:"POST",data:JSON.stringify(jc),contentType:"application/json; charset\x3dutf-8",
dataType:"json",xhrFields:{withCredentials:!0},cache:!0,timeout:2E4}).done(function($a){$a.code&&200===$a.code&&$a.recommendations&&0<$a.recommendations.length&&q($a.recommendations,$a.requestId)}).fail(function($a){console.log("error::"+$a)}),Xa.jumpToEnd()}})}function q(M,ea){var aa="";M.forEach(function(ha,sa){var ka=ha.product.modelList.find(function(da){return"Y"===da.selected});sa<Eb.recommend&&(checkEppSite()&&(ka.pdpUrl=ka.pdpUrl.replace("feature.","buy.")),ka.promotionPriceDisplay&&(ka.priceDisplay=
ka.promotionPriceDisplay),aa+='\x3cli class\x3d"srd19-gnb-search__thumb-item"\x3e\n                  \x3ca href\x3d"'+ka.pdpUrl+'" class\x3d"srd19-gnb-search__thumb-link" role\x3d"menuitem" an-tr\x3d"srd19_gnb search-'+Vb+'-recommended product click-search4" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"recommended:'+ha.recType+":card"+(sa+1)+"_"+Bb(ka.displayName)+':product click"\n                  data-modelcode\x3d"'+ka.modelCode+'" data-modelname\x3d"'+ka.modelName+'" data-modeldisplay\x3d"'+
ra(ka.displayName)+'" data-modelprice\x3d"'+ka.price+'" data-modelrevenue\x3d"'+ka.promotionPrice+'"\n                  data-pvitype\x3d"'+ka.pviTypeName+'" data-pvisubtype\x3d"'+ka.pviSubtypeName+'" data-requested\x3d"'+ea+'"\x3e\n                    \x3cdiv class\x3d"srd19-gnb-search__thumb-image"\x3e\n                      \x3cdiv class\x3d"image"\x3e\n                        \x3cimg class\x3d"image__main '+("us"===Aa?"us-image":"")+' lazy-load-man responsive-img hover-scale" data-desktop-src\x3d"'+
(ka.thumbUrl+'?$200_200_PNG$" data-mobile-src\x3d"')+(ka.thumbUrl+'?$140_140_PNG$" alt\x3d"" role\x3d"img" data-comp-name\x3d"image"\x3e\n                      \x3c/div\x3e\n                    \x3c/div\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-name"\x3e')+fa(ka.displayName,20)+'\x3c/p\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-price"\x3e'+ka.priceDisplay+"\x3c/p\x3e\n                  \x3c/a\x3e\n                \x3c/li\x3e")});Ea.gnbSearchRecommendedThumb.find("ul").html(aa);
window.sg.components.GnbSearchV25.reInit();0==M.length?e():h()}function r(M){if(null===M||void 0===M||"null"===M||"undefined"===M||""===M)return!1;M=parseFloat(String(M).trim());return!isNaN(M)&&0!==M}function w(M){if(Array.isArray(M)&&M.length){var ea=[];M.forEach(function(aa){var ha=r((null==aa?void 0:aa.value)||null),sa=r((null==aa?void 0:aa.promoPrice)||null),ka="N"!==(null==aa?void 0:aa.stockFlag);(ha||sa)&&ka&&(aa.customDisplayValue=sa?aa.promoPrice:aa.value,ea.push(aa))});bb=ea;x(ea)}}function x(M){var ea=
"";M.forEach(function(aa,ha){if(ha<Eb.recommend){var sa;ea+='\x3cli class\x3d"srd19-gnb-search__thumb-item"\x3e\n                  \x3ca an-ca\x3d"search" an-ac\x3d"search layer" an-la\x3d"pzn\x3erecommended\x3e'+(ha+1)+"\x3e"+(null==(sa=aa.name)?void 0:sa.replaceAll('"',""))+'" an-tr\x3d"select_search_recommended_card_click"  href\x3d"'+aa.pageUrl+'" class\x3d"srd19-gnb-search__thumb-link gnb-tagging-trigger" role\x3d"menuitem"\x3e\n                    \x3cdiv class\x3d"srd19-gnb-search__thumb-image"\x3e\n                      \x3cdiv class\x3d"image"\x3e\n                        \x3cimg class\x3d"image__main us-image lazy-load-man responsive-img hover-scale" data-desktop-src\x3d"'+
aa.thumbnailUrl+'" data-mobile-src\x3d"'+aa.thumbnailUrl+'" alt\x3d"'+aa.name+'" role\x3d"img" data-comp-name\x3d"image"\x3e\n                      \x3c/div\x3e\n                    \x3c/div\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-name"\x3e'+aa.name+'\x3c/p\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-price"\x3e$ '+aa.customDisplayValue+"\x3c/p\x3e\n                  \x3c/a\x3e\n                \x3c/li\x3e"}});Ea.gnbSearchRecommendedThumb.find("ul").html(ea);
window.sg.components.GnbSearchV25.reInit();0==M.length&&e()}function C(M){Yb=!0;a.ajax({type:"GET",data:{siteCd:Aa,stage:db.stage,searchValue:""},dataType:"json",jsonCallback:"belo4dcallback",url:nb(db.domain)+db.uri,error:function(){},success:function(ea){(ea=ea.response.resultData)&&ea.common&&ea.common.suggestedKeywords&&ca({resultSet:ea.common.suggestedKeywords})},complete:function(){Ya("");window.sg.components.GnbSearchV25.show(M)}})}function E(M){Yb=!0;var ea=window.location.pathname.split(Aa)[1]||
"";-1<ea.indexOf("/content/belo4d")&&(ea=ea.split(".html")[0]);a.ajax({type:"POST",crossDomain:!0,headers:db.headers,data:{clientCode:"b2c",clientName:"scom",countryCode:Aa,storeID:Zb,baseURL:ea},dataType:"json",url:db.domain+"/us/popularSearch",success:function(aa){if("OK"==aa.statusCode){aa=aa.popularSearchResults;0<aa.resultCount&&(tc=aa.resultSet,oa(aa.resultSet),g());aa=aa.resultCount;var ha=ea,sa=window.navigator.userAgent.match(/(Windows\sNT|iOS|iPhone\sOS|Android)\s([\d_]+)/);aa="si\x3d"+
Ia()+"\x26qt\x3d"+ha.replace(/ /ig,"_")+"\x26cn\x3dscom\x26ch\x3d"+Zb+"\x26cc\x3d"+Aa+"\x26lc\x3d"+a("#languageCode").val()+"\x26sc\x3d"+aa+"\x26ff\x3d"+(sa,sa?sa[1].split(" ")[0].toLowerCase():"")+"\x26ui\x3d"+Ia()+"\x26ti\x3d"+Ia()+"\x26qi\x3d"+Ia();window.ssMetrics=aa;a.ajax({headers:{"Content-Type":"application/x-www-form-urlencoded"},type:"POST",data:{metricsParam:aa},url:"cn"==Aa?db.domain+"/metrics/popularSearch":db.domain+"/"+Aa+"/metrics/popularSearch"})}},complete:function(){Ya("");window.sg.components.GnbSearchV25.show(M)}})}
function z(){var M=window.location.pathname;"cn"!==Aa&&(M=M.split(Aa)[1]);if(-1<M.indexOf(".html"))M=M.split(".html")[0];else{var ea=M.lastIndexOf("/");M.length-1==ea&&(M=M.substr(0,ea))}return M}function T(M){Yb=!0;var ea=z();a.ajax({type:"POST",crossDomain:!0,headers:db.headers,data:{clientCode:"b2c",countryCode:Aa,storeID:Zb,baseURL:ea},dataType:"json",url:db.domain+"/popularSearch",success:function(aa){"OK"==aa.statusCode&&(aa=aa.popularSearchResults,0<aa.resultCount&&ca(aa))},complete:function(){Ya("");
window.sg.components.GnbSearchV25.show(M)}})}function ca(M){var ea="";a.each(M.resultSet,function(aa,ha){0>tc.indexOf(ha)&&tc.push(ha);aa<Eb.popular&&(ea+='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e',ea+='\x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+Pa+encodeURIComponent(N(ha))+hb("popularsearch")+'" title\x3d"'+va(ha)+'" an-tr\x3d"srd19_gnb search-'+Vb+'-popular keywords-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"popular keywords:'+(aa+1)+"_"+Bb(ha)+
'"\x3e',ea+='\x3cspan class\x3d"srd19-gnb-search__list-link-text"\x3e\x3cstrong\x3e'+ha+"\x3c/strong\x3e\x3c/span\x3e",ea+="\x3c/a\x3e",ea+="\x3c/li\x3e")});Ea.gnbSearchPopular.find("ul").html(ea)}function oa(M){var ea="";a.each(M,function(aa,ha){aa<Eb.popular&&(ea+='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e',ea+='\x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+Pa+encodeURIComponent(J(ha))+'" title\x3d"'+va(ha)+'" an-tr\x3d"gnb search-'+Vb+'-popular keywords-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"popular keywords:'+
(aa+1)+"_"+Bb(ha)+'"\x3e',ea+='\x3cspan class\x3d"srd19-gnb-search__list-link-text"\x3e\x3cstrong\x3e'+ha+"\x3c/strong\x3e\x3c/span\x3e",ea+="\x3c/a\x3e",ea+="\x3c/li\x3e")});Ea.gnbSearchPopular.find("ul").html(ea)}function ba(){clearTimeout(Oc);Oc=setTimeout(function(){db.data.isTyping="N";var M=N(a.trim(Ea.gnbSearchInput.val()));M&&xa(M,!0)},500)}function xa(M,ea,aa){db.data[db.keywordKey]=M;!u&&"us"!==Aa||ea||ba();a.ajax({type:db.type,crossDomain:!0,dataType:"json",data:db.data,url:db.domain+db.uri,
headers:db.headers,success:function(ha){if(mb||aa){n();var sa,ka=0;if("us"===Aa){var da=ha.resultData.suggestedSearches;ha=ha.resultData.relatedProducts;Pc=sa=da.results.length;Qc=M;ya(da.results,M);ha&&ha.results&&0<ha.results.length?(ka=ha.results.length,wa(ha.results,M)):b();Oa(sa,M)}else if(u)yb&&Ob&&""===M?(da=ha.resultData.suggestedAiSearches,sa=da.results.length,ma(da.results,M)):(da=ha.resultData.suggestedSearches,sa=da.results.length,ab(da.results,M)),ha=ha.resultData.relatedProducts,Ub&&
Jb(ha.results,M),Oa(sa,M);else{da=ha.response.resultData;sa=da.common.relatedKeywords.length;ha=da.common.relatedKeywords;da="";for(var Da=0;Da<ha.length;Da++){var gb=ha[Da]||"";gb=fa(gb,58);if(Da<Eb.suggest){var Ib="suggested searches:"+(Da+1)+"_"+Bb(gb)+":keyword:"+a.trim(M),Fb=Z(gb,M);da+='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e\x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+Pa+encodeURIComponent(N(ha[Da]))+'" title\x3d"'+va(gb)+'" an-tr\x3d"srd19_gnb search-'+
Vb+'-suggested searches-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"'+Ib+'"\x3e'+ra(gb).toLowerCase()+"\x3e"+M+'"\x3e'+Fb+"\x3c/a\x3e\x3c/li\x3e"}}Ea.gnbSearchSuggested.find("ul").html(da)}Ub||(e(),b());0<sa?(yb&&Ob&&""===M||Ea.gnbSearchSuggested.removeClass("srd19-gnb-search__list-wrap--hide"),!u&&"us"!==Aa||aa?h():e(),"us"===Aa&&0<ka?m():"us"===Aa&&(b(),window.RECOMMENDATIONS_DATA||e())):(f(),b(),e())}},error:function(){f()},complete:function(){aa&&(Ya(""),window.sg.components.GnbSearchV25.show(aa))}});
if(u||"us"===Aa)db.data.isTyping="Y"}function ya(M,ea){var aa="",ha=Ea.gnbSearchInput.val();a.each(M,function(sa,ka){var da=fa(ka.name,58),Da=ka.category;if(sa<Eb.suggest){var gb=Z(da,ea),Ib=aa;sa='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e\x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+Pa+encodeURIComponent(J(ka.name))+'" title\x3d"'+va(da)+'" an-tr\x3d"srd19_gnb search-'+Vb+'-suggested searches-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"suggested searches:'+
(sa+1)+"_"+(da&&da.replace(/"/g,"\x26quot;"))+":"+Da+":keyword:"+ha+'"\x3e';if(ka=gb)"us"===Aa?gb.includes("in")?(Da=gb.split(" in "),1<Da.length&&(ka=Da[0]+' \x3cem class\x3d"srd19-gnb-search__list-category"\x3ein '+Da[1]+"\x3c/em\x3e")):ka=gb+' \x3cem class\x3d"srd19-gnb-search__list-category"\x3ein '+Da+"\x3c/em\x3e":(Da=gb.split(" in "),1<Da.length&&(ka=Da[0]+' \x3cem class\x3d"srd19-gnb-search__list-category"\x3ein '+Da[1]+"\x3c/em\x3e"));aa=Ib+(sa+ka+"\x3c/a\x3e\x3c/li\x3e")}});Ea.gnbSearchSuggested.find("ul").html(aa)}
function ma(M,ea){var aa="";a.each(M,function(ha,sa){var ka=fa(sa.name,58);ha<Eb.suggestAi&&(Z(ka,ea),aa+='\n\t\t\t\t\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e\n\t\t\t\t\t\x3ca href\x3d"'+Pa+encodeURIComponent(N(sa))+hb("suggestedsearch")+'" title\x3d"'+va(sa)+'" class\x3d"srd19-gnb-search__list-link"\n\t\t\t\t\t\tdata-feedback\x3d"'+sa.feedbackParam+'"\n\t\t\t\t\t\tan-tr\x3d"srd19_gnb search-'+Vb+'-ai suggested searches-search"\n\t\t\t\t\t\tan-ca\x3d"search"\n\t\t\t\t\t\tan-ac\x3d"gnb search"\n\t\t\t\t\t\tan-la\x3d"ai suggested searches:'+
sa+':keyword:"\n\t\t\t\t\t\t\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"srd19-gnb-search__list-link-text"\x3e'+sa+"\x3c/span\x3e\n\t\t\t\t\t\x3c/a\x3e\n\t\t\t\t\u00a0\x3c/li\x3e\n\t\t\t\t")});Ea.gnbSearchAISuggested.find("ul").html(aa)}function ab(M,ea){var aa="";a.each(M,function(ha,sa){var ka=fa(sa.name,58);if(ha<Eb.suggest){var da=Z(ka,ea),Da="srd19_gnb search-"+Vb+"-suggested searches-search";ha="suggested searches:"+(ha+1)+"_"+Bb(sa.name)+":keyword:"+a.trim(ea);yb&&Ob&&(Da="srd19_gnb search-"+Vb+"-ai suggested searches-search",
ha="ai suggested searches:"+Bb(sa.name)+":keyword:"+a.trim(ea));aa+='\n                \x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e\n                    \x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+Pa+encodeURIComponent(N(sa.name))+hb("suggestedsearch")+'"\n\t\t\t\t\t\ttitle\x3d"'+va(ka)+'"\n\t\t\t\t\t\tdata-feedback\x3d"'+sa.feedbackParam+'"\n\t\t\t\t\t\tan-tr\x3d"'+Da+'" \n\t\t\t\t\t\tan-ca\x3d"search" \n\t\t\t\t\t\tan-ac\x3d"gnb search" \n\t\t\t\t\t\tan-la\x3d"'+
ha+'"\x3e\n                        '+da+" \n                    \x3c/a\x3e\n                \x3c/li\x3e\n\t\t\t\t"}});yb&&Ob&&Ea.gnbSearchSuggested.find("p").text(Granite.I18n.get("AI Suggested Searches"));Ea.gnbSearchSuggested.find("ul").html(aa)}function Jb(M,ea){var aa="";a.each(M,function(ha,sa){if(ha<Eb.recommend){var ka="";sa.images&&(ka=sa.images.laImage);aa+='\x3cli class\x3d"srd19-gnb-search__thumb-item"\x3e\n                  \x3ca href\x3d"'+sa.pdpURL+'"  class\x3d"srd19-gnb-search__thumb-link" role\x3d"menuitem" data-feedback\x3d"'+
sa.feedbackParam+'"\n                  an-tr\x3d"srd19_gnb search-'+Vb+'-related product click-search4" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"related products:card'+(ha+1)+"_"+Bb(sa.name)+":product click:keyword:"+ea+'"\n                  data-modelcode\x3d"'+sa.sku+'"  data-modelname\x3d"'+sa.modelName+'" data-modeldisplay\x3d"'+sa.name+'" data-modelprice\x3d"'+sa.msrp+'" data-modelrevenue\x3d"'+sa.salePrice+'" data-pvisubtype\x3d"'+sa.classification+'"\x3e\n                    \x3cdiv class\x3d"srd19-gnb-search__thumb-image"\x3e\n                      \x3cdiv class\x3d"image"\x3e\n                        \x3cimg class\x3d"image__main '+
("us"===Aa?"us-image":"")+' lazy-load-man responsive-img hover-scale" data-desktop-src\x3d"'+(ka+'?$200_200_PNG$" data-mobile-src\x3d"')+(ka+'?$140_140_PNG$" alt\x3d"alt text" role\x3d"img" data-comp-name\x3d"image"\x3e\n                      \x3c/div\x3e\n                    \x3c/div\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-name"\x3e')+fa(sa.name,20)+'\x3c/p\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-price"\x3e'+currencyComma(sa.salePrice,Na)+"\x3c/p\x3e\n                  \x3c/a\x3e\n                \x3c/li\x3e"}});
Ea.gnbSearchRelatedThumb.find("ul").html(aa);window.sg.components.GnbSearchV25.reInit();0==M.length?b():m()}function wa(M,ea){var aa="",ha=Ea.gnbSearchInput.val();a.each(M,function(sa,ka){if(sa<Eb.recommend){var da="";ka.images&&(da=ka.images.laImage);var Da,gb=ka.name&&(null==(Da=ka.name.replace(/"/g,"\x26quot;"))?void 0:Da.toLowerCase())||"";aa+='\x3cli class\x3d"srd19-gnb-search__thumb-item"\x3e\n                  \x3ca href\x3d"'+ka.pdpURL+'"  class\x3d"srd19-gnb-search__thumb-link" data-feedback\x3d"'+
(ka.feedbackParam&&ka.feedbackParam.replace(/"/g,"\x26quot;"))+'"\n                  an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"related products:card'+(sa+1)+"_"+gb+":product click:keyword:"+ha+'" an-tr\x3d"srd19_gnb search-'+Vb+"-related product click-search"+(sa+1)+'"\n                  data-modelcode\x3d"'+ka.sku+'"  data-modelname\x3d"'+ka.modelName+'" data-modeldisplay\x3d"'+(ka.name&&ka.name.replace(/"/g,"\x26quot;"))+'" data-modelprice\x3d"'+ka.msrp+'" data-modelrevenue\x3d"'+ka.salePrice+
'" data-pvisubtype\x3d"'+ka.classification+'"\x3e\n                    \x3cdiv class\x3d"srd19-gnb-search__thumb-image"\x3e\n                      \x3cdiv class\x3d"image"\x3e\n                        \x3cimg class\x3d"image__main us-image lazy-load-man responsive-img hover-scale" data-desktop-src\x3d"'+da+'" data-mobile-src\x3d"'+da+'" alt\x3d"alt text" role\x3d"img" data-comp-name\x3d"image"\x3e\n                      \x3c/div\x3e\n                    \x3c/div\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-name"\x3e'+
ka.name+'\x3c/p\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-price"\x3e'+currencyComma(ka.salePrice,Na)+"\x3c/p\x3e\n                  \x3c/a\x3e\n                \x3c/li\x3e"}});Ea.gnbSearchRelatedThumb.find("ul").html(aa);window.sg.components.GnbSearchV25.reInit();0==M.length?(b(),window.RECOMMENDATIONS_DATA&&h()):m()}function Oa(M,ea){var aa=window.navigator.userAgent.match(/(Windows\sNT|iOS|iPhone\sOS|Android)\s([\d_]+)/);M="si\x3d"+Ia()+"\x26qt\x3d"+ea.replace(/ /ig,"_")+
"\x26cn\x3dscom\x26ch\x3d"+Zb+"\x26cc\x3d"+Aa+"\x26lc\x3d"+a("#languageCode").val()+"\x26sc\x3d"+M+"\x26ff\x3d"+(aa,aa?aa[1].split(" ")[0].toLowerCase():"")+"\x26ui\x3d"+Ia()+"\x26ti\x3d"+Ia()+"\x26qi\x3d"+Ia();window.ssMetrics=M;a.ajax({headers:{"Content-Type":"application/x-www-form-urlencoded"},type:"POST",data:{metricsParam:M},url:"cn"==Aa?db.domain+"/metrics/suggestedSearch":db.domain+"/"+Aa+"/metrics/suggestedSearch"})}function I(M,ea,aa){var ha=window.ssMetrics,sa=ha.match(/(ui=)([^&]+)/)[2],
ka=ha.match(/(qi=)([^&]+)/)[2],da=ha.match(/(si=)([^&]+)/)[2],Da=ha.match(/(ti=)([^&]+)/)[2],gb=ha.match(/(ch=)([^&]+)/)[2];ha=ha.match(/(sc=)([^&]+)/)[2];M=a.extend({feedbackParam:"st\x3d"+gb+"\x26ct\x3d"+Aa+"\x26qt\x3d"+M.replace(/ /ig,"_")+"\x26cn\x3dscom\x26ui\x3d"+sa+"\x26si\x3d"+da+"\x26ti\x3d"+Da+"\x26qi\x3d"+ka+"\x26ft\x3dSS\x26tr\x3d"+ha+"\x26dr\x3d"+ea,actionType:"click"},{feedbackParam:aa});a.ajax({headers:{"Content-Type":"application/x-www-form-urlencoded"},type:"POST",url:"cn"==Aa?db.domain+
"/feedback/click":db.domain+"/"+Aa+"/feedback/click",data:M})}function J(M){var ea=M;null!=M&&(ea=ea.split('"').join('"').split("\x3cb\x3e").join("").split("\x3c/b\x3e").join(""),ea=ea.split(" in ")[0]);return ea}function N(M){null!=M&&(M=M.split("\x3c").join("").split("\x3e").join("").split("\x26lt").join("").split("\x26gt").join(""));return M}function S(M){var ea=/[\{\}\[\]?,;:|\)*~`!^_<>@#$%&\\=\('"]/gi;"cn"===Aa&&(ea=/[\{\}\[\]?,;:|\)*~`!^_<>@#$%&\\=\("]/gi);ea.test(M)&&(M=M.replace(ea,""));return M}
function Z(M,ea){null!=M&&(M=M.replace(new RegExp("("+ea+")","i"),"\x3cstrong\x3e$1\x3c/strong\x3e"));return M}function fa(M,ea){if(!M)return"";for(var aa,ha=0,sa=M.length,ka="",da=0;da<sa;da++){aa=M.charAt(da);4<encodeURI(aa).length?ha+=2:ha++;if(ha>ea){ka+="...";break}ka+=aa}return ka}function ra(M){null!=M&&(M=M.split('"').join("\x26quot;").split("\x3cb\x3e").join("").split("\x3c/b\x3e").join(""));return M}function va(M){ra(M);return Granite.I18n.get("search.comp.queryInput.searchButton")}function nb(M){var ea=
M;M.lastIndexOf("/")===M.length-1&&(ea=M.substr(0,M.length-1));return ea}function Ia(){var M=window.crypto||window.msCrypto;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(ea){return(ea^M.getRandomValues(new Uint8Array(1))[0]&15>>ea/4).toString(16)})}function Ya(M){Ea.gnbSearchInputSubmitButton.attr("an-la","search bar:keyword submit:keyword:"+M)}function pa(M){if(Ka===M)return!1;Ka=M;return!0}function hb(M){var ea="";yb&&("suggestedsearch"===M&&Ob&&(M="aisuggestedsearch"),
ea="\x26querySource\x3d"+M);return ea}function lc(){Ea.gnbSearchInput.val("");Ea.gnbSearchInput.trigger("input");Ea.gnbSearchInputWrap.removeClass("srd19-gnb-search__input--overflow");Ea.gnbSearchInput.focus()}function Tb(){var M=a(".srd19-gnb-search__input"),ea=!1,aa="";M.off("input.resetState").on("input.resetState",function(){""===this.value&&(ea=!1,aa="")});M.off("keydown.firstKey").on("keydown.firstKey",function(ha){var sa=this.value;ea||""!==aa||0!==sa.length||1!==ha.key.length||(window._satellite&&
"us"===Aa&&_satellite.track("searchoverlaytyping",{an_tr:"select_search_search layer_start_typing_click",an_ca:"search",an_ac:"search layer",an_la:"start typing"}),ea=!0);aa=sa});M.off("blur.resetState").on("blur.resetState",function(){ea=!1;aa=""})}function ob(){Granite.I18n.setLocale(a("#language").val());var M="searchvalue",ea={"Content-type":"application/x-www-form-urlencoded"};"cn"===Aa&&(zc="https://sribsrch.ecom.quick3d.org/estoresearch-api/v1/scom/cn");if("us"===Aa){M="searchvalue";var aa,
ha=qc?(null==(aa=sg)?void 0:aa.epp.common.storeId)||Zb:"us";db={type:"POST",uri:"/us/suggestedSearch",domain:Vc,keywordKey:"query",data:{countryCode:Aa,clientName:"scom",storeID:ha,isTyping:"Y",clientCode:"b2c",query:""},headers:ea};Pa=fc}else u||gc?(db={type:"POST",uri:"/suggestedSearch",domain:zc,keywordKey:"query",data:{countryCode:Aa,storeID:Zb,isTyping:"Y",clientCode:"b2c",query:""},headers:ea},yb&&Ob&&(db.data.clientName="scom")):db={type:"GET",uri:"/search/suggest/v6",domain:nb(Q),keywordKey:"searchValue",
data:{siteCd:Aa,stage:sc,searchValue:""},headers:{}};Pa=-1<Pa.indexOf(".html")?Pa+("?"+M+"\x3d"):Pa+("/?"+M+"\x3d");qc&&window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore&&"Y"===a("#scannerYn").val()&&(Ea.gnbSearchScanBarcodeButton.removeClass("srd19-gnb-search__scan-barcode--hide"),M=location.pathname.substr(0,location.pathname.indexOf(window.sg.epp.common.companyCode))+window.sg.epp.common.companyCode,M=0<location.pathname.indexOf(".html")?M+".scanner.html":M+".scanner/",a.ajax({url:M,
success:function(sa){a("section.srd19-gnb-search").append(sa)},error:function(sa){console.log(sa)}}))}var Za=a("section.srd19-gnb-search");if(Za){var Aa=a("#siteCode").val(),Q=a.trim(a("#esapiSearchDomain").val()),zc="https://sribsrch.ecom.quick3d.org/estoresearch-api/v1/scom",Vc=-1<window.location.host.indexOf("www")||-1<window.location.host.indexOf("org-p6")?"https://sribsrch.ecom.quick3d.org/estoresearch-api/v1/scom":"https://sribsrch.ecom-qa.quick3d.org/estoresearch-api/v1/scom";window.location.href.indexOf("www.quick3d.org");
window.location.href.indexOf("www.quick3d.org");var sc=a.trim(a("#apiStageInfo").val()),Pa=a("#sc_gnb_searchURL").val(),Na=a("#gPriceCurrency").val(),fc=a("#sc_gnb_AI_searchURL").val();a("#sc_gnb_placeholder").val();var Gb=a("#sc_gnb_aiSearchUseYn").val(),Uc=a("#sc_gnb_bdcApiUseYn").val(),Kc=a("#sc_gnb_AiLoginUseYn").val(),Zb=a("#siteCode").val(),qc="Y"===a("#eppFlag").val(),Ab=a("#sc_gnb_eppUseGnbAiSearchYn").val();a("#loginLinkURL").val();var Ob=commonLoginCheck(),mc=a.cookies.getSearchKeyword(),
tc=[],bb=[],Ka="",Yb=!1,mb=!1,u="Y"===Gb,Ub="Y"===Uc,yb="Y"===Kc,gc="Y"===Ab,Oc=null,Pc=0,Qc="",Vb=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),db={keywordKey:"",url:null,data:{}},Eb={recommend:4,popular:4,suggest:5,suggestAi:4},Ea={gnbSearchInput:Za.find(".srd19-gnb-search__input"),gnbSearchInputWrap:Za.find(".srd19-gnb-search__input-wrap"),gnbSearchInputClearButton:Za.find(".srd19-gnb-search__clear"),gnbSearchInputSubmitButton:Za.find(".srd19-gnb-search__btn-search"),gnbSearchResultWrap:Za.find(".srd19-gnb-search__result-wrap"),
gnbSearchRecent:Za.find(".srd19-gnb-search__recent"),gnbSearchPopular:Za.find(".srd19-gnb-search__popular"),gnbSearchSuggested:Za.find(".srd19-gnb-search__suggested"),gnbSearchAISuggested:Za.find(".srd19-gnb-search__ai-search"),gnbSearchRelatedThumb:Za.find(".srd19-gnb-search__related"),gnbSearchRecommendedThumb:Za.find(".srd19-gnb-search__recommended"),gnbSearchNoSuggestions:Za.find(".srd19-gnb-search__no-suggestions"),gnbSearchCloseBtn:Za.find(".srd19-gnb-search__btn--close"),gnbSearchScanBarcodeButton:Za.find(".srd19-gnb-search__scan-barcode"),
gnbSearchSearchSearches:Za.find(".srd19-gnb-search__searches")},Bb=function(M){fnIsNull(M)||(M=M.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26#92;\x26quot;").replace(/'/g,"\x26#039;"));return M};Za.on("focus",".srd19-gnb-search__input",function(){Tb();var M=N(a.trim(a(this).val()));if(pa(M)||""==M)mc=a.cookies.getSearchKeyword(),n(),M&&0<M.length?xa(M):0<mc.length?k():g(),window.sg.components.GnbSearchV25.reInit()});Za.on("click",".srd19-gnb-search__clear",
function(){lc()});Za.on("propertychange change keyup paste input",".srd19-gnb-search__input",function(){var M=a(this).val();pa(M)&&(a(this).val(S(M)),M=a.trim(M),mc=a.cookies.getSearchKeyword(),Ya(M),M&&0<M.length?(mb=!0,Ea.gnbSearchInputClearButton.addClass("srd19-gnb-search__clear--show"),xa(M)):(mb=!1,Ea.gnbSearchInputClearButton.removeClass("srd19-gnb-search__clear--show"),0<mc.length?k():g(),h(),Ea.gnbSearchSuggested.find("ul").empty()))});Za.on("click",".srd19-gnb-search__suggested a, .srd19-gnb-search__ai-search a",
function(){var M=a(this).text();a.cookies.setSearchKeyword(decodeURIComponent(M));u&&(M=a(this).attr("data-feedback"),I("","",M))});Za.on("click",".srd19-gnb-search__popular a",function(){var M=a(this).text();a.cookies.setSearchKeyword(decodeURIComponent(M))});Za.on("click",".srd19-gnb-search__related .srd19-gnb-search__thumb-item a",function(){var M=a(this).attr("data-feedback");I("","",M)});Za.on("click",".srd19-gnb-search__btn-search",function(M){M.preventDefault();if(M=N(a.trim(Ea.gnbSearchInput.val()))){a.cookies.setSearchKeyword(decodeURIComponent(M));
if("us"===Aa){encodeURIComponent(M);Oa(Pc,Qc);var ea=fc+"/?searchvalue\x3d"+encodeURIComponent(M);window.location.href=ea}else window.location.href=Pa+encodeURIComponent(M)+hb("suggestedsearch");window.gmap=null;"undefined"!==typeof window&&window._satellite&&"us"===Aa&&_satellite.track("searchoverlaytyping",{an_tr:"select_search_search layer_finish_typing_click",an_ca:"search",an_ac:"search layer",an_la:"finish typing",global_search_term:""+M})}});a(document).on("click",".gnb__search-btn-js",function(){yb=
yb&&"true"===window.sg.common.utils.getCookie("aisearch");lc();Ub?l(this):Ea.gnbSearchRecommendedThumb.hide();"us"===Aa||Yb?(Ya(""),window.sg.components.GnbSearchV25.show(this)):u||gc?yb&&Ob?(db.data.isTyping="N",xa("",!0,this)):T(this):C(this);if("us"===Aa)if(tc&&0<tc.length?g():E(this),bb&&0<bb.length)x(bb);else{var M=window&&window.RECOMMENDATIONS_DATA&&window.RECOMMENDATIONS_DATA["target-search-recs-scom51498"];M&&0<M.length&&w(M)}});a(document).on("click",".shop-with-expert-search",function(M){M.preventDefault();
768>a(window).width()?window.open("https://www.quick3d.org/us/expert-chat/?search_instant","newwindow"):window.open("https://www.quick3d.org/us/expert-chat/?search_instant","newwindow","height\x3d700, width\x3d440, top\x3d0, left\x3d0, toolbar\x3dno, menubar\x3dno, scrollbars\x3dno, resizable\x3dno, location\x3dno, status\x3dno")});Za.on("click",".srd19-gnb-search__scan-barcode",function(M){M.preventDefault();qc&&(M=new CustomEvent("scanner.enabled"),document.dispatchEvent(M),window.sg.components.barcodeScannerPopup.showPopup(this))});
a(function(){Pa&&""!==Pa&&ob()})}})(window.jQuery);
(function(){var a,n,k,g,f,h,m,e,b,d,l,q,r;function w(){var ba=document.querySelector(".cod03-delivery-location-selector");if(ba)for(a=ba,n=ba.querySelector(".cod03-delivery-location-selector__select"),k=ba.querySelector("#detail-btn"),g=ba.querySelector(".menu__select"),f=ba.querySelector(".cod03-delivery-location-selector__region-name"),h=ba.querySelector(".cod03-delivery-location-selector__select-ctas"),m=ba.querySelector(".cod03-delivery-location-selector__popup"),e=ba.querySelector(".cod03-delivery-location-selector__popup--contents"),
b=ba.querySelector(".cta--confirm"),d=ba.querySelector(".cta--cancel"),l=ba.querySelector(".cod03-delivery-location-selector__popup--close"),q=ba.querySelector(".cod03-delivery-location-selector__popup--looping-start"),r=ba.querySelector(".cod03-delivery-location-selector__popup--looping-end"),T=ba.querySelector(".menu__select"),x(),ba=0;ba<T.length;ba++)T.options[ba].hasAttribute("selected")&&(oa=ba)}function x(){a.querySelector(".cod03-delivery-location-selector__region-icon").addEventListener("click",
function(){n.classList.contains("show")?(n.classList.remove("show"),n.classList.add("hide"),k.setAttribute("xlink:href","#open-down-regular"),k.setAttribute("href","#open-down-regular")):n.classList.contains("hide")?(n.classList.remove("hide"),n.classList.add("show"),k.setAttribute("xlink:href","#close-up-regular"),k.setAttribute("href","#close-up-regular")):n.classList.add("hide")});g.addEventListener("change",function(){m.classList.add("cod03-delivery-location-selector__popup--show");e.classList.add("show");
b.focus()});l.addEventListener("click",function(){C();E()});d.addEventListener("click",function(){C();E()});b.addEventListener("click",function(){ca=T.options[T.selectedIndex].text;f.textContent=ca;oa=T.selectedIndex;E()});q.addEventListener("focus",function(){l.focus()});r.addEventListener("focus",function(){e.querySelector(".cta").focus()})}function C(){window.sg.common.menu.selectItem(a.querySelector(".menu"),oa)}function E(){e.classList.remove("show");m.classList.remove("cod03-delivery-location-selector__popup--show");
h.focus()}var z=window.sg.common.$q;var T=r=q=l=d=b=e=m=h=f=g=k=n=a=void 0;var ca,oa;window.sg.components.deliveryLocationSelector={init:w};z.ready(function(){return w()})})();var componentDeliveryLocationSelector={};
(function(a,n){"undefined"===typeof a.smg&&(a.smg={});a.smg.deliverylocationselector=a.smg.deliverylocationselector||{};var k=n("#siteCode").val(),g=n("#tempTitle").val();a=n.cookies.get("country_region",{domain:".quick3d.org"});if(null==a||""==a)a="CA-ON",n.cookies.set("country_region",a,{domain:".quick3d.org"});for(var f=n(".cod03-delivery-location-selector__select-ctas .menu__select").children(),h=0;h<f.length;h++)if(a==f.eq(h).val()){f.eq(h).val();var m=f.eq(h).text();n(".cod03-delivery-location-selector__select-ctas .menu__select option").eq(h).attr("selected",
!0);n(".cod03-delivery-location-selector__region-name").text(m)}a="cod03_delivery location selector-"+n("#pageTrackPd").val()+"-province selector-content_click";n(".cod03-delivery-location-selector__popup .cta--confirm").attr("an-tr",a).attr("an-ca","content click").attr("an-ac","feature").attr("an-la","confirm popup:confirm");n(".cod03-delivery-location-selector__popup .cta--cancel").attr("an-tr",a).attr("an-ca","content click").attr("an-ac","feature").attr("an-la","confirm popup:cancel");n(".cod03-delivery-location-selector__popup--close").attr("an-tr",
a).attr("an-ca","content click").attr("an-ac","feature").attr("an-la","confirm popup:cancel");n(".cod03-delivery-location-selector").find(".menu__list-option").on("click",function(){console.log("$componentByDropDownOption   click!!!");var e=n(this).find(".menu__list-option-text").text().trim();console.log("delivery-location-selector-confirm   clickedSelectedText\x3d["+e+"]")});n(document).off("click","#delivery-location-selector-confirm");n(document).on("click","#delivery-location-selector-confirm",
function(){var e=n(".cod03-delivery-location-selector__select-ctas .menu__select option:selected").val(),b=n(".cod03-delivery-location-selector__select-ctas .menu__select option:selected").text();n.cookies.set("country_region",e,{domain:".quick3d.org"});n(".cod03-delivery-location-selector__region-name").text(b);n(document).ready(function(){("ca"==k||"ca_fr"==k)&&("page-standard-pd"==g||"page-buying-pd"==g||"page-pf"==g||"page-pf-ux2"==g||"page-search"==g||"page-wearable-bc"==g||"page-bc-pd"==g||
"page-pcd"==g&&0<n(".pf-product-compare").length)&&location.reload()})});componentDeliveryLocationSelector={initGrid:function(){}}})(window,$);
(function(){var a=window.sg.common.$q,n=window.sg.common.libs,k=window.sg.common.constants.BREAKPOINTS,g=window.sg.common.utils,f="undefined"!==typeof commonLoginCheck?commonLoginCheck():!1,h=function(m){var e=this;this.selector={section:".footer",footerTopCta:".footer-top__content-link",category:".footer-category__anchor",categoryActive:"footer-category__anchor--active",categoryList:".footer-category__list-wrap",categoryItem:".footer-column__item",language:".footer-language__anchor",languagePanel:".footer-language__panel .footer-language__content",
languageActive:"footer-language__anchor--active",languageTopTarget:".footer-copyright-align",topBtn:".footer-back-to-top__cta",showFormBtn:'[data-js-action\x3d"showForm"]'};this.ele={window:a(window),section:a(m),wrap2list:[]};this.setProperty();this.prevDevice-0;this.isPCmode=k.MOBILE<g.getViewPort().width;this.handler={resize:this.resize.bind(this),focusLock:this.focusLock.bind(this),outClick:this.outClick.bind(this),clickLanguage:function(){e.ele.language.hasClass(e.selector.languageActive)?e.closeLanguage():
e.openLanguage()},handleShowFormBtnClick:this.handleShowFormBtnClick.bind(this)};h.instances.set(m,this);this.init()};h.prototype.setProperty=function(){var m=this;this.ele.topBtn=this.ele.section.find(this.selector.topBtn).eq(0);this.ele.footerTopCta=this.ele.section.find(this.selector.footerTopCta);var e=this.ele.section.find("."+this.selector.categoryActive);this.ele.categoryActive=0>=e.target.length?null:e;this.ele.category=this.ele.section.find(this.selector.category);this.ele.language=this.ele.section.find(this.selector.language);
this.ele.languagePanel=this.ele.section.find(this.selector.languagePanel);this.ele.languageTopTarget=this.ele.section.find(this.selector.languageTopTarget);this.ele.wrap2list=[];this.ele.section.find(this.selector.categoryList).target.forEach(function(b){b=b.querySelectorAll(".footer-category__list");1<b.length&&m.ele.wrap2list.push([].concat($jscomp.arrayFromIterable(b)))});this.ele.showFormBtn=this.ele.section.find(this.selector.showFormBtn)};h.prototype.focusLock=function(m){var e=this;m.keyCode===
n.keyCode.TAB_KEY&&setTimeout(function(){if(0>=a(document.activeElement).closest(e.selector.languagePanel).target.length)if("desktop"===g.getCurrentDevice())e.closeLanguage(document.activeElement);else if(m.shiftKey){var b=e.ele.languagePanel.eq(0).find("a");b.target[b.target.length-1].focus()}}.bind(this),30)};h.prototype.outClick=function(m){(("touchend"===m.type?0>=a(m.target||m.touches[0].target).closest(this.ele.languagePanel.target[0]).target.length:0>=a(m.target).closest(this.ele.languagePanel.target[0]).target.length)||
m.target===document.documentElement)&&this.closeLanguage()};h.prototype.init=function(){var m=this;this.setLengthTop();this.bindEvents();var e=this.ele.section.find(".image__preview");if(0<e.target.length)e.eq(e.target.length-1).on("load",function(){m.setLengthTop()});this.setContentIdDamTagging();this.setLoginStatus()};h.prototype.reInit=function(){this.setProperty();this.bindEvents();this.resize();this.setContentIdDamTagging();this.setLoginStatus()};h.prototype.resize=function(){this.isPCmode=k.MOBILE<
g.getViewPort().width;this.setLengthTop();this.isPCmode?(null!==this.ele.categoryActive&&this.closeCategory(this.ele.categoryActive,!0),this.ele.language.hasClass(this.selector.languageActive)&&this.closeLanguage(!1),this.ele.category.removeAttr("aria-expanded")):this.ele.category.attr("aria-expanded",!1)};h.prototype.bindEvents=function(){var m=this;this.ele.topBtn.off("click").on("click",this.moveScroll.bind(this));this.ele.category.off("click").on("click",function(e){e=a(e.currentTarget);e.hasClass(m.selector.categoryActive)?
m.closeCategory(e):m.openCategory(e)});this.ele.showFormBtn.off("click",this.handler.handleShowFormBtnClick).on("click",this.handler.handleShowFormBtnClick);this.ele.language.off("click").on("click",this.handler.clickLanguage);this.ele.window.off("resize",this.handler.resize).on("resize",this.handler.resize)};h.prototype.moveScroll=function(){g.scrollTo(0)};h.prototype.openLanguage=function(){var m=this,e="mobile"===g.getCurrentDevice();this.ele.language.addClass(this.selector.languageActive);this.ele.language.attr("aria-expanded",
!0);e&&window.sg.common.utils.setMobileFocusLoop(this.ele.languagePanel.target[0]);var b=e?this.ele.languagePanel.eq(0).find(".footer-language__link--selected").target[0]:this.ele.languagePanel.eq(1).find(".footer-language__link--selected").target[0];b&&b.blur();setTimeout(function(){b&&b.focus();m.ele.window.off("keydown",m.handler.focusLock).on("keydown",m.handler.focusLock);m.ele.window.off("click",m.handler.outClick).on("click",m.handler.outClick);m.ele.window.off("touchend",m.handler.outClick).on("touchend",
m.handler.outClick)},30)};h.prototype.closeLanguage=function(m){var e=this;m=void 0===m?null:m;this.ele.language.attr("aria-expanded",!1);"mobile"===g.getCurrentDevice()&&window.sg.common.utils.removeMobileFocusLoop();this.ele.window.off("keydown",this.handler.focusLock);this.ele.window.off("click",this.handler.outClick);this.ele.window.off("touchend",this.handler.outClick);setTimeout(function(){e.ele.language.removeClass(e.selector.languageActive);null===m&&e.ele.language.target.forEach(function(b){"none"!==
a(b).closest(".footer-language").css("display")&&b.focus()})},30)};h.prototype.openCategory=function(m){if(null!==this.ele.categoryActive){this.ele.categoryActive.removeClass(this.selector.categoryActive);m.addClass(this.selector.categoryActive);var e=m.closest(this.selector.categoryItem).target[0].getBoundingClientRect();e.top<-1*m.height()&&window.scrollTo(document.body.scrollLeft||document.documentElement.scrollLeft,(document.body.scrollTop||document.documentElement.scrollTop)+e.top);this.ele.categoryActive.addClass(this.selector.categoryActive);
m.removeClass(this.selector.categoryActive);this.closeCategory(this.ele.categoryActive)}m.addClass(this.selector.categoryActive);m.attr("aria-expanded",!0);m.parent().find(this.selector.categoryList).slideDown(500);e=m.find(".hidden").target[0].dataset.i18nClose;m.find(".hidden").target[0].innerHTML=e;this.ele.categoryActive=m};h.prototype.closeCategory=function(m,e){var b=this;e=void 0===e?!1:e;var d=m.parent().find(this.selector.categoryList),l=m.find(".hidden").target[0].dataset.i18nOpen;if(e)m.removeClass(this.selector.categoryActive),
m.find(".hidden").target[0].innerHTML=l;else{var q=d.isAnimate();d.stop().slideUp(500,function(){m.removeClass(b.selector.categoryActive);m.find(".hidden").target[0].innerHTML=l;q&&d.css({height:"",display:"",overflow:""})})}m.attr("aria-expanded",!1);this.ele.categoryActive=null};h.prototype.setLengthTop=function(){};h.prototype.handleShowFormBtnClick=function(m){"undefined"!==typeof KAMPYLE_ONSITE_SDK&&(m=parseInt(m.currentTarget.getAttribute("data-form-id")),KAMPYLE_ONSITE_SDK.loadForm(m)&&KAMPYLE_ONSITE_SDK.showForm(m))};
h.prototype.setLoginStatus=function(){var m=this.ele.footerTopCta.target[0];m&&m.setAttribute("href",f?m.dataset.loginUrl:m.dataset.logoutUrl)};h.prototype.setContentIdDamTagging=function(){function m(x,C){var E="";return E="desktop"===C?x.find(".image__main[data-desktop-aem-asset-id], .image-v2__main[data-desktop-aem-asset-id], .first-image img[data-desktop-aem-asset-id], .video[data-desktop-aem-asset-id], .image__main[data-aem-asset-id], .image-v2__main[data-aem-asset-id], .first-image img[data-aem-asset-id], .video[data-aem-asset-id]").target.map(function(z){return a(z).attr("data-desktop-aem-asset-id")||
a(z).attr("data-aem-asset-id")}).filter(function(z){return null!==z&&""!==z}).join(","):x.find(".image__main[data-mobile-aem-asset-id], .image-v2__main[data-mobile-aem-asset-id], .first-image img[data-mobile-aem-asset-id], .video[data-mobile-aem-asset-id], .image__main[data-aem-asset-id], .image-v2__main[data-aem-asset-id], .first-image img[data-aem-asset-id], .video[data-aem-asset-id]").target.map(function(z){return a(z).attr("data-mobile-aem-asset-id")||a(z).attr("data-aem-asset-id")}).filter(function(z){return null!==
z&&""!==z}).join(",")}function e(x,C){var E=m(r,C);x.forEach(function(z){z=a(z);switch(C){case "desktop":z.attr("an-as",E);break;case "mobile":z.attr("an-as",E)}})}function b(x,C){x.forEach(function(E){E=a(E);var z=m(E,C);switch(C){case "desktop":E.attr("an-as",z);break;case "mobile":E.attr("an-as",z)}})}var d=this;this.prevDevice=g.getCurrentDevice();var l=this.ele.window,q=this.ele.section,r=q.find(".footer-local-logo__item a"),w=q.find(".footer-category__anchor, .footer-category__link, .footer-language__link, .footer-language__anchor, .footer-terms__link, .footer-sns__link").target;
a(".fab").target.length&&w.push(a(".fab").target[0]);e(w,this.prevDevice);b(r.target,this.prevDevice);l.on("resize",function(){var x=g.getCurrentDevice();d.prevDevice!==x&&(d.prevDevice=x,e(w,d.prevDevice),b(r.target,d.prevDevice))})};h.instances=new WeakMap;window.sg.components.footer={reInit:function(){a(".footer").target.forEach(function(m){h.instances.has(m)&&h.instances.get(m).reInit()})}};a.ready(function(){a(".footer").target.forEach(function(m){h.instances.has(m)||new h(m)})})})();
(function(){var a=window.sg.common.$q,n=window.sg.common.menu,k=window.sg.common.utils.getCurrentDevice,g=function(h){this.els={el:h,cookieBarShopBanner:h.querySelector(".cookie-bar__app-banner"),cookieBarShopBannerCloseButton:h.querySelector(".cookie-bar__shop-app-close"),cookieBarMainArea:h.querySelector(".cookie-bar__wrap"),settingButton:h.querySelector(".cookie-bar__setting"),settingConditionWrap:h.querySelector(".cookie-bar__setting-condition-wrap"),cookieBarMainCloseButton:h.querySelector(".cookie-bar__main-close")};
this.isMainArea=this.isMobileShopBanner=this.isShowSettingConditionWrap=!1;this.init()};g.prototype.init=function(){g.instances.get(this.els.el)||(g.instances.set(this.els.el,this),this.bindEvents(),this.checkCookieBarCloseStatus())};g.prototype.reInitMobileAppBar=function(){this.checkCookieBarCloseStatus()};g.prototype.bindEvents=function(){var h=this;this.els.cookieBarMainCloseButton.addEventListener("click",this.closeMain.bind(this));this.els.cookieBarShopBannerCloseButton&&this.els.cookieBarShopBannerCloseButton.addEventListener("click",
this.closeBanner.bind(this));this.els.settingButton&&this.els.settingButton.addEventListener("click",function(){h.isShowSettingConditionWrap?(h.els.settingConditionWrap.removeAttribute("style"),h.isShowSettingConditionWrap=!1):(h.els.settingConditionWrap.style.display="block",h.isShowSettingConditionWrap=!0)});window.addEventListener("resize",function(){h.checkCookieBarCloseStatus()})};g.prototype.checkCookieBarCloseStatus=function(){this.isMobileShopBanner&&!this.isMainArea&&("mobile"===k()?this.els.el.style.display=
"block":this.els.el.style.display="none")};g.prototype.closeBanner=function(){this.els.cookieBarShopBanner.classList.remove("cookie-bar__app-banner--visible");this.isMobileShopBanner=!1;this.isMainArea||(this.els.el.style.display="none")};g.prototype.showBanner=function(){this.els.cookieBarShopBanner.classList.remove("cookie-bar--hidden");this.isMobileShopBanner=!0};g.prototype.closeMain=function(){this.els.cookieBarMainArea.classList.add("cookie-bar--hidden");this.isMainArea=!1;this.isMobileShopBanner?
this.checkCookieBarCloseStatus():this.els.el.style.display="none"};g.prototype.showMain=function(){this.els.cookieBarMainArea.classList.remove("cookie-bar--hidden");this.isMainArea=!0};g.instances=new WeakMap;var f={init:function(){a(".cookie-bar").target.forEach(function(h){g.instances.has(h)||new g(h)})},reInit:function(){a(".cookie-bar").find(".menu").target.forEach(function(h){n.reInit(h)})},showCookieBar:function(){g.instances.get(document.querySelector(".cookie-bar")).isMainArea=!0;g.instances.get(document.querySelector(".cookie-bar")).showMain();
g.instances.get(document.querySelector(".cookie-bar")).els.el.style.display="block"},showMobileAppBanner:function(){this.showCookieBar();g.instances.get(document.querySelector(".cookie-bar")).els.cookieBarMainArea.classList.add("cookie-bar--hidden");g.instances.get(document.querySelector(".cookie-bar")).isMainArea=!1;g.instances.get(document.querySelector(".cookie-bar")).els.cookieBarShopBanner.classList.add("cookie-bar__app-banner--visible");g.instances.get(document.querySelector(".cookie-bar")).isMobileShopBanner=
!0;g.instances.get(document.querySelector(".cookie-bar")).reInitMobileAppBar()}};window.sg.components.cookieBar=f;a.ready(f.init)})();
(function(a,n){var k=[{site_code:"CA_FR",global:{country_name:"Canada",lang:"French"},local:{country_name:"Canada",lang:"Fran\u00e7ais"},country_codes:["ca"]},{site_code:"CA",global:{country_name:"Canada",lang:"English"},local:{country_name:"Canada",lang:"English"},country_codes:["ca"]},{site_code:"MX",global:{country_name:"Mexico",lang:"Spanish"},local:{country_name:"M\u00e9xico",lang:"Espa\u00f1o"},country_codes:["mx"]},{site_code:"BR",global:{country_name:"Brazil",lang:"Portuguese"},local:{country_name:"Brasil",
lang:"Portugu\u00eas"},country_codes:["br"]},{site_code:"LATIN",global:{country_name:"Latin America",lang:"Spanish"},local:{country_name:"Latin",lang:"Espa\u00f1ol"},country_codes:"gt ni do bo ec sv cr pa hn".split(" ")},{site_code:"LATIN_EN",global:{country_name:"Latin America",lang:"English"},local:{country_name:"Latin",lang:"English"},country_codes:"gy gp mq bb bm bz lc sr aw ht ag jm ky tt".split(" ")},{site_code:"CO",global:{country_name:"Colombia",lang:"Spanish"},local:{country_name:"Colombia",
lang:"Espa\u00f1ol"},country_codes:["co"]},{site_code:"AR",global:{country_name:"Argentina",lang:"Spanish"},local:{country_name:"Argentina",lang:"Espa\u00f1ol"},country_codes:["ar"]},{site_code:"UY",global:{country_name:"Uruguay",lang:"Spanish"},local:{country_name:"Uruguay",lang:"Espa\u00f1ol"},country_codes:["uy"]},{site_code:"PY",global:{country_name:"Paraguay",lang:"Spanish"},local:{country_name:"Paraguay",lang:"Espa\u00f1ol"},country_codes:["py"]},{site_code:"CL",global:{country_name:"Chile",
lang:"Spanish"},local:{country_name:"Chile",lang:"Espa\u00f1ol"},country_codes:["cl"]},{site_code:"PE",global:{country_name:"Peru",lang:"Spanish"},local:{country_name:"Per\u00fa ",lang:"Espa\u00f1ol"},country_codes:["pe"]},{site_code:"SG",global:{country_name:"Singapore",lang:"English"},local:{country_name:"Singapore",lang:"English"},country_codes:["sg"]},{site_code:"AU",global:{country_name:"Australia",lang:"English"},local:{country_name:"Australia",lang:"English"},country_codes:["au"]},{site_code:"NZ",
global:{country_name:"New Zealand",lang:"English"},local:{country_name:"New Zealand",lang:"English"},country_codes:["nz"]},{site_code:"ID",global:{country_name:"Indonesia",lang:"Indonesian"},local:{country_name:"Indonesia",lang:"Bahasa Indonesia"},country_codes:["id"]},{site_code:"TH",global:{country_name:"Thailand",lang:"Thai"},local:{country_name:"\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22",lang:"\u0e44\u0e17\u0e22"},country_codes:["th"]},{site_code:"VN",global:{country_name:"Vietnam",
lang:"Vietnamese"},local:{country_name:"Vi\u1ec7t Nam",lang:"Ti\u1ebfng Vi\u1ec7t"},country_codes:["vn"]},{site_code:"MY",global:{country_name:"Malaysia",lang:"English"},local:{country_name:"Malaysia",lang:"English"},country_codes:["my"]},{site_code:"MM",global:{country_name:"Myanmar",lang:"Burmese"},local:{country_name:"Myanmar",lang:"Burmese"},country_codes:["mm"]},{site_code:"JP",global:{country_name:"Japan",lang:"Japanese"},local:{country_name:"\u65e5\u672c",lang:"\u65e5\u672c\u8a9e"},country_codes:["jp"]},
{site_code:"IN",global:{country_name:"India",lang:"English"},local:{country_name:"India",lang:"English"},country_codes:["in","np","bd","lk"]},{site_code:"UK",global:{country_name:"United Kingdom",lang:"English"},local:{country_name:"United Kingdom",lang:"English"},country_codes:["gb","uk"]},{site_code:"IE",global:{country_name:"Ireland",lang:"English"},local:{country_name:"Ireland",lang:"English"},country_codes:["ie"]},{site_code:"IT",global:{country_name:"Italy",lang:"Italian"},local:{country_name:"Italia",
lang:"Italiano"},country_codes:["it","mt"]},{site_code:"ES",global:{country_name:"Spain",lang:"Spanish"},local:{country_name:"Espana",lang:"Espanol"},country_codes:["es"]},{site_code:"HU",global:{country_name:"Hungary",lang:"Hungarian"},local:{country_name:"Magyarorsz\u00e1g",lang:"Magyar"},country_codes:["hu"]},{site_code:"DE",global:{country_name:"Germany",lang:"German"},local:{country_name:"Deutschland",lang:"Deutsch"},country_codes:["de"]},{site_code:"SE",global:{country_name:"Sweden",lang:"Swedish"},
local:{country_name:"Sverige",lang:"Svenska"},country_codes:["se"]},{site_code:"DK",global:{country_name:"Denmark",lang:"Danish"},local:{country_name:"Danmark",lang:"Dansk"},country_codes:["dk"]},{site_code:"FI",global:{country_name:"Finland",lang:"Finnish"},local:{country_name:"Suomi",lang:"Suomi"},country_codes:["fi"]},{site_code:"NO",global:{country_name:"Norway",lang:"Norwegian"},local:{country_name:"Norge",lang:"Norsk"},country_codes:["no"]},{site_code:"FR",global:{country_name:"France",lang:"French"},
local:{country_name:"France",lang:"Fran\u00e7ais"},country_codes:["fr"]},{site_code:"PT",global:{country_name:"Portugal",lang:"Portuguese"},local:{country_name:"Portugal",lang:"Portugu\u00eas"},country_codes:["pt"]},{site_code:"PL",global:{country_name:"Poland",lang:"Polish"},local:{country_name:"Polska",lang:"Polski"},country_codes:["pl"]},{site_code:"GR",global:{country_name:"Greece",lang:"Greek"},local:{country_name:"\u0395\u03bb\u03bb\u03ac\u03b4\u03b1",lang:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},
country_codes:["gr"]},{site_code:"CZ",global:{country_name:"Czech",lang:"Czech"},local:{country_name:"\u010cesk\u00e1 republika",lang:"\u010ce\u0161tina"},country_codes:["cz"]},{site_code:"SK",global:{country_name:"Slovakia",lang:"Slovakian"},local:{country_name:"Slovensko",lang:"Sloven\u010dina"},country_codes:["sk"]},{site_code:"RO",global:{country_name:"Romania",lang:"Romanian"},local:{country_name:"Romania",lang:"Romanian"},country_codes:["ro"]},{site_code:"BG",global:{country_name:"Bulgaria",
lang:"Bulgarian"},local:{country_name:"\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f",lang:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"},country_codes:["bg"]},{site_code:"AT",global:{country_name:"Austria",lang:"German"},local:{country_name:"\u00d6sterreich",lang:"Deutsch"},country_codes:["at"]},{site_code:"CH",global:{country_name:"Switzerland",lang:"German"},local:{country_name:"Schweiz",lang:"Deutsch"},country_codes:["ch"]},{site_code:"CH_FR",global:{country_name:"Switzerland",lang:"French"},
local:{country_name:"Suisse",lang:"Francaise"},country_codes:["ch"]},{site_code:"BE",global:{country_name:"Belgium",lang:"Dutch"},local:{country_name:"Belgi\u00eb",lang:"Nederlands"},country_codes:["be"]},{site_code:"BE_FR",global:{country_name:"Belgium",lang:"French"},local:{country_name:"Belgium",lang:"French"},country_codes:["lu"]},{site_code:"NL",global:{country_name:"Netherlands",lang:"Dutch"},local:{country_name:"Nederland",lang:"Nederlands"},country_codes:["nl"]},{site_code:"LV",global:{country_name:"Latvia",
lang:"Latvian"},local:{country_name:"Latvija",lang:"Latvie\u0161u"},country_codes:["lv"]},{site_code:"LT",global:{country_name:"Lithuania",lang:"Lithuanian"},local:{country_name:"Lietuva",lang:"Lietuvi\u0173"},country_codes:["lt"]},{site_code:"EE",global:{country_name:"Estonia",lang:"Estonian"},local:{country_name:"Eesti",lang:"Eesti"},country_codes:["ee"]},{site_code:"RS",global:{country_name:"Serbia",lang:"Serbian"},local:{country_name:"C\u0440\u0431\u0438\u0458\u0430",lang:"C\u0440\u043f\u0441\u043a\u0438"},
country_codes:["rs"]},{site_code:"HR",global:{country_name:"Croatia",lang:"Croatian"},local:{country_name:"Hrvatska",lang:"Hrvatski"},country_codes:["hr"]},{site_code:"SI",global:{country_name:"Slovenia",lang:"Slovenijan"},local:{country_name:"Slovenija",lang:"Sloven\u0161\u010dina"},country_codes:["sl"]},{site_code:"AL",global:{country_name:"Albania",lang:"Albania"},local:{country_name:"Shqip\u00ebri",lang:"Shqi"},country_codes:["al"]},{site_code:"RU",global:{country_name:"Russia",lang:"Russian"},
local:{country_name:"\u0420\u043e\u0441\u0441\u0438\u044f",lang:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["ru"]},{site_code:"UA",global:{country_name:"Ukraine",lang:"Ukrainian"},local:{country_name:"\u0423\u043a\u0440\u0430\u0457\u043d\u0430",lang:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},country_codes:["ua"]},{site_code:"UA_RU",global:{country_name:"Ukraine",lang:"Russian"},local:{country_name:"\u0423\u043a\u0440\u0430\u0438\u043d\u0430",lang:"P\u0443\u0441\u0441\u043a\u0438\u0439"},
country_codes:["ua"]},{site_code:"KZ_RU",global:{country_name:"Kazakhstan",lang:"Russian"},local:{country_name:"\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d",lang:"P\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["kz"]},{site_code:"KZ_KZ",global:{country_name:"Kazakhstan",lang:"Kazakh"},local:{country_name:"\u049a\u0430\u0437\u0430\u049b\u0441\u0442\u0430\u043d",lang:"\u049a\u0430\u0437\u0430\u049b\u0448\u0430"},country_codes:["kz"]},{site_code:"UZ_RU",global:{country_name:"Uzbekistan",
lang:"Russian"},local:{country_name:"\u0423\u0437\u0431\u0435\u043a\u0438\u0441\u0442\u0430\u043d",lang:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["uz"]},{site_code:"UZ_UZ",global:{country_name:"Uzbekistan",lang:"Uzbek"},local:{country_name:"O'zbekiston",lang:"O'zbek"},country_codes:["uz"]},{site_code:"AE",global:{country_name:"UAE",lang:"English"},local:{country_name:"UAE",lang:"English"},country_codes:"bh ae ye om qa kw".split(" ")},{site_code:"AE_AR",global:{country_name:"UAE",
lang:"Arabic"},local:{country_name:"\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062a ",lang:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},country_codes:["ae"]},{site_code:"IL",global:{country_name:"Israel",lang:"Hebrew"},local:{country_name:"\u05d9\u05e9\u05e8\u05d0\u05dc",lang:"\u05e2\u05d1\u05e8\u05d9\u05ea"},country_codes:["il"]},{site_code:"SA",global:{country_name:"Saudi Arabia",lang:"Arabic"},local:{country_name:"\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629",
lang:"\u0639\u0631\u0628\u064a"},country_codes:["sa","ly"]},{site_code:"SA_EN",global:{country_name:"Saudi Arabia",lang:"English"},local:{country_name:"Saudi Arabia",lang:"English"},country_codes:["sa"]},{site_code:"TR",global:{country_name:"Turkey",lang:"Turkish"},local:{country_name:"T\u00fcrkiye",lang:"T\u00fcrk\u00e7e"},country_codes:["tr"]},{site_code:"IRAN",global:{country_name:"Iran",lang:"Persian"},local:{country_name:"\u0627\u06cc\u0631\u0627\u0646",lang:"\u0641\u0627\u0631\u0633\u064a"},
country_codes:["lr"]},{site_code:"LEVANT",global:{country_name:"Levant",lang:"English"},local:{country_name:"Levant",lang:"English"},country_codes:["lb","jo","iq","ps"]},{site_code:"LEVANT_AR",global:{country_name:"Levant",lang:"Arabic"},local:{country_name:"Levant",lang:"Arabic"},country_codes:["lb","jo","iq","ps"]},{site_code:"PK",global:{country_name:"Pakistan",lang:"English"},local:{country_name:"Pakistan",lang:"English"},country_codes:["pk","af"]},{site_code:"EG",global:{country_name:"Egypt",
lang:"Arabic"},local:{country_name:"\u0627\u0644\u0628\u0644\u062f \u0645\u0635\u0631",lang:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},country_codes:["eg","so","er"]},{site_code:"LB",global:{country_name:"Lebanon",lang:"Lebanon"},local:{country_name:"Lebanon",lang:"English"},country_codes:["lb"]},{site_code:"N_AFRICA",global:{country_name:"Africa",lang:"French"},local:{country_name:"Maroc",lang:"Fran\u00e7ais"},country_codes:["ma","dz","tn"]},{site_code:"AFRICA_EN",global:{country_name:"Africa Pan",
lang:"English"},local:{country_name:"Africa",lang:"English"},country_codes:"gh gm na ng lr mw bw sz sl et ug zm zw ke tz".split(" ")},{site_code:"AFRICA_FR",global:{country_name:"Africa Pan",lang:"French"},local:{country_name:"Afrique",lang:"Fran\u00e7ais"},country_codes:"ga gn ne rw re mg yt ml mu mr bj bi bf sn sc cf dj td cm km ci cg cd tg".split(" ")},{site_code:"AFRICA_PT",global:{country_name:"Africa Pan",lang:"Portuguese"},local:{country_name:"\u00c1frica",lang:"Portugu\u00eas"},country_codes:["gw",
"mz","ao","cv"]},{site_code:"ZA",global:{country_name:"South Africa",lang:"English"},local:{country_name:"South Africa",lang:"English"},country_codes:["za"]},{site_code:"US",global:{country_name:"USA",lang:"English"},local:{country_name:"USA",lang:"English"},country_codes:["us"]},{site_code:"CN",global:{country_name:"China",lang:"Chinese"},local:{country_name:"\u4e2d\u56fd",lang:"\u4e2d\u6587"},country_codes:["cn"]},{site_code:"HK",global:{country_name:"Hong Kong",lang:"Chinese"},local:{country_name:"\u9999\u6e2f",
lang:"\u7e41\u9ad4\u4e2d\u6587"},country_codes:["hk"]},{site_code:"HK_EN",global:{country_name:"Hong Kong",lang:"English"},local:{country_name:"Hong Kong",lang:"English"},country_codes:["hk"]},{site_code:"TW",global:{country_name:"Taiwan",lang:"Chinese"},local:{country_name:"\u53f0\u7063",lang:"\u7e41\u9ad4\u4e2d\u6587"},country_codes:["tw"]},{site_code:"SEC",global:{country_name:"Korea",lang:"Korean"},local:{country_name:"\ub300\ud55c\ubbfc\uad6d",lang:"\ud55c\uad6d\uc5b4"},country_codes:["kr"]},
{site_code:"PH",global:{country_name:"Philippines",lang:"English"},local:{country_name:"Philippines",lang:"English"},country_codes:["ph"]},{site_code:"VE",global:{country_name:"Venezuela",lang:"English"},local:{country_name:"Venezuela",lang:"English"},country_codes:["sg","ve"]}];"undefined"===typeof a.smg&&(a.smg={});"undefined"===typeof a.smg.aem&&(a.smg.aem={});"undefined"===typeof a.smg.aem.common&&(a.smg.aem.common={});var g=function(){var f=n("#siteCode").val(),h=!0;"cn"===f&&(h=!1);var m={closeBtn:".cookie-bar__close",
akkoordBtn:"#akkoord_btn",cookieAcceptBtn:".cta--contained",geoSelectWrap:".cookie-bar__select",visitBtnsWrap:".cookie-bar__select-ctas .menu__select",geoMsgCookieWrap:".cookie-bar__msg-wrap",typeManage:".cookie-bar--type-manage",paramsCookie:{commonaccepted:"cookiesaccepted",accepted:"cookiesaccepted-geo",acceptedCountries:"cookiesaccepted-countries",banneraccepted:"cookiesaccepted_banner",countryCodes:"country_codes",siteCode:"site_cd"}};return{init:function(e,b){if(!(1>n(".cookie-bar").length||
"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView())){var d="N",l=navigator.userAgent;if("in"===f||"es"===f||"de"===f||"nl"===f||"uk"===f){if(-1<l.indexOf("MyGalaxy")||-1<l.indexOf("belo4dShopSDK"))d="Y";if("Y"===d){n(".cookie-bar").remove();return}navigator.userAgent.match(/iPhone|iPad|iPod/i);window.location.href.indexOf("/"+f+"/support/")}(this.$container=e).length&&!this.$container.data("initialized")&&f&&(this.options=def(m,b||{}),this.assignedHTMLElements(),this.initProperties(),
this.isAcceptedCountries()&&this.$geoMsgCookieWrap.remove(),this.isAcceptedBanner()&&this.removebannerInner(),this.setCountryInfo(),!this.isAcceptedGeo()&&!this.isLocalLanguageSite()&&""!==this.visitCountryCode&&this.currentCountrySiteInfo[0]||!this.isAcceptedCountries()||null!==this.$bannerInner&&(null===this.$bannerInner||0!==this.$bannerInner.length))&&(this.bindEvents(),this.$container.attr("data-initialized",!0),"es"!==f&&"de"!==f&&"nl"!==f&&"uk"!==f||this.$geoMsgCookieWrap.hide(),window.sg.components.cookieBar.showCookieBar())}},
assignedHTMLElements:function(){var e=this.$container,b=this.options;this.$visitBtnsWrap=e.find(b.visitBtnsWrap);this.$cookieGeoClose=e.find(b.closeBtn);this.$akkoordBtn=e.find(b.akkoordBtn);this.$cookieAcceptBtn=e.find(b.cookieAcceptBtn);this.$geoSelectWrap=e.find(b.geoSelectWrap);this.$selectListToggleBtn=e.find(b.selectListToggleBtn);this.$geoMsgCookieWrap=e.find(b.geoMsgCookieWrap);this.$bannerClose=n(".cookie-bar__shop-app-close");this.$bannerInner=n(".cookie-bar__app-banner")},initProperties:function(){var e=
this.options.paramsCookie;this.testSiteCd=this.getParam(e.siteCode);this.currentSiteCode=f.toLowerCase();this.visitCountryCode=this.testSiteCd?this.testSiteCd:cookies.getCookie(e.countryCodes).toLowerCase();this.currentCountrySiteInfo=[];this.visitCountrySiteInfo=[];this.selectedSiteCode="";this.acceptedCountries=[];cookies.getCookie(e.acceptedCountries)&&(this.acceptedCountries=cookies.getCookie(e.acceptedCountries).split(","))},isLocalLanguageSite:function(){return this.currentSiteCode===this.visitCountryCode},
isSameSiteGroup:function(){var e=this.visitCountrySiteInfo,b=this.currentCountrySiteInfo[0],d=!1;b&&n.each(b.country_codes,function(l,q){n.each(e,function(r,w){0<=n.inArray(q,w.country_codes)&&(d=!0)})});return d},setCountryInfo:function(){n.each(k,n.proxy(function(e,b){e=b.country_codes;var d=b.site_code.toLowerCase();n.each(e,n.proxy(function(l,q){d===this.currentSiteCode&&this.currentCountrySiteInfo.push(b);q===this.visitCountryCode&&this.visitCountrySiteInfo.push(b)},this))},this))},append:function(){var e=
this.visitCountrySiteInfo,b=this.currentCountrySiteInfo[0];if(e.length&&b){var d="",l="",q=0;this.isSameSiteGroup()||(q++,d+='\x3coption value\x3d"'+q+'" site_cd\x3d"'+b.site_code.toLowerCase()+'" title\x3d"Visit '+b.local.country_name+"/"+b.local.lang+' site"\x3e'+b.local.country_name+" / "+b.local.lang+"\x3c/option\x3e",l=b.local.country_name+" / "+b.local.lang);n.each(e,n.proxy(function(r,w){q++;d+='\x3coption value\x3d"'+q+'" site_cd\x3d"'+w.site_code.toLowerCase()+'" title\x3d"Visit '+w.local.country_name+
"/"+w.local.lang+' site"\x3e'+w.local.country_name+" / "+w.local.lang+"\x3c/option\x3e";""===l&&(l=w.local.country_name+" / "+w.local.lang)},this));this.$visitBtnsWrap.attr("data-default-message",l);this.$visitBtnsWrap.html(d);window.sg.components.cookieBar.reInit()}else this.$geoSelectWrap.remove()},bindEvents:function(){this.$visitBtnsWrap.on("change",n.proxy(this.onSelectBtnsClick,this));this.$cookieGeoClose.on("click",n.proxy(this.onCloseBtnClick,this));this.$akkoordBtn.on("click",n.proxy(this.onAkkoordBtnClick,
this));this.$cookieAcceptBtn.on("click",n.proxy(this.onAcceptClick,this));this.$bannerClose.on("click",n.proxy(this.onBaanerCloseBtnClick,this))},isTypeManage:function(){return this.$container.is(this.options.typeManage)},onCloseBtnClick:function(){this.isTypeManage()||this.setCookieAccept()},onAkkoordBtnClick:function(){this.isTypeManage()||(this.setCookieAccept(),n(".cookie-bar").hide())},setCookieAccept:function(){var e=this.options.paramsCookie;0>n.inArray(this.currentSiteCode,this.acceptedCountries)&&
this.acceptedCountries.push(this.currentSiteCode);cookies.setCookie2(e.acceptedCountries,this.acceptedCountries,90,h);cookies.setCookie2(e.commonaccepted,"true",90,h)},setCookieGeo:function(){var e=this.options.paramsCookie;cookies.setCookie(e.accepted,"true",90);cookies.setCookie2(e.commonaccepted,"true",90,h)},setBannerCookie:function(){cookies.setCookie(this.options.paramsCookie.banneraccepted,"true",90)},onAcceptClick:function(){this.setCookieAccept();this.isTypeManage()?n(".cookie-bar").hide():
this.$geoMsgCookieWrap.remove()},onSelectBtnsClick:function(e){e=this.options.paramsCookie;this.selectedSiteCode=n(".cookie-bar__select-ctas .menu__select option:selected").attr("site_cd");this.setParamsCookie(e.siteCode,this.selectedSiteCode,999);this.setCookieGeo();this.isTypeManage()||this.setCookieAccept()},onBaanerCloseBtnClick:function(){this.setBannerCookie()},isAcceptedGeo:function(){return!!cookies.getCookie(this.options.paramsCookie.accepted)},isAcceptedBanner:function(){return!!cookies.getCookie(this.options.paramsCookie.banneraccepted)},
isAcceptedCountries:function(){return 0>n.inArray(this.currentSiteCode,this.acceptedCountries)?!1:!0},removebannerInner:function(){null!==this.$bannerInner&&(this.$bannerInner.remove(),this.$bannerInner=null)},setParamsCookie:function(e,b,d){var l=new Date,q=window.location.protocol+"//"+window.location.host+"/"+this.selectedSiteCode;l.setDate(l.getDate()+parseInt(d));document.cookie=e+"\x3d"+escape(b)+"; path\x3d/; expires\x3d"+l.toGMTString()+";";window.location.href=q},getParam:function(e){var b=
{};document.location.search.replace("?","").replace(/(?:^|\?|&)([^=]+)(?==)(?:=([^&]*))?/g,function(d,l,q){b[decodeURIComponent(l.split("+").join(" "))]=decodeURIComponent(q.split("+").join(" "))});return b[e]}}}();n(function(){g.init(n(".cookie-bar__wrap"))})})(window,jQuery);
(function(){function a(){n(k.section).target.forEach(function(f){g.instances.has(f)||new g(f)})}var n=window.sg.common.$q,k={section:".notice"},g=function(f){var h=this;this.selector={section:k.section,btn:".notice__toggle-btn",hidden:".notice__toggle-btn .hidden",content:".notice__inner",nomarl:".notice__column notice__column--collapsed",expend:".notice__column notice__column--expanded",close:".notice__close"};this.timer=null;this.ele={window:n(window),section:n(f),btn:null,content:null,nomarl:null,
expand:null,close:null};this.toggleType=this.ele.section.hasClass("notice--toggle");this.handler={resize:function(){h.toggleType&&(h.ele.section.css({height:""}),h.timer&&clearTimeout(h.timer),setTimeout(function(){h.setHeight()},400))},clickClose:function(m){m.preventDefault();h.ele.section.hide();h.ele.window.trigger("resize")}};this.init();g.instances.set(f,this)};g.prototype.setProperty=function(){this.ele.btn=this.ele.section.find(this.selector.btn);this.toggleType?(this.ele.hidden=this.ele.section.find(this.selector.hidden),
this.ele.content=this.ele.section.find(this.selector.content),this.ele.pdBanner=this.ele.section.find(this.selector.pdBanner),this.ele.nomarl=this.ele.section.find(this.selector.nomarl),this.ele.expand=this.ele.section.find(this.selector.expend)):this.ele.close=this.ele.section.find(this.selector.close)};g.prototype.init=function(){this.setProperty();this.bindEvents()};g.prototype.reInit=function(){this.setProperty();this.bindEvents()};g.prototype.setHeight=function(){this.ele.section.css({height:this.ele.content.outerHeight()+
"px"})};g.prototype.bindEvents=function(){var f=this;if(this.toggleType)this.ele.btn.off("click").on("click",function(){f.ele.section.hasClass("is-expanded")?f.closeBanner():f.openBanner()}),this.setHeight();else this.ele.close.off("click").on("click",this.handler.clickClose);this.ele.window.off("resize",this.handler.resize).on("resize",this.handler.resize)};g.prototype.openBanner=function(){this.ele.section.addClass("is-expanded");this.ele.section.attr("aria-expanded",!0);this.ele.nomarl.hide();
this.ele.expand.show();this.ele.hidden.innerHTML("Click to Collapse");this.setHeight()};g.prototype.closeBanner=function(){this.ele.section.removeClass("is-expanded");this.ele.section.attr("aria-expanded",!1);this.ele.nomarl.show();this.ele.expand.hide();this.ele.hidden.innerHTML("Click to Expand");this.setHeight()};g.instances=new WeakMap;window.sg.components.notice={init:a,reInit:function(){n(k.section).target.forEach(function(f){g.instances.has(f)?g.instances.get(f).reInit():new g(f)})},closeBanner:function(f){f=
void 0===f?!0:f;n(k.section).target.forEach(function(h){g.instances.has(h)&&g.instances.get(h).closeBanner(f)})}};n.ready(a)})();
(function(){function a(){n(f.section).target.forEach(function(e){m.instance.has(e)||new m(e)})}var n=window.sg.common.$q,k=window.sg.common.utils,g=window.sg.common.utils.getCurrentDevice,f={section:".nv16-country-selector"},h=[{site_code:"AE",local:{country_name:"UAE",lang:"English"},country_codes:"ae ae_ar bh ye om qa kw".split(" "),lang_code:"en-AE"},{site_code:"AE_AR",local:{country_name:"\u0627\u0644\u062e\u0644\u064a\u062c",lang:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},country_codes:"ae ae_ar bh ye om qa kw".split(" "),
lang_code:"ar-AE"},{site_code:"AFRICA_EN",local:{country_name:"Africa",lang:"English"},country_codes:"africa_en africa_fr africa_pt gh gm ga gn gw na ng ne lr mz mw bw sz sl et ug zm zw ke tz ao cv rw re mg yt ml mu mr bj bi bf sn sc cf dj td cm km ci cg cd tg".split(" "),lang_code:"en-002"},{site_code:"AFRICA_FR",local:{country_name:"Afrique",lang:"Fran\u00e7ais"},country_codes:"africa_en africa_fr africa_pt gh gm ga gn gw na ng ne lr mz mw bw sz sl et ug zm zw ke tz ao cv rw re mg yt ml mu mr bj bi bf sn sc cf dj td cm km ci cg cd tg".split(" "),
lang_code:"fr-002"},{site_code:"AFRICA_PT",local:{country_name:"\u00c1frica",lang:"Portugu\u00eas"},country_codes:"africa_en africa_fr africa_pt gh gm ga gn gw na ng ne lr mz mw bw sz sl et ug zm zw ke tz ao cv rw re mg yt ml mu mr bj bi bf sn sc cf dj td cm km ci cg cd tg".split(" "),lang_code:"pt-002"},{site_code:"AL",local:{country_name:"Shqip\u00ebri",lang:"Shqip"},country_codes:["al"],lang_code:"sq-AL"},{site_code:"AR",local:{country_name:"Argentina",lang:"Espa\u00f1ol"},country_codes:["ar"],
lang_code:"es-AR"},{site_code:"AT",local:{country_name:"\u00d6sterreich",lang:"Deutsch"},country_codes:["at"],lang_code:"de-AT"},{site_code:"AZ",local:{country_name:"Az\u0259rbaycan",lang:"Az\u0259rbaycan dili"},country_codes:["az"],lang_code:"az_AZ"},{site_code:"AU",local:{country_name:"Australia",lang:"English"},country_codes:["au"],lang_code:"en-AU"},{site_code:"BA",local:{country_name:"Bosna i Hercegovina",lang:"Bosanski"},country_codes:["ba"],lang_code:"bs-BA"},{site_code:"BD",local:{country_name:"Bangladesh",
lang:"English"},country_codes:["bd"],lang_code:"en-BD"},{site_code:"BE",local:{country_name:"Belgi\u00eb",lang:"Nederlands"},country_codes:["be","be_fr","lu"],lang_code:"nl-BE"},{site_code:"BE_FR",local:{country_name:"Belgium",lang:"French"},country_codes:["be","be_fr","lu"],lang_code:"fr-BE"},{site_code:"BG",local:{country_name:"\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f",lang:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"},country_codes:["bg"],lang_code:"bg-BG"},{site_code:"BR",
local:{country_name:"Brasil",lang:"Portugu\u00eas"},country_codes:["br"],lang_code:"pt-BR"},{site_code:"CA",local:{country_name:"Canada",lang:"English"},country_codes:["ca","ca_fr"],lang_code:"en-CA"},{site_code:"CA_FR",local:{country_name:"Canada",lang:"Fran\u00e7ais"},country_codes:["ca","ca_fr"],lang_code:"fr-CA"},{site_code:"CH",local:{country_name:"Schweiz",lang:"Deutsch"},country_codes:["ch","ch_fr"],lang_code:"de-CH"},{site_code:"CH_FR",local:{country_name:"Suisse",lang:"Francaise"},country_codes:["ch",
"ch_fr"],lang_code:"fr-CH"},{site_code:"CL",local:{country_name:"Chile",lang:"Espa\u00f1ol"},country_codes:["cl"],lang_code:"es-CL"},{site_code:"CN",local:{country_name:"\u4e2d\u56fd",lang:"\u4e2d\u6587"},country_codes:["cn"],lang_code:"zh-CN"},{site_code:"CO",local:{country_name:"Colombia",lang:"Espa\u00f1ol"},country_codes:["co"],lang_code:"es-CO"},{site_code:"CZ",local:{country_name:"\u010cesk\u00e1 republika",lang:"\u010ce\u0161tina"},country_codes:["cz"],lang_code:"cs-CZ"},{site_code:"DE",local:{country_name:"Deutschland",
lang:"Deutsch"},country_codes:["de"],lang_code:"de-DE"},{site_code:"DK",local:{country_name:"Danmark",lang:"Dansk"},country_codes:["dk"],lang_code:"da-DK"},{site_code:"EE",local:{country_name:"Eesti",lang:"Eesti"},country_codes:["ee"],lang_code:"et-EE"},{site_code:"EG",local:{country_name:"\u0627\u0644\u0628\u0644\u062f \u0645\u0635\u0631",lang:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},country_codes:["eg","so","er"],lang_code:"ar-EG"},{site_code:"ES",local:{country_name:"Espana",lang:"Espanol"},
country_codes:["es"],lang_code:"es-ES"},{site_code:"FI",local:{country_name:"Suomi",lang:"Suomi"},country_codes:["fi"],lang_code:"fi-FI"},{site_code:"FR",local:{country_name:"France",lang:"Fran\u00e7ais"},country_codes:["fr"],lang_code:"fr-FR"},{site_code:"GE",local:{country_name:"\u10e1\u10d0\u10e5\u10d0\u10e0\u10d7\u10d5\u10d4\u10da\u10dd",lang:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},country_codes:["ge"],lang_code:"ka_GE"},{site_code:"GR",local:{country_name:"\u0395\u03bb\u03bb\u03ac\u03b4\u03b1",
lang:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},country_codes:["gr"],lang_code:"el-GR"},{site_code:"HK",local:{country_name:"\u9999\u6e2f",lang:"\u7e41\u9ad4\u4e2d\u6587"},country_codes:["hk","hk_en"],lang_code:"zh-HK"},{site_code:"HK_EN",local:{country_name:"Hong Kong",lang:"English"},country_codes:["hk","hk_en"],lang_code:"en-HK"},{site_code:"HR",local:{country_name:"Hrvatska",lang:"Hrvatski"},country_codes:["hr"],lang_code:"hr-HR"},{site_code:"HU",local:{country_name:"Magyarorsz\u00e1g",
lang:"Magyar"},country_codes:["hu"],lang_code:"hu-HU"},{site_code:"ID",local:{country_name:"Indonesia",lang:"Bahasa Indonesia"},country_codes:["id"],lang_code:"id-ID"},{site_code:"IE",local:{country_name:"Ireland",lang:"English"},country_codes:["ie"],lang_code:"en-IE"},{site_code:"IL",local:{country_name:"\u05d9\u05e9\u05e8\u05d0\u05dc",lang:"\u05e2\u05d1\u05e8\u05d9\u05ea"},country_codes:["il"],lang_code:"he-IL"},{site_code:"IN",local:{country_name:"India",lang:"English"},country_codes:["in","np",
"bd","lk"],lang_code:"en-IN"},{site_code:"IQ_AR",local:{country_name:"\u0627\u0644\u0639\u0631\u0627\u0642",lang:"\u0639\u0631\u0628\u064a"},country_codes:["iq","iq_ar","iq_ku"],lang_code:"ar-IQ"},{site_code:"IQ_KU",local:{country_name:"\u06a9\u0648\u0631\u062f\u0633\u062a\u0627\u0646",lang:"\u06a9\u0648\u0631\u062f\u06cc"},country_codes:["iq","iq_ar","iq_ku"],lang_code:"ku-IQ"},{site_code:"IRAN",local:{country_name:"\u0627\u06cc\u0631\u0627\u0646",lang:"\u0641\u0627\u0631\u0633\u064a"},country_codes:["lr",
"iran"],lang_code:"fa-IR"},{site_code:"IT",local:{country_name:"Italia",lang:"Italiano"},country_codes:["it","mt"],lang_code:"it-IT"},{site_code:"JP",local:{country_name:"\u65e5\u672c",lang:"\u65e5\u672c\u8a9e"},country_codes:["jp"],lang_code:"ja-JP"},{site_code:"KZ_KZ",local:{country_name:"\u049a\u0430\u0437\u0430\u049b\u0441\u0442\u0430\u043d",lang:"\u049a\u0430\u0437\u0430\u049b\u0448\u0430"},country_codes:["kz","kz_kz","kz_ru"],lang_code:"kk-KZ"},{site_code:"KZ_RU",local:{country_name:"\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d",
lang:"P\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["kz","kz_kz","kz_ru"],lang_code:"ru-KZ"},{site_code:"LATIN",local:{country_name:"Latin",lang:"Espa\u00f1ol"},country_codes:"latin_en latin gt ni do bo ec sv cr pa hn gy gp mq bb bm bz lc sr aw ht ag jm ky tt".split(" "),lang_code:"es-419"},{site_code:"LATIN_EN",local:{country_name:"Latin",lang:"English"},country_codes:"latin_en latin gt ni do bo ec sv cr pa hn gy gp mq bb bm bz lc sr aw ht ag jm ky tt".split(" "),lang_code:"en-419"},{site_code:"LB",
local:{country_name:"Lebanon",lang:"English"},country_codes:["lb"],lang_code:"en-LB"},{site_code:"LEVANT",local:{country_name:"Levant",lang:"English"},country_codes:["levant_ar","levant","jo"],lang_code:"en-JO"},{site_code:"LEVANT_AR",local:{country_name:"Levant",lang:"Arabic"},country_codes:["levant_ar","levant","jo"],lang_code:"ar-JO"},{site_code:"LT",local:{country_name:"Lietuva",lang:"Lietuvi\u0173"},country_codes:["lt"],lang_code:"lt-LT"},{site_code:"LV",local:{country_name:"Latvija",lang:"Latvie\u0161u"},
country_codes:["lv"],lang_code:"lv-LV"},{site_code:"MK",local:{country_name:"\u0421\u0435\u0432\u0435\u0440\u043d\u0430 \u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0438\u0458\u0430",lang:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438"},country_codes:["mk"],lang_code:"mk-MK"},{site_code:"MM",local:{country_name:"Myanmar",lang:"Burmese"},country_codes:["mm"],lang_code:"my-MM"},{site_code:"MN",local:{country_name:"\u041c\u043e\u043d\u0433\u043e\u043b \u0443\u043b\u0441",lang:"\u041c\u043e\u043d\u0433\u043e\u043b \u0445\u044d\u043b"},
country_codes:["mn"],lang_code:"mn-MN"},{site_code:"MX",local:{country_name:"M\u00e9xico",lang:"Espa\u00f1o"},country_codes:["mx"],lang_code:"es-MX"},{site_code:"MY",local:{country_name:"Malaysia",lang:"English"},country_codes:["my"],lang_code:"en-MY"},{site_code:"N_AFRICA",local:{country_name:"Maroc",lang:"Fran\u00e7ais"},country_codes:["ma","dz","tn"],lang_code:"fr-MA"},{site_code:"NL",local:{country_name:"Nederland",lang:"Nederlands"},country_codes:["nl"],lang_code:"nl-NL"},{site_code:"NO",local:{country_name:"Norge",
lang:"Norsk"},country_codes:["no"],lang_code:"no-NO"},{site_code:"NZ",local:{country_name:"New Zealand",lang:"English"},country_codes:["nz"],lang_code:"en-NZ"},{site_code:"PE",local:{country_name:"Per\u00fa ",lang:"Espa\u00f1ol"},country_codes:["pe"],lang_code:"es-PE"},{site_code:"PH",local:{country_name:"Philippines",lang:"English"},country_codes:["ph"],lang_code:"en-PH"},{site_code:"PK",local:{country_name:"Pakistan",lang:"English"},country_codes:["pk","af"],lang_code:"en-PK"},{site_code:"PL",local:{country_name:"Polska",
lang:"Polski"},country_codes:["pl"],lang_code:"pl-PL"},{site_code:"PS",local:{country_name:"\u0641\u0644\u0633\u0637\u064a\u0646",lang:" \u062f\u0648\u0644\u0629"},country_codes:["ps"],lang_code:"ar-PS"},{site_code:"PT",local:{country_name:"Portugal",lang:"Portugu\u00eas"},country_codes:["pt"],lang_code:"pt-PT"},{site_code:"PY",local:{country_name:"Paraguay",lang:"Espa\u00f1ol"},country_codes:["py"],lang_code:"es-PY"},{site_code:"RO",local:{country_name:"Romania",lang:"Romanian"},country_codes:["ro"],
lang_code:"ro-RO"},{site_code:"RS",local:{country_name:"C\u0440\u0431\u0438\u0458\u0430",lang:"C\u0440\u043f\u0441\u043a\u0438"},country_codes:["rs"],lang_code:"sr-RS"},{site_code:"RU",local:{country_name:"\u0420\u043e\u0441\u0441\u0438\u044f",lang:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["ru"],lang_code:"ru-RU"},{site_code:"SA",local:{country_name:"\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629",
lang:"\u0639\u0631\u0628\u064a"},country_codes:["sa","sa_en","ly"],lang_code:"ar-SA"},{site_code:"SA_EN",local:{country_name:"Saudi Arabia",lang:"English"},country_codes:["sa","sa_en","ly"],lang_code:"en-SA"},{site_code:"SE",local:{country_name:"Sverige",lang:"Svenska"},country_codes:["se"],lang_code:"sv-SE"},{site_code:"SEC",local:{country_name:"\ub300\ud55c\ubbfc\uad6d",lang:"\ud55c\uad6d\uc5b4"},country_codes:["kr"],lang_code:"ko"},{site_code:"SG",local:{country_name:"Singapore",lang:"English"},
country_codes:["sg"],lang_code:"en-SG"},{site_code:"SI",local:{country_name:"Slovenija",lang:"Sloven\u0161\u010dina"},country_codes:["si"],lang_code:"sl-SI"},{site_code:"SK",local:{country_name:"Slovensko",lang:"Sloven\u010dina"},country_codes:["sk"],lang_code:"sk-SK"},{site_code:"TH",local:{country_name:"\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22",lang:"\u0e44\u0e17\u0e22"},country_codes:["th"],lang_code:"th-TH"},{site_code:"TR",local:{country_name:"T\u00fcrkiye",lang:"T\u00fcrk\u00e7e"},
country_codes:["tr"],lang_code:"tr-TR"},{site_code:"TW",local:{country_name:"\u53f0\u7063",lang:"\u7e41\u9ad4\u4e2d\u6587"},country_codes:["tw"],lang_code:"zh-TW"},{site_code:"UA",local:{country_name:"\u0423\u043a\u0440\u0430\u0457\u043d\u0430",lang:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},country_codes:["ua"],lang_code:"uk-UA"},{site_code:"UK",local:{country_name:"United Kingdom",lang:"English"},country_codes:["gb","uk"],lang_code:"en-GB"},{site_code:"US",local:{country_name:"USA",
lang:"English"},country_codes:["us"],lang_code:"en"},{site_code:"UY",local:{country_name:"Uruguay",lang:"Espa\u00f1ol"},country_codes:["uy"],lang_code:"es-UY"},{site_code:"UZ_UZ",local:{country_name:"O'zbekiston",lang:"O'zbek"},country_codes:["uz","uz_ru","uz_uz"],lang_code:"uz-uz"},{site_code:"UZ_RU",local:{country_name:"\u0423\u0437\u0431\u0435\u043a\u0438\u0441\u0442\u0430\u043d",lang:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["uz","uz_ru","uz_uz"],lang_code:"uz-ru"},{site_code:"VN",
local:{country_name:"Vi\u1ec7t Nam",lang:"Ti\u1ebfng Vi\u1ec7t"},country_codes:["vn"],lang_code:"vi-VN"},{site_code:"ZA",local:{country_name:"South Africa",lang:"English"},country_codes:["za"],lang_code:"en-ZA"}],m=function(e){this.els={window:n(window),wrap:n("#wrap"),section:n(e)};this.settings={SITECD:this.getSITECD(),selector:{content:".nv16-country-selector__content-wrap",countrySelector:".nv16-country-selector__menu .menu",countryList:".nv16-country-selector__menu .menu__select",menuOptionText:".nv16-country-selector__menu .menu__list-option-text",
menuSelectFieldText:".menu__select-field-text",urlSitecd:"[data-country-type\x3dsitecd]",locationSitecd:"[data-country-type\x3dlocation]",continue:"[data-action\x3dcountrySelectorContinue]",close:"[data-action\x3dcountrySelectorClose]"},cookies:{accept:{name:"cookiesaccepted-geo",value:!0,days:90},selectedSitecd:{name:"site_cd",days:999},countryCodes:{name:"country_codes",value:k.getCookie("country_codes")}},otherCountry:"/function/ipredirection/ipredirectionLocalList/"};this.currentDevice=g();this.handler=
{handleResize:this.handleResize.bind(this),handleCountryChange:this.handleCountryChange.bind(this)};m.instance.set(e,this);this.init()};m.prototype.init=function(){this.settings.SITECD=this.getSITECD();this.settings.cookies.countryCodes.value=k.getCookie("country_codes");this.isExistSitecd()&&(this.setElements(),this.bindEvents(),this.isAccepted()||this.isCountrySelected()||!this.checkCountryValid()||this.isWebViewFlag()?this.remove():this.show())};m.prototype.reInit=function(){this.init()};m.prototype.getSITECD=
function(){return document.querySelector("#siteCode")?document.querySelector("#siteCode").value.toLowerCase():"test"};m.prototype.setElements=function(){var e=this;this.els.content=this.els.section.find(this.settings.selector.content);this.els.countrySelector=this.els.section.find(this.settings.selector.countrySelector);this.els.countryList=this.els.section.find(this.settings.selector.countryList);this.els.continue=this.els.section.find(this.settings.selector.continue);this.els.close=this.els.section.find(this.settings.selector.close);
this.els.countryList.find(this.settings.selector.urlSitecd).remove();this.els.countryList.find(this.settings.selector.locationSitecd).remove();var b=[];h.forEach(function(d){(d.country_codes.find(function(l){return l===e.settings.SITECD})||d.site_code.toLowerCase()===e.settings.SITECD)&&b.push(d.site_code)});h.forEach(function(d){d.country_codes.find(function(l){return l===e.settings.cookies.countryCodes.value})&&b.push(d.site_code)});b=[].concat($jscomp.arrayFromIterable(new Set(b)));b.forEach(function(d){var l=
h.find(function(q){return q.site_code===d});e.setOptions(l)});window.sg.common.menu.reInit(this.els.section.find(".menu").target[0]);this.setLangCode();this.changeSelectedLangCode();this.changeSelectedText()};m.prototype.setLangCode=function(){var e=this.els.section.find(".menu option");this.els.section.find(this.settings.selector.menuOptionText).target.forEach(function(b,d){(d=e.target[d].getAttribute("lang"))&&n(b).attr("lang",d)})};m.prototype.bindEvents=function(){this.els.continue.off("click").on("click",
this.handleContinue.bind(this));this.els.close.off("click").on("click",this.close.bind(this));this.els.countrySelector.off("click").on("click",this.handleCountrySelector.bind(this));this.els.countryList.off("change",this.handler.orghandleCountryChange).on("change",this.handler.handleCountryChange);this.els.window.off("resize",this.handler.handleResize).on("resize",this.handler.handleResize)};m.prototype.show=function(){var e=this;this.els.section.css({height:this.els.content.height()+"px"});this.els.section.slideDown(400,
function(){e.els.section.addClass("nv16-country-selector--init");e.els.section.css({height:"auto"})})};m.prototype.close=function(){this.setAcceptCookie();this.els.section.css({height:this.els.section.height()+"px"});this.els.section.slideUp(350,this.remove.bind(this,"close"))};m.prototype.handleCountrySelector=function(){var e=this,b=new MutationObserver(function(d){d[0].target.classList.contains("open")?e.els.section.addClass("s-menu-opened"):(e.els.section.removeClass("s-menu-opened"),b.disconnect())});
b.observe(this.els.countrySelector.target[0],{attributes:!0,childList:!1})};m.prototype.handleCountryChange=function(){this.changeSelectedLangCode();this.changeSelectedText()};m.prototype.changeSelectedLangCode=function(){var e=this.els.countryList.target[0].querySelector("option[selected]")&&this.els.countryList.target[0].querySelector("option[selected]").getAttribute("lang");e?this.els.section.find(this.settings.selector.menuSelectFieldText).attr("lang",e):this.els.section.find(this.settings.selector.menuSelectFieldText).removeAttr("lang")};
m.prototype.changeSelectedText=function(){var e=this.els.countryList.target[0].options;(e=n(e[e.selectedIndex]).attr("data-display-text"))&&this.els.section.find(this.settings.selector.menuSelectFieldText).text(e)};m.prototype.handleContinue=function(){var e=this.els.countryList.target[0].querySelector("option[selected]").getAttribute("value"),b=checkEppSite();if("other"===e)window.location.href=window.location.origin+"/"+this.settings.SITECD+this.settings.otherCountry;else{k.setCookie(this.settings.cookies.selectedSitecd.name,
e,this.settings.cookies.selectedSitecd.days);this.setAcceptCookie();this.close();var d=window.location.origin;"cn"===this.settings.SITECD&&window.location.origin.endsWith(".com.cn")&&(d=window.location.origin.replace("quick3d.org.cn","quick3d.org"));e===this.settings.SITECD?window.location.reload():this.isB2b()?window.location.href=d+"/"+e+"/business/":b?(e=document.getElementById("eppStoreCountryPath").value,window.location.href=d+"/"+e+"/"):window.location.href=d+"/"+e+"/"}};m.prototype.handleResize=
function(){var e=g();e!==this.currentDevice&&"desktop"===e&&this.changeSelectedText();this.currentDevice=e};m.prototype.setAcceptCookie=function(){var e=this.settings.cookies.accept;k.setCookie(e.name,e.value,e.days)};m.prototype.setOptions=function(e){if(e.site_code&&e.local&&e.local.country_name&&e.local.lang){var b=e.site_code.toLowerCase(),d=e.lang_code,l=b===this.settings.SITECD,q='an-tr\x3d"nv16_country selector-'+(window.digitalData&&window.digitalData.page&&window.digitalData.page.pageInfo&&
window.digitalData.page.pageInfo.pageTrack||"")+'-drop down menu-navigation2" an-ca\x3d"navigation" an-ac\x3d"gnb" an-la\x3d"'+(this.isB2b()?"b2b_":"")+'country selector"';e="\x3coption"+(l?" selected":"")+' value\x3d"'+b+'" data-country-type\x3d'+(l?"sitecd":"location")+' lang\x3d"'+d+'" data-display-text\x3d"'+e.local.country_name+'" '+q+"\x3e"+e.local.country_name+" / "+e.local.lang+"\x3c/option\x3e";this.els.countryList.find("option[value\x3dother]").target[0].insertAdjacentHTML("beforebegin",
e)}};m.prototype.remove=function(e){e=void 0===e?!1:e;this.els.section.remove();this.els.wrap.target.length&&"close"===e&&k.setFocusFirstFocusableEl(this.els.wrap.target[0],["#header [href]","#header button, #haeder input, #haeder textarea, #haeder select"])};m.prototype.isAccepted=function(){return k.getCookie(this.settings.cookies.accept.name)?!0:!1};m.prototype.isCountrySelected=function(){return this.settings.SITECD===k.getCookie(this.settings.cookies.selectedSitecd.name)?!0:!1};m.prototype.isLocalSite=
function(){var e=this;return!!this.els.countryList.find(this.settings.selector.locationSitecd).target.map(function(b){return b.value}).find(function(b){return b===e.settings.SITECD})};m.prototype.isExistSitecd=function(){var e=this;return h.find(function(b){return b.site_code.toLowerCase()===e.settings.SITECD})?!0:!1};m.prototype.checkCountryValid=function(){return this.els.countryList.find(this.settings.selector.urlSitecd).target.length&&this.els.countryList.find(this.settings.selector.locationSitecd).target.length?
!0:!1};m.prototype.isOnlyOption=function(){return 2>this.els.countryList.find(this.settings.selector.urlSitecd).target.length};m.prototype.isWebViewFlag=function(){var e=!1;window.addEventListener("flutterInAppWebViewPlatformReady",function(){e=!0});var b=navigator.userAgent.toLowerCase(),d=-1<b.indexOf("line")||-1<b.indexOf("naver")||-1<b.indexOf("kakao")||-1<b.indexOf("instagram")||-1<b.indexOf("fbsn")||-1<b.indexOf("twitter"),l=!(!window.EcommAndroidClient&&!window.flutter_inappwebview)||-1<b.indexOf("belo4d-mobile-app"),
q=-1<b.indexOf("mygalaxy")||-1<b.indexOf("belo4dshopsdk");b=-1<b.indexOf("wv")||-1<b.indexOf("webview");return sessionStorage.getItem("isInAppWebViewSessionStorage")||e||d||l||q||b?!0:!1};m.prototype.isB2b=function(){var e=document.getElementById("b2bFlag");return e&&"Y"===e.value};m.instance=new WeakMap;window.sg.components.CountrySelector={init:a,reInit:function(){n(f.section).target.forEach(function(e){m.instance.has(e)&&m.instance.get(e).reInit()})},show:function(){n(f.section).target.forEach(function(e){m.instance.has(e)&&
m.instance.get(e).show()})},close:function(){n(f.section).target.forEach(function(e){m.instance.has(e)&&m.instance.get(e).close()})}};n.ready(a)})();
(function(a,n){var k=document.querySelector(".nv16-country-selector__menu");null!=k&&k.querySelector(".menu__select").addEventListener("change",function(g){if(checkEppSite()){var f=document.getElementById("eppStoreCountryPath");if(null==f){var h=document.createElement("input");h.setAttribute("type","hidden");h.setAttribute("id","eppStoreCountryPath");k.appendChild(h);f=document.getElementById("eppStoreCountryPath")}var m=g.target.selectedOptions[0].value;if("other"!=m){g=n.trim(n("input#searchDomain").val());
h=n.trim(n("input#apiStageInfo").val());var e=window.sg.epp.common.storeId;g=g+"/"+h+"/epp/v2/cms/storeinfo";h={siteCode:n.trim(m),companyCode:e};n.ajax({url:g,data:h,type:"GET",dataType:"json",async:!1,success:function(b){f.value=b&&b.response&&b.response.resultData&&b.response.resultData.storeInfo?m+"/multistore/"+e:""+m},error:function(b){f.value=""+m}})}}})})(window,$);
(function(a,n){function k(){var C=n("#searchDomain").val(),E=n("#apiStageInfo").val();n.ajax({url:C+"/"+E+"/"+(w?"epp/v2":"b2c")+"/contents/mobileappbanner?siteCode\x3d"+e+(w?"\x26companyCode\x3d"+a.sg.epp.common.companyCode:""),type:"GET",dataType:"json",crossDomain:!0,cache:!0,timeout:2E4,success:function(z){200===z.response.statusCode&&null!=z.response.resultData&&null!=z.response.resultData.mobileAppBanner&&(z=z.response.resultData.mobileAppBanner,x=l?{useFlag:z.iosUseFlag,headlineTitle:z.iosHeadlineTitle,
description:z.iosDescription,ctaTitle:z.iosCtaTitle,ctaUrl:z.iosCtaUrl,imgUrl:z.iosImgUrl}:{useFlag:z.aosUseFlag,headlineTitle:z.aosHeadlineTitle,description:z.aosDescription,ctaTitle:z.aosCtaTitle,ctaUrl:z.aosCtaUrl,imgUrl:z.aosImgUrl})},error:function(){},complete:function(){var z=x;if(0<r.length){var T=r.get(0);T.innerHTML="";if("Y"===("Y"===z.useFlag?"Y":"N")){var ca='\x3cdiv class\x3d"cod05-app-banner__icon"\x3e\t\x3cimg src\x3d"'+(z.imgUrl+'" alt\x3d"belo4d Shop App Icon"/\x3e');ca=ca+'\x3c/div\x3e\x3cdiv class\x3d"cod05-app-banner__content"\x3e\t\x3ch3 class\x3d"cod05-app-banner__title"\x3e'+
(z.headlineTitle+"\x3c/h3\x3e");ca+='\t\x3cp class\x3d"cod05-app-banner__desc"\x3e'+z.description+"\x3c/p\x3e";ca+='\t\x3ca class\x3d"cta cta--underline cta--black cod05-app-banner__cta" href\x3d"'+getEppMultiStorePath(z.ctaUrl)+'" aria-label\x3d"'+z.ctaTitle+'" an-tr\x3d"cod05_app banner-'+digitalData.page.pageInfo.pageTrack+'-cta-content click" an-ca\x3d"content click" an-ac\x3d"feature" an-la\x3d"top banner:belo4d shop app:download"\x3e';ca+=z.ctaTitle;T.innerHTML=ca+'\t\x3c/a\x3e\x3c/div\x3e\x3cbutton class\x3d"cod05-app-banner__close"\x3e\t\x3cspan class\x3d"hidden"\x3eClose\x3c/span\x3e\t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\t\t\x3cuse xlink:href\x3d"#delete-bold" href\x3d"#delete-bold"\x3e\x3c/use\x3e\t\x3c/svg\x3e\x3c/button\x3e'}}z=
"Y"===z.useFlag?"Y":"N";!q||"Y"!==z||h()||m()?r.hide():r.show();f()}})}function g(){0<r.length&&(r.get(0).innerHTML="",r.hide())}function f(){var C=n(".cod05-app-banner__close");if(0<C.length)C.on("click",function(E){cookies.setCookie2("shopappBannerExp","true",1,!0);g()})}function h(){return!!cookies.getCookie("shopappBannerExp")}function m(){var C=!1;window.flutter_inappwebview?C=!0:window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.firebase&&(C=!0);return C}var e=n("#siteCode").val(),
b=window.sg.common.utils.getCurrentDevice,d=window.sg.common.utils.getMobileOS,l="ios"===d(),q="mobile"===b(),r=n(".cod05-app-banner"),w=checkEppSite(),x={useFlag:"N",headlineTitle:null,description:null,ctaTitle:null,ctaUrl:null,imgUrl:null};n(function(){0<r.length&&(q="mobile"===b(),(h()||m())&&g(),!q||h()||m()||(w?k():(r.show(),f())))})})(window,jQuery);